/* SHOWHAND RPC 用户站的全部样式（不再借用管理端的 style.css）。
   方向：近黑底 + 单一强调色青柠；细线分栏代替卡片堆叠；标签、价格、地址、key 用等宽字。
   只用系统字体栈 —— CSP 是 default-src 'self'，不能引外部字体；同理页面里没有任何内联样式，全在这里。
   深色是默认，浅色挂在 :root[data-theme="light"] 上（theme.js 在首次绘制前就定好）。代码窗在两套主题下都是深色。 */
:root {
  --bg: #0B0D10; --surface: #111418; --raised: #161A20; --line: #222831; --line2: #2E3640;
  --text: #E9EDF2; --text2: #A8B2BF; --muted: #7F8A99;
  --accent: #C6F55A; --accent-text: #C6F55A; --on-accent: #0B0D10;
  --code-bg: #0E1116; --code-line: #222831; --code-text: #D7DEE7; --code-muted: #7F8A99; --code-tab: #1B2028;
  --warn-bg: #2A2110; --warn-text: #F2C265; --warn-line: #5A4520; --bad: #E58A7B; --bad-solid: #C4513F;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F6F7F4; --surface: #FFFFFF; --raised: #EEF0EA; --line: #DFE2D9; --line2: #C9CDC1;
  --text: #14170F; --text2: #454B3C; --muted: #5F6656;
  --accent-text: #3F6212;
  --code-bg: #14170F; --code-line: #2A2E22;
  --warn-bg: #FFF6DC; --warn-text: #7A5200; --warn-line: #E8CF8A; --bad: #A8372A; --bad-solid: #A8372A;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); }
.break { word-break: break-all; }
.muted { color: var(--muted); }
.grow { flex: 1 1 auto; min-width: 0; }
.ico { display: inline-flex; flex: none; }
.wrap { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font: 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }

/* ---- 按钮、输入 ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line2); background: transparent; color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { border-color: transparent; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.invert { border-color: transparent; background: var(--text); color: var(--bg); font-weight: 700; }
.btn.lg { height: 52px; padding: 0 26px; border-radius: 12px; font-size: 16px; }
.btn.sm { height: 36px; padding: 0 12px; border-radius: 9px; font-size: 13px; }
.btn.icon { width: 40px; height: 40px; padding: 0; color: var(--text2); border-color: var(--line); }
.btn.quiet { color: var(--text2); border-color: var(--line); font-weight: 500; }
.btn.danger { color: var(--bad); }
.btn.danger.solid { border-color: transparent; background: var(--bad-solid); color: #fff; }
.btn.wide { width: 100%; }
.field { width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 15px; outline: none; }
.field:focus { border-color: var(--accent-text); }
label.f { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text2); }
label.f .hint { font-size: 12px; color: var(--muted); }
.err { min-height: 20px; font-size: 13px; line-height: 1.6; color: var(--bad); }

/* ---- 顶栏 / 页脚 ---- */
header.nav { flex: none; border-bottom: 1px solid var(--line); }
header.nav .wrap { height: 72px; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; }
.brand .word { font: 700 15px/1 var(--mono); letter-spacing: .08em; white-space: nowrap; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--text2); }
.nav-links a:hover { color: var(--text); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.nav-tools .btn { height: 40px; }
.userchip { gap: 10px; font-weight: 500; }
.userchip .av { width: 22px; height: 22px; border-radius: 6px; background: var(--raised); display: flex; align-items: center; justify-content: center; font: 12px var(--mono); }
footer.foot { margin-top: auto; padding-top: 88px; }
footer.foot .inner { height: 88px; display: flex; align-items: center; gap: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
footer.foot a:hover { color: var(--text); }
footer.foot .contacts { display: flex; gap: 20px; padding-left: 28px; border-left: 1px solid var(--line); white-space: nowrap; }
@media (max-width: 720px) { footer.foot .inner { height: auto; padding: 22px 0; flex-wrap: wrap; row-gap: 12px; } footer.foot .contacts { width: 100%; padding-left: 0; border-left: 0; } }

/* ---- 首页 ---- */
.hero { padding-top: 96px; display: flex; align-items: center; gap: 72px; }
.hero-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: 64px; font-weight: 750; letter-spacing: -.035em; line-height: 1.08; }
:root:lang(en) .hero h1 { font-size: 60px; }
.hero .lead { max-width: 520px; font-size: 18px; line-height: 1.7; color: var(--text2); }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 13px var(--mono); color: var(--muted); }
.facts span + span::before { content: "·"; margin-right: 22px; }

