/* ============================================================
 * FastLaneAPI Storefront - 前台样式
 * ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #f59e0b;
  --paypal: #ffc439;
  --paypal-dark: #e6a800;
  --paypal-blue: #003087;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-hover: 0 8px 30px rgba(15, 23, 42, .14);
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; outline: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶部公告条 ---------------- */
.topbar {
  background: var(--ink);
  color: #cbd5e1;
  font-size: 12.5px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: .2px;
}
.topbar b { color: #fff; font-weight: 600; }

/* ---------------- 主导航 ---------------- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--ink);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .logo-bolt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 18px;
}
.logo span { color: var(--primary); }

.search-box {
  flex: 1;
  max-width: 560px;
  display: flex;
  border: 2px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .15s;
}
.search-box:focus-within { border-color: var(--primary); }
.search-box input {
  flex: 1;
  border: none;
  padding: 0 14px;
  height: 42px;
  background: transparent;
}
.search-box button {
  background: var(--ink);
  color: #fff;
  padding: 0 22px;
  font-weight: 600;
  transition: background .15s;
}
.search-box button:hover { background: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.ha-link {
  display: flex; flex-direction: column; align-items: center;
  color: var(--ink-2); font-size: 12px; gap: 2px;
  position: relative; transition: color .15s;
}
.ha-link:hover { color: var(--primary); }
.ha-link .ico { font-size: 20px; line-height: 1; }
.cart-badge {
  position: absolute;
  top: -6px; right: 50%;
  margin-right: -18px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--danger);
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}

/* 二级分类导航 */
.subnav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.subnav-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 44px;
  font-size: 13.5px;
  overflow-x: auto;
}
.subnav-inner a {
  color: var(--ink-2);
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all .15s;
}
.subnav-inner a:hover, .subnav-inner a.active { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.subnav .hot { color: var(--danger); font-weight: 700; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  transition: all .18s;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37, 99, 235, .35); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-paypal {
  background: var(--paypal);
  color: var(--paypal-blue);
  font-weight: 800;
  font-style: italic;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.btn-paypal:hover { background: var(--paypal-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(230, 168, 0, .45); }
.btn-lg { height: 52px; font-size: 16px; padding: 0 32px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------------- Hero ---------------- */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(124, 58, 237, .25), transparent),
              radial-gradient(900px 480px at 0% 0%, rgba(37, 99, 235, .22), transparent),
              linear-gradient(135deg, #0b1220 0%, #111c33 60%, #0b1220 100%);
  color: #fff;
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .5px;
  margin-bottom: 20px;
}
.hero h1 { font-size: 46px; line-height: 1.15; font-weight: 800; letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #60a5fa, #a78bfa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: #b6c2d6; font-size: 16.5px; max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 1/1;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(96, 165, 250, .25), rgba(167, 139, 250, .2));
  border: 1px solid rgba(255, 255, 255, .12);
  display: flex; align-items: center; justify-content: center;
  font-size: 150px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.hero-visual .float-chip {
  position: absolute;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  display: flex; gap: 8px; align-items: center;
  animation: floaty 3.4s ease-in-out infinite;
}
.hero-visual .c1 { top: 26px; left: -18px; }
.hero-visual .c2 { bottom: 40px; right: -20px; animation-delay: 1.2s; }
.hero-visual .c3 { bottom: -14px; left: 30px; animation-delay: 2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.trustbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 22px 0;
  gap: 20px;
}
.trust-item { display: flex; gap: 12px; align-items: center; justify-content: center; }
.trust-item .ti-ico {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.trust-item b { display: block; font-size: 14px; }
.trust-item small { color: var(--ink-3); font-size: 12px; }

/* ---------------- 区块通用 ---------------- */
.section { padding: 54px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; gap: 16px; }
.section-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.section-head p { color: var(--ink-3); font-size: 13.5px; margin-top: 4px; }
.section-head .more { color: var(--primary); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.section-head .more:hover { text-decoration: underline; }

/* 分类磁贴 */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-tile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 12px;
  text-align: center;
  border: 1px solid var(--line);
  transition: all .18s;
}
.cat-tile:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-tile .ct-ico {
  width: 54px; height: 54px; margin: 0 auto 10px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.cat-tile b { font-size: 13.5px; display: block; }
.cat-tile small { color: var(--ink-3); font-size: 11.5px; }

/* 商品网格 */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #cbd5e1; }
.pc-media {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
}
.pc-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}
.pc-tag.new { background: var(--success); }
.pc-body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.pc-cat { font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; }
.pc-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  height: 41px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.product-card:hover .pc-name { color: var(--primary); }
.pc-rating { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }
.pc-rating .stars { color: #f59e0b; letter-spacing: 1px; }
.pc-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.pc-price .now { font-size: 19px; font-weight: 800; color: var(--danger); }
.pc-price .was { font-size: 12.5px; color: var(--ink-3); text-decoration: line-through; }
.pc-sold { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }

/* 促销横幅 */
.promo-banner {
  border-radius: 16px;
  padding: 44px 48px;
  background: linear-gradient(120deg, #1d4ed8, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.promo-banner h3 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.promo-banner p { color: rgba(255, 255, 255, .85); }
.promo-banner .btn { background: #fff; color: var(--primary-dark); }
.promo-banner .big-emoji { font-size: 76px; }

/* ---------------- 面包屑 ---------------- */
.breadcrumb { padding: 18px 0; font-size: 12.5px; color: var(--ink-3); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* ---------------- 列表页布局 ---------------- */
.shop-layout { display: grid; grid-template-columns: 248px 1fr; gap: 26px; align-items: start; padding-bottom: 60px; }
.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 128px;
}
.filter-group { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.filter-group:last-child { border-bottom: none; }
.filter-group h4 { font-size: 13.5px; margin-bottom: 12px; }
.filter-opt { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.filter-opt:hover { color: var(--primary); }
.filter-opt input { accent-color: var(--primary); }
.filter-opt .cnt { margin-left: auto; color: var(--ink-3); font-size: 12px; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; }

.shop-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
}
.shop-toolbar .result-count { font-size: 13px; color: var(--ink-3); }
.shop-toolbar .spacer { flex: 1; }
.sort-select { border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; background: #fff; color: var(--ink-2); }
.view-switch { display: flex; gap: 4px; }
.view-switch button { width: 34px; height: 34px; border-radius: 7px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.view-switch button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination button {
  min-width: 38px; height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.pagination button.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

.empty-state { text-align: center; padding: 80px 20px; color: var(--ink-3); }
.empty-state .es-ico { font-size: 56px; margin-bottom: 14px; }

/* ---------------- 详情页 ---------------- */
.detail-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; padding: 10px 0 50px; }
.gallery-main {
  border-radius: 16px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 180px;
  border: 1px solid var(--line);
}
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.gallery-thumbs div {
  width: 76px; height: 76px;
  border-radius: 10px;
  border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s;
}
.gallery-thumbs div.on, .gallery-thumbs div:hover { border-color: var(--primary); }

.detail-info h1 { font-size: 25px; font-weight: 700; line-height: 1.35; margin-bottom: 12px; }
.rating-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.rating-row .stars { color: #f59e0b; font-size: 15px; letter-spacing: 2px; }
.rating-row a { color: var(--primary); }
.price-box {
  background: linear-gradient(135deg, #fef2f2, #fff7ed);
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 22px;
}
.price-box .now { font-size: 34px; font-weight: 800; color: var(--danger); }
.price-box .was { font-size: 15px; color: var(--ink-3); text-decoration: line-through; margin-left: 12px; }
.price-box .save { background: var(--danger); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 5px; margin-left: 10px; }
.price-box .tax-note { display: block; color: var(--ink-3); font-size: 12px; margin-top: 6px; }

.opt-block { margin-bottom: 18px; }
.opt-block > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  background: #fff;
  transition: all .15s;
}
.swatch.on { border-color: var(--primary); color: var(--primary); background: var(--primary-light); font-weight: 600; }

.qty-row { display: flex; gap: 12px; margin: 24px 0 14px; }
.qty-stepper { display: flex; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty-stepper button { width: 44px; height: 48px; font-size: 18px; background: #f8fafc; color: var(--ink-2); }
.qty-stepper button:hover { background: #eef2f7; }
.qty-stepper input { width: 56px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-weight: 700; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.paypal-row { margin-bottom: 20px; }
.btn-paypal .pp-ico {
  font-style: normal;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -1px;
}
.service-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.service-row div { text-align: center; font-size: 12px; color: var(--ink-3); }
.service-row .s-ico { font-size: 20px; display: block; margin-bottom: 4px; }

.stock-line { font-size: 13px; margin-bottom: 18px; }
.stock-in { color: var(--success); font-weight: 600; }
.stock-low { color: var(--warning); font-weight: 600; }

/* 详情下部 tabs */
.detail-tabs { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 50px; }
.dt-head { display: flex; border-bottom: 1px solid var(--line); }
.dt-head button { padding: 16px 28px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; }
.dt-head button.on { color: var(--primary); border-color: var(--primary); }
.dt-body { padding: 28px 32px; }
.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.feature-list li::before { content: '✓'; color: var(--success); font-weight: 800; }
.review-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-item:last-child { border-bottom: none; }
.review-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.review-head b { font-size: 14px; }
.review-head .date { color: var(--ink-3); font-size: 12.5px; }
.review-head .stars { color: #f59e0b; font-size: 13px; }
.review-item p { color: var(--ink-2); font-size: 13.5px; }

/* ---------------- 购物车 ---------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; padding: 24px 0 60px; }
.cart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.cart-head { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 40px; padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.cart-line { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 40px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: none; }
.cl-product { display: flex; gap: 14px; align-items: center; }
.cl-thumb { width: 72px; height: 72px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 34px; flex-shrink: 0; }
.cl-name { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.cl-name small { display: block; color: var(--ink-3); font-weight: 400; margin-top: 3px; }
.cl-remove { color: var(--ink-3); font-size: 17px; }
.cl-remove:hover { color: var(--danger); }
.summary-card { padding: 24px; position: sticky; top: 128px; }
.summary-card h3 { font-size: 18px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; color: var(--ink-2); }
.sum-row.total { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; font-size: 19px; font-weight: 800; color: var(--ink); }
.free-ship-tip { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; font-size: 12.5px; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.coupon-row { display: flex; gap: 8px; margin: 16px 0; }
.coupon-row input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; }

/* ---------------- 结算 ---------------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 26px; align-items: start; padding: 24px 0 60px; }
.checkout-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.checkout-card h3 { font-size: 17px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  transition: border-color .15s;
  background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--primary); }
.pay-option {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all .15s;
}
.pay-option.on { border-color: var(--primary); background: var(--primary-light); }
.pay-option input { accent-color: var(--primary); }
.pay-option .po-ico { font-size: 24px; }
.pay-option .paypal-tag { font-style: italic; font-weight: 800; color: var(--paypal-blue); background: var(--paypal); padding: 2px 9px; border-radius: 5px; font-size: 12px; }
.pay-option .alipay-tag { background: #1677ff; color: #fff; padding: 2px 9px; border-radius: 5px; font-size: 12px; font-weight: 600; }
.pay-option small { color: var(--ink-3); display: block; }
.ship-option { display: flex; justify-content: space-between; border: 1.5px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; cursor: pointer; }
.ship-option.on { border-color: var(--primary); background: var(--primary-light); }
.ship-option b { font-size: 14px; }
.ship-option small { color: var(--ink-3); }
.ship-option .price { font-weight: 700; }

/* ---------------- 支付弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  width: 420px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pp-modal-header { background: var(--paypal); color: var(--paypal-blue); padding: 22px; text-align: center; font-size: 26px; font-weight: 800; font-style: italic; }
.pp-modal-body { padding: 26px; text-align: center; }
.pp-modal-body .amount { font-size: 38px; font-weight: 800; color: var(--ink); margin: 6px 0 4px; }
.pp-modal-body .merchant { color: var(--ink-3); font-size: 13px; margin-bottom: 22px; }
.pp-modal-body .order-no { font-size: 12px; color: var(--ink-3); margin-top: 14px; }
.pp-spinner { width: 42px; height: 42px; border: 4px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 10px auto 20px; display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.pp-secure { font-size: 12px; color: var(--ink-3); margin-top: 14px; }

.toast {
  position: fixed;
  top: 90px; left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  z-index: 2000;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  display: flex; gap: 8px; align-items: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 成功页 ---------------- */
.success-wrap { max-width: 640px; margin: 60px auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 50px 40px; }
.success-ico { width: 84px; height: 84px; border-radius: 50%; background: #dcfce7; color: var(--success); font-size: 42px; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.success-wrap h1 { font-size: 26px; margin-bottom: 10px; }
.success-wrap p { color: var(--ink-3); margin-bottom: 8px; }
.success-order { background: var(--bg); border-radius: 10px; padding: 18px; margin: 24px 0; text-align: left; }
.success-order .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13.5px; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }

/* ---------------- Footer ---------------- */
.footer { background: #0b1220; color: #94a3b8; padding: 56px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer h5 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; font-size: 13px; }
.footer ul a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 14px; font-size: 21px; }
.footer p.f-desc { font-size: 13px; line-height: 1.8; }
.pay-icons { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pay-icons span {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}
.pay-icons .pp { background: var(--paypal); color: var(--paypal-blue); border-color: var(--paypal); font-style: italic; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin: 0 auto; width: 100%; }
  .hero h1 { font-size: 36px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout, .cart-layout, .checkout-layout, .detail-layout { grid-template-columns: 1fr; }
  .filters, .summary-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 12px; }
  .search-box { order: 3; max-width: none; width: 100%; flex-basis: 100%; }
  .header-actions { margin-left: auto; gap: 14px; }
  .ha-link .t-label { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 28px; }
  .hero-visual { font-size: 96px; }
  .promo-banner { flex-direction: column; text-align: center; padding: 32px 24px; }
  .cart-head { display: none; }
  .cart-line { grid-template-columns: 1fr 60px; gap: 12px; }
  .cart-line .cl-price, .cart-line .cl-sub { grid-column: 2; text-align: right; }
  .form-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .action-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
}

/* ---------------- Static content pages ---------------- */
.page-hero { background: linear-gradient(135deg, #1d4ed8, #4f46e5); color: #fff; padding: 52px 0 46px; }
.page-hero h1 { font-size: 30px; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 720px; font-size: 14.5px; }
.page-hero .crumbs { font-size: 12.5px; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.page-hero .crumbs a:hover { color: #fff; }
.doc-wrap { max-width: 920px; margin: 36px auto 70px; }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 34px 38px; margin-bottom: 22px; }
.doc-card h2 { font-size: 20px; margin: 6px 0 14px; }
.doc-card h3 { font-size: 16px; margin: 22px 0 10px; }
.doc-card p { color: var(--ink-2); margin-bottom: 10px; font-size: 14px; line-height: 1.9; }
.doc-card ul { margin: 8px 0 12px 20px; color: var(--ink-2); font-size: 14px; line-height: 2; }
.doc-card a.inline-link { color: var(--primary); font-weight: 600; }
.doc-card a.inline-link:hover { text-decoration: underline; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 18px 0 6px; }
.step-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px 18px; text-align: center; background: var(--bg); }
.step-card .n { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.step-card b { display: block; margin-bottom: 6px; font-size: 14.5px; }
.step-card small { color: var(--ink-3); font-size: 12.5px; line-height: 1.7; display: block; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 12px 0 18px; }
.data-table th { background: var(--bg); text-align: left; padding: 12px 14px; font-weight: 700; border-bottom: 2px solid var(--line); white-space: nowrap; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.data-table tr:last-child td { border-bottom: none; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.green { background: #dcfce7; color: #15803d; }
.pill.blue { background: #dbeafe; color: #1d4ed8; }
.pill.amber { background: #fef3c7; color: #b45309; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0; }
.tier-card { border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; background: #fff; position: relative; }
.tier-card.featured { border-color: var(--primary); box-shadow: 0 10px 30px rgba(37,99,235,.12); }
.tier-card .crown { position: absolute; top: -12px; right: 18px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.tier-card .tier-name { font-size: 17px; font-weight: 800; }
.tier-card .tier-price { font-size: 26px; font-weight: 800; margin: 8px 0 2px; }
.tier-card .tier-price small { font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.tier-card ul { list-style: none; margin: 14px 0 0; }
.tier-card li { padding: 6px 0; font-size: 13px; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.tier-card li:last-child { border-bottom: none; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.faq-item summary { padding: 15px 18px; font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--ink-3); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-a { padding: 0 18px 15px; color: var(--ink-2); font-size: 13.5px; line-height: 1.85; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0; }
.contact-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-align: center; background: var(--bg); }
.contact-card .ci { font-size: 28px; margin-bottom: 10px; }
.contact-card b { display: block; margin-bottom: 4px; }
.contact-card small { color: var(--ink-3); font-size: 12.5px; line-height: 1.7; display: block; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 5px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 13px; font-size: 14px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.cta-band { background: linear-gradient(135deg, #eff6ff, #eef2ff); border: 1px solid #c7d2fe; border-radius: 14px; padding: 30px; text-align: center; margin-top: 22px; }
.cta-band h3 { font-size: 19px; margin-bottom: 8px; }
.cta-band p { color: var(--ink-3); font-size: 13.5px; margin-bottom: 16px; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; }
.stat-strip .st { text-align: center; padding: 18px 10px; background: var(--bg); border-radius: 12px; }
.stat-strip .st b { display: block; font-size: 25px; color: var(--primary); }
.stat-strip .st small { color: var(--ink-3); font-size: 12px; }
@media (max-width: 1024px) {
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid, .contact-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .doc-card { padding: 24px 18px; }
  .step-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .data-table { display: block; overflow-x: auto; }
}
