/* =========================================================
   读图笔记 · Price Action Notes
   暖纸浅色 / 衬线标题 / 橙色强调
   ========================================================= */

:root {
  --bg: #faf5ec;
  --bg-2: #f3ecdf;
  --card: #fffdf8;
  --paper: #ffffff;
  --ink: #1c1915;
  --ink-2: #3d3830;
  --muted: #6f675b;
  --muted-2: #9a8f7f;
  --line: #e6dccb;
  --line-2: #d7c8ae;
  --accent: #ef7a3c;
  --accent-ink: #c9561c;
  --accent-soft: #fde4d2;
  --accent-wash: #fff6ee;
  --accent-line: #f3d2ba;
  --navy: #15284b;
  --navy-2: #101f3b;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --hand: "Kaiti SC", "STKaiti", "KaiTi", "Liu Jian Mao Cao", cursive;
  --latin: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --wrap: 1200px;
  --shadow: 0 30px 60px -40px rgba(60, 40, 10, 0.45);
  --shadow-sm: 0 18px 34px -26px rgba(60, 40, 10, 0.45);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); margin: 0; line-height: 1.32; letter-spacing: 0.01em; text-wrap: balance; }
ul, ol { margin: 0; }
button { font-family: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 64px, var(--wrap)); margin: 0 auto; }

.skip {
  position: absolute; left: -9999px; top: 10px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { left: 12px; }

/* ---------- 按钮与通用元素 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 12px 24px -14px rgba(239, 122, 60, 0.9); }
.btn-accent:hover { background: var(--accent-ink); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--card); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #000; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1.5px solid var(--accent-line); padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: var(--accent-ink); border-color: var(--accent); }
.text-link.light { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.text-link.light:hover { border-color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12.5px/1.4 var(--sans); letter-spacing: 0.09em;
  color: var(--accent-ink); margin-bottom: 14px;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.eyebrow-light { color: #f6a77a; }
.eyebrow-light i { background: var(--accent); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 11.5px/1 var(--sans); letter-spacing: 0.04em;
  color: var(--accent-ink); background: var(--accent-wash);
  border: 1px solid var(--accent-line); border-radius: 999px; padding: 6px 10px;
}

/* ---------- 顶栏 ---------- */
.top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 245, 236, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand .mark { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--serif); font-size: 20px; font-weight: 800; letter-spacing: 0.02em; }
.brand-text i {
  font-style: normal; font-size: 9.5px; letter-spacing: 0.16em;
  color: var(--muted); margin-top: 5px; text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  position: relative; text-decoration: none; font-size: 15px; font-weight: 500;
  color: var(--ink-2); padding: 8px 14px; border-radius: 8px;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover { color: var(--accent-ink); }
.nav-link.is-active { color: var(--ink); font-weight: 600; }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.nav-mark { display: none; }

.menu-btn {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--card);
  cursor: pointer; padding: 0; position: relative;
}
.menu-btn span {
  position: absolute; left: 12px; right: 12px; height: 1.8px; background: var(--ink);
  border-radius: 2px; transition: transform 0.25s, opacity 0.25s, top 0.25s;
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 24px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; padding: 60px 0 24px; overflow: clip; }
.hero::before {
  content: ""; position: absolute; right: -12%; top: -30%; width: 62%; height: 130%;
  background: radial-gradient(closest-side, rgba(245, 195, 59, 0.18), transparent 72%);
  pointer-events: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.3vw, 54px); font-weight: 900; line-height: 1.3; }
