/* ============================================================
   季金希AI · 视觉系统
   深色为主 + 可切浅色 · 玻璃拟态 · 霓虹青紫渐变
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
  --c-cyan: #38f0ff;
  --c-violet: #a855f7;
  --c-pink: #f472b6;
  --c-mint: #34d399;
  --c-amber: #fbbf24;
  --c-red: #fb7185;

  --bg: #06060c;
  --bg-2: #0b0b16;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --surface-solid: #12121f;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);

  --text: #f2f4ff;
  --text-2: rgba(242, 244, 255, 0.68);
  --text-3: rgba(242, 244, 255, 0.42);

  --grad: linear-gradient(115deg, var(--c-cyan) 0%, #6ee7ff 22%, var(--c-violet) 72%, var(--c-pink) 100%);
  --grad-soft: linear-gradient(115deg, rgba(56, 240, 255, .16), rgba(168, 85, 247, .16));

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 0 1px rgba(56, 240, 255, .28), 0 18px 50px -18px rgba(56, 240, 255, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
}

html[data-theme="light"] {
  --bg: #f5f6fb;
  --bg-2: #eceef7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-2: rgba(255, 255, 255, 0.95);
  --surface-solid: #ffffff;
  --border: rgba(16, 20, 50, 0.1);
  --border-strong: rgba(16, 20, 50, 0.2);

  --text: #131735;
  --text-2: rgba(19, 23, 53, 0.68);
  --text-3: rgba(19, 23, 53, 0.45);

  --c-cyan: #0891b2;
  --c-violet: #7c3aed;
  --c-pink: #db2777;
  --grad: linear-gradient(115deg, #0891b2 0%, #0e7490 22%, #7c3aed 72%, #db2777 100%);
  --shadow: 0 20px 50px -26px rgba(30, 40, 90, 0.35);
  --shadow-glow: 0 0 0 1px rgba(124, 58, 237, .25), 0 18px 44px -20px rgba(124, 58, 237, .3);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .5s var(--ease), color .5s var(--ease);
}
h1, h2, h3, h4 { margin: 0; line-height: 1.22; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; color: inherit; }
img, svg { display: block; }
::selection { background: rgba(56, 240, 255, .28); }

[hidden] { display: none !important; }

.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- 背景 ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#bgCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.g1 { width: 60vw; height: 60vw; left: -18vw; top: -22vw; background: radial-gradient(circle, rgba(56,240,255,.34), transparent 65%); animation: float1 22s ease-in-out infinite; }
.g2 { width: 55vw; height: 55vw; right: -16vw; top: 6vw; background: radial-gradient(circle, rgba(168,85,247,.36), transparent 65%); animation: float2 26s ease-in-out infinite; }
.g3 { width: 46vw; height: 46vw; left: 26vw; bottom: -22vw; background: radial-gradient(circle, rgba(244,114,182,.22), transparent 65%); animation: float1 30s ease-in-out infinite reverse; }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 72%);
}
html[data-theme="light"] .bg-grid { background-image: linear-gradient(rgba(20,25,60,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(20,25,60,.06) 1px, transparent 1px); }
html[data-theme="light"] .bg-glow { opacity: .32; }
@keyframes float1 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(4vw,3vw,0) scale(1.12); } }
@keyframes float2 { 0%,100% { transform: translate3d(0,0,0) scale(1.06); } 50% { transform: translate3d(-5vw,4vw,0) scale(.94); } }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .35s, background .35s, box-shadow .35s;
}
.nav.is-stuck { border-bottom-color: var(--border); box-shadow: 0 12px 40px -28px rgba(0,0,0,.9); }
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 0 12px rgba(56,240,255,.4)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 19px; letter-spacing: -0.01em; }
.brand-ai {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800; margin-left: 1px;
}
.brand-text i { font-style: normal; font-size: 10.5px; color: var(--text-3); letter-spacing: .16em; margin-top: 3px; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 13px; border-radius: 10px; font-size: 13.5px; color: var(--text-2);
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 9px; }
.wallet-chip {
  display: flex; align-items: center; gap: 7px; padding: 7px 12px 7px 10px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; font-size: 12.5px; transition: border-color .2s, transform .2s;
}
.wallet-chip:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.wc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-mint); box-shadow: 0 0 8px var(--c-mint); }
.wc-label { color: var(--text-3); }
.wallet-chip b { font-family: var(--mono); font-size: 12.5px; color: var(--c-mint); }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.i-light { display: none; }
html[data-theme="light"] .i-dark { display: none; }
html[data-theme="light"] .i-light { display: block; }
.cart-btn {
  position: relative; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.cart-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.cart-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--grad); color: #05050c; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; font-family: var(--mono);
}
.cart-badge[hidden] { display: none; }
.nav-progress { height: 2px; width: 0; background: var(--grad); box-shadow: 0 0 10px var(--c-cyan); transition: width .1s linear; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s, background .25s, border-color .25s, opacity .2s;
}
.btn:active { transform: scale(.975); }
.btn-sm { padding: 8px 15px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--grad); color: #05050c; font-weight: 700;
  box-shadow: 0 10px 30px -12px rgba(56,240,255,.55);
}
html[data-theme="light"] .btn-primary { color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(56,240,255,.65); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-2px); }
.btn:disabled { opacity: .42; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.link-btn { background: none; border: 0; color: var(--text-3); font-size: 12.5px; cursor: pointer; padding: 4px; transition: color .2s; }
.link-btn:hover { color: var(--c-red); }
.mini-btn {
  padding: 4px 9px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface-2);
  font-size: 11.5px; cursor: pointer; transition: border-color .2s, color .2s; color: var(--text-2);
}
.mini-btn:hover { border-color: var(--border-strong); color: var(--text); }

/* ---------- 首屏 ---------- */
main { position: relative; z-index: 1; }
.hero { padding: 132px 24px 72px; }
.hero-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-size: 12.5px; color: var(--text-2); backdrop-filter: blur(12px); margin-bottom: 26px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--c-mint); position: relative; flex-shrink: 0; }
.pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--c-mint); animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

