/* 续订 storefront — visual system v2 (2026-11)
   Paper / ink / leaf. Quiet, content-first plan cards; descriptions fold after four lines. */

@font-face {
  font-family: "Numerals";
  src: url("/numerals.woff2?v=4c8b93f431d4") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2022, U+2026, U+20AC, U+2212, U+00D7, U+FFE5;
}

:root {
  color-scheme: light;
  --paper: #f5f7f4;
  --surface: #ffffff;
  --ink: #13221a;
  --ink-2: #4a5a50;
  --ink-3: #75847a;
  --leaf: #1e7a4c;
  --leaf-strong: #16603b;
  --mint: #e2efe6;
  --mint-2: #f0f6f2;
  --line: #d3dcd5;
  --line-soft: #e5ebe6;
  --amber: #9a5b00;
  --amber-wash: #fbf1df;
  --red: #b4232a;
  --red-wash: #fbe9e9;
  --alipay: #1677ff;

  --font: "Numerals", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sheet: 20px;
  --r-card: 14px;
  --r-control: 10px;
  --r-pill: 999px;

  --page: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
h1, h2, h3 { line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
a { color: var(--leaf); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--leaf) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: var(--r-control); background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
.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; }

/* ---------- Header ---------- */
.header, body > footer { padding-inline: max(var(--gutter), calc((100% - var(--page)) / 2)) !important; }
.header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; background: var(--leaf); color: #fff;
  font-size: 18px; font-weight: 700; line-height: 1;
}
.brand-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
#brand-name { font-size: 17px; font-weight: 700; }
.brand-caption { font-size: 11px; color: var(--ink-3); letter-spacing: 0.02em; }
.brand-caption:empty { display: none; }
.header nav { display: flex; gap: 4px; }
.header nav a {
  position: relative; padding: 8px 12px; border-radius: var(--r-control);
  color: var(--ink-2); font-size: 15px; text-decoration: none;
}
.header nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--leaf);
}
.header-note { margin-left: auto; color: var(--ink-3); font-size: 13px; }

/* ---------- Layout ---------- */
main { flex: 1; width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 72px; }
main:focus { outline: none; }
.loading, .order-loading { padding: 64px 0; color: var(--ink-3); text-align: center; }
/* Only show the placeholder if loading is actually slow, so fast pages don't flash it. */
.loading { animation: loading-in .2s ease-out .4s both; }
@keyframes loading-in { from { opacity: 0; } to { opacity: 1; } }

.notice {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 24px; padding: 12px 16px;
  border-radius: var(--r-control); background: var(--mint); color: var(--leaf-strong); font-size: 14px;
}
.notice.is-demo { background: var(--amber-wash); color: var(--amber); }
.notice.is-closed { background: var(--line-soft); color: var(--ink-2); }
.status-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- Buttons ---------- */
.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  border-radius: var(--r-control); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; text-decoration: none; line-height: 1.3;
  transition: background-color .15s, border-color .15s, color .15s;
}
.primary { background: var(--leaf); color: #fff; }
.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.full { width: 100%; }
button:disabled { cursor: not-allowed; opacity: .5; }
.icon-button {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font-size: 24px; line-height: 1;
}
.text-link { display: inline-block; margin-top: 24px; font-weight: 600; }
@media (hover: hover) {
  .primary:hover:not(:disabled) { background: var(--leaf-strong); }
  .secondary:hover:not(:disabled) { border-color: var(--ink-3); }
  .plan-cta.secondary:hover:not(:disabled) { background: var(--mint-2); border-color: var(--leaf); }
  .icon-button:hover { background: var(--line-soft); }
  .header nav a:hover { color: var(--ink); background: var(--line-soft); }
}

/* ---------- Home: intro ---------- */
.intro { padding: clamp(20px, 3.2vw, 44px) 0 clamp(24px, 3.2vw, 40px); max-width: 760px; }
.intro h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }
.intro h1, .intro p, .page-head p, .help-hero > p { text-wrap: pretty; }
.intro p { margin-top: 18px; max-width: 34em; color: var(--ink-2); font-size: clamp(16px, 1.6vw, 18px); }

