/* Software-Engineering-Core-Philosophical-Principles-and-Methodologies · 站内样式
 * 基础样式复用 docs/shared/style/satellite-base.css（三子站共用：令牌壳 / toolbar / FAB / 排版基线）。
 * 本文件：本站配色覆盖共用令牌 + 九思路 / 图表 / 矩阵等专属组件。
 * 配套 app.js
 */
@import url("../../docs/shared/style/satellite-base.css");

/* ---------- 站内扩展令牌 + 覆盖共用色板（保留本站视觉） ---------- */
:root {
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --c-idea1: #1e66f5;
  --c-idea2: #8839ef;
  --c-idea3: #40a02b;
  --c-idea4: #df8e1d;
  --c-idea5: #ea76cb;
  --c-idea6: #179299;
  --c-idea7: #04a5e5;
  --c-idea8: #d20f39;
  --c-idea9: #fe640b;
  --c-dao: #8839ef; --c-fa: #40a02b; --c-shu: #fe640b; --c-qi: #7287fd; --c-shi: #1e66f5;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
  --maxw: 1120px;
}

:root,
html[data-theme="light"],
[data-theme="light"] {
  --bg-page: #eff1f5;
  --bg-card: #ccd0da;
  --bg-elev: #e6e9ef;
  --line: #bcc0cc;
  --text: #4c4f69;
  --muted: #6c6f85;
  --dim: #7c7f93;
  --para: #5c5f77;
  --strong: #1e1e2e;
  --code-bg: #ccd0da;
  --code-ink: #4c4f69;
  --accent: #1e66f5;
  --border-strong: #9ca0b3;
  --shadow-sm: 0 1px 3px rgba(30,30,46,.08);
  --shadow-md: 0 4px 12px rgba(30,30,46,.12);
  --bg-grad: radial-gradient(1200px 600px at 80% -10%, rgba(30,102,245,.10) 0%, transparent 55%),
             radial-gradient(900px 500px at -10% 10%, rgba(234,118,203,.10) 0%, transparent 50%);
  --surface: var(--bg-card);
  --surface-2: #e6e9ef;
  --surface-3: var(--bg-elev);
  --text-strong: var(--strong);
  --border: var(--line);
  --accent-soft: #ccd0da;
  --good: #40a02b;
  --warn: #df8e1d;
  --bad: #d20f39;
  --band: rgba(30,102,245,.06);
}

html[data-theme="dark"],
[data-theme="dark"] {
  --bg-page: #1e1e2e;
  --bg-card: #313244;
  --bg-elev: #45475a;
  --line: #45475a;
  --text: #cdd6f4;
  --muted: #a6adc8;
  --dim: #9399b2;
  --para: #bac2de;
  --strong: #ffffff;
  --code-bg: #181825;
  --code-ink: #cdd6f4;
  --accent: #89b4fa;
  --border-strong: #585b70;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .5);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .45);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .45);
  --bg-grad: radial-gradient(1200px 600px at 80% -10%, rgba(137,180,250,.12) 0%, transparent 55%),
             radial-gradient(900px 500px at -10% 10%, rgba(203,166,247,.12) 0%, transparent 50%);
  --surface: var(--bg-card);
  --surface-2: #45475a;
  --surface-3: var(--bg-elev);
  --text-strong: var(--strong);
  --border: var(--line);
  --accent-soft: rgba(137,180,250,.14);
  --good: #a6e3a1;
  --warn: #f9e2af;
  --bad: #f38ba8;
  --band: rgba(137,180,250,.10);
}

/* theme-init 的「跟随系统」会去掉 data-theme，深色令牌须同时跟系统偏好 */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg-page: #1e1e2e;
    --bg-card: #313244;
    --bg-elev: #45475a;
    --line: #45475a;
    --text: #cdd6f4;
    --muted: #a6adc8;
    --dim: #9399b2;
    --para: #bac2de;
    --strong: #ffffff;
    --code-bg: #181825;
    --code-ink: #cdd6f4;
    --accent: #89b4fa;
    --border-strong: #585b70;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .45);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .45);
    --bg-grad: radial-gradient(1200px 600px at 80% -10%, #14203f 0%, transparent 55%),
               radial-gradient(900px 500px at -10% 10%, #241433 0%, transparent 50%);
    --surface: var(--bg-card);
    --surface-2: #45475a;
    --surface-3: var(--bg-elev);
    --text-strong: var(--strong);
    --border: var(--line);
    --accent-soft: rgba(137,180,250,.14);
    --good: #a6e3a1;
    --warn: #f9e2af;
    --bad: #f38ba8;
    --band: rgba(137,180,250,.10);
  }
}

