:root {
  --bg: #f6f5f1;
  --card: #fff;
  --ink: #191816;
  --ink-2: #57544d;
  --ink-3: #6b675f;
  --ink-4: #c9c5bc;
  --placeholder: #8f8a82;
  --line: #e5e1d8;
  --line-2: #efece6;
  --accent: #c8623f;
  --accent-soft: rgba(200, 98, 63, .14);
  --ok: #24764a;
  --ok-bg: #e6f2ea;
  --warn: #9a5b0c;
  --warn-bg: #fbf0dc;
  --err: #b4352a;
  --err-bg: #fbe9e6;
  --info: #2c5fa8;
  --info-bg: #e7eef9;
  --r: 14px;
  --shadow: 0 1px 2px rgba(25, 24, 22, .04), 0 8px 24px rgba(25, 24, 22, .05);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body > main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.i { width: 16px; height: 16px; flex: none; }
.mono { font-family: var(--mono); font-size: .93em; letter-spacing: -.01em; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 560px; }

/* 顶部 */
.notice {
  background: var(--ink);
  color: #f3f1ec;
  text-align: center;
  font-size: 13px;
  padding: 9px 16px;
}
.top { position: sticky; top: 0; z-index: 20; background: rgba(246, 245, 241, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-inner { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; line-height: 0; }
.brand img { display: block; height: 32px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a, .nav-btn {
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.nav a:hover, .nav-btn:hover { color: var(--ink); background: rgba(25, 24, 22, .05); }
.nav { align-items: center; }
.nav .tg-group { display: inline-flex; align-items: center; gap: 6px; color: #1675a5; font-weight: 600; }
.wx { display: inline-flex; align-items: center; gap: 6px; height: 32px; margin-right: 8px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; }
.wx-label { color: var(--ink-3); }
.wx-ico { width: 16px; height: 16px; flex: none; }
.wx .mono { font-weight: 600; color: var(--ink); }
.wx .copy { margin: 0; }

/* 按钮 */
.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-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .1s, opacity .15s;
}
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #33312d; }
.btn.primary:disabled { background: var(--ink-4); cursor: not-allowed; transform: none; }
.btn.ghost:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink-4); }
.btn.danger { background: var(--card); border-color: #efc9c3; color: var(--err); }
.btn.danger:hover { background: var(--err-bg); }
.btn.text { background: none; color: var(--ink-2); font-weight: 500; height: 40px; }
.btn.text:hover { color: var(--ink); }
.btn.block { width: 100%; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn.is-loading { opacity: .6; pointer-events: none; }
.center-block { display: flex; margin: 16px auto 0; }
.link { background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; font-size: inherit; font-weight: 500; text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--ink); }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: rgba(25, 24, 22, .06); color: var(--ink); }
.copy { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -4px -6px -4px 2px; border: 0; border-radius: 7px; background: none; color: var(--ink-3); cursor: pointer; vertical-align: middle; }
.copy:hover { color: var(--ink); background: rgba(25, 24, 22, .06); }
.copy.copied { color: var(--ok); }

/* 表单 */
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field + .field { margin-top: 28px; }
.label, .field legend { display: block; padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.optional { margin-left: 4px; font-weight: 400; color: var(--ink-3); font-size: 13px; }
.input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
textarea.input { height: auto; padding: 12px 14px; line-height: 1.6; resize: vertical; }
select.input { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6.5L8 10l3.5-3.5' fill='none' stroke='%238b877e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.input::placeholder { color: var(--placeholder); }
.input:hover { border-color: var(--ink-4); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(25, 24, 22, .08); }
.input.invalid { border-color: var(--err); }
.input.invalid:focus { box-shadow: 0 0 0 4px rgba(180, 53, 42, .12); }
.error { margin-top: 8px; font-size: 13px; color: var(--err); }
.error.center { text-align: center; margin-top: 12px; }
.suggest { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.hint { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.hint:has(~ .suggest:not([hidden])), .hint:has(~ .error:not([hidden])) { display: none; }

/* 首页 */
.shop { padding-top: 48px; padding-bottom: 24px; }
.buy { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.buy h1 { font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; margin-bottom: 28px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .15s, box-shadow .2s, transform .2s;
}
.plan:hover { border-color: var(--ink-4); }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), var(--shadow); }
.plan:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.plan.is-off { cursor: not-allowed; }
.plan.is-off > :not(.plan-top) { opacity: .45; }
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan-name { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.radio-dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-4); color: transparent; transition: all .15s; }
.radio-dot .i { width: 13px; height: 13px; }
.plan:has(input:checked) .radio-dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--line-2); color: var(--ink-2); }
.plan-price { display: flex; align-items: baseline; gap: 2px; margin: 14px 0 16px; }
.plan-price b { font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 14px; color: var(--ink-3); }
.plan-spec > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; border-top: 1px solid var(--line-2); font-size: 14px; }
.plan-spec dt { color: var(--ink-2); }
.plan-spec dd { font-weight: 500; text-align: right; }
.yes { display: inline-flex; color: var(--ink); }
.no { display: inline-flex; color: var(--ink-3); }
.plans-shared { margin: -24px 0 40px; font-size: 13px; color: var(--ink-3); }
.max-fulfillment { margin: -24px 0 32px; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.max-warranty { margin: -16px 0 32px; font-size: 13px; line-height: 1.8; color: var(--ink-3); }
.max-pricing-note { margin: -16px 0 32px; font-size: 14px; line-height: 1.8; color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.chip:hover { border-color: var(--ink-4); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.chips-grid, .chips-pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.chips-grid .chip, .chips-pay .chip { justify-content: center; }
.chip:has(input:checked) .chip-sub { color: var(--ink); }
.chip-sub { color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.chip > span { white-space: nowrap; }
.chip-pay { padding-left: 14px; }
.pay-ico { width: 22px; height: 22px; flex: none; }

.purchase-guide { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; }
.purchase-guide strong { display: block; color: var(--ink); font-size: 18px; font-weight: 650; }
.purchase-guide > span > span { display: block; margin-top: 4px; color: var(--ink-3); font-size: 13px; line-height: 1.7; }
.purchase-guide-arrow { flex: none; color: var(--accent); font-size: 24px; }
.purchase-guide:hover { border-color: var(--accent); }

.summary { position: sticky; top: 84px; }
.summary-card { padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.summary-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 14px; }
.summary-rows dt { color: var(--ink-3); flex: none; }
.summary-rows dd { font-weight: 500; text-align: right; min-width: 0; }
.sum-email { overflow-wrap: anywhere; font-family: var(--mono); font-size: 13px; line-height: 1.7; }
.sum-email.empty { color: var(--ink-4); font-family: var(--font); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.summary-total .sum-label { font-size: 14px; color: var(--ink-2); }
.sum-brief { display: none; }
.summary-total b { font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.summary .btn.primary { height: 52px; font-size: 16px; border-radius: 14px; }
.agree { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 13px; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.agree input { appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--ink-4); border-radius: 5px; background: var(--card) center / 12px no-repeat; cursor: pointer; transition: all .15s; }
.agree input:checked { background-color: var(--ink); border-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.agree input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.agree input:disabled { background-color: var(--line-2); cursor: not-allowed; }
.agree.needs-email input { background-color: var(--line-2); }
.agree b { display: block; font-family: var(--mono); font-weight: 600; color: var(--ink); overflow-wrap: break-word; }
.agree.invalid input { border-color: var(--err); box-shadow: 0 0 0 3px rgba(180, 53, 42, .12); }
.agree a { color: var(--ink); text-underline-offset: 2px; }

/* 微信群 */
.community { max-width: calc(100% - 396px); margin-top: 72px; scroll-margin-top: 84px; }
.community h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.community-intro { margin-top: 6px; color: var(--ink-2); }
.group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.group-grid:has(> .group-card:only-child) { grid-template-columns: minmax(0, 360px); }
.group-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-align: center; }
.group-card h3 { margin-bottom: 12px; font-size: 16px; font-weight: 600; }
.group-qr { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #191919; cursor: zoom-in; }
.group-qr img { display: block; width: 100%; height: auto; }
.group-save { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: 14px; color: var(--ink-2); text-underline-offset: 3px; }
.group-save:hover { color: var(--ink); }
.community > .hint { margin-top: 14px; line-height: 1.8; }

.product-info { max-width: calc(100% - 396px); margin-top: 64px; }
.product-info h2 { margin-bottom: 16px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.product-info p { color: var(--ink-2); line-height: 1.8; }
.product-info p + p { margin-top: 12px; }
.community-telegram { margin-top: 16px; }
.faq { max-width: calc(100% - 396px); margin: 88px 0 32px; }
.reviews { max-width: calc(100% - 396px); margin-top: 88px; }
.reviews h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 20px; }
.review-grid { columns: 3 200px; column-gap: 12px; }
.review { break-inside: avoid; margin: 0 0 12px; }
.review-img { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #1e1e1e; cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.review-img:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.review-img img { display: block; width: 100%; height: auto; }
.review figcaption { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.viewer { max-width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 16px; background: #1e1e1e; overflow: auto; }
.viewer::backdrop { background: rgba(0, 0, 0, .7); }
.viewer img { display: block; width: 100%; height: auto; }
.viewer-close { position: sticky; top: 8px; float: right; margin: 8px 8px -40px 0; z-index: 1; background: rgba(0, 0, 0, .55); color: #fff; }
.viewer-close:hover { background: rgba(0, 0, 0, .75); color: #fff; }
.faq h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 16px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 32px 22px 0; color: var(--ink-2); line-height: 1.8; white-space: pre-line; }

/* 页脚 */
.foot { margin-top: 64px; border-top: 1px solid var(--line); }
.foot-inner { display: flex; gap: 20px; align-items: center; height: 64px; font-size: 13px; color: var(--ink-3); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* 订单页 */
.order { padding-top: 40px; }
.order-card { padding: 32px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-pending, .s-claimed, .s-expiring { background: var(--warn-bg); color: var(--warn); }
.s-paid { background: var(--info-bg); color: var(--info); }
.s-delivered { background: var(--ok-bg); color: var(--ok); }
.s-closed, .s-refunded, .s-expired { background: var(--line-2); color: var(--ink-3); }
.order-figure { margin-top: 18px; font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.order-figure small { font-size: 20px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.order-sub { margin-top: 6px; color: var(--ink-2); }

.steps { display: flex; margin: 20px 0 4px; }
.steps li { position: relative; flex: 1; padding-top: 20px; font-size: 13px; color: var(--ink-3); text-align: center; }
.steps li::after { content: ""; position: absolute; top: 0; left: 50%; z-index: 1; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); box-sizing: border-box; }
.steps li + li::before { content: ""; position: absolute; top: 5px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.steps li.done { color: var(--ink); font-weight: 500; }
.steps li.done::after { background: var(--ink); border-color: var(--ink); }
.steps li.done::before { background: var(--ink); }

.pay-box, .state-box { margin-top: 28px; padding: 24px; border-radius: 16px; background: var(--bg); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.qr { width: 224px; height: 224px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); flex: none; }
.qr.qr-sm { width: 176px; height: 176px; }
.qr-svg { display: block; width: 100%; height: 100%; }
.qr-img { display: block; width: 260px; max-width: 100%; height: auto; border-radius: 14px; }
.pay-with { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px 8px; font-weight: 500; }
.pay-with b { font-variant-numeric: tabular-nums; }
.pay-off { margin: -2px 0 6px; font-size: 13px; color: var(--muted, #666); text-align: center; }
/* 手机上的「打开支付宝付款」（alipay-open.js 显示并加 alipay-mobile）：先看金额和备注再点按钮，收款码留在下面供长按保存 */
.alipay-mobile .pay-with { order: -2; }
.alipay-mobile .alipay-open { order: -1; }
.alipay-open { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.btn.alipay-btn { height: 50px; background: #1368e8; color: #fff; font-size: 16px; }
.btn.alipay-btn:hover { background: #0f58c9; }
.alipay-tip { padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 500; line-height: 1.6; text-wrap: balance; }
.qr-save { margin-top: -6px; font-size: 13px; color: var(--ink-3); text-wrap: balance; }
.waiting { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.countdown.late { color: var(--err); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 1.6s ease-out infinite; }
.s-paid ~ .state-box .pulse, .state-box .pulse { background: var(--info); }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none; } }

.pay-box.pay-usdt { align-items: stretch; text-align: left; margin-top: 20px; padding: 0; background: none; border-radius: 0; }
.net-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--line-2); }
.net-tab { position: relative; display: grid; place-items: center; height: 36px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.net-tab input { position: absolute; opacity: 0; pointer-events: none; }
.net-tab:has(input:checked) { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.net-tab:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.net-panel { display: flex; flex-direction: column; gap: 16px; }
.net-panel .qr { align-self: center; }
.pay-usdt:has(.net-tabs) .net-panel { display: none; }
.pay-usdt:has(input[value="TRC20"]:checked) .net-panel[data-net="TRC20"],
.pay-usdt:has(input[value="BEP20"]:checked) .net-panel[data-net="BEP20"] { display: flex; }
.addr-groups.long { max-width: 19ch; }
.usdt-help { align-self: center; font-size: 13px; }
.figure-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.figure-row .order-figure { margin-top: 0; }
.order-sub + .pay-warn { margin: 14px 0 0; }
.addr-groups { display: block; max-width: 14ch; font-size: 14px; line-height: 1.7; }
.addr-groups span { display: inline-block; margin-right: .5ch; }
.state-late { background: var(--warn-bg); color: var(--warn); flex-direction: row; align-items: center; justify-content: space-between; }
.state-late .link { color: var(--warn); text-decoration-color: currentColor; }
.related { flex-direction: column; align-items: flex-end; gap: 4px; }
.related a { text-underline-offset: 3px; text-decoration-color: var(--ink-4); }
.renew { margin-top: 24px; }
.pay-usdt .qr { align-self: center; }
.pay-usdt .waiting { align-self: center; }
.pay-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-top: 1px solid var(--line); font-size: 14px; }
.pay-rows > div:first-child { border-top: 0; }
.pay-rows dt { color: var(--ink-3); flex: none; }
.pay-rows dd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pay-rows .big { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.pay-rows .unit { font-weight: 600; color: var(--ink-2); }
.pay-rows .addr { flex-wrap: wrap; padding: 10px 0; }
.pay-rows .addr dd { flex: 1 1 260px; justify-content: space-between; }
.pay-warn { margin: -4px 0 8px; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 500; }
/* U 付款清单（店主 10-30，对标上家付款前的一堆提醒）：会让钱确认不了的三条红框放在地址上面，其余四条浅框放在收款码下面，编号接着数 */
.upay { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid rgba(178, 34, 34, .45); background: #fff4f2; }
.upay-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0; font-size: 15px; font-weight: 750; color: #b22222; }
.upay-title small { font-size: 12px; font-weight: 600; color: #8f2a1d; }
.upay-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: upay; }
.upay-list[start="4"] { counter-reset: upay 3; }
.upay-list li { position: relative; padding-left: 26px; font-size: 13px; line-height: 1.75; color: #4a2a22; counter-increment: upay; overflow-wrap: anywhere; }
.upay-list li::before { content: counter(upay); position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #b22222; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.upay-list b { color: #2e1a14; font-weight: 700; }
.upay.is-more { border: 1px solid var(--line); background: var(--card); }
.upay.is-more .upay-list li { color: var(--ink-2); }
.upay.is-more .upay-list li::before { background: var(--ink-2); }
.upay.is-more .upay-list b { color: var(--ink); }
/* 订单页「照着做」：按 App 分开的步骤（src/views/order.js upayHowTo），默认收起，点开一个看一个 */
.upay-how { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); text-align: left; }
.upay-how .upay-title { color: var(--ink); }
.upay-how .upay-title small { color: var(--ink-2); }
.upay-app { border-top: 1px solid var(--line); }
.upay-app summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 2px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.upay-app summary::-webkit-details-marker { display: none; }
.upay-app summary::after { content: '展开'; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.upay-app[open] summary::after { content: '收起'; }
.upay-app ol { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; font-size: 13px; line-height: 1.75; color: var(--ink-2); }
.upay-app li { overflow-wrap: anywhere; }
.upay-app b { color: var(--ink); }
.upay-app .copy-text { margin-left: 6px; vertical-align: middle; }
.pay-usdt:has(.net-tabs) .upay-net { display: none; }
.pay-usdt:has(input[value="TRC20"]:checked) .upay-net[data-net="TRC20"],
.pay-usdt:has(input[value="BEP20"]:checked) .upay-net[data-net="BEP20"] { display: inline; }
.copy-text { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; flex: none; }
.copy-text:hover { border-color: var(--ink-4); }
.copy-text.copied { color: var(--ok); border-color: #b9dcc6; }

.state-box { align-items: stretch; text-align: left; }
.state-box .waiting { color: var(--ink); font-weight: 500; }
.state-title { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
/* 已付款还没绑定 Telegram：醒目提示去领取 */
.claim-alert { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-weight: 600; line-height: 1.6; }
/* 下单后还没绑定 Telegram：绑定入口放第一屏、醒目底色 */
.state-box.tg-first { margin-top: 20px; background: var(--accent-soft); }
/* 订单页：Claude 成品号等环境检测截图（src/env-check.js），确认后才交付，用提醒色突出 */
.state-box.env-check { background: var(--warn-bg); box-shadow: inset 0 0 0 1.5px rgba(154, 91, 12, .45); }
.env-check .state-title { color: var(--warn); font-size: 17px; }
.env-check-steps { margin: 0; padding-left: 20px; list-style: decimal; line-height: 1.8; }
/* 订单页「付款后 / 接下来会发生什么」（Claude 成品号的邮箱转发四步，src/pre-order-notice.js） */
.state-box.next-steps { background: var(--warn-bg); box-shadow: inset 0 0 0 1.5px rgba(154, 91, 12, .45); }
.next-steps .state-title { color: var(--warn); }
.next-steps-list { margin: 0; padding-left: 20px; list-style: decimal; line-height: 1.8; }
.next-steps-phase { margin: 10px 0 4px; font-size: 14px; font-weight: 700; color: #3f2f16; }
/* Claude 成品号「域名邮箱登录流程」（订单页，src/claude-login-flow.js） */
.login-flow-steps { margin: 10px 0 0; padding-left: 22px; list-style: decimal; }
.login-flow-steps > li { margin: 0 0 12px; padding-left: 4px; }
.login-flow-steps h3 { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--ink); }
.login-flow-steps p { margin: 0; font-size: 14px; line-height: 1.7; color: #2f2e29; }
.login-flow-figure { margin: 10px 0 0; }
.login-flow-figure img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid #e6e3da; background: #fff; }
.login-flow-figure figcaption { margin: 6px 0 0; font-size: 12px; color: #8a877e; }
.login-flow-note { margin: 4px 0 0; padding: 10px 12px; border-radius: 12px; background: #faf9f6; border: 1px solid #efede7; font-size: 13px; line-height: 1.6; color: #2f2e29; }
.env-check-steps .link { font-weight: 600; overflow-wrap: anywhere; }
.tg-first .state-title { font-size: 17px; }
/* Claude 成品号待付款：先看完交付流程，才出现绑定 Telegram 和付款（src/flow-read.js） */
.state-box.flow-gate { margin-top: 20px; background: var(--accent-soft); }
.flow-gate .state-title { font-size: 17px; }
.flow-gate-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: fg; }
.flow-gate-steps li { counter-increment: fg; padding: 4px 10px; border-radius: 999px; background: var(--card); color: var(--ink-3); font-size: 13px; }
.flow-gate-steps li::before { content: counter(fg) " · "; }
.flow-gate-steps li[aria-current] { background: var(--ink); color: #fff; font-weight: 600; }
.state-box.flow-read { background: var(--accent-soft); }
.flow-recap > summary { cursor: pointer; font-weight: 600; }
.flow-recap[open] > summary { margin-bottom: 4px; }
.flow-recap .login-flow { padding: 0; margin: 8px 0 0; background: none; box-shadow: none; border: 0; }
.guide { counter-reset: g; display: grid; gap: 10px; }
.guide li { counter-increment: g; display: flex; gap: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.guide li::before { content: counter(g); flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink); }
.seller-note { padding-left: 12px; border-left: 3px solid var(--ink-4); font-size: 14px; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }

.kv { margin-top: 28px; }
.kv > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 46px; padding: 6px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.kv dt { color: var(--ink-3); flex: none; }
.kv dd { display: flex; align-items: center; gap: 10px; justify-content: flex-end; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv dd.order-number { flex-wrap: wrap; }
/* 订单页「退款地址」（10-31，src/refund-address.js）：地址长，放不下就换行；网络名小字跟在后面 */
.kv dd.refund-addr { flex-wrap: wrap; row-gap: 2px; }
.kv dd.refund-addr small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.kv .email-edit { display: block; border-top: 0; padding-top: 0; min-height: 0; }
.email-edit form { display: flex; gap: 8px; }
.email-edit .input { height: 40px; font-size: 15px; }
.email-edit .btn { height: 40px; }

.mobile-only { display: none; }
.order-links { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.prep { counter-reset: p; margin-top: 24px; border-top: 1px solid var(--line-2); }
.prep > li { counter-increment: p; position: relative; padding: 20px 0 20px 36px; border-bottom: 1px solid var(--line-2); display: grid; gap: 10px; }
.prep > li::before { content: counter(p); position: absolute; left: 0; top: 20px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.prep-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.prep-head b { font-size: 15px; }
.prep-state { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); white-space: nowrap; }
.prep-state.ok { background: var(--ok-bg); color: var(--ok); }
.prep p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.prep a:not(.btn) { color: var(--ink); text-underline-offset: 3px; }
.prep .btn { justify-self: start; }
.shots { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shots img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.sub-steps { counter-reset: s; display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.sub-steps li { counter-increment: s; font-size: 13px; color: var(--ink-2); }
.sub-steps li::before { content: counter(s) ". "; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink); cursor: pointer; }
.check-line input { appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1.5px solid var(--ink-4); border-radius: 5px; background: var(--card) center / 12px no-repeat; cursor: pointer; }
.check-line input:checked { background-color: var(--ink); border-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.prep-eta { margin-top: 16px; }
.login-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.login-row > span { font-size: 13px; color: var(--ink-3); }
.login-row b { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
.state-box > .link { align-self: flex-start; font-size: 14px; }
.ticket-form { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.ticket-form .field + .field { margin-top: 20px; }
.ticket-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.ticket-types .chip { justify-content: center; min-height: 42px; font-size: 14px; }
.ticket-form .btn { margin-top: 20px; }

/* 订单查询 */
.lookup, .prose { padding-top: 48px; }
.lookup h1, .prose h1 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 28px; }
.lookup-form { padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.lookup-form .field + .field { margin-top: 20px; }
.lookup-form .btn { margin-top: 24px; height: 50px; }
.recent { margin-bottom: 32px; }
.recent h2 { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.recent-list { border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.recent-list a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; transition: background .15s; }
.recent-list li + li a { border-top: 1px solid var(--line-2); }
.recent-list a:hover { background: #fbfaf8; }
.recent-main { flex: 1; min-width: 0; }
.recent-main b { display: block; font-weight: 500; font-size: 15px; }
.recent-main b span, .recent-main .nowrap { white-space: nowrap; }
.recent-main > span { display: block; font-size: 13px; color: var(--ink-3); }
.recent-amount { font-weight: 600; font-variant-numeric: tabular-nums; }
.recent-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.recent-side .status { height: 22px; font-size: 12px; padding: 0 8px; }
.recent-list .i { color: var(--ink-4); }

.prose h2 { font-size: 17px; font-weight: 650; margin: 32px 0 10px; }
.prose h2[id] { scroll-margin-top: 120px; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.85; }
.prose ul { display: grid; gap: 6px; }
.prose li { position: relative; padding-left: 16px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4); }

.empty-page { padding-top: 120px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.empty-page h1 { font-size: 22px; font-weight: 600; }

/* 客服 */
.contact { width: min(360px, calc(100vw - 32px)); padding: 20px 24px 24px; border: 0; border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 24px 64px rgba(0, 0, 0, .18); }
.contact::backdrop { background: rgba(25, 24, 22, .32); backdrop-filter: blur(2px); }
.contact-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.contact-head h2 { font-size: 17px; font-weight: 650; }
.contact-tg { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #229ed9; color: #fff; text-decoration: none; transition: background .2s; }
.contact-tg .i { width: 22px; height: 22px; flex: none; }
.contact-tg > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.contact-tg strong { font-size: 15px; font-weight: 650; }
.contact-tg small { font-size: 12.5px; opacity: .88; }
@media (hover: hover) { .contact-tg:hover { background: #1b8cc2; } }
.contact-tg:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.contact-note { margin: 10px 2px 12px; color: var(--ink-3); font-size: 13px; line-height: 1.55; }
.contact-qr { display: block; width: 200px; height: 200px; margin: 4px auto 12px; border-radius: 12px; border: 1px solid var(--line); object-fit: contain; }
.contact-list > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; border-top: 1px solid var(--line-2); font-size: 14px; }
.contact-list dt { color: var(--ink-3); }
.contact-list dd { display: flex; align-items: center; gap: 6px; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.contact-list a { color: var(--ink); text-underline-offset: 3px; }

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

/* 窄屏 */
@media (max-width: 900px) {
  .buy { grid-template-columns: 1fr; gap: 0; }
  .summary { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 30; }
  .summary-card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "agree agree" "total btn" "err err"; align-items: center; gap: 0 16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 0; border-width: 1px 0 0; box-shadow: 0 -8px 24px rgba(25, 24, 22, .06); }
  .summary-rows { display: none; }
  .agree { grid-area: agree; margin-bottom: 10px; }
  .summary .btn.primary { grid-area: btn; }
  .summary .error.center { grid-area: err; }
  .summary-total { grid-area: total; margin: 0; padding: 0; border: 0; flex-direction: column; align-items: flex-start; gap: 0; }
  .summary-total .sum-label { display: none; }
  .sum-brief { display: block; font-size: 12px; color: var(--ink-3); }
  .summary-total b { font-size: 24px; line-height: 1.2; }
  .summary .btn.primary { width: auto; min-width: 140px; height: 48px; }
  .summary .error.center { text-align: left; margin: 6px 0 0; }
  .shop { padding-bottom: 140px; }
  body:has(.shop) .foot { margin-bottom: 130px; }
  .faq { max-width: none; margin-top: 72px; }
  .reviews { max-width: none; margin-top: 72px; }
  .community { max-width: none; }
  .product-info { max-width: none; }
  .review-grid { columns: 2; column-gap: 10px; }
  .plans-shared { margin-top: -20px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav-faq { display: none; }
  .nav { gap: 0; }
  .top-inner { height: auto; min-height: 60px; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .nav { flex: 1; flex-wrap: wrap; justify-content: flex-end; }
  .nav a, .nav-btn { padding: 6px 8px; }
  .wx { order: 1; flex-basis: 100%; justify-content: flex-end; margin-right: 0; padding: 0; border: 0; background: none; }
  .wx-label { display: none; }
  .nav .tg-group { order: 1; flex-basis: 100%; justify-content: flex-end; }
  .wx ~ .nav-btn { display: none; }
  .brand img { height: 28px; }
  .shop { padding-top: 28px; }
  .buy h1 { font-size: 34px; margin-bottom: 20px; }
  .plans { gap: 10px; margin-bottom: 32px; }
  .plan { padding: 14px 12px 6px; border-radius: 16px; }
  .plan-name { font-size: 16px; }
  .radio-dot { width: 20px; height: 20px; }
  .plan-price { margin: 8px 0 8px; }
  .plan-price b { font-size: 26px; }
  .plan-price small { font-size: 12px; }
  .plan-spec > div { min-height: 34px; gap: 6px; font-size: 12.5px; }
  .chips-pay { grid-template-columns: 1fr; }
  .chips-grid .chip { flex-direction: column; justify-content: center; gap: 0; min-height: 56px; padding: 6px 10px; line-height: 1.4; }
  .chips-grid .chip-sub { font-size: 12px; }
  .recent-main .recent-no { display: none; }
  .chips-pay .chip { justify-content: flex-start; }
  .order { padding-top: 20px; }
  .order-card { padding: 24px 20px; border-radius: 18px; }
  .order-figure { font-size: 34px; }
  .pay-box, .state-box { padding: 20px 16px; }
  .qr { width: 188px; height: 188px; }
  .qr.qr-sm { width: 150px; height: 150px; }
  .mobile-only { display: inline-flex; }
  .lookup-form { padding: 22px 18px; }
  .faq h2 { font-size: 22px; }
  .community { margin-top: 56px; scroll-margin-top: 108px; }
  .community h2 { font-size: 22px; }
  .product-info h2 { font-size: 22px; }
  .group-grid { grid-template-columns: 1fr; }
  .group-card { width: 100%; max-width: 360px; justify-self: center; }
}

/* ---------- 动效与细节（2026-10-26）：只动 transform / opacity，尊重系统的「减弱动态效果」 ---------- */
:root { --ease: cubic-bezier(.2, .7, .2, 1); --ease-out: cubic-bezier(.16, 1, .3, 1); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(6px) scale(.98); } }

html { scroll-behavior: smooth; }
.top { transition: border-color .2s, box-shadow .25s var(--ease); }
.top.scrolled { box-shadow: 0 10px 24px -22px rgba(25, 24, 22, .4); }

/* 按钮：悬停轻抬、按下回弹、加载中转圈（文字保留） */
.btn { transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .22s var(--ease), opacity .15s; }
/* 悬停抬起只给有鼠标的设备：触屏点一下不会停在抬起状态 */
@media (hover: hover) {
  .btn:not(:disabled):hover { transform: translateY(-1px); }
  .btn.primary:not(:disabled):hover { box-shadow: 0 10px 20px -12px rgba(25, 24, 22, .55); }
  .btn.ghost:not(:disabled):hover { box-shadow: 0 6px 14px -10px rgba(25, 24, 22, .35); }
}
/* 按下：后两条选择器和悬停阴影那两条一样具体、又写在后面，才压得住阴影 */
.btn:not(:disabled):active, .btn.primary:not(:disabled):active, .btn.ghost:not(:disabled):active { transform: translateY(0) scale(.98); box-shadow: none; transition-duration: .08s; }
.btn.is-loading { opacity: .8; }
.btn.is-loading::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.ghost.is-loading::before, .btn.text.is-loading::before { border-color: rgba(25, 24, 22, .18); border-top-color: var(--ink); }
/* 下单中：按钮保持深色（禁用态默认是浅灰，白字和白色转圈会看不清） */
.btn.primary.is-loading:disabled { background: var(--ink); color: #fff; cursor: progress; }
.copy.copied, .copy-text.copied { animation: pop .32s var(--ease); }
.icon-btn, .copy, .nav a, .nav-btn { transition: background .15s, color .15s, transform .12s var(--ease); }
.icon-btn:active, .copy:active { transform: scale(.92); }
.nav a:active, .nav-btn:active { transform: scale(.97); }

/* 弹窗：淡入上浮，关闭时淡出（app.js 加 is-closing） */
.contact[open], .viewer[open] { animation: dialog-in .26s var(--ease-out); }
.contact[open]::backdrop, .viewer[open]::backdrop { animation: fade-in .26s ease; }
.contact.is-closing, .viewer.is-closing { animation: dialog-out .16s ease forwards; }
.contact.is-closing::backdrop, .viewer.is-closing::backdrop { animation: fade-out .16s ease forwards; }

/* 手机顶栏：一行放下，不再折成三行（加入群聊在首页下方仍可到达；「购买」11-01 起手机也显示，跳到全部商品） */
@media (max-width: 600px) {
  .top-inner { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
  .nav { flex-wrap: nowrap; gap: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; justify-content: flex-start; }
  .nav::-webkit-scrollbar { display: none; }
  .nav > :first-child { margin-left: auto; }
  .nav a[href="/#groups"] { display: none; }
  .nav a, .nav-btn { padding: 6px 4px; font-size: 13px; }
  /* 加了「购买」后放不下：「代理入口」「使用教程」在手机上缩成「代理」「教程」 */
  .nav-more { display: none; }
  .top-inner { gap: 4px; }
  .nav .tg-group { gap: 4px; }
  .nav .tg-group { order: 0; flex-basis: auto; flex: none; }
  .nav .tg-group span[aria-hidden] { display: none; }
  /* 导航栏横向可滚动时会裁掉画在外面的焦点框，改成画在链接里面 */
  .nav a:focus-visible, .nav-btn:focus-visible { outline-offset: -2px; }
}
/* 很窄的手机（≤389：iPhone mini / SE、360 宽的安卓；11-01 加「购买」后从 374 提到 389）：「加入 TG 群」只留纸飞机，文字留给读屏软件，客服不再被挤出屏幕
   11-04 加「买 U」后要 421 宽才放得下，提到 429（390/393/414 宽的 iPhone 也只留纸飞机；430 及以上的 Pro Max / Plus 照常显示文字）
   11-04 晚又加「充值」（「订单查询」手机上缩成「订单」）：430 宽只剩 1px，提到 439（430 宽也只留纸飞机；440 宽的 16 Pro Max 照常显示文字，余 11px） */
@media (max-width: 439px) {
  .nav .tg-group { position: relative; padding-left: 8px; padding-right: 8px; }
  .nav .tg-group > span:not([aria-hidden]) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}

/* 11-04 顶栏加了「买 U 教程」：电脑窄窗口 / 平板（601～960）一行放不下，logo 会被挤扁（原来 800 以下就会）。
   logo 不许缩；960 以下跟手机一样缩成「买 U」「代理」「教程」；820 以下链接间距收一点，「加入群聊」「常见问题」收起（首页下方都有）
   11-04 晚加「余额充值」后：961 宽 logo 和导航只剩 2px、821 宽只剩 8px，分别提到 1023、879（1024 宽余 65px，880 宽余 67px） */
.brand { flex-shrink: 0; }
@media (min-width: 601px) and (max-width: 1023px) {
  .nav-more { display: none; }
}
@media (min-width: 601px) and (max-width: 879px) {
  .nav a, .nav-btn { padding: 6px 8px; }
  .nav a[href="/#groups"], .nav-faq { display: none; }
}

/* 360 宽的安卓（11-04 加「买 U」后余量正好 0，安卓中文字体略宽）：链接间距再收一点 */
@media (max-width: 369px) {
  .nav a, .nav-btn { padding: 6px 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .icon-btn, .copy, .nav a, .nav-btn { transition: none; }
  .btn:not(:disabled):hover, .btn:not(:disabled):active, .btn.primary:not(:disabled):active, .btn.ghost:not(:disabled):active { transform: none; box-shadow: none; }
  .contact[open], .viewer[open], .contact[open]::backdrop, .viewer[open]::backdrop, .contact.is-closing, .viewer.is-closing, .copy.copied, .copy-text.copied { animation: none; }
}

/* 顶栏「加入 TG 群」的纸飞机轻轻飘（借鉴 tiancexai） */
@keyframes nav-plane { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(1.5px, -2px) rotate(-8deg); } }
.nav .tg-group .i { animation: nav-plane 4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .nav .tg-group .i { animation: none; } }

/* 欧易 / 币安买 U 教程（/buy-usdt，2026-11-02） */
.bu-page h2 { scroll-margin-top: 80px; }
.bu-lead { font-size: 15px; }
.bu-must { margin: 22px 0 8px; padding: 16px 18px; border-radius: var(--r); background: var(--err-bg); color: #7a2a20; }
.bu-must h2 { margin: 0 0 8px; color: var(--err); }
.bu-must ol { margin: 0; padding-left: 20px; list-style: decimal; display: grid; gap: 6px; }
.bu-must li { color: #7a2a20; padding-left: 2px; }
.bu-must li::before { display: none; }
.bu-fast { margin: 22px 0 8px; padding: 16px 18px; border-radius: var(--r); background: #e6f4f3; border: 1px solid #cbe6e3; color: #1d4d4a; }
.bu-fast h2 { margin: 0 0 8px; color: #12403d; }
.bu-fast ol { margin: 0; padding-left: 20px; list-style: decimal; display: grid; gap: 6px; }
.bu-fast li { color: #1d4d4a; padding-left: 2px; }
.bu-fast li::before { display: none; }
.bu-fast b { color: #12403d; }
.bu-net { margin: 10px 0 0; font-size: 14px; line-height: 1.7; }
.bu-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.bu-toc a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 13px; text-decoration: none; }
.bu-toc a span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; }
.bu-steps { margin: 8px 0; padding-left: 22px; list-style: decimal; display: grid; gap: 8px; }
.bu-steps li { padding-left: 2px; }
.bu-steps li::before { display: none; }
.bu-note { margin-top: 8px; padding: 10px 14px; border-radius: 10px; background: var(--line-2); font-size: 13.5px; }
.bu-faq { display: grid; gap: 12px; margin: 8px 0; }
.bu-faq dt { font-weight: 650; color: var(--ink); }
.bu-faq dd { margin: 2px 0 0; color: var(--ink-2); line-height: 1.8; }
/* 各付款处的教程链接 */
.buy-usdt-link { font-weight: 650; color: var(--info); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.upay-guide, .store-upay-guide { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.bu-shot { margin: 10px 0 4px; }
.bu-shot img { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #000; }
.bu-shot.is-tall img { max-width: 280px; }

/* 订单页对话 + 手机号查单（店主 11-05） */
.web-chat .chat-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; max-height: 520px; overflow-y: auto; }
.web-chat .chat-list:empty { display: none; }
.chat-msg { max-width: 88%; padding: 10px 12px; border-radius: 12px; background: var(--line-2); justify-self: start; }
.chat-msg.from-buyer { justify-self: end; background: var(--info-bg); }
.chat-who { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.chat-text { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.6; color: var(--ink); }
.chat-img { display: block; max-width: 100%; max-height: 320px; margin-top: 6px; border-radius: 8px; border: 1px solid var(--line); }
.chat-form { margin-top: 12px; display: grid; gap: 8px; }
.chat-form textarea { width: 100%; box-sizing: border-box; min-height: 76px; padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; }
.chat-actions { display: flex; justify-content: flex-end; gap: 8px; }
/* 订单页对话：已交付的单先选问题类型（src/aftersale-intake.js） */
.chat-kinds { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.chat-kinds legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.chat-kinds .chip { min-height: 40px; font-size: 14px; }
.kind-hint { display: none; margin: 0; }
.chat-kinds:has(input[value="nodelivery"]:checked) .kind-hint-nodelivery { display: block; }
.chat-kinds:has(input[value="broken"]:checked) .kind-hint-broken { display: block; }
.chat-kinds:has(input[value="howto"]:checked) .kind-hint-howto { display: block; }
.chat-kinds:has(input[value="refund"]:checked) .kind-hint-refund { display: block; }
.chat-kinds:has(input[value="other"]:checked) .kind-hint-other { display: block; }
.chat-file { cursor: pointer; }
.lookup-phone { margin-bottom: 16px; }
.lookup-results { margin: 0 0 20px; }
.lookup-results h2 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.lookup-results a { display: grid; gap: 4px; }
.lookup-product { font-weight: 600; color: var(--ink); }
.lookup-meta { font-size: 13px; color: var(--ink-3); }
.lookup-status { font-weight: 600; color: var(--ink-2); }
.lookup-more { margin-bottom: 16px; }

/* 页面切换加载条（店主 11-08，public/app.js 最后一段） */
.nav-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 3px; pointer-events: none; transform: scaleX(0); transform-origin: 0 50%; opacity: 0; background: linear-gradient(90deg, var(--accent), #e9a15f 70%, #f4c98c); box-shadow: 0 0 10px rgba(200, 98, 63, .5); transition: transform .24s var(--ease), opacity .3s; }
.nav-progress.is-on { opacity: 1; }
.nav-progress.is-done { opacity: 0; transition: transform .28s var(--ease), opacity .35s .25s; }
html.is-navigating { cursor: progress; }
@media (prefers-reduced-motion: reduce) { .nav-progress { transition: opacity .2s; } }

/* 付款成功撕票（店主 11-08：付完要有「买得值」的即时反馈；11-10：要游戏里解锁升级的感觉，「付款成功」不能是票外面另起的一行字）：
   盖「已核销」章 → 沿虚线撕掉存根 → 票翻面亮出「付款成功」，背后放光、迸星 → 收进页头状态标签。
   模板在 src/views/order.js ticketTemplate，动画顺序在 public/app.js 付款成功撕票那一段 */
.ticket-fx { position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ticket-fx-bg { position: absolute; inset: 0; background: rgba(25, 24, 22, .46); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; }
.ticket { position: relative; width: min(320px, 84vw); filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .28)) drop-shadow(0 2px 3px rgba(0, 0, 0, .12)); opacity: 0; will-change: transform; }
.ticket-main, .ticket-stub { position: relative; background: #fffdf7; color: var(--ink); }
.ticket-main { padding: 22px 22px 20px; border-radius: 18px 18px 4px 4px; overflow: hidden;
  -webkit-mask: radial-gradient(circle 11px at 0 100%, #0000 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 100%, #0000 97%, #000) 100% 0 / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 100%, #0000 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 100%, #0000 97%, #000) 100% 0 / 51% 100% no-repeat; }
.ticket-main::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; border-bottom: 2px dashed #ddd5c4; }
.ticket-stub { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 74px; padding: 0 22px; border-radius: 4px 4px 18px 18px; transform-origin: 0 0;
  -webkit-mask: radial-gradient(circle 11px at 0 0, #0000 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 0, #0000 97%, #000) 100% 0 / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 0, #0000 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 0, #0000 97%, #000) 100% 0 / 51% 100% no-repeat; }
.ticket-brand { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--accent); }
.ticket-amount { margin-top: 16px; font-size: 40px; font-weight: 750; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ticket-name { margin-top: 4px; max-width: 62%; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.ticket-meta { display: grid; gap: 5px; margin-top: 18px; font-size: 12px; }
.ticket-meta div { display: flex; justify-content: space-between; gap: 12px; }
.ticket-meta dt { color: var(--ink-3); }
.ticket-meta dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-stamp { position: absolute; right: 14px; top: 34px; display: grid; place-content: center; width: 92px; height: 92px; border: 3px solid currentColor; border-radius: 50%; color: #c8402c; text-align: center; line-height: 1.15; opacity: 0; transform: rotate(-14deg);
  box-shadow: inset 0 0 0 4px #fffdf7, inset 0 0 0 6px currentColor; mix-blend-mode: multiply; }
.ticket-stamp b { font-size: 19px; font-weight: 800; letter-spacing: .08em; }
.ticket-stamp small { margin-top: 2px; font-size: 10px; font-weight: 700; letter-spacing: .32em; }
.ticket-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%); transform: translateX(-120%); }
.ticket-code { width: 148px; height: 32px; opacity: .82; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px, var(--ink) 13px 14px, transparent 14px 17px); }
.ticket-stub-no { font-size: 12px; color: var(--ink-3); }
/* .ticket-caption 只剩旧模板在用（上线重启前那一小会儿）；新模板的字在 .ticket-back 里 */
.ticket-caption { position: relative; margin-top: 26px; text-align: center; color: #fff; opacity: 0; }
.ticket-caption b { display: block; font-size: 21px; font-weight: 750; letter-spacing: .04em; }
.ticket-caption span { display: block; margin-top: 4px; font-size: 13px; opacity: .82; }
.ticket-bit { position: absolute; left: 0; top: 0; width: 7px; height: 7px; border-radius: 2px; pointer-events: none; }
/* 票的背面：和正面同一块位置（下面留出存根那 74px），撕完存根翻过来才看得见。深底金字，颜色写死不跟夜间模式走 */
.ticket-back { position: absolute; left: 0; right: 0; top: 0; bottom: 74px; display: flex; flex-direction: column; align-items: center; padding: 22px 22px 16px; border-radius: 18px 18px 4px 4px; overflow: hidden; visibility: hidden; text-align: center; color: #fffdf7;
  background: radial-gradient(130% 85% at 50% 0%, #4a3620 0%, #2a2118 48%, #191613 100%); box-shadow: inset 0 0 0 1px rgba(244, 201, 140, .34); }
.ticket-back .ticket-brand { align-self: stretch; color: #e9b877; }
.ticket-check { width: 44px; height: 44px; margin-top: 10px; fill: none; stroke: #f4c98c; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; filter: drop-shadow(0 0 8px rgba(244, 201, 140, .55)); }
.ticket-check circle, .ticket-check path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ticket-check circle { transform: rotate(-90deg); transform-origin: 50% 50%; }
.ticket-title { margin-top: 8px; font-size: 29px; font-weight: 800; line-height: 1.25; letter-spacing: .16em; text-indent: .16em; color: #fff3da; white-space: nowrap; }
.ticket-title i { display: inline-block; font-style: normal; color: transparent; background: linear-gradient(180deg, #fffaf0 22%, #f4c98c 100%); -webkit-background-clip: text; background-clip: text; }
.ticket-sub { margin-top: 2px; font-size: 13px; color: rgba(255, 253, 247, .74); }
.ticket-item { align-self: stretch; display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 9px; border-top: 1px dashed rgba(244, 201, 140, .24); font-size: 12px; color: rgba(255, 253, 247, .58); font-variant-numeric: tabular-nums; }
.ticket-item span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-flash { position: absolute; inset: 0; background: #fff6e0; opacity: 0; pointer-events: none; }
.ticket.is-unlocked { filter: drop-shadow(0 0 22px rgba(255, 196, 112, .5)) drop-shadow(0 22px 36px rgba(0, 0, 0, .5)); }
/* 翻面那一下：票背后转着的光芒 + 一圈冲击波 + 迸出去的星。位置由 app.js 对到票心 */
.ticket-rays, .ticket-ring { position: absolute; left: 50%; top: 50%; opacity: 0; pointer-events: none; }
.ticket-rays { width: 0; height: 0; }
.ticket-rays::before, .ticket-rays::after { content: ""; position: absolute; border-radius: 50%; }
.ticket-rays::before { left: -430px; top: -430px; width: 860px; height: 860px; animation: ticket-spin 18s linear infinite;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 150, 0) 0deg, rgba(255, 214, 150, .46) 7deg, rgba(255, 214, 150, 0) 15deg, rgba(255, 214, 150, 0) 22.5deg);
  -webkit-mask: radial-gradient(circle, #000 10%, rgba(0, 0, 0, .55) 32%, transparent 64%); mask: radial-gradient(circle, #000 10%, rgba(0, 0, 0, .55) 32%, transparent 64%); }
.ticket-rays::after { left: -300px; top: -300px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255, 205, 130, .5), rgba(255, 190, 110, .15) 42%, transparent 68%); }
.ticket-ring { width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; border: 2px solid rgba(255, 224, 170, .95); box-shadow: 0 0 18px rgba(255, 205, 130, .6); }
@keyframes ticket-spin { to { transform: rotate(360deg); } }
.ticket-star { border-radius: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
/* 减弱动态效果：不撕不翻，直接给背面 */
.ticket-fx.is-static .ticket-main { visibility: hidden; }
.ticket-fx.is-static .ticket-back { visibility: visible; }
.ticket-fx.is-static .ticket-stub { opacity: 0; }
.ticket-fx.is-static .ticket-check circle, .ticket-fx.is-static .ticket-check path { stroke-dashoffset: 0; }
html.ticket-open { overflow: hidden; }

/* 订单页「你的代理资格码」（店主 11-08，src/views/order.js agentQualificationBox） */
.agent-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; padding: 14px 16px; border: 1.5px dashed var(--accent); border-radius: 12px; background: var(--accent-soft); }
.agent-code .mono { font-size: clamp(14px, 4.3vw, 19px); font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.agent-code-box .btn { margin-top: 12px; }

/* 右下角「在线客服」（店主 11-09，layout.js kefuWidget） */
.kefu-fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 19; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px 0 13px; border: 0; border-radius: 999px; background: #1f1e1b; color: #fff; font: inherit; font-size: 14px; font-weight: 600; box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .45); cursor: pointer; transition: transform .2s, background .2s, bottom .25s; }
.kefu-fab .i { width: 18px; height: 18px; }
@media (hover: hover) { .kefu-fab:hover { background: #000; transform: translateY(-1px); } }
body:has(.store-buybar:not([hidden])) .kefu-fab { bottom: calc(86px + env(safe-area-inset-bottom)); }
@media (max-width: 560px) { .kefu-fab { height: 40px; padding: 0 13px 0 11px; font-size: 13px; right: 12px; } }
@media print { .kefu-fab { display: none; } }
.kefu .kefu-lead { margin: 0 0 12px; color: var(--muted, #6f6c63); font-size: 14px; }
.kefu-pick { display: grid; gap: 3px; width: 100%; margin-bottom: 10px; padding: 14px 16px; border: 1px solid #e3e1da; border-radius: 14px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.kefu-pick strong { font-size: 15.5px; font-weight: 650; }
.kefu-pick small { font-size: 12.5px; color: #77746a; line-height: 1.5; }
@media (hover: hover) { .kefu-pick:hover { border-color: #1f1e1b; background: #fafaf7; } }
.kefu-back { margin: 0 0 10px; padding: 0; border: 0; background: none; color: #55524a; font: inherit; font-size: 13.5px; cursor: pointer; }
.kefu-sub { margin: 4px 0 8px; font-size: 12.5px; font-weight: 600; color: #77746a; }
.kefu-orders { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.kefu-order { display: grid; gap: 2px; padding: 11px 14px; border: 1px solid #e3e1da; border-radius: 12px; background: #fff; color: inherit; text-decoration: none; }
.kefu-order strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kefu-order small { font-size: 12px; color: #77746a; }
@media (hover: hover) { .kefu-order:hover { border-color: #1f1e1b; } }
.kefu-form { display: grid; gap: 10px; }
.kefu-form .field { display: grid; gap: 5px; margin: 0; font-size: 13.5px; font-weight: 600; }
.kefu-form .hint { margin: 0; font-size: 12.5px; line-height: 1.6; color: #77746a; }
.kefu-bound { display: grid; gap: 10px; }
.kefu-bound p { margin: 0; font-size: 14px; line-height: 1.65; }
/* 订单页：已付款、自动采购中 */
.web-pickup-buying { display: flex; align-items: center; gap: 10px; }
.web-pickup-spin { flex: none; width: 16px; height: 16px; border: 2px solid rgba(0, 0, 0, .15); border-top-color: currentColor; border-radius: 50%; animation: kefu-spin .8s linear infinite; }
@keyframes kefu-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .web-pickup-spin { animation: none; } }

/* 屏幕阅读器才读到的标题（「我的」卡片的各栏标题） */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 顶栏四项（店主 11-09：购买 · 教程 · 我的 · 客服） */
.nav { gap: 2px; }
.nav a, .nav-btn { font-size: 15px; }
@media (max-width: 600px) { .nav { overflow: visible; } .nav a, .nav-btn { padding: 6px 9px; font-size: 14px; } }
@media (max-width: 360px) { .nav a, .nav-btn { padding: 6px 6px; } }

/* 客服弹窗：常见问题、加入群聊收进来（店主 11-09） */
.kefu-groups { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #ecebe5; }
.kefu-group { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 14px; border: 1px solid #e3e1da; border-radius: 12px; background: #fff; color: inherit; font: inherit; font-size: 14px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; transition: border-color .2s; }
.kefu-group .i { flex: none; width: 18px; height: 18px; color: #2aabee; }
.kefu-group-end { margin-left: auto; color: #8a877d; font-size: 12.5px; font-weight: 500; }
@media (hover: hover) { .kefu-group:hover { border-color: #1f1e1b; } }
.kefu-faq details { padding: 14px 2px; border-bottom: 1px solid #ecebe5; }
.kefu-faq details:first-child { padding-top: 4px; }
.kefu-faq summary { display: flex; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; font-size: 14.5px; font-weight: 600; }
.kefu-faq summary::-webkit-details-marker { display: none; }
.kefu-faq summary::after { content: "+"; flex: none; color: #8a877d; font-weight: 400; transition: transform .2s; }
.kefu-faq details[open] summary::after { transform: rotate(45deg); }
.kefu-faq p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.75; color: #5d5a52; }
.kefu-faq-more { display: inline-block; margin-top: 14px; font-size: 13.5px; }
@media (prefers-reduced-motion: reduce) { .kefu-faq summary::after { transition: none; } }

/* 教程两页顶上的切换条（店主 11-09：顶栏「教程」= 使用教程 + 买 U 教程，layout.js guideTabs） */
.guide-tabs { display: inline-grid; grid-auto-flow: column; gap: 2px; margin: 0 0 18px; padding: 4px; border-radius: 12px; background: #ebe8e1; }
.guide-tabs a { display: grid; place-items: center; height: 36px; padding: 0 16px; border-radius: 9px; color: var(--ink-3); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .15s, background .15s; }
.guide-tabs a:hover { color: var(--ink); }
.guide-tabs a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(25, 24, 22, .12); }
.prose .guide-tabs a { text-decoration: none; }
/* 手机商品页：右下「在线客服」浮钮会压住「合计」和买前四点（店主 11-09 走查），顶栏已有「客服」，商品页手机上不放浮钮 */
@media (max-width: 860px) { body.store-item-page .kefu-fab { display: none; } }

/* 顶栏对标同行（店主 11-09）：入口装进一条胶囊导航，当前页白底高亮（public/app.js 标 aria-current）；
   「开通代理」单独一个亮色按钮；「我的」放最右边做成实心按钮 */
.top-inner { gap: 16px; }
.top .nav { flex: 0 1 auto; display: flex; align-items: center; gap: 2px; margin: 0 auto 0 28px; padding: 4px; border-radius: 999px; background: rgba(25, 24, 22, .055); overflow: visible; }
.top .nav > a, .top .nav > .nav-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); background: none; }
.top .nav > a:hover, .top .nav > .nav-btn:hover { color: var(--ink); background: rgba(255, 255, 255, .75); }
.top .nav > [aria-current="page"] { color: var(--ink); font-weight: 650; background: var(--card); box-shadow: 0 1px 2px rgba(25, 24, 22, .1), 0 2px 8px -4px rgba(25, 24, 22, .18); }
.top .nav > .nav-agent { gap: 7px; margin-left: 4px; font-weight: 700; color: #2a1a0c; background: linear-gradient(95deg, #f7cf94 0%, #ec915f 100%); box-shadow: 0 6px 16px -8px rgba(214, 112, 58, .75), inset 0 1px 0 rgba(255, 255, 255, .45); }
.top .nav > .nav-agent:hover { color: #1d1208; background: linear-gradient(95deg, #f9d6a1 0%, #ef9c6c 100%); }
.top .nav > .nav-agent .i { width: 18px; height: 18px; }
.nav-me { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600; text-decoration: none; box-shadow: 0 8px 18px -10px rgba(25, 24, 22, .6); transition: background .15s, transform .12s var(--ease); }
.nav-me:hover { background: #000; }
.nav-me:active { transform: scale(.97); }
@media (max-width: 980px) { .nav-agent-more { display: none; } }
@media (max-width: 760px) { .top .nav > .nav-agent { display: none; } }
@media (max-width: 600px) {
  .top-inner { gap: 8px; }
  .top .nav { margin: 0 0 0 auto; padding: 3px; }
  .top .nav > a, .top .nav > .nav-btn { height: 32px; padding: 0 12px; font-size: 14px; }
  .nav-me { height: 36px; padding: 0 15px; font-size: 14px; }
}
@media (max-width: 360px) { .top .nav > a, .top .nav > .nav-btn { padding: 0 9px; } .nav-me { padding: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .nav-me { transition: none; } }

/* 页脚对标同行（店主 11-09）：品牌一句话 + 商城 / 支持 / 教程三栏 */
.foot { margin-top: 72px; border-top: 1px solid var(--line); background: var(--card); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 52px; padding-bottom: 44px; }
.foot-brand img { display: block; height: 30px; width: auto; }
.foot-brand p { margin-top: 16px; max-width: 360px; font-size: 14px; line-height: 1.75; color: var(--ink-3); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.foot-col h2 { margin-bottom: 2px; font-size: 14px; font-weight: 700; color: var(--ink); }
.foot-col a, .foot-col button { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink-3); text-decoration: none; cursor: pointer; transition: color .15s; }
.foot-col a:hover, .foot-col button:hover { color: var(--ink); }
.foot-col .i { width: 17px; height: 17px; }
.foot-bottom { display: flex; align-items: center; gap: 24px; height: 56px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-3); }
.foot-legal { display: flex; gap: 20px; }
.foot-legal a { color: var(--ink-3); transition: color .15s; }
.foot-legal a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .foot { margin-top: 56px; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; padding-top: 36px; padding-bottom: 30px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-brand p { margin-top: 12px; }
}

/* 顶栏右边：搜索、夜间模式、登录（店主 11-09 对标同行；购物车和语言本站没有对应功能，没放） */
.top-tools { flex: none; display: flex; align-items: center; gap: 8px; }
.top-icon { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink-2); cursor: pointer; transition: border-color .15s, color .15s; }
.top-icon:hover { color: var(--ink); border-color: var(--ink-4); }
.top-icon .i { width: 19px; height: 19px; }
.top-icon .i-sun { display: none; }
html[data-theme="dark"] .top-icon .i-sun { display: block; }
html[data-theme="dark"] .top-icon .i-moon { display: none; }
/* 店主 11-09「没看到」开通代理：窄屏也显示（缩成「开通代理」）；手机上导航条换到第二行、整行可横滑，代理按钮靠右 */
@media (max-width: 760px) {
  .top-inner { flex-wrap: wrap; row-gap: 8px; }
  .top .nav { order: 3; flex: 1 1 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .top .nav::-webkit-scrollbar { display: none; }
  .top .nav > .nav-agent { display: inline-flex; margin-left: auto; flex: none; }
  .top-tools { margin-left: auto; gap: 6px; }
  .top-icon { width: 36px; height: 36px; }
  .top-icon .i { width: 18px; height: 18px; }
}

/* 顶栏搜索框 */
dialog.site-search { width: min(560px, calc(100vw - 32px)); margin: 12vh auto auto; padding: 14px; }
.site-search-form { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 6px 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.site-search-form:focus-within { border-color: var(--ink-3); }
.site-search-form .i { flex: none; width: 20px; height: 20px; color: var(--ink-3); }
.site-search-form input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.site-search-form input::-webkit-search-cancel-button { display: none; }
.site-search-form .btn { height: 42px; padding: 0 18px; }
.site-search-hot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.site-search-hot a { padding: 6px 12px; border-radius: 999px; background: rgba(25, 24, 22, .055); color: var(--ink-2); font-size: 13.5px; text-decoration: none; }
.site-search-hot a:hover { color: var(--ink); background: rgba(25, 24, 22, .09); }
@media (max-width: 760px) { .top .nav > :first-child { margin-left: 0; } }

/* 顶栏交互（店主 11-11「导航栏界面的交互感给我做出来一点」，配合 public/nav.js）：
   胶囊导航一块滑块跟着鼠标走、停在当前页；右边圆按钮悬停微微浮起、图标各有小动作、按下回弹；「登录」和「开通代理」有一道光扫过 */
.top .nav { position: relative; isolation: isolate; }
.nav-pill { position: absolute; top: 0; left: 0; z-index: -1; border-radius: 999px; background: var(--card); box-shadow: 0 1px 2px rgba(25, 24, 22, .1), 0 2px 8px -4px rgba(25, 24, 22, .18); opacity: 0; pointer-events: none;
  transform: translate(var(--x, 0), var(--y, 0)) scale(var(--s, 1)); transition: transform .42s cubic-bezier(.32, 1.25, .5, 1), width .42s cubic-bezier(.32, 1.25, .5, 1), height .3s, opacity .2s, background-color .2s, box-shadow .2s; }
.nav-pill.is-on { opacity: 1; }
.nav-pill.is-hover { background: rgba(255, 255, 255, .82); box-shadow: 0 1px 2px rgba(25, 24, 22, .06); }
.nav-pill.is-press { --s: .94; transition-duration: .12s, .42s, .3s, .2s, .2s, .2s; }
.nav-pill.no-anim { transition: none; }
.top .nav.has-pill > a:not(.nav-agent), .top .nav.has-pill > .nav-btn { background: none; box-shadow: none; transition: color .2s, transform .12s var(--ease); }
.top .nav.has-pill > a:not(.nav-agent):hover, .top .nav.has-pill > .nav-btn:hover { background: none; }
.top .nav.has-pill > .is-lit { color: var(--ink); }
.top .nav > a:not(.nav-agent):active, .top .nav > .nav-btn:active { transform: none; }

.top .nav > .nav-agent { position: relative; overflow: hidden; isolation: isolate; transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.top .nav > .nav-agent::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%); transform: translateX(-120%); animation: nav-shine 6s ease-in-out 2.5s infinite; pointer-events: none; }
.top .nav > .nav-agent:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(214, 112, 58, .9), inset 0 1px 0 rgba(255, 255, 255, .45); }
.top .nav > .nav-agent:active { transform: scale(.96); }
.top .nav > .nav-agent .i { transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.top .nav > .nav-agent:hover .i { transform: rotate(-20deg) scale(1.1); }
@keyframes nav-shine { 0%, 72% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.top-icon { position: relative; transition: border-color .15s, color .15s, background-color .2s, transform .2s var(--ease), box-shadow .2s; }
.top-icon:hover { transform: translateY(-1px); box-shadow: 0 8px 16px -10px rgba(25, 24, 22, .4); }
.top-icon:active { transform: scale(.9); transition-duration: .08s; box-shadow: none; }
.top-icon .i { transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.top-icon[data-open="site-search"]:hover .i { transform: rotate(-14deg) scale(1.08); }
.top-icon[data-theme-toggle]:hover .i-moon { transform: rotate(-24deg); }
.top-icon[data-theme-toggle]:hover .i-sun { transform: rotate(60deg); }
.top-icon.is-spin .i { animation: icon-turn .5s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes icon-turn { from { transform: rotate(-120deg) scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.top-lang:hover .i { transform: scale(1.1) rotate(-6deg); }
html[lang="en"] .top-lang { color: var(--ink); border-color: var(--ink-4); }
html[lang="en"] .top-lang::after { content: 'EN'; position: absolute; top: -4px; right: -6px; padding: 1px 4px; border-radius: 6px; background: var(--ink); color: var(--card); font-size: 9px; font-weight: 800; line-height: 1.3; letter-spacing: .02em; }

.nav-me { position: relative; overflow: hidden; isolation: isolate; transition: background .15s, transform .2s var(--ease), box-shadow .2s; }
.nav-me::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .3) 50%, transparent 70%); transform: translateX(-110%); transition: transform .65s var(--ease); }
.nav-me:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -12px rgba(25, 24, 22, .7); }
.nav-me:hover::before { transform: translateX(110%); }
.nav-me:active { transform: scale(.95); transition-duration: .08s; }

html[data-theme="dark"] .nav-pill { background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .nav-pill.is-hover { background: rgba(18, 17, 15, .75); }
html[data-theme="dark"] .top-icon:hover { box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .8); }
html[data-theme="dark"] .nav-me::before { background: linear-gradient(105deg, transparent 30%, rgba(0, 0, 0, .14) 50%, transparent 70%); }
html[data-theme="dark"][lang="en"] .top-lang::after { background: #e7e5df; color: #1b1b1b; }

@media (hover: none) { .top-icon:hover, .nav-me:hover, .top .nav > .nav-agent:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .nav-pill, .top-icon, .top-icon .i, .nav-me, .nav-me::before, .top .nav > .nav-agent, .top .nav > .nav-agent .i { transition: none; }
  .top .nav > .nav-agent::after, .top-icon.is-spin .i { animation: none; }
}
html[data-theme="dark"] .top .nav.has-pill > a:not(.nav-agent):hover, html[data-theme="dark"] .top .nav.has-pill > .nav-btn:hover { background: none; }

/* 购物车（11-11 轻量版）：顶栏图标右上角的件数 */
.top-cart-n { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--card); }
.top-cart-n[hidden] { display: none; }
.top-cart-n.is-pop { animation: cart-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cart-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.top-cart:hover .i { transform: translateX(1px) rotate(-6deg); }
@media (prefers-reduced-motion: reduce) { .top-cart-n.is-pop { animation: none; } }

