/* DS Go 中转站控制台
   侧栏 + 顶部栏的结构，浅色/深色跟随系统；不加载任何外部字体和图片。 */

:root {
  color-scheme: light dark;
  --bg: #f4f5fa;
  --bg-grad: radial-gradient(1200px 600px at 80% -10%, #e8ecff 0%, transparent 60%);
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --surface-3: #eef0f7;
  --text: #0f1420;
  --text-2: #59617a;
  --text-3: #8b93a8;
  --line: #e7e9f1;
  --accent: #4f46e5;
  --accent-2: #7c6cf7;
  --accent-soft: #eef0ff;
  --on-accent: #ffffff;
  --ok: #16a34a;
  --ok-soft: #e9f8ef;
  --warn: #c2760a;
  --warn-soft: #fdf3e3;
  --danger: #d92d20;
  --danger-soft: #fdecea;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 5%);
  --shadow: 0 1px 2px rgb(16 24 40 / 5%), 0 12px 28px -12px rgb(16 24 40 / 12%);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080a10;
    --bg-grad: radial-gradient(1200px 600px at 80% -10%, #1a1f3d 0%, transparent 60%);
    --surface: #10131c;
    --surface-2: #151926;
    --surface-3: #1b2030;
    --text: #e9ecf5;
    --text-2: #9aa2b8;
    --text-3: #6d7590;
    --line: #202537;
    --accent: #8b87ff;
    --accent-2: #a78bfa;
    --accent-soft: #1a1c3a;
    --on-accent: #0b0d14;
    --ok: #4ade80;
    --ok-soft: #10261a;
    --warn: #f5b955;
    --warn-soft: #2a2010;
    --danger: #f87171;
    --danger-soft: #2b1414;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 16px 32px -16px rgb(0 0 0 / 50%);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg) var(--bg-grad) fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; opacity: .85; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ── 骨架 ─────────────────────────────────────────────── */

.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 18px 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(14px);
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; color: var(--text); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.brand .mark svg { width: 19px; height: 19px; }
.brand b { font-size: 15.5px; letter-spacing: -0.01em; display: block; line-height: 1.2; }
.brand span { font-size: 11.5px; color: var(--text-3); display: block; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav .group { margin: 16px 10px 6px; font-size: 11px; letter-spacing: .06em; color: var(--text-3); text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 10px; border-radius: 10px;
  color: var(--text-2); font-size: 14px; font-weight: 500;
  position: relative;
}
.nav-item svg { width: 17px; height: 17px; opacity: .85; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.sidebar .spacer { flex: 1; }

.account {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2);
}
.account .avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 600; font-size: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.account .who { min-width: 0; flex: 1; }
.account .who b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account .who span { display: block; font-size: 11.5px; color: var(--text-3); }
.icon-btn {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid transparent; background: transparent; color: var(--text-3); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  height: 62px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.topbar .crumb { color: var(--text-3); font-size: 12.5px; margin-left: 2px; }
.topbar .grow { flex: 1; }
.menu-btn { display: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; color: var(--text-2); box-shadow: var(--shadow-sm);
}
.pill b { color: var(--text); font-variant-numeric: tabular-nums; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 26px 28px 72px; }

/* ── 通用组件 ─────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card.hover:hover { box-shadow: var(--shadow); transform: translateY(-1px); transition: .18s ease; }
.card-hd { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.card-hd h2 { margin: 0; font-size: 14.5px; font-weight: 600; }
.card-hd .sub { color: var(--text-3); font-size: 12.5px; }
.card-hd .grow { flex: 1; }
.card-bd { padding: 18px; }

.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 13.5px; font-weight: 550; cursor: pointer;
  transition: .15s ease;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary {
  border: 0; color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn.primary:hover { filter: brightness(1.05); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 28%, var(--line)); background: transparent; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 21px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: var(--surface-3); color: var(--text-2);
}
.badge.brand { background: var(--accent-soft); color: var(--accent); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }

.input, .select {
  height: 38px; padding: 0 12px; width: 100%;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 14px;
}
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; color: var(--text-3); }
.field .hint { font-size: 12px; color: var(--text-3); }

.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 11px; width: 16px; height: 16px; color: var(--text-3); }
.search .input { padding-left: 36px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-2); font-size: 12.5px; cursor: pointer;
}
.chip:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); color: var(--text); }
.chip.active { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }

/* ── 概览 ─────────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 18px; position: relative; overflow: hidden; }
.stat .label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); }
.stat .label svg { width: 14px; height: 14px; }
.stat .value { margin-top: 8px; font-size: 27px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat .value small { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 3px; letter-spacing: 0; }
.stat .foot { margin-top: 6px; font-size: 12px; color: var(--text-3); }
.stat .glow {
  position: absolute; right: -26px; top: -26px; width: 78px; height: 78px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
}

.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-top: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.chart { padding: 14px 18px 8px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .axis { font-size: 10.5px; fill: var(--text-3); }

.quick-list { display: flex; flex-direction: column; }
.quick-item { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line); color: var(--text); }
.quick-item:first-child { border-top: 0; }
.quick-item:hover { background: var(--surface-2); }
.quick-item .tile {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent);
}
.quick-item .tile svg { width: 17px; height: 17px; }
.quick-item b { display: block; font-size: 13.5px; font-weight: 600; }
.quick-item span { display: block; font-size: 12px; color: var(--text-3); }
.quick-item .go { margin-left: auto; color: var(--text-3); }
.quick-item .go svg { width: 15px; height: 15px; }

/* ── 表格 ─────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 12px 18px; text-align: left; border-top: 1px solid var(--line); white-space: nowrap; }
th { border-top: 0; font-size: 12px; font-weight: 500; color: var(--text-3); background: var(--surface-2); }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.mono { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }

.empty { padding: 44px 20px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.empty .big { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.empty .big svg { width: 22px; height: 22px; }

/* ── 模型页 ───────────────────────────────────────────── */

.model-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.model-head .search { flex: 1; min-width: 200px; max-width: 320px; }
.price { font-variant-numeric: tabular-nums; font-weight: 600; }


/* ── 模型广场：筛选与视图 ─────────────────────────────── */

.filter-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.filter-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1; min-width: 220px; }
.search-wrap svg { position: absolute; left: 12px; top: 11px; width: 16px; height: 16px; color: var(--text-3); }
.search-wrap .input { padding-left: 36px; padding-right: 34px; }
.search-wrap .clear {
  position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border: 0; border-radius: 7px;
  background: transparent; color: var(--text-3); cursor: pointer; display: none; place-items: center;
}
.search-wrap .clear.show { display: grid; }
.search-wrap .clear:hover { background: var(--surface-3); color: var(--text); }

.tier-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.tier-tabs button {
  height: 28px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent;
  color: var(--text-2); font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.tier-tabs button:hover { color: var(--text); }
.tier-tabs button.active { background: var(--surface); color: var(--accent); font-weight: 600; box-shadow: var(--shadow-sm); }

.select.sm { height: 34px; width: auto; min-width: 120px; padding: 0 10px; font-size: 13px; }

.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.view-toggle button {
  width: 36px; height: 34px; display: grid; place-items: center; border: 0; background: transparent;
  color: var(--text-3); cursor: pointer;
}
.view-toggle button + button { border-left: 1px solid var(--line); }
.view-toggle button.active { background: var(--accent-soft); color: var(--accent); }

.vendor-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.vendor-scroll::-webkit-scrollbar { height: 4px; }
.vendor-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font-size: 12.5px; white-space: nowrap; cursor: pointer;
}
.vendor-chip:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); color: var(--text); }
.vendor-chip .count { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.vendor-chip.active { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }
.vendor-chip.active .count { color: var(--accent); opacity: .72; }

.result-line { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 12.5px; padding: 0 2px; }
.result-line .link { border: 0; background: none; color: var(--accent); font-size: 12.5px; cursor: pointer; padding: 0; }
.result-line .link:hover { text-decoration: underline; }

.vendor-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* 模型图标：白底 + 厂商色 logo，方块严格等比居中 */
.model-mark {
  --size: 30px;
  width: var(--size); height: var(--size);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; box-sizing: border-box; line-height: 1; border-radius: 8px;
  border: 1px solid transparent; overflow: hidden;
  color: var(--mark); font-weight: 700; letter-spacing: -0.02em;
}
.model-mark:not(.logo) {
  background: color-mix(in srgb, var(--mark) 14%, transparent);
  border-color: color-mix(in srgb, var(--mark) 26%, transparent);
}
.model-mark .mark-glyph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.model-mark.logo {
  background: #fff;
  color: var(--mark);
  border-color: color-mix(in srgb, var(--mark) 24%, #d5d9e2);
  box-shadow: 0 1px 2px rgb(16 24 40 / 8%);
}
@media (prefers-color-scheme: dark) {
  .model-mark.logo {
    background: #171b24;
    border-color: rgb(255 255 255 / 12%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
  }
  .model-mark.logo.on-dark { color: #eef1f7; }
}
.model-mark.logo svg { width: 58%; height: 58%; display: block; }
.model-mark.logo .mark-glyph svg { margin: 0; }
.model-card .model-mark { border-radius: 10px; }
.strip-chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px 0 6px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 12px; }
.chip.model-chip { display: inline-flex; align-items: center; gap: 6px; padding-left: 6px; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.model-card { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.model-card .top { display: flex; align-items: center; gap: 8px; }
.model-card .top .grow { min-width: 0; }
.model-card .name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-card .id { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-card .price { font-size: 21px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.model-card .price small { font-size: 11.5px; font-weight: 500; color: var(--text-3); margin-left: 4px; letter-spacing: 0; }
.model-card .foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.model-card .foot .mult { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.model-card .foot .grow { flex: 1; }
.model-card .actions { display: flex; gap: 6px; }

@media (max-width: 720px) {
  .filter-top { gap: 8px; }
  .search-wrap { min-width: 100%; }
  .tier-tabs { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; }
  .select.sm { flex: 1; }
  .table-wrap table { min-width: 560px; }
}

/* ── Key 页 ───────────────────────────────────────────── */

.key-row { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-top: 1px solid var(--line); }
.key-row:first-child { border-top: 0; }
.key-row .state { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.key-row .state.on { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }
.key-row .grow { flex: 1; min-width: 0; }
.key-row .name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.key-row .meta { font-family: var(--mono); font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-row .actions { display: flex; gap: 6px; }

.keybox {
  margin: 0 18px 18px; padding: 14px 16px; border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-soft);
}
.keybox .label { font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.keybox code { display: block; font-family: var(--mono); font-size: 13px; word-break: break-all; color: var(--text); margin-bottom: 10px; }

/* ── 充值 ─────────────────────────────────────────────── */

.progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan { padding: 20px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.plan.recommended { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 16px 36px -20px color-mix(in srgb, var(--accent) 60%, transparent); }
.plan .tag { position: absolute; top: -10px; right: 16px; height: 20px; padding: 0 8px; border-radius: 6px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.plan .tokens { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan .price { color: var(--text-2); font-size: 14px; font-weight: 500; }
.plan .per { color: var(--text-3); font-size: 12px; margin-bottom: 12px; }
.plan .btn { margin-top: auto; }

/* ── 文档 ─────────────────────────────────────────────── */

.docs { display: grid; gap: 14px; }
.code { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; overflow: auto; }
.code pre { margin: 0; padding: 16px 18px; font-family: var(--mono); font-size: 12.8px; line-height: 1.65; }
.code .copy { position: absolute; top: 10px; right: 10px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 18px; }
.tab { height: 42px; padding: 0 12px; border: 0; background: none; color: var(--text-3); font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.steps { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13.5px; }
.steps li { margin: 7px 0; }
.steps b { color: var(--text); font-weight: 600; }

/* ── 落地页 ───────────────────────────────────────────── */

.landing { min-height: 100vh; display: flex; flex-direction: column; }
.landing .nav-top { display: flex; align-items: center; gap: 12px; padding: 18px 32px; max-width: 1180px; margin: 0 auto; width: 100%; }
.landing .nav-top .grow { flex: 1; }

.hero { position: relative; overflow: hidden; padding: 64px 24px 54px; text-align: center; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.hero .blob.a { width: 420px; height: 420px; background: color-mix(in srgb, var(--accent) 55%, transparent); left: -80px; top: -120px; }
.hero .blob.b { width: 380px; height: 380px; background: color-mix(in srgb, var(--accent-2) 50%, transparent); right: -60px; top: -40px; }
.hero .badge-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 12.5px;
  box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.hero h1 { position: relative; margin: 0 auto 14px; max-width: 720px; font-size: 46px; line-height: 1.15; letter-spacing: -0.035em; font-weight: 750; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { position: relative; margin: 0 auto 26px; max-width: 600px; color: var(--text-2); font-size: 16px; }
.hero .cta { display: flex; gap: 10px; justify-content: center; }
.hero .meta { margin-top: 18px; color: var(--text-3); font-size: 12.5px; }

.models-strip { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 780px; margin: 0 auto; }
.models-strip span { height: 28px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 12px; display: inline-flex; align-items: center; }

.section { max-width: 1180px; margin: 0 auto; padding: 26px 28px; width: 100%; }
.section h2 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 6px; }
.section .lead { color: var(--text-2); margin: 0 0 20px; font-size: 14.5px; }

.feature { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.feature .tile { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.feature .tile svg { width: 19px; height: 19px; }
.feature h3 { margin: 2px 0 0; font-size: 15px; }
.feature p { margin: 0; color: var(--text-2); font-size: 13.5px; }

.footer { margin-top: auto; border-top: 1px solid var(--line); padding: 22px 28px; color: var(--text-3); font-size: 12.5px; display: flex; gap: 16px; flex-wrap: wrap; max-width: 1180px; width: 100%; margin-left: auto; margin-right: auto; }

/* ── 登录 ─────────────────────────────────────────────── */

.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth .left { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 92%, #000), color-mix(in srgb, var(--accent-2) 88%, #000)); color: #fff; }
.auth .left .blob { position: absolute; width: 460px; height: 460px; border-radius: 50%; background: rgb(255 255 255 / 10%); filter: blur(60px); right: -120px; bottom: -140px; }
.auth .left h2 { font-size: 30px; line-height: 1.25; letter-spacing: -0.03em; margin: 0; max-width: 420px; }
.auth .left p { color: rgb(255 255 255 / 75%); font-size: 14px; max-width: 380px; }
.auth .right { display: grid; place-items: center; padding: 40px; }
.auth .form { width: 100%; max-width: 360px; }

.auth .left .brand,
.auth .left .brand b,
.auth .left .brand span { color: #fff; }
.auth .left .brand span { color: rgb(255 255 255 / 70%); }
.auth .left .brand .mark { background: rgb(255 255 255 / 18%); box-shadow: none; }

/* ── 其他 ─────────────────────────────────────────────── */

.toast-host { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 90; }
.toast { padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 13px; box-shadow: var(--shadow); animation: rise .18s ease; }
.toast.error { background: var(--danger); color: #fff; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.modal-mask { position: fixed; inset: 0; background: rgb(8 10 16 / 45%); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 80; padding: 20px; }
.modal { width: 100%; max-width: 420px; }
.modal .card-bd { display: flex; flex-direction: column; gap: 14px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; }

.skeleton { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.mono { font-family: var(--mono); }
.muted { color: var(--text-3); }
.small { font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 10px; }
.row > .btn, .row > .icon-btn, .row > .view-toggle { flex: none; }
.grow { flex: 1; min-width: 0; }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .stats, .stats.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; width: 244px; transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgb(8 10 16 / 40%); z-index: 35; }
  .menu-btn { display: grid; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }

.plans { grid-template-columns: 1fr; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px 16px 64px; }
  .hero h1 { font-size: 32px; }
  .hero { padding: 40px 20px; }
  .auth { grid-template-columns: 1fr; }
  .auth .left { display: none; }
  .section { padding: 18px 16px; }
  .landing .nav-top { padding: 14px 16px; }
}

@media (max-width: 560px) {
  .stats, .stats.cols-3 { grid-template-columns: 1fr; }
  th, td { padding: 10px 12px; }
  .key-row { flex-wrap: wrap; }
}
