/* 人智共审 MVP 全局样式
   结构：
   1. 变量与基础元素
   2. 导航条与下拉菜单
   3. 通用面板 / 表单 / 按钮 / 表格
   4. 首页快捷入口
   5. 任务执行页：步骤展示、简单介绍
   6. 进度面板：圆圈进度、指标卡、折线图
   7. 结果面板：滚动日志、标注卡片
   8. 方案对比与结果报告可视化
   9. 响应式
*/

/* ---------------------------------------------------------------- 1. 基础 */
* { box-sizing: border-box; }
:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --line: #dde3ee;
  --line-soft: #eef1f7;
  --ink: #1d2738;
  --muted: #6b778c;
  --muted-soft: #9aa5b8;
  --primary: #2859c5;
  --primary-dark: #1d45a0;
  --primary-soft: #eef3ff;
  --green: #1f8a5b;
  --green-soft: #e8f6ef;
  --red: #c73b3b;
  --red-soft: #fdecec;
  --amber: #b7791f;
  --amber-soft: #fdf4e3;
  --llm: #6b46c1;
  --llm-soft: #f1ecfd;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(24, 39, 75, .05);
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
h1 { margin: 0 0 8px; font-size: 24px; }
h2 { font-size: 17px; margin: 22px 0 10px; }
h3 { font-size: 15px; margin: 0 0 10px; }
code { background: #f0f3f8; border-radius: 4px; padding: 2px 5px; font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; }
.muted.small, .small { font-size: 12px; }
.hidden { display: none !important; }

/* ------------------------------------------------------------ 2. 导航条 */
.navbar {
  min-height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 28px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow);
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: .3px; }
.nav-link { color: var(--ink); font-size: 14px; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--primary); border-bottom-color: var(--primary); }
.dropdown { position: relative; }
.dropbtn {
  border: 0; background: transparent; font-size: 14px; cursor: pointer; color: var(--ink);
  padding: 6px 10px; border-radius: 8px;
}
.dropbtn:hover { background: var(--primary-soft); color: var(--primary); }
.dropdown-content {
  display: none; position: absolute; right: 0; top: calc(100% + 6px); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; min-width: 132px; overflow: hidden;
  box-shadow: 0 12px 28px rgba(24, 39, 75, .14);
}
.dropdown:hover .dropdown-content, .dropdown.open .dropdown-content { display: block; }
.dropdown-content a { display: block; padding: 10px 14px; color: var(--ink); font-size: 14px; }
.dropdown-content a:hover { background: var(--primary-soft); color: var(--primary); }

