/* =========================================================================
   一棵小燃 · 三年内容复盘报告
   styles.css —— 设计 token + 16 组件库（H2）
   视觉系统按 REPORT_PROJECT_PLAN.md 第 12.4 节定死
   ========================================================================= */

/* ---------- 1. 设计 token（CSS 变量） ---------- */
:root {
  /* 色彩（12.4 定死） */
  --bg:           #FAF7F4;   /* 暖白/象牙 背景主色 */
  --ink:          #1E1A17;   /* 近黑暖棕 文字主色 */
  --accent:       #C2456A;   /* 浆果玫红 主强调色 */
  --accent-soft:  #d97a96;   /* 强调色浅化 */
  --brown:        #8A6A5B;   /* 暖棕 次级标注 */
  --sand:         #E8DCD3;   /* 浅米 卡片分隔/底纹 */
  --sand-deep:    #ddccbf;   /* 浅米加深 */
  --gray-early:   #B8B0A8;   /* 低置信/早期数据 */
  --dark:         #221C19;   /* 深色分隔屏 */
  --paper:        #fffdfb;   /* 卡片纸面 */

  --ink-60:       rgba(30, 26, 23, 0.62);
  --ink-45:       rgba(30, 26, 23, 0.45);
  --ink-12:       rgba(30, 26, 23, 0.12);
  --ink-06:       rgba(30, 26, 23, 0.06);

  /* 字体栈（12.4 定死，系统无衬线，不引外网 webfont） */
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system,
          BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --serif: "Georgia", "Times New Roman", "Songti SC", serif;

  /* 间距节奏 */
  --gap-block: clamp(72px, 10vw, 150px);   /* 区块间留白 96-160 */
  --pad-x: clamp(20px, 6vw, 96px);          /* 横向内边距 */
  --content-max: 1180px;
  --text-max: 720px;

  /* 圆角与阴影 */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px -16px rgba(30, 26, 23, 0.28);
  --shadow-hover: 0 22px 48px -18px rgba(30, 26, 23, 0.38);

  /* 动效时长 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. 基础 reset & 排版 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }

/* 字体层级（12.4） */
.t-hero   { font-size: clamp(40px, 7vw, 64px); }
.t-h2     { font-size: clamp(28px, 4.4vw, 40px); }
.t-h3     { font-size: clamp(21px, 3vw, 28px); }
.t-lead   { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.75; color: var(--ink); }
.t-small  { font-size: 13.5px; line-height: 1.6; }
.t-note   { font-size: 12.5px; line-height: 1.6; color: var(--brown); }
.serif    { font-family: var(--serif); }
.accent   { color: var(--accent); }
.brown    { color: var(--brown); }

/* ---------- 3. 布局容器 ---------- */
.section {
  position: relative;
  padding: var(--gap-block) var(--pad-x);
  max-width: 100vw;
}
.wrap { max-width: var(--content-max); margin: 0 auto; }
.text-col { max-width: var(--text-max); }
.eyebrow {
  font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brown); font-weight: 700; margin-bottom: 14px;
}
.section-num {
  position: absolute; top: clamp(20px, 5vw, 56px); right: var(--pad-x);
  font-family: var(--serif); font-size: clamp(80px, 16vw, 200px);
  font-weight: 700; color: var(--accent); opacity: 0.07; line-height: 0.8;
  pointer-events: none; z-index: 0; user-select: none;
}
.section > .wrap { position: relative; z-index: 1; }

/* ---------- 4. 主线引导线（12.4 / 12.5 核心） ---------- */
.guideline {
  position: fixed; top: 0; left: clamp(14px, 4vw, 52px);
  width: 2px; height: 100vh; z-index: 40; pointer-events: none;
}
.guideline-track { position: absolute; inset: 0; background: var(--ink-12); }
.guideline-progress {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  transition: height 0.1s linear;
}
.guideline-dot {
  position: absolute; left: 50%; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(194, 69, 106, 0.18);
  transition: top 0.1s linear;
}
@media (max-width: 767px) { .guideline { display: none; } }

