:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --border: #e5e9f2;
  --text: #1a2233;
  --text-2: #5b6478;
  --text-3: #98a1b3;
  --primary: #3b5bfd;
  --primary-hover: #2f49d1;
  --primary-soft: #eef1ff;
  --success: #16a34a;
  --success-soft: #ecfdf3;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* ================= 产品首页（AI 科技风） ================= */
.landing {
  min-height: 100vh;
  background: #070b18;
  color: #e6eaf5;
  overflow-x: hidden;
}
.landing::selection { background: rgba(99, 102, 241, .4); }
.lp-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.lp-bg .orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.lp-bg .orb-1 { width: 480px; height: 480px; background: #3b5bfd44; top: -140px; left: -100px; }
.lp-bg .orb-2 { width: 420px; height: 420px; background: #8b5cf644; top: 10%; right: -140px; animation-delay: -5s; }
.lp-bg .orb-3 { width: 380px; height: 380px; background: #06b6d433; bottom: -120px; left: 30%; animation-delay: -9s; }
.lp-bg .grid-layer {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(120, 140, 255, .06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(120, 140, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}
@keyframes orbFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.08); } }

.lp-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 28px; }

.lp-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.lp-nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: #fff; }
.lp-nav .brand .logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #3b5bfd, #8b5cf6);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  box-shadow: 0 0 24px #3b5bfd66;
}
.lp-nav .nav-links { display: flex; gap: 26px; align-items: center; }
.lp-nav .nav-links a { color: #9aa5c4; font-size: 13.5px; transition: color .15s; }
.lp-nav .nav-links a:hover { color: #fff; }
.btn-glow {
  padding: 9px 22px; border-radius: 10px; border: none; font-weight: 600; font-size: 14px;
  background: linear-gradient(135deg, #3b5bfd, #7c4dff);
  color: #fff; box-shadow: 0 0 20px #3b5bfd55, inset 0 1px 0 rgba(255,255,255,.2);
  transition: all .2s;
}
.btn-glow:hover { transform: translateY(-1px); box-shadow: 0 0 32px #3b5bfd88, inset 0 1px 0 rgba(255,255,255,.2); }
.btn-ghost-dark {
  padding: 9px 22px; border-radius: 10px; font-weight: 600; font-size: 14px;
  background: rgba(255,255,255,.05); color: #cdd5ec;
  border: 1px solid rgba(255,255,255,.14); transition: all .2s;
}
.btn-ghost-dark:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }

.lp-hero { text-align: center; padding: 84px 0 60px; }
.lp-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 999px; font-size: 12.5px;
  background: rgba(99, 102, 241, .12); border: 1px solid rgba(99, 102, 241, .35);
  color: #a5b4fc; margin-bottom: 26px;
}
.lp-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.lp-hero h1 {
  font-size: 52px; line-height: 1.18; font-weight: 800; letter-spacing: -.02em; color: #fff;
}
.lp-hero h1 .grad {
  background: linear-gradient(90deg, #60a5fa, #a78bfa 45%, #22d3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-hero .sub {
  max-width: 560px; margin: 20px auto 0; color: #9aa5c4; font-size: 16.5px; line-height: 1.7;
}
.lp-hero .cta { display: flex; gap: 14px; justify-content: center; margin-top: 36px; }
.lp-hero .cta .btn-glow { padding: 13px 34px; font-size: 15px; }
.lp-hero .cta .btn-ghost-dark { padding: 13px 34px; font-size: 15px; }
.lp-hero .cta-hint { margin-top: 14px; font-size: 12.5px; color: rgba(255, 255, 255, .45); }

/* 终端演示窗 */
.lp-terminal {
  max-width: 640px; margin: 56px auto 0; text-align: left;
  background: rgba(13, 18, 38, .85); border: 1px solid rgba(120, 140, 255, .18);
  border-radius: 14px; box-shadow: 0 24px 80px rgba(0, 0, 0, .5), 0 0 60px #3b5bfd22;
  backdrop-filter: blur(12px); overflow: hidden;
}
.lp-terminal .t-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  border-bottom: 1px solid rgba(120, 140, 255, .12);
}
.lp-terminal .t-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.lp-terminal .t-bar .t-title { margin-left: 10px; color: #6b7694; font-size: 12px; font-family: var(--mono); }
.lp-terminal pre {
  padding: 18px 20px; font-family: var(--mono); font-size: 12.8px; line-height: 1.75;
  color: #b7c3e0; overflow-x: auto; white-space: pre;
}
.lp-terminal .c-green { color: #4ade80; }
.lp-terminal .c-blue { color: #60a5fa; }
.lp-terminal .c-purple { color: #c4b5fd; }
.lp-terminal .c-dim { color: #5b6584; }
.lp-terminal .cursor { display: inline-block; width: 8px; height: 15px; background: #60a5fa; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 数据条 */
.lp-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(120, 140, 255, .14); border: 1px solid rgba(120, 140, 255, .14);
  border-radius: 14px; overflow: hidden; margin: 70px 0;
}
.lp-stats .s {
  background: rgba(13, 18, 38, .7); padding: 26px 20px; text-align: center;
}
.lp-stats .s b { display: block; font-size: 30px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.lp-stats .s b .grad { background: linear-gradient(90deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-stats .s span { color: #7a86a8; font-size: 12.5px; }

.lp-sec-title { text-align: center; font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.lp-sec-sub { text-align: center; color: #8a95b8; margin: 12px auto 44px; max-width: 460px; }

.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 90px; }
.lp-feature {
  background: rgba(15, 21, 44, .65); border: 1px solid rgba(120, 140, 255, .14);
  border-radius: 14px; padding: 26px 24px; transition: all .25s; position: relative; overflow: hidden;
}
.lp-feature::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 158, 255, .5), transparent);
  opacity: 0; transition: opacity .25s;
}
.lp-feature:hover { border-color: rgba(120, 140, 255, .4); transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,.4); }
.lp-feature:hover::before { opacity: 1; }
.lp-feature .f-icon {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
}
.lp-feature b { display: block; color: #fff; font-size: 15.5px; margin-bottom: 8px; }
.lp-feature p { color: #8a95b8; font-size: 13.5px; line-height: 1.7; }

/* 价格 */
.lp-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 90px; }
.lp-price {
  background: rgba(15, 21, 44, .65); border: 1px solid rgba(120, 140, 255, .14);
  border-radius: 16px; padding: 30px 26px; text-align: center; position: relative; transition: all .25s;
}
.lp-price.hot { border-color: rgba(124, 77, 255, .6); box-shadow: 0 0 44px #7c4dff33; }
.lp-price .hot-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 3px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: linear-gradient(90deg, #7c4dff, #3b5bfd); color: #fff;
}
.lp-price:hover { transform: translateY(-4px); }
.lp-price .p-name { color: #9aa5c4; font-size: 14px; }
.lp-price .p-amount { font-size: 32px; font-weight: 800; color: #fff; margin: 10px 0 2px; letter-spacing: -.5px; }
.lp-price .p-amount small { font-size: 14px; font-weight: 500; color: #7a86a8; }
.lp-price .p-desc { color: #7a86a8; font-size: 12.5px; margin-bottom: 22px; }
.lp-price ul { list-style: none; text-align: left; margin-bottom: 26px; }
.lp-price li { color: #aab4d4; font-size: 13.5px; padding: 6px 0; display: flex; gap: 9px; align-items: center; }
.lp-price li svg { color: #4ade80; flex-shrink: 0; }

.lp-foot {
  border-top: 1px solid rgba(120, 140, 255, .1); padding: 30px 0 40px;
  text-align: center; color: #5b6584; font-size: 12.5px;
}

@media (max-width: 900px) {
  .lp-hero h1 { font-size: 34px; }
  .lp-features, .lp-pricing { grid-template-columns: 1fr; }
  .lp-stats { grid-template-columns: 1fr 1fr; }
  .lp-nav .nav-links a:not(:last-child) { display: none; }
}

/* ================= 认证页 ================= */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #eef1ff 0%, #f5f7fb 45%, #eafaf1 100%);
  padding: 24px;
}
.auth-card {
  width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 40px 36px 32px;
}
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.auth-logo .logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #3b5bfd, #8b5cf6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.auth-logo .logo-name { font-size: 18px; font-weight: 700; }
.auth-sub { color: var(--text-3); font-size: 13px; margin-bottom: 26px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s;
  background: #fafbfd;
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: #fff; }
.field-row { display: flex; gap: 10px; }
.field-row input { flex: 1; }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; transition: all .15s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { background: #b9c4f8; cursor: not-allowed; }
.btn-block { width: 100%; padding: 11px; font-size: 15px; }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline:disabled { color: var(--text-3); border-color: var(--border); cursor: not-allowed; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* 按钮 loading spinner */
.spin {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: rot .7s linear infinite; display: inline-block;
}
.spin.dark { border-color: rgba(59,91,253,.25); border-top-color: var(--primary); }
@keyframes rot { to { transform: rotate(360deg); } }

.auth-switch { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-3); }
.auth-switch a { color: var(--primary); font-weight: 600; }
.auth-tip {
  margin-top: 16px; padding: 10px 12px; border-radius: 8px;
  background: var(--warn-soft); color: var(--warn); font-size: 12.5px;
}
.auth-back { display: block; text-align: center; margin-top: 14px; font-size: 12.5px; color: var(--text-3); }
.auth-back:hover { color: var(--primary); }

/* ================= 控制台布局 ================= */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; }
.sidebar .brand .logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #3b5bfd, #8b5cf6);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.sidebar .brand b { font-size: 15px; }
.nav { padding: 8px 12px; flex: 1; }
.nav .nav-group { font-size: 11px; color: var(--text-3); font-weight: 600; padding: 12px 12px 6px; letter-spacing: .05em; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; margin-bottom: 2px;
  color: var(--text-2); font-weight: 500; transition: all .12s;
}
.nav a svg { flex-shrink: 0; }
.nav a:hover { background: var(--bg); color: var(--text); }
.nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.sidebar-foot { padding: 14px 20px; border-top: 1px solid var(--border); }
.sidebar-foot .user-line { display: flex; align-items: center; justify-content: space-between; }
.sidebar-foot .uname { font-weight: 600; font-size: 13px; }
.sidebar-foot .logout-btn { background: none; border: none; color: var(--text-3); font-size: 12.5px; padding: 2px 0; }
.sidebar-foot .logout-btn:hover { color: var(--danger); }
.env-tag {
  display: inline-block; margin-top: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.env-tag.real { background: var(--success-soft); color: var(--success); }
.env-tag.mock { background: var(--warn-soft); color: var(--warn); }

.main { flex: 1; padding: 28px 32px; max-width: 1080px; }
.page-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.page-sub { color: var(--text-3); font-size: 13px; margin-bottom: 22px; }

/* ================= 卡片 ================= */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.card + .card { margin-top: 18px; }
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }

.stat-card { padding: 18px 20px; }
.stat-card .stat-label { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.stat-card .stat-value { font-size: 24px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-card .stat-extra { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.balance-card {
  background: linear-gradient(135deg, #3b5bfd 0%, #6a4df8 100%);
  color: #fff; border: none; position: relative; overflow: hidden;
}
.balance-card::after {
  content: ""; position: absolute; right: -40px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08);
}
.balance-card .b-label { font-size: 13px; opacity: .85; }
.balance-card .b-value { font-size: 34px; font-weight: 700; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.balance-card .b-sub { font-size: 12.5px; opacity: .75; }
.balance-card .btn { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35); margin-top: 14px; position: relative; z-index: 1; }
.balance-card .btn:hover { background: rgba(255,255,255,.28); }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .quick-grid { grid-template-columns: 1fr 1fr; } }
.quick-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  transition: all .15s; box-shadow: var(--shadow);
}
.quick-item:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.quick-item .qi-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.quick-item b { font-size: 14px; }
.quick-item span { font-size: 12px; color: var(--text-3); }

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, #eef0f6 25%, #f7f8fc 50%, #eef0f6 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-line { height: 14px; margin: 8px 0; }
.sk-block { height: 90px; }

/* ================= 充值 ================= */
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.amount-item {
  position: relative; padding: 15px 12px 13px; text-align: center;
  border: 1.5px solid var(--border);
  border-radius: 10px; background: #fafbfd; transition: all .12s; font-weight: 600;
}
.amount-item .amt { font-size: 19px; letter-spacing: -.3px; }
.amount-item .amt-unit { font-size: 11.5px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.amount-item .amt-cny { display: block; font-size: 12.5px; color: var(--text-3); font-weight: 500; margin-top: 3px; }
.amount-item .bonus { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 400; margin-top: 3px; min-height: 15px; }
.amount-item.has-bonus .bonus { color: #e8572a; font-weight: 700; }
.amount-item:hover { border-color: var(--primary); }
.amount-item.selected { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.amount-item.selected .amt-cny, .amount-item.selected .amt-unit { color: var(--primary); }

/* 支付合计 */
.pay-summary {
  border: 1px dashed var(--border); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 16px; background: #fafbfd;
}
.pay-summary .ps-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; padding: 4px 0; color: var(--text-2); }
.pay-summary .ps-row b { font-weight: 600; color: var(--text); }
.pay-summary .ps-row.bonus b { color: #e8572a; }
.pay-summary .ps-row.total { border-top: 1px solid var(--border); margin-top: 7px; padding-top: 10px; }
.pay-summary .ps-row.total b { font-size: 17px; color: var(--primary); }

/* 首充活动横幅 */
.ft-banner {
  display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
  padding: 14px 18px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(100deg, #fff4ec, #ffeef5);
  border: 1px solid #ffd9c2; transition: box-shadow .15s;
}
.ft-banner:hover { box-shadow: 0 4px 16px rgba(232, 87, 42, .14); }
.ft-banner.static { cursor: default; }
.ft-banner.static:hover { box-shadow: none; }
.ft-banner .ft-icon { display: flex; color: #e8572a; }
.ft-banner .ft-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ft-banner .ft-text b { font-size: 14px; color: #c2410c; }
.ft-banner .ft-text span { font-size: 12.5px; color: #9a5638; }
.ft-banner .ft-go { font-size: 13px; font-weight: 600; color: #e8572a; white-space: nowrap; }

/* 兑换码账号绑定提醒 —— 丢码即丢余额，用告警色而非活动色 */
.bind-banner {
  display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
  padding: 14px 18px; border-radius: 12px;
  background: var(--warn-soft); border: 1px solid #fcd9a4;
}
.bind-banner .bb-icon { display: flex; color: var(--warn); flex-shrink: 0; }
.bind-banner .bb-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bind-banner .bb-text b { font-size: 14px; color: #92500e; }
.bind-banner .bb-text span { font-size: 12.5px; color: #a56a2b; }
.bind-banner .btn { flex-shrink: 0; }

/* 登录方式切换 Tab */
.auth-tabs {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 22px;
  background: var(--bg); border-radius: 10px;
}
.auth-tab {
  flex: 1; padding: 9px 12px; border: none; border-radius: 7px;
  background: transparent; cursor: pointer;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  font-family: inherit; transition: background .15s, color .15s, box-shadow .15s;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active {
  background: var(--surface); color: var(--primary); font-weight: 600;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}
.tab-panel.hidden { display: none; }

/* 说明条（登录页/绑定弹窗共用） */
.auth-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 16px; padding: 10px 12px;
  background: var(--bg); border-radius: 8px;
  font-size: 12.5px; line-height: 1.55; color: var(--text-3);
}
.auth-note svg { flex-shrink: 0; margin-top: 1px; }

/* 弹窗标题/说明 */
.modal-title { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; }
.modal-desc { font-size: 13px; color: var(--text-3); line-height: 1.6; margin-bottom: 20px; }

/* 注册页礼包提示 */
.auth-gift {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(100deg, #fff4ec, #ffeef5); border: 1px solid #ffd9c2;
  color: #c2410c; font-size: 13px; border-radius: 9px;
  padding: 10px 14px; margin-bottom: 20px;
}
.auth-gift svg { flex-shrink: 0; }
.auth-gift b { font-weight: 700; }

/* 日志消耗数值 */
.pts-out { color: var(--text); font-weight: 500; }

/* 首页活动条 */
.promo-bar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 20px; font-size: 13px; color: #ffe9d8;
  background: linear-gradient(90deg, rgba(232, 87, 42, .22), rgba(139, 92, 246, .22));
  border-bottom: 1px solid rgba(255, 180, 120, .18);
}
.promo-bar .promo-flag {
  background: linear-gradient(135deg, #f97316, #e8572a); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 5px;
}
.promo-bar b { font-weight: 600; color: #fff; }
.promo-bar .promo-sep { width: 1px; height: 12px; background: rgba(255,255,255,.25); }
.promo-bar .promo-cta { color: #ffb98a; text-decoration: none; font-weight: 600; }
.promo-bar .promo-cta:hover { color: #fff; }

/* 首页价格卡：积分主数值 + 人民币副行 */
.lp-price .p-cny { color: #98a3c4; font-size: 13px; margin-bottom: 4px; }
.lp-price .p-bonus {
  display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600; color: #ffb98a;
  background: rgba(232, 87, 42, .16); border: 1px solid rgba(232, 87, 42, .3);
}

.pay-methods { display: flex; gap: 12px; margin-bottom: 20px; }
.pay-method {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 10px;
  background: #fafbfd; transition: all .12s; font-weight: 600;
}
.pay-method:hover { border-color: var(--primary); }
.pay-method.selected { border-color: var(--primary); background: var(--primary-soft); }
.pay-method .pm-dot { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; }

.topup-tabs { display: flex; gap: 4px; background: #eaedf5; border-radius: 10px; padding: 4px; margin-bottom: 22px; width: fit-content; }
.topup-tab { padding: 8px 20px; border-radius: 8px; border: none; background: transparent; font-weight: 600; color: var(--text-2); }
.topup-tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }

/* ================= 表格 ================= */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 12px; color: var(--text-3); font-weight: 600;
  padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 13.5px; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfd; }
.empty-row { text-align: center; color: var(--text-3); padding: 36px 0 !important; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-green { background: var(--success-soft); color: var(--success); }
.badge-blue { background: var(--primary-soft); color: var(--primary); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-gray { background: #f0f2f8; color: var(--text-3); }

.key-cell { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.icon-btn {
  background: none; border: none; padding: 4px 6px; border-radius: 6px;
  color: var(--text-3); display: inline-flex; align-items: center;
}
.icon-btn:hover { background: var(--bg); color: var(--primary); }

.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--text-3); }

/* ================= 看板图表 ================= */
.chart-box { width: 100%; }
.chart-box svg { display: block; width: 100%; height: auto; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.chart-legend .lg { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.chart-legend .lg i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.bar-anim { animation: barGrow .6s ease-out backwards; transform-origin: bottom; }
@keyframes barGrow { from { transform: scaleY(0); } }

.model-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.model-row .m-name { width: 150px; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.model-row .m-bar-track { flex: 1; height: 8px; background: #eef0f6; border-radius: 999px; overflow: hidden; }
.model-row .m-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3b5bfd, #8b5cf6); animation: barW .7s ease-out backwards; }
@keyframes barW { from { width: 0 !important; } }
.model-row .m-val { width: 90px; text-align: right; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ================= 教程页 ================= */
.doc-toc { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.doc-toc a {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.doc-toc a:hover { border-color: var(--primary); color: var(--primary); }
.doc-step { display: flex; gap: 14px; margin-bottom: 6px; }
.doc-step .step-no {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.doc-step .step-body { flex: 1; padding-bottom: 16px; }
.doc-step .step-body b { display: block; margin-bottom: 4px; font-size: 14px; }
.doc-step .step-body p { color: var(--text-2); font-size: 13.5px; }
.doc-step:not(:last-child) .step-body { border-left: 0; }

.code-block {
  position: relative; background: #0d1226; border-radius: 10px;
  margin: 10px 0 4px; overflow: hidden;
}
.code-block pre {
  padding: 16px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7;
  color: #b7c3e0; overflow-x: auto;
}
.code-block .cb-lang {
  position: absolute; top: 8px; left: 14px; font-size: 11px; color: #5b6584; font-family: var(--mono);
}
.code-block .cb-copy {
  position: absolute; top: 8px; right: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: #9aa5c4; border-radius: 6px; padding: 3px 10px; font-size: 11.5px;
}
.code-block .cb-copy:hover { color: #fff; background: rgba(255,255,255,.16); }
.code-block .ck { color: #c4b5fd; }
.code-block .cs { color: #4ade80; }
.code-block .cc { color: #5b6584; }

.faq-item { border-bottom: 1px solid var(--border); padding: 13px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item b { display: block; font-size: 14px; margin-bottom: 4px; }
.faq-item p { color: var(--text-2); font-size: 13.5px; }

/* ================= 弹窗 ================= */
.modal-mask {
  position: fixed; inset: 0; background: rgba(16, 24, 40, .45);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  animation: fadeIn .15s;
}
.modal {
  width: 420px; max-width: calc(100vw - 40px);
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 26px; animation: popIn .18s;
}
.modal h3 { font-size: 16px; margin-bottom: 14px; }
.modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.95); } }

.key-reveal {
  background: #0d1226; color: #7ee2a8; font-family: var(--mono); font-size: 12.5px;
  border-radius: 8px; padding: 12px 14px; word-break: break-all; white-space: normal; margin: 10px 0;
}

.pay-waiting { text-align: center; padding: 8px 0; }
.pay-waiting .pw-spin {
  width: 40px; height: 40px; margin: 10px auto 14px; border-radius: 50%;
  border: 3px solid var(--primary-soft); border-top-color: var(--primary);
  animation: rot .8s linear infinite;
}

/* toast */
#toast-box { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  padding: 10px 18px; border-radius: 10px; background: #1a2233; color: #fff;
  font-size: 13.5px; box-shadow: var(--shadow-lg); animation: popIn .18s;
  display: flex; align-items: center; gap: 8px; max-width: 80vw;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

.mono { font-family: var(--mono); }
.text-red { color: var(--danger); }
.text-green { color: var(--success); }
.muted { color: var(--text-3); font-size: 12.5px; }

/* 站点配置 */
.cfg-row { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.cfg-list > .cfg-row:first-child { border-top: none; padding-top: 4px; }
.cfg-meta { flex: 1; min-width: 0; }
.cfg-label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.cfg-hint { font-size: 12px; color: var(--text-3); margin-top: 3px; line-height: 1.5; }
.cfg-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 600; vertical-align: middle; }
.cfg-ctl { display: flex; align-items: center; gap: 8px; flex: 0 0 340px; }
.cfg-input {
  width: 100%; padding: 8px 11px;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 13.5px; outline: none;
  background: #fafbfd; transition: border-color .15s, box-shadow .15s;
}
.cfg-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: #fff; }
.cfg-reset {
  flex: none; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text-3); font-family: inherit; font-size: 12.5px; cursor: pointer;
}
.cfg-reset:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.cfg-reset:disabled { opacity: .4; cursor: default; }
.cfg-switch { display: flex; align-items: center; gap: 7px; flex: 1; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }
.cfg-switch input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.cfg-bar {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  padding: 14px 18px; margin-top: 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 -2px 12px rgba(16, 24, 40, .06);
}
@media (max-width: 900px) {
  .cfg-row { flex-direction: column; gap: 8px; }
  .cfg-ctl { flex: 1 1 auto; width: 100%; }
}
