:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #f7f8fa;
  --line: #dfe4eb;
  --text: #202938;
  --muted: #606c7c;
  --cyan: #245dc1;
  --blue: #245dc1;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.65 system-ui, -apple-system, "Segoe UI", "Microsoft Yahei", sans-serif; }
.glow { display: none; }
main { max-width: 1160px; margin: auto; padding: 32px 32px 40px; position: relative; }
header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid #e9ecf0; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 800; color: var(--blue); text-decoration: none; }
.brand span { font-size: 19px; line-height: 1.3; color: var(--text); }
.brand small { display: block; font-size: 10px; letter-spacing: 1.8px; color: var(--muted); margin-top: 5px; }
.back { font-size: 12px; color: #536174; text-decoration: none; }
.back:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.intro { padding: 54px 0 32px; }
.eyebrow { font-size: 11px; letter-spacing: 2px; color: var(--blue); font-weight: 700; }
h1 { font-size: 46px; line-height: 1.25; letter-spacing: -1.5px; margin: 16px 0; }
h1 em { font-style: normal; color: var(--blue); }
.intro p { color: var(--muted); font-size: 14px; }
.columns { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; align-items: start; }
.card { min-width: 0; background: var(--panel); border: 1px solid var(--line); padding: 26px; border-radius: 14px; box-shadow: 0 2px 6px #1d293904; }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
h2 { font-size: 16px; letter-spacing: .1px; margin: 0; }
.step { background: #edf3fc; color: #204fa3; border: 1px solid #d6e2f7; border-radius: 6px; font-size: 11px; font-weight: 700; padding: 3px 7px; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 12px; }
.packages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 25px; }
button, input { font: inherit; }
button { cursor: pointer; border: 1px solid var(--blue); border-radius: 8px; background: var(--blue); color: #fff; padding: 13px 18px; font-size: 13px; font-weight: 600; transition: background .15s, border-color .15s; }
button:hover { background: #1c4ea7; border-color: #1c4ea7; }
button:active { transform: translateY(1px); }
button:disabled { background: #e3e8f0; border-color: #d8e0eb; color: #647184; cursor: not-allowed; }
.package { display: flex; flex-direction: column; align-items: start; position: relative; padding: 16px 13px; background: #fff; border: 1px solid #d7dee8; text-align: left; gap: 3px; color: var(--text); }
.package:hover { background: #f3f6fb; border-color: #9cb6dd; }
.package strong { font-size: 14px; }
.package span { color: var(--muted); font-size: 12px; }
.package em { font-style: normal; font-size: 17px; color: #374760; margin-top: 8px; }
.package.selected { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #eef3fc; }
.package.selected em { color: #204fa3; }
label { display: block; font-size: 13px; color: #3e4a5c; margin-bottom: 9px; }
input { width: 100%; min-width: 0; background: #fff; border: 1px solid #cbd4e0; border-radius: 8px; padding: 13px; color: var(--text); outline: none; }
input::placeholder { color: #758092; opacity: 1; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #245dc114; }
input:disabled { background: #edf0f4; color: #657080; }
#create { width: 100%; display: flex; justify-content: space-between; margin-top: 24px; }
#message { min-height: 22px; font-size: 12px; margin-bottom: 0; }
.error { color: #b42332; }
.success { color: #276044; }
.badge { margin-left: auto; border: 1px solid #d3dce8; color: #58677b; background: #fff; border-radius: 20px; font-size: 11px; padding: 3px 8px; white-space: nowrap; }
.badge.paid { background: #f1f8f4; border-color: #c1decd; color: #246240; }
.empty { text-align: center; padding: 60px 0 62px; color: var(--muted); }
.empty h3 { color: #39485e; font-size: 15px; margin: 18px 0 6px; }
.empty p { font-size: 12px; }
.qr-placeholder { border: 1px dashed #bfc9d7; width: 94px; height: 94px; display: grid; place-items: center; border-radius: 12px; font-size: 50px; margin: auto; color: #71819a; background: #fff; }
.order-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); gap: 10px; flex-wrap: wrap; }
.payment-visual { display: flex; align-items: center; gap: 22px; padding: 25px 0; }
.payment-visual > div { min-width: 0; }
.payment-visual img { flex-shrink: 0; width: 138px; height: 138px; background: #fff; border: 9px solid #fff; border-radius: 9px; outline: 1px solid #e0e5eb; }
.payment-visual .muted { font-size: 12px; }
.amount { font-size: 29px; letter-spacing: -.7px; color: #204fa3; font-weight: 750; font-variant-numeric: tabular-nums; margin: 3px 0 10px; }
.secondary { background: #fff; color: #41526b; border: 1px solid #cbd5e3; padding: 7px 11px; font-size: 12px; font-weight: 500; }
.secondary:hover { color: #204fa3; border-color: #a6bbdb; background: #edf3fc; }
.warning { font-size: 12px; color: #775424; background: #fffaf0; border: 1px solid #eadcbd; border-radius: 8px; padding: 12px; margin-bottom: 20px; }
.address-row { display: flex; align-items: center; background: #fff; border-radius: 8px; border: 1px solid var(--line); padding: 9px; gap: 8px; }
.address-row code { font-size: 12px; word-break: break-all; flex: 1; min-width: 0; color: #354154; }
.address-row button { flex-shrink: 0; }
.details { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; font-size: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #e1e6ed; }
.details span { color: var(--muted); }
.details strong { font-weight: 600; }
.details code { word-break: break-all; font-size: 11px; }
.full { width: 100%; padding: 11px; }
.text-button { background: transparent; border-color: transparent; color: #58677b; font-size: 12px; width: 100%; margin-top: 5px; padding: 9px; }
.text-button:hover { background: #edf0f5; color: #354154; border-color: #dce3ec; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 100%; background: #3c7757; margin-right: 6px; }
footer { text-align: center; font-size: 12px; color: var(--muted); margin: 35px 0 0; line-height: 2.1; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #aec9f5; outline-offset: 3px; }
@media (max-width: 800px) {
  main { padding: 23px 18px; }
  .intro { padding: 38px 0 25px; }
  h1 { font-size: 38px; }
  .columns { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .empty { padding: 35px 0; }
  .payment-visual { gap: 18px; }
  .payment-visual img { width: 120px; height: 120px; }
  .amount { font-size: 25px; }
}
@media (max-width: 390px) {
  main { padding: 20px 14px; }
  .card { padding: 18px; }
  .brand { gap: 8px; font-size: 26px; }
  .brand span { font-size: 17px; }
  .back { font-size: 11px; }
  .payment-visual { gap: 14px; flex-wrap: wrap; }
  .payment-visual > div { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
