/* =============================================================
   次方量化 · 站点公共样式
   目标站点用 Tailwind；这里用等价的手写工具类，保证零 CDN、可离线。
   ============================================================= */
@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-600); }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre { font-family: var(--font-mono); }
::selection { background: var(--brand-100); }

/* ---------- 布局 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrapf { flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.grow { flex: 1 1 auto; min-width: 0; }
.pad-y-16 { padding-top: 16px; padding-bottom: 16px; }
.pad-y-24 { padding-top: 24px; padding-bottom: 24px; }
.pad-y-32 { padding-top: 32px; padding-bottom: 32px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.hide { display: none !important; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--brand-600), var(--indigo-600) 55%, var(--purple-600));
  box-shadow: 0 3px 8px rgba(79, 70, 229, .3);
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
}
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  position: relative; font-size: 14px; font-weight: 500; color: var(--gray-600);
  padding: 6px 0; transition: color .15s;
}
.main-nav a:hover { color: var(--gray-900); }
.main-nav a.on { color: var(--brand-600); font-weight: 600; }
.main-nav a.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -19px; height: 2px;
  background: var(--brand-600); border-radius: 2px;
}
.nav-tag {
  display: inline-block; margin-left: 5px; padding: 1px 5px; border-radius: 4px;
  font-size: 9px; font-weight: 700; letter-spacing: .02em; vertical-align: 2px;
  background: linear-gradient(135deg, #f43f5e, #f97316); color: #fff;
}
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-right .hint { font-size: 12px; color: var(--text-dim); }
.icon-btn {
  position: relative; width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid transparent; background: none; color: var(--gray-500);
  display: inline-grid; place-items: center; transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--gray-100); color: var(--gray-800); }
.bell-dot {
  position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%;
  background: #ef4444; box-shadow: 0 0 0 2px #fff;
}
.bell-wrap { position: relative; }
.bell-pop {
  position: absolute; top: 40px; right: -8px; width: 320px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.bell-pop.open { opacity: 1; visibility: visible; transform: none; }
.bell-tabs { display: flex; gap: 4px; padding: 8px 10px 0; border-bottom: 1px solid var(--border); }
.bell-tabs button {
  background: none; border: 0; padding: 8px 10px; font-size: 12.5px; color: var(--text-mute);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.bell-tabs button.on { color: var(--brand-600); font-weight: 600; border-bottom-color: var(--brand-600); }
.bell-list { max-height: 260px; overflow-y: auto; }
.bell-item { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--gray-100); }
.bell-item:hover { background: var(--gray-50); }
.bell-item .t { flex: 1; min-width: 0; font-size: 12.5px; color: var(--gray-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bell-item .d { font-size: 11px; color: var(--text-dim); flex: none; }
.bell-item i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.bell-item i.unread { background: var(--brand-600); }
.bell-item i.read { background: transparent; }
.bell-empty { padding: 26px 14px; text-align: center; font-size: 12.5px; color: var(--text-dim); }
.bell-all { display: block; padding: 10px 14px; text-align: center; font-size: 12.5px; color: var(--brand-600); font-weight: 600; border-top: 1px solid var(--border); }

/* 图表悬浮读数卡片（十字光标 tooltip） */
.cfq-tip {
  position: absolute; z-index: 6; pointer-events: none;
  min-width: 138px; padding: 8px 11px; border-radius: 9px;
  background: rgba(15, 23, 42, .93); color: #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .28);
  font-size: 12px; line-height: 1.75; letter-spacing: .2px;
}
.cfq-tip-d { color: #cbd5e1; font-size: 11.5px; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.cfq-tip-r { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.cfq-tip-r span { color: #94a3b8; flex: none; }
.cfq-tip-r b { font-weight: 600; color: #f8fafc; font-variant-numeric: tabular-nums; }
.cfq-tip-r b.up { color: #f87171; }
.cfq-tip-r b.down { color: #34d399; }
.cfq-tip-r b.dd { color: #fbbf24; }
html.dark .cfq-tip { background: rgba(2, 6, 23, .95); box-shadow: 0 10px 28px rgba(0, 0, 0, .5); }

/* 深色模式下的顶栏/浮层微调 */
html.dark .site-header { background: rgba(17, 24, 39, .84); }
html.dark .bell-dot { box-shadow: 0 0 0 2px #111827; }
html.dark .feat, html.dark .step, html.dark .faq-item, html.dark .kpi, html.dark .card { background: var(--surface); }
html.dark .hero { background: linear-gradient(135deg, #0b1220 0%, #101a33 45%, #16102b 100%); }
html.dark .hero .stat { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); }
html.dark .band-alt, html.dark .risk-band, html.dark .site-footer, html.dark .page-head { background: var(--surface-2); }
html.dark .site-footer { background: var(--surface); }

/* 深色模式：把写死浅色的基础组件统一覆盖（否则切深色会出刺眼白块） */
html.dark .btn { background: var(--surface); border-color: var(--border); color: #e5e7eb; }
html.dark .btn:hover { background: var(--surface-2); }
html.dark .btn-primary { background: linear-gradient(135deg, var(--brand-600), var(--indigo-600)); color: #fff; }
html.dark .btn-primary:hover { background: linear-gradient(135deg, var(--brand-700), var(--indigo-700)); color: #fff; }
html.dark .btn-ghost:hover { background: var(--surface-2); border-color: #374151; }
html.dark .main-nav a { color: #9ca3af; }
html.dark .main-nav a:hover, html.dark .main-nav a.on { color: #93c5fd; }
html.dark .main-nav a.on::after { background: #3b82f6; }
html.dark .icon-btn:hover { background: var(--surface-2); color: #e5e7eb; }
html.dark table.tbl th { background: var(--surface-2); color: var(--text-mute); border-bottom-color: var(--border); }
html.dark table.tbl td { border-bottom-color: #1f2937; }
html.dark table.tbl tbody tr:hover { background: var(--surface-2); }
html.dark .chip { background: var(--surface); border-color: var(--border); color: #d1d5db; }
html.dark .chip:hover { border-color: #374151; }
html.dark .chip.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
html.dark .pager button { background: var(--surface); border-color: var(--border); color: #d1d5db; }
html.dark .pager button:hover:not(:disabled) { background: var(--surface-2); border-color: #374151; }
html.dark .pager button.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
html.dark .empty .ico { background: var(--surface-2); }
html.dark .badge { background: var(--surface-2); color: #d1d5db; }
html.dark .input, html.dark .select, html.dark textarea.input { background: var(--surface); color: var(--text); border-color: var(--border); }
html.dark .sk { background: linear-gradient(90deg, #1f2937 25%, #111827 37%, #1f2937 63%); background-size: 400% 100%; }
html.dark .tabs { border-bottom-color: var(--border); }
html.dark .tabs button { color: #9ca3af; }
html.dark .tabs button.on { color: #93c5fd; }
html.dark .tabs button.on::after { background: #3b82f6; }
html.dark .card-h { border-bottom-color: var(--border); }
html.dark .divider { background: var(--border); }
html.dark .footer-bottom { border-top-color: var(--border); }
html.dark .hintbar.info { background: #0f1f3d; color: #bfdbfe; border-color: #1e3a8a; }
html.dark .hintbar.warn { background: #2a1f0a; color: #fde68a; border-color: #78350f; }
html.dark .hintbar.err  { background: #2a1212; color: #fecaca; border-color: #7f1d1d; }
html.dark .hintbar.ok   { background: #06281f; color: #a7f3d0; border-color: #065f46; }
html.dark .bell-pop { background: var(--surface); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid transparent; background: #fff; color: var(--gray-700);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { background: var(--gray-50); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--indigo-600));
  color: #fff; box-shadow: 0 2px 6px rgba(37, 99, 235, .28);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-700), var(--indigo-700)); color: #fff; }
.btn-ghost { border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gray-300); background: var(--gray-50); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; }
.btn-lg { height: 44px; padding: 0 24px; font-size: 15px; border-radius: var(--r); }
.btn-link { background: none; border: 0; color: var(--brand-600); font-weight: 600; padding: 0; height: auto; }
.btn-link:hover { text-decoration: underline; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.card-h { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.card-h h3 { font-size: 15px; }
.card-b { padding: 20px; }
.card-hover { transition: box-shadow .18s, border-color .18s, transform .18s; }
.card-hover:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); transform: translateY(-2px); }

/* ---------- 徽标 / 标签 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: var(--gray-100); color: var(--gray-600); white-space: nowrap;
}
.badge-brand { background: var(--brand-50); color: var(--brand-700); }
.badge-green { background: #ecfdf5; color: #047857; }
.badge-red   { background: #fef2f2; color: #b91c1c; }
.badge-amber { background: #fffbeb; color: #b45309; }
.badge-purple{ background: #faf5ff; color: #7e22ce; }
.badge-gray  { background: var(--gray-100); color: var(--gray-500); }
.chip {
  display: inline-flex; align-items: center; height: 30px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font-size: 13px; color: var(--gray-600); transition: all .15s;
}
.chip:hover { border-color: var(--gray-300); }
.chip.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; font-weight: 600; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; font-weight: 600; color: var(--text-mute); font-size: 12px;
  padding: 10px 12px; background: var(--gray-50); border-bottom: 1px solid var(--border);
  white-space: nowrap; position: sticky; top: 0;
}
table.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
table.tbl tbody tr:hover { background: var(--gray-50); }
table.tbl tbody tr.is-click { cursor: pointer; }
table.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl .mono { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); }

/* ---------- 涨跌 ---------- */
.up   { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--flat); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- KPI ---------- */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; }
.kpi .k { font-size: 12px; color: var(--text-mute); }
.kpi .v { margin-top: 6px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .s { margin-top: 2px; font-size: 11px; color: var(--text-dim); }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12px; font-weight: 600; color: var(--gray-700); }
.field .desc { font-size: 11px; color: var(--text-dim); }
.input, .select, textarea.input {
  height: 36px; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: #fff; color: var(--text); font-size: 13px; font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 9px 11px; line-height: 1.6; resize: vertical; }
.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}
.select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--gray-400) 50%), linear-gradient(135deg, var(--gray-400) 50%, transparent 50%); background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
.switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--gray-300); border: 0; transition: background .18s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s; }
.switch.on { background: var(--brand-600); }
.switch.on::after { transform: translateX(16px); }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 16px 0; }
.pager button {
  min-width: 32px; height: 32px; padding: 0 9px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: #fff; color: var(--gray-600); font-size: 13px;
}
.pager button:hover:not(:disabled) { border-color: var(--gray-300); background: var(--gray-50); }
.pager button.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; font-weight: 600; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 空态 / 加载 ---------- */
.empty { padding: 56px 20px; text-align: center; color: var(--text-dim); }
.empty .ico { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px; background: var(--gray-100); display: grid; place-items: center; font-size: 20px; }
.empty h4 { font-size: 14px; color: var(--gray-600); margin-bottom: 6px; }
.empty p { font-size: 13px; }
.sk { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 37%, var(--gray-100) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 6px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-line { height: 12px; margin-bottom: 8px; }
.sk-block { height: 90px; }

/* ---------- 提示条 / Toast ---------- */
.hintbar {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-sm);
  font-size: 12.5px; border: 1px solid transparent;
}
.hintbar.info { background: var(--brand-50); color: var(--brand-700); border-color: #bfdbfe; }
.hintbar.warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.hintbar.err  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.hintbar.ok   { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
#toast-host { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  padding: 9px 16px; border-radius: var(--r); background: var(--gray-900); color: #fff;
  font-size: 13px; box-shadow: var(--shadow-lg); animation: toastin .2s ease;
}
.toast.ok { background: #065f46; } .toast.err { background: #991b1b; }
@keyframes toastin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 首页专用 ---------- */
.hero {
  position: relative; overflow: hidden; padding: 84px 0 72px;
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 45%, #faf5ff 100%);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 300px at 12% 8%, rgba(37, 99, 235, .16), transparent 70%),
    radial-gradient(520px 320px at 88% 20%, rgba(147, 51, 234, .14), transparent 70%);
}
.hero .inner { position: relative; text-align: center; }
.hero h1 { font-size: 44px; line-height: 1.18; letter-spacing: -.03em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand-600), var(--indigo-600) 45%, var(--purple-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { margin: 18px auto 0; max-width: 680px; font-size: 16px; color: var(--gray-600); }
.hero .cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .stats { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hero .stat { background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--r); padding: 14px; }
.hero .stat b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hero .stat span { font-size: 12px; color: var(--text-mute); }

.band { padding: 64px 0; }
.band-alt { background: var(--gray-50); }
.band-head { text-align: center; margin-bottom: 36px; }
.band-head h2 { font-size: 28px; letter-spacing: -.02em; }
.band-head p { margin-top: 10px; font-size: 14px; color: var(--text-mute); }

.feat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.feat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px 18px; transition: box-shadow .18s, transform .18s, border-color .18s;
}
.feat:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--gray-300); }
.feat .ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-size: 19px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--brand-50), #eef2ff); color: var(--brand-600);
}
.feat h3 { font-size: 14px; margin-bottom: 7px; }
.feat p { font-size: 12.5px; color: var(--text-mute); line-height: 1.65; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 18px 18px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: -12px; left: 18px; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600), var(--indigo-600)); color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 3px 8px rgba(37, 99, 235, .3);
}
.step h3 { font-size: 14px; margin: 8px 0 7px; }
.step p { font-size: 12.5px; color: var(--text-mute); }

.faq { max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 15px 18px; background: none; border: 0; font-size: 14px; font-weight: 600; color: var(--gray-800);
}
.faq-q .n { color: var(--brand-600); font-variant-numeric: tabular-nums; }
.faq-q .ar { margin-left: auto; color: var(--gray-400); transition: transform .2s; font-size: 12px; }
.faq-item.open .faq-q .ar { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 18px 16px 46px; font-size: 13px; color: var(--gray-600); line-height: 1.75; }
.faq-item.open .faq-a { display: block; }

.cta-band { padding: 64px 0; background: linear-gradient(120deg, var(--brand-600), var(--indigo-600) 55%, var(--purple-600)); text-align: center; color: #fff; }
.cta-band h2 { font-size: 30px; letter-spacing: -.02em; }
.cta-band p { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.cta-band .btn { background: #fff; color: var(--brand-700); margin-top: 26px; }
.cta-band .btn:hover { background: #f9fafb; }

.risk-band { padding: 22px 0; background: var(--gray-50); border-top: 1px solid var(--border); }
.risk-band .t { font-size: 13px; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.risk-band p { font-size: 12px; color: var(--text-mute); line-height: 1.8; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); background: #fff; padding: 44px 0 28px; }
/* 归档 terms/privacy/auto-trading/stock-account 后，「关于」列不再存在 */
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 13px; margin-bottom: 12px; color: var(--gray-800); }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { font-size: 12.5px; color: var(--text-mute); }
.footer-grid a:hover { color: var(--brand-600); }
.footer-brand p { margin-top: 10px; font-size: 12.5px; color: var(--text-mute); max-width: 300px; line-height: 1.7; }
.footer-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--gray-100);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 12px; color: var(--text-dim);
}

/* ---------- 通用区块 ---------- */
.page-head { padding: 28px 0 20px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.page-head h1 { font-size: 24px; letter-spacing: -.02em; }
.page-head p { margin-top: 7px; font-size: 13px; color: var(--text-mute); }
.crumb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.crumb a:hover { color: var(--brand-600); }
.section-t { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-t h2 { font-size: 17px; }
.section-t .more { margin-left: auto; font-size: 12.5px; color: var(--brand-600); font-weight: 600; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); }
.tabs button {
  position: relative; padding: 11px 16px; background: none; border: 0;
  font-size: 13.5px; font-weight: 500; color: var(--gray-500);
}
.tabs button:hover { color: var(--gray-800); }
.tabs button.on { color: var(--brand-600); font-weight: 600; }
.tabs button.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--brand-600); border-radius: 2px; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.note { font-size: 11.5px; color: var(--text-dim); line-height: 1.7; }
.mono { font-family: var(--font-mono); }
pre.code {
  background: #0f172a; color: #e2e8f0; border-radius: var(--r); padding: 14px 16px;
  font-size: 12px; line-height: 1.75; overflow-x: auto; margin: 0;
}
pre.code .k { color: #93c5fd; } pre.code .s { color: #86efac; } pre.code .c { color: #64748b; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .main-nav { display: none; }
  .hero h1 { font-size: 32px; }
  .hero .stats { grid-template-columns: repeat(2, 1fr); }
  .feat-grid, .steps { grid-template-columns: 1fr 1fr; }
  .band { padding: 44px 0; }
}
@media (max-width: 560px) {
  .feat-grid, .steps, .hero .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
