/* ============================================================
   Token&Road LLM Open Platform · Western SaaS 设计系统
   中性 slate 底色 + 浅绿(emerald)品牌强调 + Inter 排版
   ============================================================ */

:root {
  /* Element Plus 主题覆盖 —— 浅绿 emerald */
  --el-color-primary: #10b981;
  --el-color-primary-light-3: #34d399;
  --el-color-primary-light-5: #6ee7b7;
  --el-color-primary-light-7: #a7f3d0;
  --el-color-primary-light-8: #d1fae5;
  --el-color-primary-light-9: #ecfdf5;
  --el-color-primary-dark-2: #059669;
  --el-color-success: #10b981;
  --el-color-warning: #f59e0b;
  --el-color-danger: #ef4444;
  --el-border-radius-base: 10px;

  /* 中性色阶 (slate) */
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #475569;
  /* FIX[WCAG-AA]: 原 #94a3b8 对比度仅 2.56:1；#64748b 在白底/浅灰底均≥4.5:1 */
  --text-3: #64748b;

  /* 品牌 */
  --brand: #10b981;
  --brand-2: #059669;
  --grad: linear-gradient(135deg, #34d399 0%, #10b981 55%, #059669 100%);
  --grad-soft: linear-gradient(180deg, #ecfdf5 0%, #f8fafc 100%);

  /* 阴影（柔和低饱和） */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 60px -12px rgba(15, 23, 42, 0.2);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { letter-spacing: -0.025em; }
#app { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 顶部导航 ---------- */
.topnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.topnav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.4px; }
.brand svg { border-radius: 9px; display: block; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: .6px; line-height: 1.2; text-transform: uppercase; }
.brand-name { line-height: 1.15; }
.nav-links { display: flex; gap: 2px; margin-left: 8px; }
.nav-links a { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: all .15s; }
.nav-links a:hover { color: var(--text); background: #f1f5f9; }
.nav-links a.active { color: var(--brand); background: var(--el-color-primary-light-9); font-weight: 600; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-btn {
  border: 1px solid var(--border); background: #fff; border-radius: 8px;
  padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: all .15s;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }
.user-chip { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

/* ---------- 按钮 ---------- */
.btn-hero {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; border: 1px solid transparent; border-radius: 10px;
  padding: 12px 26px; font-size: 15px; transition: all .18s; cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 1px 2px rgba(79, 70, 229, .3), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-primary:hover { background: var(--el-color-primary-dark-2); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(79, 70, 229, .28); }
.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--el-color-primary-light-9); }
.btn-white { background: #fff; color: var(--brand); font-weight: 700; }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(2, 6, 23, .22); }

/* ---------- 营销 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #fff;
  padding: 92px 0 76px;
  text-align: center;
}
/* 顶部品牌光晕（低饱和，不抢眼） */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(100px); opacity: .4; z-index: 0;
}
.hero::before { width: 520px; height: 520px; background: #d1fae5; top: -220px; left: -140px; }
.hero::after { width: 480px; height: 480px; background: #ede9fe; top: -180px; right: -120px; }
/* 底部分隔 */
.hero::marker { content: none; }
.hero > .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border);
  color: var(--el-color-primary-dark-2);
  font-size: 13px; font-weight: 600; padding: 7px 16px;
  border-radius: 999px; box-shadow: var(--shadow-sm);
  letter-spacing: .2px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--el-color-success); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.08; letter-spacing: -0.035em;
  margin: 24px 0 18px; font-weight: 800;
}
.hero .sub { font-size: 18px; color: var(--text-2); max-width: 640px; margin: 0 auto 34px; line-height: 1.65; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--text-3); }
.rate-note { display: inline-block; margin-top: 10px; padding: 5px 14px; font-size: 12.5px; font-weight: 600; color: var(--brand, var(--primary)); background: var(--grad-soft, rgba(99,102,241,.08)); border: 1px solid var(--border); border-radius: 999px; }
.page-hero .rate-note { margin-top: 14px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 60px; }
.stat {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 12px; box-shadow: var(--shadow-sm);
}
.stat b { display: block; font-size: 28px; letter-spacing: -.5px; font-weight: 800; color: var(--text); }
.stat span { font-size: 13.5px; color: var(--text-2); }

/* ---------- 子页面 Hero ---------- */
.page-hero { background: var(--grad-soft); padding: 52px 0 44px; text-align: center; border-bottom: 1px solid var(--border); }
.page-hero .crumbs { font-size: 13.5px; color: var(--text-3); margin-bottom: 12px; }
.page-hero .crumbs a:hover { color: var(--brand); }
.page-hero h1 { font-size: clamp(28px, 4.4vw, 40px); letter-spacing: -0.03em; margin-bottom: 12px; font-weight: 800; }
.page-hero p { color: var(--text-2); font-size: 16px; max-width: 640px; margin: 0 auto; }
.hero-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.pill { font-size: 13px; font-weight: 500; color: var(--text-2); background: #fff; border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; }

/* ---------- Section ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 32px; letter-spacing: -0.03em; font-weight: 800; }
.section-head p { color: var(--text-2); margin-top: 12px; font-size: 16px; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--el-color-primary-dark-2);
  background: var(--el-color-primary-light-9); border: 1px solid var(--el-color-primary-light-7);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; letter-spacing: 1.2px; text-transform: uppercase;
}
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- 卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px;
  transition: all .22s; box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--el-color-primary-light-5); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  margin-bottom: 16px; background: var(--el-color-primary-light-9); border: 1px solid var(--el-color-primary-light-7);
}
.card h3 { font-size: 17.5px; margin-bottom: 8px; font-weight: 700; }
.card p { font-size: 14.5px; color: var(--text-2); }
.model-card { display: flex; flex-direction: column; gap: 10px; position: relative; }
.model-card .mc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.model-card .desc { font-size: 13.5px; color: var(--text-2); flex: 1; }
.model-card .mc-price { display: flex; align-items: baseline; gap: 6px; }
.model-card .mc-price b { font-size: 24px; letter-spacing: -.5px; font-weight: 800; color: var(--text); }
.model-card .mc-price span { font-size: 12.5px; color: var(--text-3); }

/* ---------- 代码块（深色，GitHub 风格） ---------- */
.code-block { background: #0d1117; border: 1px solid #21262d; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #161b22; border-bottom: 1px solid #21262d; }
.code-lang { font-size: 12.5px; color: #8b949e; font-weight: 600; letter-spacing: .5px; display: flex; align-items: center; gap: 10px; }
.code-lang .cdots { display: inline-flex; gap: 5px; }
.code-lang .cdots i { width: 10px; height: 10px; border-radius: 50%; background: #30363d; }
.code-lang .cdots i:first-child { background: #f85149; }
.code-lang .cdots i:nth-child(2) { background: #d29922; }
.code-lang .cdots i:last-child { background: #3fb950; }
pre.code-pane { padding: 20px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: #e6edf3; }
pre .c { color: #8b949e; }
pre .k { color: #79c0ff; }
pre .s { color: #a5d6ff; }
pre .f { color: #d2a8ff; }
.code-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.code-tab {
  background: #fff; border: 1px solid var(--border); color: var(--text-2);
  border-radius: 8px; padding: 7px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.code-tab:hover { border-color: var(--brand); color: var(--brand); }
.code-tab.active { background: var(--el-color-primary-light-9); border-color: var(--brand); color: var(--el-color-primary-dark-2); }

/* ---------- CTA ---------- */
.cta {
  background: var(--grad);
  border-radius: 20px; padding: 58px 32px;
  text-align: center; color: #fff;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta::before {
  content: ""; position: absolute; width: 320px; height: 320px;
  background: rgba(255, 255, 255, .12); border-radius: 50%;
  top: -140px; right: -60px;
}
.cta::after {
  content: ""; position: absolute; width: 260px; height: 260px;
  background: rgba(255, 255, 255, .08); border-radius: 50%;
  bottom: -120px; left: -40px;
}
.cta h2 { font-size: 30px; letter-spacing: -0.03em; margin-bottom: 12px; position: relative; font-weight: 800; }
.cta p { opacity: .9; margin-bottom: 26px; position: relative; font-size: 15.5px; }
.cta .btn-hero { position: relative; }

/* ---------- 页脚（深色） ---------- */
.footer { background: #0b1120; color: #cbd5e1; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 42px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand small { color: #64748b; }
.footer-brand p { font-size: 13.5px; color: #94a3b8; max-width: 280px; }
.footer h4 { font-size: 13px; color: #fff; margin-bottom: 14px; letter-spacing: .8px; text-transform: uppercase; font-weight: 700; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { font-size: 13.5px; color: #94a3b8; transition: color .15s; cursor: pointer; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 18px 0; font-size: 13px; color: #64748b; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- 登录/注册 ---------- */
.auth-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 48px 16px; background: var(--grad-soft); }
.auth-card { width: min(940px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1.05fr; }
.auth-side {
  background: var(--grad); color: #fff;
  padding: 44px 38px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-side::before {
  content: ""; position: absolute; width: 280px; height: 280px;
  background: rgba(255, 255, 255, .14); border-radius: 50%;
  top: -100px; right: -80px;
}
.auth-side h2 { font-size: 26px; letter-spacing: -.5px; margin-bottom: 14px; position: relative; font-weight: 800; }
.auth-side > p { opacity: .92; font-size: 14.5px; position: relative; }
.auth-side ul { list-style: none; display: grid; gap: 12px; margin-top: 26px; position: relative; }
.auth-side li { display: flex; gap: 10px; font-size: 14px; }
.auth-side li .ck { width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; margin-top: 2px; }
.auth-side .quote { margin-top: 34px; font-size: 13px; opacity: .85; position: relative; }
.auth-main { padding: 44px 44px 38px; display: flex; flex-direction: column; justify-content: center; }
.invite-hint {
  background: var(--el-color-primary-light-9);
  border: 1px solid var(--el-color-primary-light-7);
  color: var(--el-color-primary-dark-2);
  border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 18px;
}

/* ---------- 会员中心 / 管理后台布局 ---------- */
.console { display: flex; flex: 1; min-height: calc(100vh - 64px); }
.sidebar { width: 232px; background: #fff; border-right: 1px solid var(--border); padding: 18px 12px; overflow-y: auto; flex-shrink: 0; }
.side-title { font-size: 11.5px; font-weight: 700; color: var(--text-3); letter-spacing: 1.2px; padding: 14px 12px 6px; text-transform: uppercase; }
.side-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  margin-bottom: 2px; transition: all .15s;
}
.side-menu a:hover { background: #f1f5f9; color: var(--text); }
.side-menu a.active {
  background: var(--el-color-primary-light-9);
  color: var(--el-color-primary-dark-2);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--el-color-primary-light-7);
}
.console-main { flex: 1; padding: 28px 32px; overflow-x: hidden; min-width: 0; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title h2 { font-size: 22px; letter-spacing: -.02em; font-weight: 800; }
.page-title .sub { font-size: 13.5px; color: var(--text-3); margin-top: 3px; }

/* 概览统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-grid.c5 { grid-template-columns: repeat(5, 1fr); }
.stat-grid .stat { text-align: left; padding: 18px 20px; }
.stat-grid .stat .s-label { font-size: 13px; color: var(--text-3); margin-bottom: 4px; }
.stat-grid .stat b { font-size: 25px; font-weight: 800; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.panel h3 { font-size: 15.5px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.chart-box { width: 100%; height: 300px; }

/* 余额卡 */
.balance-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.bal-card { border-radius: 16px; padding: 22px 24px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.bal-card.usd { background: var(--grad); }
.bal-card.vch { background: linear-gradient(135deg, #0d9488, #14b8a6 60%, #2dd4bf); }
.bal-card .b-label { font-size: 13.5px; opacity: .85; }
.bal-card .b-val { font-size: 32px; font-weight: 800; letter-spacing: -1px; margin: 4px 0; }
.bal-card .b-sub { font-size: 12.5px; opacity: .8; }

/* 预付费资源包 */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pack-card {
  border: 1px solid var(--border); border-radius: 14px; padding: 20px;
  background: var(--surface); display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.pack-card:hover { border-color: var(--el-color-primary-light-5); box-shadow: var(--shadow-sm); }
.pack-card .pk-name { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.pack-card .pk-price { font-size: 30px; font-weight: 800; color: var(--text); margin: 10px 0 2px; letter-spacing: -.02em; }
.pack-card .pk-price-old { font-size: 14px; font-weight: 500; color: var(--text-3); text-decoration: line-through; margin-right: 8px; letter-spacing: 0; }
.pack-card .pk-quota { font-size: 13.5px; font-weight: 700; color: var(--el-color-primary-dark-2); }
.pack-card .pk-quota span { font-weight: 500; color: var(--text-3); font-size: 12px; }
.pack-card .pk-days { font-size: 12.5px; color: var(--text-3); margin: 4px 0 10px; }
.pack-card .pk-note { font-size: 12.5px; color: var(--text-2); margin-bottom: 12px; flex: 1; }
.pack-card .el-button { margin-top: auto; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ep-card {
  border: 1px solid var(--border); border-radius: 14px; padding: 18px;
  background: var(--surface); display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.ep-card:hover { border-color: var(--el-color-primary-light-5); box-shadow: var(--shadow-sm); }
.ep-card .ep-region { font-size: 14px; font-weight: 700; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.ep-card .ep-region::before { content: "🌐"; font-size: 15px; }
.ep-card .ep-url {
  font-family: var(--mono); font-size: 12.5px; word-break: break-all; cursor: pointer;
  background: var(--el-color-primary-light-9); color: var(--el-color-primary-dark-2);
  padding: 8px 10px; border-radius: 8px;
}
.ep-card .ep-url:hover { background: var(--el-color-primary-light-8); }
/* 一个区域可含多个接入点：组内堆叠多条 URL + 复制 */
.ep-card .ep-urls { display: flex; flex-direction: column; gap: 8px; }
.ep-card .ep-url-row { display: flex; align-items: center; gap: 8px; }
.ep-card .ep-url-row .ep-url { flex: 1 1 auto; min-width: 0; }
.ep-card .ep-url-row .el-button { flex: 0 0 auto; }
.pk-empty { grid-column: 1 / -1; text-align: center; color: var(--text-3); font-size: 13.5px; padding: 28px 0; }
.pack-row {
  display: grid; grid-template-columns: minmax(200px, 1.2fr) 160px minmax(140px, 1fr);
  gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border);
}
.pack-row:last-child { border-bottom: none; }
.pk-row-info b { font-size: 14.5px; display: block; }
.pk-row-meta { font-size: 12px; color: var(--text-3); }
.pk-row-quota b { font-size: 16px; color: var(--el-color-primary); }
.pk-row-quota span { font-size: 12px; color: var(--text-3); margin-left: 4px; }
.pk-row-bar { height: 8px; border-radius: 6px; background: var(--el-color-primary-light-8); overflow: hidden; }
.pk-row-bar i { display: block; height: 100%; border-radius: 6px; background: var(--grad); transition: width .4s; }

/* 用户等级 */
.level-card {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border-radius: 16px; padding: 18px 22px; margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(79, 70, 229, .08), rgba(124, 58, 237, .02));
  border: 1px solid var(--el-color-primary-light-7);
}
.level-card .lv-badge {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex: none;
}
.level-card .lv-name { font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.level-card .lv-disc { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.level-card .lv-prog { flex: 1 1 260px; min-width: 230px; }
.level-card .lv-prog .pbar { height: 8px; border-radius: 6px; background: var(--el-color-primary-light-8); overflow: hidden; margin-top: 7px; }
.level-card .lv-prog .pbar i { display: block; height: 100%; border-radius: 6px; background: var(--grad); transition: width .4s; }
.level-card .lv-meta { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.member-level-chip {
  display: flex; align-items: center; gap: 9px;
  margin: 12px 14px 6px; padding: 9px 12px;
  border: 1.5px dashed var(--border-strong); border-radius: 12px;
  background: rgba(79, 70, 229, .06);
}
.member-level-chip .lv-ico { font-size: 19px; line-height: 1; }
.member-level-chip b { display: block; font-size: 13.5px; line-height: 1.25; }
.member-level-chip small { font-size: 11.5px; color: var(--text-3); }

/* 表格小工具 */
.tbl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.tbl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tbl-head h3 { font-size: 15.5px; font-weight: 700; }
.tbl-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.money { font-variant-numeric: tabular-nums; font-weight: 700; }
.money.plus { color: var(--el-color-success); }
.money.minus { color: var(--el-color-danger); }

/* 表单 */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.f-item label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.f-tip { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--text-3); }

/* 滚动条（细，浅色） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* 响应式 */
@media (max-width: 960px) {
  .grid-3, .grid-4, .grid-2, .stat-grid, .stat-grid.c5, .balance-cards, .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .pack-row { grid-template-columns: 1fr; gap: 8px; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .console { flex-direction: column; }
  .sidebar { width: 100%; display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 8px; }
  .sidebar .side-title { display: none; }
  .side-menu { display: flex; gap: 4px; }
  .side-menu a { white-space: nowrap; margin: 0; }
  .console-main { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2, .stat-grid, .stat-grid.c5, .balance-cards, .hero-stats { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 56px 0 48px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   AUDIT FIX 补丁（Web 全方位质量审计）
   ============================================================ */

/* FIX[P1-横向溢出]: 根容器禁止横向滚动，作为一切溢出的最后兜底 */
html, body { max-width: 100%; overflow-x: hidden; }
#app { max-width: 100%; overflow-x: clip; }

/* FIX[响应式]: 1200px 区间将 4 列降为 2 列，解决 1024px 下精选卡片溢出 */
@media (min-width: 961px) and (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* FIX[P1-导航溢出]: ≤600px 收紧导航右侧，避免登录/注册按钮撑破视口 */
@media (max-width: 600px) {
  .topnav-inner { gap: 12px; padding-inline: 14px; }
  .brand-name { font-size: 16px; }
  .brand-name small { font-size: 9px; }
  .nav-right { gap: 6px; }
  .lang-btn { padding: 6px 8px; font-size: 12px; min-height: 36px; }
  .nav-right .btn-hero { padding: 8px 12px !important; font-size: 13px !important; min-height: 38px; }
}
/* FIX[P1-导航溢出]: ≤400px 极窄屏隐藏注册按钮文字外边距、品牌副标题 */
@media (max-width: 400px) {
  .brand-name small { display: none; }
  .nav-right { gap: 4px; }
  /* 空间不足时隐藏次要的登录按钮，保证注册主按钮完整可见（登录页可互相切换） */
  .nav-right .btn-outline { display: none; }
  .nav-right .btn-primary { padding: 8px 10px !important; font-size: 12px !important; }
}

/* FIX[a11y-焦点可见]: 统一键盘焦点环（不破坏鼠标点击体验） */
:where(a, button, [role="button"], input, select, textarea):focus-visible {
  outline: 3px solid var(--el-color-primary, #4f46e5);
  outline-offset: 2px;
  border-radius: 6px;
}

/* FIX[a11y-触摸目标]: 导航可点击元素最小 44px 高 */
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.lang-btn { min-height: 44px; }

/* FIX[a11y-减少动效]: 尊重系统"减少动画"偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* FIX[暗色模式]: 站点为明确浅色品牌设计，且存在大量硬编码 #fff 与 EP 浅色组件；
   贸然覆盖变量会导致白底黑字错乱。此处不启用，系统性改造方案见审计报告 P3。 */
