/* =========================================================
 * theory/concepts.css
 * 2026-10-31 新建：概念库前台四页共用样式
 *   概念浏览 / 概念详情 / 指标库 / 关系图谱
 * 风格对齐 /theory/theory.css（白底圆角 + 紫 accent），适配暗黑模式
 * ========================================================= */

.cf-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 80px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #0f172a;
}

/* ---------- 顶部导航 ---------- */
.cf-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}
.cf-nav__brand {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
}
.cf-nav__brand:hover { color: #7c3aed; }
.cf-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
}
.cf-nav__link {
  font-size: 13.5px;
  color: #475569;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 8px;
}
.cf-nav__link:hover { background: #f1f5f9; color: #7c3aed; }
.cf-nav__link.is-active {
  background: #7c3aed;
  color: #fff;
  font-weight: 600;
}
.cf-nav__link--admin {
  border: 1px dashed #cbd5e1;
  color: #64748b;
}
.cf-nav__toggle { margin-left: auto; }

/* ---------- 标题区 ---------- */
.cf-hero { padding: 10px 0 18px; }
.cf-hero h1 {
  font-size: 26px;
  margin: 0 0 8px;
  letter-spacing: .4px;
}
.cf-hero p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #64748b;
  max-width: 760px;
}
.cf-hero__stats {
  margin-top: 10px;
  font-size: 13px;
  color: #7c3aed;
}
.cf-hero__stats b { font-size: 17px; margin: 0 2px; }

/* ---------- 提示块 ---------- */
.cf-hint {
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.65;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  margin: 10px 0;
}
.cf-hint--err {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.cf-hint--warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.cf-empty {
  padding: 26px 14px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

/* ---------- 过滤条 ---------- */
.cf-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 16px;
}
.cf-chip {
  display: inline-block;
  font-size: 12.5px;
  line-height: 1;
  padding: 6px 11px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
}
.cf-chip:hover { border-color: #7c3aed; color: #7c3aed; }
.cf-chip.is-active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
  font-weight: 600;
}
.cf-filter__count {
  margin-left: auto;
  font-size: 12.5px;
  color: #64748b;
}
.cf-search {
  display: flex;
  gap: 6px;
  align-items: center;
}
.cf-search input[type="text"] {
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  min-width: 180px;
  font-family: inherit;
  background: #fff;
  color: #0f172a;
}
.cf-search button {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #7c3aed;
  background: #7c3aed;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.cf-search button:hover { background: #6d28d9; }

/* ---------- 分组标题 ---------- */
.cf-group { margin: 26px 0 12px; }
.cf-group__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
}
.cf-group__core {
  flex-basis: 100%;
  font-size: 12.5px;
  font-weight: 400;
  color: #64748b;
  line-height: 1.6;
}
.cf-group__count {
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 2px 8px;
}

/* ---------- 概念卡片 ---------- */
.cf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cf-card {
  display: flex;
  flex-direction: column;
  padding: 14px 15px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  transition: all .16s;
}
.cf-card:hover {
  border-color: #7c3aed;
  box-shadow: 0 8px 20px rgba(124, 58, 237, .10);
  transform: translateY(-1px);
}
.cf-card__head {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.cf-card__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  margin-right: auto;
  word-break: break-word;
}
.cf-card__def {
  margin: 4px 0 8px;
  font-size: 12.5px;
  line-height: 1.68;
  color: #64748b;
  flex: 1;
}
.cf-card__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #94a3b8;
  border-top: 1px dashed #e2e8f0;
  padding-top: 7px;
}
.cf-card__key {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #94a3b8;
}

