@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f5f3ee;
  --card: #ffffff;
  --ink: #17191c;
  --ink-2: #3a3e44;
  --muted: #73777e;
  --line: #e2ded5;
  --line-2: #d3cec3;
  --accent: #1f5c4b;
  --accent-ink: #ffffff;
  --accent-soft: #e4eee9;
  --warn: #9a3412;
  --warn-soft: #fbeee6;
  --ok: #166534;
  --r: 8px;
  --wrap: 1180px;
  --sans: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
  font-feature-settings: 'tnum' 1, 'cv11' 1;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* —— 顶部 —— */
.notice {
  background: var(--ink);
  color: #d9dbde;
  font-size: 12.5px;
}
.notice .wrap { display: flex; gap: 22px; height: 34px; align-items: center; overflow-x: auto; white-space: nowrap; }
.notice b { color: #fff; font-weight: 600; }

.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 243, 238, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 8px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand i { font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 22px; font-size: 14.5px; color: var(--ink-2); }
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.on { color: var(--ink); border-color: var(--ink); }
.search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 0 14px; height: 38px; width: min(300px, 32vw);
}
.search input { border: 0; outline: 0; background: none; width: 100%; font-size: 14px; }
.search svg { flex: none; color: var(--muted); }
.top-links { display: flex; gap: 16px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.top-links a:hover { color: var(--ink); }

/* —— 首页头部 —— */
.lead { padding: 44px 0 26px; }
.lead-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: end; }
.lead h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 700; }
.lead p { margin: 0; color: var(--ink-2); max-width: 520px; font-size: 16px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.facts div { padding: 16px 18px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts b { display: block; font-size: 15px; }
.facts span { color: var(--muted); font-size: 12.5px; }

/* —— 分类条 —— */
.shelf-head { display: flex; align-items: center; gap: 10px; margin: 18px 0 16px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-2); background: var(--card); border-radius: 999px;
  height: 34px; padding: 0 15px; cursor: pointer; font-size: 14px; color: var(--ink-2);
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.shelf-head .count { margin-left: auto; color: var(--muted); font-size: 13px; }

.section-title { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 14px; }
.section-title h2 { margin: 0; font-size: 21px; letter-spacing: -0.02em; }
.section-title span { color: var(--muted); font-size: 13.5px; }

/* —— 商品卡 —— */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--ink); }
.card-face {
  position: relative; height: 112px; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.card-face .mark { font-size: 26px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; opacity: .9; }
.card-face .vendor { font-size: 12px; opacity: .75; font-weight: 500; }
.tag {
  position: absolute; top: 12px; right: 12px; font-size: 11.5px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,.75); color: var(--ink);
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font-size: 15.5px; letter-spacing: -0.01em; }
.card-body p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; min-height: 39px; }
.card-meta { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 8px; }
.price { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
.price small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.price .from { font-size: 12px; font-weight: 500; color: var(--muted); margin-right: 3px; }
.how { font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.how::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.how.link::before { background: #b45309; }
.empty { padding: 50px 0; color: var(--muted); text-align: center; }

/* —— 购买流程 —— */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.steps div { padding: 18px 18px 0 0; }
.steps em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.steps b { display: block; margin: 4px 0 4px; font-size: 15px; }
.steps p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* —— 两种交付方式 —— */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mode { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.mode h3 { margin: 0 0 6px; font-size: 16px; }
.mode p { margin: 0 0 10px; color: var(--ink-2); font-size: 14px; }
.mode ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; }
.mode li + li { margin-top: 3px; }

/* —— 问答 —— */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; max-width: 780px; }

/* —— 页脚 —— */
.foot { margin-top: 64px; border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 13px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.foot b { color: var(--ink); display: block; margin-bottom: 8px; font-size: 13.5px; }
.foot a { display: block; line-height: 1.9; }
.foot a:hover { color: var(--ink); }

/* —— 商品详情 —— */
.crumbs { font-size: 13px; color: var(--muted); padding: 20px 0 6px; }
.crumbs a:hover { color: var(--ink); }
.pd { display: grid; grid-template-columns: 1fr 400px; gap: 36px; align-items: start; padding-top: 10px; }
.pd-face { border-radius: var(--r); height: 230px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); }
.pd-face .mark { font-size: 54px; font-weight: 700; letter-spacing: -0.05em; line-height: .9; }
.pd-face .vendor { font-size: 14px; opacity: .8; font-weight: 500; }
.pd h1 { font-size: 30px; letter-spacing: -0.03em; margin: 22px 0 6px; line-height: 1.2; }
.pd .sub { color: var(--ink-2); margin: 0 0 18px; }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); margin-bottom: 26px; }
.spec div { padding: 12px 16px; }
.spec div + div { border-left: 1px solid var(--line); }
.spec span { display: block; color: var(--muted); font-size: 12px; }
.spec b { font-size: 14px; font-weight: 600; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { background: none; border: 0; padding: 10px 0; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 14.5px; }
.tabs button.on { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.tab-body { color: var(--ink-2); font-size: 14.5px; }
.tab-body ol, .tab-body ul { padding-left: 20px; margin: 0; }
.tab-body li + li { margin-top: 6px; }
.tab-body code { background: #ece9e2; padding: 1px 6px; border-radius: 4px; font-size: 13px; }

.buy { position: sticky; top: 84px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.buy h2 { margin: 0 0 14px; font-size: 15px; }
.opt-label { font-size: 13px; color: var(--muted); margin: 14px 0 8px; display: flex; justify-content: space-between; }
.skus { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sku {
  text-align: left; background: var(--card); border: 1px solid var(--line-2); border-radius: 6px;
  padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
}
.sku b { font-size: 14px; font-weight: 600; }
.sku span { font-size: 12.5px; color: var(--muted); }
.sku.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sku:disabled { opacity: .45; cursor: not-allowed; }
.qty { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.qty button { width: 36px; height: 36px; border: 0; background: #f2f0eb; cursor: pointer; font-size: 16px; }
.qty input { width: 52px; border: 0; text-align: center; outline: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.field label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.field input, .field textarea {
  border: 1px solid var(--line-2); border-radius: 6px; padding: 9px 11px; background: #fff; outline: 0; font-size: 14px;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field small { color: var(--muted); font-size: 12px; }
.field.bad input, .field.bad textarea { border-color: var(--warn); }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.total span { color: var(--muted); font-size: 13px; }
.total b { font-size: 26px; letter-spacing: -0.03em; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 6px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; font-size: 15px;
}
.btn:hover { background: #000; }
.btn.block { width: 100%; margin-top: 14px; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: #ece9e2; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.55; }
.callout { background: var(--warn-soft); color: var(--warn); border-radius: 6px; padding: 10px 12px; font-size: 13px; margin-top: 12px; }
.callout.calm { background: var(--accent-soft); color: var(--accent); }

/* —— 付款页 —— */
.pay { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding-top: 26px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.panel h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: -0.02em; }
.panel .sub { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.pay-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.pay-row span { color: var(--muted); font-size: 13px; }
.pay-row code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 14px; word-break: break-all; }
.pay-row .big { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.copy { border: 1px solid var(--line-2); background: #fff; border-radius: 5px; height: 30px; padding: 0 10px; cursor: pointer; font-size: 12.5px; }
.copy.done { border-color: var(--accent); color: var(--accent); }
.qr { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.qr canvas, .qr svg { width: 200px; height: 200px; image-rendering: pixelated; }
.status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 6px; background: #f2f0eb; font-size: 14px; margin-top: 18px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #c2410c; flex: none; animation: pulse 1.4s infinite; }
.status.ok { background: var(--accent-soft); color: var(--accent); }
.status.ok .dot { background: var(--accent); animation: none; }
@keyframes pulse { 50% { opacity: .3; } }
.timer { margin-left: auto; font-weight: 600; }
.sum-line { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: var(--ink-2); }
.sum-line.total-line { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; color: var(--ink); font-weight: 650; font-size: 16px; }
.steps-v { margin: 0; padding: 0; list-style: none; counter-reset: s; font-size: 13.5px; color: var(--ink-2); }
.steps-v li { counter-increment: s; padding-left: 26px; position: relative; margin-bottom: 9px; }
.steps-v li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: #ece9e2; font-size: 11px; display: grid; place-items: center; font-weight: 600; }

/* —— 订单页 —— */
.lookup { display: flex; gap: 10px; max-width: 560px; }
.lookup input { flex: 1; height: 46px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 14px; background: #fff; outline: 0; }
.lookup input:focus { border-color: var(--ink); }
.order-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.badge { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.badge.wait { background: #fdf3e2; color: #92400e; }
.codes { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.code-row { display: flex; align-items: center; gap: 12px; border: 1px dashed var(--line-2); border-radius: 6px; padding: 12px 14px; background: #fbfaf7; }
.code-row code { font: 600 16px/1.3 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .06em; flex: 1; word-break: break-all; }
.timeline { list-style: none; margin: 18px 0 0; padding: 0; border-left: 1px solid var(--line-2); }
.timeline li { padding: 0 0 14px 16px; position: relative; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.timeline li.done::before { background: var(--accent); }
.timeline time { color: var(--muted); font-size: 12.5px; margin-left: 8px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; font-size: 14px;
  opacity: 0; transition: .2s; pointer-events: none; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%); }

/* —— 响应式 —— */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .top-links .opt { display: none; }
}
@media (max-width: 860px) {
  .lead-grid, .pd, .pay { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .modes { grid-template-columns: 1fr; }
  .nav { display: none; }
  .buy { position: static; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .top .wrap { gap: 12px; height: 58px; }
  .brand i { display: none; }
  .search { width: auto; flex: 1; }
  .top-links { gap: 12px; font-size: 13.5px; }
  .grid { gap: 10px; }
  .card-face { height: 86px; padding: 12px; }
  .card-face .mark { font-size: 20px; }
  .card-body { padding: 11px 12px 13px; }
  .card-body p { display: none; }
  .price { font-size: 17px; }
  .card-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .spec { grid-template-columns: 1fr; }
  .spec div + div { border-left: 0; border-top: 1px solid var(--line); }
  .pay-row { grid-template-columns: 1fr auto; }
  .pay-row span { grid-column: 1 / -1; }
  .lookup { flex-direction: column; }
}

/* —— 手机底部购买栏 —— */
.buybar { display: none; }
@media (max-width: 860px) {
  .pd-face { height: 130px; padding: 18px; }
  .pd-face .mark { font-size: 38px; }
  .pd h1 { margin-top: 16px; font-size: 25px; }
  .buybar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--card); border-top: 1px solid var(--line);
    transition: transform .2s;
  }
  .buybar.away { transform: translateY(110%); }
  .buybar b { font-size: 18px; letter-spacing: -0.02em; }
  .buybar span { color: var(--muted); font-size: 12px; display: block; }
  .buybar .btn { margin-left: auto; height: 42px; }
  body[data-page="product"] .foot { padding-bottom: 90px; }
}

/* —— 扫码付款 —— */
.muted { color: var(--muted); font-size: 13px; }
.paytabs { display: flex; gap: 8px; margin-bottom: 18px; }
.paytabs button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border: 1px solid var(--line-2); background: #fff; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 14.5px;
}
.paytabs button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ch { width: 18px; height: 18px; border-radius: 4px; display: inline-block; flex: none; }
/* 付款方式图标（Simple Icons，CC0） */
.ch.wx { background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2307c160' d='M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178A1.17 1.17 0 0 1 4.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178 1.17 1.17 0 0 1-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786-1.72 1.428-2.687 3.72-1.78 6.22.942 2.453 3.666 4.229 6.884 4.229.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.047c.134 0 .24-.111.24-.247 0-.06-.023-.12-.038-.177l-.327-1.233a.582.582 0 0 1-.023-.156.49.49 0 0 1 .201-.398C23.024 18.48 24 16.82 24 14.98c0-3.21-2.931-5.837-6.656-6.088V8.89c-.135-.01-.27-.027-.407-.03zm-2.53 3.274c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.97-.982zm4.844 0c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.969-.982z'/%3E%3C/svg%3E") center / contain no-repeat; border-radius: 0; }
.ch.ali { background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%231677ff' d='M19.695 15.07c3.426 1.158 4.203 1.22 4.203 1.22V3.846c0-2.124-1.705-3.845-3.81-3.845H3.914C1.808.001.102 1.722.102 3.846v16.31c0 2.123 1.706 3.845 3.813 3.845h16.173c2.105 0 3.81-1.722 3.81-3.845v-.157s-6.19-2.602-9.315-4.119c-2.096 2.602-4.8 4.181-7.607 4.181-4.75 0-6.361-4.19-4.112-6.949.49-.602 1.324-1.175 2.617-1.497 2.025-.502 5.247.313 8.266 1.317a16.796 16.796 0 0 0 1.341-3.302H5.781v-.952h4.799V6.975H4.77v-.953h5.81V3.591s0-.409.411-.409h2.347v2.84h5.744v.951h-5.744v1.704h4.69a19.453 19.453 0 0 1-1.986 5.06c1.424.52 2.702 1.011 3.654 1.333m-13.81-2.032c-.596.06-1.71.325-2.321.869-1.83 1.608-.735 4.55 2.968 4.55 2.151 0 4.301-1.388 5.99-3.61-2.403-1.182-4.438-2.028-6.637-1.809'/%3E%3C/svg%3E") center / contain no-repeat; border-radius: 0; }
.scan { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.scan .qr { width: 220px; height: 220px; padding: 10px; position: relative; }
.scan .qr .qr-ph { width: 100%; height: 100%; background: repeating-conic-gradient(#17191c 0 25%, #fff 0 50%) 0 0 / 16px 16px; opacity: .1; }
.scan .qr .qr-logo { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 8px; border: 3px solid #fff; }
/* 二维码中间的渠道标志：白底 + 官方图标 */
.scan .qr .qr-logo.wx { background: #fff url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2307c160' d='M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178A1.17 1.17 0 0 1 4.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178 1.17 1.17 0 0 1-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786-1.72 1.428-2.687 3.72-1.78 6.22.942 2.453 3.666 4.229 6.884 4.229.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.047c.134 0 .24-.111.24-.247 0-.06-.023-.12-.038-.177l-.327-1.233a.582.582 0 0 1-.023-.156.49.49 0 0 1 .201-.398C23.024 18.48 24 16.82 24 14.98c0-3.21-2.931-5.837-6.656-6.088V8.89c-.135-.01-.27-.027-.407-.03zm-2.53 3.274c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.97-.982zm4.844 0c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.969-.982z'/%3E%3C/svg%3E") center / 30px no-repeat; }
.scan .qr .qr-logo.ali { background: #fff url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%231677ff' d='M19.695 15.07c3.426 1.158 4.203 1.22 4.203 1.22V3.846c0-2.124-1.705-3.845-3.81-3.845H3.914C1.808.001.102 1.722.102 3.846v16.31c0 2.123 1.706 3.845 3.813 3.845h16.173c2.105 0 3.81-1.722 3.81-3.845v-.157s-6.19-2.602-9.315-4.119c-2.096 2.602-4.8 4.181-7.607 4.181-4.75 0-6.361-4.19-4.112-6.949.49-.602 1.324-1.175 2.617-1.497 2.025-.502 5.247.313 8.266 1.317a16.796 16.796 0 0 0 1.341-3.302H5.781v-.952h4.799V6.975H4.77v-.953h5.81V3.591s0-.409.411-.409h2.347v2.84h5.744v.951h-5.744v1.704h4.69a19.453 19.453 0 0 1-1.986 5.06c1.424.52 2.702 1.011 3.654 1.333m-13.81-2.032c-.596.06-1.71.325-2.321.869-1.83 1.608-.735 4.55 2.968 4.55 2.151 0 4.301-1.388 5.99-3.61-2.403-1.182-4.438-2.028-6.637-1.809'/%3E%3C/svg%3E") center / 30px no-repeat; }
.scan-info .big { display: block; font-size: 34px; letter-spacing: -0.03em; line-height: 1.2; margin: 2px 0 8px; }
.scan-info p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
@media (max-width: 560px) {
  .scan { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* —— 价格表（表格式商品列表） —— */
.instock { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); margin-left: 6px; cursor: pointer; }
.instock input { accent-color: var(--ink); }
.sheet-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.sheet { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
.sheet th {
  text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted);
  padding: 10px 14px; background: #faf9f6; border-bottom: 1px solid var(--line); white-space: nowrap;
  position: sticky; top: 0;
}
.sheet th.r, .sheet td.r { text-align: right; }
.sheet td { padding: 0 14px; height: 48px; border-top: 1px solid #f0ede6; white-space: nowrap; }
.sheet tbody tr:not(.cont):not(.grp) td { border-top-color: #dcd7cc; }
.sheet tr.cont td.c-region, .sheet tr.cont td.c-how, .sheet tr.cont td.c-eta { visibility: hidden; }
.sheet tbody tr:hover td { background: #faf9f5; }
.sheet .grp td {
  height: 40px; background: #f2f0ea; font-weight: 650; font-size: 13.5px; color: var(--ink);
  border-top: 1px solid var(--line);
}
.sheet .grp td span { color: var(--muted); font-weight: 500; margin-left: 8px; font-size: 12.5px; }
.sheet tr.cont td.p-name { color: transparent; }
.sheet tr.cont td.p-name * { visibility: hidden; }
.p-name a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.p-name a:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
.sw { width: 10px; height: 26px; border-radius: 3px; flex: none; }
.p-name .vd { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.sheet td.p-price { font-weight: 650; font-size: 15px; }
.sheet td.p-stock { color: var(--ink-2); }
.sheet td.p-stock.low { color: var(--warn); }
.sheet td.p-stock.out { color: var(--muted); }
.mini {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 5px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
}
.mini:hover { background: #000; }
.mini.off { background: #e7e4dd; color: var(--muted); pointer-events: none; }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.pill.link { background: #fbf0e3; color: #8a4a0c; }
.hot { font-size: 11px; font-weight: 700; color: var(--warn); margin-left: 6px; }

/* 手机：表格变成紧凑行 */
@media (max-width: 760px) {
  .sheet-wrap { overflow: visible; }
  .sheet { min-width: 0; }
  .sheet thead { display: none; }
  .sheet, .sheet tbody { display: block; }
  .sheet tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 14px; border-bottom: 1px solid #eeebe4; }
  .sheet tr.grp { display: block; padding: 0; }
  .sheet .grp td { display: block; height: auto; padding: 9px 14px; }
  .sheet td { display: block; height: auto; padding: 0; border: 0; white-space: normal; }
  .sheet td.c-region, .sheet td.c-eta, .sheet td.c-how { display: none; }
  .sheet tr.cont td.p-name { color: inherit; }
  .sheet tr.cont td.p-name * { visibility: visible; }
  .sheet td.p-name { grid-column: 1; }
  .sheet td.p-spec { grid-column: 1; color: var(--ink-2); font-size: 13px; }
  .sheet td.p-stock { grid-column: 1; font-size: 12px; }
  .sheet td.p-stock.na { display: none; }
  .sheet tr { padding: 9px 14px; }
  .sheet td.p-price { grid-column: 2; grid-row: 1; text-align: right; }
  .sheet td.p-buy { grid-column: 2; grid-row: 2 / span 2; text-align: right; align-self: center; }
  .sw { height: 18px; width: 6px; }
}

/* —— 帮助中心 —— */
.help { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; padding-top: 10px; }
.help-nav { position: sticky; top: 88px; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.help-nav a { padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); font-size: 14px; }
.help-nav a:hover { color: var(--ink); }
.help-nav a.on { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 36px; max-width: 820px; font-size: 15px; color: var(--ink-2); }
.doc section + section { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 28px; }
.doc section { scroll-margin-top: 90px; }
.doc h1 { font-size: 26px; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.doc h2 { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--ink); }
.doc h3 { font-size: 15px; margin: 18px 0 6px; color: var(--ink); }
.doc .meta { color: var(--muted); font-size: 13px; margin: 4px 0 16px; }
.doc ol, .doc ul { padding-left: 20px; margin: 8px 0; }
.doc li + li { margin-top: 7px; }
.doc p { margin: 10px 0; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc code { background: #ece9e2; padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.howto { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.howto > div { background: #faf9f6; border: 1px solid var(--line); border-radius: 6px; padding: 4px 18px 12px; font-size: 14px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
.doc-table th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #faf9f6; }
.doc-table td { padding: 10px; border-bottom: 1px solid #f0ede6; vertical-align: top; }
.doc-table tr:last-child td { border-bottom: 0; }

/* —— 404 —— */
.nf { padding: 90px 0 40px; max-width: 560px; }
.nf .code { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .08em; }
.nf h1 { font-size: 32px; letter-spacing: -0.03em; margin: 8px 0 10px; }
.nf p { color: var(--ink-2); margin: 0 0 22px; }
.nf .row { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .help { grid-template-columns: 1fr; gap: 16px; }
  .help-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; border-left: 0; }
  .help-nav a { border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; margin: 0; background: var(--card); font-size: 13px; }
  .help-nav a.on { border-color: var(--ink); }
  .doc { padding: 22px 18px; }
  .howto { grid-template-columns: 1fr; }
  .doc-table { font-size: 13px; }
  .doc-table th:nth-child(3), .doc-table td:nth-child(3) { display: none; }
}

/* —— 首页头部插画区 —— */
.hero {
  position: relative; margin: 26px 0 8px; padding: 40px 44px; border-radius: 14px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 440px; gap: 24px; align-items: center;
  background-color: #ece8df;
  background-image: radial-gradient(rgba(23, 25, 28, .13) 1px, transparent 1.2px);
  background-size: 18px 18px;
  border: 1px solid var(--line);
}
.hero::after {
  content: ''; position: absolute; right: -60px; top: -80px; width: 340px; height: 340px; border-radius: 50%;
  border: 1px solid rgba(23, 25, 28, .08); pointer-events: none;
}
.hero-text { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.14; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 700; }
.hero p { margin: 0; color: var(--ink-2); max-width: 470px; font-size: 16px; }
.hero-art { width: 100%; height: auto; display: block; position: relative; z-index: 1; overflow: visible; }
.hero + .shelf-head { margin-top: 26px; }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr 330px; padding: 30px 28px; }
}
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; padding: 26px 20px 8px; margin-top: 16px; gap: 6px; }
  .hero-art { max-width: 380px; margin: 0 auto -6px; }
}
/* 手机价目表：库存加上文字说明 */
@media (max-width: 760px) {
  .sheet td.p-stock:not(.low):not(.out):not(.na)::before { content: '库存 '; }
}

/* —— 头部改为矮横幅（覆盖上面的设置） —— */
.hero { grid-template-columns: 1fr 300px; padding: 22px 32px; margin: 20px 0 4px; gap: 16px; }
.hero h1 { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.25; margin: 0 0 6px; }
.hero p { font-size: 14.5px; }
.hero-art { width: 300px; max-height: 150px; margin: -10px 0; }
.hero + .shelf-head { margin-top: 20px; }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr 240px; padding: 20px 24px; }
  .hero-art { width: 240px; max-height: 130px; }
}
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr 150px; padding: 16px 16px 14px 18px; margin-top: 14px; gap: 8px; }
  .hero-art { width: 150px; max-width: none; max-height: 92px; margin: -6px 0; }
  .hero h1 { font-size: 19px; }
  .hero p { font-size: 13px; }
  .hero::after { width: 200px; height: 200px; right: -50px; top: -60px; }
}
.nb { white-space: nowrap; }
@media (max-width: 760px) {
  .sheet tbody tr:hover td { background: transparent; }
  .sheet tbody tr:not(.grp):hover { background: #faf9f5; }
}

/* —— 首页品牌列表 —— */
.sheet.brands { min-width: 760px; }
.sheet.brands td { height: 62px; }
.sheet.brands tbody tr:not(.grp) { cursor: pointer; }
.sheet.brands td { border-top-color: #e6e2d9; }
.bmark {
  width: 38px; height: 38px; border-radius: 8px; flex: none; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; letter-spacing: -0.03em;
}
.b-name a { display: inline-flex; align-items: center; gap: 12px; }
.b-name .nm { font-weight: 650; font-size: 15px; }
.b-name .vd { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.b-tiers { color: var(--ink-2); }
.b-tiers i { font-style: normal; color: var(--line-2); margin: 0 6px; }
.go { color: var(--ink); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.go::after { content: ' →'; }
tr:hover .go { text-decoration: underline; text-underline-offset: 3px; }
.from { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }

@media (max-width: 760px) {
  .sheet.brands { min-width: 0; }
  .sheet.brands td { height: auto; }
  .sheet.brands .grp td { height: auto; }
  .sheet.brands tr:not(.grp) { grid-template-columns: 1fr auto; align-items: center; padding: 12px 14px; }
  .sheet.brands td.b-name { grid-column: 1; grid-row: 1 / span 2; }
  .sheet.brands td.b-tiers, .sheet.brands td.c-how, .sheet.brands td.c-eta { display: none; }
  .sheet.brands td.p-price { grid-column: 2; grid-row: 1; }
  .sheet.brands td.p-buy { grid-column: 2; grid-row: 2; }
  .b-name .vd { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* —— 品牌页：分步选择 —— */
.bh {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  padding: 22px 24px; margin: 6px 0 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
}
.bh-mark { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 22px; letter-spacing: -0.04em; }
.bh h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -0.03em; line-height: 1.2; }
.bh p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.bh-facts { display: flex; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 6px; }
.bh-facts div { padding: 8px 16px; }
.bh-facts div + div { border-left: 1px solid var(--line); }
.bh-facts dt { color: var(--muted); font-size: 12px; }
.bh-facts dd { margin: 0; font-weight: 600; font-size: 14px; white-space: nowrap; }

.flow-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.flow { display: flex; flex-direction: column; gap: 14px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.step h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 16px; }
.step h2 em {
  font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}
.step.dim { opacity: .55; }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tier {
  text-align: left; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 14px 16px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; position: relative;
}
.tier b { font-size: 17px; letter-spacing: -0.02em; }
.tier span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.tier .tp { color: var(--ink); font-weight: 650; font-size: 14px; margin-top: 6px; }
.tier .tp small { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 2px; }
.tier .hot { position: absolute; top: 12px; right: 12px; margin: 0; }
.tier.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fcfbf8; }
.step .skus { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.qty-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-size: 13.5px; color: var(--ink-2); }
.step .field:first-child { margin-top: 0; }

.summary h2 { margin: 0 0 10px; font-size: 15px; }
.sum { margin: 0; font-size: 14px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #ebe7df; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 600; text-align: right; }

@media (max-width: 860px) {
  .flow-grid { grid-template-columns: 1fr; }
  .bh { grid-template-columns: auto 1fr; padding: 18px; }
  .bh-facts { grid-column: 1 / -1; }
  .bh-mark { width: 52px; height: 52px; font-size: 18px; }
  .bh h1 { font-size: 22px; }
}
@media (max-width: 560px) {
  .step { padding: 16px; }
  .tiers { grid-template-columns: 1fr; }
  .step .skus { grid-template-columns: 1fr 1fr; }
}
.field small a, .tab-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pill.username { background: #e3eef8; color: #13466e; }
@media (max-width: 860px) { body[data-page="product"] .toast { bottom: 96px; } }
/* 官方图标方块 */
.logo { color: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.logo svg { width: 56%; height: 56%; display: block; }
.logo b { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.bh-mark.logo b { font-size: 24px; }
.logo.pic { background: #fff; overflow: hidden; }
.logo.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 按 iPhone 图标的圆角比例 */
.logo.pic { border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.logo { border-radius: 22.5%; }

/* —— 页头登录状态 —— */
.who { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: 13.5px; }
.who i { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.who:hover { border-color: var(--ink); }
.top-links .reg { padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; }
.top-links .reg:hover { background: #000; color: #fff; }

/* —— 登录注册 —— */
.auth { display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: start; padding: 40px 0 10px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; }
.auth-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.auth-tabs button { background: none; border: 0; padding: 0 0 10px; font-size: 17px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auth-tabs button.on { color: var(--ink); border-color: var(--ink); }
.auth .field:first-child { margin-top: 0; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin-top: 14px; }
.agree a, .auth-foot a { color: var(--accent); }
.auth-foot { display: flex; justify-content: space-between; font-size: 13.5px; margin-top: 14px; color: var(--muted); }
.form-err { color: var(--warn); background: var(--warn-soft); border-radius: 6px; padding: 8px 12px; font-size: 13.5px; margin: 12px 0 0; }
.auth-side { padding-top: 10px; }
.auth-side h2 { font-size: 18px; margin: 0 0 14px; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.auth-side li { padding-left: 16px; border-left: 2px solid var(--line-2); }
.auth-side b { display: block; font-size: 15px; }
.auth-side span { color: var(--ink-2); font-size: 14px; }

/* —— 会员中心 —— */
.acct { display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: start; padding-top: 6px; }
.acct-nav { position: sticky; top: 84px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; display: flex; flex-direction: column; }
.acct-who { padding: 12px 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-who b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-who span { font-size: 12.5px; color: var(--muted); }
.acct-who em { font-style: normal; color: var(--ink); font-weight: 600; }
.acct-nav a { padding: 9px 12px; border-radius: 6px; font-size: 14.5px; color: var(--ink-2); }
.acct-nav a:hover { background: #f4f2ed; color: var(--ink); }
.acct-nav a.on { background: var(--ink); color: #fff; }
.linkish { background: none; border: 0; text-align: left; padding: 9px 12px; color: var(--muted); cursor: pointer; font-size: 14px; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0; }
.linkish:hover { color: var(--warn); }
.acct-main { min-width: 0; }
.acct-main .section-title { margin-top: 26px; justify-content: space-between; }
.wallet {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  padding: 24px 26px; border-radius: var(--r); color: #f5f3ee;
  background-color: #17191c;
  background-image: radial-gradient(rgba(245,243,238,.09) 1px, transparent 1.2px); background-size: 16px 16px;
}
.wallet .muted { color: #b9bcc2; display: block; }
.wallet b { display: block; font-size: 38px; letter-spacing: -0.03em; line-height: 1.15; margin: 2px 0 2px; }
.wallet small.muted { font-size: 12.5px; }
.wallet-act { display: flex; gap: 10px; }
.wallet .btn { background: #f5f3ee; color: var(--ink); border-color: #f5f3ee; height: 42px; }
.wallet .btn.ghost { background: transparent; color: #f5f3ee; border-color: rgba(245,243,238,.4); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.stat-row div { padding: 14px 18px; }
.stat-row div + div { border-left: 1px solid var(--line); }
.stat-row span { display: block; font-size: 12.5px; color: var(--muted); }
.stat-row b { font-size: 20px; letter-spacing: -0.02em; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amount {
  position: relative; text-align: left; background: #fff; border: 1px solid var(--line-2); border-radius: 8px;
  padding: 14px 16px; cursor: pointer;
}
.amount b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.amount span { font-size: 12.5px; color: var(--muted); }
.amount .gift { position: absolute; top: -9px; right: 10px; background: var(--warn); color: #fff; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 4px; }
.amount.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fcfbf8; }
.sheet.plain { min-width: 620px; }
.sheet.plain td { height: 46px; }
.amt-in { color: var(--ok); font-weight: 600; }
.amt-out { color: var(--ink); font-weight: 600; }
.tag-type { font-size: 12px; padding: 2px 8px; border-radius: 4px; background: #f0eee8; color: var(--ink-2); }
.tag-type.in { background: var(--accent-soft); color: var(--accent); }
.olist { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.orow { display: grid; grid-template-columns: 38px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid #f0ede6; }
.orow:first-child { border-top: 0; }
.orow .t b { display: block; font-size: 14.5px; }
.orow .t span { font-size: 12.5px; color: var(--muted); }
.orow .amt { font-weight: 650; }
.keybox { border: 1px solid var(--line); border-radius: 8px; background: #faf9f6; }
.keybox .kv { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid #efece5; font-size: 14px; }
.keybox .kv:first-child { border-top: 0; }
.keybox .kv span { color: var(--muted); font-size: 13px; }
.keybox code { font: 500 14px/1.4 ui-monospace, 'SF Mono', Menlo, monospace; word-break: break-all; }
.secret-once { border: 1px solid #e8c9a8; background: #fdf6ee; border-radius: 8px; padding: 12px 14px; margin-top: 12px; font-size: 13.5px; color: #7a3f0c; }

/* —— 文档 —— */
pre.code {
  background: #17191c; color: #e8e6e1; border-radius: 8px; padding: 14px 16px; overflow-x: auto;
  font: 13px/1.6 ui-monospace, 'SF Mono', Menlo, monospace; margin: 10px 0 14px; white-space: pre;
}
.verb { display: inline-block; font: 700 11.5px/1 ui-monospace, Menlo, monospace; padding: 4px 7px; border-radius: 4px; color: #fff; vertical-align: 1px; }
.verb.get { background: #1f5c4b; }
.verb.post { background: #9a3412; }
.doc-table.kv td:first-child { width: 110px; color: var(--muted); }
.doc-table .r { text-align: right; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; padding-top: 22px; gap: 22px; }
  .acct { grid-template-columns: 1fr; gap: 14px; }
  .acct-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 8px; }
  .acct-who { width: 100%; padding: 6px 8px 10px; }
  .acct-nav a { padding: 6px 12px; font-size: 13.5px; border: 1px solid var(--line); }
  .linkish { border-top: 0; padding: 6px 10px; margin: 0 0 0 auto; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; }
  .stat-row div { padding: 12px; }
  .stat-row b { font-size: 16px; }
  .wallet b { font-size: 30px; }
  .orow { grid-template-columns: 34px 1fr auto; }
  .orow .st { display: none; }
  .keybox .kv { grid-template-columns: 1fr auto; }
  .keybox .kv span { grid-column: 1 / -1; }
}
/* 余额明细表：窄屏横向滚动，不拆行 */
.ltable-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.ltable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 600px; }
.ltable th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 10px 14px; background: #faf9f6; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ltable td { padding: 11px 14px; border-top: 1px solid #f0ede6; white-space: nowrap; }
.ltable tr:first-child td { border-top: 0; }
.ltable .r { text-align: right; }
.help > *, .doc, .acct > * { min-width: 0; }
.doc .sheet-wrap { overflow-x: auto; }

/* —— 充值：大额与 USDT —— */
.large-head { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 10px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.large-head b { font-size: 15px; }
.large-head span { color: var(--muted); font-size: 13px; }
.amounts.large .amount { background: #fbf8f2; }
.amounts.large .amount.on { background: #fcfbf8; }
.paytabs.three button { font-size: 14px; }
.paytabs button:disabled { opacity: .5; cursor: not-allowed; }
.paytabs button small { font-weight: 500; color: var(--muted); font-size: 11.5px; margin-left: 2px; }
.ch.usdt { background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2326a17b' d='M18.7538 10.5176c0 .6251-2.2379 1.1483-5.2381 1.2812l.0028.0007c-.0848.0064-.5233.0325-1.5012.0325-.7778 0-1.33-.0233-1.5237-.0325-3.0059-.1322-5.2495-.6555-5.2495-1.2819s2.2436-1.149 5.2495-1.2834v2.0442c.1965.0142.7594.0474 1.5372.0474.9334 0 1.4008-.0389 1.4849-.0466V9.2356c2.9994.1337 5.2381.657 5.2381 1.282zm5.19.5466L12.1248 22.389a.1803.1803 0 0 1-.2496 0L.0562 11.0635a.1781.1781 0 0 1-.0382-.2079l4.3762-9.1921a.1767.1767 0 0 1 .1626-.1026h14.8878a.1768.1768 0 0 1 .1612.1032l4.3762 9.1922a.1782.1782 0 0 1-.0382.2079zm-4.478-.4038c0-.8068-2.5515-1.4799-5.9473-1.6369V7.195h4.186V4.4055H6.3076V7.195h4.1852v1.8286c-3.4018.1562-5.9601.83-5.9601 1.6376 0 .8075 2.5583 1.4806 5.9601 1.6376v5.8618h3.025v-5.8639c3.394-.1563 5.948-.8295 5.948-1.6363z'/%3E%3C/svg%3E") center / contain no-repeat; border-radius: 0; }
.usdt-grid { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; }
.usdt-grid .qr { width: 200px; height: 200px; padding: 10px; }
.usdt-grid .qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.usdt-grid .pay-row:first-child { border-top: 0; }
.usdt-grid .pay-row { grid-template-columns: 80px 1fr auto; }
.usdt-grid .big { font-size: 22px; }
.status.warn { background: #fdf3e2; color: #92400e; }
.status.warn .dot { background: #d97706; animation: none; }
.tp-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #f0ede6; font-size: 14px; }
.tp-row:first-child { border-top: 0; }
.tp-row span { color: var(--muted); font-size: 12.5px; display: block; }
@media (max-width: 760px) {
  .paytabs.three { flex-wrap: wrap; }
  .paytabs.three button { flex: 1 1 100%; }
  .usdt-grid { grid-template-columns: 1fr; justify-items: center; }
  .usdt-grid > div:last-child { width: 100%; }
  .amounts.large { grid-template-columns: 1fr 1fr; }
}

/* 美元标价：人民币价格下方的小字 */
.usd { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 1px; white-space: nowrap; }
.sheet td.p-price .usd { margin-top: 2px; }
.tier .tp .usd, .sku .usd { margin-top: 2px; }
.total .usd { font-size: 12.5px; text-align: right; }
.sum-line .usd { display: inline; margin-left: 6px; }

/* 语言切换 */
.top-links .lang { position: relative; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); cursor: pointer; }
.top-links .lang svg { flex: none; }
.top-links .lang select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; color: inherit; padding: 2px; cursor: pointer; max-width: 92px; }
.top-links .lang select:focus-visible { outline: 2px solid var(--accent); border-radius: 4px; }
.top-links .lang:hover { color: var(--ink); }
@media (max-width: 640px) { .top-links .lang select { max-width: 64px; font-size: 13px; } }
/* 外文比中文长：导航不折行，品牌副标题收起 */
.nav a, .brand, .top-links a { white-space: nowrap; }
html:not([lang^="zh"]) .brand i { display: none; }
html:not([lang^="zh"]) .nav { gap: 18px; }
@media (max-width: 1180px) { html:not([lang^="zh"]) .search { max-width: 220px; } }
/* 手机：语言菜单只显示地球图标，点开是系统自带的选择列表 */
@media (max-width: 640px) {
  .top-links .lang { width: 30px; height: 30px; justify-content: center; border-radius: 50%; }
  .top-links .lang svg { width: 18px; height: 18px; }
  .top-links .lang select { position: absolute; inset: 0; opacity: 0; max-width: none; width: 100%; }
}

/* 谷歌登录 */
.g-btn { min-height: 44px; display: flex; justify-content: center; }
.g-btn > div { margin: 0 auto; }
.g-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; color: var(--muted); font-size: 12.5px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
/* USDT 充值赠送角标 */
#tp-ch button { position: relative; }
.ch-gift { position: absolute; top: -9px; right: 10px; background: var(--warn); color: #fff; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 4px; line-height: 1.5; }
/* 页头用户区固定宽度、靠右：登录前（登录 / 注册）和登录后（头像余额）切换时，左边的订单查询和语言菜单不挪位置 */
#top-user { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 112px; }
@media (max-width: 640px) { #top-user { min-width: 104px; } }

/* 充值分步：进度条 + 一次只显示一步 */
.tp-progress { display: flex; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; }
.tp-progress li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 600; }
.tp-progress li em { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--line); color: var(--muted); flex: none; }
.tp-progress li.on { color: var(--ink); border-color: var(--ink); }
.tp-progress li.on em { background: var(--ink); color: #fff; }
.tp-progress li.done { color: var(--ink); }
.tp-progress li.done em { background: var(--accent); color: #fff; }
.tp-chosen { margin: -4px 0 14px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.tp-chosen b { color: var(--ink); font-size: 16px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: 13px; text-decoration: underline; }
.tp-back { margin-top: 14px; }
#tp-s1 .total { margin-top: 16px; }
@media (max-width: 560px) { .tp-progress li { padding: 8px; font-size: 12.5px; gap: 6px; } }

/* 订单页：自助填卡的虚拟卡信息 */
.codes.vcard { gap: 0; border: 1px dashed var(--line-2); border-radius: 6px; background: #fbfaf7; padding: 4px 14px; }
.codes.vcard .code-row { align-items: center; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 7px 0; background: none; }
.codes.vcard .code-row:last-child { border-bottom: 0; }
.codes.vcard code { font-size: 15px; }
.codes.vcard .vk { flex: none; width: 112px; color: var(--muted); font-size: 13px; }
.codes.vcard code { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.vcard-how { margin: 12px 0 0; padding-left: 20px; font-size: 13.5px; line-height: 1.8; color: var(--ink); }
@media (max-width: 560px) { .codes.vcard .vk { width: 84px; font-size: 12px; } }
