:root {
  color-scheme: light;
  --paper: #f6f5f0;
  --surface: #fffefa;
  --ink: #233b32;
  --muted: #757c72;
  --green: #294f3e;
  --green-hover: #1c3c2c;
  --line: #e8e9df;
  --soft-green: #edf2e8;
  --amber: #85642e;
  --red: #a03f38;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 14px; line-height: 1.6; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button, a { touch-action: manipulation; }
button { color: inherit; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #87a991; outline-offset: 4px; }
h1, h2, p, dl { margin: 0; }
h2 { font-size: 16px; font-weight: 650; letter-spacing: .02em; }
small { font-size: 12px; }
.environment-bar { display: flex; justify-content: center; align-items: center; gap: 9px; min-height: 36px; padding: 7px 16px; color: #f0f1e5; background: var(--green); font-size: 11px; letter-spacing: .07em; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #c5d89b; }
.bar-divider { opacity: .4; margin: 0 5px; }
.page-shell { width: min(1096px, calc(100% - 80px)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; height: 101px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 42px; border: 1px solid var(--green); border-radius: 13px 4px 13px 4px; color: var(--green); font: 27px/1 "Songti SC", "STSong", serif; }
.brand-wordmark { font: 25px/1.2 "Songti SC", "STSong", serif; letter-spacing: .14em; }
.brand-year { margin-left: 8px; font: 14px/1.2 Georgia, serif; letter-spacing: .11em; }
.header-caption { margin-left: auto; margin-right: 28px; color: #899083; font-size: 11px; letter-spacing: .13em; }
.environment-tag { padding: 4px 13px; border: 1px solid #d5dcc9; border-radius: 4px; color: #5c6c4d; font-size: 11px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 45px 0 33px; }
.eyebrow { margin-bottom: 13px; color: #7c846f; font-size: 11px; letter-spacing: .2em; }
h1 { font: 500 clamp(26px, 3vw, 35px)/1.55 "Songti SC", "STSong", "Noto Serif SC", serif; letter-spacing: .05em; }
.hero-description { margin-top: 10px; color: var(--muted); font-size: 12px; }
.mobile-break { display: none; }
.exchange-note { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-bottom: 5px; }
.exchange-note strong { display: block; font-size: 14px; font-weight: 550; letter-spacing: .03em; }
.exchange-note small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.coin-symbol { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #c7b77b; border-radius: 50%; box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px #ded3a8; color: #9c8443; font: 19px/1 "Songti SC", serif; }
.notice { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; padding: 14px 18px; border: 1px solid #dce4d4; border-radius: 8px; background: var(--soft-green); color: #56654a; font-size: 13px; overflow-wrap: anywhere; }
.notice-error { background: #fcf0eb; border-color: #eed8d0; color: var(--red); }
.notice-warning { background: #fcf5e5; border-color: #ecdfbb; color: var(--amber); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 23px; }
.checkout-main, .checkout-sidebar { min-width: 0; }
.checkout-main { display: grid; gap: 20px; }
.checkout-sidebar { display: grid; gap: 16px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 5px 15px #28392503; }
.account-panel, .recharge-panel, .history-panel { padding: 25px 28px; }
.section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; }
.step-number { color: #839277; font: 15px/1 Georgia, serif; letter-spacing: .04em; }
.section-aside { margin-left: auto; color: #949a8e; font-size: 10px; }
.small-tag { padding: 2px 8px; border-radius: 4px; background: var(--soft-green); color: #668051; font-size: 10px; font-weight: 500; white-space: nowrap; }
.section-heading > .small-tag { margin-left: auto; }
.login-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 16px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 8px; font-size: 12px; color: #5e6a5b; }
input, select { width: 100%; min-height: 46px; border: 1px solid #dfe3d7; border-radius: 7px; background: #fdfdf8; padding: 10px 13px; color: var(--ink); transition: border-color .15s; }
input { font-size: 16px; }
select { padding-right: 32px; font-size: 14px; text-overflow: ellipsis; }
input::placeholder { color: #a5a89d; font-size: 12px; }
input:focus, select:focus { border-color: #82967b; }
input:disabled, select:disabled { background: #f6f6ef; color: #9a9e93; opacity: 1; }
.button { display: flex; justify-content: center; align-items: center; gap: 20px; min-height: 47px; border: 1px solid transparent; border-radius: 7px; padding: 12px 16px; font-size: 13px; font-weight: 550; line-height: 1.5; text-align: center; transition: background .15s, border-color .15s; }
.button-primary { color: #fafbf4; background: var(--green); }
.button-primary:hover:not(:disabled) { background: var(--green-hover); }
.button-primary:disabled { color: #929c8b; background: #e8ece1; }
.button-secondary { background: #f7f8f1; border-color: #dee4d5; color: #53684a; }
.button-secondary:hover:not(:disabled) { background: #edf2e7; }
.button-secondary:disabled { opacity: .6; }
.button-alipay { background: #1677dc; color: white; }
.button-alipay:hover { background: #1166c0; }
.login-button { grid-column: 1 / -1; }
.field-note { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 10px; overflow-wrap: anywhere; }
.login-form > .field-note { grid-column: 1 / -1; margin-top: -8px; text-align: center; }
.text-button { min-height: 40px; padding: 5px 0; border: 0; background: none; color: #607952; font-size: 12px; flex-shrink: 0; }
.text-button:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 4px; }
.text-button:disabled { opacity: .45; }
.signed-in { display: flex; gap: 13px; align-items: center; }
.account-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--soft-green); color: #6b8058; font: 21px/1 "Songti SC", serif; }
.signed-in-details { min-width: 0; margin-right: auto; }
.signed-in-details .muted { display: block; font-size: 10px; }
.signed-in-details strong { display: block; font-size: 15px; font-weight: 550; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.section-divider { height: 1px; margin: 27px 0; background: var(--line); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.amount-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.amount-option { position: relative; min-width: 0; }
.amount-option input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.amount-face { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 92px; padding: 13px 6px; border: 1px solid #e2e5da; border-radius: 8px; background: #fffefa; transition: background .15s, border-color .15s; }
.amount-price { color: #45533d; font: 25px/1.4 Georgia, "Times New Roman", serif; white-space: nowrap; }
.amount-price small { margin-right: 5px; font: 12px/1.4 -apple-system, BlinkMacSystemFont, sans-serif; }
.amount-gold { font-size: 10px; color: #929987; }
.amount-option input:checked + .amount-face { border-color: #758966; background: #f0f4e9; box-shadow: inset 0 0 0 1px #758966; }
.amount-option input:checked + .amount-face::after { content: "✓"; position: absolute; top: 6px; right: 9px; color: #5e7750; font-size: 10px; }
.amount-option input:focus-visible + .amount-face { outline: 3px solid #87a991; outline-offset: 3px; }
.amount-option input:disabled { cursor: not-allowed; }
fieldset:disabled .amount-face { opacity: .58; }
.payment-method { display: flex; align-items: center; gap: 11px; margin-top: 23px; padding: 14px 16px; border: 1px solid #e6e9de; border-radius: 8px; background: #fafbf5; }
.alipay-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 6px; background: #1677dc; color: white; font-size: 20px; }
.payment-method strong { display: block; font-size: 12px; font-weight: 550; }
.payment-method small { display: block; color: #92998b; font-size: 10px; }
.method-check { display: grid; place-items: center; width: 17px; height: 17px; margin-left: auto; border-radius: 50%; background: #748865; color: white; font-size: 10px; }
.summary-panel { padding: 24px; border-top: 3px solid #526b43; }
.summary-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.summary-top h2 { font-size: 15px; }
.gold-preview { margin: 27px 0 23px; text-align: center; }
.gold-preview > .muted { font-size: 11px; }
.gold-preview > div { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 4px 0 3px; }
.gold-preview strong { font: 43px/1.25 Georgia, serif; color: #4e653e; font-variant-numeric: tabular-nums; }
.gold-preview > div > span { font-size: 12px; color: #7b866e; }
.gold-preview > small { color: #9a9e90; font-size: 10px; }
.summary-details { display: grid; gap: 12px; padding: 0 0 23px; border-bottom: 1px dashed #dce2d2; }
.summary-details > div, .payment-details > div { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
dt { flex-shrink: 0; color: #92998b; font-size: 11px; }
dd { margin: 0; font-size: 12px; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.test-text { color: #5e774c; }
.total-row { display: flex; justify-content: space-between; align-items: center; margin: 19px 0; font-size: 12px; }
.total-row > strong { font: 28px/1.2 Georgia, serif; font-variant-numeric: tabular-nums; }
.total-row small { font-size: 17px; margin-right: 5px; }
.pay-button { width: 100%; }
.real-charge-note { margin: -3px 0 13px; color: var(--amber); font-size: 11px; line-height: 1.8; }
.checkout-help { margin-top: 10px; font-size: 10px; color: #9a9e90; line-height: 1.8; text-align: center; }
.cumulative-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; font-size: 11px; color: #92998b; }
.cumulative-row strong { color: #647653; font: 16px/1.4 Georgia, serif; font-variant-numeric: tabular-nums; }
.cumulative-row + .field-note { margin-top: 5px; font-size: 10px; }
.environment-reminder { display: flex; gap: 9px; padding: 0 6px; color: #8c927f; font-size: 11px; line-height: 1.9; }
.environment-reminder > span { color: #89957a; font-size: 16px; }
.environment-reminder strong { color: #69795a; font-size: 11px; font-weight: 500; }
.history-panel .section-heading { justify-content: space-between; margin-bottom: 8px; }
.history-panel h2 { font-size: 14px; }
.empty-state { padding: 15px 0; color: #949b8b; font-size: 12px; }
.order-list { list-style: none; margin: 0; padding: 0; }
.order-list li + li { border-top: 1px solid var(--line); }
.order-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 76px; gap: 14px; padding: 15px 0; border: 0; background: transparent; text-align: left; }
.order-row:hover:not(:disabled) { background: #f5f7ef; }
.order-row[aria-current="true"] { background: #f2f5eb; }
.order-row > span { min-width: 0; }
.order-row strong { display: block; font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.order-row small { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); overflow-wrap: anywhere; }
.order-row > span:last-child { text-align: right; flex-shrink: 0; }
.order-status { display: inline-block; padding: 3px 7px; border-radius: 4px; font-size: 10px; color: #7f7f72; background: #f0f1eb; }
.order-status[data-tone="success"] { color: #507444; background: #edf4e6; }
.order-status[data-tone="waiting"] { color: #947237; background: #faf2dc; }
.order-status[data-tone="error"] { color: #aa4f40; background: #f9ece6; }
.payment-panel { padding: 24px; scroll-margin-top: 20px; }
.payment-message { margin-top: 16px; font-size: 12px; color: #707c65; }
.qr-frame { display: flex; justify-content: center; margin: 20px auto 10px; background: white; width: min(100%, 234px); border: 1px solid #e4e7dd; border-radius: 8px; overflow: hidden; }
canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.qr-help { font-size: 12px; text-align: center; }
.expiry-text { font-size: 11px; text-align: center; color: #919780; margin: 4px 0 18px; font-variant-numeric: tabular-nums; }
.payment-details { display: grid; gap: 10px; padding-top: 19px; margin-top: 19px; border-top: 1px solid var(--line); }
.order-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.payment-actions { display: grid; gap: 8px; margin-top: 16px; }
.payment-footnote { font-size: 10px; color: #979c8e; line-height: 1.8; margin-top: 15px; }
.help-section { margin: 44px 0 38px; max-width: 720px; }
.help-section h2 { font-size: 14px; margin-bottom: 12px; }
details { border-bottom: 1px solid var(--line); }
summary { padding: 16px 0; color: #717c66; font-size: 12px; }
details p { padding: 0 0 18px; font-size: 12px; color: #939987; line-height: 1.9; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 23px 0 30px; border-top: 1px solid var(--line); color: #a3a899; font-size: 10px; }
.footer-dot { margin: 0 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (min-width: 980px) {
  .checkout-sidebar { position: sticky; top: 22px; }
  .checkout-sidebar:has(.payment-panel:not([hidden])) { position: static; }
}

@media (max-width: 860px) {
  .page-shell { width: min(700px, calc(100% - 40px)); }
  .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .checkout-main { display: contents; }
  .checkout-sidebar { order: 1; }
  .history-panel { order: 2; }
  .hero { align-items: flex-start; }
  .exchange-note { margin-top: 37px; }
  h1 { font-size: 30px; }
  .mobile-break { display: block; }
  .summary-panel { padding: 24px 28px; }
  .summary-details { gap: 10px; }
  .gold-preview { margin: 20px 0; }
  .payment-panel { padding: 25px 28px; }
  .qr-frame { width: 250px; }
}

@media (max-width: 480px) {
  .page-shell { width: calc(100% - 32px); }
  .environment-bar { font-size: 10px; gap: 7px; letter-spacing: .03em; }
  .site-header { height: 83px; }
  .brand-mark { width: 34px; height: 37px; font-size: 23px; }
  .brand-wordmark { font-size: 23px; }
  .brand-year { font-size: 13px; }
  .header-caption { display: none; }
  .environment-tag { padding: 3px 10px; }
  .hero { display: block; padding: 29px 4px 24px; }
  .eyebrow { margin-bottom: 10px; font-size: 10px; }
  h1 { font-size: 29px; line-height: 1.5; }
  .hero-description { font-size: 11px; margin-top: 12px; }
  .exchange-note { margin-top: 21px; gap: 10px; }
  .coin-symbol { width: 33px; height: 33px; font-size: 15px; }
  .exchange-note strong { font-size: 12px; }
  .exchange-note small { font-size: 9px; }
  .notice { font-size: 12px; padding: 12px 14px; }
  .checkout-main { gap: 16px; }
  .account-panel, .recharge-panel, .history-panel, .summary-panel, .payment-panel { padding: 21px 20px; }
  .section-heading { margin-bottom: 20px; gap: 9px; }
  .section-heading h2 { font-size: 14px; }
  .login-form { grid-template-columns: 1fr; gap: 14px; }
  .login-form > .field-note { margin-top: -3px; font-size: 10px; }
  .section-divider { margin: 23px 0; }
  .amount-grid { gap: 9px; }
  .amount-face { min-height: 83px; }
  .amount-price { font-size: 23px; }
  .amount-gold { font-size: 9px; }
  .signed-in { gap: 10px; }
  .account-avatar { width: 37px; height: 37px; }
  .signed-in-details strong { font-size: 13px; }
  .gold-preview strong { font-size: 39px; }
  .help-section { margin: 33px 5px; }
  .site-footer { display: grid; gap: 7px; text-align: center; padding-bottom: calc(25px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
