/* API Relay · 设计系统
   参考 api-new.ifphp.com 的浅色冷灰蓝 + 品牌渐变体系 */
:root {
  --bg: #f5f7fc;
  --bg-elev: #eef2f9;
  --surface: rgba(255, 255, 255, .92);
  --surface-weak: rgba(255, 255, 255, .75);
  --text: #0c1428;
  --text-muted: #4a5670;
  --text-faint: #8a93a8;
  --border: rgba(15, 23, 42, .10);
  --border-strong: rgba(15, 23, 42, .18);
  --brand: #5b8cff;
  --primary: #006be6;
  --accent: #3565e8;
  --grad: linear-gradient(120deg, #2f6bff 0%, #7c3aed 52%, #0891b2 100%);
  --success: #059669;
  --success-bg: rgba(5, 150, 105, .10);
  --warning: #d97706;
  --warning-bg: rgba(217, 119, 6, .10);
  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, .10);
  --code-bg: #0d152b;
  --code-head: #16203a;
  --code-text: #c9d4ee;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 18px;
  --shadow-card: 0 16px 40px rgba(23, 43, 99, .10);
  --shadow-soft: 0 8px 24px rgba(23, 43, 99, .07);
  --shadow-brand: 0 8px 24px rgba(79, 140, 255, .38);
  --sidebar: 224px;
  --topbar: 50px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.57;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--brand); }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* ---------- 布局 ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar);
  background: rgba(255, 255, 255, .86);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 30;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  height: 64px; padding: 0 20px; font-weight: 800; letter-spacing: -.2px;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; background: var(--grad); font-size: 12px; font-weight: 800;
  box-shadow: var(--shadow-brand);
}
.brand small { display: block; color: var(--text-faint); font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; }
.nav-section { padding: 16px 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--text-faint); text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 2px;
  color: var(--text-muted); border-radius: 10px; font-weight: 600; font-size: 13.5px;
  transition: background .18s, color .18s, transform .18s;
}
.nav-item:hover { background: rgba(91, 140, 255, .07); color: var(--text); }
.nav-item.active {
  color: var(--accent);
  background: linear-gradient(90deg, rgba(91, 140, 255, .14), rgba(91, 140, 255, .04));
  box-shadow: inset 0 0 0 1px rgba(91, 140, 255, .18);
}
.nav-icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; }
.sidebar-foot { padding: 14px 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-faint); }
.main { margin-left: var(--sidebar); width: calc(100% - var(--sidebar)); min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; background: rgba(245, 247, 252, .86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.crumb { color: var(--text-faint); font-size: 12.5px; }
.crumb b { color: var(--text); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .2px;
  text-transform: uppercase; box-shadow: 0 4px 10px rgba(79, 140, 255, .28);
}
.content { max-width: var(--container); margin: 0 auto; padding: 24px; }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); }

/* ---------- 页头 ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.4px; }
.page-sub { margin: 6px 0 0; color: var(--text-muted); font-size: 13px; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 0; gap: 12px; }
.card-title { margin: 0; font-size: 15px; font-weight: 700; }
.card-sub { margin: 4px 0 0; font-size: 12px; color: var(--text-faint); }
.card-body { padding: 18px 20px 20px; }
.card + .card { margin-top: 16px; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

/* ---------- KPI ---------- */
.kpi { padding: 20px 20px 18px; }
.kpi-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.kpi-value {
  margin-top: 8px; font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -.8px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kpi-foot { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-faint); }