/* 本站 body 叠加渐变背景（共用基线之外） */
body {
  background-image: var(--bg-grad);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
}

/* 本站标题层级（覆盖共用 h1/h2 尺度） */
h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--text-strong); line-height: 1.35; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0; letter-spacing: .5px; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); margin: 2.4rem 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); }
h3 { font-size: 1.22rem; margin: 1.7rem 0 .6rem; }
h4 { font-size: 1.04rem; margin: 1.2rem 0 .5rem; color: var(--text); }
p { margin: .6rem 0; }
code {
  font-family: var(--font-mono);
  background: var(--code-bg);
  padding: .12em .42em;
  border-radius: 6px;
  font-size: .88em;
  color: var(--text-strong);
  border: 1px solid var(--border);
}
blockquote {
  margin: 1rem 0;
  padding: .8rem 1.1rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
}
blockquote p { margin: .3rem 0; }
ul, ol { padding-inline-start: 1.25rem; }
li { margin: .25rem 0; }

/* toolbar 品牌色走本站 --text-strong（共用 .toolbar 结构） */
.toolbar .brand { color: var(--text-strong); }
.btn { border-radius: var(--radius-sm); background: var(--surface); }

/* ---------- 布局 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
header.hero {
  position: relative;
  padding: 64px 20px 46px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(37,99,235,.10), transparent 70%),
    var(--bg-grad);
  border-bottom: 1px solid var(--border);
}
.hero .kicker {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: 3px;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: .25rem 1rem;
  margin-bottom: 1rem;
}
.hero .lede { max-width: 760px; margin: 1rem auto 0; color: var(--muted); }

/* 思路导览 chips */
.idea-chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .9rem; border-radius: 999px;
  background: var(--surface); border: 2px solid var(--border);
  font-size: .9rem; cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.chip:hover { transform: translateY(-2px); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; }
.chips-note { text-align: left; color: var(--muted); font-size: .8rem; margin: .8rem 0 0; }
.chip.i1 { border-color: var(--c-idea1); } .chip.i1 .dot { background: var(--c-idea1); }
.chip.i2 { border-color: var(--c-idea2); } .chip.i2 .dot { background: var(--c-idea2); }
.chip.i3 { border-color: var(--c-idea3); } .chip.i3 .dot { background: var(--c-idea3); }
.chip.i4 { border-color: var(--c-idea4); } .chip.i4 .dot { background: var(--c-idea4); }
.chip.i5 { border-color: var(--c-idea5); } .chip.i5 .dot { background: var(--c-idea5); }
.chip.i6 { border-color: var(--c-idea6); } .chip.i6 .dot { background: var(--c-idea6); }
.chip.i7 { border-color: var(--c-idea7); } .chip.i7 .dot { background: var(--c-idea7); }
.chip.i8 { border-color: var(--c-idea8); } .chip.i8 .dot { background: var(--c-idea8); }
.chip.i9 { border-color: var(--c-idea9); } .chip.i9 .dot { background: var(--c-idea9); }
/* 深度透镜（六~九）：方点 + 2px 边框，与广度透镜（圆点 + 1px）形态区分 */
.chip.i6, .chip.i7, .chip.i8, .chip.i9 { border-width: 2px; }
.chip.i6 .dot, .chip.i7 .dot, .chip.i8 .dot, .chip.i9 .dot { border-radius: 2px; }

/* ---------- 卡片与区块 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem 1.5rem;
  margin: 1.1rem 0; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* 思路区块左侧色带 */
.idea { border-left: 6px solid var(--border); }
.idea.i1 { border-left-color: var(--c-idea1); }
.idea.i2 { border-left-color: var(--c-idea2); }
.idea.i3 { border-left-color: var(--c-idea3); }
.idea.i4 { border-left-color: var(--c-idea4); }
.idea.i5 { border-left-color: var(--c-idea5); }
.idea.i6 { border-left-color: var(--c-idea6); }
.idea.i7 { border-left-color: var(--c-idea7); }
.idea.i8 { border-left-color: var(--c-idea8); }
.idea.i9 { border-left-color: var(--c-idea9); }
.idea .tag {
  display: inline-block; font-size: .72rem; letter-spacing: 1px;
  padding: .15rem .6rem; border-radius: 999px; color: #fff; font-weight: 600;
}
.idea.i1 .tag { background: var(--c-idea1); }
.idea.i2 .tag { background: var(--c-idea2); }
.idea.i3 .tag { background: var(--c-idea3); }
.idea.i4 .tag { background: var(--c-idea4); }
.idea.i5 .tag { background: var(--c-idea5); }
.idea.i6 .tag { background: var(--c-idea6); }
.idea.i7 .tag { background: var(--c-idea7); }
.idea.i8 .tag { background: var(--c-idea8); }
.idea.i9 .tag { background: var(--c-idea9); }