/* 进度条顶端（移动端备用提示） */
.topbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 50;
  background: var(--accent); }

/* ---------- 5. 封面 Hero（区块 0） ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad-x); position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center 18%;
  opacity: 0.16; filter: grayscale(8%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(250,247,244,0.55) 0%, rgba(250,247,244,0.82) 60%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; width: 100%; }
.hero-kicker { font-size: 14px; letter-spacing: 0.3em; color: var(--brown); font-weight: 700; }
.hero h1 { margin: 18px 0 6px; }
.hero h1 .mark { color: var(--accent); }
.hero-sub { font-family: var(--serif); font-size: clamp(16px, 2.4vw, 22px); color: var(--brown); margin-bottom: 30px; }
.hero-line {
  font-size: clamp(19px, 2.6vw, 26px); line-height: 1.7; max-width: 760px;
  font-weight: 500; margin-bottom: 42px;
}
.hero-line .hl { background: linear-gradient(transparent 62%, rgba(194,69,106,0.22) 62%); padding: 0 2px; }
.hero-anchors { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); }
.hero-anchor .num { font-family: var(--serif); font-size: clamp(30px, 5vw, 48px); font-weight: 700; color: var(--accent); line-height: 1; }
.hero-anchor .lab { font-size: 13px; color: var(--brown); margin-top: 6px; letter-spacing: 0.04em; }
.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: 0.2em; color: var(--brown); text-align: center; z-index: 1;
}
.scroll-cue .arrow { display: block; margin: 8px auto 0; width: 1px; height: 30px; background: var(--brown);
  animation: cueFloat 2.2s var(--ease) infinite; }
@keyframes cueFloat { 0%,100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(8px); opacity: 1; } }

/* ---------- 6. 组件 15：章首分隔屏 chapter-divider（深色满屏） ---------- */
.chapter-divider {
  background: var(--dark); color: var(--bg); min-height: 78vh;
  display: flex; align-items: center; padding: var(--gap-block) var(--pad-x);
  position: relative; overflow: hidden;
}
.chapter-divider .cd-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.13; z-index: 0;
}
.chapter-divider .wrap { position: relative; z-index: 1; max-width: 900px; }
.cd-num {
  font-family: var(--serif); font-size: clamp(72px, 16vw, 168px); font-weight: 700;
  color: var(--accent); opacity: 0.9; line-height: 0.8; margin-bottom: 8px;
}
.cd-part { font-size: 13px; letter-spacing: 0.3em; color: var(--sand-deep); font-weight: 700; margin-bottom: 16px; }
.cd-title { font-size: clamp(30px, 5.2vw, 52px); margin-bottom: 22px; }
.cd-q { font-size: clamp(17px, 2.4vw, 22px); color: var(--sand); max-width: 640px; line-height: 1.7; }

/* ---------- 7. 组件 1：作品卡 work-card ---------- */
.work-card {
  background: var(--paper); border: 1px solid var(--ink-06); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.work-card .wc-img { aspect-ratio: 3/4; background: var(--sand); overflow: hidden; }
.work-card .wc-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.work-card .wc-body { padding: 16px 18px 18px; }
.work-card .wc-title { font-size: 15.5px; font-weight: 700; line-height: 1.45; margin-bottom: 10px; }
.work-card .wc-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--brown); margin-bottom: 10px; }
.work-card .wc-stats b { color: var(--accent); font-family: var(--serif); font-size: 16px; }
.work-card .wc-take { font-size: 13.5px; color: var(--ink-60); line-height: 1.55; }