.hero-title { font-size: clamp(38px, 6.2vw, 76px); letter-spacing: -0.035em; font-weight: 800; }
.grad-text {
  background: var(--grad); background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 8s ease infinite;
}
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-sub { margin-top: 22px; font-size: clamp(14.5px, 1.6vw, 17px); color: var(--text-2); line-height: 1.8; }
.hero-sub b { color: var(--text); font-weight: 700; }

.hero-calc-preview {
  margin: 38px auto 0; max-width: 620px; padding: 20px 22px;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  backdrop-filter: blur(18px); box-shadow: var(--shadow); text-align: left;
}
.hcp-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hcp-row label { font-size: 12.5px; color: var(--text-3); width: 84px; flex-shrink: 0; }
.hcp-row input[type="range"] { flex: 1; }
.hcp-row output { font-family: var(--mono); font-size: 13px; color: var(--text); min-width: 92px; text-align: right; }
.mini-select {
  flex: 1; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 13px; cursor: pointer; outline: none;
}
.mini-select:focus { border-color: var(--c-cyan); }
.hcp-result {
  margin-top: 4px; padding-top: 16px; border-top: 1px dashed var(--border);
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.hcp-result span { font-size: 12.5px; color: var(--text-3); }
.hcp-result b { font-size: 26px; font-family: var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hcp-result em { font-style: normal; font-size: 11.5px; color: var(--text-3); margin-left: auto; }

.hero-btns { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--border);
}
.hs {
  background: color-mix(in srgb, var(--bg) 65%, transparent); padding: 20px 16px;
  backdrop-filter: blur(10px); text-align: center;
}
.hs b { display: block; font-family: var(--mono); font-size: clamp(17px, 2.2vw, 24px); font-weight: 700; letter-spacing: -.02em; }
.hs span { font-size: 12px; color: var(--text-3); }

/* ---------- 通用区块 ---------- */
.section { position: relative; padding: 78px 24px; }
.section-alt { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-2) 88%, transparent) 18%, color-mix(in srgb, var(--bg-2) 88%, transparent) 82%, transparent); }
.section > * { max-width: 1240px; margin-inline: auto; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 30px; flex-wrap: wrap;
}
.eyebrow { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: var(--c-cyan); margin-bottom: 10px; }
html[data-theme="light"] .eyebrow { color: var(--c-violet); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.section-desc { margin-top: 10px; color: var(--text-2); font-size: 14px; max-width: 620px; }
.section-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* 分段控件 */
.seg { display: inline-flex; padding: 3px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); }
.seg-item {
  padding: 6px 13px; border: 0; border-radius: 8px; background: transparent;
  font-size: 12.5px; color: var(--text-3); cursor: pointer; transition: all .22s;
}
.seg-item.is-on { background: var(--grad); color: #05050c; font-weight: 700; }
html[data-theme="light"] .seg-item.is-on { color: #fff; }

.search {
  display: flex; align-items: center; gap: 8px; padding: 8px 13px;
  border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text-3);
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--c-cyan); color: var(--c-cyan); }
.search input { border: 0; background: transparent; color: var(--text); font-size: 13px; outline: none; width: 190px; font-family: inherit; }
.search input::placeholder { color: var(--text-3); }

