/* =========================================================
   自动发卡系统 · 前台样式
   设计基准：扁平 + 大圆角 + 轻投影（类 Apple 商业站风格）
   ========================================================= */

:root {
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-soft: #f2f2f4;
  --bg-muted: #ececf0;
  --text: #1d1d1f;
  --text-2: #424245;
  --muted: #6e6e73;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --accent: #0071e3;
  --accent-hover: #0067d2;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --success: #2f8f6f;
  --success-soft: rgba(47, 143, 111, 0.12);
  --warning: #b06b00;
  --warning-soft: rgba(176, 107, 0, 0.12);
  --danger: #c9342f;
  --danger-soft: rgba(201, 52, 47, 0.1);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-1: 0 10px 24px -18px rgba(0, 0, 0, 0.28);
  --shadow-2: 0 24px 52px -32px rgba(0, 0, 0, 0.35);
  --shadow-3: 0 36px 76px -40px rgba(0, 0, 0, 0.4);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text", "PingFang SC",
    "Helvetica Neue", "Microsoft YaHei", Inter, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --nav-h: 68px;
  --max: 1180px;
}

html[data-theme="dark"] {
  --bg: #000000;
  --bg-elevated: #1c1c1e;
  --bg-soft: #2c2c2e;
  --bg-muted: #242426;
  --text: #f5f5f7;
  --text-2: #d2d2d7;
  --muted: #8e8e93;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.24);
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --accent-soft: rgba(10, 132, 255, 0.18);
  --success: #30d158;
  --success-soft: rgba(48, 209, 88, 0.16);
  --warning: #ffd60a;
  --warning-soft: rgba(255, 214, 10, 0.16);
  --danger: #ff453a;
  --danger-soft: rgba(255, 69, 58, 0.16);
  --shadow-1: 0 14px 30px -22px rgba(0, 0, 0, 0.72);
  --shadow-2: 0 24px 48px -28px rgba(0, 0, 0, 0.78);
  --shadow-3: 0 36px 76px -34px rgba(0, 0, 0, 0.84);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --bg: #000000;
    --bg-elevated: #1c1c1e;
    --bg-soft: #2c2c2e;
    --bg-muted: #242426;
    --text: #f5f5f7;
    --text-2: #d2d2d7;
    --muted: #8e8e93;
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.24);
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --accent-soft: rgba(10, 132, 255, 0.18);
    --success: #30d158;
    --success-soft: rgba(48, 209, 88, 0.16);
    --warning: #ffd60a;
    --warning-soft: rgba(255, 214, 10, 0.16);
    --danger: #ff453a;
    --danger-soft: rgba(255, 69, 58, 0.16);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
.small { font-size: 12.5px; }
.muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-warn { color: var(--warning); }
.text-ok { color: var(--success); }

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 72px;
}

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-elevated) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #0071e3, #30d158);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 17px;
  box-shadow: 0 8px 18px -10px rgba(0, 113, 227, 0.9);
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 15.5px; letter-spacing: -0.01em; }
.brand-text small { font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text-2);
  transition: background 0.18s, color 0.18s;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--text); }
.nav-links a.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: 0.18s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 11px 20px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.16s, background 0.18s, box-shadow 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.985); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px -16px rgba(0, 113, 227, 0.9);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); background: var(--bg-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------------- 首屏 ---------------- */
.hero { padding: 46px 0 26px; }
.hero-inner { max-width: 860px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-1);
}
.hero-eyebrow i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.16);
}
.hero h1 {
  margin: 22px 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero h1 .grad {
  background: linear-gradient(96deg, #0071e3 10%, #30d158 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 17px; color: var(--muted); max-width: 620px; }
.hero-actions { display: flex; gap: 12px; margin: 26px 0 34px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
}
.stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-1);
}
.stat b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.stat span { font-size: 12.5px; color: var(--muted); }

/* ---------------- 公告 ---------------- */
.notice {
  margin: 8px 0 4px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-1);
}
.notice-tag {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 7px;
}
.notice p { font-size: 13.5px; color: var(--text-2); flex: 1; }
.notice-close { color: var(--muted); font-size: 20px; line-height: 1; padding: 0 4px; }

