/* aijuzi 前台与后台共用样式。浅色为默认，[data-theme=dark] 或系统深色时切换 */
:root {
  --bg: #f6f5f2;
  --bg2: #ffffff;
  --card: #ffffff;
  --line: #e7e3dc;
  --line2: #d8d2c8;
  --text: #1b1a17;
  --muted: #6f6a61;
  --faint: #9a948a;
  --brand: #ff7a1a;
  --brand-ink: #c2520a;
  --brand-soft: #fff1e6;
  --ok: #18a058;
  --ok-soft: #e7f6ee;
  --warn: #c98a00;
  --warn-soft: #fff6dc;
  --bad: #d14343;
  --bad-soft: #fdecec;
  --info: #2f6fed;
  --info-soft: #e9f0fe;
  --shadow: 0 1px 2px rgba(30, 20, 10, .04), 0 6px 24px rgba(30, 20, 10, .06);
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12110f; --bg2: #1a1916; --card: #1c1b18; --line: #2e2b26; --line2: #3b372f;
    --text: #f1ede6; --muted: #a8a196; --faint: #7d776d;
    --brand: #ff8a33; --brand-ink: #ffad6b; --brand-soft: #2c1d10;
    --ok: #3ccf82; --ok-soft: #12261b; --warn: #f0b429; --warn-soft: #2a2210;
    --bad: #f07070; --bad-soft: #2c1515; --info: #6f9bff; --info-soft: #141d33;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12110f; --bg2: #1a1916; --card: #1c1b18; --line: #2e2b26; --line2: #3b372f;
  --text: #f1ede6; --muted: #a8a196; --faint: #7d776d;
  --brand: #ff8a33; --brand-ink: #ffad6b; --brand-soft: #2c1d10;
  --ok: #3ccf82; --ok-soft: #12261b; --warn: #f0b429; --warn-soft: #2a2210;
  --bad: #f07070; --bad-soft: #2c1515; --info: #6f9bff; --info-soft: #141d33;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
main.wrap { flex: 1; padding-block: 28px 64px; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-in { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 19px; letter-spacing: -.01em; }
.logo b { color: var(--brand); font-weight: 800; }
.logo-mark {
  width: 24px; height: 24px; border-radius: 50%; flex: none; position: relative;
  background: radial-gradient(circle at 34% 34%, #ffb36b 0 18%, transparent 19%), var(--brand);
}
.logo-mark::after {
  content: ""; position: absolute; width: 11px; height: 7px; right: -1px; top: -4px;
  background: #2fb36a; border-radius: 0 100% 0 100%; transform: rotate(-12deg);
}
.logo.small { font-size: 16px; }
.logo.small .logo-mark { width: 20px; height: 20px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 7px 13px; border-radius: 999px; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: background .15s, color .15s; }
.nav a:hover { color: var(--text); background: var(--line); }
.nav a.on { color: var(--brand-ink); background: var(--brand-soft); }
.theme-btn { border: 1px solid var(--line); background: var(--card); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--muted); flex: none; }
.theme-btn:hover { color: var(--text); }

/* ---------- 通用 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 650; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .06s, background .15s, border-color .15s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-ghost { background: var(--card); border-color: var(--line2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--text); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-danger { background: var(--card); border-color: var(--line2); color: var(--bad); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 22px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--line); color: var(--muted); white-space: nowrap; }
.chip.brand { background: var(--brand-soft); color: var(--brand-ink); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info { background: var(--info-soft); color: var(--info); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--line2); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
.spinner.sm { width: 14px; height: 14px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-loading { display: grid; place-items: center; min-height: 40vh; }
.section-title { font-size: 22px; font-weight: 750; letter-spacing: -.01em; margin: 0 0 6px; }
.section-sub { color: var(--muted); margin: 0 0 22px; }
.notice-box { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 70%, var(--text)); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); font-size: 14px; }
.notice-box.info { background: var(--info-soft); color: color-mix(in srgb, var(--info) 60%, var(--text)); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.notice-box.ok { background: var(--ok-soft); color: color-mix(in srgb, var(--ok) 60%, var(--text)); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.notice-box strong { display: block; margin-bottom: 2px; }
.notice-box p { margin: 0; white-space: pre-line; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- 首页 ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 34px 0 40px; }
.hero h1 { font-size: clamp(27px, 4.6vw, 48px); line-height: 1.12; letter-spacing: -.025em; margin: 14px 0 16px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 16.5px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: 13.5px; }
.hero-points span { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg { color: var(--ok); }
.hero-visual { position: relative; aspect-ratio: 1 / 1; }
.hv-card { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 18px; }
.hv-1 { left: 0; top: 2%; width: 78%; }
.hv-2 { right: 0; top: 50%; width: 62%; }
.hv-3 { left: 6%; bottom: 2%; width: 52%; }
.hv-row { display: flex; align-items: center; gap: 12px; }
.hv-row + .hv-row { margin-top: 10px; }
.hv-title { font-weight: 700; font-size: 14.5px; }
.hv-sub { font-size: 12.5px; color: var(--muted); }
.hv-price { margin-left: auto; font-weight: 800; font-family: var(--mono); }
.brand-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; }
.brand-ico svg { width: 22px; height: 22px; }
.bi-chatgpt { background: #10a37f; }
.bi-claude { background: #d97757; }
.bi-gemini { background: linear-gradient(135deg, #4285f4, #9b72cb); }
.bi-grok { background: #111; }
.bi-other { background: var(--brand); }
.progress-line { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 12px; }
.progress-line i { display: block; height: 100%; width: 72%; background: var(--ok); border-radius: 3px; }

.announce { margin: 0 0 30px; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 52px; }
.benefit { padding: 18px; }
.benefit .b-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 12px; }
.benefit h3 { margin: 0 0 4px; font-size: 15.5px; }
.benefit p { margin: 0; color: var(--muted); font-size: 13.5px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; margin-bottom: 52px; }
.step { padding: 18px; position: relative; counter-increment: s; }
.step::before { content: counter(s); font: 800 13px/1 var(--mono); color: var(--brand-ink); background: var(--brand-soft); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 12px; }
.step h3 { margin: 0 0 4px; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); white-space: pre-line; }

/* ---------- 商品列表 ---------- */
.shop { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.side { position: sticky; top: 84px; padding: 16px; }
.search { position: relative; margin-bottom: 14px; }
.search input { width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); padding: 0 12px 0 34px; }
.search svg { position: absolute; left: 11px; top: 11px; color: var(--faint); }
.cats { display: grid; gap: 2px; }
.cats button { text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 500; display: flex; justify-content: space-between; }
.cats button:hover { background: var(--line); color: var(--text); }
.cats button.on { background: var(--brand); color: #fff; }
.cats button small { opacity: .7; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.pcard:hover { transform: translateY(-2px); border-color: var(--line2); }
.pcover { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; overflow: hidden; }
.pcover img { width: 100%; height: 100%; object-fit: cover; }
.pcover .cover-art { position: absolute; inset: 0; }
.pcover .cover-name { position: relative; color: #fff; text-align: center; }
.pcover .cover-name b { display: block; font-size: 24px; letter-spacing: -.01em; font-weight: 800; }
.pcover .cover-name span { font-size: 12.5px; opacity: .85; letter-spacing: .08em; text-transform: uppercase; }
.pcover .ribbon { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.pcover.sold::after { content: "已售罄"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20,20,20,.55); color: #fff; font-weight: 700; letter-spacing: .1em; }
.pbody { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.pcat { font-size: 12px; color: var(--faint); margin-bottom: 4px; }
.ptitle { font-weight: 700; font-size: 16px; line-height: 1.35; margin: 0 0 4px; }
.psub { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
.ptags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pfoot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 12px; }
.price { font-family: var(--mono); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.price small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.price s { font-size: 12.5px; color: var(--faint); font-weight: 500; margin-left: 6px; }
.go { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- 商品详情 ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.detail { display: grid; grid-template-columns: 1fr 420px; gap: 28px; align-items: start; }
.detail .pcover { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 16 / 8; }
.detail h1 { font-size: 26px; margin: 20px 0 6px; letter-spacing: -.015em; line-height: 1.3; }
.desc { margin-top: 18px; }
.desc h2 { font-size: 16px; margin: 0 0 10px; }
.rich { color: var(--text); }
.rich p { margin: 0 0 8px; }
.rich ul { margin: 0 0 10px; padding-left: 20px; }
.rich li { margin: 3px 0; }
.buy { position: sticky; top: 84px; padding: 22px; }
.buy-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.buy-price .price { font-size: 30px; color: var(--brand-ink); }
.fgroup { margin-bottom: 16px; }
.flabel { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.flabel em { font-style: normal; color: var(--bad); margin-left: 2px; }
.fhelp { font-size: 12.5px; color: var(--faint); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--line2);
  background: var(--bg2); padding: 0 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.input.err { border-color: var(--bad); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt > span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 14px; border-radius: 10px; border: 1.5px solid var(--line2); cursor: pointer; font-weight: 600; font-size: 14px; background: var(--bg2); }
.opt > span small { color: var(--muted); font-weight: 500; font-family: var(--mono); }
.opt input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.opt input:checked + span small { color: var(--brand-ink); }
.opt input:disabled + span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.opt input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-opts .opt > span { width: 100%; padding: 10px 12px; }
.pay-ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #fff; flex: none; font-size: 12px; font-weight: 800; }
.pi-alipay { background: #1677ff; }
.pi-usdt { background: #26a17b; }
.pi-wxpay { background: #07c160; }
.pi-qqpay { background: #12b7f5; }
.bi-x { background: #111; }
.bi-tools { background: #56657f; }
.pay-opts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
#ep-qr svg { width: 100%; height: auto; display: block; }
.ep-go { aspect-ratio: 1; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; color: #555; font-size: 13px; }
.ep-go .pay-ico { width: 56px; height: 56px; border-radius: 16px; font-size: 26px; }
.ep-go p { margin: 0; }
.paybox .btn-block { margin-top: 4px; }
.pay-opts .opt b { display: block; line-height: 1.2; }
.pay-opts .opt small { display: block; font-family: inherit !important; font-size: 11.5px; }
.qty { display: inline-flex; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.qty button { width: 38px; height: 38px; border: 0; background: var(--bg2); cursor: pointer; font-size: 18px; }
.qty input { width: 50px; text-align: center; border: 0; border-inline: 1px solid var(--line2); background: var(--bg2); }
.sum { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px dashed var(--line); margin-top: 6px; }
.sum .price { font-size: 22px; }
.form-err { color: var(--bad); font-size: 13.5px; margin: 0 0 10px; }
.trust { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.trust span { display: inline-flex; gap: 5px; align-items: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- 订单页 ---------- */
.order { max-width: 760px; margin: 0 auto; }
.ostatus { display: flex; align-items: center; gap: 16px; padding: 22px; }
.ostatus .big-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.ostatus h1 { font-size: 21px; margin: 0; }
.ostatus p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.timeline { display: flex; margin: 0; padding: 18px 22px 22px; list-style: none; gap: 0; border-top: 1px solid var(--line); }
.timeline li { flex: 1; text-align: center; position: relative; font-size: 12.5px; color: var(--faint); }
.timeline li::before { content: ""; display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--line2); margin: 0 auto 8px; position: relative; z-index: 1; border: 3px solid var(--card); box-sizing: content-box; }
.timeline li::after { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px; background: var(--line2); }
.timeline li:first-child::after { display: none; }
.timeline li.on { color: var(--text); font-weight: 600; }
.timeline li.on::before, .timeline li.on::after { background: var(--ok); }
.paybox { margin-top: 16px; padding: 22px; }
.pay-grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.qr-wrap { background: #fff; border-radius: 14px; padding: 10px; border: 1px solid var(--line); }
.qr-wrap img { width: 100%; border-radius: 8px; }
.amount-big { font: 800 34px/1.1 var(--mono); letter-spacing: -.02em; color: var(--brand-ink); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.amount-big small { font-size: 15px; color: var(--muted); font-weight: 600; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 10px 14px; font-size: 14px; margin: 16px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; word-break: break-all; }
.copyable { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border-bottom: 1px dashed var(--line2); }
.copyable:hover { border-color: var(--brand); }
.copy-ico { color: var(--faint); flex: none; }
.countdown { font-family: var(--mono); font-weight: 700; }
.wait-line { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--bg); font-size: 14px; color: var(--muted); margin: 14px 0; }
.delivered { white-space: pre-wrap; word-break: break-all; font-family: var(--mono); font-size: 13.5px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 10px 0 0; }
.loglist { list-style: none; margin: 0; padding: 0; }
.loglist li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.loglist li:last-child { border: 0; }
.loglist time { color: var(--faint); font-family: var(--mono); font-size: 12.5px; }
.lookup { max-width: 460px; margin: 30px auto; }
.mini-orders { display: grid; gap: 8px; margin-top: 16px; }
.mini-orders a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 14px; }
.mini-orders a:hover { border-color: var(--brand); }
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: 26px; margin: 0 0 18px; }
.prose h2 { font-size: 17px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--muted); }

/* ---------- 页脚 / 提示 ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); background: var(--bg2); }
.footer-in { display: grid; grid-template-columns: 1fr auto; gap: 12px 30px; align-items: start; }
.footer p { margin: 6px 0 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
#footer-contact { grid-column: 1 / -1; }
.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 100; box-shadow: var(--shadow); max-width: calc(100vw - 40px); }

/* ---------- 移动端 ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 12px; }
  .hero-visual { display: none; }
  .benefits, .steps { grid-template-columns: 1fr 1fr; }
  .shop { grid-template-columns: 1fr; }
  .side { position: static; padding: 12px; }
  .cats { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .cats button { flex: none; background: var(--bg); }
  .detail { grid-template-columns: 1fr; }
  .buy { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  main.wrap { padding-top: 18px; }
  .nav a { padding: 6px 9px; font-size: 14px; }
  .nav a[data-nav="help"] { display: none; }
  .logo-text { display: none; }
  .benefits, .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr; }
  .qr-wrap { max-width: 240px; margin: 0 auto; }
  .amount-big { font-size: 28px; }
  .kv { grid-template-columns: 80px 1fr; }
  .loglist li { grid-template-columns: 1fr; gap: 0; }
  .footer-in { grid-template-columns: 1fr; }
  .timeline li { font-size: 11.5px; }
  .pad, .buy, .paybox, .ostatus { padding: 18px; }
}