.live-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); }
.live-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-mint); animation: blink 1.8s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- 标签 chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-size: 12.5px; color: var(--text-2); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.is-on { border-color: transparent; background: var(--grad-soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(56,240,255,.4); }
html[data-theme="light"] .chip.is-on { box-shadow: inset 0 0 0 1px rgba(124,58,237,.35); }

/* ---------- 价格表 ---------- */
.table-wrap {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  overflow-x: auto; background: var(--surface); backdrop-filter: blur(14px);
  -webkit-overflow-scrolling: touch;
}
.price-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.price-table thead th {
  text-align: left; padding: 14px 18px; font-size: 11.5px; font-weight: 600;
  letter-spacing: .06em; color: var(--text-3); text-transform: uppercase;
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.price-table th.num, .price-table td.num { text-align: right; }
.price-table tbody tr { cursor: pointer; transition: background .2s; border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent); }
.price-table tbody tr:last-child { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--surface-2); }
.price-table td { padding: 15px 18px; vertical-align: middle; }
.m-cell { display: flex; align-items: center; gap: 12px; }
.m-ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  font-size: 12px; font-weight: 800; font-family: var(--mono);
  background: var(--grad-soft); border: 1px solid var(--border); color: var(--text);
}
.m-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.m-vendor { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.badge { font-size: 10.5px; padding: 1px 7px; border-radius: 6px; font-weight: 700; letter-spacing: .02em; }
.badge.hot { background: rgba(251, 191, 36, .16); color: var(--c-amber); }
.badge.good { background: rgba(52, 211, 153, .15); color: var(--c-mint); }
.badge.plain { background: var(--surface-2); color: var(--text-3); }
.price-val { font-family: var(--mono); font-weight: 600; }
.price-val small { font-family: var(--font); font-size: 10.5px; color: var(--text-3); font-weight: 400; margin-left: 2px; }
.price-cache { font-family: var(--mono); color: var(--text-3); }
.ctx-pill { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.cap-list { display: flex; gap: 4px; flex-wrap: wrap; }
.cap { font-size: 10px; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); color: var(--text-3); font-family: var(--mono); }
.row-pick {
  padding: 5px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2);
  font-size: 12px; cursor: pointer; transition: all .2s; white-space: nowrap;
}
.row-pick:hover { border-color: var(--c-cyan); color: var(--c-cyan); }
.dot-hot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c-amber); vertical-align: middle; margin: 0 2px; }
.table-note { margin-top: 14px; font-size: 12px; color: var(--text-3); }
.table-empty { padding: 50px; text-align: center; color: var(--text-3); font-size: 13.5px; }

/* ---------- 测算器 ---------- */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 22px; align-items: start; }
.calc-panel, .calc-result {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px;
  background: var(--surface); backdrop-filter: blur(18px); box-shadow: var(--shadow);
}
.field { margin-bottom: 22px; }
.field:last-of-type { margin-bottom: 8px; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; gap: 12px; }
.field-head label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.field-hint { font-size: 11.5px; color: var(--text-3); font-family: var(--mono); }
.field-out { font-family: var(--mono); font-size: 13.5px; color: var(--c-cyan); font-weight: 600; }
html[data-theme="light"] .field-out { color: var(--c-violet); }

