/* ==========================================================================
   星轨 API —— 设计系统
   深色主题 / 玻璃拟态卡片 / 渐变强调色
   ========================================================================== */

:root {
  --bg: #070911;
  --bg-soft: #0d1019;
  --surface: rgba(20, 24, 37, 0.72);
  --surface-solid: #141825;
  --surface-hover: rgba(32, 38, 56, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #e9ecf5;
  --text-dim: #9aa2bd;
  --text-faint: #646d8a;

  --brand: #6366f1;
  --brand-2: #a855f7;
  --brand-3: #22d3ee;
  --accent-grad: linear-gradient(135deg, #6366f1 0%, #a855f7 55%, #22d3ee 130%);

  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --info: #60a5fa;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 20px;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-s: 0 6px 20px rgba(0, 0, 0, 0.3);

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'Courier New', monospace;

  --header-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(900px 500px at 12% -8%, rgba(99, 102, 241, 0.22), transparent 62%),
    radial-gradient(760px 420px at 92% 4%, rgba(168, 85, 247, 0.16), transparent 60%),
    radial-gradient(700px 500px at 50% 108%, rgba(34, 211, 238, 0.1), transparent 62%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; }
.row-t { display: flex; align-items: flex-start; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ============================ 布局 ============================ */
.wrap-page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }

.section-head { margin-bottom: 40px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-3); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); }
.section-head p { color: var(--text-dim); margin-top: 10px; max-width: 660px; font-size: 15px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .wrap-page, .wrap-narrow, .wrap-wide { padding: 0 16px; }
  .section { padding: 48px 0; }
}

/* ============================ 顶部导航 ============================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(7, 9, 17, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner { display: flex; align-items: center; gap: 26px; height: 100%; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand-logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  font-size: 15px; font-weight: 900; color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
  flex-shrink: 0;
}
.brand-sub { font-size: 11px; color: var(--text-faint); font-weight: 500; letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 7px 13px; border-radius: var(--radius-s);
  color: var(--text-dim); font-size: 14px; font-weight: 500;
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.active { color: var(--text); background: rgba(99, 102, 241, 0.16); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.menu-toggle { display: none; }

/* ============================ 按钮 ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 17px; border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text); font-weight: 600; font-size: 14px;
  cursor: pointer; white-space: nowrap;
  transition: transform .12s, background .18s, border-color .18s, opacity .18s, box-shadow .18s;
}
.btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--accent-grad); border-color: transparent; color: #fff;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.32);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 8px 26px rgba(99, 102, 241, 0.42); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }

.btn-danger { background: rgba(248, 113, 113, .14); border-color: rgba(248, 113, 113, .38); color: #fca5a5; }
.btn-danger:hover { background: rgba(248, 113, 113, .22); }

.btn-success { background: rgba(52, 211, 153, .14); border-color: rgba(52, 211, 153, .38); color: #6ee7b7; }
.btn-success:hover { background: rgba(52, 211, 153, .22); }

.btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 13px 26px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { padding: 7px 9px; }

/* ============================ 卡片 ============================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-s);
}
.card-pad { padding: 22px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.card-head h3 { font-size: 15.5px; }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border); }

.card-hover { transition: transform .2s, border-color .2s, box-shadow .2s; }
.card-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}

/* ============================ 表单 ============================ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.field .hint { font-size: 12px; color: var(--text-faint); }

.input, .select, .textarea {
  width: 100%; padding: 10px 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-strong);
  border-radius: 10px; color: var(--text);
  outline: none; transition: border-color .18s, background .18s, box-shadow .18s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand);
  background: rgba(99, 102, 241, 0.07);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}
.textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa2bd' d='M6 8.5L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
}
.select option { background: var(--surface-solid); color: var(--text); }
.input-mono { font-family: var(--mono); font-size: 13px; }

.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track {
  width: 38px; height: 22px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); position: relative; transition: background .2s;
  flex-shrink: 0;
}
.switch .track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(16px); }

.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; }
.checkbox input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }

/* ============================ 表格 ============================ */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.table th {
  text-align: left; padding: 11px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-faint); border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.table td { padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); vertical-align: middle; }
table.table tbody tr { transition: background .15s; }
table.table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
table.table tbody tr:last-child td { border-bottom: none; }

