:root {
  /* 5 swimlane 配色 */
  --ifi: #2D5F3F;
  --ifi-bg: #E8F1EC;
  --recf: #A5402F;
  --recf-bg: #F5E8E6;
  --chuangshou: #1E4D7B;
  --chuangshou-bg: #E5ECF3;
  --china-other: #8B6F3D;
  --china-other-bg: #F2EDE2;
  --rules: #5C4D6E;
  --rules-bg: #EDE8F1;

  /* 中性色 */
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --paper: #FAF8F3;
  --paper-line: #E8E2D4;

  /* 证据强度 */
  --tier-3-bg: #1A1A1A;
  --tier-3-fg: #FFFFFF;
  --tier-2-fg: #4A4A4A;
  --tier-1-fg: #999999;
  --conjecture-bg: #F5EDD8;

  /* 字体 */
  --font-cn: 'Noto Serif SC', serif;
  --font-en: 'Lora', Georgia, serif;
  --font-mono: 'JetBrains Mono', Menlo, monospace;
  --font-ui: -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-cn);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
}

:lang(en) { font-family: var(--font-en); }

code, .mono, time {
  font-family: var(--font-mono);
}

/* § 0 Hero */
.hero {
  background: linear-gradient(180deg, #1A1A1A 0%, #2A2520 100%);
  color: var(--paper);
  padding: 80px 24px 100px;
  border-bottom: 4px solid var(--recf);
}
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: #A5402F;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 28px;
}
.hero-tagline { font-size: 20px; color: #C7C2B5; margin-bottom: 48px; max-width: 800px; }
.status-card {
  background: rgba(165, 64, 47, 0.15);
  border-left: 4px solid var(--recf);
  padding: 24px 32px;
  margin-bottom: 32px;
}
.status-label { font-size: 12px; color: #A5402F; letter-spacing: 0.2em; margin-bottom: 12px; }
.status-headline { font-size: 22px; font-weight: 700; margin-bottom: 8px; font-family: var(--font-mono); }
.status-body { color: #C7C2B5; }
.hero-meta { display: flex; gap: 16px; font-size: 13px; color: #888; flex-wrap: wrap; }

/* § 1 Reader Nav (sticky) */
.reader-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-line);
  padding: 12px 24px;
}
.nav-inner { max-width: 1400px; margin: 0 auto; }
.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 8px; flex-wrap: wrap; }
.lane-legend, .tier-legend { display: flex; gap: 8px; flex-wrap: wrap; }
.lane-chip {
  font-size: 11px; padding: 3px 10px; border-radius: 3px;
  font-weight: 600; letter-spacing: 0.05em;
}
.lane-chip[data-lane="ifi"]         { background: var(--ifi-bg); color: var(--ifi); }
.lane-chip[data-lane="recf"]        { background: var(--recf-bg); color: var(--recf); }
.lane-chip[data-lane="chuangshou"]  { background: var(--chuangshou-bg); color: var(--chuangshou); }
.lane-chip[data-lane="china-other"] { background: var(--china-other-bg); color: var(--china-other); }
.lane-chip[data-lane="rules"]       { background: var(--rules-bg); color: var(--rules); }
.tier { font-size: 11px; padding: 3px 8px; font-family: var(--font-mono); }
.tier-3 { background: var(--tier-3-bg); color: var(--tier-3-fg); }
.tier-2 { color: var(--tier-2-fg); }
.tier-1 { color: var(--tier-1-fg); }
.tier-c { background: var(--conjecture-bg); }
.glossary-chips { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 8px; }
.g-chip {
  background: transparent;
  border: 1px solid var(--paper-line);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-ui);
}
.g-chip:hover { background: var(--ink); color: var(--paper); }

/* § 4 Timeline Grid (5-column) + Section Title shared */
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  margin-bottom: 12px;
}
.seasons-section { padding: 80px 24px; }
.timeline-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.timeline-grid > .lane-header {
  position: sticky;
  top: 92px;
  background: var(--paper);
  padding: 8px 0;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  border-bottom: 2px solid currentColor;
  z-index: 50;
}
.lane-header[data-lane="ifi"]         { color: var(--ifi); }
.lane-header[data-lane="recf"]        { color: var(--recf); }
.lane-header[data-lane="chuangshou"]  { color: var(--chuangshou); }
.lane-header[data-lane="china-other"] { color: var(--china-other); }
.lane-header[data-lane="rules"]       { color: var(--rules); }