.input, select.input {
  width: 100%; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 13.5px; font-family: inherit;
  outline: none; cursor: pointer; transition: border-color .2s;
}
.input:focus { border-color: var(--c-cyan); }

/* range 通用 */
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 999px;
  background: var(--surface-2); outline: none; cursor: pointer;
  background-image: linear-gradient(var(--c-cyan), var(--c-violet));
  background-size: var(--fill, 30%) 100%; background-repeat: no-repeat;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; border: 3px solid #0a0a14; box-shadow: 0 0 0 1px var(--c-cyan), 0 0 14px rgba(56,240,255,.6);
  cursor: grab; transition: transform .15s;
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); cursor: grabbing; }
input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid #0a0a14;
  box-shadow: 0 0 0 1px var(--c-cyan);
}
.range-ticks { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10.5px; color: var(--text-3); font-family: var(--mono); }

.switch-row { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--border); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 12.5px; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
  width: 40px; height: 22px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--border); position: relative; transition: all .25s; flex-shrink: 0;
}
.switch-thumb {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-3); transition: all .25s var(--ease);
}
.switch input:checked + .switch-track { background: var(--grad); border-color: transparent; }
.switch input:checked + .switch-track .switch-thumb { left: 20px; background: #fff; }

/* 结果卡 */
.calc-result { position: sticky; top: 88px; }
.cr-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-3); }
.cr-model { font-family: var(--mono); font-size: 12px; color: var(--c-cyan); }
.cr-main { margin: 16px 0 22px; }
.cr-main-label { font-size: 12px; color: var(--text-3); display: block; }
.cr-main b {
  display: block; font-family: var(--mono); font-size: clamp(34px, 4.4vw, 46px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 2px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform .2s;
}
.cr-main b.bump { transform: scale(1.035); }
.cr-main em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.cr-rows { display: grid; gap: 1px; background: var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.cr-row { display: flex; justify-content: space-between; padding: 10px 14px; background: color-mix(in srgb, var(--bg) 55%, transparent); font-size: 12.5px; }
.cr-row span { color: var(--text-3); }
.cr-row b { font-family: var(--mono); }
.cr-row b.good { color: var(--c-mint); }

.cr-bars { display: grid; gap: 12px; margin-bottom: 20px; }
.cb-label { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-bottom: 6px; }
.cb-label b { font-family: var(--mono); color: var(--text-2); }
.cb-track { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.cb-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--c-cyan), #6ee7ff); transition: width .5s var(--ease); }
.cb-track i.bar-out { background: linear-gradient(90deg, var(--c-violet), var(--c-pink)); }

.cr-reco {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px;
  background: var(--grad-soft); border: 1px solid rgba(56,240,255,.28);
  flex-wrap: wrap;
}
html[data-theme="light"] .cr-reco { border-color: rgba(124,58,237,.25); }
.reco-tag { font-size: 10.5px; padding: 2px 8px; border-radius: 6px; background: rgba(56,240,255,.16); color: var(--c-cyan); font-weight: 700; flex-shrink: 0; }
html[data-theme="light"] .reco-tag { color: var(--c-violet); background: rgba(124,58,237,.12); }
.reco-body { flex: 1; min-width: 0; }
.reco-body b { display: block; font-size: 13.5px; }
.reco-body span { font-size: 11.5px; color: var(--text-3); }
.cr-presets { margin-top: 18px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.chip-btn {
  padding: 4px 10px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface);
  font-size: 11.5px; cursor: pointer; color: var(--text-2); transition: all .2s;
}
.chip-btn:hover { border-color: var(--c-cyan); color: var(--c-cyan); }

/* ---------- 充值档位 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.plan {
  position: relative; padding: 24px 20px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); backdrop-filter: blur(14px); cursor: pointer; overflow: hidden;
  transition: transform .28s var(--ease), border-color .28s, box-shadow .28s;
}
.plan::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(120% 90% at 50% -10%, rgba(56,240,255,.16), transparent 60%);
}
.plan:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.plan:hover::before { opacity: 1; }
.plan.is-featured { border-color: rgba(56,240,255,.4); box-shadow: 0 0 0 1px rgba(56,240,255,.14), 0 22px 50px -26px rgba(56,240,255,.4); }
html[data-theme="light"] .plan.is-featured { border-color: rgba(124,58,237,.35); }
.plan.is-picked { border-color: var(--c-mint); box-shadow: 0 0 0 2px rgba(52,211,153,.28); }
.plan-flag {
  position: absolute; top: 0; right: 0; padding: 4px 12px; font-size: 10.5px; font-weight: 700;
  border-bottom-left-radius: 12px; background: var(--grad); color: #05050c;
}
.plan-price { font-family: var(--mono); font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.plan-price small { font-size: 14px; font-family: var(--font); font-weight: 500; color: var(--text-3); margin-left: 2px; }
.plan-credit { margin-top: 6px; font-size: 12.5px; color: var(--c-mint); font-weight: 600; }
.plan-note { margin-top: 12px; font-size: 12px; color: var(--text-3); min-height: 34px; }
.plan-perks { margin: 14px 0 18px; padding: 0; list-style: none; display: grid; gap: 7px; }
.plan-perks li { font-size: 12px; color: var(--text-2); padding-left: 18px; position: relative; }
.plan-perks li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 10px; height: 5px;
  border-left: 1.8px solid var(--c-mint); border-bottom: 1.8px solid var(--c-mint);
  transform: rotate(-45deg);
}
.plan-btn {
  width: 100%; padding: 10px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .22s;
}
.plan.is-featured .plan-btn, .plan-btn:hover { background: var(--grad); color: #05050c; border-color: transparent; }
html[data-theme="light"] .plan-btn:hover, html[data-theme="light"] .plan.is-featured .plan-btn { color: #fff; }
.plan.is-picked .plan-btn { background: var(--c-mint); color: #05130c; border-color: transparent; }

.plan-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 26px; }
.pf-item { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.pf-item b { display: block; font-size: 13px; }
.pf-item span { font-size: 11.5px; color: var(--text-3); }

/* ---------- 控制台 ---------- */
.console-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
.card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  background: var(--surface); backdrop-filter: blur(16px); box-shadow: var(--shadow);
  transition: border-color .25s, transform .25s; min-width: 0;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.cb-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-3); margin-bottom: 14px; }