/* ---------- Home: plans ---------- */
.plan-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan-grid.count-1 { grid-template-columns: minmax(0, 340px); }
.plan-grid.count-2 { grid-template-columns: repeat(2, minmax(0, 340px)); }
.plan-grid.count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan {
  display: flex; flex-direction: column;
  padding: 22px 22px 22px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
}
/* Product mark beside the plan name and its one-line label, both lines centred on the mark (the SVG is cropped to the glyph, no built-in padding). */
.plan-head { display: flex; align-items: center; gap: 14px; }
/* Badge sits on the top edge of the promoted card so it never squeezes the plan name. */
.plan { position: relative; }
.plan-badge { position: absolute; top: 0; left: 22px; transform: translateY(-50%); padding: 1px 10px; border: 1px solid color-mix(in srgb, var(--leaf) 45%, var(--line)); border-radius: 999px; background: var(--surface); color: var(--leaf-strong); font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.plan.is-featured .plan-badge { border-color: var(--leaf); background: var(--leaf); color: #fff; }
.plan-grid:has(.plan-badge) { padding-top: 16px; }
/* Hovering a card lifts it slightly, warms the border and pre-fills its button, so the card reads as one clickable choice. */
@media (hover: hover) {
  .plan { transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease, border-color .22s ease; }
  .plan:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--leaf) 40%, var(--line)); box-shadow: 0 18px 36px -24px color-mix(in srgb, var(--leaf) 55%, transparent); }
  .plan.is-featured:hover { border-color: var(--leaf); box-shadow: 0 0 0 1px var(--leaf), 0 22px 40px -22px color-mix(in srgb, var(--leaf) 75%, transparent); }
  .plan:hover .plan-cta.secondary { background: var(--mint-2); border-color: var(--leaf); }
  .plan:hover .plan-head img { transform: rotate(-8deg) scale(1.06); }
  .plan-head img { transition: transform .3s cubic-bezier(.2,.7,.3,1); }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .plan, .plan-head img { transition: none; }
  .plan:hover { transform: none; }
  .plan:hover .plan-head img { transform: none; }
}
/* Promoted plan: green frame and a soft green glow; the others keep a quiet card but a clearly clickable green outline button. */
.plan.is-featured { border-color: var(--leaf); box-shadow: 0 0 0 1px var(--leaf), 0 14px 32px -20px color-mix(in srgb, var(--leaf) 70%, transparent); }
.plan-cta.secondary { color: var(--leaf); border-color: color-mix(in srgb, var(--leaf) 45%, var(--line)); }
.plan-head img { flex: none; width: 32px; height: 32px; }
.plan-head > div { min-width: 0; }
.plan-head h2 { font-size: 18px; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.plan-label { margin-top: 1px; color: var(--ink-3); font-size: 14px; line-height: 1.45; }

.plan-buy { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.plan-price span { color: var(--ink-3); font-size: 14px; }
.plan-official { margin-top: 2px; color: var(--ink-3); font-size: 13px; }
.plan-features { list-style: none; margin: 16px 0 0; padding: 0; font-size: 14px; color: var(--ink-2); }
.plan-features .extra { display: none; }
.plan-features.open .extra { display: list-item; }
.plan-more { align-self: flex-start; margin: 8px 0 0 22px; padding: 2px 0; border: 0; background: none; color: var(--leaf); font-size: 13px; font-weight: 600; }
@media (hover: hover) { .plan-more:hover { text-decoration: underline; text-underline-offset: 3px; } }
.plan-features { margin-bottom: 20px; }
.plan-features:has(+ .plan-more) { margin-bottom: 0; }
.plan-more { margin-bottom: 20px; }
.plan > .full { margin-top: auto; }
.plan-features li { position: relative; padding-left: 22px; }
.plan-features li + li { margin-top: 6px; }
.plan-features li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 10px; height: 5px; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf);
  transform: rotate(-45deg);
}


/* ---------- Home: steps ---------- */
.steps { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.steps h2 { font-size: 22px; }
.steps ol { counter-reset: step; list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; position: relative; padding-top: 44px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 700;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: 42px; right: -20px; height: 1px; background: var(--line); }
.steps h3 { font-size: 17px; }
.steps li p { margin-top: 4px; color: var(--ink-2); font-size: 14px; max-width: 22em; }
.steps-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 36px; color: var(--ink-2); font-size: 14px; }
.steps-more a { margin-left: auto; font-weight: 600; }

.empty { padding: 48px 24px; text-align: center; color: var(--ink-2); }
.empty h2, .empty h3 { color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.empty .secondary { margin-top: 20px; }

/* ---------- Footer ---------- */
body > footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 24px var(--gutter); border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: 13px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink-2); text-decoration: none; }
.footer-brand b { color: var(--ink); font-size: 15px; }
footer .brand-logo { width: 24px; height: 24px; border-radius: 6px; }
body > footer > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
body > footer > div a { color: var(--ink-2); text-decoration: none; }
@media (hover: hover) { body > footer > div a:hover { color: var(--ink); text-decoration: underline; } }

