/* ==========================================================================
   云卡小铺 · 店铺前台样式
   ========================================================================== */

:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #111827;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e9ebf2;
  --line-strong: #d7dbe7;
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-soft: #eef2ff;
  --green: #12b76a;
  --green-soft: #ecfdf3;
  --amber: #f79009;
  --amber-soft: #fffaeb;
  --red: #e5484d;
  --red-soft: #fef3f2;
  --price: #e5484d;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 18px 40px -20px rgba(16, 24, 40, .25);
  --shadow-lg: 0 30px 60px -24px rgba(30, 27, 75, .35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
code, .mono { font-family: var(--mono); }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.icon { flex: none; vertical-align: -3px; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.container.narrow { width: min(920px, calc(100% - 48px)); }

.muted { color: var(--muted); }
.pre-line { white-space: pre-line; }
.text-danger { color: var(--red); font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, #5b54ee, #4f46e5 55%, #4338ca);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(79, 70, 229, .65);
}
.btn-primary:hover { box-shadow: 0 14px 26px -10px rgba(79, 70, 229, .75); }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--ink-2); }
.btn-ghost:hover { border-color: #b9bfd2; background: #fbfbfe; }
.btn-danger { background: var(--red); color: #fff; }
.btn-disabled { background: #e4e7ee; color: #98a2b3; cursor: not-allowed; }
.btn-lg { height: 50px; padding: 0 24px; border-radius: 13px; font-size: 15px; }
.btn-sm { height: 36px; padding: 0 13px; border-radius: 9px; font-size: 13px; }
.btn-xs { height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 500; }
.btn-block { width: 100%; }
.btn:disabled { transform: none; }
.icon-btn {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; border-radius: 9px; cursor: pointer; color: var(--muted);
  transition: all .15s ease;
}
.icon-btn:hover { color: var(--brand); border-color: #c7c9f7; background: var(--brand-soft); }
.icon-btn.danger:hover { color: var(--red); border-color: #f5c2c2; background: var(--red-soft); }
.link-danger {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}
.link-danger:hover { color: var(--red); }

/* ---------- 通用元素 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-dark); background: var(--brand-soft);
  border: 1px solid #dfe3ff; padding: 6px 12px; border-radius: 999px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.chip-soft { background: var(--brand-soft); border-color: #e2e5ff; color: var(--brand-dark); font-size: 12px; padding: 4px 10px; }
.chip-filter { cursor: pointer; transition: all .15s ease; }
.chip-filter:hover { border-color: #c7c9f7; color: var(--brand-dark); }
.chip-filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-filter span { opacity: .55; font-size: 12px; }
.chip-filter.is-active span { opacity: .7; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.alert {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 12px 14px; border-radius: 11px; font-size: 13.5px; line-height: 1.55;
  margin: 14px 0; border: 1px solid transparent;
}
.alert .icon { margin-top: 1px; }
.alert-err { background: var(--red-soft); border-color: #fbd5d5; color: #b42318; }
.alert-ok { background: var(--green-soft); border-color: #bbf7d0; color: #067647; }
.alert-warn { background: var(--amber-soft); border-color: #fde68a; color: #b54708; }
.alert-info { background: #eff8ff; border-color: #d1e9ff; color: #175cd3; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-pending { background: var(--amber-soft); color: #b54708; border: 1px solid #fde68a; }
.badge-paid { background: #eff8ff; color: #175cd3; border: 1px solid #d1e9ff; }
.badge-delivered { background: var(--green-soft); color: #067647; border: 1px solid #bbf7d0; }
.badge-cancelled { background: #f2f4f7; color: #667085; border: 1px solid #e4e7ec; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field small { font-size: 12px; color: var(--muted); line-height: 1.5; }
.field em { color: var(--red); font-style: normal; }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="number"], .field input[type="search"], .field input[type="url"],
.field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; font-size: 14px; outline: none; transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: #a5a3f5; box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.field textarea { resize: vertical; line-height: 1.65; }
.field.compact { margin-bottom: 10px; }
.field.compact input { padding: 9px 11px; font-size: 13px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(233, 235, 242, .9);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6d67f0, #4f46e5 60%, #4338ca);
  color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 14px -6px rgba(79, 70, 229, .8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 16px; letter-spacing: .01em; }
.brand-text small { font-size: 11px; color: var(--muted); margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  padding: 8px 13px; border-radius: 9px; font-size: 14px; color: var(--ink-2); font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: #f2f3f9; color: var(--ink); }
.nav-link.is-active { color: var(--brand-dark); background: var(--brand-soft); font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-contact { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }

/* ---------- 全站公告 ---------- */
.global-notice { background: #fffbeb; border-bottom: 1px solid #fde68a; color: #92400e; font-size: 13px; }
.global-notice .container { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 0; text-align: center; line-height: 1.55; }
.global-notice .icon { flex: none; color: #d97706; }

/* ---------- 公告弹窗 ---------- */
body.modal-open { overflow: hidden; }
.announcement-modal {
  position: fixed; inset: 0; z-index: 300; display: flex;
  align-items: center; justify-content: center; padding: 20px;
}
.announcement-modal[hidden] { display: none; }
.announcement-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.announcement-dialog {
  position: relative; width: min(440px, 100%); max-height: 82vh; overflow-y: auto;
  background: #fff; border-radius: 20px; padding: 28px 26px 24px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
  animation: announcement-in .2s ease-out;
}
.announcement-close {
  position: absolute; right: 14px; top: 12px; width: 34px; height: 34px;
  border: 0; background: #f4f5fa; border-radius: 50%; font-size: 22px; line-height: 1;
  color: #667085; cursor: pointer;
}
.announcement-close:hover { background: #e9ebf2; color: #111827; }
.announcement-icon {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-dark); margin-bottom: 14px;
}
.announcement-dialog h2 { font-size: 20px; letter-spacing: -.01em; margin-bottom: 10px; }
.announcement-body { white-space: pre-line; font-size: 14px; line-height: 1.8; color: var(--ink-2); margin-bottom: 20px; }
@keyframes announcement-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- 首页 Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 74px 0 0; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob-a { width: 520px; height: 520px; background: #c7d2fe; top: -180px; left: -80px; }
.blob-b { width: 440px; height: 440px; background: #fbcfe8; top: -80px; right: -120px; opacity: .4; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(79, 70, 229, .05) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(79, 70, 229, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-copy h1 {
  font-size: clamp(36px, 4.6vw, 58px); line-height: 1.14; letter-spacing: -.03em;
  margin: 20px 0 18px; font-weight: 800;
}
.grad-text {
  background: linear-gradient(100deg, #4f46e5 10%, #7c3aed 45%, #db2777 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 16px; color: var(--muted); max-width: 520px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-points { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; font-size: 13px; color: var(--muted); }
.hero-points span { display: inline-flex; align-items: center; gap: 5px; }
.hero-points .icon { color: var(--green); }

.hero-visual { position: relative; min-height: 330px; display: flex; align-items: center; justify-content: center; }
.glow-card {
  width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px; transform: rotate(-2deg);
  box-shadow: var(--shadow-lg); position: relative; z-index: 2;
}
.glow-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(99, 102, 241, .55), rgba(255, 255, 255, 0) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.glow-card-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18, 183, 106, .15); }
.glow-tag { margin-left: auto; font-size: 11px; color: var(--brand-dark); background: var(--brand-soft); padding: 3px 8px; border-radius: 6px; }
.glow-key {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  background: #0f172a; color: #a7f3d0; border-radius: 10px; padding: 12px 14px; margin-top: 12px;
}
.glow-key .icon { color: #64748b; }
.glow-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted); margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.glow-card-foot span { display: inline-flex; align-items: center; gap: 5px; }
.glow-status { color: var(--green); font-weight: 600; }
.float-badge {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 10px 14px;
  box-shadow: var(--shadow); font-size: 12px; line-height: 1.3;
}
.float-badge .icon { color: var(--brand); }
.float-badge strong { display: block; font-size: 12.5px; }
.float-badge small { color: var(--muted); font-size: 11px; }
.float-a { left: -18px; top: 6px; transform: rotate(-3deg); }
.float-b { right: -14px; bottom: 10px; transform: rotate(2deg); }
.float-b .icon { color: var(--amber); }

.hero-stats {
  position: relative; margin-top: 58px; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .75); border: 1px solid rgba(226, 229, 241, .9);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0;
  padding: 26px 20px; backdrop-filter: blur(8px);
}
.hero-stats > div { text-align: center; border-right: 1px solid var(--line); }
.hero-stats > div:last-child { border-right: 0; }
.hero-stats strong { display: block; font-size: 26px; letter-spacing: -.02em; font-weight: 800; }
.hero-stats span { font-size: 12.5px; color: var(--muted); }

.notice-bar {
  display: flex; align-items: center; gap: 10px; margin-top: 22px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  border-radius: 12px; padding: 12px 16px; font-size: 13.5px;
}

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; letter-spacing: -.02em; font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 6px; font-size: 14px; }
.search-form { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line-strong); border-radius: 11px; padding: 4px 4px 4px 12px; }
.search-form input { border: 0; outline: none; background: none; width: 190px; font-size: 13.5px; padding: 6px 0; }
.search-form .btn { background: #f4f5fa; }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-sm);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d9dbf0; }
.product-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eef0f8; }
.cover-img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .cover-img { transform: scale(1.035); }
.cover-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; position: relative; overflow: hidden;
}
.cover-placeholder::after {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); right: -60px; top: -70px;
}
.cover-glyph { font-size: 52px; font-weight: 800; color: rgba(255, 255, 255, .92); line-height: 1; text-shadow: 0 4px 20px rgba(0, 0, 0, .16); }
.cover-label { font-size: 9px; letter-spacing: .28em; color: rgba(255, 255, 255, .65); font-weight: 600; }
.tone-0 { background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #a855f7); }
.tone-1 { background: linear-gradient(135deg, #059669, #10b981 55%, #34d399); }
.tone-2 { background: linear-gradient(135deg, #ea580c, #f59e0b 60%, #fbbf24); }
.tone-3 { background: linear-gradient(135deg, #db2777, #ec4899 55%, #f472b6); }
.tone-4 { background: linear-gradient(135deg, #0369a1, #0ea5e9 55%, #38bdf8); }
.tone-5 { background: linear-gradient(135deg, #4338ca, #6d28d9 55%, #9333ea); }
.stock-pill {
  position: absolute; top: 12px; left: 12px; font-size: 11.5px; font-weight: 600;
  background: rgba(255, 255, 255, .9); color: var(--ink-2); padding: 4px 9px; border-radius: 999px;
  backdrop-filter: blur(6px); box-shadow: 0 2px 8px rgba(16, 24, 40, .08);
}
.stock-pill.low { background: #fff7ed; color: #c2410c; }
.soldout-mask {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .45); color: #fff; font-weight: 700; letter-spacing: .08em;
  backdrop-filter: blur(2px);
}
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 16px; font-weight: 700; margin: 9px 0 5px; line-height: 1.4; letter-spacing: -.01em; }
.product-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; min-height: 40px; }
.product-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; }
.price { color: var(--price); font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.price-symbol { font-size: 14px; font-weight: 700; margin-right: 1px; }
.buy-hint { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; color: var(--brand); font-weight: 600; }
.is-soldout .buy-hint { color: var(--muted); }
.is-soldout { opacity: .88; }

.empty-state { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }
.empty-state h3 { font-size: 18px; }
.empty-state p { color: var(--muted); margin: 6px 0 18px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-dark); margin-bottom: 16px; }
.feature-card h3 { font-size: 16px; margin-bottom: 7px; }
.feature-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-intro h2 { font-size: 30px; line-height: 1.25; letter-spacing: -.02em; margin: 16px 0 12px; font-weight: 800; }
.faq-intro p { color: var(--muted); font-size: 14px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 0 18px; }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 14.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--muted); line-height: 1; }
.faq-list details[open] summary::after { content: "−"; color: var(--brand); }
.faq-list details p { padding: 0 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.75; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 80px; background: #0e1220; color: #c7cbd9; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 54px 0 38px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: #8b93a7; }
.footer-brand p { color: #8b93a7; font-size: 13px; line-height: 1.75; margin: 16px 0; max-width: 340px; }
.footer-contacts { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: #9aa2b5; }
.footer-contacts span { display: flex; align-items: center; gap: 6px; }
.footer-col h4 { color: #fff; font-size: 13px; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: 12.5px; color: #9aa2b5; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0 26px; font-size: 11.5px; color: #6f7890;
}

/* ---------- 面包屑 ---------- */
.breadcrumb { display: flex; align-items: center; gap: 7px; padding: 26px 0 18px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .icon { color: #b6bcc9; }

/* ---------- 商品详情 ---------- */
.product-detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: start; padding-bottom: 20px; }
.detail-left { min-width: 0; }
.detail-cover { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: #eef0f8; box-shadow: var(--shadow); }
.detail-cover .cover-glyph { font-size: 96px; }
.detail-panel { margin-top: 20px; padding: 6px 24px 24px; }
.panel-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.panel-tabs span { padding: 14px 0; font-size: 14px; font-weight: 600; color: var(--muted); position: relative; }
.panel-tabs span.is-active { color: var(--ink); }
.panel-tabs span.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); border-radius: 2px; }
.detail-desc { white-space: pre-line; font-size: 14px; line-height: 1.85; color: var(--ink-2); min-height: 80px; }
.detail-notes { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 18px; }
.detail-notes h4 { font-size: 13.5px; margin-bottom: 8px; }
.detail-notes ul { list-style: disc; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.detail-buy { position: sticky; top: 94px; display: flex; flex-direction: column; gap: 16px; }
.buy-card { padding: 24px; }
.buy-card h1 { font-size: 23px; line-height: 1.35; margin: 10px 0 8px; letter-spacing: -.01em; }
.buy-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); }
.buy-meta span { display: inline-flex; align-items: center; gap: 4px; }
.buy-meta .icon { color: var(--green); }
.buy-price { font-size: 36px; font-weight: 800; color: var(--price); letter-spacing: -.03em; margin: 18px 0 6px; line-height: 1; }
.buy-price small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 4px; letter-spacing: 0; }
.buy-form { margin-top: 18px; }
.stepper { display: flex; align-items: center; width: 132px; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; height: 42px; }
.stepper button { width: 38px; height: 100%; border: 0; background: #f7f8fc; cursor: pointer; font-size: 18px; color: var(--ink-2); }
.stepper button:hover { background: #eef0f8; }
.stepper input { width: 54px; height: 100%; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; outline: none; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-total { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px dashed var(--line); margin-top: 4px; }
.buy-total span { font-size: 13px; color: var(--muted); }
.buy-total strong { font-size: 24px; color: var(--price); letter-spacing: -.02em; }
.cf-turnstile { margin: 10px 0 4px; }
.buy-tip { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.buy-form .buy-tip { margin-top: 12px; }
.pay-logos { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.pay-logo { border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font-size: 11px; background: #fafbfe; }
.pay-logo.test { color: var(--amber); border-color: #fde68a; background: var(--amber-soft); }
.related-card { padding: 20px; }
.related-card h4 { font-size: 13.5px; margin-bottom: 12px; }
.related-item { display: flex; align-items: center; gap: 11px; padding: 8px 0; border-top: 1px solid var(--line); }
.related-item:first-of-type { border-top: 0; }
.related-thumb { width: 46px; height: 46px; border-radius: 9px; overflow: hidden; flex: none; background: #eef0f8; }
.related-thumb .cover-glyph { font-size: 20px; }
.related-thumb .cover-label { display: none; }
.related-item div:last-child { display: flex; flex-direction: column; min-width: 0; }
.related-item strong { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-item span { font-size: 11.5px; color: var(--muted); }
.related-item:hover strong { color: var(--brand); }

/* ---------- 支付页 ---------- */
.pay-page { padding-top: 22px; padding-bottom: 30px; }
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; font-size: 12.5px; }
.back-link { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.back-link:hover { color: var(--ink); }
.back-link .icon { transform: rotate(180deg); }
.pay-layout { display: grid; grid-template-columns: 1.35fr .9fr; gap: 20px; align-items: start; }
.pay-main { padding: 26px; }
.steps { display: flex; gap: 8px; margin-bottom: 26px; }
.step { flex: 1; display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfbfe; }
.step-dot { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #eef0f6; color: var(--muted); font-size: 12px; font-weight: 700; flex: none; }
.step strong { display: block; font-size: 12.5px; line-height: 1.3; }
.step small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.step.is-done { border-color: #d1fadf; background: var(--green-soft); }
.step.is-done .step-dot { background: var(--green); color: #fff; }
.step.is-current { border-color: #dbe0ff; background: var(--brand-soft); }
.step.is-current .step-dot { background: var(--brand); color: #fff; }
.pay-title h1 { font-size: 24px; letter-spacing: -.02em; }
.pay-title p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.order-product { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fbfbfe; }
.order-thumb { width: 62px; height: 62px; border-radius: 10px; overflow: hidden; flex: none; background: #eef0f8; }
.order-thumb .cover-glyph { font-size: 26px; }
.order-thumb .cover-label { display: none; }
.order-product-info { display: flex; flex-direction: column; min-width: 0; }
.order-product-info strong { font-size: 14.5px; }
.order-product-info span { font-size: 12px; color: var(--muted); margin-top: 3px; }
.order-product-amount { margin-left: auto; font-weight: 700; font-size: 15px; }
.kv-list { display: flex; flex-direction: column; }
.kv-list > div { display: flex; justify-content: space-between; gap: 24px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.kv-list > div:last-child { border-bottom: 0; }
.kv-list dt { color: var(--muted); flex: none; }
.kv-list dd { text-align: right; overflow-wrap: anywhere; }
.pay-actions-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pay-actions-foot form { margin: 0; }
.pay-actions-foot .icon { margin-right: 3px; }
.pay-side { padding: 24px; position: sticky; top: 94px; }
.pay-amount { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pay-amount span { font-size: 13px; color: var(--muted); }
.pay-amount strong { font-size: 34px; letter-spacing: -.03em; color: var(--price); }
.test-banner { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 13px; border-radius: 11px; background: var(--amber-soft); border: 1px dashed #fcd34d; color: #92400e; font-size: 12px; line-height: 1.6; }
.test-banner strong { display: block; font-size: 12.5px; }
.test-banner span { color: #a16207; }
.test-banner .icon { margin-top: 2px; flex: none; }
.test-form { margin-top: 12px; }
.pay-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: #98a2b3; font-size: 11.5px; }
.pay-divider::before, .pay-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.manual-grid { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; }
.pay-qr { width: 150px; height: 150px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; }
.qr-placeholder { width: 150px; height: 150px; border: 1px dashed var(--line-strong); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #98a2b3; font-size: 11px; text-align: center; background: #fbfbfe; }
.manual-info { min-width: 0; }
.manual-info > strong { display: block; font-size: 13px; margin-bottom: 6px; }
.manual-info .pre-line { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.payer-note { margin-top: 8px; font-size: 12px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 7px; padding: 6px 9px; }
.manual-info .muted { font-size: 11.5px; margin: 10px 0; }
.manual-form { margin-top: 12px; }
.usdt-pay { margin-top: 4px; }
.usdt-pay-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.usdt-pay-head strong { display: block; font-size: 14px; }
.usdt-pay-head small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.usdt-amount { font-size: 22px; font-weight: 800; color: var(--price); white-space: nowrap; letter-spacing: -.02em; }
.usdt-amount small { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.usdt-box { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.usdt-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 12.5px; }
.usdt-row > span { color: var(--muted); flex: none; }
.usdt-row strong { text-align: right; overflow-wrap: anywhere; }
.usdt-address { display: flex; align-items: center; gap: 6px; justify-content: flex-end; min-width: 0; }
.usdt-address > span { color: var(--muted); flex: none; }
.usdt-address code { font-size: 11.5px; word-break: break-all; text-align: right; }
.usdt-address .icon-btn { width: 26px; height: 26px; flex: none; }
.usdt-warn { display: flex; align-items: flex-start; gap: 5px; font-size: 11.5px; color: #b54708; background: var(--amber-soft); border: 1px solid #fde68a; border-radius: 8px; padding: 7px 9px; margin: 8px 0; line-height: 1.5; }
.usdt-warn .icon { flex: none; margin-top: 1px; }
.manual-wait { text-align: center; padding-top: 14px; }
.manual-wait .manual-grid { text-align: left; margin-top: 18px; }
.manual-wait h3 { margin: 10px 0 5px; font-size: 18px; }
.manual-wait > p { color: var(--muted); font-size: 13px; }
.state-icon { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.state-green, .state-success { background: var(--green-soft); color: var(--green); }
.state-amber { background: var(--amber-soft); color: var(--amber); }
.state-gray { background: #f2f4f7; color: #667085; }
.pay-state { text-align: center; padding: 18px 0 6px; }
.pay-state h3 { margin: 12px 0 5px; font-size: 18px; }
.pay-state p { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.pay-state .btn { margin-top: 4px; }

/* ---------- 订单成功页 ---------- */
.order-page { padding-top: 30px; padding-bottom: 40px; }
.success-card { text-align: center; padding: 34px 26px; }
.success-card h1 { font-size: 24px; margin: 14px 0 6px; letter-spacing: -.01em; }
.success-card > p { color: var(--muted); font-size: 13.5px; max-width: 520px; margin: 0 auto; }
.success-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.success-meta code { background: #f4f5fa; padding: 2px 7px; border-radius: 5px; color: var(--ink-2); }
.success-meta strong { color: var(--price); }
.keys-card { margin-top: 18px; padding: 22px; }
.keys-box { background: #0f172a; border-radius: 14px; padding: 18px; color: #e2e8f0; }
.keys-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.keys-head > div { display: flex; flex-direction: column; }
.keys-head strong { display: flex; align-items: center; gap: 7px; font-size: 14px; color: #fff; }
.keys-head span { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }
.keys-head .btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #e2e8f0; }
.keys-head .btn:hover { background: rgba(255, 255, 255, .14); }
.key-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; background: rgba(255, 255, 255, .04); margin-top: 7px; }
.key-index { font-size: 10px; color: #64748b; font-family: var(--mono); width: 20px; flex: none; }
.key-row code { flex: 1; font-size: 13px; letter-spacing: .04em; color: #a7f3d0; word-break: break-all; }
.key-row .icon-btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #94a3b8; width: 30px; height: 30px; }
.key-row .icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.keys-warning { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: #b54708; background: var(--amber-soft); border: 1px solid #fde68a; border-radius: 9px; padding: 10px 12px; margin-top: 14px; }
.order-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.order-columns .card { padding: 22px; }
.card-title { font-size: 15px; margin-bottom: 12px; }
.timeline { position: relative; padding-left: 4px; }
.timeline-item { display: flex; gap: 12px; padding: 0 0 18px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: -2px; width: 1px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); flex: none; margin-top: 4px; position: relative; z-index: 1; }
.timeline-item strong { display: block; font-size: 12.5px; font-weight: 600; }
.timeline-item small { font-size: 11px; color: var(--muted); }
.order-help { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.order-help strong { font-size: 12.5px; }
.order-help p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.order-next { margin-top: 18px; padding: 22px; text-align: center; }
.order-next h3 { font-size: 17px; }
.order-next p { color: var(--muted); font-size: 13px; margin: 5px 0 15px; }

/* ---------- 订单查询 ---------- */
.query-page { padding-top: 40px; padding-bottom: 40px; }
.query-head { text-align: center; margin-bottom: 24px; }
.query-head h1 { font-size: 30px; letter-spacing: -.02em; margin: 12px 0 6px; }
.query-head p { color: var(--muted); font-size: 14px; }
.query-card { padding: 26px; }
.query-form { max-width: 520px; margin: 0 auto; }
.query-result { margin-top: 20px; padding: 24px; }
.query-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.query-result-head .muted { font-size: 11.5px; }
.query-result-head h2 { font-size: 20px; margin-top: 2px; }
.query-result .keys-box { margin-top: 18px; }
.query-next { margin-top: 16px; text-align: center; }
.query-next p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.query-tips { margin-top: 24px; padding: 0 6px; }
.query-tips h3 { font-size: 14px; margin-bottom: 8px; }
.query-tips ul { list-style: disc; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.9; }

/* ---------- 错误页 ---------- */
.error-page { text-align: center; padding: 80px 0; }
.error-code { font-size: 78px; font-weight: 800; letter-spacing: -.05em; background: linear-gradient(120deg, #4f46e5, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.error-page h1 { font-size: 24px; margin: 14px 0 8px; }
.error-page p { color: var(--muted); font-size: 14px; }
.error-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: #111827; color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 200;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .4); max-width: 90vw;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.flip-x { transform: scaleX(-1); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 260px; max-width: 480px; }
  .float-a { left: 0; }
  .float-b { right: 0; }
  .product-detail { grid-template-columns: 1fr; }
  .detail-buy { position: static; }
  .pay-layout { grid-template-columns: 1fr; }
  .pay-side { position: static; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-col:last-child { display: none; }
}

@media (max-width: 820px) {
  .container, .container.narrow { width: calc(100% - 32px); }
  .header-inner { height: 64px; gap: 14px; }
  .main-nav { display: none; }
  .header-contact { display: none; }
  .hero { padding-top: 44px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 36px; padding: 18px 10px; border-radius: 18px 18px 0 0; }
  .hero-stats > div { padding: 10px 0; border-right: 0; }
  .hero-stats > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .hero-stats strong { font-size: 21px; }
  .section { padding-top: 52px; }
  .section-head h2 { font-size: 23px; }
  .search-form input { width: 130px; }
  .feature-grid { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 0 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { display: block; }
  .steps { flex-direction: column; }
  .order-columns { grid-template-columns: 1fr; }
  .pay-main, .pay-side { padding: 20px; }
  .success-card { padding: 26px 18px; }
  .keys-card { padding: 16px; }
  .keys-box { padding: 14px; }
  .query-card { padding: 20px; }
}

@media (max-width: 560px) {
  .brand-text small { display: none; }
  .hero-copy h1 { font-size: 36px; }
  .hero-sub { font-size: 14.5px; }
  .hero-actions .btn { flex: 1; }
  .float-a, .float-b { display: none; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .product-body { padding: 12px 13px 14px; }
  .product-name { font-size: 14px; }
  .product-desc { display: none; }
  .price { font-size: 19px; }
  .buy-hint { font-size: 11px; }
  .product-foot { margin-top: 10px; }
  .stock-pill { font-size: 10.5px; padding: 3px 7px; }
  .detail-cover .cover-glyph { font-size: 64px; }
  .manual-grid { grid-template-columns: 1fr; }
  .pay-qr, .qr-placeholder { width: 100%; max-width: 220px; height: auto; aspect-ratio: 1; }
  .pay-qr { max-height: 220px; }
  .kv-list > div { gap: 12px; }
  .order-product { flex-wrap: wrap; }
  .order-product-amount { margin-left: 0; width: 100%; }
  .success-meta { flex-direction: column; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}