.tag-soft { font-size: 10.5px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-3); font-family: var(--mono); }
.cb-amount {
  font-family: var(--mono); font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cb-meta { display: flex; gap: 16px; font-size: 11.5px; color: var(--text-3); margin-top: 10px; flex-wrap: wrap; }
.cb-meta b { font-family: var(--mono); color: var(--text-2); }
.cb-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 16px 0; }
.cb-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .6s var(--ease); }
.cb-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.key-box {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 60%, transparent); border: 1px solid var(--border);
  margin-bottom: 14px;
}
.key-box code { flex: 1; font-family: var(--mono); font-size: 12px; color: var(--c-cyan); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-theme="light"] .key-box code { color: var(--c-violet); }
.code-box {
  border-radius: 10px; border: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 72%, transparent);
  padding: 12px 14px; overflow-x: auto; margin-bottom: 14px;
}
.code-box pre { margin: 0; }
.code-box code { font-family: var(--mono); font-size: 11.5px; line-height: 1.7; color: var(--text-2); white-space: pre; }
.c-k { color: var(--c-mint); }
.c-s { color: var(--c-amber); }
.tiny-note { font-size: 11px; color: var(--text-3); }
.center { text-align: center; }

.bar-chart { display: flex; align-items: flex-end; gap: 7px; height: 152px; padding-bottom: 24px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; position: relative; }
.bar-col i { display: block; border-radius: 4px 4px 2px 2px; transition: height .6s var(--ease), filter .2s; }
.bar-col i.b-in { background: linear-gradient(180deg, var(--c-cyan), rgba(56,240,255,.35)); }
.bar-col i.b-out { background: linear-gradient(180deg, var(--c-violet), rgba(168,85,247,.35)); }
.bar-col:hover i { filter: brightness(1.25); }
.bar-col span { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 9.5px; color: var(--text-3); }
.chart-legend { display: flex; gap: 14px; font-size: 11px; color: var(--text-3); margin-top: 12px; }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.lg-in { background: var(--c-cyan); }
.lg-out { background: var(--c-violet); }

