:root {
  --night: #101210;
  --night-deep: #090b09;
  --paper: #f4f1ec;
  --paper-strong: #fffefa;
  --ink: #171a16;
  --muted: #676a62;
  --moss: #667b58;
  --moss-dark: #40533a;
  --gold: #c4a66f;
  --line: #dcd8cf;
  --serif: "STSong", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--moss-dark); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 12px 16px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.pay-shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.pay-header { position: relative; color: var(--paper); background: var(--night-deep); }
.pay-header::after { position: absolute; inset: 0; pointer-events: none; content: ""; opacity: .11; background: radial-gradient(circle at 72% -60%, var(--gold), transparent 37%); }
.pay-header-inner { position: relative; z-index: 1; display: flex; min-height: 82px; align-items: center; justify-content: space-between; }
.pay-brand { font-family: var(--serif); font-size: 28px; letter-spacing: .1em; }
.pay-brand span { margin-left: 10px; color: #c9bd9f; font-family: Georgia, serif; font-size: 11px; letter-spacing: .28em; vertical-align: middle; }
.pay-header-note { color: #b8b9ae; font-size: 12px; letter-spacing: .18em; }
.pay-steps { display: flex; align-items: center; gap: 0; padding: 30px 0 36px; color: #888b81; font-size: 12px; letter-spacing: .08em; }
.pay-step { position: relative; display: flex; align-items: center; gap: 10px; padding-right: 65px; white-space: nowrap; }
.pay-step:not(:last-child)::after { position: absolute; right: 16px; width: 31px; height: 1px; content: ""; background: var(--line); }
.pay-step b { font-family: Georgia, serif; font-size: 14px; font-weight: 400; }
.pay-step.is-current { color: var(--moss-dark); font-weight: 600; }
.pay-step.is-done { color: #465344; }
.pay-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 3px 0 42px; }
.eyebrow { margin: 0 0 15px; color: var(--moss-dark); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.eyebrow span { color: #a0a197; font-weight: 400; }
.pay-intro h1, .status-panel h1 { margin: 0; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 45px); font-weight: 400; line-height: 1.26; letter-spacing: .035em; text-wrap: balance; }
.pay-intro p:not(.eyebrow), .status-panel > p:not(.eyebrow, .status-support) { max-width: 600px; margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.return-link { flex: none; margin-bottom: 4px; color: var(--moss-dark); font-size: 13px; transition: transform .2s ease; }
.return-link:hover { transform: translateX(-3px); }
.purchase-layout { display: grid; grid-template-columns: minmax(0, 1fr) 410px; align-items: start; gap: 54px; padding-bottom: 100px; }
.purchase-options { min-width: 0; }
.section-heading { display: flex; align-items: start; gap: 20px; margin: 0 0 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.section-heading > span { margin-top: 2px; color: var(--moss); font-family: Georgia, serif; font-size: 17px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.section-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.plan-group { margin-bottom: 32px; }
.plan-group h2 { margin: 0 0 14px; color: #525a4e; font-size: 13px; font-weight: 600; letter-spacing: .1em; }
.plan-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plan-option { position: relative; display: flex; min-height: 103px; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,254,250,.65); transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.plan-option:hover { border-color: #8ea083; background: #fffefa; transform: translateY(-2px); }
.plan-option.is-selected { border-color: var(--moss-dark); background: #eef0e8; box-shadow: inset 0 0 0 1px var(--moss-dark); }
.plan-option-copy, .plan-option-price { display: flex; flex-direction: column; gap: 6px; }
.plan-option-copy strong { font-size: 15px; font-weight: 600; line-height: 1.45; }
.plan-option-copy small { color: var(--muted); font-size: 11px; }
.plan-option-price { flex: none; align-items: end; padding-right: 15px; }
.plan-option-price strong { color: var(--moss-dark); font-family: Georgia, var(--sans); font-size: 19px; font-variant-numeric: tabular-nums; }
.plan-option-price del, .checkout-total del { color: #92958b; font-size: 11px; font-variant-numeric: tabular-nums; }
.plan-check { position: absolute; top: 13px; right: 12px; display: grid; width: 15px; height: 15px; place-items: center; border: 1px solid #aaa99f; border-radius: 50%; color: #fff; font-size: 10px; }
.is-selected .plan-check { border-color: var(--moss-dark); background: var(--moss-dark); }
.purchase-help { margin-top: 38px; padding: 22px 25px; border-left: 2px solid var(--gold); background: #ece9e1; }
.purchase-help b { font-family: var(--serif); font-size: 17px; font-weight: 400; }
.purchase-help p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.checkout-card { position: sticky; top: 26px; scroll-margin-top: 24px; padding: 32px; border-radius: 14px; color: #eff0e8; background: var(--night); box-shadow: 0 22px 48px rgba(16,18,16,.12); }
.checkout-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 21px; border-bottom: 1px solid rgba(255,255,255,.16); }
.checkout-label { color: #c9ae77; font-family: var(--serif); font-size: 16px; letter-spacing: .09em; }
.checkout-product { color: #9ba496; font-size: 11px; }
.checkout-card h2 { margin: 26px 0 8px; font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.45; }
.checkout-kind { margin: 0; color: #a6b19f; font-size: 12px; }
.checkout-total { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 30px 0 28px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.checkout-total > span { color: #b6b9b0; font-size: 13px; }
.checkout-total div { display: flex; align-items: baseline; gap: 12px; }
.checkout-total strong { color: #f0d6a0; font-family: Georgia, var(--sans); font-size: 36px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.checkout-card label { display: block; margin-bottom: 10px; font-size: 13px; }
.checkout-card input { display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid #5b6158; border-radius: 5px; outline: none; color: white; background: #1b201b; font-size: 16px; transition: border-color .2s ease; }
.checkout-card input:focus { border-color: #c4a66f; }
.checkout-card input::placeholder { color: #8f998e; }
.field-help { margin: 9px 0 26px; color: #aeb5aa; font-size: 11px; line-height: 1.65; }
.pay-button { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 18px; border: 1px solid var(--gold); border-radius: 5px; color: var(--night); background: #d4b77f; font-size: 15px; font-weight: 600; text-align: left; transition: background .2s ease, transform .2s ease; }
.pay-button:hover { background: #e5c994; transform: translateY(-1px); }
.pay-button:active { transform: translateY(1px); }
.pay-button span { font-size: 20px; font-weight: 400; }
.checkout-note { margin: 16px 0 0; color: #adb3a7; font-size: 11px; line-height: 1.8; }
.pay-footer { border-top: 1px solid var(--line); }
.pay-footer-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 20px; color: #777a71; font-size: 11px; }
.pay-footer-inner > span:last-child { display: flex; gap: 24px; }
.pay-footer a:hover { color: var(--moss-dark); }
.result-page { background: linear-gradient(180deg, #eae8e0 0, var(--paper) 340px); }
.result-page main.pay-shell { min-height: calc(100dvh - 160px); padding-bottom: 80px; }
.status-panel { width: min(600px, 100%); margin: 24px auto 0; padding: 44px 47px; border: 1px solid #e1ded5; border-radius: 14px; background: var(--paper-strong); box-shadow: 0 24px 65px rgba(28,37,26,.07); }
.status-panel .eyebrow { margin-bottom: 26px; }
.status-mark { display: grid; width: 62px; height: 62px; margin-bottom: 26px; place-items: center; border-radius: 50%; color: var(--moss-dark); background: #e9ece5; font-family: Georgia, serif; font-size: 31px; }
.status-mark.is-success { color: #fff; background: var(--moss-dark); }
.status-mark.is-pending { color: var(--moss-dark); background: #e9ece5; }
.status-panel > p:not(.eyebrow, .status-support) { margin-bottom: 28px; }
.status-panel .pay-button { width: min(320px, 100%); margin-top: 28px; }
.button-link { text-decoration: none; }
.status-support { margin: 15px 0 0; color: #7b7e75; font-size: 12px; line-height: 1.7; }
.result-order { margin: 30px 0; padding: 3px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-order > div { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 12px 0; }
.result-order span { flex: none; color: var(--muted); font-size: 12px; }
.result-order strong, .result-order code { font-size: 13px; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.result-order code { font-family: Georgia, monospace; font-variant-numeric: tabular-nums; }
.license-box { margin: 30px 0; padding: 22px; border: 1px solid #cbd5c3; border-radius: 8px; background: #eef1e9; }
.license-box > span { color: var(--moss-dark); font-size: 12px; font-weight: 600; }
.license-value { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.license-value code { font-size: 19px; font-weight: 600; letter-spacing: .04em; overflow-wrap: anywhere; }
.copy-button { flex: none; padding: 7px 10px; border: 1px solid var(--moss-dark); border-radius: 4px; color: var(--moss-dark); background: transparent; font-size: 12px; }
.next-steps h2 { margin: 27px 0 8px; font-family: var(--serif); font-size: 21px; font-weight: 400; }
.next-steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; white-space: pre-wrap; }
.transition-order { display: flex; justify-content: space-between; gap: 20px; margin: 28px 0; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.transition-order strong { color: var(--moss-dark); font-size: 20px; white-space: nowrap; }
.alipay-form { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (max-width: 980px) {
  .purchase-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
  .checkout-card { padding: 26px; }
  .plan-list { grid-template-columns: 1fr; }
  .plan-option { min-height: 86px; }
}
@media (max-width: 720px) {
  .pay-shell { width: min(100% - 36px, 520px); }
  .pay-header-inner { min-height: 68px; }
  .pay-brand { font-size: 23px; }
  .pay-brand span { font-size: 9px; }
  .pay-header-note { font-size: 10px; }
  .pay-steps { justify-content: space-between; padding: 21px 0 29px; font-size: 10px; }
  .pay-step { gap: 5px; padding-right: 0; }
  .pay-step:not(:last-child)::after { display: none; }
  .pay-step b { font-size: 11px; }
  .pay-intro { align-items: start; flex-direction: column; gap: 16px; padding-bottom: 32px; }
  .pay-intro h1, .status-panel h1 { font-size: 32px; }
  .pay-intro p:not(.eyebrow) { margin-top: 12px; font-size: 13px; }
  .purchase-layout { display: flex; flex-direction: column; gap: 24px; padding-bottom: 64px; }
  .purchase-options, .checkout-card { width: 100%; }
  .plan-list { grid-template-columns: 1fr; gap: 9px; }
  .plan-option { min-height: 78px; }
  .plan-option-copy strong { font-size: 14px; }
  .purchase-help { margin-top: 23px; }
  .checkout-card { position: static; scroll-margin-top: 14px; padding: 26px 23px; }
  .checkout-card h2 { font-size: 23px; }
  .checkout-total strong { font-size: 34px; }
  .pay-footer-inner { align-items: start; flex-direction: column; justify-content: center; gap: 9px; padding: 20px 0; }
  .result-page main.pay-shell { min-height: calc(100dvh - 145px); padding-bottom: 50px; }
  .status-panel { margin-top: 8px; padding: 32px 23px; }
  .status-panel > p:not(.eyebrow, .status-support) { font-size: 13px; }
  .license-value { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
