/* =========================================================================
   Code Manager 项目主页样式
   设计取向：克制、专业、贴合应用「均衡管理台」气质；零构建、纯手写 CSS。
   主题：浅色为默认，深色通过 [data-theme="dark"] 切换，令牌全部走 CSS 变量。
   双语：仅靠 [data-lang] + html[lang] 选择器切换，无需 JS 字典。
   ========================================================================= */

/* ---- 设计令牌：浅色 ---- */
:root {
  --bg: #fbfcfe;
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --surface-3: #eef1f6;
  --border: #e4e8ef;
  --border-strong: #d4dae3;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-ring: rgba(37, 99, 235, 0.35);
  --good: #15803d;
  --good-soft: rgba(21, 128, 61, 0.10);
  --warn: #b45309;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 60px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, Helvetica,
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* ---- 设计令牌：深色 ---- */
[data-theme="dark"] {
  --bg: #0b0f17;
  --surface: #0f1520;
  --surface-2: #141b27;
  --surface-3: #1a2330;
  --border: #222c3a;
  --border-strong: #2c3848;
  --text: #e6edf6;
  --text-soft: #c2cdda;
  --muted: #8b9bb0;
  --accent: #5b9bff;
  --accent-strong: #4f8cff;
  --accent-contrast: #08111f;
  --accent-soft: rgba(91, 155, 255, 0.12);
  --accent-ring: rgba(91, 155, 255, 0.40);
  --good: #4ade80;
  --good-soft: rgba(74, 222, 128, 0.12);
  --warn: #fbbf24;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 26px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.55);
}

/* ---- 基础重置 ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--text); margin: 0; }
p { margin: 0; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: 0.9em; }

/* ---- 双语显隐 ----
   只隐藏「非当前语言」的元素，绝不改写当前语言元素的 display；
   这样无论元素本身是 inline / inline-block / block / table-cell，
   切换语言时都不会错位，也不会和元素自带 class 的 display 打架。 */
html:not([lang="zh"]) [data-lang="zh"],
html:not([lang="en"]) [data-lang="en"] { display: none !important; }

/* ---- 布局容器 ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 72px; }
.section--tight { padding-block: 56px; }
.section--alt { background: var(--surface-2); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.01em; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ---- 顶部导航 ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 16px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 6px; margin-left: 8px; }
.nav-links a {
  color: var(--text-soft);
  font-size: 14.5px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current] { color: var(--accent); background: var(--accent-soft); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  min-width: 36px;
  padding-inline: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---- 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-contrast); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 9px; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding-block: 88px 64px; }
.hero::before {
  /* 顶部柔光背景，克制不喧宾夺主 */
  content: "";
  position: absolute;
  inset: -200px 0 auto 0;
  height: 520px;
  background: radial-gradient(60% 100% at 50% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead { margin-top: 20px; font-size: 18.5px; color: var(--text-soft); max-width: 34em; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: center; color: var(--muted); font-size: 13.5px; }
.hero-meta .os { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text-soft); }
.hero-meta .os svg { width: 15px; height: 15px; }

/* Hero 右侧：模拟应用窗口 */
.window {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.window-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.window-bar .dot.r { background: #ff5f57; }
.window-bar .dot.y { background: #febc2e; }
.window-bar .dot.g { background: #28c840; }
.window-bar .title { margin-left: 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.window-body { display: grid; grid-template-columns: 132px 1fr; min-height: 318px; }
.window-side { background: var(--surface-2); border-right: 1px solid var(--border); padding: 12px 10px; display: flex; flex-direction: column; gap: 3px; }
.window-side .item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px; border-radius: 8px;
  font-size: 12.5px; color: var(--muted); font-weight: 600;
}
.window-side .item .ico { width: 14px; height: 14px; border-radius: 4px; background: var(--surface-3); flex: none; }
.window-side .item.active { background: var(--accent-soft); color: var(--accent); }
.window-side .item.active .ico { background: var(--accent); }
.window-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 12px; background: var(--surface);
}
.kpi .label { font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi .value { font-size: 19px; font-weight: 800; margin-top: 4px; letter-spacing: -0.02em; }
.kpi .value.accent { color: var(--accent); }
.kpi .value.good { color: var(--good); }
.chart {
  flex: 1;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface);
  padding: 12px; display: flex; align-items: flex-end; gap: 7px;
}
.chart .bar { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent)); opacity: .85; }

/* ---- 通用卡片网格 ---- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card .card-ico {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 14px;
}
.card .card-ico svg { width: 20px; height: 20px; }
.card h3 { font-size: 16.5px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* ---- 解决的问题：要点列表 ---- */
.pain-list { display: grid; gap: 12px; }
.pain-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface);
  color: var(--text-soft); font-size: 15px;
}
.pain-list li .x { color: var(--warn); flex: none; margin-top: 2px; font-weight: 800; }