/* ---------- 订单 ---------- */
.order-wrap { max-width: 720px; }
.order-form { display: flex; gap: 10px; margin-bottom: 18px; }
.order-form .input { flex: 1; font-family: var(--mono); font-size: 13px; }
.order-result {
  padding: 18px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); margin-bottom: 22px; animation: fadeUp .4s var(--ease);
}
.order-result .or-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.order-result .or-id { font-family: var(--mono); font-size: 13px; }
.order-result .or-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.order-result .or-row span { display: block; font-size: 11px; color: var(--text-3); }
.order-result .or-row b { font-family: var(--mono); font-size: 13.5px; }
.status-pill { font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.st-paid { background: rgba(52,211,153,.16); color: var(--c-mint); }
.st-pending { background: rgba(251,191,36,.16); color: var(--c-amber); }
.st-fail { background: rgba(251,113,133,.16); color: var(--c-red); }

.order-list-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-3); margin: 22px 0 10px; }
.order-list { display: grid; gap: 8px; }
.order-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); font-size: 12.5px;
  transition: border-color .2s, transform .2s;
}
.order-item:hover { border-color: var(--border-strong); transform: translateX(3px); }
.order-item .oi-id { font-family: var(--mono); color: var(--text-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.order-item .oi-amt { font-family: var(--mono); font-weight: 600; }
.order-item .oi-time { color: var(--text-3); font-family: var(--mono); font-size: 11.5px; }
.empty-hint { padding: 26px; text-align: center; font-size: 12.5px; color: var(--text-3); border: 1px dashed var(--border); border-radius: 12px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq {
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  overflow: hidden; transition: border-color .25s;
}
.faq:hover { border-color: var(--border-strong); }
.faq.open { border-color: rgba(56,240,255,.34); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 20px; background: none; border: 0; text-align: left; cursor: pointer;
  font-size: 14px; font-weight: 600;
}
.faq-q .fx {
  width: 20px; height: 20px; flex-shrink: 0; position: relative; transition: transform .3s var(--ease);
}
.faq-q .fx::before, .faq-q .fx::after {
  content: ''; position: absolute; inset: 50% 0 auto 0; height: 1.8px; background: var(--text-2); border-radius: 2px;
  transition: transform .3s var(--ease), background .3s;
}
.faq-q .fx::after { transform: rotate(90deg); }
.faq.open .fx { transform: rotate(135deg); }
.faq.open .faq-q .fx::before, .faq.open .faq-q .fx::after { background: var(--c-cyan); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .42s var(--ease); }
.faq-a p { padding: 0 20px 18px; font-size: 13.5px; color: var(--text-2); line-height: 1.85; }

.cta-band {
  margin-top: 44px; padding: 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--grad-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h3 { font-size: 22px; }
.cta-band p { margin-top: 6px; font-size: 13.5px; color: var(--text-2); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 52px 24px 26px; background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.footer-inner { max-width: 1240px; margin: 0 auto; display: flex; gap: 60px; flex-wrap: wrap; justify-content: space-between; }
.f-brand b { font-size: 20px; }
.f-brand p { margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.f-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.f-col { display: grid; gap: 9px; align-content: start; }
.f-col h4 { font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: .1em; margin-bottom: 3px; }
.f-col a { font-size: 13px; color: var(--text-2); transition: color .2s; }
.f-col a:hover { color: var(--c-cyan); }
.footer-bottom {
  max-width: 1240px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-3);
}
.fb-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-left .icp {
  color: var(--text-3); transition: color .2s, border-color .2s;
  border-bottom: 1px dotted color-mix(in srgb, var(--text-3) 55%, transparent);
  padding-bottom: 1px;
}
.fb-left .icp:hover { color: var(--c-cyan); border-bottom-color: var(--c-cyan); }
html[data-theme="light"] .fb-left .icp:hover { color: var(--c-violet); border-bottom-color: var(--c-violet); }
.f-links a:hover { color: var(--text-2); }

/* ---------- 登录态 / 锁定面板 ---------- */
.login-btn { padding: 8px 18px; }
.lock-panel {
  display: grid; place-items: center; gap: 7px; text-align: center;
  padding: 46px 24px; border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface), transparent 80%);
  animation: fadeUp .4s var(--ease);
}
.lock-ico {
  width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center;
  color: var(--c-cyan); background: var(--grad-soft); border: 1px solid var(--border);
  margin-bottom: 10px; box-shadow: 0 10px 30px -16px rgba(56, 240, 255, .5);
}
html[data-theme="light"] .lock-ico { color: var(--c-violet); }
.lock-panel b { font-size: 16px; }
.lock-panel > span { font-size: 13px; color: var(--text-2); max-width: 460px; line-height: 1.7; }
.lock-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }

/* ---------- 登录弹窗 ---------- */
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 7px; }
.auth-input {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 14px; outline: none;
  font-family: var(--mono); letter-spacing: .04em; transition: border-color .2s, box-shadow .2s;
}
.auth-input:focus { border-color: var(--c-cyan); box-shadow: 0 0 0 3px rgba(56, 240, 255, .12); }
html[data-theme="light"] .auth-input:focus { border-color: var(--c-violet); box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); }
.auth-input::placeholder { font-family: var(--font); letter-spacing: 0; color: var(--text-3); }
.code-row { display: flex; gap: 8px; }
.code-row .auth-input { flex: 1; min-width: 0; }
.send-code {
  padding: 0 15px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface-2); font-size: 12.5px; color: var(--text-2); cursor: pointer;
  white-space: nowrap; transition: all .2s; flex-shrink: 0;
}
.send-code:hover:not(:disabled) { border-color: var(--c-cyan); color: var(--c-cyan); }
.send-code:disabled { opacity: .5; cursor: not-allowed; }
.auth-err { min-height: 17px; font-size: 12px; color: var(--c-red); margin-bottom: 4px; }
.auth-tip {
  font-size: 11.5px; color: var(--text-3); line-height: 1.7;
  padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border);
  margin-bottom: 16px;
}
.auth-tip code { font-family: var(--mono); color: var(--c-cyan); }
html[data-theme="light"] .auth-tip code { color: var(--c-violet); }