.hero .lead { margin: 22px 0 28px; font-size: 17px; color: var(--ink-2); line-height: 1.95; max-width: 32em; }
.hero-note { margin-top: 20px; font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.swoosh { position: relative; display: inline-block; white-space: nowrap; color: var(--ink); }
.swoosh svg { position: absolute; left: -1%; bottom: -0.14em; width: 102%; height: 0.34em; overflow: visible; }
.swoosh path {
  fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  animation: draw 1.1s 0.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-visual { position: relative; padding: 0 0 52px 10px; }
.chart-card {
  margin: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 12px; box-shadow: var(--shadow);
  transform: rotate(1.1deg); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chart-card:hover { transform: rotate(0deg) translateY(-2px); }
.chart-card figcaption {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); padding: 4px 8px 11px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb36d; box-shadow: 0 0 0 4px rgba(47, 179, 109, 0.16); flex: none; }
.chart-card .fig-svg { width: 100%; height: auto; border-radius: 12px; background: var(--paper); }

.hand-note {
  position: absolute; left: -10px; bottom: -6px; display: flex; align-items: flex-start; gap: 2px;
  color: var(--accent-ink); font-family: var(--hand); font-size: 21px; line-height: 1.3;
  transform: rotate(-3.5deg);
}
.hand-note svg { width: 56px; height: 36px; margin-top: -14px; }
.hand-note path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.stats {
  margin-top: 46px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: 20px; background: var(--card); overflow: hidden;
}
.stats > div { padding: 22px 26px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats b { display: block; font-family: var(--serif); font-size: 32px; font-weight: 800; line-height: 1.1; }
.stats span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* ---------- 通用 section ---------- */
.sec { padding: 88px 0; }
.sec-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 800px; margin-bottom: 38px; }
.sec-head h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 900; }
.sec-head .sub { margin-top: 12px; font-size: 16px; color: var(--muted); line-height: 1.9; }
.sec-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.sec-head.row > div { max-width: 720px; }

/* 学习路线 */
.stage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stage-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.stage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.sc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sc-num { font-family: var(--serif); font-size: 32px; font-weight: 900; color: var(--accent-ink); line-height: 1; }
.sc-en { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.stage-card h3 { font-size: 21px; font-weight: 800; margin: 14px 0 8px; }
.stage-card h3 a { text-decoration: none; }
.stage-card h3 a:hover { color: var(--accent-ink); }
.stage-card > p { font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.sc-links { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.sc-links a {
  font-size: 13.5px; color: var(--ink-2); text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
}
.sc-links a::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex: none; }
.sc-links a:hover { color: var(--accent-ink); }
.sc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 16px; font-size: 11px; color: var(--muted);
  border-top: 1px dashed var(--line); margin-top: auto;
}
.sc-foot span { white-space: nowrap; }
.sc-foot b { color: var(--accent-ink); font-weight: 700; }
.roadmap-note { margin-top: 22px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.roadmap-note b { color: var(--ink-2); }

/* 精选 */
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px; text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.feat-tag { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent-ink); }
.feat h3 { font-size: 22px; font-weight: 800; margin: 12px 0 8px; }
.feat p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.feat-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 20px; font-size: 12.5px; color: var(--muted);
}
.feat-meta i { font-style: normal; color: var(--accent-ink); font-size: 17px; transition: transform 0.2s; }
.feat:hover .feat-meta i { transform: translateX(3px); }

/* 术语预览 */
.glossary-teaser { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.gt-copy h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 900; }
.gt-copy .sub { margin: 14px 0 26px; font-size: 16px; color: var(--muted); line-height: 1.9; }
.gt-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip {
  display: flex; flex-direction: column; gap: 3px; padding: 15px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.chip:hover { transform: translateY(-2px); border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.chip b { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.chip span { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* 深色引言带 */
.quote-band {
  position: relative; overflow: clip;
  background: var(--navy); color: #f6efe3; padding: 78px 0;
}
.quote-band::after {
  content: ""; position: absolute; right: -8%; top: -40%; width: 46%; height: 180%;
  background: radial-gradient(closest-side, rgba(239, 122, 60, 0.24), transparent 70%);
  pointer-events: none;
}
.quote-in { position: relative; max-width: 860px; }
.quote-in blockquote {
  margin: 10px 0 20px; font-family: var(--serif); font-size: clamp(30px, 4vw, 46px);
  font-weight: 900; line-height: 1.4; color: #fff; letter-spacing: 0.01em;
}
.quote-in > p:not(.eyebrow) { color: rgba(246, 239, 227, 0.7); font-size: 15.5px; line-height: 1.95; max-width: 44em; margin-bottom: 24px; }

/* 底部 CTA */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--accent-wash); border: 1px solid var(--accent-line); border-radius: 26px;
  padding: 44px 48px;
}
.cta-band h2 { font-size: clamp(27px, 3vw, 36px); font-weight: 900; }
.cta-band .sub { margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.85; max-width: 36em; }
.cta-band .btn { flex: none; }

/* ---------- 页头（知识库 / 术语表 / 关于） ---------- */
.page-head { padding: 58px 0 30px; }
.page-head h1 { font-size: clamp(34px, 4vw, 48px); font-weight: 900; }
.page-head .lead { margin: 18px 0 0; font-size: 16.5px; color: var(--ink-2); line-height: 1.95; max-width: 46em; }
.page-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; font-size: 12.5px; color: var(--muted); }
.page-meta span { display: inline-flex; align-items: center; gap: 7px; }
.page-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* ---------- 工具条 ---------- */
.tools {
  position: sticky; top: 68px; z-index: 40;
  background: rgba(250, 245, 236, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px;
  padding: 14px 0; align-items: center;
}
.search-box {
  display: flex; align-items: center; gap: 10px; height: 44px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(239, 122, 60, 0.12); }
.search-box svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-box input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: 15px/1.4 var(--sans); color: var(--ink);
}
.search-box input::placeholder { color: var(--muted-2); }
.search-clear {
  border: 0; background: var(--bg-2); color: var(--muted); width: 24px; height: 24px;
  border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1; padding: 0;
}
.search-clear:hover { color: var(--ink); }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; grid-column: 1 / 2; grid-row: 2; }
.chip-btn {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--muted); font: 500 13px/1 var(--sans);
  cursor: pointer; transition: all 0.18s; white-space: nowrap;
}
.chip-btn:hover { color: var(--ink); border-color: var(--ink-2); }
.chip-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip-random { margin-left: auto; border-style: dashed; color: var(--accent-ink); border-color: var(--accent-line); }
.chip-random:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-wash); }