/* 节点卡片 base */
.node {
  background: white;
  border-left: 3px solid currentColor;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.node[data-lane="ifi"]         { color: var(--ifi); }
.node[data-lane="recf"]        { color: var(--recf); }
.node[data-lane="chuangshou"]  { color: var(--chuangshou); }
.node[data-lane="china-other"] { color: var(--china-other); }
.node[data-lane="rules"]       { color: var(--rules); }
.node > * { color: var(--ink); }

.node-date { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.node-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.node-body { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px; }
.node-source { font-size: 12px; }
.node-source a { color: currentColor; text-decoration: none; border-bottom: 1px dotted; }
.node-source a:hover { border-bottom-style: solid; }

/* 响应式断点 */
@media (max-width: 1279px) {
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .timeline-grid { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .node::before {
    content: attr(data-lane-label);
    display: inline-block;
    font-size: 10px;
    background: currentColor;
    color: white;
    padding: 2px 6px;
    margin-bottom: 6px;
  }
  .seasons-section { padding: 40px 16px; }
}

/* § 3 Pre-VEX Prelude */
.prelude-section { background: linear-gradient(180deg, var(--paper) 0%, #F3EFE2 100%); padding: 80px 24px; }
.section-inner { max-width: 900px; margin: 0 auto; }
.section-lead { font-size: 18px; color: var(--ink-soft); margin-bottom: 48px; }
.prelude-timeline { list-style: none; border-left: 2px solid var(--paper-line); padding-left: 32px; }
.prelude-node { position: relative; margin-bottom: 32px; }
.prelude-node::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  border: 2px solid var(--paper);
}
.prelude-node[data-lane="ifi"] { color: var(--ifi); }
.prelude-node .node-title { color: var(--ink); font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.45; }
.prelude-node .node-title .tier { vertical-align: middle; margin-left: 6px; }
.prelude-node .node-body { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 8px; }
.prelude-node .node-date { color: var(--ink-soft); font-size: 13px; margin-bottom: 6px; display: block; }
.prelude-node .node-source { font-size: 12.5px; }
.prelude-node .node-source a { color: var(--ifi); border-bottom: 1px dotted; text-decoration: none; }
.prelude-node .node-source a:hover { border-bottom-style: solid; }

/* § 2 People Map */
.people-section { background: white; padding: 80px 24px; }
.people-group-title { font-size: 22px; font-weight: 700; margin: 48px 0 24px; padding-bottom: 12px; border-bottom: 2px solid var(--paper-line); }
.people-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.person-card { padding: 24px; border: 1px solid var(--paper-line); background: var(--paper); }
.person-head { margin-bottom: 12px; border-bottom: 1px solid var(--paper-line); padding-bottom: 12px; }
.person-name { font-size: 18px; font-weight: 700; }
.person-name .tier { margin-left: 8px; vertical-align: middle; }
.person-legal { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.person-roles { list-style: none; margin-bottom: 12px; }
.person-roles li { font-size: 13.5px; padding-left: 16px; position: relative; margin-bottom: 4px; }
.person-roles li::before { content: '▸'; position: absolute; left: 0; color: var(--ink-soft); }
.person-note { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; padding: 8px 12px; background: white; border-left: 2px solid var(--paper-line); }
.person-sources { font-size: 11.5px; }
.person-sources a { color: var(--ink); border-bottom: 1px dotted; text-decoration: none; }
.person-sources a:hover { border-bottom-style: solid; }

/* § 4 Season Block Component */
.season-block {
  border-top: 4px solid var(--ink);
  padding: 64px 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.season-block:nth-child(even) { background: rgba(232, 226, 212, 0.3); }
.season-head { margin-bottom: 32px; max-width: 800px; }
.season-year { font-size: 13px; letter-spacing: 0.2em; color: var(--ink-soft); margin-bottom: 8px; }
.season-name { font-size: 36px; font-weight: 900; margin-bottom: 12px; }
.season-game-type { font-size: 14px; padding: 2px 8px; background: var(--ink); color: var(--paper); vertical-align: middle; }
.season-summary { font-size: 16px; color: var(--ink-soft); }
.block-label { font-size: 13px; letter-spacing: 0.15em; color: var(--ink-soft); margin-bottom: 12px; text-transform: uppercase; }
.season-rules, .season-events { margin: 32px 0; }
.season-rules p, .season-events p { font-size: 14px; color: var(--ink-soft); }

/* Seasons section wraps season-blocks; remove section-title from Task 1.4's seasons-section
   because each season-block now has its own header */
#seasons.seasons-section { padding: 0; max-width: none; }
#seasons.seasons-section > .section-title-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 24px 0;
}

/* § 4 Event List inside season-block */
.event-list { list-style: none; margin-left: 0; }
.event-list li { padding: 10px 14px; background: var(--paper); border-left: 3px solid var(--ink); margin-bottom: 8px; font-size: 14px; }
.event-list li time { font-family: var(--font-mono); color: var(--ink-soft); margin-right: 8px; }
.event-list .event-body { color: var(--ink-soft); font-size: 13px; display: block; margin-top: 4px; }
.event-list .tier { vertical-align: middle; margin-left: 6px; }

/* § 5 Push Back Special Section */
.push-back-section { background: linear-gradient(180deg, #1A1A1A 0%, #2A1A1A 100%); color: var(--paper); padding: 100px 24px; }
.pb-hero { max-width: 1100px; margin: 0 auto 48px; }
.pb-title { font-size: clamp(36px, 5vw, 60px); font-weight: 900; margin: 12px 0; }
.pb-summary { font-size: 18px; color: #C7C2B5; }
.pb-versions { max-width: 1400px; margin: 0 auto; }
.pb-versions .block-label { color: #C7C2B5; }
.pb-version-track { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.pb-version-track li {
  flex: 1 1 200px;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid #888;
  font-size: 13px;
}
.pb-version-track li.critical { border-left-color: var(--recf); background: rgba(165,64,47,0.15); }
.pb-version-track li.pending { opacity: 0.4; border-left-style: dashed; }
.pb-version-track time { display: block; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.pb-version-track .release { display: block; font-size: 11px; color: #888; margin-bottom: 6px; font-family: var(--font-mono); }
.pb-source { font-size: 12px; color: #888; }
.pb-source a { color: #C7C2B5; border-bottom: 1px dotted; text-decoration: none; }
.pb-source a:hover { color: #FFF; border-bottom-style: solid; }

/* § 5 Push Back Spotlight Blocks */
.pb-spotlight {
  max-width: 900px;
  margin: 48px auto;
  padding: 32px 40px;
  background: rgba(255,255,255,0.04);
  border-left: 4px solid var(--recf);
}
.spotlight-tag { font-size: 11px; color: #C7C2B5; letter-spacing: 0.2em; margin-bottom: 12px; }
.spotlight-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.spotlight-title .tier { vertical-align: middle; margin-left: 8px; }
.pdf-quote {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 16px;
  line-height: 1.7;
  padding: 20px 24px;
  background: rgba(0,0,0,0.3);
  border-left: 2px solid #888;
  margin: 16px 0;
  color: #DDD;
}
.spotlight-note { font-size: 14px; color: #C7C2B5; margin-bottom: 12px; }
.spotlight-source { font-size: 12px; color: #888; }
.spotlight-source a { color: #C7C2B5; border-bottom: 1px dotted; text-decoration: none; }
.spotlight-source a:hover { color: #FFF; border-bottom-style: solid; }

/* § 5 Legal Spotlight Variant */
.legal-spotlight .spotlight-body { font-size: 15px; color: #C7C2B5; margin-bottom: 20px; line-height: 1.7; }
.legal-spotlight .spotlight-body strong { color: #FFF; }
.legal-actors-block { margin: 16px 0; padding: 16px 20px; background: rgba(0,0,0,0.2); border-left: 2px solid #888; }
.legal-actors-block .block-label { color: var(--recf); margin-bottom: 8px; margin-top: 12px; }
.legal-actors-block .block-label:first-child { margin-top: 0; }
.legal-actors { list-style: none; }
.legal-actors li { font-size: 13.5px; color: #C7C2B5; padding: 4px 0 4px 14px; position: relative; }
.legal-actors li::before { content: '▸'; position: absolute; left: 0; color: var(--recf); }
.legal-actors li strong { color: #FFF; }

/* § 6 Watch Period */
.watch-section { background: var(--conjecture-bg); padding: 80px 24px; }
.conjecture-banner { background: white; padding: 12px 16px; border-left: 4px solid #B8860B; margin-bottom: 32px; font-size: 14px; }
.watch-list { list-style: none; margin: 32px 0; }
.watch-node { padding: 24px; background: white; margin-bottom: 16px; border-left: 3px solid #B8860B; }
.watch-node time { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink-soft); }
.watch-node h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.watch-node p { font-size: 14px; color: var(--ink-soft); }
.watch-node .tier { vertical-align: middle; margin-left: 8px; }
.conjecture-body { background: var(--conjecture-bg); padding: 8px 12px; }

/* § 7 Evidence Index */
.evidence-section { background: white; padding: 80px 24px; }
.evidence-list { list-style: none; margin: 16px 0 32px; padding-left: 8px; }
.evidence-list li { font-size: 14px; padding: 6px 0; line-height: 1.7; color: var(--ink-soft); }
.evidence-list li a { color: var(--ink); border-bottom: 1px dotted; text-decoration: none; }
.evidence-list li a:hover { border-bottom-style: solid; }

/* § 8 Gap */
.gap-section { background: var(--paper); padding: 80px 24px; }
.gap-list { list-style: none; margin: 16px 0 32px; padding-left: 8px; }
.gap-list li { font-size: 14px; padding: 4px 0 4px 16px; position: relative; color: var(--ink-soft); }
.gap-list li::before { content: '•'; position: absolute; left: 0; color: var(--ink-soft); }

/* § 9 Methodology */
.methodology-section { background: #2A2520; color: var(--paper); padding: 80px 24px; }
.methodology-section .section-title { color: var(--paper); }
.methodology-section .block-label { color: #C7C2B5; margin-top: 32px; }
.methodology-list { list-style: none; margin-bottom: 16px; }
.methodology-list li { font-size: 14.5px; padding: 6px 0 6px 16px; position: relative; color: #C7C2B5; }
.methodology-list li::before { content: '▸'; position: absolute; left: 0; color: #888; }
.methodology-list li strong { color: #FFF; }
.methodology-note { font-size: 14px; color: #C7C2B5; margin: 16px 0; padding: 12px 16px; background: rgba(255,255,255,0.05); border-left: 2px solid #888; }
.methodology-note strong { color: #FFF; }

/* Glossary Drawer */
#g-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  padding: 32px;
  transition: right 0.3s ease;
  z-index: 200;
  overflow-y: auto;
}
#g-drawer.open { right: 0; }
.drawer-close { position: absolute; top: 16px; right: 16px; font-size: 24px; background: none; border: none; cursor: pointer; line-height: 1; padding: 4px 12px; }
.drawer-close:hover { background: var(--paper); }
.drawer-term { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em; color: var(--ink-soft); margin-bottom: 16px; }
.drawer-content { font-size: 14px; line-height: 1.7; }

/* Print Support — A4/A3 landscape, 1-2 col, no interactive elements */
@media print {
  body { background: white; color: black; font-size: 11pt; }
  .reader-nav, .glossary-chips, .g-chip { display: none; }
  .hero { background: white; color: black; padding: 40px; border-bottom: 2px solid black; }
  .hero-title, .hero-tagline, .hero-meta, .status-card { color: black; }
  .timeline-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .pb-spotlight, .legal-spotlight { background: white !important; color: black !important; border: 1px solid black; }
  .pdf-quote { background: #f5f5f5 !important; color: black !important; }
  .push-back-section, .methodology-section { background: white !important; color: black; }
  .push-back-section *, .methodology-section * { color: black !important; }
  a { color: black; text-decoration: none; }
  a::after { content: ' [' attr(href) ']'; font-size: 9pt; color: #666; }
  .pb-version-track li.pending { display: none; }
  section { page-break-inside: avoid; }
  .season-block { page-break-inside: avoid; }
  .pb-spotlight { page-break-inside: avoid; }
  .person-card { page-break-inside: avoid; }
}

/* Phase 7: per-season 5-lane horizontal */
.season-swimlanes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--paper-line);
}
.season-lane {
  border-left: 3px solid currentColor;
  padding: 10px 12px;
  background: white;
  min-height: 80px;
}
.season-lane[data-lane="ifi"]         { color: var(--ifi); }
.season-lane[data-lane="recf"]        { color: var(--recf); }
.season-lane[data-lane="chuangshou"]  { color: var(--chuangshou); }
.season-lane[data-lane="china-other"] { color: var(--china-other); }
.season-lane[data-lane="rules"]       { color: var(--rules); }
.season-lane .lane-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 700;
}
.lane-events { list-style: none; }
.lane-events li {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dotted var(--paper-line);
  line-height: 1.55;
}
.lane-events li:last-child { border-bottom: 0; }
.lane-events time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  display: inline-block;
  margin-right: 4px;
}
.lane-events .tier { font-size: 10px; margin-left: 4px; vertical-align: middle; }
.lane-events a { color: currentColor; border-bottom: 1px dotted; text-decoration: none; font-size: 11px; }
.lane-events .lane-empty { color: #BBB; font-style: italic; font-size: 11px; }

@media (max-width: 1279px) {
  .season-swimlanes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .season-swimlanes { grid-template-columns: 1fr; }
}
