:root {
  --paper: #f7efe3;
  --paper-deep: #eee2d0;
  --ink: #1d2d38;
  --muted: #6c746f;
  --coral: #ec765d;
  --gold: #e9b64b;
  --teal: #4d9a95;
  --indigo: #5967aa;
  --blue: #5188b7;
  --lilac: #927cb4;
  --green: #6e9d73;
  --white: #fffaf3;
  --shadow: 0 12px 28px rgba(36, 45, 54, .1);
  --round: 22px;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 20;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.site-shell { overflow: hidden; }
.section-pad { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(247, 239, 227, .92);
  border-bottom: 1px solid rgba(29, 45, 56, .1);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border: 2px solid var(--ink); border-radius: 50%; font-family: Georgia, serif; font-size: 21px; font-weight: 900; background: var(--gold); transform: rotate(-8deg); }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-size: 15px; letter-spacing: .08em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.top-nav { display: flex; gap: 26px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.top-nav a { transition: color .2s ease; }
.top-nav a:hover { color: var(--coral); }
.mode-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(29,45,56,.2); border-radius: 999px; padding: 8px 12px; color: var(--ink); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.toggle-dot { width: 9px; height: 9px; border: 2px solid var(--ink); border-radius: 50%; background: transparent; }
.mode-toggle[aria-pressed="true"] { color: var(--white); background: var(--ink); }
.mode-toggle[aria-pressed="true"] .toggle-dot { background: var(--gold); border-color: var(--gold); }

.hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; padding-top: 80px; padding-bottom: 74px; }
.eyebrow, .section-kicker, .note-label { margin: 0 0 14px; color: var(--coral); font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.hero h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(48px, 7vw, 86px); line-height: .98; letter-spacing: -.07em; }
.hero h1 em { color: var(--coral); font-style: normal; }
.hero-lede { max-width: 420px; margin: 28px 0 0; color: #52615f; font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 28px; }
.button { display: inline-flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 10px; font-weight: 900; font-size: 13px; }
.button-dark { color: var(--white); background: var(--ink); box-shadow: 4px 4px 0 var(--coral); }
.button-dark span { font-size: 18px; line-height: 0; }
.text-link { border-bottom: 1px solid currentColor; color: var(--muted); font-size: 12px; font-weight: 800; }
.hero-stats { display: flex; gap: 30px; margin-top: 48px; }
.hero-stats div { display: flex; gap: 8px; align-items: center; }
.hero-stats strong { font-family: Georgia, serif; font-size: 27px; }
.hero-stats span { color: var(--muted); font-size: 10px; line-height: 1.35; }
.hero-art { position: relative; padding: 18px; transform: rotate(1.2deg); }
.hero-art::before { content: ""; position: absolute; inset: 0; border: 1px solid rgba(29,45,56,.3); border-radius: 16px; transform: rotate(-3deg); }
.hero-art img { display: block; width: 100%; border: 3px solid var(--ink); border-radius: 9px; box-shadow: var(--shadow); }
.art-sticker { position: absolute; z-index: 2; top: -22px; right: 10px; display: grid; place-items: center; width: 86px; height: 86px; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); background: var(--gold); font-size: 13px; font-weight: 900; line-height: 1.25; text-align: center; transform: rotate(9deg); }
.art-caption { display: flex; justify-content: space-between; margin: 12px 4px 0; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .12em; }

.read-note { display: grid; grid-template-columns: 170px 1fr 230px; gap: 28px; align-items: center; margin-bottom: 82px; padding: 26px 28px; border-top: 1px solid rgba(29,45,56,.2); border-bottom: 1px solid rgba(29,45,56,.2); }
.note-label { margin: 0; color: var(--ink); }
.note-copy h2 { margin: 0 0 10px; font-family: Georgia, "Songti SC", serif; font-size: 23px; }
.note-copy p { max-width: 660px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.note-copy strong { color: var(--ink); }
.note-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.note-badges span { padding: 8px 10px; border: 1px solid rgba(29,45,56,.2); border-radius: 5px; font-size: 10px; font-weight: 900; }

.timeline { padding-bottom: 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.05em; }
.section-heading p { max-width: 390px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.timeline-track { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; padding-top: 12px; }
.timeline-track::before { content: ""; position: absolute; top: 30px; left: 5%; right: 5%; border-top: 2px dashed rgba(29,45,56,.25); }
.timeline-stop { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.timeline-dot { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); background: var(--paper); font-size: 10px; font-weight: 900; }
.timeline-stop.active .timeline-dot, .timeline-stop:hover .timeline-dot { color: var(--white); background: var(--coral); }
.timeline-stop strong { font-size: 13px; }
.timeline-stop small { color: var(--muted); font-size: 9px; line-height: 1.3; }

.focus-lab { padding-bottom: 92px; }
.focus-count { padding: 10px 14px; border: 1px solid rgba(29,45,56,.25); border-radius: 8px; color: var(--ink); font-size: 12px; font-weight: 900; line-height: 1.5; text-align: right; }
.focus-count span { color: var(--muted); font-size: 9px; font-weight: 600; }
.focus-note { display: grid; gap: 7px; margin: -8px 0 34px; padding: 16px 18px; border-left: 4px solid var(--gold); color: #59645f; background: rgba(233,182,75,.13); font-size: 12px; line-height: 1.7; }
.focus-note strong { color: var(--ink); }
.focus-note em { color: var(--muted); font-size: 10px; }
.focus-card { margin-top: 30px; }
.focus-card + .focus-card { margin-top: 48px; }
.focus-card .chapter-index { font-size: 18px; }

.chapters { padding-bottom: 100px; }
.section-heading-wide { align-items: center; }
.scroll-hint { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.scroll-arrow { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 7px; border: 1px solid rgba(29,45,56,.3); border-radius: 50%; color: var(--ink); font-size: 15px; }
.chapter { --accent: var(--coral); position: relative; margin-top: 56px; padding: 32px; border: 2px solid var(--ink); border-radius: var(--round); background: var(--white); box-shadow: 8px 8px 0 var(--accent); scroll-margin-top: 92px; }
.chapter-gold { --accent: var(--gold); }
.chapter-teal { --accent: var(--teal); }
.chapter-indigo { --accent: var(--indigo); }
.chapter-blue { --accent: var(--blue); }
.chapter-lilac { --accent: var(--lilac); }
.chapter-green { --accent: var(--green); }
.chapter-head { display: grid; grid-template-columns: 74px 1fr auto; gap: 18px; align-items: start; margin-bottom: 27px; }
.chapter-index { width: 60px; height: 60px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 13px; color: var(--white); background: var(--accent); font-family: Georgia, serif; font-size: 25px; font-weight: 900; transform: rotate(-4deg); }
.chapter-tag { margin: 0 0 8px; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.chapter-title-wrap h3 { max-width: 650px; margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(24px, 3vw, 36px); line-height: 1.12; letter-spacing: -.045em; }
.chapter-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 12px; font-style: italic; }
.chapter-time { padding: 9px 12px; border-left: 1px solid rgba(29,45,56,.22); color: var(--ink); font-size: 12px; font-weight: 900; line-height: 1.5; text-align: right; }
.chapter-time span { color: var(--muted); font-size: 9px; font-weight: 600; }
.chapter-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, .75fr); gap: 26px; align-items: center; }
.comic-frame { position: relative; padding: 7px; border: 2px solid var(--ink); background: var(--paper-deep); box-shadow: 4px 4px 0 rgba(29,45,56,.16); }
.comic-frame::after { content: "8 PANELS"; position: absolute; right: 12px; bottom: 10px; padding: 4px 6px; color: var(--ink); background: rgba(255,250,243,.9); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.comic-frame img { display: block; width: 100%; height: auto; border: 1px solid rgba(29,45,56,.35); }
.chapter-side { display: grid; gap: 16px; }
.big-idea { padding: 20px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 14%, white); }
.big-idea span, .child-check span { display: block; margin-bottom: 12px; color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.big-idea strong { display: block; font-family: Georgia, "Songti SC", serif; font-size: 21px; line-height: 1.38; }
.big-idea em { display: block; margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.child-check { padding: 17px 20px; border: 1px dashed rgba(29,45,56,.3); border-radius: 13px; }
.child-check p { margin: 0; color: #59645f; font-size: 12px; line-height: 1.7; }
.panel-captions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.panel-captions div { min-height: 94px; padding: 10px 10px 12px; border-top: 2px solid var(--accent); background: rgba(247,239,227,.7); }
.panel-captions b { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-bottom: 7px; border-radius: 50%; color: var(--white); background: var(--ink); font-size: 9px; }
.panel-captions span, .panel-captions em { display: block; }
.panel-captions span { font-size: 11px; font-weight: 800; line-height: 1.45; }
.panel-captions em { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.35; }

.think { padding-bottom: 110px; }
.think-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.think-card { position: relative; min-height: 205px; padding: 22px; border: 2px solid var(--ink); border-radius: 15px; color: var(--ink); background: var(--white); text-align: left; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.think-card:nth-child(1) { transform: rotate(-1deg); }
.think-card:nth-child(2) { transform: rotate(1deg); }
.think-card:nth-child(3) { transform: rotate(-.5deg); }
.think-card:hover { transform: translateY(-4px) rotate(0deg); box-shadow: 5px 5px 0 var(--gold); }
.think-card span { display: block; margin-bottom: 28px; color: var(--coral); font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.think-card strong { display: block; max-width: 220px; font-family: Georgia, "Songti SC", serif; font-size: 21px; line-height: 1.35; }
.think-card em { display: block; max-width: 240px; margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.think-card i { position: absolute; right: 20px; bottom: 16px; color: var(--coral); font-size: 26px; font-style: normal; }
.think-card.revealed { background: #fff3c9; }
.think-card.revealed strong { font-size: 16px; }
.think-card.revealed strong::before { content: "ANSWER / 想法："; display: block; margin-bottom: 10px; color: var(--coral); font-family: var(--font, sans-serif); font-size: 9px; letter-spacing: .15em; }
.think-card.revealed i { transform: rotate(45deg); }

.sources { display: grid; grid-template-columns: .65fr 1.35fr; gap: 64px; padding-top: 42px; padding-bottom: 72px; border-top: 1px solid rgba(29,45,56,.2); }
.sources h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 32px; letter-spacing: -.04em; }
.source-copy p { max-width: 650px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.source-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.source-links a { padding-bottom: 4px; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 11px; font-weight: 900; }
.source-links span { color: var(--coral); }
.footer { display: flex; justify-content: space-between; padding-top: 20px; padding-bottom: 40px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }

.reader-controls { display: flex; align-items: center; gap: 8px; }
.mode-select { display: flex; align-items: center; gap: 7px; padding: 5px 7px 5px 10px; border: 1px solid rgba(29,45,56,.2); border-radius: 999px; color: var(--muted); background: rgba(255,250,243,.7); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.mode-select select { max-width: 92px; border: 0; color: var(--ink); background: transparent; font: inherit; font-size: 10px; cursor: pointer; outline: none; }
.language-switch { display: flex; padding: 3px; border: 1px solid rgba(29,45,56,.2); border-radius: 999px; background: rgba(255,250,243,.7); }
.language-switch button { min-width: 29px; padding: 5px 7px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 900; cursor: pointer; }
.language-switch button[aria-pressed="true"] { color: var(--white); background: var(--ink); }
.progress-pill { display: inline-flex; align-items: baseline; min-width: 58px; padding: 6px 10px; border-radius: 999px; color: var(--ink); background: var(--gold); font-size: 10px; }
.progress-pill strong { font-family: Georgia, serif; font-size: 16px; }
.progress-pill span { color: rgba(29,45,56,.65); }

.routes { padding-bottom: 86px; scroll-margin-top: 90px; }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.route-card { --route-accent: var(--coral); position: relative; min-height: 220px; padding: 24px; border: 2px solid var(--ink); border-radius: 17px; background: var(--white); box-shadow: 5px 5px 0 var(--route-accent); transition: transform .2s ease, box-shadow .2s ease; }
.route-card:hover { transform: translateY(-4px); box-shadow: 7px 9px 0 var(--route-accent); }
.route-curious { --route-accent: var(--indigo); }
.route-full { --route-accent: var(--teal); }
.route-card > span { display: inline-block; padding: 5px 8px; border-radius: 5px; color: var(--ink); background: color-mix(in srgb, var(--route-accent) 24%, white); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.route-card strong, .route-card em { display: block; }
.route-card strong { margin-top: 28px; font-family: Georgia, "Songti SC", serif; font-size: 26px; line-height: 1.2; }
.route-card em { margin-top: 5px; color: var(--muted); font-size: 11px; }
.route-card p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.route-card b { position: absolute; left: 24px; bottom: 20px; color: var(--route-accent); font-size: 11px; }

.book-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: act; }
.map-act { --map-accent: var(--coral); position: relative; min-height: 250px; padding: 22px 18px; border: 1px solid rgba(29,45,56,.22); border-top: 6px solid var(--map-accent); border-radius: 10px; background: rgba(255,250,243,.72); }
.act-gold { --map-accent: var(--gold); }
.act-teal { --map-accent: var(--teal); }
.act-blue { --map-accent: var(--blue); }
.map-act::after { content: "→"; position: absolute; z-index: 2; top: 50%; right: -20px; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(29,45,56,.25); border-radius: 50%; color: var(--ink); background: var(--paper); font-weight: 900; }
.map-act:last-child::after { content: "?"; right: 12px; top: auto; bottom: 12px; color: var(--white); background: var(--ink); }
.map-act > span, .map-act strong, .map-act em, .map-act b { display: block; }
.map-act > span { color: var(--map-accent); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.map-act strong { margin-top: 22px; font-family: Georgia, "Songti SC", serif; font-size: 25px; line-height: 1.16; }
.map-act em { margin-top: 6px; color: var(--muted); font-size: 10px; }
.map-act p { margin-top: 24px; color: #59645f; font-size: 12px; line-height: 1.65; }
.map-act b { position: absolute; left: 18px; bottom: 16px; font-size: 10px; }
.map-recall { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; padding: 13px 16px; border: 1px dashed rgba(29,45,56,.3); border-radius: 10px; color: var(--muted); font-size: 11px; }
.map-recall button { padding: 8px 12px; border: 0; border-radius: 7px; color: var(--white); background: var(--ink); font-size: 10px; font-weight: 900; cursor: pointer; }
.book-map.recall-hidden .map-act strong, .book-map.recall-hidden .map-act em, .book-map.recall-hidden .map-act p, .book-map.recall-hidden .map-act b { color: transparent; background: repeating-linear-gradient(-45deg, rgba(29,45,56,.08), rgba(29,45,56,.08) 8px, transparent 8px, transparent 16px); border-radius: 5px; user-select: none; }

.learning-lab { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(29,45,56,.15); }
.lens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.lens-card { --lens: var(--teal); min-height: 144px; padding: 14px; border-radius: 10px; background: color-mix(in srgb, var(--lens) 10%, white); }
.lens-harari { --lens: var(--indigo); }
.lens-open { --lens: var(--coral); }
.lens-card > span { display: block; min-height: 25px; color: var(--lens); font-size: 8px; font-weight: 900; letter-spacing: .09em; }
.lens-card p { margin: 8px 0 0; font-size: 11px; font-weight: 700; line-height: 1.55; }
.lens-card p.en { color: var(--muted); font-size: 9px; font-weight: 500; }

.practice-panel { margin-top: 10px; border: 1px solid rgba(29,45,56,.22); border-radius: 11px; background: rgba(247,239,227,.58); overflow: hidden; }
.practice-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; list-style: none; cursor: pointer; }
.practice-panel summary::-webkit-details-marker { display: none; }
.practice-panel summary::after { content: "+"; display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border: 1px solid var(--ink); border-radius: 50%; font-weight: 900; }
.practice-panel[open] summary::after { content: "−"; color: var(--white); background: var(--ink); }
.practice-panel summary span { color: var(--accent); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.practice-panel summary strong { margin-left: auto; font-family: Georgia, "Songti SC", serif; font-size: 15px; }
.practice-body { display: grid; grid-template-columns: .9fr 1.25fr .9fr; gap: 12px; padding: 0 14px 14px; }
.recall-task, .quiz, .transfer-task { min-height: 190px; padding: 14px; border-radius: 9px; background: var(--white); }
.recall-task label > span, .transfer-task > span { display: block; margin-bottom: 10px; color: var(--accent); font-size: 8px; font-weight: 900; }
.recall-task span.en { margin-top: -6px; color: var(--muted); }
.recall-task textarea, .reflection-notebook textarea { width: 100%; margin-top: 12px; padding: 10px; border: 1px solid rgba(29,45,56,.25); border-radius: 7px; color: var(--ink); background: #fffdf9; font: inherit; font-size: 11px; line-height: 1.5; resize: vertical; }
.quiz-question strong { display: block; font-size: 12px; line-height: 1.5; }
.quiz-question strong.en { color: var(--muted); font-size: 9px; font-weight: 500; }
.quiz-options { display: grid; gap: 5px; margin-top: 10px; }
.quiz-options button { display: grid; grid-template-columns: 20px 1fr; gap: 4px 7px; align-items: start; padding: 7px; border: 1px solid rgba(29,45,56,.18); border-radius: 6px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.quiz-options button:hover, .quiz-options button.chosen { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, white); }
.quiz-options button b { grid-row: 1 / span 2; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: var(--white); background: var(--ink); font-size: 8px; }
.quiz-options button span { font-size: 9px; line-height: 1.35; }
.quiz-options button span.en { color: var(--muted); font-size: 8px; }
.quiz[data-correct="true"] .quiz-feedback { color: #32734b; }
.quiz-feedback { margin: 9px 0 0; color: var(--coral); font-size: 9px; line-height: 1.4; }
.transfer-task > strong { display: block; font-family: Georgia, "Songti SC", serif; font-size: 15px; line-height: 1.5; }
.transfer-task > strong.en { margin-top: 8px; color: var(--muted); font-size: 10px; font-family: inherit; font-weight: 500; }
.chapter-source { grid-column: 1 / 3; align-self: center; width: fit-content; padding-bottom: 3px; border-bottom: 1px solid currentColor; color: var(--muted); font-size: 9px; font-weight: 800; }
.complete-button { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); background: transparent; font-size: 10px; font-weight: 900; cursor: pointer; }
.complete-button[aria-pressed="true"] { color: var(--white); background: var(--green); border-color: var(--green); }
.checkmark { display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid currentColor; border-radius: 50%; }
.chapter.is-complete::before { content: "✓ 已掌握"; position: absolute; z-index: 3; top: -12px; right: 22px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 999px; color: var(--white); background: var(--green); font-size: 9px; font-weight: 900; transform: rotate(2deg); }

.reflection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.reflection-card { border: 2px solid var(--ink); border-radius: 13px; background: var(--white); box-shadow: 4px 4px 0 var(--gold); }
.reflection-card summary { min-height: 190px; padding: 20px; list-style: none; cursor: pointer; }
.reflection-card summary::-webkit-details-marker { display: none; }
.reflection-card summary span, .reflection-card summary strong, .reflection-card summary em { display: block; }
.reflection-card summary span { color: var(--coral); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.reflection-card summary strong { margin-top: 25px; font-family: Georgia, "Songti SC", serif; font-size: 19px; line-height: 1.4; }
.reflection-card summary em { margin-top: 8px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.reflection-card p { margin: 0; padding: 16px 20px; border-top: 1px dashed rgba(29,45,56,.25); color: #59645f; background: #fff3c9; font-size: 11px; line-height: 1.65; }
.reflection-notebook { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; align-items: center; margin-top: 28px; padding: 22px; border: 2px solid var(--ink); border-radius: 14px; background: color-mix(in srgb, var(--teal) 10%, white); }
.reflection-notebook label span, .reflection-notebook label strong { display: block; }
.reflection-notebook label span { color: var(--teal); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.reflection-notebook label strong { margin-top: 9px; font-family: Georgia, "Songti SC", serif; font-size: 21px; }
.reflection-notebook textarea { margin: 0; min-height: 80px; }
.reflection-notebook p { grid-column: 2; margin: -12px 0 0; color: var(--muted); font-size: 9px; }
.reset-progress { margin-top: 22px; padding: 8px 11px; border: 1px solid rgba(29,45,56,.3); border-radius: 7px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }

.missing-pieces { padding-bottom: 100px; scroll-margin-top: 90px; }
.missing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.missing-card { --missing-accent: var(--indigo); position: relative; min-height: 300px; padding: 24px; border: 2px solid var(--ink); border-radius: 16px; background: var(--white); box-shadow: 5px 5px 0 var(--missing-accent); }
.missing-hierarchy { --missing-accent: var(--coral); }
.missing-individual { --missing-accent: var(--teal); }
.missing-card > span, .missing-card > strong, .missing-card > em { display: block; }
.missing-card > span { color: var(--missing-accent); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.missing-card > strong { margin-top: 30px; font-family: Georgia, "Songti SC", serif; font-size: 27px; }
.missing-card > em { margin-top: 5px; color: var(--muted); font-size: 10px; }
.missing-card > p { margin: 24px 0 65px; color: #59645f; font-size: 12px; line-height: 1.75; }
.missing-card > p span, .missing-card > p em, .missing-card > div span, .missing-card > div em { display: block; }
.missing-card > p em, .missing-card > div em { margin-top: 6px; color: var(--muted); font-size: 9px; font-style: normal; line-height: 1.55; }
.missing-card > div { position: absolute; right: 20px; bottom: 20px; left: 20px; padding: 12px; border-radius: 8px; background: color-mix(in srgb, var(--missing-accent) 11%, white); color: var(--ink); font-size: 11px; line-height: 1.5; }
.missing-card > div b { display: block; margin-bottom: 4px; color: var(--missing-accent); font-size: 8px; letter-spacing: .1em; }

.challenge { padding-bottom: 110px; scroll-margin-top: 90px; }
.challenge-best { min-width: 110px; padding: 10px 14px; border: 1px solid rgba(29,45,56,.25); border-radius: 9px; color: var(--muted); font-size: 9px; font-weight: 800; line-height: 1.5; text-align: right; }
.challenge-best strong { color: var(--coral); font-family: Georgia, serif; font-size: 25px; }
.challenge-best span { color: var(--muted); font-size: 8px; }
.challenge-shell { position: relative; min-height: 560px; border: 2px solid var(--ink); border-radius: 22px; background: var(--white); box-shadow: 9px 9px 0 var(--indigo); overflow: hidden; }
.challenge-shell::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28; background: radial-gradient(circle at 12% 15%, color-mix(in srgb, var(--gold) 40%, transparent), transparent 25%), radial-gradient(circle at 90% 85%, color-mix(in srgb, var(--teal) 32%, transparent), transparent 30%); }
.challenge-start { position: relative; z-index: 1; display: grid; grid-template-columns: .75fr 1.25fr; gap: 54px; align-items: center; min-height: 560px; padding: 54px 8%; }
.quest-badge { justify-self: center; display: grid; place-items: center; width: min(280px, 25vw); aspect-ratio: 1; border: 4px solid var(--ink); border-radius: 50%; color: var(--ink); background: var(--gold); box-shadow: 8px 8px 0 var(--coral); text-align: center; transform: rotate(-4deg); }
.quest-badge span { font-family: Georgia, serif; font-size: clamp(70px, 10vw, 130px); font-weight: 900; line-height: .75; }
.quest-badge b { font-size: 10px; letter-spacing: .15em; line-height: 1.4; }
.quest-intro > p { margin: 0 0 12px; color: var(--coral); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.quest-intro h3 { max-width: 600px; margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(28px, 4.5vw, 48px); line-height: 1.2; letter-spacing: -.04em; }
.quest-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0; }
.quest-stats span { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid rgba(29,45,56,.22); border-radius: 7px; color: var(--muted); font-size: 10px; font-weight: 800; }
.quest-stats b { color: var(--ink); font-family: Georgia, serif; font-size: 20px; }
.quest-primary { padding: 13px 17px; border: 2px solid var(--ink); border-radius: 9px; color: var(--white); background: var(--ink); box-shadow: 4px 4px 0 var(--coral); font-size: 11px; font-weight: 900; cursor: pointer; }

.challenge-game { position: relative; z-index: 1; padding: 28px 36px 34px; }
.challenge-game[hidden], .challenge-start[hidden], .challenge-result[hidden] { display: none; }
.quest-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.quest-topline > div:first-child span, .quest-topline > div:first-child strong { display: block; }
.quest-topline > div:first-child span { color: var(--coral); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.quest-topline > div:first-child strong { margin-top: 4px; font-family: Georgia, "Songti SC", serif; font-size: 22px; }
.quest-score { display: flex; align-items: baseline; gap: 4px; padding: 7px 11px; border-radius: 999px; color: var(--ink); background: #fff0b9; }
.quest-score > span { color: var(--coral); font-size: 18px; }
.quest-score strong { font-family: Georgia, serif; font-size: 24px; }
.quest-score small { color: var(--muted); font-size: 9px; }
.quest-progress { height: 7px; margin-top: 17px; border-radius: 999px; background: rgba(29,45,56,.1); overflow: hidden; }
.quest-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--gold)); transition: width .35s ease; }
.quest-count { margin-top: 18px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.quest-count span { color: var(--ink); font-family: Georgia, serif; font-size: 24px; }
.quest-content { display: grid; grid-template-columns: minmax(260px, .78fr) 1.22fr; gap: 28px; align-items: center; margin-top: 16px; }
.quest-content.no-image { grid-template-columns: 1fr; max-width: 760px; margin-right: auto; margin-left: auto; }
.quest-image { padding: 6px; border: 2px solid var(--ink); background: var(--paper-deep); box-shadow: 4px 4px 0 rgba(29,45,56,.16); }
.quest-image img { display: block; width: 100%; border: 1px solid rgba(29,45,56,.3); }
.quest-question > span { color: var(--indigo); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.quest-question h3 { margin: 10px 0 6px; font-family: Georgia, "Songti SC", serif; font-size: clamp(22px, 3vw, 34px); line-height: 1.25; letter-spacing: -.03em; }
.quest-question > em { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }
.quest-options { display: grid; gap: 8px; margin-top: 22px; }
.quest-option { display: grid; grid-template-columns: 32px 1fr; gap: 4px 10px; align-items: center; min-height: 58px; padding: 9px 12px; border: 1px solid rgba(29,45,56,.24); border-radius: 9px; color: var(--ink); background: rgba(255,255,255,.68); text-align: left; cursor: pointer; }
.quest-option:hover { border-color: var(--indigo); transform: translateX(2px); }
.quest-option b { grid-row: 1 / span 2; display: grid; place-items: center; width: 29px; height: 29px; border: 2px solid var(--ink); border-radius: 50%; font-size: 10px; }
.quest-option span { font-size: 12px; font-weight: 800; line-height: 1.4; }
.quest-option em { color: var(--muted); font-size: 9px; line-height: 1.35; }
.quest-option.is-wrong { border-color: var(--coral); color: #9b493a; background: #fff0eb; }
.quest-option.is-correct { border-color: var(--green); color: #285e3d; background: #e9f7e8; }
.quest-option.is-correct b { color: var(--white); background: var(--green); border-color: var(--green); }
.quest-option:disabled { cursor: default; transform: none; }
.quest-feedback { min-height: 54px; margin-top: 18px; padding: 12px 14px; border-left: 4px solid var(--gold); color: #59645f; background: #fff8dc; font-size: 11px; line-height: 1.6; }
.quest-feedback:empty { visibility: hidden; }
.quest-feedback strong { color: var(--ink); }
.quest-next { float: right; margin-top: 4px; padding: 10px 14px; border: 0; border-radius: 8px; color: var(--white); background: var(--ink); font-size: 10px; font-weight: 900; cursor: pointer; }
.quest-next:disabled { opacity: .28; cursor: not-allowed; }

.challenge-result { position: relative; z-index: 1; display: grid; place-items: center; align-content: center; min-height: 560px; padding: 50px 20px; text-align: center; }
.result-stars { color: var(--gold); font-size: 32px; letter-spacing: .18em; text-shadow: 2px 2px 0 var(--ink); }
.challenge-result > p { max-width: 560px; margin: 14px auto 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.challenge-result h3 { margin: 14px 0 6px; font-family: Georgia, "Songti SC", serif; font-size: clamp(36px, 6vw, 64px); letter-spacing: -.05em; }
.challenge-result > strong { color: var(--coral); font-family: Georgia, serif; font-size: 26px; }
.result-actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.result-actions a { border-bottom: 1px solid currentColor; color: var(--muted); font-size: 10px; font-weight: 900; }

body[data-language="zh"] .en, body[data-language="zh"] em[lang="en"], body[data-language="zh"] .chapter-subtitle { display: none !important; }
body[data-language="en"] .zh, body[data-language="en"] .panel-captions > div > span, body[data-language="en"] .big-idea > strong, body[data-language="en"] .chapter-title-wrap > h3, body[data-language="en"] .child-check { display: none !important; }
body[data-language="en"] .big-idea > em { margin-top: 0; color: var(--ink); font-family: Georgia, serif; font-size: 18px; font-style: normal; line-height: 1.45; }
body[data-language="en"] .chapter-subtitle { color: var(--ink); font-family: Georgia, serif; font-size: clamp(22px, 3vw, 34px); font-style: normal; font-weight: 700; line-height: 1.15; }
body[data-language="en"] .panel-captions em { margin-top: 0; color: var(--ink); font-size: 10px; font-style: normal; }
body[data-language="en"] .lens-card p.en, body[data-language="en"] .quiz-options span.en, body[data-language="en"] .quiz-question strong.en, body[data-language="en"] .transfer-task strong.en { color: var(--ink); font-size: 11px; font-style: normal; font-weight: 700; }

body[data-mode="comic"] .panel-captions, body[data-mode="comic"] .lens-grid, body[data-mode="comic"] .quiz, body[data-mode="comic"] .transfer-task, body[data-mode="comic"] .chapter-time { display: none; }
body[data-mode="comic"] .practice-body { grid-template-columns: 1fr; }
body[data-mode="comic"] .recall-task { min-height: auto; }
body:not([data-mode="family"]) .reflection-card p, body:not([data-mode="family"]) .source-links, body:not([data-mode="family"]) .chapter-source { display: none; }

button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 900px) {
  .top-nav { display: none; }
  .topbar { gap: 14px; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding-top: 56px; }
  .hero-copy { max-width: 700px; }
  .hero-art { max-width: 740px; margin: 0 auto; }
  .read-note { grid-template-columns: 1fr; gap: 14px; }
  .note-badges { justify-content: flex-start; }
  .timeline-track { grid-template-columns: repeat(4, 1fr); gap: 22px 10px; }
  .timeline-track::before { display: none; }
  .focus-count { margin-top: 18px; text-align: left; width: fit-content; }
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-side { grid-template-columns: 1.1fr .9fr; }
  .book-map { grid-template-columns: repeat(2, 1fr); }
  .map-act::after { display: none; }
  .lens-grid, .practice-body { grid-template-columns: 1fr; }
  .chapter-source, .complete-button { grid-column: 1; }
  .reflection-grid { grid-template-columns: repeat(2, 1fr); }
  .missing-grid { grid-template-columns: 1fr; }
  .missing-card { min-height: 255px; }
  .quest-content { grid-template-columns: 1fr; }
  .quest-image { max-width: 620px; }
  .sources { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 620px) {
  .section-pad { width: min(100% - 28px, 560px); }
  .topbar { padding: 12px 14px; }
  .mode-toggle { padding: 7px 9px; font-size: 10px; }
  .brand small, .mode-select > span, .progress-pill span { display: none; }
  .brand-mark { width: 31px; height: 31px; }
  .reader-controls { gap: 5px; }
  .mode-select { padding: 4px 6px; }
  .mode-select select { width: 72px; }
  .language-switch button { min-width: 25px; padding: 5px; }
  .progress-pill { min-width: 38px; padding: 5px 8px; }
  .hero { padding-top: 40px; padding-bottom: 55px; }
  .hero h1 { font-size: 53px; }
  .hero-lede { font-size: 14px; }
  .hero-stats { gap: 18px; margin-top: 34px; }
  .hero-stats strong { font-size: 22px; }
  .read-note { margin-bottom: 58px; padding: 20px 0; }
  .timeline { padding-bottom: 60px; }
  .timeline-track { grid-template-columns: repeat(2, 1fr); }
  .route-grid, .book-map { grid-template-columns: 1fr; }
  .route-card { min-height: 205px; }
  .map-act { min-height: 218px; }
  .map-recall { align-items: flex-start; flex-direction: column; }
  .section-heading, .section-heading-wide { display: block; }
  .scroll-hint { margin-top: 18px; }
  .chapter { margin-top: 40px; padding: 18px; border-radius: 16px; box-shadow: 5px 5px 0 var(--accent); }
  .focus-card + .focus-card { margin-top: 36px; }
  .chapter-head { grid-template-columns: 52px 1fr; gap: 12px; }
  .chapter-index { width: 46px; height: 46px; font-size: 20px; }
  .chapter-title-wrap h3 { font-size: 25px; }
  .chapter-tag { font-size: 8px; }
  .chapter-side { grid-template-columns: 1fr; }
  .big-idea strong { font-size: 19px; }
  .panel-captions { grid-template-columns: repeat(2, 1fr); }
  .panel-captions div { min-height: 110px; }
  .lens-grid { grid-template-columns: 1fr; }
  .lens-card { min-height: auto; }
  .practice-panel summary { align-items: flex-start; }
  .practice-panel summary strong { display: none; }
  .reflection-grid { grid-template-columns: 1fr; }
  .reflection-card summary { min-height: 160px; }
  .reflection-notebook { grid-template-columns: 1fr; }
  .reflection-notebook p { grid-column: 1; margin: -8px 0 0; }
  .challenge-shell { min-height: 520px; border-radius: 16px; box-shadow: 5px 5px 0 var(--indigo); }
  .challenge-start { grid-template-columns: 1fr; gap: 30px; min-height: 520px; padding: 38px 22px; }
  .quest-badge { width: 170px; }
  .challenge-game { padding: 20px 16px 28px; }
  .quest-content { grid-template-columns: 1fr; gap: 18px; }
  .quest-image { max-width: none; }
  .quest-option { min-height: 54px; }
  .result-actions { flex-direction: column; }
  .think-grid { grid-template-columns: 1fr; }
  .think-card { min-height: 170px; }
  .footer { display: block; line-height: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