.progress-box { grid-column: 2 / 3; grid-row: 1 / 3; min-width: 210px; }
.pb-text { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 7px; }
.pb-text [data-progress-pct] { color: var(--accent-ink); font-weight: 700; }
.pb-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pb-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.35s ease; }

.result-count { grid-column: 2; grid-row: 2; font-size: 12px; color: var(--muted); text-align: right; }

/* ---------- 知识库 ---------- */
.stage-sec { padding-top: 60px; }
.stage-head {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: start;
  padding-top: 24px; border-top: 1px solid var(--line); margin-bottom: 22px;
}
.sh-num { font-family: var(--serif); font-size: 46px; font-weight: 900; line-height: 0.9; color: var(--accent-ink); }
.sh-copy h2 { font-size: 26px; font-weight: 800; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sh-copy h2 span { font-family: var(--latin); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.sh-copy p { margin-top: 7px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.sh-count { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }

.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.topic-grid.has-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1120px) {
  .topic-grid.has-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.topic-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px 18px;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s, opacity 0.22s;
}
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.topic-card.is-done { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-wash), var(--card) 62%); }
.tc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tc-num { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent-ink); }
.tc-top .tag { display: none; }
.done-toggle {
  position: relative; z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: transparent; color: transparent;
  cursor: pointer; display: grid; place-items: center; transition: all 0.2s; padding: 0;
}
.done-toggle svg { width: 15px; height: 15px; }
.done-toggle:hover { border-color: var(--accent); color: var(--accent-line); }
.done-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.topic-card h3 { font-size: 20.5px; font-weight: 800; margin: 10px 0 2px; }
.topic-card h3 a { text-decoration: none; color: var(--ink); }
.topic-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.topic-card h3 a:focus-visible { outline: none; }
.topic-card h3 a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -2px; }
.topic-card:hover h3 a { color: var(--accent-ink); }
.tc-en { font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-2); }
.tc-desc { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.tc-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--muted);
}
.tc-foot .arrow { color: var(--accent-ink); font-size: 16px; transition: transform 0.2s; }
.topic-card:hover .tc-foot .arrow { transform: translateX(3px); }