/* ---------------- 区块 ---------------- */
.section { margin-top: 54px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-title { font-size: 26px; letter-spacing: -0.02em; }
.section-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.search { display: flex; gap: 8px; }
.search input {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 11px;
  padding: 9px 14px;
  font-size: 13.5px;
  min-width: 210px;
  outline: none;
  transition: 0.18s;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: 0.18s;
}
.chip:hover { border-color: var(--border-strong); }
.chip.active { background: var(--text); color: var(--bg-elevated); border-color: transparent; font-weight: 600; }
.chip-cnt { font-size: 11px; opacity: 0.66; }

/* ---------------- 商品卡片 ---------------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s, border-color 0.22s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-strong);
}
.pc-cover-wrap { position: relative; }
.pc-cover {
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: var(--bg-soft);
}
.pc-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-text { display: grid; place-items: center; }
.cover-text span {
  font-size: 34px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: -0.02em;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}
.pc-badge {
  position: absolute;
  left: 12px; top: 12px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 7px;
  backdrop-filter: blur(8px);
}
.pc-badge.auto { background: rgba(48, 209, 88, 0.92); color: #05310f; }
.pc-badge.manual { background: rgba(255, 159, 10, 0.94); color: #3d2400; }
.pc-soldout {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 15px;
}
.pc-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-title { font-size: 15.5px; letter-spacing: -0.01em; line-height: 1.35; }
.pc-desc {
  font-size: 12.5px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}
.pc-meta { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.pc-sales { font-size: 12px; color: var(--muted); }
.stock-badge {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.stock-badge.ok { background: var(--success-soft); color: var(--success); }
.stock-badge.warn { background: var(--warning-soft); color: var(--warning); }
.stock-badge.out { background: var(--danger-soft); color: var(--danger); }
.pc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-price { display: flex; align-items: baseline; gap: 7px; }
.price { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.price-old { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.pc-cta { font-size: 12.5px; color: var(--accent); font-weight: 600; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 26px; }
.pager-item {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.pager-item:hover { border-color: var(--border-strong); }
.pager-item.active { background: var(--text); color: var(--bg-elevated); border-color: transparent; font-weight: 600; }
.pager-item.disabled { opacity: 0.45; }
.pager-info { font-size: 12.5px; color: var(--muted); margin-left: 6px; }

/* ---------------- 空状态 ---------------- */
.empty {
  text-align: center;
  padding: 54px 24px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
}
.empty-icon { font-size: 34px; margin-bottom: 10px; }
.empty h3 { font-size: 17px; color: var(--text); margin-bottom: 6px; }
.empty p { font-size: 13.5px; }
.small-empty { padding: 30px 18px; border-style: solid; }
.small-empty h4 { color: var(--text); font-size: 15px; margin-bottom: 6px; }

/* ---------------- FAQ ---------------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-1);
}
.faq-item summary {
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; color: var(--muted); font-weight: 400; }
.faq-item[open] summary::after { content: "－"; }
.faq-item p { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

/* ---------------- 页脚 ---------------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 24px 26px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}
.footer-desc { font-size: 13px; color: var(--muted); margin: 14px 0; max-width: 420px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.footer-contact a { color: var(--accent); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-cols h4 { font-size: 13px; margin-bottom: 10px; }
.footer-cols a { display: block; font-size: 13px; color: var(--muted); padding: 3px 0; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.mobile-nav { display: none; }

/* ---------------- 面包屑 ---------------- */
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.crumb a:hover { color: var(--accent); }
.crumb b { color: var(--text-2); font-weight: 500; }

/* ---------------- 商品详情 ---------------- */
.product-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 34px;
  align-items: start;
}
.product-cover { position: sticky; top: calc(var(--nav-h) + 20px); }
.pd-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-2);
}
.pd-cover img { width: 100%; height: 100%; object-fit: cover; }
.pd-cover.cover-text span { font-size: 62px; }
.pd-trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.pd-trust span {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 6px 11px;
  border-radius: 999px;
}
.product-info { display: flex; flex-direction: column; gap: 18px; }
.pd-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.pd-title { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; letter-spacing: -0.025em; }
.pd-sub { font-size: 14.5px; color: var(--muted); }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pd-price { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.save-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--danger);
  background: var(--danger-soft);
  padding: 3px 8px;
  border-radius: 6px;
}
.pd-sales { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.pd-block { display: flex; flex-direction: column; gap: 10px; }
.pd-label { font-size: 13px; color: var(--muted); }
.sku-list { display: flex; gap: 10px; flex-wrap: wrap; }
.sku {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  text-align: left;
  transition: 0.18s;
  min-width: 116px;
}
.sku:hover { border-color: var(--border-strong); }
.sku.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sku.disabled { opacity: 0.45; cursor: not-allowed; }
.sku-name { font-size: 14px; font-weight: 600; }
.sku-price { font-size: 12.5px; color: var(--accent); }
.sku-stock { font-size: 11.5px; color: var(--muted); }
.buy-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg-elevated);
  overflow: hidden;
}
.qty-btn {
  width: 40px;
  height: 42px;
  font-size: 18px;
  color: var(--text-2);
  transition: background 0.15s;
}
.qty-btn:hover { background: var(--bg-soft); }
.qty-input {
  width: 54px;
  height: 42px;
  text-align: center;
  border: none;
  background: transparent;
  outline: none;
  font-weight: 600;
}
.qty-hint { font-size: 12.5px; color: var(--muted); }
.pd-total { font-size: 14px; color: var(--muted); }
.pd-total b { font-size: 21px; color: var(--text); margin-left: 6px; }
.pd-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.pd-info div { display: flex; gap: 14px; font-size: 13px; }
.pd-info b { flex: 0 0 72px; color: var(--muted); font-weight: 500; }
.pd-info span { color: var(--text-2); }