/* ============================ 徽标 ============================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; line-height: 1.7;
  border: 1px solid transparent; white-space: nowrap;
}
.badge-ok { background: rgba(52, 211, 153, .14); color: #6ee7b7; border-color: rgba(52, 211, 153, .28); }
.badge-warn { background: rgba(251, 191, 36, .14); color: #fcd34d; border-color: rgba(251, 191, 36, .28); }
.badge-danger { background: rgba(248, 113, 113, .14); color: #fca5a5; border-color: rgba(248, 113, 113, .28); }
.badge-info { background: rgba(96, 165, 250, .14); color: #93c5fd; border-color: rgba(96, 165, 250, .28); }
.badge-muted { background: rgba(255, 255, 255, .06); color: var(--text-dim); border-color: var(--border); }
.badge-brand { background: rgba(99, 102, 241, .16); color: #a5b4fc; border-color: rgba(99, 102, 241, .32); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ============================ 统计卡 ============================ */
.stat {
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.stat::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--accent-grad);
}
.stat-label { font-size: 12.5px; color: var(--text-faint); font-weight: 600; letter-spacing: .02em; }
.stat-value { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }
.stat-ok::before { background: linear-gradient(180deg, var(--ok), transparent); }
.stat-danger::before { background: linear-gradient(180deg, var(--danger), transparent); }
.stat-info::before { background: linear-gradient(180deg, var(--info), transparent); }
.stat-warn::before { background: linear-gradient(180deg, var(--warn), transparent); }

/* ============================ 标签页 ============================ */
.tabs { display: flex; gap: 3px; padding: 4px; background: rgba(255,255,255,.04); border-radius: 11px; border: 1px solid var(--border); }
.tabs button {
  padding: 7px 15px; border: none; background: transparent; color: var(--text-dim);
  border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .18s;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { background: rgba(99, 102, 241, .2); color: #c7d2fe; }

.nav-side { display: flex; flex-direction: column; gap: 2px; }
.nav-side a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; border-radius: 10px;
  color: var(--text-dim); font-size: 14px; font-weight: 500;
  transition: .16s;
}
.nav-side a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.nav-side a.active { background: rgba(99,102,241,.16); color: #c7d2fe; font-weight: 600; }
.nav-side .sep { height: 1px; background: var(--border); margin: 10px 4px; }
.nav-side .label { font-size: 11px; color: var(--text-faint); font-weight: 700; letter-spacing: .08em; padding: 10px 13px 4px; text-transform: uppercase; }

/* ============================ 提示 / 弹窗 ============================ */
.toast-wrap { position: fixed; top: 18px; right: 18px; z-index: 9999; display: flex; flex-direction: column; gap: 9px; max-width: min(400px, calc(100vw - 36px)); }
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 15px; border-radius: 12px;
  background: rgba(20, 24, 37, 0.96); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
  font-size: 14px; animation: toast-in .24s cubic-bezier(.2,.8,.3,1);
}
@keyframes toast-in { from { opacity: 0; transform: translateX(26px) scale(.96); } to { opacity: 1; transform: none; } }
.toast.out { animation: toast-out .2s forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateX(26px); } }
.toast-ok { border-left: 3px solid var(--ok); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-warn { border-left: 3px solid var(--warn); }
.toast-info { border-left: 3px solid var(--info); }

.modal-mask {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(4, 6, 12, 0.72); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px;
  animation: fade-in .18s;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 520px; max-height: 88vh; overflow: auto;
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  border-radius: var(--radius-l); box-shadow: var(--shadow);
  animation: modal-in .24s cubic-bezier(.2,.8,.3,1);
}
.modal-wide { max-width: 760px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border); }

/* ============================ 空态 / 载入 ============================ */
.empty { padding: 56px 24px; text-align: center; color: var(--text-faint); }
.empty-icon { font-size: 34px; margin-bottom: 12px; opacity: .55; }
.empty h4 { color: var(--text-dim); font-size: 15px; margin-bottom: 6px; }