.kb-empty {
  margin: 40px 0 10px; padding: 52px 24px; text-align: center;
  background: var(--card); border: 1px dashed var(--line-2); border-radius: 18px;
}
.kb-empty p { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.kb-empty span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }

.study-note {
  margin: 76px 0 4px; padding: 32px 36px; background: var(--card);
  border: 1px solid var(--line); border-radius: 20px;
}
.study-note h2 { font-size: 22px; font-weight: 800; }
.study-note ol { margin: 16px 0 0; padding-left: 20px; }
.study-note li { font-size: 14.5px; color: var(--ink-2); line-height: 1.9; margin: 8px 0; }
.study-note b { color: var(--accent-ink); }

/* ---------- 文章页 ---------- */
.reading-bar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; background: transparent; }
.reading-bar i { display: block; height: 100%; width: 0; background: var(--accent); }

.article-wrap { padding: 26px 0 84px; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--accent-ink); }
.crumb b { color: var(--ink-2); font-weight: 600; }

.article-head { max-width: 820px; margin: 30px 0 44px; }
.article-head h1 { font-size: clamp(34px, 4.5vw, 52px); font-weight: 900; }
.article-en { margin-top: 8px; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.article-head .lead { margin-top: 18px; font-size: 18px; color: var(--ink-2); line-height: 1.9; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 12.5px; color: var(--muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta span + span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  grid-template-areas: "body toc";
  gap: 72px;
  align-items: start;
}
.toc { grid-area: toc; position: sticky; top: 100px; border-left: 1px solid var(--line); padding-left: 20px; }
.toc-title { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.toc-links { display: flex; flex-direction: column; gap: 2px; }
.toc-links a {
  display: flex; gap: 9px; padding: 5px 0; font-size: 13px; line-height: 1.55;
  color: var(--muted); text-decoration: none; transition: color 0.18s;
}
.toc-links a span { font-size: 10.5px; font-weight: 700; color: var(--accent-ink); padding-top: 2px; }
.toc-links a:hover { color: var(--ink); }
.toc-links a.is-active { color: var(--ink); font-weight: 600; }
.toc-progress { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--muted); }
.toc-progress span { color: var(--accent-ink); font-weight: 700; }

.prose { min-width: 0; }
.article-layout .prose { grid-area: body; max-width: 740px; }
.prose > p { margin: 18px 0; font-size: 16.5px; line-height: 1.98; color: var(--ink-2); }
.sec-block { scroll-margin-top: 96px; }
.sec-block h2 {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 27px; font-weight: 900; margin: 56px 0 8px;
}
.sec-block:first-child h2 { margin-top: 0; }
.sec-num { font-family: var(--latin); font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent-ink); }
.prose h3 { font-family: var(--sans); font-size: 17px; font-weight: 700; margin: 28px 0 2px; color: var(--ink); }
.prose h3 + p { margin-top: 6px; }
.prose ul { margin: 16px 0; padding-left: 22px; }
.prose li { font-size: 16px; line-height: 1.9; color: var(--ink-2); margin: 7px 0; }

.note {
  margin: 26px 0; padding: 18px 22px; background: var(--accent-wash);
  border: 1px solid var(--accent-line); border-left: 3px solid var(--accent);
  border-radius: 4px 14px 14px 4px;
}
.note b { display: block; font-size: 14px; color: var(--accent-ink); margin-bottom: 5px; letter-spacing: 0.02em; }
.note p { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }

.formula {
  margin: 26px 0; padding: 20px 22px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
  display: flex; flex-direction: column; gap: 7px; text-align: center;
  font-family: var(--serif); font-size: 16px; color: var(--ink); letter-spacing: 0.02em;
}

.pullquote {
  margin: 32px 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--accent);
  font-family: var(--serif); font-size: 22px; font-weight: 800; line-height: 1.6; color: var(--ink);
}

.fig { margin: 30px 0; }
.fig-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.fig-box .fig-svg { width: 100%; height: auto; border-radius: 10px; }
.fig figcaption { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }

.keypoints {
  margin-top: 48px; padding: 26px 30px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px;
}
.kp-title { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); }
.keypoints ul { list-style: none; padding: 0; margin: 14px 0 0; }
.keypoints li {
  position: relative; padding-left: 24px; margin: 9px 0;
  font-size: 15px; line-height: 1.85; color: var(--ink-2);
}
.keypoints li::before {
  content: ""; position: absolute; left: 2px; top: 10px; width: 9px; height: 5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

.sources { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2); line-height: 1.8; }

.read-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  margin: 36px 0 0; padding: 20px 24px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 16px;
}
.read-cta p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.read-cta .btn { flex: none; height: 44px; font-size: 14px; }
.read-cta .btn[aria-pressed="true"] { background: #2f7d58; box-shadow: none; }

.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.pn {
  display: flex; flex-direction: column; gap: 5px; padding: 16px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; transition: border-color 0.2s, transform 0.2s;
}
.pn:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.pn span { font-size: 11.5px; color: var(--muted); }
.pn b { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.pn.next { text-align: right; align-items: flex-end; }
.pn.empty { background: transparent; border: 0; }
.back-kb { margin-top: 28px; font-size: 13.5px; }
.back-kb a { color: var(--muted); text-decoration: none; }
.back-kb a:hover { color: var(--accent-ink); }

/* ---------- 术语表 ---------- */
.glossary-body { padding-bottom: 40px; }
.term-group { padding-top: 48px; }
.tg-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tg-head h2 { font-size: 22px; font-weight: 800; }
.tg-head span { font-size: 12px; color: var(--muted); }
.term-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.term {
  padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.term:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.term h3 { font-family: var(--serif); font-size: 18px; font-weight: 800; line-height: 1.4; }
.term h3 span {
  display: block; margin-top: 4px; font-family: var(--latin);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2);
}
.term p { margin-top: 10px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.term.is-flash { animation: flash 1.6s ease; }
@keyframes flash {
  0%, 100% { background: var(--card); }
  20%, 60% { background: var(--accent-soft); border-color: var(--accent); }
}

/* ---------- 关于 ---------- */
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; padding-bottom: 40px; align-items: start; }
.about-main { max-width: 720px; }
.about-main h2 { font-size: 26px; font-weight: 900; margin: 46px 0 4px; }
.about-main h2:first-child { margin-top: 0; }
.about-main > p { font-size: 16px; line-height: 1.95; color: var(--ink-2); margin: 14px 0; }
.about-main ul { margin: 16px 0; padding-left: 22px; }
.about-main li { font-size: 15.5px; line-height: 1.9; color: var(--ink-2); margin: 7px 0; }
.about-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.side-label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.side-card dl { margin: 10px 0 0; }
.side-card dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.side-card dl > div:last-child { border-bottom: 0; }
.side-card dt { font-size: 12px; color: var(--muted); flex: none; }
.side-card dd { margin: 0; font-size: 12.5px; color: var(--ink-2); text-align: right; }
.side-quote { background: var(--navy); border-color: var(--navy); }
.side-quote p { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.6; color: #f6efe3; }
.side-quote a { display: inline-block; margin-top: 14px; font-size: 12.5px; color: #f6a77a; text-decoration: none; }
.side-quote a:hover { text-decoration: underline; }

.timeline { list-style: none; padding: 0; margin: 18px 0 0; }
.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 18px; padding: 14px 0; border-top: 1px dashed var(--line); }
.timeline li span { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--accent-ink); }
.timeline li p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.8; }

/* ---------- 页脚 ---------- */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); padding: 54px 0 24px; }
.foot-in { display: grid; grid-template-columns: 1.1fr 1.6fr; gap: 56px; }
.foot-brand p { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.9; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols h3 { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.foot-cols a, .foot-cols span { display: block; font-size: 13px; line-height: 2.1; color: var(--ink-2); text-decoration: none; }
.foot-cols a:hover { color: var(--accent-ink); }
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}

/* ---------- 滚动出现 ---------- */
.reveal-ready .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal-ready .reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-in { gap: 40px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 200px; gap: 44px; }
  .term-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 620px; padding-bottom: 46px; }
  .glossary-teaser { grid-template-columns: 1fr; gap: 30px; }
  .article-layout { grid-template-columns: 1fr; grid-template-areas: "toc" "body"; gap: 26px; }
  .toc { position: static; border-left: 0; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 18px 20px; }
  .toc-links { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
  .toc-links a { padding: 3px 0; }
  .toc-progress { display: none; }
  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .about-side { position: static; }
  .foot-in { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .wrap { width: min(100% - 44px, var(--wrap)); }
  .menu-btn { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 12px 22px 18px; background: var(--bg);
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -30px rgba(60, 40, 10, 0.5);
  }
  .nav.is-open { display: flex; }
  .nav-link { padding: 12px 14px; font-size: 16px; }
  .nav-link.is-active::after { left: 14px; right: auto; width: 18px; bottom: 8px; }
  .top { position: sticky; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: clamp(32px, 7.4vw, 44px); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { border-top: 1px solid var(--line); }
  .stats > div:nth-child(1), .stats > div:nth-child(2) { border-top: 0; }
  .stats > div:nth-child(3) { border-left: 0; }
  .sec { padding: 64px 0; }
  .sec-head.row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .feat-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 34px 30px; }
  .tools { position: static; grid-template-columns: 1fr; }
  .filter-row { grid-column: 1; grid-row: 2; }
  .progress-box { grid-column: 1; grid-row: 3; }
  .result-count { grid-column: 1; grid-row: 3; text-align: left; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-head { grid-template-columns: 48px 1fr; }
  .sh-num { font-size: 38px; }
  .sh-count { grid-column: 2; justify-self: start; margin-top: 4px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .read-cta { flex-direction: column; align-items: flex-start; }
  .read-cta .btn { width: 100%; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 36px, var(--wrap)); }
  .brand-text i { display: none; }
  .brand-text b { font-size: 18px; }
  .hero .lead { font-size: 16px; }
  .chart-card { transform: none; }
  .hand-note { left: 4px; bottom: -14px; font-size: 18px; }
  .hand-note svg { width: 46px; height: 30px; margin-top: -10px; }
  .stats > div { padding: 18px 20px; }
  .stats b { font-size: 26px; }
  .stage-grid, .topic-grid, .topic-grid.has-4, .term-grid { grid-template-columns: 1fr; }
  .gt-chips { grid-template-columns: 1fr 1fr; }
  .page-head { padding-top: 42px; }
  .sec-block h2 { font-size: 23px; }
  .prose > p { font-size: 16px; }
  .pullquote { font-size: 19px; }
  .keypoints { padding: 22px; }
  .prev-next { grid-template-columns: 1fr; }
  .pn.empty { display: none; }
  .pn.next { text-align: left; align-items: flex-start; }
  .foot-cols { grid-template-columns: 1fr; gap: 18px; }
  .foot-base { flex-direction: column; }
  .timeline li { grid-template-columns: 64px 1fr; gap: 12px; }
  .article-head h1 { font-size: 32px; }
  .article-head .lead { font-size: 16.5px; }
  .toc-links { flex-direction: column; }
  .study-note { padding: 24px; }
  .quote-band { padding: 56px 0; }
  .hero-note { font-size: 12px; }
  .fig-box { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 8px; }
  .fig-box .fig-svg { min-width: 560px; }
  .fig figcaption::after { content: " · 左右滑动查看"; color: var(--muted-2); }
}

@media (max-width: 400px) {
  .ctas .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .swoosh path { animation: none; stroke-dashoffset: 0; }
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  .chart-card, .topic-card, .stage-card, .feat, .chip, .term { transition: none; }
}

@media print {
  .top, .foot, .tools, .reading-bar, .toc, .read-cta, .prev-next, .hand-note { display: none !important; }
  body { background: #fff; }
  .article-wrap { padding: 0; }
  .article-layout { display: block; }
  a { text-decoration: none; color: #000; }
}