/* ---------- 徽章 ---------- */
.cf-badge {
  display: inline-block;
  font-size: 11px;
  line-height: 1.5;
  padding: 2px 7px;
  border-radius: 9px;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
  border: 1px solid transparent;
}
.cf-badge--ok        { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.cf-badge--warn      { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.cf-badge--muted     { background: #f8fafc; color: #94a3b8; border-color: #e2e8f0; }
.cf-badge--rel       { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.cf-badge--causal    { background: #fef2f2; color: #b91c1c; border-color: #fecaca; font-weight: 600; }
.cf-badge--link      { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }

/* 认知状态九种 */
.cf-badge--draft       { background: #f8fafc; color: #64748b; border-color: #cbd5e1; }
.cf-badge--pending     { background: #fefce8; color: #a16207; border-color: #fde68a; }
.cf-badge--hypothesis  { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.cf-badge--provisional { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }
.cf-badge--established { background: #ecfdf5; color: #047857; border-color: #6ee7b7; font-weight: 600; }
.cf-badge--supported   { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.cf-badge--contested   { background: #fef2f2; color: #b91c1c; border-color: #fca5a5; font-weight: 600; }
.cf-badge--revised     { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.cf-badge--deprecated  { background: #f1f5f9; color: #94a3b8; border-color: #e2e8f0; text-decoration: line-through; }

/* 来源类型三种 */
.cf-badge--o_original           { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.cf-badge--o_academic           { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.cf-badge--o_working_hypothesis { background: #f8fafc; color: #64748b; border-color: #cbd5e1; }

/* 证据立场四种 */
.cf-badge--st_support  { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.cf-badge--st_oppose   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.cf-badge--st_contest  { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.cf-badge--st_neutral  { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }

/* ---------- 详情页 ---------- */
.cf-detail__head {
  padding: 6px 0 16px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 18px;
}
.cf-detail__title {
  font-size: 24px;
  margin: 0 0 8px;
  line-height: 1.35;
}
.cf-detail__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #64748b;
}
.cf-detail__key {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #94a3b8;
}
.cf-sec {
  margin: 0 0 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.cf-sec__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 11px 15px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.cf-sec__title {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
}
.cf-sec__note {
  margin-left: auto;
  font-size: 12px;
  color: #94a3b8;
}
.cf-sec__body { padding: 13px 15px; }
.cf-sec__body p {
  margin: 0 0 9px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #334155;
}
.cf-sec__body p:last-child { margin-bottom: 0; }
.cf-sec__body--tight p { margin-bottom: 5px; }

.cf-kv {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 6px 12px;
  font-size: 13.5px;
  line-height: 1.7;
}
.cf-kv__k { color: #64748b; }
.cf-kv__v { color: #334155; word-break: break-word; }
.cf-formula {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 11px;
  overflow-x: auto;
  color: #0f172a;
}

/* ---------- 表格 ---------- */
.cf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cf-table th,
.cf-table td {
  padding: 9px 11px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.cf-table th {
  background: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.cf-table tr:last-child td { border-bottom: none; }
.cf-table td a { color: #7c3aed; text-decoration: none; }
.cf-table td a:hover { text-decoration: underline; }
.cf-table__num { white-space: nowrap; color: #64748b; font-size: 12px; }
.cf-table__muted { color: #94a3b8; }
.cf-table-wrap { overflow-x: auto; }

/* ---------- 指标卡 ---------- */
.cf-metric {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px 16px;
  margin-bottom: 12px;
}
.cf-metric__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.cf-metric__name {
  font-size: 16px;
  font-weight: 700;
}
.cf-metric__key {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: #94a3b8;
}
.cf-metric__def {
  font-size: 13.5px;
  line-height: 1.72;
  color: #334155;
  margin: 0 0 10px;
}
.cf-metric__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
  font-size: 12.5px;
  line-height: 1.65;
}
.cf-metric__row { display: flex; gap: 6px; }
.cf-metric__k { color: #94a3b8; flex-shrink: 0; }
.cf-metric__v { color: #475569; word-break: break-word; }
.cf-metric__list {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.75;
  color: #475569;
}

/* ---------- 指标卡 · 数据引用区块（阶段六） ---------- */
.cf-metric__refs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  font-size: 12.5px;
}
.cf-metric__refs-label { color: #94a3b8; }
.cf-metric__refs-link {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 600;
}
.cf-metric__refs-link:hover { text-decoration: underline; }

/* ---------- 数据浏览页（阶段六） ---------- */
.cf-filter select {
  height: 32px;
  padding: 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  max-width: 260px;
}
.cf-filter select:focus { outline: none; border-color: #7c3aed; }

.cf-data-table { font-size: 12.5px; }
.cf-data-table th { white-space: nowrap; }
.cf-data-table td { vertical-align: top; }
.cf-data-row--missing td { background: #fcfcfd; }
.cf-data-note { min-width: 220px; }
.cf-data-missing {
  color: #b45309;
  line-height: 1.6;
  margin-bottom: 3px;
}

/* ---------- 受影响面（数据变化 → 指标 / 概念 / 文章） ---------- */
.cf-impact-table { font-size: 12.5px; }
.cf-impact-table td { vertical-align: top; }
.cf-impact__item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.cf-impact__item a { color: #7c3aed; text-decoration: none; }
.cf-impact__item a:hover { text-decoration: underline; }

/* ---------- 关系图谱 3D ---------- */
.cf-g3d-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.cf-g3d-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.cf-g3d-stage {
  position: relative;
  width: 100%;
  height: 620px;
  background: #0b1120;
  overflow: hidden;
}
#cf-graph3d-canvas { display: block; width: 100%; height: 100%; }
/* 标签层：DOM 叠加，文字比 Sprite 清晰 */
.cf-g3d-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cf-g3d-label {
  position: absolute;
  top: 0;
  left: 0;
  margin-top: 10px;
  white-space: nowrap;
  font-size: 11.5px;
  line-height: 1.4;
  color: #e2e8f0;
  text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 8px rgba(0,0,0,.85);
  pointer-events: auto;
  cursor: pointer;
  transition: color .12s;
}
.cf-g3d-label:hover { color: #93c5fd; }
/* 节点详情面板 */
.cf-g3d-detail {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 260px;
  max-height: calc(100% - 24px);
  overflow-y: auto;
  padding: 12px 14px;
  background: rgba(15, 23, 42, .94);
  border: 1px solid #334155;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 12.5px;
  line-height: 1.7;
  backdrop-filter: blur(6px);
}
.cf-g3d-detail__head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  margin-bottom: 4px;
}
.cf-g3d-detail__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}
.cf-g3d-detail__close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
}
.cf-g3d-detail__close:hover { color: #fca5a5; }
.cf-g3d-detail__meta { color: #94a3b8; font-size: 11.5px; word-break: break-all; }
.cf-g3d-detail__title {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #334155;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 12px;
}
.cf-g3d-detail__list { list-style: none; margin: 4px 0 0; padding: 0; }
.cf-g3d-rel {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(51,65,85,.5);
}
.cf-g3d-rel:last-child { border-bottom: 0; }
.cf-g3d-rel__dir { color: #64748b; flex: 0 0 auto; }
.cf-g3d-rel__type { color: #94a3b8; flex: 0 0 auto; font-size: 11.5px; }
.cf-g3d-rel a { color: #93c5fd; text-decoration: none; }
.cf-g3d-rel a:hover { text-decoration: underline; }
.cf-g3d-rel--causal .cf-g3d-rel__type { color: #fca5a5; }
.cf-g3d-rel--hypo .cf-g3d-rel__type { color: #fcd34d; }
/* 底部操作提示 */
.cf-g3d-hint {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(51,65,85,.8);
  color: #94a3b8;
  font-size: 11.5px;
  pointer-events: none;
}

/* ---------- 关系图谱 ---------- */
.cf-graph-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.cf-graph-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.cf-graph-btn {
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.cf-graph-btn:hover { border-color: #7c3aed; color: #7c3aed; }
.cf-graph-btn:active { background: #f1f5f9; }
.cf-graph-btn--wide { font-size: 12.5px; }
.cf-graph-tip {
  font-size: 12px;
  color: #94a3b8;
  margin-left: 4px;
}
.cf-graph-svg {
  display: block;
  width: 100%;
  height: 560px;
  background: #fcfdff;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.cf-graph-svg.is-panning { cursor: grabbing; }
.cf-graph-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  color: #64748b;
}
.cf-graph-legend b { color: #334155; }
.cf-graph-legend__item { display: inline-flex; align-items: center; gap: 5px; }
.cf-graph-legend__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.cf-graph-legend__line {
  width: 16px;
  height: 2px;
  display: inline-block;
  background: #94a3b8;
}
/* 图例：带箭头的线（指向终点） */
.cf-graph-legend__arrow {
  width: 22px;
  height: 2px;
  display: inline-block;
  background: #94a3b8;
  position: relative;
}
.cf-graph-legend__arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  border-left: 7px solid #94a3b8;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
/* 图例：无方向关系（两端圆点） */
.cf-graph-legend__dotline {
  width: 22px;
  height: 2px;
  display: inline-block;
  background: #94a3b8;
  position: relative;
}
.cf-graph-legend__dotline::before,
.cf-graph-legend__dotline::after {
  content: '';
  position: absolute;
  top: -2.5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
}
.cf-graph-legend__dotline::before { left: 0; }
.cf-graph-legend__dotline::after { right: 0; }
.cf-node { cursor: pointer; }
.cf-node circle { stroke: #fff; stroke-width: 1.5px; transition: stroke .12s, stroke-width .12s; }
.cf-node:hover circle { stroke: #7c3aed; stroke-width: 2.5px; }
.cf-node.is-dragging circle { stroke: #7c3aed; stroke-width: 3px; }
.cf-node text {
  font-size: 11px;
  fill: #334155;
  pointer-events: none;
  text-anchor: middle;
}
.cf-edge { stroke: #cbd5e1; stroke-width: 1.2px; fill: none; }
.cf-edge--causal { stroke: #f87171; stroke-width: 1.8px; }
.cf-edge--hypo { stroke: #fbbf24; stroke-width: 1.6px; stroke-dasharray: 5 3; }
.cf-edge--hidden { display: none; }
.cf-edge-label { font-size: 9px; fill: #94a3b8; text-anchor: middle; pointer-events: none; }
/* 箭头/端点标记：颜色跟着边的颜色走，暗黑模式由下面的 dark-mode 规则覆盖 */
.cf-marker__arrow { fill: #cbd5e1; }
.cf-marker__dot { fill: #cbd5e1; }
#cf-arrow-causal .cf-marker__arrow { fill: #f87171; }
#cf-arrow-hypo .cf-marker__arrow { fill: #fbbf24; }
#cf-dot-causal .cf-marker__dot { fill: #f87171; }
#cf-dot-hypo .cf-marker__dot { fill: #fbbf24; }
.cf-graph-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
}
.cf-graph-ctrl label {
  font-size: 12.5px;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* =========================================================
 * 现实问题分析页（theory/analyze.php）
 * 2026-11-01 新建
 * ========================================================= */

/* ---------- 输入区 ---------- */
.an-form {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 15px 12px;
  margin-bottom: 18px;
}
.an-q {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.65;
  font-family: inherit;
  resize: vertical;
  background: #fff;
  color: #0f172a;
}
.an-q:focus { outline: none; border-color: #7c3aed; }
.an-form__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.an-form__foot button {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid #7c3aed;
  background: #7c3aed;
  color: #fff;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}
.an-form__foot button:hover { background: #6d28d9; }
.an-form__hint { font-size: 12px; color: #94a3b8; }
.an-examples {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}
.an-examples__label { font-size: 12.5px; color: #64748b; }

/* ---------- 九步流程总览 ---------- */
.an-flow {
  display: flex;
  align-items: stretch;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.an-flow__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: #334155;
  font-size: 12.5px;
}
.an-flow__item:hover { border-color: #7c3aed; color: #7c3aed; }
.an-flow__item.is-empty { opacity: .55; }
.an-flow__no {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7c3aed;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  flex-shrink: 0;
}
.an-flow__item.is-empty .an-flow__no { background: #cbd5e1; }
.an-flow__n { color: #94a3b8; font-size: 11.5px; }

.an-question {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 11px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 18px;
}
.an-question__label {
  font-size: 12px;
  color: #7c3aed;
  font-weight: 600;
  flex-shrink: 0;
}
.an-question__text { font-size: 14.5px; color: #0f172a; font-weight: 600; }

/* ---------- 步骤块 ---------- */
.an-step {
  margin: 0 0 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  scroll-margin-top: 12px;
}
.an-step__head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 11px 15px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.an-step__no {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #7c3aed;
  color: #fff;
  font-size: 12.5px;
  line-height: 22px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 700;
}
.an-step__title { font-size: 15px; font-weight: 700; }
.an-step__note { margin-left: auto; font-size: 12px; color: #94a3b8; }
.an-step__body { padding: 13px 15px; }

.an-list { display: flex; flex-direction: column; gap: 9px; }
.an-item {
  padding: 11px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.an-item.is-hypo { border-left: 3px solid #fbbf24; }
.an-item.is-gap  { border-left: 3px solid #f59e0b; }
.an-item__head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.an-item__title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  word-break: break-word;
}
.an-item__title:hover { color: #7c3aed; }
.an-item__title a { color: #7c3aed; text-decoration: none; }
.an-item__title a:hover { text-decoration: underline; }
.an-arrow { color: #94a3b8; font-weight: 400; margin: 0 2px; }
.an-item__text {
  font-size: 13px;
  line-height: 1.72;
  color: #334155;
  margin-bottom: 4px;
}
.an-item__quote {
  font-size: 13px;
  line-height: 1.75;
  color: #334155;
  border-left: 3px solid #e2e8f0;
  padding-left: 10px;
  margin-bottom: 4px;
}
.an-item__meta { font-size: 11.5px; line-height: 1.6; color: #94a3b8; }
.an-item__meta a { color: #7c3aed; text-decoration: none; }
.an-item__meta a:hover { text-decoration: underline; }

/* ---------- 六把尺子 ---------- */
.an-rulers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.an-ruler {
  padding: 13px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  border-top: 3px solid #cbd5e1;
}
.an-ruler--hard      { border-top-color: #dc2626; }
.an-ruler--tradeoff  { border-top-color: #f59e0b; }
.an-ruler--forbidden { border-top-color: #7c3aed; }
.an-ruler__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.an-ruler__name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}
.an-ruler__name:hover { color: #7c3aed; }
.an-ruler__q {
  font-size: 13.5px;
  line-height: 1.7;
  color: #0f172a;
  font-weight: 600;
  margin-bottom: 4px;
}
.an-ruler__sum {
  font-size: 12.5px;
  line-height: 1.65;
  color: #64748b;
  margin-bottom: 8px;
}
.an-ruler__block { margin-bottom: 8px; }
.an-ruler__k {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  margin-bottom: 2px;
}
.an-ruler__v { font-size: 12.5px; line-height: 1.68; color: #334155; }
.an-ruler__list {
  margin: 2px 0 0;
  padding-left: 17px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #475569;
}
.an-ruler__list li { margin-bottom: 3px; }
.an-ruler__list a { color: #7c3aed; text-decoration: none; }
.an-ruler__list a:hover { text-decoration: underline; }

/* 层标记 */
.an-zone {
  display: inline-block;
  font-size: 11px;
  line-height: 1.5;
  padding: 2px 8px;
  border-radius: 9px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.an-zone--hard      { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.an-zone--tradeoff  { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.an-zone--forbidden { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }

/* 尺子冲突登记 */
.an-conflict {
  padding: 9px 11px;
  border: 1px dashed #fcd34d;
  border-radius: 9px;
  background: #fffbeb;
  margin-bottom: 7px;
}
.an-conflict__head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.an-conflict__with { font-size: 12.5px; font-weight: 700; color: #92400e; }
.an-conflict__text { font-size: 12.5px; line-height: 1.68; color: #475569; }
.an-conflict__meta { font-size: 11.5px; line-height: 1.6; color: #94a3b8; margin-top: 3px; }
.an-conflict__zone {
  font-size: 11.5px;
  line-height: 1.6;
  color: #92400e;
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px dashed #fcd34d;
}

/* ---------- 制度方案分层 ---------- */
.an-zone-block {
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  overflow: hidden;
}
.an-zone-block--hard      { border-left: 3px solid #dc2626; }
.an-zone-block--tradeoff  { border-left: 3px solid #f59e0b; }
.an-zone-block--forbidden { border-left: 3px solid #7c3aed; }
.an-zone-block__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 13px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.an-zone-block__tag { font-size: 12px; color: #64748b; }
.an-zone-block__desc {
  padding: 8px 13px 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: #64748b;
}
.an-zone-block .an-list { padding: 10px 13px 13px; }

/* ---------- 认知类型分区 ---------- */
.an-type {
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.an-type__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.an-type__name { font-size: 14px; font-weight: 700; }
.an-type__n { margin-left: auto; font-size: 12px; color: #94a3b8; }
.an-type__desc {
  padding: 9px 14px 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: #64748b;
}
.an-type .an-list { padding: 10px 14px 14px; }
.an-type--fact       { border-top: 3px solid #0d9488; }
.an-type--inference  { border-top: 3px solid #2563eb; }
.an-type--theory     { border-top: 3px solid #7c3aed; }
.an-type--hypothesis { border-top: 3px solid #f59e0b; }
.an-type--value      { border-top: 3px solid #be123c; }
.an-type--policy     { border-top: 3px solid #334155; }

/* ---------- 页脚 ---------- */
.cf-foot {
  margin: 34px 0 0;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.75;
  color: #64748b;
}
.cf-foot p { margin: 0 0 6px; }
.cf-foot p:last-child { margin-bottom: 0; }
.cf-foot b { color: #334155; }
.cf-foot a { color: #7c3aed; font-weight: 600; text-decoration: none; }
.cf-foot a:hover { text-decoration: underline; }

/* ---------- 暗黑模式 ---------- */
body.dark-mode .cf-wrap { color: #e2e8f0; }
body.dark-mode .cf-nav { border-color: #334155; }
body.dark-mode .cf-nav__brand { color: #e2e8f0; }
body.dark-mode .cf-nav__brand:hover { color: #93c5fd; }
body.dark-mode .cf-nav__link { color: #94a3b8; }
body.dark-mode .cf-nav__link:hover { background: #1e293b; color: #93c5fd; }
body.dark-mode .cf-nav__link.is-active { background: #2563eb; color: #fff; }
body.dark-mode .cf-nav__link--admin { border-color: #475569; color: #94a3b8; }
body.dark-mode .cf-hero p,
body.dark-mode .cf-detail__meta { color: #94a3b8; }
body.dark-mode .cf-hero__stats { color: #93c5fd; }
body.dark-mode .cf-hint { background: #1e293b; border-color: #334155; color: #cbd5e1; }
body.dark-mode .cf-hint--err { background: #3f1d1d; border-color: #7f1d1d; color: #fca5a5; }
body.dark-mode .cf-hint--warn { background: #3b2f10; border-color: #78350f; color: #fcd34d; }
body.dark-mode .cf-empty { color: #64748b; }
body.dark-mode .cf-filter,
body.dark-mode .cf-graph-ctrl { background: #1e293b; border-color: #334155; }
body.dark-mode .cf-chip { background: #0f172a; border-color: #334155; color: #94a3b8; }
body.dark-mode .cf-chip:hover { border-color: #60a5fa; color: #93c5fd; }
body.dark-mode .cf-chip.is-active { background: #2563eb; border-color: #2563eb; color: #fff; }
body.dark-mode .cf-filter__count { color: #94a3b8; }
body.dark-mode .cf-search input[type="text"] { background: #0f172a; border-color: #334155; color: #e2e8f0; }
body.dark-mode .cf-group__core { color: #94a3b8; }
body.dark-mode .cf-group__count { background: #1e293b; color: #94a3b8; }
body.dark-mode .cf-card { background: #0f172a; border-color: #334155; color: #e2e8f0; }
body.dark-mode .cf-card:hover { border-color: #60a5fa; box-shadow: 0 8px 20px rgba(96, 165, 250, .14); }
body.dark-mode .cf-card__def { color: #94a3b8; }
body.dark-mode .cf-card__foot { border-color: #334155; color: #64748b; }
body.dark-mode .cf-card__key { color: #64748b; }
body.dark-mode .cf-sec { background: #0f172a; border-color: #334155; }
body.dark-mode .cf-sec__head { background: #1e293b; border-color: #334155; }
body.dark-mode .cf-sec__body p,
body.dark-mode .cf-kv__v { color: #cbd5e1; }
body.dark-mode .cf-kv__k { color: #94a3b8; }
body.dark-mode .cf-formula { background: #1e293b; border-color: #334155; color: #e2e8f0; }
body.dark-mode .cf-table th { background: #1e293b; color: #94a3b8; border-color: #334155; }
body.dark-mode .cf-table td { border-color: #334155; }
body.dark-mode .cf-table td a { color: #93c5fd; }
body.dark-mode .cf-table__num { color: #94a3b8; }
body.dark-mode .cf-metric { background: #0f172a; border-color: #334155; }
body.dark-mode .cf-metric__def { color: #cbd5e1; }
body.dark-mode .cf-metric__k { color: #64748b; }
body.dark-mode .cf-metric__v { color: #cbd5e1; }
body.dark-mode .cf-metric__list { color: #cbd5e1; }
body.dark-mode .cf-metric__refs { border-color: #334155; }
body.dark-mode .cf-metric__refs-label { color: #64748b; }
body.dark-mode .cf-metric__refs-link { color: #93c5fd; }
body.dark-mode .cf-filter select { background: #0f172a; border-color: #334155; color: #e2e8f0; }
body.dark-mode .cf-data-row--missing td { background: #0b1220; }
body.dark-mode .cf-data-missing { color: #fcd34d; }
body.dark-mode .cf-impact__item a { color: #93c5fd; }
body.dark-mode .cf-graph-wrap { background: #0f172a; border-color: #334155; }
body.dark-mode .cf-graph-svg { background: #0f172a; }
body.dark-mode .cf-graph-toolbar { background: #1e293b; border-color: #334155; }
body.dark-mode .cf-graph-btn { background: #0f172a; border-color: #334155; color: #cbd5e1; }
body.dark-mode .cf-graph-btn:hover { border-color: #60a5fa; color: #93c5fd; }
body.dark-mode .cf-graph-tip { color: #64748b; }
body.dark-mode .cf-graph-legend { border-color: #334155; color: #94a3b8; }
body.dark-mode .cf-graph-legend b { color: #cbd5e1; }
body.dark-mode .cf-node text { fill: #cbd5e1; }
body.dark-mode .cf-edge { stroke: #334155; }
body.dark-mode .cf-marker__arrow { fill: #64748b; }
body.dark-mode .cf-marker__dot { fill: #64748b; }
body.dark-mode .cf-foot { background: #1e293b; border-color: #334155; color: #94a3b8; }
body.dark-mode .cf-foot b { color: #cbd5e1; }
body.dark-mode .cf-foot a { color: #93c5fd; }

/* ---------- 现实问题分析页 · 暗黑模式 ---------- */
body.dark-mode .an-form { background: #0f172a; border-color: #334155; }
body.dark-mode .an-q { background: #1e293b; border-color: #334155; color: #e2e8f0; }
body.dark-mode .an-form__hint { color: #64748b; }
body.dark-mode .an-examples { border-color: #334155; }
body.dark-mode .an-examples__label { color: #94a3b8; }
body.dark-mode .an-flow__item { background: #0f172a; border-color: #334155; color: #cbd5e1; }
body.dark-mode .an-flow__item:hover { border-color: #60a5fa; color: #93c5fd; }
body.dark-mode .an-flow__n { color: #64748b; }
body.dark-mode .an-question { background: #1e293b; border-color: #334155; }
body.dark-mode .an-question__label { color: #93c5fd; }
body.dark-mode .an-question__text { color: #e2e8f0; }
body.dark-mode .an-step { background: #0f172a; border-color: #334155; }
body.dark-mode .an-step__head { background: #1e293b; border-color: #334155; }
body.dark-mode .an-step__title { color: #e2e8f0; }
body.dark-mode .an-step__note { color: #64748b; }
body.dark-mode .an-item { background: #0f172a; border-color: #334155; }
body.dark-mode .an-item__title { color: #e2e8f0; }
body.dark-mode .an-item__title:hover { color: #93c5fd; }
body.dark-mode .an-item__title a { color: #93c5fd; }
body.dark-mode .an-item__text,
body.dark-mode .an-item__quote { color: #cbd5e1; }
body.dark-mode .an-item__quote { border-color: #334155; }
body.dark-mode .an-item__meta { color: #64748b; }
body.dark-mode .an-item__meta a { color: #93c5fd; }
body.dark-mode .an-ruler { background: #0f172a; border-color: #334155; }
body.dark-mode .an-ruler__name { color: #e2e8f0; }
body.dark-mode .an-ruler__name:hover { color: #93c5fd; }
body.dark-mode .an-ruler__q { color: #e2e8f0; }
body.dark-mode .an-ruler__sum { color: #94a3b8; }
body.dark-mode .an-ruler__k { color: #64748b; }
body.dark-mode .an-ruler__v { color: #cbd5e1; }
body.dark-mode .an-ruler__list { color: #cbd5e1; }
body.dark-mode .an-ruler__list a { color: #93c5fd; }
body.dark-mode .an-zone--hard      { background: #3f1d1d; color: #fca5a5; border-color: #7f1d1d; }
body.dark-mode .an-zone--tradeoff  { background: #3b2f10; color: #fcd34d; border-color: #78350f; }
body.dark-mode .an-zone--forbidden { background: #2e1065; color: #c4b5fd; border-color: #5b21b6; }
body.dark-mode .an-conflict { background: #3b2f10; border-color: #78350f; }
body.dark-mode .an-conflict__with { color: #fcd34d; }
body.dark-mode .an-conflict__text { color: #cbd5e1; }
body.dark-mode .an-conflict__meta { color: #64748b; }
body.dark-mode .an-conflict__zone { color: #fcd34d; border-color: #78350f; }
body.dark-mode .an-zone-block { border-color: #334155; }
body.dark-mode .an-zone-block__head { background: #1e293b; border-color: #334155; }
body.dark-mode .an-zone-block__tag { color: #94a3b8; }
body.dark-mode .an-zone-block__desc { color: #94a3b8; }
body.dark-mode .an-type { border-color: #334155; }
body.dark-mode .an-type__head { background: #1e293b; border-color: #334155; }
body.dark-mode .an-type__name { color: #e2e8f0; }
body.dark-mode .an-type__n { color: #64748b; }
body.dark-mode .an-type__desc { color: #94a3b8; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .cf-grid { grid-template-columns: repeat(2, 1fr); }
  .an-rulers { grid-template-columns: 1fr; }
  .cf-metric__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cf-grid { grid-template-columns: 1fr; }
  .cf-hero h1 { font-size: 22px; }
  .cf-detail__title { font-size: 20px; }
  .cf-kv { grid-template-columns: 1fr; gap: 2px 0; }
  .cf-kv__k { margin-top: 6px; }
  .cf-graph-svg { height: 440px; }
}