/* ---------------- 面板 / 表单 ---------------- */
.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-1);
}
.panel-title {
  font-size: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.desc-panel { max-width: 900px; }
.desc { font-size: 14.5px; line-height: 1.85; color: var(--text-2); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.field label em { color: var(--danger); font-style: normal; }
.field-hint { font-size: 12px; color: var(--muted); }
.input {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 11px;
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
  transition: 0.18s;
  width: 100%;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--bg-elevated); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }

/* 联系方式类型选择 */
.contact-types { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: 0.18s;
}
.contact-type input { accent-color: var(--accent); }
.contact-type:hover { border-color: var(--border-strong); }
.contact-type.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--bg-elevated);
  color: var(--text);
}
.hero-line2 { display: inline-block; }

/* ---------------- 结算 ---------------- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: start;
}
.summary-item {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.summary-cover {
  width: 74px;
  height: 74px;
  border-radius: 13px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--bg-soft);
}
.summary-cover img { width: 100%; height: 100%; object-fit: cover; }
.summary-cover.cover-text span { font-size: 26px; }
.summary-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.summary-name { font-size: 15px; font-weight: 600; }
.summary-sku { font-size: 12.5px; color: var(--muted); }
.summary-price { font-size: 14px; color: var(--accent); font-weight: 600; margin-top: 2px; }
.summary-price span { color: var(--muted); font-weight: 400; font-size: 12px; }
.pay-methods { display: flex; flex-direction: column; gap: 9px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: 0.18s;
  background: var(--bg);
}
.pay-method:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--bg-elevated); }
.pay-method input { accent-color: var(--accent); }
.pay-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}
.pay-icon.alipay { background: #1677ff; }
.pay-icon.wxpay { background: #07c160; }
.pay-icon.qqpay { background: #12b7f5; }
.pay-text { display: flex; flex-direction: column; line-height: 1.35; }
.pay-text b { font-size: 14px; }
.pay-text small { font-size: 12px; color: var(--muted); }
.side-panel { position: sticky; top: calc(var(--nav-h) + 20px); }
.side-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted);
  padding: 7px 0;
}
.side-row b { color: var(--text-2); font-weight: 600; }
.side-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 14px;
  margin-bottom: 18px;
  font-size: 14px;
}
.side-total b { font-size: 26px; letter-spacing: -0.02em; }
.side-note { font-size: 11.5px; color: var(--muted); margin-top: 12px; line-height: 1.7; }
.side-trust {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------------- 支付页 ---------------- */
.pay-wrap { display: flex; justify-content: center; padding: 30px 0; }
.pay-panel { max-width: 470px; width: 100%; text-align: center; padding: 34px 28px; }
.pay-spinner {
  width: 46px; height: 46px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pay-title { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.01em; }
.pay-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.pay-tip {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 18px;
  text-align: left;
  line-height: 1.7;
}
.pay-panel .btn + .btn { margin-top: 10px; }
.pay-meta { font-size: 11.5px; color: var(--muted); margin-top: 16px; }
.pay-result-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 26px;
  margin: 0 auto 16px;
}
.pay-result-icon.ok { background: var(--success-soft); color: var(--success); }
.pay-result-icon.wait { background: var(--warning-soft); color: var(--warning); }

