: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; }
.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 { 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); }

.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; }

.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 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; }

.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; }
.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; }
.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; }
.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; }

.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 .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 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-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; }
  .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; }
  .nav a, .nav-btn { padding: 6px 8px; }
  .wx { margin-right: 2px; padding-left: 10px; }
  .wx-label { display: none; }
  .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; }
}