/* ---------- 8. 组件 2：数据卡 stat-card ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stat-card {
  background: var(--paper); border: 1px solid var(--ink-06); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow);
}
.stat-card .sc-num { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 46px); font-weight: 700; color: var(--accent); line-height: 1; }
.stat-card .sc-num small { font-size: 0.45em; color: var(--brown); font-family: var(--sans); margin-left: 2px; }
.stat-card .sc-lab { font-size: 13.5px; color: var(--ink-60); margin-top: 10px; }
.stat-card .sc-ref { font-size: 12px; color: var(--brown); margin-top: 4px; }

/* ---------- 9. 组件 3：评论卡 comment-card ---------- */
.comment-masonry { columns: 3 240px; column-gap: 16px; }
.comment-card {
  background: var(--paper); border: 1px solid var(--ink-06); border-radius: var(--radius);
  padding: 16px 17px; margin-bottom: 16px; break-inside: avoid; box-shadow: var(--shadow);
}
.comment-card .cc-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.comment-card .cc-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--sand-deep), var(--brown)); opacity: 0.7;
}
.comment-card .cc-name { font-size: 12.5px; color: var(--brown); }
.comment-card .cc-text { font-size: 14.5px; line-height: 1.6; }
.comment-card .cc-tag {
  display: inline-block; margin-top: 11px; font-size: 11.5px; padding: 3px 10px;
  border-radius: 100px; background: rgba(194,69,106,0.1); color: var(--accent); font-weight: 600;
}

/* ---------- 10. 组件 4：方向卡 direction-card ---------- */
.direction-card {
  background: var(--paper); border: 1px solid var(--ink-06); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.direction-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.direction-card .dc-badge {
  align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 4px 12px;
  border-radius: 100px; margin-bottom: 14px; letter-spacing: 0.04em;
}
.dc-badge.main { background: var(--accent); color: #fff; }
.dc-badge.boost { background: var(--sand); color: var(--brown); }
.direction-card .dc-name { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.direction-card .dc-desc { font-size: 14px; color: var(--ink-60); margin-bottom: 16px; }
.dc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dc-col h5 { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.05em; }
.dc-col.opp h5 { color: var(--accent); }
.dc-col.risk h5 { color: var(--brown); }
.dc-col ul { margin: 0; padding-left: 15px; font-size: 12.8px; line-height: 1.55; color: var(--ink-60); }
.dc-col li { margin-bottom: 4px; }
.dc-need { margin-top: 16px; font-size: 12.5px; color: var(--brown); border-top: 1px dashed var(--ink-12); padding-top: 12px; }
.dc-need b { color: var(--ink); }

/* ---------- 11. 组件 5/6：对标卡 benchmark-card / 趋势信号卡 signal-card ---------- */
.benchmark-card, .signal-card {
  background: var(--paper); border: 1px solid var(--ink-06); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.benchmark-card:hover, .signal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.benchmark-card .bc-cat { font-size: 17px; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.benchmark-card .bc-row { font-size: 13.5px; line-height: 1.55; margin-bottom: 9px; }
.benchmark-card .bc-row b { color: var(--brown); display: block; font-size: 11.5px; letter-spacing: 0.05em; margin-bottom: 1px; }
.signal-card .sg-trend { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.signal-card .sg-trend::before { content: "›"; color: var(--accent); margin-right: 8px; font-weight: 700; }
.signal-card .sg-rel { font-size: 13.5px; color: var(--ink-60); line-height: 1.55; }
.signal-card .sg-rel b { color: var(--accent); }

/* ---------- 12. 组件 7：12 格图展示 contact-grid ---------- */
.contact-grid { margin: 0; }
.contact-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--ink-06); background: var(--paper); }
.contact-grid img { width: 100%; }
.contact-grid figcaption { font-size: 12.5px; color: var(--brown); padding: 11px 15px; background: var(--paper); }
.contact-grid figcaption b { color: var(--ink); }

/* ---------- 13. 组件 8：时间线 timeline ---------- */
.timeline { position: relative; padding-left: 4px; }
.timeline .tl-axis { position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--ink-12); }
.tl-node { position: relative; padding: 0 0 26px 36px; }
.tl-node::before {
  content: ""; position: absolute; left: 2px; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--brown);
}
.tl-node.peak::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(194,69,106,0.15); }
.tl-node .tl-when { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); }
.tl-node.peak .tl-when { color: var(--accent); }
.tl-node .tl-meta { font-size: 13px; color: var(--brown); margin: 2px 0 5px; }
.tl-node .tl-body { font-size: 14px; color: var(--ink-60); line-height: 1.55; }