/* ---------------- 订单 ---------------- */
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.order-kicker { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.order-no {
  font-size: clamp(20px, 2.6vw, 27px);
  letter-spacing: -0.01em;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.order-time { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.status-pill {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
}
.status-pill.pending { background: var(--warning-soft); color: var(--warning); }
.status-pill.ok { background: var(--success-soft); color: var(--success); }
.status-pill.warn { background: var(--warning-soft); color: var(--warning); }
.status-pill.muted { background: var(--bg-soft); color: var(--muted); }
.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}
.kv:last-child { border-bottom: none; }
.kv span { color: var(--muted); flex: 0 0 auto; }
.kv b { font-weight: 600; text-align: right; word-break: break-all; }
.save-tip {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.7;
  background: var(--warning-soft);
  color: var(--warning);
  border-radius: 10px;
  padding: 11px 14px;
}
.card-list { display: flex; flex-direction: column; gap: 9px; }
.card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 13px;
}
.card-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-no, .card-pwd { word-break: break-all; font-size: 13px; }
.card-pwd { color: var(--muted); }
.card-remark { font-size: 11.5px; color: var(--muted); }
.copy-btn {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 7px;
  padding: 5px 10px;
  transition: 0.18s;
}
.copy-btn:hover { background: var(--accent); color: #fff; }
.pay-now {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.pay-now h3 { font-size: 16px; margin-bottom: 5px; }
.pay-now p { font-size: 13.5px; color: var(--muted); }
.pay-now-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.help-panel { margin-top: 20px; }
.help-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }

/* ---------------- 查单 ---------------- */
.query-wrap { max-width: 640px; margin: 30px auto; }
.query-head { text-align: center; margin-bottom: 24px; }
.query-head h1 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.02em; margin-bottom: 8px; }
.query-head p { font-size: 14px; color: var(--muted); }
.query-form { padding: 26px; }
.query-help { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.7; }
.query-tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.query-tips div {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.query-tips b { font-size: 13px; }
.query-tips span { font-size: 11.5px; color: var(--muted); }

/* ---------------- 提示 ---------------- */
.alert {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  line-height: 1.7;
}
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 24%, transparent); }
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 24%, transparent); }
.alert-info { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 24%, transparent); }
.alert-warn { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 26%, transparent); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-wrap { grid-template-columns: 1fr; gap: 24px; }
  .product-cover { position: static; }
  .checkout-grid { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .order-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 768px) {
  .page { padding: 20px 16px 90px; }
  .nav-inner { padding: 0 16px; gap: 12px; }
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .hero { padding: 26px 0 10px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section { margin-top: 38px; }
  .section-title { font-size: 22px; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pc-body { padding: 12px; }
  .pc-title { font-size: 14px; }
  .price { font-size: 17px; }
  .faq-grid, .query-tips { grid-template-columns: 1fr; }
  .footer-inner { padding: 30px 16px 20px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { padding: 14px 16px 84px; flex-direction: column; }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: var(--muted);
    padding: 4px 14px;
    border-radius: 10px;
  }
  .mobile-nav a.active { color: var(--accent); }
  .mobile-nav svg { width: 21px; height: 21px; }
  .pay-now { flex-direction: column; align-items: stretch; }
  .pay-now-actions .btn { flex: 1; }
  .order-head { flex-direction: column; }
  .panel { padding: 18px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 30px; }
  .grid-products { grid-template-columns: 1fr 1fr; }
  .pc-desc { display: none; }
}