.code { flex: 0 0 560px; max-width: 100%; border: 1px solid var(--code-line); border-radius: 14px; background: var(--code-bg); color: var(--code-text); overflow: hidden; font-family: var(--mono); }
.code-bar { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 8px 0 12px; border-bottom: 1px solid var(--code-line); font-size: 12px; }
.code-tab { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--code-muted); font: inherit; }
.code-tab.on { background: var(--code-tab); color: var(--code-text); }
.code-copy { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--code-line); border-radius: 7px; background: transparent; color: var(--code-muted); font: inherit; }
.code-copy:hover { color: var(--code-text); }
.code-body { padding: 20px 20px 18px; font-size: 13px; line-height: 1.85; overflow-x: auto; }
.code-body .ln { display: flex; gap: 16px; white-space: pre; }
.code-body .n { width: 16px; flex: none; text-align: right; color: #4A5462; user-select: none; }
.code .s { color: var(--accent); }
.code-out { padding: 14px 20px 18px; border-top: 1px solid var(--code-line); font-size: 13px; line-height: 1.85; overflow-x: auto; white-space: pre; }
.code-out .status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--code-muted); }
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }

.section { padding-top: 88px; display: flex; flex-direction: column; gap: 28px; }
.section-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head .titles { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.section h2 { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.section .sub { max-width: 640px; font-size: 16px; color: var(--text2); }
.endpoint-hint { font: 13px var(--mono); color: var(--muted); }

.chains { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.chain { padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 10px; box-shadow: -1px -1px 0 var(--line); }
.chain .head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chain .logo { flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--raised); }
.chain .logo svg { width: 36px; height: 36px; display: block; }
.chain .logo .letter { font: 700 16px var(--mono); color: var(--text2); }
.chain .code-name { font: 700 26px/1.1 var(--mono); letter-spacing: -.02em; overflow-wrap: anywhere; }
.chain .full { min-height: 22px; font-size: 14px; color: var(--text2); }
.chain .path { padding-top: 6px; font: 12px var(--mono); color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 40px; }
.feature { display: flex; flex-direction: column; gap: 14px; padding: 0 40px; border-left: 1px solid var(--line); }
.feature:first-child { padding-left: 0; border-left: 0; }
.feature .no { font: 13px var(--mono); color: var(--accent-text); }
.feature h3 { font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.feature p { font-size: 15px; line-height: 1.75; color: var(--text2); }

/* ---- 价格表（首页和账号页共用）---- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.tier { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 20px; box-shadow: -1px -1px 0 var(--line); }
.tier.hot { background: var(--raised); }
.tier-head { display: flex; align-items: center; gap: 10px; min-height: 24px; }
.tier-head h3 { font-size: 17px; font-weight: 650; }
.tag { padding: 3px 8px; border-radius: 6px; font: 700 11px/1.4 var(--mono); letter-spacing: .08em; }
.tag.rec { background: var(--accent); color: var(--on-accent); }
.tag.cur { border: 1px solid var(--line2); color: var(--text2); font-weight: 500; }
.tier-price { display: flex; align-items: baseline; gap: 8px; }
.tier-price b { font: 700 44px/1 var(--mono); letter-spacing: -.03em; }
.tier-price span { font-size: 13px; color: var(--muted); }
.tier .btn { width: 100%; }
.tier .spacer { height: 44px; }
.tier-rows { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.tier-rows div { display: flex; align-items: center; gap: 10px; }
.tier-rows .yes .ico { color: var(--accent-text); }
.tier-rows .no { color: var(--muted); }
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 32px; font-size: 14px; color: var(--text2); }
.notes div { display: flex; gap: 12px; }
.notes b { font: 400 14px var(--mono); color: var(--accent-text); }

/* ---- 登录 ---- */
/* 两栏放在和其它页面相同的居中容器里、对半分。不要拿视口宽度去算内边距：
   之前左栏是"固定 640px 基准 + 按 100vw 算的左内边距"，屏幕一宽，内边距就把正文挤成一条。 */
.auth { flex: 1 1 auto; width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { padding: 72px 72px 56px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; }
.auth-side h1 { font-size: 44px; font-weight: 750; letter-spacing: -.03em; line-height: 1.15; }
.auth-side p { max-width: 400px; font-size: 16px; line-height: 1.75; color: var(--text2); }
.steps { margin-top: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.steps div { display: flex; align-items: center; gap: 14px; padding: 16px 20px; font-size: 14px; border-top: 1px solid var(--line); }
.steps div:first-child { border-top: 0; }
.steps b { font: 400 13px var(--mono); color: var(--accent-text); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 0 48px 72px; }
.auth-card { width: 440px; max-width: 100%; display: flex; flex-direction: column; gap: 22px; }
.auth-card h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.auth-card .sub { font-size: 14px; color: var(--text2); }
.g-mark { width: 20px; height: 20px; border-radius: 50%; background: var(--bg); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.or { display: flex; align-items: center; gap: 14px; font: 12px var(--mono); color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wallets { display: flex; flex-direction: column; gap: 10px; }
.wallet { display: flex; align-items: center; gap: 14px; width: 100%; height: 56px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); text-align: left; font-size: 15px; font-weight: 600; }
.wallet:hover { border-color: var(--line2); background: var(--surface); }
.wallet img, .wallet .noicon { width: 32px; height: 32px; flex: none; border-radius: 8px; }
.wallet .noicon { background: var(--raised); display: flex; align-items: center; justify-content: center; font: 700 14px var(--mono); }
.wallet .name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.wallet .ico { color: var(--muted); }
.fine { font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ---- 账号 ---- */
main.account { padding-top: 56px; display: flex; flex-direction: column; gap: 48px; }
.summary { display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.summary .titles { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.summary .name { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.summary h1 { font-size: 40px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
.summary .when { font-size: 15px; color: var(--text2); }
.stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font: 700 20px/1.3 var(--mono); }
.stat .v small { font-size: 13px; font-weight: 400; color: var(--muted); }

.block { display: flex; flex-direction: column; gap: 18px; }
.block-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.block-head .titles { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.block h2 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.block .sub { font-size: 14px; color: var(--text2); }

.order { border: 1px solid var(--accent-text); border-radius: 16px; background: var(--surface); overflow: hidden; }
.order-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 28px; border-bottom: 1px solid var(--line); }
.order-bar h2 { font-size: 16px; font-weight: 650; }
.order-bar .until { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); }
.order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.order-col { padding: 28px; display: flex; flex-direction: column; gap: 24px; box-shadow: -1px -1px 0 var(--line); }
.order-col.side { gap: 18px; }
.pay { display: flex; flex-direction: column; gap: 8px; }
.pay .k { font-size: 13px; color: var(--text2); }
.amount { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.amount b { font: 700 44px/1 var(--mono); letter-spacing: -.03em; }
.amount .unit { font: 16px var(--mono); color: var(--text2); }
.addr { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.addr span { font: 600 15px/1.5 var(--mono); }
/* 买多久：1 / 3 / 6 / 12 期 */
.qty { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.qty-label { font-size: 13px; color: var(--text2); margin-right: 4px; }
.qty button { height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text2); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.qty button:hover { border-color: var(--line2); color: inherit; }
.qty button.on { border-color: transparent; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.buy { display: flex; flex-direction: column; gap: 8px; }
.buy .btn { width: 100%; }
.buy .ghost { visibility: hidden; }
.buy .total { height: 18px; font: 12px/18px var(--mono); color: var(--text2); text-align: center; white-space: nowrap; } /* 固定高度：中文会把行撑高，空行不会，不固定就对不齐 */
.received { font-size: 14px; color: var(--accent-text); font-weight: 600; }
.nets { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.net { padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.net + .net { border-top: 1px solid var(--line); }
.net-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.net-head .tag { padding: 1px 7px; border: 1px solid var(--line2); border-radius: 6px; font: 12px var(--mono); color: var(--text2); }
.net-head .sym { font: 700 13px var(--mono); }
.net-contract { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--text2); }
.net-contract .k { flex: none; }
.net-contract .mono { font: 12px/1.5 var(--mono); }
.walletpay { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.walletpay[hidden] { display: none; }
.walletpay h3 { font-size: 14px; font-weight: 650; }
.walletpay select.field { height: 40px; font-size: 14px; background: var(--surface); color: inherit; }
.wallets.sm .wallet { height: 46px; font-size: 14px; background: var(--surface); }
.wallets.sm .wallet img, .wallets.sm .wallet .noicon { width: 26px; height: 26px; }
.paystep { font-size: 13px; color: var(--text2); min-height: 1.5em; }
.paystep:empty { display: none; }
.sent { display: flex; flex-direction: column; gap: 10px; }
.sent .ok { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--accent-text); font-weight: 600; }
.sent .k { font-size: 12px; color: var(--text2); }
.sent .addr span { font-size: 13px; }
.sent .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sent .link { font-size: 13px; color: var(--accent-text); }
.warn { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--warn-line); border-radius: 12px; background: var(--warn-bg); color: var(--warn-text); font-size: 13px; line-height: 1.7; }
.warn .ico { padding-top: 3px; }
.order .hint { font-size: 14px; line-height: 1.75; color: var(--text2); }
.waiting { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.waiting .dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .waiting .dot { animation: none; } html { scroll-behavior: auto; } }

.table { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.tr { display: grid; grid-template-columns: 180px minmax(0, 1fr) 110px auto; gap: 24px; align-items: center; padding: 18px 28px; border-top: 1px solid var(--line); }
.tr.th { padding: 12px 28px; border-top: 0; border-bottom: 0; font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tr .label { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.tr .key { font: 13px/1.6 var(--mono); color: var(--text2); }
.tr .date { font: 13px var(--mono); color: var(--muted); }
.tr .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.empty { padding: 32px 28px; text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.endpoint { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px 14px 20px; border: 1px solid var(--code-line); border-radius: 12px; background: var(--code-bg); color: var(--code-text); font: 13px/1.6 var(--mono); }
.endpoint .k { color: var(--code-muted); }
.endpoint .s { color: var(--accent); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 28px; padding: 0 10px; border: 1px solid var(--code-line); border-radius: 7px; background: transparent; color: var(--code-text); font: inherit; }
.chip.on { border-color: transparent; background: var(--accent); color: var(--on-accent); font-weight: 700; }

.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 18px; }
.panel-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.panel h2 { font-size: 18px; font-weight: 650; }
.panel .uid { font: 13px var(--mono); color: var(--muted); }
.panel .btn.save { align-self: flex-start; }
.methods { display: flex; flex-direction: column; }
.method { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.method:first-child { border-top: 0; padding-top: 0; }
.method .who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.method .t { font-size: 14px; font-weight: 600; }
.method .d { font-size: 13px; color: var(--text2); }
.method .d.off { color: var(--muted); }
.signout { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 12px; }

/* ---- 弹窗、提示 ---- */
dialog { width: 460px; max-width: calc(100vw - 32px); padding: 0; border: 1px solid var(--line2); border-radius: 16px; background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog form { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
dialog h2 { font-size: 18px; font-weight: 650; }
dialog .msg { font-size: 15px; line-height: 1.7; color: var(--text2); }
dialog .foot { display: flex; justify-content: flex-end; gap: 10px; }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 20; max-width: calc(100vw - 32px); padding: 10px 16px;
  border: 1px solid var(--line2); border-radius: 10px; background: var(--raised); font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
#toast.bad { border-color: var(--bad); color: var(--bad); }

/* ---- 中等宽度：两栏还在，但每栏窄了，收一点字号和栏间距 ---- */
@media (max-width: 1200px) {
  .auth-side { padding-right: 48px; }
  .auth-side h1 { font-size: 36px; }
  .auth-main { padding-left: 48px; }
}

/* ---- 窄屏 ---- */
@media (max-width: 1000px) {
  .hero { flex-direction: column; align-items: stretch; gap: 48px; padding-top: 64px; }
  .code { flex-basis: auto; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature, .feature:first-child { padding: 0; border-left: 0; }
  .auth { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .auth-side { padding: 48px 0 32px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-main { padding: 40px 0 56px; }
  .auth-side h1 { font-size: 34px; }
  .steps { margin-top: 8px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  header.nav .wrap { gap: 12px; height: 64px; }
  .brand { gap: 8px; }
  .brand .word { font-size: 13px; letter-spacing: .04em; }
  .nav-links { display: none; }
  .hero h1, :root:lang(en) .hero h1 { font-size: 42px; }
  .hero .lead { font-size: 16px; }
  .section { padding-top: 64px; }
  .section h2 { font-size: 28px; }
  .summary h1 { font-size: 32px; }
  .stats { gap: 24px; }
  .tr { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 20px; }
  .tr.th { display: none; }
  .tr .acts { justify-content: flex-start; padding-top: 6px; }
  .order-bar, .order-col, .panel { padding-left: 20px; padding-right: 20px; }
  .amount b { font-size: 36px; }
  .lang-label, .userchip .mono { display: none; }
  .nav-tools { gap: 8px; }
  .nav-tools .btn.quiet, .userchip { width: 40px; padding: 0; }
}