/* ---------- 抽屉 ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.drawer[aria-hidden="true"] { visibility: hidden; transition: visibility 0s .4s; }
.drawer[aria-hidden="false"] { visibility: visible; pointer-events: auto; }
.drawer-mask {
  position: absolute; inset: 0; background: rgba(3,3,9,.66); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s;
}
.drawer[aria-hidden="false"] .drawer-mask { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw);
  background: var(--surface-solid); border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .38s var(--ease);
  box-shadow: -30px 0 80px -30px rgba(0,0,0,.9);
}
.drawer[aria-hidden="false"] .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 16px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; display: grid; gap: 10px; align-content: start; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 40%, transparent); }
.cart-sum { margin-bottom: 14px; }
.cs-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); padding: 3px 0; }
.cs-row b { font-family: var(--mono); font-size: 15px; color: var(--text); }
.cs-gain b { color: var(--c-mint); font-size: 13.5px; }

.cart-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); animation: fadeUp .3s var(--ease);
}
.ci-body { flex: 1; min-width: 0; }
.ci-body b { font-size: 13.5px; display: block; }
.ci-body span { font-size: 11.5px; color: var(--c-mint); }
.ci-amt { font-family: var(--mono); font-size: 13.5px; }
.ci-del {
  width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--border); background: none;
  cursor: pointer; color: var(--text-3); display: grid; place-items: center; font-size: 13px; transition: all .2s;
}
.ci-del:hover { color: var(--c-red); border-color: var(--c-red); }

/* ---------- 弹层 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(3,3,9,.72); backdrop-filter: blur(6px); animation: fadeIn .25s;
}
.modal {
  width: min(460px, 100%); max-height: 88vh; overflow-y: auto;
  border-radius: var(--radius-lg); border: 1px solid var(--border-strong);
  background: var(--surface-solid); box-shadow: var(--shadow); padding: 26px;
  animation: modalIn .38s var(--ease);
}
.modal h3 { font-size: 19px; margin-bottom: 6px; }
.modal .modal-sub { font-size: 12.5px; color: var(--text-3); margin-bottom: 20px; }
.modal-rows { display: grid; gap: 1px; background: var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.modal-row { display: flex; justify-content: space-between; padding: 11px 14px; background: var(--surface-solid); font-size: 13px; }
.modal-row span { color: var(--text-3); }
.modal-row b { font-family: var(--mono); }
.pay-methods { display: grid; gap: 9px; margin-bottom: 18px; }
.pay-btn {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: all .22s; text-align: left;
}
.pay-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.pay-btn.is-on { border-color: var(--c-cyan); box-shadow: inset 0 0 0 1px rgba(56,240,255,.4); }
.pay-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.pay-alipay { background: linear-gradient(140deg, #1677ff, #4aa3ff); color: #fff; }
.pay-wechat { background: linear-gradient(140deg, #07c160, #4ade80); color: #fff; }
.pay-bank { background: linear-gradient(140deg, #64748b, #94a3b8); color: #fff; }
.pay-btn .pb-main { flex: 1; }
.pay-btn .pb-main b { display: block; font-size: 13px; }
.pay-btn .pb-main span { font-size: 11px; color: var(--text-3); }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

.qr-wrap { display: grid; place-items: center; gap: 14px; padding: 8px 0 4px; }
.qr-box {
  width: 168px; height: 168px; border-radius: 14px; background: #fff; padding: 10px; position: relative;
  display: grid; place-items: center;
}
.qr-box canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.qr-scan {
  position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #1677ff, transparent);
  animation: scanMove 2s ease-in-out infinite;
}
@keyframes scanMove { 0%,100% { top: 12px; } 50% { top: 154px; } }
.qr-hint { font-size: 12.5px; color: var(--text-3); text-align: center; }
.pay-timer { font-family: var(--mono); font-size: 12.5px; color: var(--c-amber); }

.success-icon {
  width: 62px; height: 62px; border-radius: 50%; margin: 4px auto 18px; display: grid; place-items: center;
  background: rgba(52,211,153,.14); border: 1px solid rgba(52,211,153,.4);
}
.success-icon svg { width: 30px; height: 30px; }
.success-icon path {
  stroke: var(--c-mint); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawCheck .6s .15s var(--ease) forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* ---------- Toast ---------- */