.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.1) 37%, rgba(255,255,255,.05) 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.22); border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================ 代码块 ============================ */
pre.code {
  background: rgba(0, 0, 0, 0.42); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; overflow-x: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
  color: #cbd5e1; margin: 0;
}
pre.code .k { color: #c084fc; }
pre.code .s { color: #86efac; }
pre.code .c { color: #64748b; }

.code-inline {
  font-family: var(--mono); font-size: 12.5px;
  background: rgba(255,255,255,.07); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 6px; color: #a5b4fc;
  word-break: break-all;
}

/* ============================ 首页 Hero ============================ */
.hero { padding: 78px 0 56px; position: relative; overflow: hidden; }

/* 纱罩盖在视觉图之上，保证左侧标题始终清晰可读 */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, var(--bg) 16%, rgba(7,9,17,.78) 42%, rgba(7,9,17,.2) 80%);
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.12; letter-spacing: -0.035em;
  max-width: 17ch;
}
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: clamp(15px, 1.6vw, 18px); color: var(--text-dim);
  max-width: 58ch; margin-top: 20px; line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat .v { font-size: 27px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-stat .l { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }

/* Hero 视觉层：星轨轨道图铺满首屏，右侧完整露出 */
.hero-visual {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 64% 50%;
  opacity: .9;
}
@media (max-width: 900px) {
  .hero-visual { object-position: 68% 38%; opacity: .6; }
  .hero::after { background: linear-gradient(180deg, rgba(7,9,17,.35) 0%, var(--bg) 62%); }
}
@media (max-width: 560px) {
  .hero-visual { opacity: .45; }
}

.glow-orb {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0;
}
.glow-1 { width: 420px; height: 420px; background: rgba(99,102,241,.3); top: -110px; right: 4%; }
.glow-2 { width: 340px; height: 340px; background: rgba(168,85,247,.22); top: 180px; right: 22%; }

/* ============================ 特性卡 ============================ */
.feature {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s, transform .2s, box-shadow .2s; overflow: hidden;
  display: flex; flex-direction: column;
}
.feature:hover { border-color: rgba(99,102,241,.38); transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,.45); }

.feature-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #090b13; }
.feature-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: .66; transition: transform .6s cubic-bezier(.2,.8,.3,1), opacity .3s;
}
.feature:hover .feature-media img { transform: scale(1.07); opacity: .92; }
.feature-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,11,19,0) 28%, rgba(15,18,29,.94) 94%);
}

.feature-body { position: relative; z-index: 2; padding: 0 22px 22px; margin-top: -40px; }
.feature-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(99,102,241,.2); border: 1px solid rgba(129,140,248,.34);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 19px; margin-bottom: 13px;
}
.feature h4 { font-size: 15.5px; margin-bottom: 7px; }
.feature p { font-size: 13.5px; color: var(--text-dim); line-height: 1.7; }

/* ============================ 登录 / 注册页背景 ============================ */
.auth-page { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 44px 0; position: relative; overflow: hidden; }
.auth-page::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('/assets/img/login-bg.jpg?20261027184800') center center / cover no-repeat;
  opacity: .58;
}
.auth-page > * { position: relative; z-index: 1; }
.auth-card { width: 100%; max-width: 424px; padding: 34px; }
.auth-logo { width: 52px; height: 52px; border-radius: 15px; background: var(--accent-grad); display: grid; place-items: center; font-size: 22px; font-weight: 900; margin: 0 auto 20px; box-shadow: 0 8px 26px rgba(99,102,241,.45); }