/* ---------- 14. 组件 9：脸部主题地图 face-map ---------- */
.face-map-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
.face-stage { position: relative; }
.face-svg { width: 100%; height: auto; display: block; }
.face-hot {
  cursor: pointer; transition: transform 0.3s var(--ease);
}
.face-hot circle { fill: rgba(194,69,106,0.16); stroke: var(--accent); stroke-width: 1.6; transition: all 0.3s var(--ease); }
.face-hot text { fill: var(--ink); font-size: 11px; font-weight: 700; font-family: var(--sans); }
.face-hot:hover circle, .face-hot.active circle { fill: var(--accent); }
.face-hot:hover text, .face-hot.active text { fill: #fff; }
.face-detail {
  background: var(--paper); border: 1px solid var(--ink-06); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); min-height: 280px;
}
.face-detail .fd-topic { font-size: 21px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.face-detail .fd-core { font-size: 14px; color: var(--brown); margin-bottom: 18px; }
.face-detail .fd-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; }
.face-detail .fd-stats div { font-size: 12.5px; color: var(--brown); }
.face-detail .fd-stats b { display: block; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.face-detail .fd-works { font-size: 13.5px; line-height: 1.7; }
.face-detail .fd-works .w { display: block; padding: 6px 0; border-top: 1px dashed var(--ink-12); }
.face-detail .fd-works .w b { color: var(--ink); }
.face-detail .fd-works .w span { color: var(--brown); }

/* ---------- 15. 组件 10：Top 榜 rank-list ---------- */
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-row { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: center; }
.rank-row .rk-no { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--accent); opacity: 0.85; text-align: center; }
.rank-row .rk-bar-wrap { }
.rank-row .rk-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 5px; }
.rank-row .rk-title { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.rank-row .rk-val { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.rank-row .rk-bar { height: 8px; border-radius: 100px; background: var(--ink-06); overflow: hidden; }
.rank-row .rk-fill { height: 100%; width: 0; border-radius: 100px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent)); transition: width 1.1s var(--ease); }
.rank-row.ref .rk-fill { background: linear-gradient(90deg, #c2ad9f, var(--brown)); }
.badge-verified {
  font-size: 10.5px; color: var(--brown); border: 1px solid var(--sand-deep); border-radius: 100px;
  padding: 1px 7px; margin-left: 7px; white-space: nowrap; font-weight: 600; vertical-align: middle;
}

/* ---------- 16. 组件 11：核心资产雷达 asset-radar ---------- */
.radar-wrap { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: center; }
.radar-svg { width: 100%; max-width: 360px; height: auto; }
.radar-svg .grid-poly { fill: none; stroke: var(--ink-12); stroke-width: 1; }
.radar-svg .axis { stroke: var(--ink-12); stroke-width: 1; }
.radar-svg .shape { fill: rgba(194,69,106,0.16); stroke: var(--accent); stroke-width: 2;
  stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.6s var(--ease), fill 1.6s var(--ease); }
.radar-svg .lbl { fill: var(--ink); font-size: 11.5px; font-weight: 700; font-family: var(--sans); }
.radar-svg .dot { fill: var(--accent); }
.asset-list { list-style: none; margin: 0; padding: 0; }
.asset-list li { padding: 12px 0; border-top: 1px solid var(--ink-12); }
.asset-list li:first-child { border-top: none; }
.asset-list b { color: var(--accent); }

/* ---------- 17. 组件 12：方向矩阵 direction-matrix ---------- */
.matrix-filter { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.matrix-filter button {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; cursor: pointer;
  padding: 9px 20px; border-radius: 100px; border: 1px solid var(--ink-12);
  background: transparent; color: var(--ink-60); transition: all 0.25s var(--ease);
}
.matrix-filter button:hover { border-color: var(--accent); color: var(--accent); }
.matrix-filter button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.direction-matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.direction-card.hide { display: none; }

/* ---------- 18. 组件 13：双栏对照 compare-cols ---------- */
.compare-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare-col {
  border-radius: var(--radius); padding: 26px; border: 1px solid var(--ink-06);
}
.compare-col.keep { background: rgba(194,69,106,0.05); }
.compare-col.friction { background: var(--paper); }
.compare-col h4 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.compare-col.keep h4 { color: var(--accent); }
.compare-col.friction h4 { color: var(--brown); }
.compare-col h4 .tick { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; flex: none; }
.compare-col.keep h4 .tick { background: var(--accent); }
.compare-col.friction h4 .tick { background: var(--brown); }
.compare-col ul { margin: 0; padding-left: 18px; }
.compare-col li { font-size: 14.5px; line-height: 1.6; margin-bottom: 11px; color: var(--ink); }
.compare-col li b { color: var(--ink); }

/* 高低对比双联卡 */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.duo-card {
  background: var(--paper); border: 1px solid var(--ink-06); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.duo-card.win { border-top: 4px solid var(--accent); }
.duo-card.flat { border-top: 4px solid var(--gray-early); }
.duo-card .du-img { aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.duo-card .du-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.duo-card .du-body { padding: 18px 20px 20px; }
.duo-card .du-flag { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; }
.duo-card.win .du-flag { color: var(--accent); }
.duo-card.flat .du-flag { color: var(--gray-early); }
.duo-card .du-title { font-size: 15.5px; font-weight: 700; margin: 6px 0 8px; line-height: 1.45; }
.duo-card .du-stats { font-size: 13.5px; color: var(--brown); margin-bottom: 10px; }
.duo-card .du-stats b { color: var(--ink); font-family: var(--serif); }
.duo-card .du-take { font-size: 13.5px; color: var(--ink-60); line-height: 1.55; }

/* ---------- 19. 组件 14：数据口径条 data-note ---------- */
.data-note {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--sand); border-radius: var(--radius-sm);
  padding: 15px 19px; font-size: 13px; color: var(--brown); line-height: 1.6;
  border-left: 3px solid var(--brown);
}
.data-note .dn-ico { flex: none; font-size: 15px; line-height: 1.4; }
.data-note b { color: var(--ink); }
.data-note.honest { background: transparent; border-left-color: var(--ink-12); color: var(--ink-45); font-size: 12.5px; padding-left: 16px; }

/* ---------- 20. 组件 16：引用块 pull-quote ---------- */
.pull-quote {
  font-family: var(--serif); font-size: clamp(22px, 3.4vw, 34px); line-height: 1.5;
  color: var(--ink); max-width: 880px; margin: 8px auto; position: relative; padding-left: 26px;
  border-left: 3px solid var(--accent); font-weight: 500;
}
.pull-quote .pq-by { display: block; font-family: var(--sans); font-size: 14px; color: var(--brown); margin-top: 16px; font-weight: 600; }
.inline-quote {
  border-left: 3px solid var(--sand-deep); padding: 4px 0 4px 18px; margin: 18px 0;
  font-size: 15px; color: var(--ink-60); font-style: italic;
}

/* ---------- 21. 通用小部件 ---------- */
.lead-strong { font-size: clamp(18px, 2.3vw, 22px); line-height: 1.7; font-weight: 500; }
.takeaway {
  background: var(--ink); color: var(--bg); border-radius: var(--radius);
  padding: 28px 32px; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.6; font-weight: 500;
}
.takeaway .accent { color: var(--accent-soft); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: 9px 0 9px 30px; position: relative; font-size: 14.5px; line-height: 1.5; border-top: 1px solid var(--ink-12); }
.checklist li:first-child { border-top: none; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.divider-line { height: 1px; background: var(--ink-12); border: none; margin: 0; }

/* 三层判断 */
.tri-judge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tri-judge .tj { background: var(--paper); border: 1px solid var(--ink-06); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.tri-judge .tj h5 { font-size: 13px; letter-spacing: 0.04em; margin-bottom: 10px; }
.tri-judge .tj.fact h5 { color: var(--accent); }
.tri-judge .tj.maybe h5 { color: var(--brown); }
.tri-judge .tj.unknown h5 { color: var(--gray-early); }
.tri-judge .tj p { font-size: 13.5px; line-height: 1.55; color: var(--ink-60); margin: 0; }

/* 三类影响因素 */
.factor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.factor-card { background: var(--paper); border: 1px solid var(--ink-06); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.factor-card .fc-no { font-family: var(--serif); font-size: 30px; color: var(--accent); opacity: 0.35; line-height: 1; }
.factor-card h4 { font-size: 17px; margin: 8px 0 10px; }
.factor-card p { font-size: 13.5px; color: var(--ink-60); line-height: 1.55; margin: 0; }

/* 演进轴（形式变化） */
.evo-axis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 30px; }
.evo-axis::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--ink-12); }
.evo-step { position: relative; padding: 30px 12px 0; }
.evo-step::before { content: ""; position: absolute; left: 12px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.evo-step .ev-year { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--accent); }
.evo-step .ev-body { font-size: 13px; color: var(--ink-60); line-height: 1.5; margin-top: 6px; }

/* 数据新鲜度分档 */
.fresh-bars { display: flex; flex-direction: column; gap: 12px; }
.fresh-row { display: grid; grid-template-columns: 130px 1fr 56px; gap: 14px; align-items: center; }
.fresh-row .fr-lab { font-size: 13px; font-weight: 600; }
.fresh-row .fr-track { height: 22px; border-radius: 6px; background: var(--ink-06); overflow: hidden; }
.fresh-row .fr-fill { height: 100%; width: 0; border-radius: 6px; transition: width 1.1s var(--ease); }
.fresh-row .fr-cnt { font-size: 12.5px; color: var(--brown); text-align: right; }
.fresh-row[data-level="high"] .fr-fill { background: var(--accent); }
.fresh-row[data-level="mid"] .fr-fill { background: var(--accent-soft); }
.fresh-row[data-level="midlow"] .fr-fill { background: var(--brown); }
.fresh-row[data-level="low"] .fr-fill { background: #c2ad9f; }
.fresh-row[data-level="vlow"] .fr-fill { background: var(--gray-early); }

/* 交叉题材横向条形 */
.hbar-list { display: flex; flex-direction: column; gap: 13px; }
.hbar { display: grid; grid-template-columns: 120px 1fr 44px; gap: 14px; align-items: center; }
.hbar .hb-lab { font-size: 13.5px; font-weight: 600; }
.hbar .hb-track { height: 14px; border-radius: 100px; background: var(--ink-06); overflow: hidden; }
.hbar .hb-fill { height: 100%; width: 0; border-radius: 100px; background: linear-gradient(90deg, var(--accent-soft), var(--accent)); transition: width 1.1s var(--ease); }
.hbar .hb-val { font-size: 13px; color: var(--brown); text-align: right; }

/* 看了什么 清单卡 */
.scan-card { background: var(--paper); border: 1px solid var(--ink-06); border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow); }
.scan-card h4 { font-size: 15px; margin-bottom: 16px; color: var(--brown); letter-spacing: 0.03em; }
.scan-items { display: flex; flex-wrap: wrap; gap: 10px; }
.scan-items span { font-size: 13.5px; padding: 8px 16px; border-radius: 100px; background: var(--sand); color: var(--ink); }

/* 公式流程 */
.formula-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; }
.flow-step { flex: 1 1 180px; background: var(--paper); border: 1px solid var(--ink-06); border-radius: var(--radius); padding: 20px; position: relative; box-shadow: var(--shadow); }
.flow-step + .flow-step { margin-left: -1px; }
.flow-step .fl-no { font-family: var(--serif); font-size: 14px; color: var(--accent); font-weight: 700; }
.flow-step .fl-name { font-size: 15.5px; font-weight: 700; margin: 6px 0 7px; }
.flow-step .fl-desc { font-size: 13px; color: var(--ink-60); line-height: 1.5; }
.formula-result { margin-top: 24px; }

/* 旧资产 ↔ 外部对照表 */
.map-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.map-table th, .map-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--ink-12); vertical-align: top; }
.map-table th { font-size: 12.5px; letter-spacing: 0.04em; color: var(--brown); font-weight: 700; }
.map-table td:first-child { color: var(--accent); font-weight: 600; }
.map-table tr:last-child td { border-bottom: none; }

/* 过渡期对照小表 */
.mini-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mini-table th, .mini-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--ink-12); }
.mini-table th { color: var(--brown); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.mini-table td b { color: var(--accent); }

/* ---------- 22. 折叠附录 accordion ---------- */
.accordion { border-top: 1px solid var(--ink-12); }
.acc-item { border-bottom: 1px solid var(--ink-12); }
.acc-head {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 4px; font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.acc-head:hover { color: var(--accent); }
.acc-head .acc-ico { flex: none; width: 22px; height: 22px; position: relative; transition: transform 0.3s var(--ease); }
.acc-head .acc-ico::before, .acc-head .acc-ico::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.acc-head .acc-ico::before { left: 0; top: 10px; width: 22px; height: 2px; }
.acc-head .acc-ico::after { left: 10px; top: 0; width: 2px; height: 22px; transition: opacity 0.3s var(--ease); }
.acc-item.open .acc-head .acc-ico::after { opacity: 0; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.acc-panel-inner { padding: 4px 4px 28px; overflow-x: auto; }
.acc-panel-inner table { width: 100%; border-collapse: collapse; font-size: 12.8px; min-width: 560px; }
.acc-panel-inner th, .acc-panel-inner td { padding: 8px 11px; border-bottom: 1px solid var(--ink-12); text-align: left; white-space: nowrap; }
.acc-panel-inner th { color: var(--brown); font-weight: 700; font-size: 11.5px; position: sticky; top: 0; background: var(--bg); }
.acc-panel-inner td.wrap-cell { white-space: normal; min-width: 200px; }
.acc-panel-inner .num { text-align: right; font-family: var(--serif); }
.acc-source { font-size: 13.5px; line-height: 1.8; }
.acc-source a { word-break: break-all; }

/* ---------- 23. 结语 ---------- */
.closing {
  background: var(--dark); color: var(--bg); position: relative; overflow: hidden;
  padding: clamp(90px, 14vw, 180px) var(--pad-x);
}
.closing .cl-bg { position: absolute; inset: 0; background-size: cover; background-position: center 22%; opacity: 0.1; filter: blur(3px) grayscale(12%); transform: scale(1.08); z-index: 0; }
.closing .cl-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 90% at 50% 38%, rgba(20,16,14,0.25) 0%, rgba(20,16,14,0.72) 68%, var(--dark) 100%); }
.closing .wrap { position: relative; z-index: 1; max-width: 720px; }
.closing .cl-eyebrow { color: var(--accent-soft); font-size: 12.5px; letter-spacing: 0.25em; font-weight: 700; margin-bottom: 22px; }
.closing p { font-size: clamp(17px, 2.3vw, 20px); line-height: 1.9; color: var(--sand); }
.closing p.lead { color: #fff; font-size: clamp(20px, 3vw, 28px); font-weight: 500; line-height: 1.6; }
.closing .cl-sign { margin-top: 40px; font-family: var(--serif); font-size: 17px; color: var(--accent-soft); }
.closing .cl-converge { display: flex; flex-direction: column; align-items: center; margin-top: 30px; }
.closing .cl-converge .ln { width: 2px; height: 60px; background: linear-gradient(180deg, transparent, var(--accent)); }
.closing .cl-converge .pt { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(194,69,106,0.2); }

/* ---------- 24. 页脚 ---------- */
.footer { padding: 50px var(--pad-x); text-align: center; font-size: 12.5px; color: var(--brown); }

/* ---------- 25. 进场动效（滚动淡入；reduced-motion 降级见底部） ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

.cd-num, .cd-title, .cd-q, .cd-part { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.chapter-divider.in .cd-part { opacity: 1; transform: none; transition-delay: 0.05s; }
.chapter-divider.in .cd-num  { opacity: 0.9; transform: none; transition-delay: 0.18s; }
.chapter-divider.in .cd-title{ opacity: 1; transform: none; transition-delay: 0.34s; }
.chapter-divider.in .cd-q    { opacity: 1; transform: none; transition-delay: 0.5s; }

.hero-fade { opacity: 0; transform: translateY(20px); animation: heroIn 0.9s var(--ease) forwards; }
.hero-fade.h1 { animation-delay: 0.15s; }
.hero-fade.h2 { animation-delay: 0.35s; }
.hero-fade.h3 { animation-delay: 0.55s; }
.hero-fade.h4 { animation-delay: 0.75s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------- 26. 响应式三档（≥1024 / 768-1023 / <768） ---------- */
@media (max-width: 1023px) {
  body { font-size: 16px; }
  .face-map-wrap, .radar-wrap { grid-template-columns: 1fr; gap: 28px; }
  .radar-svg { max-width: 320px; margin: 0 auto; }
  .comment-masonry { columns: 2 220px; }
  .tri-judge, .factor-grid { grid-template-columns: 1fr; }
  .evo-axis { grid-template-columns: 1fr 1fr; }
  .evo-axis::before { display: none; }
}
@media (max-width: 767px) {
  body { font-size: 15.5px; line-height: 1.75; }
  .section { padding-left: 20px; padding-right: 20px; }
  .compare-cols, .duo-grid, .dc-cols { grid-template-columns: 1fr; }
  .comment-masonry { columns: 1; }
  .evo-axis { grid-template-columns: 1fr; }
  .formula-flow { flex-direction: column; }
  .flow-step + .flow-step { margin-left: 0; margin-top: -1px; }
  .map-table, .mini-table { font-size: 12.5px; }
  .map-table th, .map-table td, .mini-table th, .mini-table td { padding: 9px 8px; }
  /* 12 格图在手机端可横向滚动 */
  .contact-grid.scrollable { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .contact-grid.scrollable figure { min-width: 460px; }
  .fresh-row { grid-template-columns: 92px 1fr 40px; gap: 9px; }
  .fresh-row .fr-lab { font-size: 11.5px; }
  .hbar { grid-template-columns: 88px 1fr 36px; gap: 9px; }
  .rank-row { grid-template-columns: 24px 1fr; gap: 10px; }
  .takeaway { padding: 22px 22px; }
}

/* ---------- 27. 无障碍：尊重 reduced-motion（12.5 硬要求） ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .cd-num, .cd-title, .cd-q, .cd-part { opacity: 1 !important; transform: none !important; }
  .cd-num { opacity: 0.9 !important; }
  .hero-fade { opacity: 1 !important; transform: none !important; }
  .radar-svg .shape { stroke-dashoffset: 0 !important; }
  .scroll-cue .arrow { animation: none !important; }
  .rk-fill, .hb-fill, .fr-fill { transition: none !important; }
}