.toast-root { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 9px; pointer-events: none; }
.toast {
  padding: 11px 18px; border-radius: 11px; font-size: 13px; font-weight: 500;
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 9px;
  animation: toastIn .35s var(--ease); white-space: nowrap;
}
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.toast .t-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-mint); flex-shrink: 0; }
.toast.warn .t-dot { background: var(--c-amber); }
.toast.err .t-dot { background: var(--c-red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px) scale(.96); } }

/* ---------- 动画 ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .console-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .card-usage { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .calc-result { position: static; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .col-cache, .col-cap { display: none; }
  .console-grid { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 60px 18px; }
  .hero { padding: 112px 18px 56px; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav-inner { padding: 0 16px; height: 62px; gap: 12px; }
  .brand-text i { display: none; }
  .wallet-chip { display: none; }
  .nav-actions .btn-primary { display: none; }
  .hero-title { font-size: 34px; }
  .br-pc { display: none; }
  .price-table { font-size: 12.5px; }
  .price-table thead th, .price-table td { padding: 11px 10px; }
  .col-ctx, .col-act { display: none; }
  .m-cell { gap: 9px; }
  .m-ico { width: 26px; height: 26px; font-size: 10px; border-radius: 8px; }
  .m-name { font-size: 12.5px; gap: 5px; flex-wrap: wrap; }
  .m-vendor { font-size: 10.5px; }
  .price-val { font-size: 12.5px; }
  .price-val small { font-size: 9.5px; }
  .section-head { margin-bottom: 22px; }
  .section-tools { width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .hero-calc-preview { padding: 16px; }
  .hcp-result em { margin-left: 0; width: 100%; }
  .plan-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 22px; }
  .footer-inner { gap: 32px; }
  .f-cols { gap: 32px; }
  .toast { font-size: 12px; padding: 10px 15px; }
}
