@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(/vp/inter.woff2) format('woff2')}
/* Veilo V1.0 原型 · 设计系统 v3
   VOICE  工作型：专业数据工具，像研究台，不像广告页
   IDEA   继承线上 Reddit 数据站（reddit.veilo.dev）的令牌与侧栏外壳：三站合并后同一套视觉
   PICTURE 每页的主图都是真实产品结果（赛道简报图、排名走势、收件箱），不放口号插画
   COLOUR 冷白底 + 近黑字 + 唯一强调色 Radix indigo；信号色（痛点红/求方案蓝/付费绿/找替代紫/预警橙）只用于标签与数据
   TYPE   Inter（拉丁）+ 系统黑体；表格列用等宽数字
   LAYOUT 应用页：232px 侧栏 + 52px 顶栏 + 内容区；营销页：顶部导航 + 左文右数据面板；<960 侧栏收为抽屉，<640 单列 */


:root {
  color-scheme: light;
  --bg: oklch(0.985 0.002 264);
  --sidebar: oklch(0.968 0.003 264);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.97 0.003 264);
  --surface-3: oklch(0.945 0.004 264);
  --fg: oklch(0.21 0.01 264);
  --fg-muted: oklch(0.47 0.012 264);
  --fg-subtle: oklch(0.56 0.012 264);
  --border: oklch(0.91 0.005 264);
  --border-strong: oklch(0.84 0.007 264);
  --accent: oklch(0.52 0.2 268);
  --accent-hover: oklch(0.46 0.2 268);
  --accent-fg: oklch(0.99 0 0);
  --accent-soft: oklch(0.955 0.025 268);
  --accent-subtle: oklch(0.975 0.012 268);
  --accent-text: oklch(0.42 0.18 268);
  --red: oklch(0.49 0.18 25);
  --red-soft: oklch(0.96 0.025 20);
  --blue: oklch(0.47 0.15 250);
  --blue-soft: oklch(0.96 0.02 245);
  --green: oklch(0.46 0.12 155);
  --green-soft: oklch(0.96 0.03 155);
  --violet: oklch(0.47 0.18 300);
  --violet-soft: oklch(0.96 0.025 300);
  --orange: oklch(0.5 0.14 50);
  --orange-soft: oklch(0.965 0.03 70);
  --st-good: #0aac23;
  --st-warn: #f2a600;
  --st-bad: #dc3c3d;
  --chart-lead: oklch(0.52 0.2 268);
  --chart-quiet: oklch(0.72 0.01 264);
  --chart-grid: oklch(0.93 0.004 264);
  --shadow-card: 0 0 0 1px oklch(0.2 0.02 264 / 0.07), 0 1px 2px oklch(0.2 0.02 264 / 0.06);
  --shadow-hover: 0 0 0 1px oklch(0.2 0.02 264 / 0.09), 0 4px 12px -2px oklch(0.2 0.02 264 / 0.1);
  --shadow-overlay: 0 12px 32px -8px oklch(0.2 0.02 264 / 0.25), 0 2px 6px oklch(0.2 0.02 264 / 0.12);
  --font: 'Inter', 'Inter Variable', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei UI', 'Noto Sans SC', system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo, Consolas, monospace;
  --r: 8px;
  --r-sm: 6px;
  --r-lg: 12px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(0.17 0.006 264);
  --sidebar: oklch(0.15 0.006 264);
  --surface: oklch(0.205 0.007 264);
  --surface-2: oklch(0.235 0.008 264);
  --surface-3: oklch(0.27 0.009 264);
  --fg: oklch(0.95 0.004 264);
  --fg-muted: oklch(0.74 0.01 264);
  --fg-subtle: oklch(0.64 0.012 264);
  --border: oklch(0.29 0.009 264);
  --border-strong: oklch(0.36 0.01 264);
  --accent: oklch(0.62 0.18 268);
  --accent-hover: oklch(0.68 0.17 268);
  --accent-soft: oklch(0.3 0.07 268);
  --accent-subtle: oklch(0.24 0.04 268);
  --accent-text: oklch(0.8 0.11 268);
  --red: oklch(0.72 0.15 25);
  --red-soft: oklch(0.3 0.06 25);
  --blue: oklch(0.74 0.12 245);
  --blue-soft: oklch(0.29 0.05 245);
  --green: oklch(0.74 0.13 155);
  --green-soft: oklch(0.29 0.05 155);
  --violet: oklch(0.75 0.13 300);
  --violet-soft: oklch(0.3 0.06 300);
  --orange: oklch(0.78 0.13 60);
  --orange-soft: oklch(0.31 0.05 60);
  --chart-lead: oklch(0.68 0.17 268);
  --chart-quiet: oklch(0.5 0.012 264);
  --chart-grid: oklch(0.27 0.008 264);
  --shadow-card: 0 0 0 1px oklch(1 0 0 / 0.06);
  --shadow-hover: 0 0 0 1px oklch(1 0 0 / 0.1), 0 4px 14px -4px oklch(0 0 0 / 0.5);
  --shadow-overlay: 0 16px 40px -8px oklch(0 0 0 / 0.6), 0 0 0 1px oklch(1 0 0 / 0.08);
}

* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.015em; line-height: 1.25; font-weight: 600; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- utilities (sizes ≥ 12px) ---------- */
.small { font-size: 13px; }
.xs { font-size: 12px; }
.muted { color: var(--fg-muted); }
.dim { color: var(--fg-subtle); }
.strong { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.grow { flex: 1 1 auto; }
.hide { display: none !important; }
.t-emerald { color: var(--green); }
.t-rose { color: var(--red); }
.t-amber { color: var(--orange); }
.t-accent { color: var(--accent-text); }
.link { color: var(--accent-text); text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--accent-text) 35%, transparent); text-underline-offset: 2px; }
.link:hover { text-decoration-color: currentColor; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.grid { display: grid; gap: 16px; }
.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)); }
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li + li { margin-top: 6px; }
.list-check li, .list-cross li { display: flex; gap: 8px; align-items: flex-start; }
.list-check li::before { content: ''; flex: none; width: 14px; height: 14px; margin-top: 3px; background: var(--green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.list-cross li { color: var(--fg-subtle); }
.list-cross li::before { content: '–'; flex: none; width: 14px; text-align: center; }
.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.i-sm { width: 14px; height: 14px; }
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); font: 500 11px/1 var(--font); color: var(--fg-muted); }

/* ---------- containers ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.page { padding-top: 28px; padding-bottom: 56px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--fg); font-weight: 500; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(0.5px); }
.btn-primary, .btn-emerald { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-primary:hover, .btn-emerald:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--fg-muted); }
.btn-ghost:hover { background: var(--surface-3); color: var(--fg); }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-soft); border-color: color-mix(in oklch, var(--red) 35%, transparent); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 14.5px; border-radius: var(--r); }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.active { background: var(--accent-soft); border-color: color-mix(in oklch, var(--accent) 40%, transparent); color: var(--accent-text); }
.x-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--fg-subtle); cursor: pointer; font-size: 14px; }
.x-btn:hover { background: var(--surface-3); color: var(--fg); }

/* ---------- badges / tags / dots ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--surface-3); color: var(--fg-muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge-emerald { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--orange-soft); color: var(--orange); }
.badge-sky { background: var(--blue-soft); color: var(--blue); }
.badge-rose { background: var(--red-soft); color: var(--red); }
.badge-primary { background: var(--accent-soft); color: var(--accent-text); }
.badge-violet { background: var(--violet-soft); color: var(--violet); }
.badge-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 4px; background: var(--surface-3); color: var(--fg-muted); font-size: 12px; font-weight: 500; }
.sig { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--fg-muted); }
.sig::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.sig-pain { color: var(--red); } .sig-ask { color: var(--blue); } .sig-pay { color: var(--green); } .sig-alt { color: var(--violet); } .sig-feat { color: var(--orange); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--fg-subtle); }
.dot-green { background: var(--st-good); } .dot-yellow { background: var(--st-warn); } .dot-red { background: var(--st-bad); }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- cards / panels ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 20px; }
.card.pad-0 { padding: 0; }
.card-flat { background: var(--surface-2); border-radius: var(--r); padding: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 14px; font-weight: 600; }
.card-sub { font-size: 12.5px; color: var(--fg-subtle); margin-top: 2px; }
.card.hoverable:hover { box-shadow: var(--shadow-hover); }
.quote { border-left: 2px solid var(--border-strong); padding: 6px 12px; color: var(--fg-muted); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.quote.sky { border-left-color: var(--blue); }
.quote.rose { border-left-color: var(--red); }

/* ---------- notices ---------- */
.notice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--r); background: var(--surface-2); color: var(--fg); font-size: 13px; box-shadow: inset 0 0 0 1px var(--border); }
.notice-info { background: var(--accent-subtle); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 22%, transparent); }
.notice-warn { background: var(--orange-soft); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--orange) 25%, transparent); }
.notice-success { background: var(--green-soft); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--green) 25%, transparent); }
.notice-danger { background: var(--red-soft); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--red) 25%, transparent); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; }
.help { font-size: 12px; color: var(--fg-subtle); }
.err { font-size: 12px; color: var(--red); }
.input, .select, .textarea { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--fg); font: 14px var(--font); }
.textarea { height: auto; min-height: 140px; padding: 10px 12px; line-height: 1.55; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[disabled] { background: var(--surface-2); color: var(--fg-muted); }
.switch { position: relative; display: inline-block; width: 32px; height: 18px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--border-strong); transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .2); transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(14px); }
label.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }

/* ---------- segmented / tabs ---------- */
.seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: var(--r-sm); background: var(--surface-3); }
.seg button { height: 26px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: var(--fg-muted); font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--fg); }
.seg button.active { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-card); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 0; background: transparent; color: var(--fg-muted); font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); }
.tab.active::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); color: var(--fg-muted); font-weight: 500; font-size: 12px; text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl .r, .tbl th.r { text-align: right; }
.tbl td.num, .tbl .num { font-variant-numeric: tabular-nums; }
.tbl .group td { background: var(--surface-2); color: var(--fg-subtle); font-size: 12px; padding: 6px 12px; }
.app-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 8px; color: #fff; font-weight: 600; font-size: 13px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.app-cell { display: flex; align-items: center; gap: 10px; }
.delta-up { color: var(--accent-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.delta-bad { color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; }
.delta-flat { color: var(--fg-subtle); font-variant-numeric: tabular-nums; }

/* ---------- stats / charts ---------- */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-label, .kpi-label { font-size: 12.5px; color: var(--fg-muted); }
.stat-val, .kpi-val { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.stat-sub, .kpi-sub { font-size: 12px; color: var(--fg-subtle); }
.kpi { display: flex; flex-direction: column; gap: 2px; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.stat-row > .stat { padding: 16px 18px; }
.stat-row > .stat + .stat { border-left: 1px solid var(--border); }
.stat .spark { margin-top: 6px; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart .tick { fill: var(--fg-subtle); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.chart .ln { fill: none; stroke: var(--chart-quiet); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ln.lead { stroke: var(--chart-lead); }
.chart .area { fill: var(--chart-quiet); opacity: .08; }
.chart .area.lead { fill: var(--chart-lead); opacity: .1; }
.chart .end { fill: var(--chart-quiet); stroke: var(--surface); stroke-width: 2; }
.chart .end.lead { fill: var(--chart-lead); }
.chart .end-label { fill: var(--fg-muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.chart .end-label.lead { fill: var(--fg); }
.chart .note { fill: var(--fg-muted); font-size: 12px; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.chart .leader { stroke: var(--border-strong); stroke-width: 1; }
.chart .cross { stroke: var(--border-strong); stroke-width: 1; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow-overlay); font-size: 12px; }
.chart-tip .tip-h { color: var(--fg-subtle); margin-bottom: 4px; }
.chart-tip .tip-r { display: flex; align-items: center; gap: 6px; }
.chart-tip .tip-r b { margin-left: auto; font-variant-numeric: tabular-nums; }
.key { display: inline-block; width: 12px; height: 2px; border-radius: 2px; background: var(--chart-quiet); }
.key.lead { background: var(--chart-lead); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--fg-muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.spark path { fill: none; stroke: var(--chart-lead); stroke-width: 1.5; stroke-linejoin: round; }
.spark circle { fill: var(--chart-lead); }
.spark.quiet path { stroke: var(--chart-quiet); } .spark.quiet circle { fill: var(--chart-quiet); }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr) auto; align-items: center; gap: 10px; font-size: 13px; }
.hbar-track { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.hbar { display: block; height: 100%; border-radius: 4px; background: var(--chart-quiet); }
.hbar.lead { background: var(--chart-lead); }
.hbar-val { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 2.5em; text-align: right; }
.meter { height: 6px; border-radius: 3px; background: var(--accent-soft); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.progress { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.progress > span, .progress > div { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.score { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-weight: 600; }
.score .meter { width: 56px; }

/* ---------- timeline / stepper / stages ---------- */
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--border-strong); }
.tl-item { position: relative; padding-bottom: 14px; }
.tl-item::before { content: ''; position: absolute; left: -18px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent); }
.tl-date { font-size: 12px; color: var(--fg-subtle); font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.step { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-subtle); }
.step .n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); font-size: 12px; font-weight: 600; }
.step.active { color: var(--fg); font-weight: 500; }
.step.active .n { background: var(--accent); color: var(--accent-fg); }
.step.done .n { background: var(--accent-soft); color: var(--accent-text); }
.step-sep { width: 24px; height: 1px; background: var(--border-strong); }
.stage { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 18px; }
.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.stage-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.stage-n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 600; }
.skeleton { height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
.skeleton + .skeleton { margin-top: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.caret::after { content: '▍'; color: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fade-in { animation: fi .25s ease both; }
@keyframes fi { from { opacity: 0; transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .skeleton, .caret::after, .fade-in { animation: none; } }

/* ---------- gating ---------- */
.locked-wrap { position: relative; }
.blurred { filter: blur(5px); user-select: none; pointer-events: none; opacity: .7; }
.lock-panel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: linear-gradient(to bottom, color-mix(in oklch, var(--bg) 20%, transparent), color-mix(in oklch, var(--bg) 85%, transparent) 40%); }
.lock-card { max-width: 420px; text-align: center; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-overlay); padding: 22px; }
.lock-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.fade-rows { position: relative; }
.fade-rows::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to bottom, transparent, var(--surface)); pointer-events: none; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; display: none; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; background: oklch(0.2 0.02 264 / 0.35); backdrop-filter: blur(2px); overflow-y: auto; }
.overlay.open { display: flex; }
.modal { width: 100%; max-width: 480px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-overlay); animation: fi .18s ease both; }
.modal.wide { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.scrim { position: fixed; inset: 0; z-index: 70; background: oklch(0.2 0.02 264 / 0.3); opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 75; width: min(460px, 100vw); background: var(--surface); box-shadow: var(--shadow-overlay); transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-body { padding: 18px; overflow-y: auto; }
.toast { position: fixed; left: 50%; bottom: 64px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: var(--r); background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-overlay); transition: all .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { background: var(--orange); color: #fff; }
.popover { position: absolute; z-index: 60; min-width: 220px; padding: 6px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-overlay); }
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; border: 0; border-radius: 5px; background: transparent; font-size: 13px; text-align: left; cursor: pointer; }
.menu-item:hover, .menu-item.sel { background: var(--surface-3); }

/* ---------- marketing top nav & footer ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in oklch, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; letter-spacing: -0.01em; }
.brand-logo { display: inline-flex; width: 24px; height: 24px; flex: none; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 6px 10px; border-radius: var(--r-sm); color: var(--fg-muted); font-size: 13.5px; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--fg); }
.nav a.active { background: var(--surface-3); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--fg-muted); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer h4 { font-size: 13px; color: var(--fg); margin-bottom: 8px; }
.footer a { display: block; padding: 3px 0; }
.footer a:hover { color: var(--fg); }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--sidebar) 231px, var(--border) 231px, var(--border) 232px, transparent 232px); }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--border); padding: 12px 10px; overflow-y: auto; }
.side-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 12px; font-weight: 650; font-size: 15px; }
.proj-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 0; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow-card); cursor: pointer; text-align: left; }
.proj-btn:hover { box-shadow: var(--shadow-hover); }
.proj-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 700; }
.side-group { margin-top: 18px; }
.side-label { padding: 0 8px 4px; font-size: 11.5px; font-weight: 500; color: var(--fg-subtle); }
.side a.nav-i { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 8px; border-radius: var(--r-sm); color: var(--fg-muted); font-size: 13.5px; font-weight: 500; }
.side a.nav-i:hover { background: var(--surface-3); color: var(--fg); }
.side a.nav-i.active { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-card); }
.side a.nav-i.active .i { color: var(--accent-text); }
.side a.nav-i .count { margin-left: auto; }
.side a.nav-i .badge { margin-left: auto; height: 18px; font-size: 11px; padding: 0 6px; }
.side-foot { margin-top: auto; padding-top: 14px; }
.plan-box { padding: 12px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-card); font-size: 12.5px; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 24px; background: color-mix(in oklch, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-subtle); white-space: nowrap; overflow: hidden; }
.crumbs b { color: var(--fg); font-weight: 500; }
.search-trigger { display: flex; align-items: center; gap: 8px; width: min(340px, 34vw); height: 32px; margin-left: auto; padding: 0 8px 0 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); color: var(--fg-subtle); font-size: 13px; cursor: pointer; }
.search-trigger .kbd { margin-left: auto; }
.fresh-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--fg-muted); font-size: 12px; white-space: nowrap; cursor: pointer; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--fg-muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface-3); color: var(--fg); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 600; }
.plan-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--surface-3); color: var(--fg-muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.plan-pill.trial { background: var(--orange-soft); color: var(--orange); }
.plan-pill.pro { background: var(--accent-soft); color: var(--accent-text); }
.content { width: 100%; max-width: 1320px; padding: 24px 32px 56px; }
.content .container { max-width: none; padding: 0; }
.content .page { padding-top: 0; padding-bottom: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 22px; }
.page-head .sub { margin-top: 4px; color: var(--fg-muted); font-size: 13.5px; max-width: 760px; }
.eyebrow { font-size: 12.5px; color: var(--fg-subtle); margin-bottom: 4px; }
.side-scrim { display: none; }

/* ---------- landing ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 48px; align-items: start; }
.hero h1 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
.hero .lede { margin-top: 16px; font-size: 16.5px; line-height: 1.6; color: var(--fg-muted); max-width: 540px; }
.search-box { display: flex; gap: 8px; margin-top: 24px; padding: 6px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-card), 0 8px 24px -12px oklch(0.2 0.02 264 / 0.18); }
.search-box .input { border: 0; height: 40px; font-size: 15px; box-shadow: none; background: transparent; }
.search-box .input:focus { box-shadow: none; }
.capsules { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--fg-muted); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.chip:hover { color: var(--fg); border-color: var(--border-strong); }
.chip.active { color: var(--accent-text); border-color: color-mix(in oklch, var(--accent) 45%, transparent); background: var(--accent-subtle); }
.brief { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card), 0 24px 48px -28px oklch(0.2 0.02 264 / 0.25); overflow: hidden; }
.brief-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.brief-body { padding: 16px 18px; }
.brief-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.brief-foot { padding: 10px 18px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 12px; color: var(--fg-subtle); }
.cov { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cov > div { padding: 18px 20px; }
.cov > div + div { border-left: 1px solid var(--border); }
.cov .v { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.job { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; padding: 40px 0; }
.job + .job { border-top: 1px solid var(--border); }
.job h2 { font-size: 24px; letter-spacing: -0.02em; }
.job p { color: var(--fg-muted); font-size: 15px; margin-top: 10px; }
.sec-title { font-size: 26px; letter-spacing: -0.02em; font-weight: 650; }
.sec-sub { margin-top: 8px; color: var(--fg-muted); font-size: 15px; max-width: 640px; }
.post { padding: 12px 14px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-card); }
.post-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--fg-subtle); }
.post-title { margin-top: 4px; font-weight: 600; font-size: 13.5px; line-height: 1.4; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 22px; }
.plan.hl { box-shadow: 0 0 0 2px var(--accent), var(--shadow-hover); }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.price .amt { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--fg-subtle); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 8px; color: var(--fg-muted); }

/* ---------- inbox ---------- */
.split { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.lead-item { padding: 12px 14px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-card); cursor: pointer; }
.lead-item + .lead-item { margin-top: 8px; }
.lead-item:hover { box-shadow: var(--shadow-hover); }
.lead-item.active { box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-card); }
.lead-item.done { opacity: .6; }

/* ---------- dev console & annotations (Chinese, prototype only) ---------- */
.proto-strip { display: none; }
.dev-fab { position: fixed; right: 14px; bottom: 14px; z-index: 90; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid #e3b341; border-radius: 999px; background: #fff8e1; color: #6b4e00; font-size: 12.5px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px -4px rgb(0 0 0 / .25); }
.dev-panel { position: fixed; right: 14px; bottom: 54px; z-index: 90; width: min(360px, calc(100vw - 28px)); max-height: 72vh; overflow-y: auto; padding: 14px; border: 1px solid #e3b341; border-radius: 12px; background: #fffdf5; color: #3d2f00; font-size: 13px; box-shadow: 0 16px 40px -12px rgb(0 0 0 / .35); display: none; }
.dev-panel.open { display: block; }
.dev-panel h4 { margin: 12px 0 6px; font-size: 12px; color: #8a6a00; }
.dev-panel .btn { height: 26px; font-size: 12px; background: #fff; color: #3d2f00; border-color: #e8d49a; }
.dev-panel .btn.active { background: #ffe9a8; border-color: #e3b341; color: #3d2f00; }
.dev-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; }
.note-pin { position: absolute; z-index: 85; display: none; width: 20px; height: 20px; border-radius: 50%; background: #f2a600; color: #241a00; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; cursor: pointer; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgb(0 0 0 / .3); }
body.show-notes .note-pin { display: block; }
body.show-notes [data-note] { outline: 1px dashed #e3b341; outline-offset: 3px; }
.note-pop { position: absolute; z-index: 96; padding: 10px 12px; border: 1px solid #e3b341; border-radius: 8px; background: #fffdf5; color: #3d2f00; font-size: 12.5px; line-height: 1.6; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .35); }
.note-pop .tc { font-family: var(--mono); font-size: 11.5px; color: #8a6a00; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid-4, .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row > .stat:nth-child(3) { border-left: 0; }
  .stat-row > .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .job { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .split { grid-template-columns: 300px minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); background: none; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 72; width: 260px; transform: translateX(-100%); transition: transform .2s ease; }
  .side.open { transform: none; box-shadow: var(--shadow-overlay); }
  .side-scrim.open { display: block; position: fixed; inset: 0; z-index: 71; background: oklch(0.2 0.02 264 / 0.3); }
  .menu-btn { display: inline-flex; }
  .search-trigger { width: auto; }
  .search-trigger .lbl, .search-trigger .kbd { display: none; }
  .content { padding: 20px 20px 48px; }
  .appbar { padding: 0 14px; }
  .nav { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 8px 16px 12px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-overlay); }
  .nav.open { display: flex; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .cov { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cov > div:nth-child(3) { border-left: 0; }
  .cov > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fresh-pill .lbl { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .brief-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat-val, .kpi-val { font-size: 20px; }
  .content { padding: 16px 16px 48px; }
  .hero { padding: 32px 0 24px; }
  .hide-sm, .crumbs .hide-sm { display: none !important; }
  .tbl { font-size: 12.5px; }
  .tbl th, .tbl td { padding: 8px; }
  .tbl .hide-sm { display: none; }
  .page-head h1 { font-size: 20px; }
  .modal-body, .modal-head, .modal-foot { padding-left: 14px; padding-right: 14px; }
  .dev-fab .t { display: none; }
  .hbar-row { grid-template-columns: minmax(0, 1fr) auto; }
  .hbar-row .hbar-track { grid-column: 1 / -1; grid-row: 2; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
.tag button { border: 0; background: none; color: var(--fg-subtle); font-size: 11px; padding: 0 0 0 4px; cursor: default; }
.app-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.tab.locked { opacity: .55; }
.tabs { margin-bottom: 16px; }
.footer a.brand { display: inline-flex; }
@media (max-width: 640px) { #hero-points { display: none; } .hero .lede { font-size: 15px; } }

/* ================= v4：套件外壳、语言、Ask、密度、数据类型徽标、门控行 ================= */
.side-nav { display: flex; flex-direction: column; }
.side-group { margin-top: 12px; }
.side-label { display: flex; width: 100%; align-items: center; justify-content: space-between; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; }
.side-label .i-xs { width: 12px; height: 12px; opacity: 0; transition: opacity .15s; }
.side-label:hover .i-xs { opacity: .7; }
.side-group:not(.open) .side-items { display: none; }
.side-group:not(.open) .side-label { color: var(--fg-muted); }
.side-items { display: flex; flex-direction: column; gap: 1px; }
.lang-btn { width: auto; padding: 0 8px; gap: 4px; }
.lang-btn .lbl { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.ask-btn { gap: 6px; border-color: color-mix(in oklch, var(--accent) 35%, var(--border)); color: var(--accent-text); background: var(--accent-soft, var(--surface)); }
.ask-q { padding: 10px 12px; border-radius: var(--r-md, 8px); background: var(--surface-2); font-weight: 500; }
.ask-a p { line-height: 1.6; }
.cite { font-size: 11px; font-weight: 600; vertical-align: super; margin-left: 1px; color: var(--accent-text); }
.more-rows { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--fg-muted); background: var(--surface-2); }
.dtype { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; border: 1px solid var(--border); color: var(--fg-muted); background: var(--surface); }
.dtype.dt-obs { color: var(--st-good, var(--green)); border-color: color-mix(in oklch, var(--green) 35%, var(--border)); }
.dtype.dt-pro, .dtype.dt-tier { color: var(--blue); border-color: color-mix(in oklch, var(--blue) 35%, var(--border)); }
.dtype.dt-mod { color: var(--violet); border-color: color-mix(in oklch, var(--violet) 35%, var(--border)); }
.dtype.dt-der { color: var(--fg-muted); }
.num, .tbl td.r { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12.5px; }
:root[data-density="compact"] .tbl td { padding-top: 6px; padding-bottom: 6px; }
:root[data-density="compact"] .tbl th { padding-top: 7px; padding-bottom: 7px; }
:root[data-density="compact"] .card { padding: 14px 16px; }
/* 页面内二级页签条 + 筛选栏（专业工具常用） */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-lg, 10px); background: var(--surface); margin-bottom: 12px; }
.filterbar .lbl { font-size: 11.5px; color: var(--fg-subtle); font-weight: 500; margin-right: 2px; }
.filterbar .sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--fg-muted); }
.kv dd { margin: 0; font-weight: 500; }
.heat { display: grid; gap: 2px; }
.heat span { display: block; height: 14px; border-radius: 2px; background: var(--accent); }
.entity-head { display: flex; align-items: flex-start; gap: 14px; }
.entity-head .app-icon { width: 52px; height: 52px; font-size: 22px; border-radius: 12px; }
.src-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--border); color: var(--fg-muted); }
.src-pill b { color: var(--fg); font-variant-numeric: tabular-nums; }

/* ---- 原型 index.html / pricing.html 页内样式 ---- */
.suite { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .suite { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .suite { grid-template-columns: minmax(0, 1fr); } }
.suite-tile { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s; }
.suite-tile:hover { border-color: var(--accent); }
.suite-tile.wide { grid-column: span 2; }
@media (max-width: 600px) { .suite-tile.wide { grid-column: auto; } }
.suite-thumb { height: 128px; background: var(--surface-2); border-bottom: 1px solid var(--border); padding: 12px; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.suite-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.suite-body .mods { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.suite-body .mods span { font-size: 11.5px; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--fg-muted); }
.th-row { display: flex; align-items: center; gap: 8px; height: 18px; font-size: 11px; color: var(--fg-muted); }
.th-bar { height: 6px; border-radius: 3px; background: var(--accent); opacity: .75; }
.th-ghost { height: 6px; border-radius: 3px; background: var(--border-strong, var(--border)); }
.th-mono { font-family: var(--font-mono, ui-monospace, monospace); font-size: 10.5px; color: var(--fg-muted); line-height: 1.55; white-space: pre; }
.plans4m { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .plans4m { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans4m { grid-template-columns: minmax(0, 1fr); } }
.plans4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1180px) { .plans4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans4 { grid-template-columns: minmax(0, 1fr); } }
.p4 { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-lg, 10px); background: var(--surface); box-shadow: var(--shadow-card); }
.p4.hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-card); }
.p4 .amt { font-size: 34px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.p4 ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.p4 li { display: flex; gap: 8px; align-items: flex-start; }
.p4 li .i { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--accent-text); }
.p4 .local { font-size: 12px; color: var(--fg-subtle); min-height: 17px; }
.cover { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .cover { grid-template-columns: minmax(0, 1fr); } }
.cover .card .big { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tbl td.grp { background: var(--surface-2); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-subtle); }
.tbl td.c { text-align: center; }
.tbl th.c { text-align: center; }

/* ---- 公开站补充（服务端渲染特有） ---- */
.lang-dd { position: relative; }
.lang-dd > summary { list-style: none; cursor: pointer; gap: 4px; width: auto; padding: 0 8px; }
.lang-dd > summary::-webkit-details-marker { display: none; }
.lang-dd .lbl { font-size: 12px; font-weight: 600; }
.lang-pop { right: 0; top: calc(100% + 6px); }
.lang-pop .menu-item { color: var(--fg); text-decoration: none; }
.rev { font-variant-numeric: tabular-nums; white-space: nowrap; }
.legal h2 { font-size: 17px; margin: 28px 0 8px; }
.legal p { color: var(--fg); line-height: 1.65; margin: 8px 0; }
.legal-list { margin: 8px 0; padding-left: 20px; line-height: 1.65; }
.legal-list li { margin: 4px 0; }
.legal .table-wrap { overflow-x: auto; }
.legal .tbl td { vertical-align: top; }
.legal code { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12.5px; }
.tabs .tab { text-decoration: none; }
.vp-scrim { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; background: oklch(0.2 0.01 264 / 0.45); }
.locked { position: relative; }
@media (max-width: 640px) { .lang-dd .lbl { display: none; } }
[hidden] { display: none !important; }
@media (min-width: 961px) { .nav-actions .menu-btn { display: none !important; } }
.legal p a, .legal li a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.search-box .input { min-width: 0; flex: 1 1 auto; }
.search-box .btn { flex: none; white-space: nowrap; }