/* ------------------------------------------------------- 3. 通用组件 */
.container { max-width: 1240px; margin: 24px auto 60px; padding: 0 20px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.panel-title { font-weight: 700; font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.panel-subtitle { font-weight: 600; font-size: 13px; color: var(--muted); margin: 16px 0 8px; }
.panel-title-hint {
  font-weight: 400; font-size: 12px; color: var(--muted);
  background: var(--line-soft); border-radius: 999px; padding: 2px 10px;
}
.sub-title { font-size: 14px; font-weight: 700; margin: 18px 0 10px; }
.sub-title:first-child { margin-top: 0; }
.block { margin-bottom: 22px; }
.block:last-child { margin-bottom: 0; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 9px 16px; border-radius: 9px; cursor: pointer; font-size: 14px;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); color: #fff; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 表单 */
label { display: block; margin: 12px 0; font-size: 14px; }
input, select {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 9px; font-size: 14px; margin-top: 4px; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
input[type="checkbox"] { width: auto; margin-right: 6px; }
.check-label { display: flex; align-items: center; }
.grid-2, .grid-3 { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.center { justify-content: center; }
.upload-row { display: flex; gap: 10px; align-items: center; margin: 12px 0; }
.upload-row input { margin: 0; }
.parse-result { border: 1px dashed var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; background: #fbfcfe; }

/* 状态提示：成功绿色 / 失败红色 / 进行中灰色 */
.form-error { color: var(--red); min-height: 20px; font-size: 13px; }
.form-status { min-height: 20px; font-size: 13px; font-weight: 600; margin: 6px 0; }
.form-status.ok { color: var(--green); }
.form-status.error { color: var(--red); }
.form-status.busy { color: var(--muted); }
.settings-panel { max-width: 620px; margin: 0 auto; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line-soft); }
.table th { font-size: 12px; color: var(--muted); font-weight: 600; background: #fafbfe; }
.table tr:last-child td { border-bottom: 0; }
.table.compact th, .table.compact td { padding: 7px 8px; font-size: 13px; }
.table tr.row-selected td { background: var(--primary-soft); font-weight: 600; }
table.preview td, table.preview th {
  max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.actions-col { width: 210px; }
.row.tight { gap: 6px; }
.task-name { font-weight: 600; }

/* 按钮：危险操作 */
.btn.danger { border-color: #f0c6c6; color: var(--red); }
.btn.danger:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }

/* 分组框与单选 */
.fieldset {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 16px;
  margin: 16px 0; background: #fbfcfe;
}
.fieldset legend { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 6px; }
.fieldset .grid-2 { margin-top: 4px; }
.radio-label {
  display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; font-size: 14px;
  padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: #fff;
}
.radio-label input { width: auto; margin: 3px 0 0; }
.radio-label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.radio-label:has(input:disabled) { opacity: .6; }
.unit { font-size: 12px; color: var(--muted); margin-left: 6px; font-weight: 400; }

/* 标签 */
.tag {
  display: inline-block; background: var(--primary-soft); color: var(--primary);
  border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600;
}
.tag-sim { background: #f0ecfd; color: #6b46c1; }
.tag-real { background: var(--primary-soft); color: var(--primary); }
.tag-current { background: var(--primary); color: #fff; }
.tag-history { background: var(--amber-soft); color: var(--amber); }

/* 其他 */
.hero-empty { padding: 70px 20px; text-align: center; }
.hero-empty h1 { font-size: 28px; }
.hero-empty .row { margin: 22px 0 10px; }
.auth-panel { max-width: 430px; margin: 20px auto; }
.prose p { line-height: 1.8; }
.footer { text-align: center; color: var(--muted-soft); font-size: 12px; padding: 20px; }

/* --------------------------------------------------- 4. 首页快捷入口 */
.quick-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 8px; }
.quick-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fbfcfe; color: var(--ink);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.quick-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(40, 89, 197, .12); }
.quick-icon {
  width: 32px; height: 32px; border-radius: 9px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.quick-icon.sim { background: #6b46c1; }
.quick-icon.cfg { background: #2f855a; }
.quick-title { font-weight: 700; }
.quick-desc { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------- 5. 任务执行页头部 */
.task-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.task-header h1 { margin-bottom: 4px; }
.status-pill {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--line-soft); color: var(--muted);
}
.status-pill.done { background: var(--green-soft); color: var(--green); }
.status-pill.failed { background: var(--red-soft); color: var(--red); }
.status-pill.pilot_running, .status-pill.execute_running { background: var(--primary-soft); color: var(--primary); }
.status-pill.plan_ready, .status-pill.pilot_waiting_human { background: var(--amber-soft); color: var(--amber); }

/* 步骤展示 */
.steps { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.step-item {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 8px 16px; font-size: 14px; cursor: default;
  color: var(--ink); transition: border-color .15s, background .15s;
}
.step-index {
  width: 20px; height: 20px; border-radius: 50%; background: var(--line-soft); color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.step-state { font-size: 11px; color: var(--muted-soft); }
.step-item.done, .step-item.clickable { cursor: pointer; border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.step-item.done .step-index, .step-item.clickable .step-index { background: var(--primary); color: #fff; }
.step-item.clickable:hover { background: #e2ebff; }
.step-item.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.step-item.current .step-index { background: rgba(255, 255, 255, .28); color: #fff; }
.step-item.current .step-state { color: rgba(255, 255, 255, .8); }
.step-item.future { color: var(--muted-soft); background: #f5f6f9; }
.step-item.future .step-index { background: #e7eaf1; color: var(--muted-soft); }
.step-item.viewing:not(.current) { box-shadow: 0 0 0 2px rgba(40, 89, 197, .25); }

/* 简单介绍 */
.step-intro { border-left: 4px solid var(--primary); }
.intro-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.intro-head h2 { margin: 0; font-size: 17px; }
.intro-desc { margin: 0 0 4px; line-height: 1.8; }
.step-intro .btn { margin-top: 10px; }

/* ------------------------------------------- 6. 进度面板与图表 */
.layout-13-23 { display: grid; grid-template-columns: minmax(300px, 1fr) 2fr; gap: 16px; align-items: start; }
.main-panel { margin-bottom: 40px; }
.progress-panel, .result-panel { min-height: 200px; }
.progress-panel.wide { width: 100%; }
.progress-inline { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; }
.progress-inline-circle { display: flex; justify-content: center; }

.circle-wrap { position: relative; width: 140px; height: 140px; margin: 6px auto 14px; }
.circle { width: 100%; height: 100%; display: block; }
.circle circle { transition: stroke-dasharray .4s ease; }
.circle-text {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.circle-text strong { font-size: 22px; line-height: 1; }
.circle-text span { font-size: 12px; color: var(--muted); }
.circle-text small { font-size: 11px; color: var(--muted-soft); }
.circle-wrap.is-llm .circle-text strong { color: var(--llm); }

/* 双圆环：人工 / LLM 并排 */
.dual-circles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.circle-cell { text-align: center; min-width: 0; }
.circle-cell .circle-wrap { width: 118px; height: 118px; margin: 4px auto 8px; }
.circle-cell .circle-text strong { font-size: 19px; }
.circle-caption { font-size: 12px; font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.circle-cell.llm .circle-caption { color: var(--llm); }
.circle-cell.human .circle-caption { color: var(--primary); }
.dot.human { background: var(--primary); }
.dot.llm { background: var(--llm); }
.chart-head.llm .chart-now { color: var(--llm); }
.panel-subblock { border-bottom: 1px dashed var(--line-soft); padding-bottom: 8px; margin-bottom: 12px; }
/* 方案执行最下方的整宽"实时调用记录"面板 */
.log-panel { margin-top: 0; }
.log-panel .log-box { max-height: 380px; }

.stat-grid { display: grid; gap: 10px; margin-top: 12px; }
.stat-grid.two { grid-template-columns: 1fr 1fr; }
.stat-grid.three { grid-template-columns: repeat(3, 1fr); }
.stat-grid.four { grid-template-columns: repeat(4, 1fr); }
.stat {
  background: #fafbfe; border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 10px 12px; min-width: 0;
}
.stat-value { font-size: 18px; font-weight: 700; line-height: 1.3; word-break: break-word; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat-hint { font-size: 11px; color: var(--muted-soft); }

.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 6px; }
.chart-title { font-size: 13px; font-weight: 600; color: var(--muted); }
.chart-now { font-size: 13px; font-weight: 700; color: var(--primary); }
canvas.spark, canvas.trend { width: 100%; display: block; background: #fbfcfe; border: 1px solid var(--line-soft); border-radius: 10px; }

/* --------------------------------------------- 7. 日志与标注卡片 */
.log-box {
  max-height: 320px; overflow-y: auto; border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 8px 10px; background: #fafbfe;
}
.log-row { padding: 7px 2px; border-bottom: 1px dashed #edf0f5; }
.log-row:last-child { border-bottom: 0; }
.log-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 2px; }
.log-actor { font-weight: 700; color: var(--ink); }
.log-time { margin-left: auto; color: var(--muted-soft); font-size: 11px; }
.log-content { font-size: 13px; color: #38455c; line-height: 1.6; }
.chip {
  display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: 11px; font-weight: 600;
  background: var(--line-soft); color: var(--muted);
}
.chip.positive, .chip.ok { background: var(--green-soft); color: var(--green); }
.chip.negative, .chip.bad { background: var(--red-soft); color: var(--red); }
.chip.neutral, .chip.warn { background: var(--amber-soft); color: var(--amber); }
.chip.failed { background: var(--red-soft); color: var(--red); }

.annotate-card { display: grid; grid-template-columns: 1fr 190px; gap: 18px; margin-top: 6px; }
.annotate-main { min-width: 0; }
.annotate-meta { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.sample-content {
  white-space: pre-wrap; line-height: 1.9; min-height: 110px; margin: 0;
  background: #fbfcfe; border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px;
  font-size: 14px;
}
.annotate-actions {
  display: flex; flex-direction: column; gap: 8px; padding: 14px;
  background: #fafbfe; border: 1px solid var(--line-soft); border-radius: 10px;
}
.annotate-actions-title { font-size: 12px; font-weight: 600; color: var(--muted); }
.label-btn {
  padding: 10px 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); transition: all .15s;
}
.label-btn:hover { border-color: var(--primary); }
.label-btn.positive.selected { background: var(--green); border-color: var(--green); color: #fff; }
.label-btn.neutral.selected { background: var(--amber); border-color: var(--amber); color: #fff; }
.label-btn.negative.selected { background: var(--red); border-color: var(--red); color: #fff; }
.confirm-btn { margin-top: 4px; }
.auto-play-hint {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary); font-weight: 600;
}
.fold { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.fold > summary { cursor: pointer; font-weight: 600; color: var(--muted); font-size: 13px; margin-bottom: 8px; }

/* ------------------------------------- 8. 方案对比与结果报告可视化 */
.recommend-badge {
  text-align: center; font-weight: 700; font-size: 15px; padding: 10px;
  border-radius: 10px; margin: 4px 0 10px; background: var(--primary-soft); color: var(--primary);
}
.recommend-badge.human_only { background: var(--green-soft); color: var(--green); }
.recommend-inline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px;
  padding: 12px 14px; border-radius: 10px; background: #f5f8ff; border: 1px dashed var(--primary);
  font-size: 13px; color: var(--muted);
}
.recommend-inline strong { color: var(--ink); font-size: 14px; }
.recommend-tag {
  background: var(--primary); color: #fff; border-radius: 999px; padding: 3px 12px;
  font-weight: 700; font-size: 13px;
}
.compare { display: grid; gap: 10px; }
.compare-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fbfcfe; }
.compare-item.selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary) inset; }
.compare-item.disabled { opacity: .65; }
.compare-title { font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.plan-name { font-size: 14px; }
.recommend-flag {
  background: var(--primary); color: #fff; border-radius: 999px;
  padding: 1px 10px; font-size: 11px; font-weight: 700;
}
.plan-flag {
  background: var(--line-soft); color: var(--muted); border-radius: 999px;
  padding: 1px 10px; font-size: 11px; font-weight: 600;
}
.compare-body { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.compare-body strong { color: var(--ink); font-size: 14px; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.kpi {
  text-align: center; padding: 12px 8px; border-radius: 10px;
  background: #fafbfe; border: 1px solid var(--line-soft);
}
.kpi strong { display: block; font-size: 19px; color: var(--primary); }
.kpi span { font-size: 12px; color: var(--muted); }
.action-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

.estimate-card {
  border-radius: 12px; padding: 16px; text-align: center; margin-bottom: 12px;
  background: linear-gradient(160deg, #eef3ff, #ffffff); border: 1px solid var(--line);
}
.estimate-card.negative { background: linear-gradient(160deg, #fdecec, #ffffff); }
.estimate-card.positive { background: linear-gradient(160deg, #e8f6ef, #ffffff); }
.estimate-label { font-size: 12px; color: var(--muted); }
.estimate-value { font-size: 38px; font-weight: 800; line-height: 1.2; color: var(--primary); }
.estimate-card.negative .estimate-value { color: var(--red); }
.estimate-card.positive .estimate-value { color: var(--green); }
.estimate-sub { font-size: 12px; color: var(--muted); }

.ci-row { display: grid; grid-template-columns: 108px 1fr 150px; gap: 10px; align-items: center; margin-bottom: 10px; }
.ci-name { font-size: 13px; color: var(--muted); }
.ci-track { position: relative; height: 22px; background: #f4f6fb; border-radius: 6px; border: 1px solid var(--line-soft); }
.ci-band { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; }
.ci-band.selected { background: rgba(40, 89, 197, .30); border: 1px solid var(--primary); }
.ci-band.baseline { background: rgba(107, 119, 140, .22); border: 1px solid var(--muted); }
.ci-mark { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.ci-value { font-size: 12px; color: var(--muted); text-align: right; }
.ci-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-soft); margin-left: 118px; }

.stack-row { display: grid; grid-template-columns: 78px 1fr; gap: 10px; align-items: center; margin-bottom: 10px; }
.stack-name { font-size: 13px; color: var(--muted); }
.stack { display: flex; height: 24px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-soft); background: #f4f6fb; }
.stack-seg { display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; font-weight: 600; }
.stack-seg.positive { background: var(--green); }
.stack-seg.neutral { background: var(--amber); }
.stack-seg.negative { background: var(--red); }
.stack-total { font-size: 11px; color: var(--muted-soft); margin-top: 2px; }
.stack-row .stack-total { grid-column: 2; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.positive { background: var(--green); }
.dot.neutral { background: var(--amber); }
.dot.negative { background: var(--red); }

.topic-list { display: grid; gap: 8px; }
.topic-row { display: grid; grid-template-columns: 140px 1fr 160px; gap: 10px; align-items: center; font-size: 13px; }
.topic-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-bar { height: 10px; background: #f4f6fb; border-radius: 999px; overflow: hidden; border: 1px solid var(--line-soft); }
.topic-bar-fill { height: 100%; background: linear-gradient(90deg, #e8a6ae, var(--red)); }
.topic-meta { font-size: 12px; color: var(--muted); text-align: right; }

/* 旧版兼容（仍被少量页面引用） */
.result-block { background: #f8fafc; border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px; overflow-x: auto; font-size: 13px; }

/* ------------------------------------------------------------ 9. 响应式 */
@media (max-width: 980px) {
  .layout-13-23 { grid-template-columns: 1fr; }
  .progress-inline { grid-template-columns: 1fr; }
  .annotate-card { grid-template-columns: 1fr; }
  .annotate-actions { flex-direction: row; flex-wrap: wrap; }
  .annotate-actions-title { width: 100%; }
  .quick-cards, .grid-2, .grid-3, .stat-grid.three, .stat-grid.four, .kpi-row { grid-template-columns: 1fr 1fr; }
  .topic-row { grid-template-columns: 110px 1fr; }
  .topic-meta { grid-column: 2; text-align: left; }
}
@media (max-width: 620px) {
  .container { padding: 0 12px; }
  .navbar { padding: 8px 14px; }
  .nav-left, .nav-right { gap: 10px; }
  .quick-cards, .grid-2, .grid-3, .stat-grid.two, .stat-grid.three, .stat-grid.four, .kpi-row { grid-template-columns: 1fr; }
  .ci-row { grid-template-columns: 1fr; }
  .ci-axis { margin-left: 0; }
  .stack-row { grid-template-columns: 1fr; }
  .stack-row .stack-total { grid-column: 1; }
}