/* ---------- Forms ---------- */
label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; }
input:not([type=checkbox]), select, textarea {
  display: block; width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface);
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.5; font-family: var(--mono); font-size: 13px; }
input:not([type=checkbox]):focus, select:focus, textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf) 18%, transparent); }
input::placeholder, textarea::placeholder { color: var(--ink-3); font-family: var(--font); }
input[type=checkbox] { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--leaf); }
.field-note, .dialog-note { margin: 6px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.field-note a { font-weight: 600; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-weight: 400; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.error { color: var(--red); font-size: 14px; }
.error:empty { display: none; }

/* ---------- Checkout sheet ---------- */
dialog {
  width: min(500px, calc(100% - 32px)); max-height: min(860px, 90vh); padding: 0;
  border: 0; border-radius: var(--r-sheet); background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 80px -20px rgba(19, 34, 26, .35);
}
dialog[open] { display: flex; }
/* The sheet body scrolls on its own; the dialog itself never shows scrollbars. */
#checkout { overflow: hidden; }
dialog::backdrop { background: rgba(19, 34, 26, .42); }
#checkout-form { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.sheet-head { display: grid; grid-template-columns: 1fr auto auto; align-items: start; gap: 12px; padding: 20px 20px 16px 24px; border-bottom: 1px solid var(--line-soft); }
.sheet-kicker { color: var(--ink-3); font-size: 13px; }
.sheet-head h2 { font-size: 22px; }
.checkout-price { align-self: end; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.checkout-price strong { color: var(--ink); font-size: 22px; font-weight: 700; }
.sheet-head .icon-button { margin: -4px -6px 0 0; }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.sheet-body > * { flex: none; }
.step-title { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.sheet-step { margin: 0; }
.sheet-foot { padding: 16px 24px 20px; border-top: 1px solid var(--line-soft); background: var(--surface); }
.sheet-foot .dialog-note { text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: sheet-in .22s cubic-bezier(.2, .7, .2, 1); }
  dialog[open]::backdrop { animation: fade-in .22s ease-out; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.precheck { border: 1px solid var(--line); border-radius: var(--r-card); padding: 0; min-width: 0; overflow: hidden; }
.switch-row { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; font-weight: 400; cursor: pointer; background: var(--mint-2); }
.switch-row b { display: block; font-size: 15px; }
.switch-row small { display: block; color: var(--ink-2); font-size: 13px; line-height: 1.55; }
#precheck-fields { display: grid; gap: 4px; padding: 16px; border-top: 1px solid var(--line-soft); }
#precheck-fields label:not(:first-child) { margin-top: 10px; }
#precheck-fields .field-note { margin-bottom: 4px; }
#precheck-run { margin-top: 12px; }

.account-review { margin: 16px 0 0; padding: 16px; border-radius: var(--r-control); background: var(--mint-2); border: 1px solid var(--mint); font-size: 14px; }
.account-review h3 { font-size: 15px; color: var(--leaf-strong); }
.account-review > p { color: var(--ink-2); font-size: 13px; margin-top: 6px; }
.account-review dl { margin: 10px 0; }
.account-review dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.account-review dl > div:last-child { border-bottom: 0; }
.account-review dt { color: var(--ink-3); }
.account-review dd { text-align: right; overflow-wrap: anywhere; font-weight: 600; }
.account-review .consent { margin-top: 6px; color: var(--ink); }

.checkout-payment > p { order: 2; margin-top: 8px; color: var(--ink-3); font-size: 13px; }
.checkout-payment { display: flex; flex-direction: column; }
.checkout-payment .step-title { order: 0; }
.pay-options { order: 1; display: grid; gap: 8px; }
.pay-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-control); background: var(--surface); cursor: pointer; }
.pay-option { position: relative; }
.pay-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.pay-options:has(#pay-balance-option:not([hidden])) { grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .pay-option { padding: 10px 12px; gap: 10px; } .pay-option::after { display: none; } .pay-option small { font-size: 11px; } }
.pay-option:has(input:checked) { border-color: var(--alipay); background: #f3f8ff; }
.pay-option:has(input[value="balance"]:checked) { border-color: var(--leaf); background: var(--mint-2); }
.pay-option:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.pay-option:has(input:focus-visible) { outline: 2px solid var(--leaf); outline-offset: 2px; }
.pay-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--leaf); color: #fff; font-size: 13px; font-weight: 700; }
.pay-option b { display: block; font-size: 15px; }
.pay-option small { display: block; color: var(--ink-3); font-size: 12px; }
.pay-option::after { content: ""; margin-left: auto; width: 18px; height: 18px; border-radius: 50%; outline: 1.5px solid var(--line); }
.pay-option:has(input:checked)::after { background: currentColor; box-shadow: inset 0 0 0 4px var(--surface); outline-color: currentColor; color: var(--alipay); }
.pay-option:has(input[value="balance"]:checked)::after { color: var(--leaf); }

/* ---------- Page heads & text pages ---------- */
.page-head { padding: clamp(20px, 3.2vw, 44px) 0 24px; max-width: 720px; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em; }
.page-head p { margin-top: 8px; color: var(--ink-2); }
.prose { max-width: 68ch; }
/* A status banner opening a page sits below the header with the same breathing room as page titles. */
main > .notice:first-child { margin-top: clamp(20px, 3vw, 32px); }
main > .notice:first-child + .page-head { padding-top: 8px; }
/* Privacy and terms: one row per item, title beside its text on wide screens. */
.prose.doc-page { max-width: 860px; }
.doc-list { border-top: 1px solid var(--line); margin-bottom: 28px; }
.doc-item { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.prose .doc-item h2 { margin: 0; font-size: 17px; line-height: 1.6; }
.prose .doc-item p { margin: 0; max-width: 62ch; }
.doc-item.no-title p { grid-column: 2; }
@media (max-width: 720px) {
  .doc-item { grid-template-columns: 1fr; padding: 18px 0; }
  .doc-item.no-title p { grid-column: auto; }
}
.prose h2 { margin: 32px 0 8px; font-size: 19px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); line-height: 1.85; white-space: pre-line; }

/* ---------- Orders ---------- */
.panel { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-sheet); background: var(--surface); }
.order-detail { display: grid; gap: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.section-heading h2 { font-size: 24px; }
.order-kind { color: var(--amber); font-size: 13px; font-weight: 600; }
.order-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; color: var(--ink-3); font-size: 14px; }
.order-meta span:first-child { font-family: var(--mono); font-size: 13px; }
.state-tag { flex: none; padding: 5px 12px; border-radius: var(--r-pill); background: var(--line-soft); color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.state-tag.tone-good { background: var(--mint); color: var(--leaf-strong); }
.state-tag.tone-action { background: var(--ink); color: #fff; }
.state-tag.tone-warn { background: var(--amber-wash); color: var(--amber); }

.progress { counter-reset: p; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.progress li { position: relative; display: flex; flex-direction: column; gap: 8px; color: var(--ink-3); font-size: 14px; }
.progress li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line); font-size: 13px; font-weight: 700; }
.progress li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: 28px; right: 0; height: 1.5px; background: var(--line); }
.progress li.complete { color: var(--ink); font-weight: 600; }
.progress li.complete > span { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.progress li.complete:not(:last-child)::after { background: var(--leaf); }

.order-callout { display: grid; gap: 12px; padding: clamp(18px, 3vw, 28px); border-radius: var(--r-card); background: var(--mint-2); border: 1px solid var(--line-soft); }
.order-callout > h3 { font-size: 20px; }
.order-callout > p { color: var(--ink-2); }
.order-account { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--ink-3) !important; }
.order-account b { color: var(--ink); font-weight: 600; }
.order-callout > #refresh-order { justify-self: start; }

.payment-layout { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 20px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.qr-frame { display: grid; place-items: center; width: 236px; aspect-ratio: 1; padding: 8px; border-radius: var(--r-control); border: 1px solid var(--line-soft); background: #fff; }
.payment-qr { width: 220px; height: 220px; image-rendering: pixelated; }
.qr-feedback { display: grid; gap: 12px; justify-items: center; padding: 16px; color: var(--ink-3); font-size: 14px; text-align: center; }
.payment-instructions { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.payment-channel { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 15px; }
.payment-total { display: grid; color: var(--ink-3); }
.payment-total strong { color: var(--ink); font-size: 38px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.payment-deadline { color: var(--amber); font-weight: 600; }
.subtle { color: var(--ink-3); font-size: 13px; }

#credential-form { display: grid; gap: 4px; padding: 20px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
#credential-form label:not(:first-child):not(.consent) { margin-top: 12px; }
#credential-form .consent { margin-top: 12px; }
#credential-form > .primary { justify-self: start; margin-top: 16px; }

.recharge-timeline { padding: 20px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.timeline-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.timeline-heading h3 { font-size: 16px; }
.timeline-heading span { color: var(--ink-3); font-size: 13px; }
.timeline-heading span.live { color: var(--leaf); font-weight: 600; }
.recharge-timeline ol { list-style: none; padding: 0; margin-top: 16px; }
.timeline-item { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 1.5px; background: var(--line); }
.timeline-dot { flex: none; width: 13px; height: 13px; margin-top: 6px; border-radius: 50%; background: var(--ink-3); }
.timeline-item.success .timeline-dot { background: var(--leaf); }
.timeline-item.error .timeline-dot { background: var(--red); }
.timeline-item.warning .timeline-dot { background: #d18a12; }
.timeline-item.current .timeline-dot { background: var(--leaf); box-shadow: 0 0 0 4px var(--mint); }
.timeline-item.waiting .timeline-dot { background: transparent; border: 1.5px dashed var(--ink-3); }
.timeline-item strong { display: block; font-size: 15px; font-weight: 600; }
.timeline-item.waiting strong { color: var(--ink-3); font-weight: 400; }
.timeline-attempt { display: inline-block; margin-right: 10px; color: var(--ink-2); font-size: 12px; }
.timeline-item time, .timeline-item p { color: var(--ink-3); font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
  .timeline-item.current .timeline-dot { animation: pulse 2s ease-in-out infinite; }
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--mint) 40%, transparent); } }

.refund-note { padding: 12px 16px; border-radius: var(--r-control); background: var(--amber-wash); color: var(--amber); font-size: 14px; }

/* details with +/− indicator (FAQ, recovery, refund, order tools) */
details > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details > summary > span:last-child { position: relative; flex: none; width: 14px; height: 14px; }
details > summary > span:last-child::before,
details > summary > span:last-child::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: var(--ink-3); transition: transform .2s; }
details > summary > span:last-child::after { transform: rotate(90deg); }
details[open] > summary > span:last-child::after { transform: rotate(0); }

.order-detail > details { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.order-detail > details > summary { font-weight: 600; font-size: 15px; }
.order-detail > details > p, .order-detail > details > form { margin-top: 12px; color: var(--ink-2); font-size: 14px; }
.order-detail > details > form { display: grid; gap: 14px; justify-items: start; }
.recovery code { display: block; margin-top: 10px; padding: 12px 14px; border-radius: var(--r-control); background: var(--paper); font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; user-select: all; }

.order-tools { margin-top: 24px; }
.order-meta, .recent-order small, .timeline-item time { font-feature-settings: "tnum" 1; }
.order-tools > summary { padding: 16px 0; font-weight: 600; border-top: 1px solid var(--line); }
#order-detail:empty + .order-meta, .recent-order small, .timeline-item time { font-feature-settings: "tnum" 1; }
.order-tools > summary { border-top: 0; }
.orders-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 8px; }
.orders-layout .panel h2 { font-size: 18px; margin-bottom: 8px; }
.orders-layout .panel > .subtle { margin-bottom: 16px; font-size: 14px; }
#lookup-form { display: grid; gap: 4px; }
#lookup-form label:not(:first-child) { margin-top: 12px; }
#lookup-form .primary { margin-top: 18px; }
#lookup-error { margin-top: 12px; }
.recent-orders { display: grid; gap: 8px; }
.recent-order { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); text-align: left; font-size: 14px; }
.recent-order b { display: block; font-size: 15px; }
.recent-order small { color: var(--ink-3); font-family: var(--mono); font-size: 12px; }
.recent-order > span:last-child { color: var(--leaf); font-weight: 600; white-space: nowrap; }
@media (hover: hover) { .recent-order:hover { border-color: var(--leaf); } }
.orders-layout .empty { padding: 24px 8px; }

/* ---------- Help ---------- */
.help-hero { padding: clamp(20px, 3.2vw, 44px) 0 28px; max-width: 720px; }
.help-hero h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em; }
.help-hero > p { margin-top: 8px; color: var(--ink-2); }
.help-search { margin: 24px 0 0; font-weight: 400; }
.help-search input {
  min-height: 52px; padding-left: 46px; border-radius: var(--r-card);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2375847a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='m14 14 4 4'/%3E%3C/svg%3E") no-repeat 16px center;
}
.help-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; color: var(--ink-3); font-size: 14px; }
.help-shortcuts a { padding: 4px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; }
@media (hover: hover) { .help-shortcuts a:hover { border-color: var(--leaf); color: var(--leaf); } }
.help-workspace { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 48px; align-items: start; }
.help-directory { position: sticky; top: 88px; }
.help-directory > p { color: var(--ink-3); font-size: 13px; margin-bottom: 8px; }
.help-directory nav { display: grid; gap: 2px; border-left: 1.5px solid var(--line); }
.help-directory a { padding: 6px 14px; margin-left: -1.5px; border-left: 1.5px solid transparent; color: var(--ink-2); font-size: 15px; text-decoration: none; }
@media (hover: hover) { .help-directory a:hover { color: var(--ink); border-left-color: var(--leaf); } }
#help-results { max-width: 760px; }
.help-section + .help-section { margin-top: 40px; }
.help-section h2 { font-size: 19px; margin-bottom: 6px; }
.help-section details { border-bottom: 1px solid var(--line); }
.help-section summary { padding: 16px 0; font-size: 16px; font-weight: 600; }
.help-section details p { padding: 0 0 18px; color: var(--ink-2); line-height: 1.85; max-width: 62ch; }
.help-contact { max-width: 760px; margin-top: 48px; padding: 24px; border-radius: var(--r-card); background: var(--mint-2); border: 1px solid var(--line-soft); }
.help-contact h2 { font-size: 18px; }
.help-contact p { margin: 6px 0 16px; color: var(--ink-2); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .plan-grid, .plan-grid.count-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .header-note, .brand-caption { display: none; }
  .header nav { margin-left: auto; }
  .header nav a { padding: 8px 9px; font-size: 14px; }
  .steps ol { grid-template-columns: 1fr; gap: 20px; }
  .steps li { padding: 0 0 0 46px; }
  .steps li:not(:last-child)::after { top: 36px; left: 15px; right: auto; bottom: -16px; width: 1px; height: auto; }
  .steps-more { display: block; }
  .steps-more img { display: inline-block; vertical-align: -3px; margin-right: 6px; }
  .steps-more a { display: block; margin-top: 8px; }
  .orders-layout { grid-template-columns: 1fr; }
  .payment-layout { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .payment-channel { justify-content: center; }
  .help-workspace { grid-template-columns: 1fr; gap: 0; }
  .help-directory { display: none; }
}
@media (max-width: 640px) {
  .plan-grid, .plan-grid.count-1, .plan-grid.count-2, .plan-grid.count-3 { grid-template-columns: 1fr; gap: 12px; }
  .plan { padding: 18px; }
  .plan-badge { left: 18px; }
  .plan:has(.plan-badge):not(:first-child) { margin-top: 8px; }
  .plan-price strong { font-size: 28px; }

  dialog { width: 100%; max-width: 100%; max-height: 94vh; margin: auto 0 0; border-radius: var(--r-sheet) var(--r-sheet) 0 0; }
  .sheet-head { padding: 16px 16px 14px 20px; grid-template-columns: 1fr auto; }
  .sheet-head .checkout-price { grid-column: 1; grid-row: 2; align-self: start; }
  .sheet-head .icon-button { grid-column: 2; grid-row: 1; }
  .sheet-body { padding: 16px 20px; }
  .sheet-foot { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); }

  .section-heading { flex-direction: column-reverse; gap: 10px; }
  .progress li { font-size: 13px; }
  .qr-frame { width: min(236px, 100%); }
  #credential-form, .recharge-timeline, .payment-layout { padding: 16px; }
  #credential-form > .primary { justify-self: stretch; }
  .account-review dl > div { flex-direction: column; gap: 2px; }
  .account-review dd { text-align: left; }
}
@media (max-width: 380px) {
  .brand-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Coupon & animated price ---------- */
.checkout-price { display: flex; align-items: baseline; gap: 6px; }
.price-now { display: inline-block; font-feature-settings: "tnum" 1; transition: color .3s; }
.price-now.ticking { color: var(--leaf); }
.price-was, .meta-price s, .payment-saving s { position: relative; color: var(--ink-3); text-decoration: none; font-size: 14px; }
.price-was::after, .meta-price s::after, .payment-saving s::after {
  content: ""; position: absolute; left: -1px; right: -1px; top: 52%; height: 1.5px; background: currentColor; transform-origin: left center;
}
.sheet-total { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; color: var(--ink-2); font-size: 14px; }
.sheet-total strong { color: var(--ink); font-size: 22px; font-weight: 700; font-feature-settings: "tnum" 1; }
.saving { margin-left: auto; padding: 2px 10px; border-radius: var(--r-pill); background: var(--mint); color: var(--leaf-strong); font-size: 13px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .price-was.enter { animation: was-in .35s ease-out both; }
  .price-was.enter::after { animation: strike .4s cubic-bezier(.6, 0, .3, 1) .15s both; }
  .saving.enter { animation: saving-in .45s cubic-bezier(.2, .9, .3, 1.3) .35s both; }
}
@keyframes was-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes saving-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

.coupon-toggle, .link-button { padding: 4px 0; border: 0; background: none; color: var(--leaf); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.coupon-input { display: flex; gap: 8px; }
.coupon-input input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); font-size: 15px; }
.coupon-input input::placeholder { text-transform: none; letter-spacing: 0; }
.coupon-input .secondary { flex: none; min-width: 72px; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1.5px dashed var(--leaf); border-radius: var(--r-control); background: var(--mint-2); }
.coupon-tag b { display: block; font-family: var(--mono); letter-spacing: .06em; font-size: 15px; color: var(--leaf-strong); }
.coupon-tag small { display: block; color: var(--ink-2); font-size: 13px; }
.coupon .error { margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .coupon-applied:not([hidden]) { animation: fade-in .25s ease-out; }
}

.meta-price { display: inline-flex; align-items: baseline; gap: 6px; }
.meta-price s { font-size: 13px; }
.payment-saving { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 4px; color: var(--leaf-strong); font-size: 13px; }
.payment-layout .payment-saving { justify-content: inherit; }
@media (max-width: 760px) { .payment-saving { justify-content: center; } }

/* ---------- Support channels (footer, bottom-right) ---------- */
.contact { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.contact-item { position: relative; }
.contact-control {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.contact-control img { width: 22px; height: 22px; object-fit: contain; }
.contact-wechat .contact-control img { transform: scaleY(1.08); }
.contact-qr {
  position: absolute; z-index: 30; right: 0; bottom: calc(100% + 10px);
  display: grid; justify-items: center; gap: 6px; width: 164px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
  box-shadow: 0 16px 40px -16px rgba(19, 34, 26, .35);
  opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none;
  transition: opacity .15s, transform .15s, visibility .15s;
}
.contact-qr::after { content: ""; position: absolute; top: 100%; right: 12px; border: 6px solid transparent; border-top-color: var(--surface); }
.contact-qr img { width: 140px; height: 140px; object-fit: contain; image-rendering: pixelated; }
.contact-qr small { color: var(--ink-2); font-size: 12px; }
.contact-item.has-qr:hover .contact-qr, .contact-item.has-qr:focus-within .contact-qr, .contact-item.is-open .contact-qr { opacity: 1; visibility: visible; transform: none; }
.contact-item.is-open .contact-qr { pointer-events: auto; }
@media (hover: hover) { .contact-control:hover { background: var(--line-soft); transform: translateY(-1px); } }
@media (max-width: 760px) {
  .contact { margin-left: -8px; }
  .contact-qr { right: auto; left: 0; }
  .contact-qr::after { right: auto; left: 12px; }
}

/* ---------- Checkout: point at the field that needs attention ---------- */
.attention { position: relative; border-radius: 8px; background: var(--red-wash); box-shadow: 0 0 0 6px var(--red-wash), 0 0 0 7.5px var(--red); }
#checkout .field-error { margin: 12px 0 0; color: var(--red); font-size: 13px; font-weight: 600; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .attention { animation: nudge .4s cubic-bezier(.36, .07, .19, .97) both; }
}
@keyframes nudge { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* ---------- After success: add the operator for renewal reminders ---------- */
.followup { display: flex; gap: 24px; align-items: center; padding: 20px; border-radius: var(--r-card); background: var(--surface); border: 1.5px solid var(--mint); }
.followup-qr { flex: none; display: grid; justify-items: center; gap: 6px; padding: 8px; border-radius: var(--r-control); border: 1px solid var(--line-soft); background: #fff; }
.followup-qr > img { width: 148px; height: 148px; object-fit: contain; image-rendering: pixelated; }
.followup-qr figcaption { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12px; }
.followup-body { display: grid; gap: 8px; min-width: 0; }
.followup-body h3 { font-size: 18px; }
.followup-body > p { color: var(--ink-2); font-size: 14px; }
.followup-due { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 12px; border-radius: var(--r-control); background: var(--mint-2); }
.followup-due b { color: var(--ink); font-size: 15px; }
.followup-due small { flex-basis: 100%; color: var(--ink-3); font-size: 12px; }
.followup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.followup-actions .secondary { min-height: 40px; padding: 8px 14px; font-size: 14px; }
@media (max-width: 640px) {
  .followup { flex-direction: column; align-items: stretch; padding: 16px; }
  .followup-qr { align-self: center; }
  .followup-body h3 { text-align: center; }
  .followup-actions { justify-content: center; }
}

/* ---------- Payment window ---------- */
.countdown { margin-left: 10px; padding: 1px 8px; border-radius: var(--r-pill); background: var(--amber-wash); font-feature-settings: "tnum" 1; }
.countdown:empty { display: none; }
.countdown.urgent { background: var(--red-wash); color: var(--red); }
.callout-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Share ---------- */
.share-button { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; }
.header-note + .share-button { margin-left: 16px; }
@media (hover: hover) { .share-button:hover { border-color: var(--leaf); color: var(--leaf); } }
.share-sheet { width: min(400px, calc(100% - 32px)); padding: 22px 22px 18px; border: 0; border-radius: var(--r-sheet); background: var(--surface); color: var(--ink); }
.share-sheet::backdrop { background: rgba(19, 34, 26, .45); }
.share-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share-head h2 { font-size: 20px; }
.share-head .icon-button { margin-right: -8px; }
.share-note { margin-top: 6px; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.share-options { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.share-options button { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.share-x { font-size: 22px; font-weight: 700; line-height: 1; }
@media (hover: hover) { .share-options button:hover { border-color: var(--leaf); background: var(--mint-2); } }
.share-status { min-height: 20px; margin-top: 14px; color: var(--leaf-strong); font-size: 13px; text-align: center; word-break: break-all; }
@media (max-width: 720px) { .share-button { margin-left: auto; padding: 6px 10px; } .header-note + .share-button { margin-left: auto; } }

/* ---------- Member card ---------- */
.member-card { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.member-card h3 { font-size: 17px; margin-bottom: 14px; }
.member-card img { display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 1200 / 756; border-radius: 16px; background: linear-gradient(135deg, #0d3a29, #1e7a4c); }
.member-card-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.member-card-actions small { color: var(--ink-3); font-size: 12px; }
@media (max-width: 640px) { .share-sheet { width: 100%; max-width: 100%; padding-bottom: calc(18px + env(safe-area-inset-bottom)); border-radius: var(--r-sheet) var(--r-sheet) 0 0; } }
.share-sheet[open] { display: block; }

/* ---------- Phone header & zoom ---------- */
.header nav a, .share-button, #brand-name { white-space: nowrap; }
.share-button { flex: none; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* No double-tap zoom on controls; inputs at 16px so iOS does not zoom in when they get focus. */
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
@media (max-width: 760px) { input, select, textarea, .coupon-input input { font-size: 16px; } }
@media (max-width: 560px) {
  .header { flex-wrap: wrap; row-gap: 2px; column-gap: 10px; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand-text { display: flex; min-width: 0; }
  #brand-name { overflow: hidden; text-overflow: ellipsis; }
  .share-button, .header-note + .share-button { margin-left: auto; }
  .header nav { order: 3; width: 100%; margin-left: -9px; }
}

/* Square WeChat cover: first image in the page for WeChat's thumbnail picker, kept out of view. */
.wx-cover { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }

/* Card-key shop */
.plan-glyph { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 700; font-size: 17px; }
.card-key { margin-top: 18px; padding: 16px; border: 1.5px dashed var(--leaf); border-radius: 12px; background: var(--paper); }
.card-key-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-key-head h3 { font-size: 16px; }
.card-key-value { margin: 12px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--surface); font: 600 17px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; user-select: all; }
.card-guide { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.card-guide h4 { font-size: 14px; margin-bottom: 6px; }
.card-guide p { font-size: 14px; line-height: 1.75; color: var(--ink-2); }

/* Member account */
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: none; }
.account-head p { font-family: var(--mono); font-size: 14px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; align-items: start; }
.account-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 18px; margin-bottom: 14px; }
.balance-label { color: var(--ink-3); font-size: 13px; }
.balance-amount { display: block; font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 4px 0 6px; }
.topup-form { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: grid; gap: 10px; }
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); font: inherit; font-size: 14px; cursor: pointer; }
.chip:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
@media (hover: hover) { .chip:hover { border-color: var(--leaf); color: var(--leaf); } }
.inline-field { display: flex; gap: 8px; }
.inline-field input { flex: 1; min-width: 0; }
.account-login { max-width: 520px; display: grid; gap: 14px; }
.account-login form { display: grid; gap: 8px; }
.topup-qr { display: flex; gap: 18px; align-items: center; margin-top: 16px; padding: 16px; border: 1.5px solid var(--alipay); border-radius: var(--r-card); background: #f3f8ff; }
.topup-qr img { background: #fff; border-radius: 8px; flex: none; }
.topup-qr b { font-size: 24px; }
.topup-qr p { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.topup-done { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-control); background: var(--mint); color: var(--leaf-strong); font-weight: 600; }
.reward-card p { color: var(--ink-2); font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.reward-card b { color: var(--leaf); }
.invite-link { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px dashed var(--leaf); border-radius: var(--r-control); background: var(--mint-2); }
.invite-link code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; word-break: break-all; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.ledger li:first-child { border-top: 0; }
.ledger-main { display: grid; gap: 2px; min-width: 0; }
.ledger-main small, .ledger-amount small { color: var(--ink-3); font-size: 12px; font-weight: 400; }
.ledger-amount { display: grid; justify-items: end; gap: 2px; font-weight: 700; white-space: nowrap; }
.ledger-amount.plus { color: var(--leaf); }
.ledger-amount.minus { color: var(--ink); }
.muted { color: var(--ink-3); }
@media (max-width: 760px) {
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .account-head { align-items: flex-start; flex-direction: column; }
  .topup-qr { flex-direction: column; text-align: center; }
  .inline-field { flex-direction: column; }
}