/* ---- 价值矩阵（#why）：3 列价值角度 × 痛点/能力/收益 三段 ---- */
.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.matrix-col {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm);
}
.matrix-col-head {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 18px; font-weight: 700; font-size: 15.5px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
/* 通用编号 chip：矩阵列头与功能域共用 */
.num {
  flex: none; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-contrast);
  font-size: 13px; font-weight: 800;
}
.matrix-cell { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.matrix-col .matrix-cell:last-child { border-bottom: none; }
.cell-tag {
  display: inline-block; margin-bottom: 9px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.matrix-cell ul { display: grid; gap: 7px; }
.matrix-cell li {
  position: relative; padding-left: 20px;
  font-size: 14px; line-height: 1.5; color: var(--text-soft);
}
.matrix-cell li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
/* 痛点 ✗ → warn；能力 ● → accent；收益 ✓ → good，与页面克制配色一致 */
.cell--pain { background: color-mix(in srgb, var(--warn) 5%, var(--surface)); }
.cell--pain .cell-tag { color: var(--warn); }
.cell--pain li::before { content: "✗"; color: var(--warn); }
.cell--cap .cell-tag { color: var(--accent); }
.cell--cap li::before { content: "●"; color: var(--accent); font-size: 9px; top: 4px; }
.cell--gain { background: color-mix(in srgb, var(--good) 5%, var(--surface)); }
.cell--gain .cell-tag { color: var(--good); }
.cell--gain li::before { content: "✓"; color: var(--good); }

/* ---- 三大功能域（#features）：去重的功能分组带 ---- */
.domains-head {
  text-align: center; margin: 40px 0 16px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.domains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.domain {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 20px; box-shadow: var(--shadow-sm);
}
.domain header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; font-size: 15.5px; }
.domain-mods { display: flex; flex-wrap: wrap; gap: 8px; }
.domain-mods .mod {
  display: inline-flex; align-items: center; padding: 6px 11px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-2); color: var(--text-soft); font-size: 13px; font-weight: 600;
}

/* ---- 4 层架构（#how）：前端 → IPC → 后端 → 数据源 ---- */
.arch { display: grid; max-width: 960px; margin-inline: auto; }
.arch-layer {
  display: grid; grid-template-columns: 92px 1fr;
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius); background: var(--surface);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.arch-label {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 14px 10px; background: var(--surface-2); border-right: 1px solid var(--border);
  font-weight: 700; font-size: 14px;
}
.arch-body { padding: 14px 16px; }
.arch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.arch-chip {
  display: inline-flex; align-items: center; padding: 6px 11px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-2); color: var(--text-soft); font-size: 13px; font-weight: 600;
}
.arch-chip.mono { font-family: var(--mono); font-size: 12.5px; }
.arch-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.arch-link { text-align: center; padding: 9px 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.arch-link::before { content: "↓"; display: block; margin-bottom: 1px; color: var(--accent); font-size: 16px; line-height: 1; }

/* ---- 对比 cc-switch ---- */
.vs-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 34px; }
.vs-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.vs-card.ours { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft), var(--shadow-sm); }
.vs-card h3 { font-size: 17px; display: flex; align-items: center; gap: 9px; }
.vs-card .tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.vs-card .tag.neutral { background: var(--surface-3); color: var(--muted); }
.vs-card p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table-scroll { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
table.cmp th, table.cmp td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.cmp thead th { background: var(--surface-2); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; position: sticky; top: 0; }
table.cmp thead th.col-ours { color: var(--accent); }
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp tbody tr:hover { background: var(--surface-2); }
table.cmp td.dim { font-weight: 700; color: var(--text); width: 22%; }
table.cmp td.col-ours { color: var(--text-soft); background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
table.cmp .yes { color: var(--good); font-weight: 700; }
table.cmp .no { color: var(--muted); }
.vs-note { margin-top: 22px; padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 11px 11px 0; color: var(--text-soft); font-size: 14.5px; }

/* ---- 使用步骤 ---- */
.steps { counter-reset: step; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 20px 18px 62px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 18px; top: 16px;
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-contrast);
  font-weight: 800; font-size: 14px;
}
.steps li h4 { font-size: 15.5px; }
.steps li p { margin-top: 5px; color: var(--muted); font-size: 14px; }
.steps li code { background: var(--surface-3); padding: 1px 6px; border-radius: 5px; }

.codeblock {
  position: relative; text-align: left;
  margin-top: 16px;
  background: #0c1320; color: #d6e2f0;
  border: 1px solid var(--border-strong); border-radius: 11px;
  padding: 14px 16px; font-family: var(--mono); font-size: 13.5px;
  overflow-x: auto; line-height: 1.7;
}
.codeblock .c { color: #6f8197; } /* 注释 */

/* 代码块右上角一键复制按钮（JS 注入，仅在启用时加 has-copy 留白） */
.codeblock.has-copy { padding-right: 46px; }
.copy-btn {
  position: absolute; top: 8px; right: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 8px;
  background: rgba(255, 255, 255, 0.06); color: #9fb2c8;
  cursor: pointer; transition: color .15s, background .15s, border-color .15s;
}
.copy-btn:hover { color: #eaf1f8; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); }
.copy-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.copy-btn svg { width: 15px; height: 15px; pointer-events: none; }
.copy-btn .icon-check { display: none; }
.copy-btn.copied { color: #6ee7a8; border-color: rgba(110, 231, 168, 0.4); }
.copy-btn.copied .icon-copy { display: none; }
.copy-btn.copied .icon-check { display: inline-flex; }

.workflow-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wf { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.wf h4 { font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.wf ol { margin: 12px 0 0; padding-left: 18px; list-style: decimal; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.wf ol li::marker { color: var(--accent); font-weight: 700; }

/* ---- 下载 ---- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--surface); text-align: center; transition: border-color .15s, box-shadow .15s; }
.dl-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.dl-card .os-ico { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--text); }
.dl-card h3 { font-size: 18px; }
.dl-card .pkgs { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.dl-card .btn { margin-top: 18px; width: 100%; }
.dl-note {
  margin-top: 24px; display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border: 1px dashed var(--border-strong); border-radius: 11px;
  background: var(--surface-2); color: var(--text-soft); font-size: 14px;
}
.dl-note svg { width: 18px; height: 18px; color: var(--warn); flex: none; margin-top: 2px; }
.dl-sub { margin-top: 14px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 20px;
  font-weight: 650; font-size: 15.5px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }
.faq .answer code { background: var(--surface-3); padding: 1px 6px; border-radius: 5px; }

/* ---- CTA 区块 ---- */
.cta-band { text-align: center; }
.cta-band .panel {
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  padding: 48px 32px; box-shadow: var(--shadow-md);
}
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); }
.cta-band p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.cta-band .hero-cta { justify-content: center; margin-top: 26px; }

/* ---- 页脚 ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--text-soft); font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: var(--muted); font-size: 13px; }

/* ---- 杂项 ---- */
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

/* ---- 响应式 ---- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .workflow-cols { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .vs-intro { grid-template-columns: 1fr; }
  .matrix, .domains { grid-template-columns: 1fr; }
  .arch-layer { grid-template-columns: 72px 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .section { padding-block: 56px; }
  .hero { padding-block: 64px 48px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-cols { gap: 32px; }
  /* 架构层在窄屏改为层名置顶、chip 在下 */
  .arch-layer { grid-template-columns: 1fr; }
  .arch-label { justify-content: flex-start; border-right: none; border-bottom: 1px solid var(--border); }
}

/* 降低动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