/* ---------- 表格（精美） ---------- */
.table-scroll { overflow-x: auto; margin: 1rem 0; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
/* 九思路对照表：固定列宽，第一列可换行收窄 */
table.cmp { table-layout: fixed; width: 100%; min-width: 760px; font-size: .84rem; }
table.cmp thead th:nth-child(1) { width: 13%; }
table.cmp thead th:nth-child(2) { width: 31%; }
table.cmp thead th:nth-child(3) { width: 19%; }
table.cmp thead th:nth-child(4) { width: 13%; }
table.cmp thead th:nth-child(5) { width: 24%; }
table.cmp tbody th { white-space: normal; word-break: break-word; text-align: left; }
table.cmp td { word-break: break-word; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; background: var(--surface); min-width: 640px; }
thead th {
  background: var(--surface-3); color: var(--text-strong);
  text-align: left; padding: .7rem .85rem; font-family: var(--font-sans);
  border-bottom: 2px solid var(--border-strong); position: sticky; top: 0;
  white-space: nowrap;
}
tbody td, tbody th { padding: .65rem .85rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:nth-child(even) { background: var(--surface-2); }
tbody tr:hover { background: var(--band); }
th[scope="row"] { font-weight: 600; color: var(--text-strong); background: var(--surface-2); }
.cell-strong { color: var(--text-strong); font-weight: 600; }

/* 五层总览主表分层着色 */
.lv-dao { box-shadow: inset 4px 0 0 var(--c-dao); }
.lv-fa { box-shadow: inset 4px 0 0 var(--c-fa); }
.lv-shu { box-shadow: inset 4px 0 0 var(--c-shu); }
.lv-qi { box-shadow: inset 4px 0 0 var(--c-qi); }
.lv-shi { box-shadow: inset 4px 0 0 var(--c-shi); }

/* ---------- 图表容器 ---------- */
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; margin: 1.1rem 0; box-shadow: var(--shadow); }
.chart-title { font-family: var(--font-serif); font-weight: 700; color: var(--text-strong); margin: 0 0 .2rem; font-size: 1.05rem; }
.chart-note { color: var(--muted); font-size: .82rem; margin: 0 0 .8rem; }
.chart-flex { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.legend { display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; margin-top: .6rem; font-size: .84rem; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
svg { max-width: 100%; height: auto; display: block; }

/* 雷达图 */
.radar-grid { fill: none; stroke: var(--border-strong); stroke-width: 1; }
.radar-axis { stroke: var(--border-strong); stroke-width: 1; }
.radar-label { fill: var(--muted); font-size: 13px; font-family: var(--font-sans); }
.radar-poly { fill-opacity: .14; stroke-width: 2; }

/* 金字塔（居中阶梯金字塔：道 apex 最窄居顶，器 base 最宽居底；势横贯环绕） */
.pyramid-wrap { position: relative; border: 2px dashed var(--c-shi); border-radius: 16px; padding: 1.7rem 1.2rem 1.2rem; margin-top: .3rem; }
.pyramid-shi { position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%); background: var(--surface); color: var(--c-shi); font-size: .78rem; font-weight: 700; padding: 0 .7rem; white-space: nowrap; font-family: var(--font-sans); letter-spacing: .3px; }
.pyramid-block { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.pyramid { flex: 1 1 220px; min-width: 200px; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.pyr-layer { height: 48px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem; border-radius: 4px; font-family: var(--font-serif); letter-spacing: 2px; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 100%, 0 100%); transition: var(--transition); }
.pyr-layer:hover { filter: brightness(1.08); transform: translateY(-2px); }
.pyr-layer.l-dao { background: var(--c-dao); }
.pyr-layer.l-fa  { background: var(--c-fa); }
.pyr-layer.l-shu { background: var(--c-shu); }
.pyr-layer.l-qi  { background: var(--c-qi); }
.pyr-descs { flex: 1 1 200px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.pyr-descs li { font-size: .85rem; color: var(--muted); line-height: 1.45; }
.pyr-descs li b { color: var(--text-strong); margin-right: .4rem; font-family: var(--font-serif); font-size: .95rem; }

/* 挂载关系导图（道·法·术 三层） */
.svg-scroll { overflow-x: auto; }
.mount-svg { display: block; margin: 0 auto; max-width: 560px; width: 100%; height: auto; }
.mount-svg .layer-dao { fill: var(--c-dao); }
.mount-svg .layer-fa  { fill: var(--c-fa); }
.mount-svg .layer-shu { fill: var(--c-shu); }
.mount-svg .layer-text { fill: #fff; font-family: var(--font-serif); font-weight: 700; font-size: 18px; }
.mount-svg .layer-sub  { fill: rgba(255,255,255,.9); font-family: var(--font-sans); font-size: 11px; }
.mount-svg .layer-qi   { fill: var(--c-qi); }
.mount-svg .layer-dao, .mount-svg .layer-fa, .mount-svg .layer-shu, .mount-svg .layer-qi { filter: drop-shadow(0 3px 5px rgba(0,0,0,.28)); }
.mount-svg .axis-down { stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.mount-svg .axis-up   { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 5; }
.mount-svg .arr-down-fill { fill: var(--text); }
.mount-svg .arr-up-fill   { fill: var(--accent); }
.mount-svg .mount-dot-d { fill: var(--text-strong); }
.mount-svg .mount-dot-u { fill: var(--accent); }
.mount-svg .mount-lbl { fill: var(--text); font-family: var(--font-sans); font-size: 12px; font-weight: 600; }
.mount-svg .mount-shi { fill: none; stroke: var(--c-shi); stroke-width: 2; stroke-dasharray: 6 5; stroke-linecap: round; }
.mount-svg .mount-shi-lbl { fill: var(--c-shi); font-family: var(--font-sans); font-size: 11px; font-weight: 700; }
.mount-svg .mount-verb { fill: var(--accent); font-family: var(--font-sans); font-size: 12px; font-weight: 700; }
.mount-svg .mount-shi-band { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 4; stroke-linecap: round; }
.mount-svg .mount-shi-band-lbl { fill: var(--accent); font-family: var(--font-sans); font-size: 12px; font-weight: 700; }
.mount-svg .mount-axis { stroke: var(--border-strong); stroke-width: 1.5; stroke-linecap: round; }
.mount-svg .mount-axis-lbl { fill: var(--muted); font-family: var(--font-sans); font-size: 11px; }
.mount-svg .mount-node { fill: var(--surface); stroke: var(--text-strong); stroke-width: 1.5; }
.mount-svg .verb-pill { fill: var(--surface); stroke: var(--border); stroke-width: 1; }

/* 全覆盖明细矩阵 */
.mtrx { border-collapse: collapse; table-layout: fixed; width: 100%; min-width: 1160px; font-size: .82rem; }
.mtrx thead th:nth-child(1) { width: 13%; }
.mtrx thead th:nth-child(2) { width: 15%; }
.mtrx thead th:nth-child(3) { width: 17%; }
.mtrx thead th:nth-child(4) { width: 18%; }
.mtrx thead th:nth-child(5) { width: 18%; }
.mtrx thead th:nth-child(6) { width: 19%; }
.mtrx th, .mtrx td { border: 1px solid var(--border); padding: .5rem .6rem; text-align: left; vertical-align: top; line-height: 1.5; }
.mtrx thead th { background: var(--surface-3); font-family: var(--font-sans); }
.mtrx thead th.dao { color: var(--c-dao); }
.mtrx thead th.fa  { color: var(--c-fa); }
.mtrx thead th.shu { color: var(--c-shu); }
.mtrx thead th.qi  { color: var(--c-qi); }
.mtrx thead th.shi { color: var(--c-shi); }
.mtrx td.lab { text-align: left; font-weight: 600; white-space: normal; word-break: break-word; background: var(--surface-2); color: var(--text-strong); }
.mtrx tbody tr:nth-child(even) td { background: var(--surface-2); }
.mtrx tbody tr:hover td { background: var(--surface-3); }

/* 漏斗 */
.funnel-row { display: flex; align-items: center; gap: 1rem; margin: .55rem 0; }
.funnel-bar { height: 40px; display: flex; align-items: center; padding-left: 1rem; color: #fff; font-weight: 600; border-radius: 8px; font-size: .9rem; }

/* 热力矩阵 */
.heat { border-collapse: collapse; width: 100%; font-size: .82rem; min-width: 560px; }
.heat th, .heat td { border: 1px solid var(--border); padding: .5rem .55rem; text-align: center; }
.heat th { background: var(--surface-3); color: var(--text-strong); font-family: var(--font-sans); }
.heat td.lab { text-align: left; font-weight: 600; background: var(--surface-2); color: var(--text-strong); white-space: nowrap; }
.heat .h0 { background: var(--surface-2); }
.heat .h1 { background: #cdd6f4; color: #4c4f69; } /* Latte surface2 浅 */
.heat .h2 { background: #b4befe; color: #4c4f69; } /* Latte lavender 浅 */
.heat .h3 { background: #7287fd; color: #4c4f69; } /* Latte lavender */
.heat .h4 { background: #1e66f5; color: #ffffff; } /* Latte blue */
.heat .h5 { background: #153a84; color: #ffffff; } /* Latte blue 同相降明度 */

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .4rem; }
.tab {
  font-family: var(--font-sans); font-size: .88rem; cursor: pointer;
  padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--muted); transition: var(--transition);
}
.tab:hover { color: var(--text); }
.tab.active { color: #fff; border-color: transparent; }
.tab.active.t1 { background: var(--c-idea1); }
.tab.active.t2 { background: var(--c-idea2); }
.tab.active.t3 { background: var(--c-idea3); }
.tab.active.t4 { background: var(--c-idea4); }
.tab.active.t5 { background: var(--c-idea5); }
.tab.active.t6 { background: var(--c-idea6); }
.tab.active.t7 { background: var(--c-idea7); }
.tab.active.t8 { background: var(--c-idea8); }
.tab.active.t9 { background: var(--c-idea9); }
/* 深度透镜页签：白内描边区分 */

.panel { display: none; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin: .6rem 0 1.1rem; }
.panel.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 滚动渐显 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 提示框 */
.note { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: .8rem 1rem; background: var(--surface-2); color: var(--muted); font-size: .9rem; }
.note b { color: var(--text-strong); }

/* 结语箴言 */
.creed { display: grid; gap: .9rem; }
.creed blockquote { border-left-color: var(--c-idea4); background: var(--surface-2); }
.creed blockquote.q1 { border-left-color: var(--c-idea1); }
.creed blockquote.q2 { border-left-color: var(--c-idea2); }
.creed blockquote.q3 { border-left-color: var(--c-idea3); }
.creed blockquote.q4 { border-left-color: var(--c-idea4); }
.creed blockquote.q5 { border-left-color: var(--c-idea5); }
.creed blockquote.q6 { border-left-color: var(--c-idea6); }
.creed blockquote.q7 { border-left-color: var(--c-idea7); }
.creed blockquote.q8 { border-left-color: var(--c-idea8); }
.creed blockquote.q9 { border-left-color: var(--c-idea9); }

/* 页脚 */
footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 2rem 20px 3rem; color: var(--muted); font-size: .85rem; text-align: center; }

/* ---------- 响应式（小屏强制优化，≤768 / ≤480） ---------- */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .wrap { padding: 0 14px; }
  .toolbar { padding: 8px 14px; }
  .toolbar .brand { font-size: .85rem; }
  h2 { font-size: 1.4rem; }
  .chart-flex { flex-direction: column; align-items: stretch; }
  .idea-chips .chip { font-size: .82rem; padding: .4rem .7rem; }
  .pyramid-block { flex-direction: column; align-items: stretch; gap: 1rem; }
  .pyramid { flex: 1 1 auto; width: 100%; }
  .pyr-descs { flex: 1 1 auto; }
  /* 九思路五维雷达：纵向堆叠后居中，避免偏左溢出 */
  .chart-flex svg#radar { margin: 0 auto; }
  .chart-card, .table-scroll, .chart-flex { min-width: 0; }
  #radarLegend { justify-content: center; }
}
@media (max-width: 480px) {
  body { font-size: 14px; }
  header.hero { padding: 40px 14px 32px; }
  .hero .kicker { font-size: .7rem; letter-spacing: 2px; }
  table { font-size: .82rem; }
  thead th, tbody td { padding: .5rem .55rem; }
  .pyr-layer { font-size: .95rem; height: 44px; }
  .btn { padding: .35rem .6rem; font-size: .78rem; }
  /* 三组件小屏收敛：图例与宽表字号/内边距收紧，配合 .table-scroll 横向滚动不撑破 */
  .legend { font-size: .78rem; gap: .5rem .8rem; }
  table.cmp, .heat { font-size: .76rem; }
  table.cmp th, table.cmp td, .heat th, .heat td { padding: .38rem .42rem; }
}

/* 思路拓展 callout（全局打散补遗） */
.insight { background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 1rem 1.15rem; margin: 1.1rem 0; }
.insight .ins-head { margin: 0 0 .55rem; font-family: var(--font-sans); font-size: 1.02rem; font-weight: 700; color: var(--accent); }
.insight h4 { margin: 1rem 0 .4rem; font-size: .98rem; color: var(--text-strong); font-family: var(--font-sans); }
.insight p { margin: .45rem 0; }