.trend { color: var(--success); background: var(--success-bg); padding: 2px 8px; border-radius: 99px; font-weight: 700; }
.trend.down { color: var(--danger); background: var(--danger-bg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface-weak); color: var(--text);
  font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .16s, box-shadow .16s, border-color .16s, background .16s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.btn-primary { border: 0; color: #fff; background: var(--primary); box-shadow: 0 8px 20px rgba(0, 107, 230, .22); }
.btn-primary:hover { background: #005fcc; box-shadow: 0 10px 24px rgba(0, 107, 230, .3); }
.btn-grad { border: 0; color: #fff; background: var(--grad); box-shadow: var(--shadow-brand); }
.btn-danger { border: 0; color: #fff; background: var(--danger); }
.btn-danger-ghost { color: var(--danger); background: var(--danger-bg); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 13.5px;
  outline: none; transition: border-color .16s, box-shadow .16s;
}
.textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 140, 255, .16);
}
.help { font-size: 11.5px; color: var(--text-faint); }
.kv-list { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.kv-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.kv-row .input { flex: 1; min-width: 0; }
.kv-row .btn { flex-shrink: 0; }
.kv-arrow { flex-shrink: 0; color: var(--text-faint); font-size: 15px; line-height: 1; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form .input, .inline-form .select { width: auto; min-width: 140px; }

/* ---------- 表格 ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid rgba(15, 23, 42, .06); vertical-align: middle; }
th { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--text-faint); background: var(--bg); text-transform: uppercase; white-space: nowrap; }
tbody tr:hover { background: rgba(245, 247, 252, .8); }
td .mono { font-size: 12.5px; }
.empty { padding: 40px 20px; text-align: center; color: var(--text-faint); font-size: 13px; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-actions.actions-col { flex-direction: column; align-items: flex-start; gap: 8px; }
.table-actions.actions-col .inline-form { width: 100%; }
.table-actions.actions-col .inline-form .input { width: 96px; height: 32px; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.badge-success { color: var(--success); background: var(--success-bg); }
.badge-warning { color: var(--warning); background: var(--warning-bg); }
.badge-danger { color: var(--danger); background: var(--danger-bg); }
.badge-info { color: var(--accent); background: rgba(91, 140, 255, .12); }
.badge-muted { color: var(--text-muted); background: rgba(148, 163, 184, .14); }
.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--brand); background: rgba(91, 140, 255, .10); }

/* ---------- 提示 ---------- */
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); font-size: 13px; margin-bottom: 16px; }
.alert-error { color: var(--danger); background: var(--danger-bg); }
.alert-success { color: var(--success); background: var(--success-bg); }
.alert-info { color: var(--accent); background: rgba(91, 140, 255, .06); border: 1px solid rgba(91, 140, 255, .18); }
.alert-warning { color: var(--warning); background: var(--warning-bg); }

/* ---------- 进度 / 队列 ---------- */
.progress { height: 8px; border-radius: 99px; background: rgba(148, 163, 184, .20); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.queue-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed rgba(15, 23, 42, .08); font-size: 13px; }
.queue-row:last-child { border-bottom: 0; }
.queue-num { font-weight: 800; font-size: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 7px; }
.dot-green { background: var(--success); box-shadow: 0 0 10px rgba(5, 150, 105, .45); }
.dot-orange { background: var(--warning); }
.dot-red { background: var(--danger); }

/* ---------- 代码块 ---------- */
.code-block { background: var(--code-bg); border: 1px solid rgba(148, 163, 184, .25); border-radius: 8px; overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; background: var(--code-head); color: #9fb0d8; font-size: 11.5px; }
.code-body { margin: 0; padding: 14px 16px; color: var(--code-text); font-size: 12.5px; line-height: 1.75; overflow-x: auto; }
.copy-btn { border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 11.5px; font-weight: 600; }
.copy-btn:hover { color: var(--primary); }
.code-head .copy-btn { color: #9fb0d8; }
.code-head .copy-btn:hover { color: #fff; }
.code-body.wrap { white-space: pre-wrap; word-break: break-all; overflow-x: hidden; }

/* ---------- 分页 ---------- */
.pagination { margin-top: 16px; }
.pagination ul, .pagination .pagination-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.pagination li, .pagination a, .pagination span {
  min-width: 32px; height: 32px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: 12.5px;
}
.pagination .active span, .pagination .active a { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }

/* ---------- 登录 ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.45fr 1fr; background: var(--bg-elev); }
.auth-visual { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #f1f3f6; }
.auth-visual::before {
  content: ""; position: absolute; inset: -20% -10% -20% 20%;
  background: linear-gradient(154deg, rgba(47, 107, 255, .18), rgba(124, 58, 237, .12) 45%, transparent 70%);
  transform: rotate(-8deg);
}
.auth-glow { position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(79, 140, 255, .38), transparent 65%); filter: blur(60px); }
.auth-art { position: relative; z-index: 1; text-align: center; }
.auth-art .brand-mark { width: 76px; height: 76px; border-radius: 22px; font-size: 20px; margin: 0 auto 22px; }
.auth-art h1 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.8px; }
.auth-art p { margin: 10px 0 0; color: var(--text-muted); font-size: 14px; }
.auth-points { margin: 26px 0 0; padding: 0; list-style: none; text-align: left; display: inline-grid; gap: 10px; }
.auth-points li { display: flex; align-items: center; gap: 9px; color: var(--text-muted); font-size: 13px; }
.auth-points svg { width: 17px; height: 17px; color: var(--success); }
.auth-panel { background: #fff; display: flex; align-items: center; justify-content: center; padding: 40px 32px; }
.auth-box { width: 100%; max-width: 405px; }
.auth-box h2 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.9px; }
.auth-box .sub { margin: 8px 0 26px; color: var(--text-muted); font-size: 13px; }
.auth-box .field { margin-bottom: 16px; }
.auth-box .input { height: 42px; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 12px; color: var(--text-faint); }
.auth-link { display: flex; justify-content: space-between; margin-top: 14px; font-size: 12.5px; }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row .input { flex: 1; }
.captcha-img { width: 120px; height: 42px; border-radius: var(--radius-md); border: 1px solid var(--border); background: #f8fafc; object-fit: cover; }
.key-reveal { font-family: var(--mono, monospace); word-break: break-all; font-size: 13px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--success-bg); color: var(--success); }
.usage-bar { height: 8px; border-radius: 999px; background: var(--bg-elev); overflow: hidden; }
.usage-bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.usage-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 8px 0; }
.usage-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; justify-content: flex-end; height: 100%; }
.usage-col > i { display: block; width: 100%; max-width: 44px; background: linear-gradient(180deg, var(--accent), rgba(91,140,255,.35)); border-radius: 6px 6px 0 0; min-height: 3px; }
.usage-col > span { font-size: 11px; color: var(--text-faint); }
.portal-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 24px; font-size: 12px; color: var(--text-faint); border-top: 1px solid var(--border); }

/* ---------- 公开站 ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 40; height: 65px; display: flex; align-items: center;
  background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--border);
}
.site-nav .inner { width: min(1200px, calc(100% - 48px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-links { display: flex; align-items: center; gap: 6px; }
.site-links a { padding: 9px 13px; border-radius: 10px; color: var(--text-muted); font-size: 13.5px; font-weight: 500; }
.site-links a:hover, .site-links a.active { color: var(--text); background: rgba(91, 140, 255, .08); box-shadow: inset 0 0 0 1px rgba(91, 140, 255, .18); }
.site-actions { display: flex; align-items: center; gap: 8px; }
.hero { position: relative; overflow: hidden; padding: 68px 0 48px; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(15, 23, 42, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(90% 60% at 50% 0, #000 0%, transparent 72%);
}
.hero-glow { position: absolute; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(79, 140, 255, .45), transparent 62%); filter: blur(110px); opacity: .55; top: -280px; right: -120px; }
.hero-glow.two { width: 420px; height: 420px; background: radial-gradient(circle, rgba(139, 92, 246, .38), transparent 62%); top: -120px; left: -140px; }
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(91, 140, 255, .10); color: var(--accent); font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.hero h1 { margin: 18px 0 16px; font-size: 54px; line-height: 1.12; font-weight: 800; letter-spacing: -1.4px; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 0; color: var(--text-muted); font-size: 15.5px; line-height: 1.85; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.hero-meta span { font-size: 11.5px; color: var(--text-faint); }
.terminal {
  background: rgba(13, 20, 40, .94); border: 1px solid rgba(148, 163, 184, .22); border-radius: 22px;
  box-shadow: 0 18px 50px rgba(2, 6, 18, .35), 0 0 80px rgba(91, 140, 255, .16);
  overflow: hidden; color: var(--code-text);
}
.terminal-head { display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(148, 163, 184, .14); font-size: 11.5px; color: #8fa3cf; }
.win-dot { width: 9px; height: 9px; border-radius: 50%; background: #f87171; }
.win-dot.y { background: #fbbf24; } .win-dot.g { background: #34d399; }
.live { margin-left: auto; display: flex; align-items: center; gap: 6px; color: #34d399; font-weight: 700; letter-spacing: .8px; }
.terminal pre { margin: 0; padding: 18px; font-size: 12.5px; line-height: 1.9; white-space: pre-wrap; word-break: break-all; }
.tk-blue { color: #7dd3fc; } .tk-green { color: #6ee7b7; } .tk-purple { color: #c4b5fd; } .tk-muted { color: #7d8bab; }
.section { padding: 56px 0; }
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head h2 { margin: 12px 0 10px; font-size: 32px; font-weight: 800; letter-spacing: -.8px; }
.section-head p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.8; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { padding: 22px 24px 20px; }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 22px; }
.feature-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(91, 140, 255, .10); color: var(--accent); margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 700; }
.feature p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.77; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price { padding: 24px; position: relative; }
.price.hot { box-shadow: 0 16px 40px rgba(79, 140, 255, .18); border-color: rgba(91, 140, 255, .45); }
.price h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--text-muted); }
.price .amount { margin: 10px 0 4px; font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.price .amount small { font-size: 13px; font-weight: 600; color: var(--text-faint); }
.price ul { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 9px; font-size: 13px; color: var(--text-muted); }
.price li::before { content: "✓"; color: var(--success); font-weight: 800; margin-right: 8px; }
.price .hot-tag { position: absolute; top: 16px; right: 16px; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(91, 140, 255, .25); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.faq p { margin: 10px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.cta {
  padding: 36px; border-radius: 22px; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow-brand);
}
.cta h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; letter-spacing: -.6px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 14px; }
.cta .btn { background: #fff; color: var(--accent); border: 0; }
.footer { border-top: 1px solid var(--border); background: var(--bg-elev); padding: 28px 0; margin-top: 40px; }
.footer .inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-faint); font-size: 12.5px; }

/* ---------- 客户端门户 ---------- */
.portal-wrap { min-height: 100vh; background: var(--bg); }
.portal-nav { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--border); }
.portal-nav .inner { width: min(1200px, calc(100% - 48px)); margin: 0 auto; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.portal-links { display: flex; gap: 4px; }
.portal-links a { padding: 8px 12px; border-radius: 9px; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.portal-links a.active, .portal-links a:hover { color: var(--accent); background: rgba(91, 140, 255, .08); }
.quota-bar { height: 10px; border-radius: 99px; background: rgba(148, 163, 184, .18); overflow: hidden; }
.quota-bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 42px; }
  .feature-grid, .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 20px 60px rgba(2, 6, 18, .25); }
  .main { margin-left: 0; width: 100%; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .grid-3, .grid-2, .stat-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .page-title { font-size: 22px; }
  .hero { padding: 40px 0 30px; }
  .hero h1 { font-size: 34px; }
  .container { width: calc(100% - 32px); }
  .site-links { display: none; }
  .cta { padding: 24px; }
}