/* ============================ 定价表 ============================ */
.price-card {
  padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: .2s; position: relative; overflow: hidden;
}
.price-card:hover { border-color: rgba(99,102,241,.4); transform: translateY(-2px); box-shadow: var(--shadow); }
.price-card .model { font-family: var(--mono); font-size: 14.5px; font-weight: 700; }
.price-card .desc { font-size: 12.5px; color: var(--text-faint); margin-top: 3px; min-height: 18px; }
.price-nums { display: flex; gap: 20px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.price-nums .n .v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-nums .n .l { font-size: 11px; color: var(--text-faint); }

.vendor-tag {
  display: inline-block; padding: 1px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.07); color: var(--text-dim);
}
.vendor-tag.openai { background: rgba(52,211,153,.14); color: #6ee7b7; }
.vendor-tag.anthropic { background: rgba(251,191,36,.14); color: #fcd34d; }
.vendor-tag.google { background: rgba(96,165,250,.14); color: #93c5fd; }
.vendor-tag.deepseek { background: rgba(168,85,247,.16); color: #d8b4fe; }
.vendor-tag.alibaba { background: rgba(34,211,238,.14); color: #67e8f9; }
.vendor-tag.zhipu { background: rgba(248,113,113,.14); color: #fca5a5; }
.vendor-tag.moonshot { background: rgba(250,204,21,.13); color: #fde047; }
.vendor-tag.doubao { background: rgba(129,140,248,.16); color: #a5b4fc; }

/* ============================ 控制台布局 ============================ */
.console { display: grid; grid-template-columns: 218px 1fr; gap: 26px; padding: 30px 0 64px; align-items: start; }
.console-side {
  position: sticky; top: calc(var(--header-h) + 22px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  max-height: calc(100vh - var(--header-h) - 44px); overflow-y: auto;
}
.console-main { min-width: 0; }
@media (max-width: 900px) {
  .console { grid-template-columns: 1fr; }
  .console-side { position: static; max-height: none; }
  .nav-side { flex-direction: row; overflow-x: auto; }
  .nav-side .sep, .nav-side .label { display: none; }
}

/* ============================ 图表 ============================ */
.chart { width: 100%; height: 210px; display: block; }
.chart .grid-line { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.chart .area { fill: url(#chartGrad); }
.chart .line { fill: none; stroke: url(#lineGrad); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chart .pt { fill: #a5b4fc; stroke: #0d1019; stroke-width: 2; }
.chart .axis { fill: var(--text-faint); font-size: 10px; }

.bar-track { height: 7px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--accent-grad); transition: width .5s cubic-bezier(.2,.8,.3,1); }

/* ============================ 令牌卡 ============================ */
.key-box {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,.36); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 13px;
  font-family: var(--mono); font-size: 12.5px; word-break: break-all;
}

/* ============================ 其它 ============================ */
.divider { height: 1px; background: var(--border); margin: 22px 0; }
.alert {
  padding: 13px 16px; border-radius: 11px; font-size: 13.5px; line-height: 1.7;
  border: 1px solid var(--border); background: rgba(255,255,255,.04);
}
.alert-info { background: rgba(96,165,250,.1); border-color: rgba(96,165,250,.26); color: #bfdbfe; }
.alert-warn { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.26); color: #fde68a; }
.alert-danger { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.26); color: #fecaca; }
.alert-ok { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.26); color: #a7f3d0; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 18px 0; }
.pagination button {
  min-width: 33px; height: 33px; padding: 0 9px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--text-dim);
  cursor: pointer; font-size: 13px; font-weight: 600; transition: .16s;
}
.pagination button:hover:not(:disabled) { background: rgba(255,255,255,.08); color: var(--text); }
.pagination button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.filter-bar .field { min-width: 150px; }

.tag-list { display: flex; gap: 7px; flex-wrap: wrap; }
.tag {
  padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--text-dim);
  cursor: pointer; transition: .16s;
}
.tag:hover { color: var(--text); border-color: var(--border-strong); }
.tag.active { background: rgba(99,102,241,.18); border-color: rgba(99,102,241,.45); color: #c7d2fe; }

.footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 60px; color: var(--text-faint); font-size: 13px; }
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--text); }

.qr-box { background: #fff; border-radius: 14px; padding: 12px; display: inline-block; }
.qr-box img { display: block; width: 220px; height: 220px; }

.amount-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; }
.amount-opt {
  padding: 13px 10px; border-radius: 11px; text-align: center; cursor: pointer;
  border: 1px solid var(--border-strong); background: rgba(255,255,255,.03);
  font-weight: 700; font-size: 15px; transition: .16s;
}
.amount-opt:hover { border-color: var(--brand); }
.amount-opt.active { background: rgba(99,102,241,.16); border-color: var(--brand); color: #c7d2fe; }

.sandbox-pay { text-align: center; padding: 26px; }
.sandbox-pay .amt { font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 4px; }

.doc-toc { position: sticky; top: calc(var(--header-h) + 22px); }
.doc-toc a { display: block; padding: 5px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text-dim); }
.doc-toc a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.doc-body h3 { margin: 32px 0 12px; font-size: 19px; }
.doc-body h4 { margin: 22px 0 9px; font-size: 15.5px; color: var(--text-dim); }
.doc-body p { color: var(--text-dim); margin-bottom: 12px; }
.doc-body ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; color: var(--text-dim); }
.doc-body li { margin-bottom: 6px; }

.model-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 7px; font-family: var(--mono); font-size: 12px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--text-dim);
}

.scroll-x { overflow-x: auto; }
.textarea-code { font-family: var(--mono); font-size: 12.5px; line-height: 1.65; }
