:root {
  --ink: #191714;
  --muted: #6f6961;
  --paper: #f5f1e8;
  --paper-deep: #e9e1d3;
  --paper-light: #fbf8f1;
  --red: #8f2528;
  --red-dark: #65171b;
  --gold: #b58a43;
  --line: rgba(47, 39, 31, .17);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }

.opening { visibility: hidden; position: fixed; inset: 0; z-index: 999; display: grid; place-content: center; color: #f5eadc; background: #171512; opacity: 0; }
.opening.play { visibility: visible; animation: opening-stage 2.8s ease both; }
.opening-mark { display: flex; align-items: center; gap: 28px; font: 700 clamp(44px, 7vw, 82px) var(--serif); letter-spacing: .15em; }
.opening-mark span { opacity: 0; transform: translateY(12px); animation: opening-word 1.35s .25s ease forwards; }
.opening-mark span:last-child { animation-delay: .48s; }
.opening-mark i { width: 1px; height: 0; background: var(--gold); animation: opening-line 1.15s .72s ease forwards; }
.opening p { margin: 26px 0 0; color: #bdb2a3; text-align: center; font-size: 13px; letter-spacing: .28em; opacity: 0; animation: opening-copy .9s 1s ease forwards; }
.opening.leave { pointer-events: none; }
@keyframes opening-stage { 0% { opacity: 0; } 12%, 72% { opacity: 1; } 100% { opacity: 0; } }
@keyframes opening-word { to { opacity: 1; transform: translateY(0); } }
@keyframes opening-line { to { height: 72px; } }
@keyframes opening-copy { to { opacity: 1; } }

.site-header { position: sticky; top: 0; z-index: 50; height: 76px; padding: 0 clamp(20px, 4vw, 72px); display: flex; align-items: center; gap: 34px; border-bottom: 1px solid var(--line); background: rgba(245, 241, 232, .96); backdrop-filter: blur(15px); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #f8ead8; background: var(--red); font: 700 20px var(--serif); }
.brand strong { display: block; font: 700 20px var(--serif); letter-spacing: .06em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.main-nav { margin-left: auto; display: flex; align-self: stretch; gap: 34px; }
.main-nav a { position: relative; display: grid; place-items: center; color: #514c46; font-size: 14px; }
.main-nav a::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 0; height: 2px; background: var(--red); transform: translateX(-50%); transition: .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--red); }
.main-nav a.active::after { width: 28px; }
.search-button { margin-left: 8px; padding: 8px 11px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: transparent; font-size: 13px; }
.search-button span:first-child { font-size: 20px; line-height: 1; }
.menu-button { display: none; border: 0; background: transparent; font-size: 24px; }

.site-footer { min-height: 80px; padding: 20px clamp(20px, 4vw, 72px); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.brand.compact .brand-mark { width: 30px; height: 30px; font-size: 15px; }
.brand.compact strong { font-size: 16px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 12px; }

/* Home */
.home-minimal { position: relative; min-height: calc(100vh - 156px); padding: clamp(54px, 8vh, 90px) clamp(20px, 7vw, 112px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.home-minimal::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(245,241,232,.94), rgba(245,241,232,.73)), url('./assets/home-atmosphere.jpg') center/cover no-repeat; }
.home-minimal::after { content: ""; position: absolute; inset: 22px; z-index: -1; border: 1px solid rgba(143,37,40,.12); pointer-events: none; }
.home-heading { max-width: 740px; margin-bottom: 42px; }
.home-heading > span { color: var(--red); font-size: 12px; letter-spacing: .18em; }
.home-heading h1 { margin: 10px 0 6px; font: 700 clamp(42px, 5.6vw, 72px) var(--serif); letter-spacing: -.035em; }
.home-heading p { margin: 0; color: var(--muted); font: 18px var(--serif); }
.home-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; max-width: 1200px; }
.home-choice { position: relative; min-height: 250px; padding: 30px 34px; display: grid; grid-template-columns: 58px 1fr; grid-template-rows: 1fr auto; gap: 8px 22px; border: 1px solid rgba(48,39,31,.22); background: rgba(250,247,240,.88); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.home-choice:hover { transform: translateY(-5px); border-color: var(--red); background: rgba(255,252,246,.97); }
.home-choice.drill-choice { color: #f7eddf; border-color: #292520; background: rgba(31,28,24,.95); }
.home-choice.drill-choice:hover { border-color: var(--gold); background: #181613; }
.choice-no { color: var(--gold); font: 22px var(--serif); }
.choice-copy small { color: var(--red); font-size: 12px; letter-spacing: .16em; }
.drill-choice .choice-copy small { color: #d2a65c; }
.choice-copy h2 { margin: 8px 0 6px; font: 700 clamp(30px, 3.2vw, 44px) var(--serif); }
.choice-copy p { margin: 0; color: var(--muted); font-size: 15px; }
.drill-choice .choice-copy p { color: #afa599; }
.home-choice > span { grid-column: 2; align-self: end; color: var(--red); font-size: 14px; }
.drill-choice > span { color: #e2bb78; }

/* Common inner page elements */
.inner-head { padding: 28px clamp(20px, 7vw, 110px) 48px; color: #f5ecdf; background: #1d1a17; }
.location-bar { display: flex; align-items: center; gap: 24px; min-height: 44px; }
.back-button { flex: none; padding: 9px 14px; border: 1px solid currentColor; color: var(--red); background: var(--paper-light); font-weight: 600; font-size: 14px; }
.inner-head .back-button, .chapter-title-page .back-button, .case-head .back-button { color: #f5eadc; border-color: rgba(255,255,255,.35); background: transparent; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs b { color: var(--ink); }
.inner-head .breadcrumbs, .chapter-title-page .breadcrumbs, .case-head .breadcrumbs { color: #a99f93; }
.inner-head .breadcrumbs b, .chapter-title-page .breadcrumbs b, .case-head .breadcrumbs b { color: #eee4d5; }
.inner-title { margin-top: 44px; display: grid; grid-template-columns: 115px 1fr; gap: 26px; align-items: start; }
.inner-title > span { padding-top: 10px; color: var(--gold); font-size: 14px; letter-spacing: .08em; }
.inner-title h1 { margin: 0 0 10px; font: 700 clamp(38px, 5vw, 62px) var(--serif); }
.inner-title p { max-width: 780px; margin: 0; color: #bcb1a5; font-size: 17px; line-height: 1.8; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 10px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.tag.large { padding: 9px 13px; color: var(--ink); font-size: 14px; }
.importance { display: inline-flex; align-items: center; gap: 10px; color: var(--red); font-size: 13px; }
.importance > i { display: inline-flex; gap: 3px; }
.importance em { width: 16px; height: 4px; background: #d8d1c5; }
.importance em.on { background: var(--red); }
.importance.compact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; font-size: 11px; }
.importance.compact em { width: 10px; height: 3px; }

/* Learning hub */
.hub-grid { padding: 48px clamp(20px, 7vw, 110px) 90px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.hub-card { min-height: 360px; padding: 30px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--paper-light); transition: .2s ease; }
.hub-card:hover { border-color: var(--red); transform: translateY(-4px); }
.hub-card.featured { background: #eee4d6; }
.hub-card.dark { color: #f4eadc; border-color: #24211d; background: #24211d; }
.hub-card > span { color: var(--gold); font: 22px var(--serif); }
.hub-card small { margin-top: 64px; color: var(--red); font-size: 12px; letter-spacing: .15em; }
.hub-card.dark small { color: #d2a458; }
.hub-card h2 { margin: 10px 0; font: 700 clamp(28px, 3vw, 40px) var(--serif); }
.hub-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.hub-card.dark p { color: #b9afa3; }
.hub-card b { margin-top: auto; color: var(--red); font-size: 14px; }
.hub-card.dark b { color: #e1b86f; }

/* Knowledge map */
.map-page { padding: 38px clamp(20px, 5vw, 80px) 90px; }
.book-spine { display: grid; grid-template-columns: repeat(8, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.spine-node { min-height: 124px; padding: 16px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-light); }
.spine-node:hover, .spine-node.active { color: #f6ecdf; background: var(--red-dark); }
.spine-node > span { color: var(--red); font-size: 12px; }
.spine-node.active > span, .spine-node:hover > span { color: #e0b56d; }
.spine-node b { margin: 9px 0; font: 600 15px/1.45 var(--serif); }
.spine-node small { margin-top: auto; color: var(--muted); font-size: 11px; }
.spine-node.active small, .spine-node:hover small { color: #bfaea0; }
.chapter-network { margin-top: 28px; padding: 34px; border: 1px solid var(--line); background: #f9f6ef; }
.network-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.network-head > div:first-child > span { color: var(--red); font-size: 14px; }
.network-head h2 { margin: 5px 0; font: 700 clamp(26px, 3.2vw, 40px) var(--serif); }
.network-head p { margin: 0; color: var(--muted); font-size: 14px; }
.legend-block { display: flex; gap: 16px; }
.legend-block > span { color: var(--muted); font-size: 11px; text-align: right; }
.tree-root { position: relative; width: min(520px, 80%); margin: 42px auto 50px; padding: 18px 25px; color: #f6ecdf; background: #211e1a; text-align: center; }
.tree-root::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 51px; background: var(--line); }
.tree-root span { display: block; color: #d8aa5d; font-size: 11px; letter-spacing: .12em; }
.tree-root b { display: block; margin-top: 5px; font: 600 20px var(--serif); }
.section-tree { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.section-tree::before { content: ""; position: absolute; left: 16.66%; right: 16.66%; top: -24px; height: 1px; background: var(--line); }
.section-tree.single { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.section-tree.single::before { display: none; }
.section-branch { position: relative; padding: 20px; border: 1px solid var(--line); background: var(--paper); }
.branch-line { position: absolute; left: 50%; bottom: 100%; width: 1px; height: 25px; background: var(--line); }
.section-branch header { display: grid; grid-template-columns: 32px 1fr; gap: 8px; min-height: 67px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.section-branch header span { color: var(--gold); font: 18px var(--serif); }
.section-branch h3 { margin: 0; font: 600 17px/1.55 var(--serif); }
.topic-stack { display: grid; gap: 10px; margin-top: 14px; }
.topic-node { min-height: 76px; padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid rgba(50,40,32,.11); background: #fdfaf4; }
.topic-node.key { border-left: 3px solid var(--red); }
.topic-node.key:hover { border-color: var(--red); background: #f5e8df; }
.topic-node b { display: block; font: 600 15px/1.45 var(--serif); }
.topic-node small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.network-note { margin-top: 24px; padding: 16px 20px; display: flex; gap: 18px; border-left: 3px solid var(--gold); background: #eee7dc; font-size: 14px; }
.network-note span { color: var(--muted); }

/* Systematic learning */
.syllabus-list { padding: 40px clamp(20px, 7vw, 110px) 100px; }
.syllabus-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 250px; gap: 24px; padding: 34px 0; border-top: 1px solid var(--line); }
.syllabus-row:last-child { border-bottom: 1px solid var(--line); }
.syllabus-no { color: var(--gold); font: 24px var(--serif); }
.syllabus-main > span { color: var(--red); font-size: 13px; }
.syllabus-main h2 { margin: 6px 0 18px; font: 700 clamp(24px, 2.7vw, 34px) var(--serif); }
.section-names { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 18px; }
.section-names p { margin: 0; display: grid; grid-template-columns: 25px 1fr; color: var(--muted); font-size: 13px; }
.section-names b { color: var(--gold); }
.syllabus-side { padding-left: 24px; border-left: 1px solid var(--line); }
.syllabus-side > p { margin-top: 0; color: var(--red); font-weight: 600; font-size: 14px; }
.syllabus-side > div { display: grid; gap: 4px; }
.syllabus-side span { color: var(--muted); font-size: 12px; }
.syllabus-side a { display: inline-block; margin-top: 22px; color: var(--red); font-weight: 600; font-size: 14px; }
.chapter-title-page { padding: 28px clamp(20px, 7vw, 110px) 56px; color: #f4eadc; background: var(--red-dark); }
.chapter-title-page > div:last-child { margin-top: 52px; }
.chapter-title-page > div:last-child > span { color: #e3b568; font-size: 14px; }
.chapter-title-page h1 { max-width: 900px; margin: 7px 0 12px; font: 700 clamp(38px, 5vw, 62px) var(--serif); }
.chapter-title-page p { max-width: 760px; margin: 0; color: #cfbdb1; font-size: 16px; }
.chapter-study { padding: 54px clamp(20px, 7vw, 110px) 100px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 54px; align-items: start; }
.chapter-guide { position: sticky; top: 105px; border-top: 3px solid var(--red); }
.chapter-guide > b { display: block; padding: 18px 0; font: 600 18px var(--serif); }
.chapter-guide > a { padding: 14px 0; display: grid; grid-template-columns: 34px 1fr; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.chapter-guide > a span { color: var(--gold); }
.chapter-guide .map-jump { display: block; margin-top: 18px; padding: 13px; color: var(--red); border: 1px solid var(--red); text-align: center; }
.section-lesson { margin-bottom: 46px; }
.section-lesson > header { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: end; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.section-lesson > header > span { color: var(--gold); font: 24px var(--serif); }
.section-lesson small { color: var(--red); font-size: 11px; letter-spacing: .14em; }
.section-lesson h2 { margin: 3px 0 0; font: 600 25px var(--serif); }
.lesson-topic { min-height: 115px; padding: 21px 18px; display: grid; grid-template-columns: 1fr 150px 90px; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.lesson-topic.active:hover { background: #eee5d9; }
.lesson-topic b { font: 600 17px var(--serif); }
.lesson-topic p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.lesson-topic > span { color: var(--red); font-size: 13px; }
.chapter-expanding { padding: 25px; border: 1px dashed var(--line); color: var(--muted); }

/* Knowledge detail */
.point-head { padding: 28px clamp(20px, 7vw, 110px) 52px; background: #e9e1d5; }
.point-heading { margin-top: 52px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.point-heading > div > span { color: var(--red); font-size: 13px; }
.point-heading h1 { margin: 7px 0; font: 700 clamp(38px, 5vw, 62px) var(--serif); }
.point-heading p { margin: 0; color: var(--muted); font-size: 17px; }
.point-layout { padding: 58px clamp(20px, 7vw, 110px) 100px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 55px; align-items: start; }
.point-content > section { padding: 36px 0; display: grid; grid-template-columns: 52px 1fr; gap: 20px; border-top: 1px solid var(--line); }
.point-content > section:first-child { padding-top: 0; border-top: 0; }
.content-index { color: var(--gold); font: 21px var(--serif); }
.point-content section small { color: var(--red); font-size: 12px; letter-spacing: .12em; }
.point-content h2 { margin: 5px 0 20px; font: 600 27px var(--serif); }
.point-content blockquote { margin: 0; padding: 26px 28px; border-left: 4px solid var(--red); background: #eee6d9; font: 20px/1.8 var(--serif); }
.reason-chain { margin-top: 24px; padding: 20px; display: flex; align-items: center; justify-content: space-between; color: #f4eadc; background: #24211d; font-size: 14px; }
.reason-chain i { color: var(--gold); font-style: normal; }
.assessment-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.assessment-grid > div { padding: 19px; border-right: 1px solid var(--line); }
.assessment-grid > div:last-child { border: 0; }
.assessment-grid span { color: var(--red); font-size: 13px; }
.assessment-grid b { display: block; margin: 10px 0; font: 600 15px var(--serif); }
.assessment-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.point-law > div:last-child { padding: 25px; color: #f5ecdf; background: var(--red-dark); }
.point-law h2 { color: #fff6e9; }
.point-law p { color: #dac8bb; font-size: 16px; line-height: 1.9; }
.point-law a { color: #e7bc72; font-size: 14px; }
.warning-box { padding: 21px; color: var(--red-dark); border: 1px solid rgba(143,37,40,.25); background: #f1e4dc; font-size: 16px; }
.point-side { position: sticky; top: 106px; border-top: 3px solid var(--red); background: var(--paper-light); }
.point-side > div { padding: 21px; border: 1px solid var(--line); border-top: 0; }
.point-side small { display: block; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.question-count { font: 42px var(--serif); }
.point-side p { color: var(--muted); font-size: 13px; }
.point-side a { display: block; padding: 11px; color: #fff; background: var(--red); text-align: center; font-size: 14px; }

/* Practice */
.practice-page { padding: 48px clamp(20px, 7vw, 110px) 90px; }
.method-focus { padding: 34px; display: grid; grid-template-columns: 250px 1fr; gap: 40px; color: #f5ecdf; background: #24211d; }
.method-copy > span { color: var(--gold); font-size: 12px; letter-spacing: .14em; }
.method-copy h2 { margin: 7px 0; font: 700 34px var(--serif); }
.method-copy p { margin: 0; color: #b9afa4; font-size: 14px; }
.method-focus ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; }
.method-focus li { padding: 0 15px; display: flex; gap: 10px; border-left: 1px solid rgba(255,255,255,.14); }
.method-focus li > b { color: var(--gold); font: 17px var(--serif); }
.method-focus li span { font-weight: 600; }
.method-focus li small { display: block; margin-top: 8px; color: #a69c90; font-weight: 400; font-size: 12px; }
.practice-topics { margin-top: 65px; }
.practice-topic { margin-bottom: 70px; }
.practice-topic > header { display: grid; grid-template-columns: 58px 1fr; gap: 15px; align-items: end; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.practice-topic > header > span { color: var(--gold); font: 24px var(--serif); }
.practice-topic header small { color: var(--red); font-size: 11px; letter-spacing: .13em; }
.practice-topic h2 { margin: 3px 0 0; font: 700 30px var(--serif); }
.topic-cases { display: grid; grid-template-columns: 1fr 1fr; }
.topic-cases > a { min-height: 300px; padding: 27px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.topic-cases > a:nth-child(odd) { border-left: 1px solid var(--line); }
.topic-cases > a:hover { background: #eee5d9; }
.topic-cases span { color: var(--red); font-size: 12px; }
.topic-cases h3 { margin: 16px 0 12px; font: 600 23px/1.5 var(--serif); }
.topic-cases p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.case-principles { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 7px; }
.case-principles b { padding: 5px 8px; border: 1px solid var(--line); font-size: 12px; }
.case-principles strong { width: 100%; margin-top: 10px; color: var(--red); font-size: 14px; }
.micro-sources { margin: 60px 0 0 auto; width: min(700px, 100%); color: var(--muted); font-size: 12px; text-align: right; }
.micro-sources summary { cursor: pointer; }
.micro-sources p { font-size: 12px; }
.micro-sources a { display: block; margin-top: 4px; }

/* Case detail */
.case-head { padding: 28px clamp(20px, 8vw, 130px) 58px; color: #f4eadc; background: var(--red-dark); }
.case-head > span { display: block; margin-top: 62px; color: #dfb468; font-size: 13px; }
.case-head h1 { max-width: 980px; margin: 12px 0; font: 700 clamp(36px, 5vw, 62px)/1.25 var(--serif); }
.case-head > p { margin: 0; color: #ccb8aa; font-size: 15px; }
.case-analysis { max-width: 1220px; margin: 0 auto; padding: 64px 24px 100px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 60px; align-items: start; }
.analysis-rail { position: sticky; top: 105px; border-top: 3px solid var(--red); }
.analysis-rail > b { display: block; padding: 18px 0; font: 600 18px var(--serif); }
.analysis-rail a { display: block; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.analysis-rail .official-source { margin-top: 20px; padding: 12px; color: var(--red); border: 1px solid var(--red); text-align: center; }
.analysis-content > article { padding: 0 0 55px; display: grid; grid-template-columns: 60px 1fr; gap: 18px; }
.analysis-no { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: var(--red); font: 18px var(--serif); }
.analysis-content article small { color: var(--gold); font-size: 12px; letter-spacing: .14em; }
.analysis-content h2 { margin: 5px 0 20px; font: 700 30px var(--serif); }
.lead-text { color: var(--muted); font-size: 17px; line-height: 1.95; }
.analysis-rule { padding: 22px; display: grid; grid-template-columns: 90px 1fr; gap: 15px; border-left: 3px solid var(--gold); background: #eee6da; }
.analysis-rule p { margin: 0; color: var(--muted); font-size: 14px; }
.principle-list { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.principle-list > div { padding: 20px; border-right: 1px solid var(--line); }
.principle-list > div:last-child { border: 0; }
.principle-list span { color: var(--gold); }
.principle-list b { display: block; margin: 10px 0; font: 600 16px var(--serif); }
.principle-list p { margin: 0; color: var(--muted); font-size: 13px; }
.related-point { display: inline-block; margin-top: 18px; color: var(--red); font-weight: 600; font-size: 14px; }
.analysis-content blockquote { margin: 0; padding: 28px; color: #f5eadc; background: #24211d; font: 20px/1.85 var(--serif); }
.conclusion-box { padding: 27px; border: 1px solid rgba(143,37,40,.3); background: #f1e4dc; }
.conclusion-box b { color: var(--red); font: 600 19px var(--serif); }
.conclusion-box p { margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.case-pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.case-pager a { padding: 22px 0; }
.case-pager a:last-child { padding-left: 25px; border-left: 1px solid var(--line); text-align: right; }
.case-pager small, .case-pager b { display: block; }
.case-pager small { color: var(--muted); font-size: 12px; }
.case-pager b { margin-top: 6px; font: 600 15px var(--serif); }

/* Drill hub */
.drill-grid { padding: 50px clamp(20px, 7vw, 110px) 100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.drill-card { min-height: 430px; padding: 30px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--paper-light); transition: .2s ease; }
.drill-card:hover { color: #f6ecdf; border-color: var(--red-dark); background: var(--red-dark); transform: translateY(-4px); }
.drill-top { display: flex; justify-content: space-between; }
.drill-top span { color: var(--gold); font: 22px var(--serif); }
.drill-top small { color: var(--muted); font-size: 11px; letter-spacing: .13em; }
.drill-card:hover .drill-top small, .drill-card:hover p, .drill-card:hover .drill-meta span { color: #c4b5a8; }
.drill-card h2 { margin: 70px 0 14px; font: 700 34px var(--serif); }
.drill-card > p { margin: 0; color: var(--muted); font-size: 15px; }
.drill-meta { margin-top: auto; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.drill-meta b, .drill-meta span { display: block; }
.drill-meta b { color: var(--red); font: 26px var(--serif); }
.drill-card:hover .drill-meta b { color: #e2b568; }
.drill-meta span { color: var(--muted); font-size: 12px; }
.drill-card > strong { margin-top: 24px; color: var(--red); font-size: 14px; }
.drill-card:hover > strong { color: #e8bd75; }

/* Quiz */
.quiz-page { min-height: calc(100vh - 156px); padding: 28px clamp(16px, 5vw, 72px) 70px; background: #ebe4d9; }
.quiz-status { max-width: 1180px; margin: 30px auto 22px; padding: 20px 26px; display: grid; grid-template-columns: 1fr 90px; gap: 28px; align-items: center; border: 1px solid var(--line); background: var(--paper-light); }
.quiz-status > div > span { font: 600 18px var(--serif); }
.quiz-status > div > div { height: 4px; margin-top: 12px; background: #d8d0c4; }
.quiz-status i { display: block; height: 100%; background: var(--red); }
.quiz-status > b { text-align: right; font: 30px var(--serif); }
.quiz-status small { color: var(--muted); font-size: 13px; }
.quiz-body { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
.question-card { padding: 38px; background: var(--paper-light); }
.question-tags { display: flex; align-items: center; gap: 8px; }
.question-tags span { padding: 6px 9px; color: var(--red); border: 1px solid rgba(143,37,40,.25); font-size: 12px; }
.question-tags a { margin-left: auto; color: var(--muted); font-size: 12px; }
.question-card h1 { margin: 32px 0; font: 600 23px/1.75 var(--serif); }
.options { display: grid; gap: 12px; }
.option { width: 100%; min-height: 64px; padding: 14px 17px; display: grid; grid-template-columns: 34px 1fr 24px; gap: 12px; align-items: center; border: 1px solid var(--line); background: transparent; text-align: left; }
.option:hover, .option.selected { border-color: var(--red); background: #f2e6de; }
.option > span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); font: 15px var(--serif); }
.option.selected > span { color: #fff; border-color: var(--red); background: var(--red); }
.option p { margin: 0; font-size: 15px; }
.option i { color: var(--red); font-style: normal; }
.quiz-actions { margin-top: 35px; padding-top: 22px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
.quiz-actions button { padding: 11px 18px; border: 1px solid var(--line); background: transparent; }
.quiz-actions button:disabled { opacity: .4; }
.quiz-actions .primary-action { color: #fff; border-color: var(--red); background: var(--red); }
.answer-panel { padding: 24px; background: var(--paper-light); }
.answer-panel h2 { margin: 0 0 18px; font: 600 22px var(--serif); }
.answer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.answer-grid button { aspect-ratio: 1; border: 1px solid var(--line); background: transparent; }
.answer-grid button.answered { color: #fff; border-color: var(--red); background: var(--red); }
.answer-grid button.current { outline: 2px solid var(--gold); outline-offset: 2px; }
.answer-panel > p { margin: 20px 0 0; color: var(--muted); font-size: 12px; }

/* Results */
.results-page { padding: 28px clamp(16px, 5vw, 72px) 90px; }
.score-block { max-width: 1180px; margin: 30px auto 0; padding: 42px; color: #f4eadc; background: var(--red-dark); text-align: center; }
.score-block > span { color: #dfb56d; font-size: 12px; letter-spacing: .14em; }
.score-block h1 { margin: 5px 0; font: 700 82px var(--serif); }
.score-block h1 small { font-size: 20px; }
.score-block > p { color: #c9b6a8; }
.score-block > div { max-width: 520px; margin: 25px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.2); }
.score-block > div > b { padding-top: 17px; font: 24px var(--serif); }
.score-block > div > b + b { border-left: 1px solid rgba(255,255,255,.2); }
.score-block small { display: block; color: #bba89a; font: 11px var(--sans); }
.results-layout { max-width: 1180px; margin: 42px auto 0; display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.answer-analysis > header { display: flex; justify-content: space-between; align-items: center; }
.answer-analysis h2 { font: 600 28px var(--serif); }
.answer-analysis header a { color: var(--red); font-size: 13px; }
.answer-item { margin-bottom: 14px; padding: 24px; border: 1px solid var(--line); background: var(--paper-light); }
.answer-item.correct { border-left: 4px solid #58705d; }
.answer-item.wrong { border-left: 4px solid var(--red); }
.answer-title { display: grid; grid-template-columns: 36px 1fr 42px; gap: 12px; }
.answer-title > span { color: var(--gold); }
.answer-title small { color: var(--muted); font-size: 11px; }
.answer-title h3 { margin: 6px 0 0; font: 600 16px/1.55 var(--serif); }
.answer-title > b { color: var(--red); font-size: 12px; }
.answer-item > p { font-size: 13px; }
.answer-item > div:nth-child(3) { padding: 15px; color: var(--muted); background: #eee6da; font-size: 13px; }
.answer-item > a { display: inline-block; margin-top: 13px; color: var(--red); font-size: 13px; }
.weak-points { position: sticky; top: 105px; padding: 25px; color: #f4eadc; background: #24211d; }
.weak-points > span { color: var(--gold); font-size: 12px; }
.weak-points h2 { margin: 7px 0 20px; font: 600 24px var(--serif); }
.weak-points > a:not(.map-review) { padding: 14px 0; display: grid; grid-template-columns: 28px 1fr; gap: 10px; border-top: 1px solid rgba(255,255,255,.14); }
.weak-points > a > b { color: var(--gold); }
.weak-points strong, .weak-points small { display: block; }
.weak-points strong { font: 14px var(--serif); }
.weak-points small { margin-top: 5px; color: #a99d91; font-size: 11px; }
.map-review { display: block; margin-top: 20px; padding: 11px; color: #e7bc71; border: 1px solid #9c7840; text-align: center; font-size: 13px; }

/* Search */
.search-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-start; justify-content: center; padding-top: 10vh; }
.search-modal.open { display: flex; }
.search-backdrop { position: absolute; inset: 0; background: rgba(20,17,14,.72); backdrop-filter: blur(5px); }
.search-dialog { position: relative; width: min(720px, calc(100% - 30px)); max-height: 75vh; overflow: auto; background: var(--paper-light); box-shadow: 0 26px 90px rgba(0,0,0,.35); }
.search-input-wrap { height: 70px; padding: 0 22px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; border-bottom: 1px solid var(--line); }
.search-input-wrap > span { font-size: 25px; }
.search-input-wrap input { width: 100%; border: 0; outline: 0; background: transparent; font: 17px var(--serif); }
.search-input-wrap kbd { padding: 4px 7px; border: 1px solid var(--line); color: var(--muted); background: #eee7dc; }
.search-results { padding: 14px 22px 25px; }
.search-results > a { padding: 15px 0; display: grid; grid-template-columns: 80px 1fr 20px; gap: 10px; border-bottom: 1px solid var(--line); }
.search-results small { color: var(--red); font-size: 12px; }
.search-results b { font: 600 15px var(--serif); }
.search-count { padding: 8px 0; color: var(--muted); font-size: 12px; }
.search-empty { padding: 55px 20px; text-align: center; }
.search-empty p { color: var(--muted); font-size: 13px; }

@media (max-width: 1050px) {
  .book-spine { grid-template-columns: repeat(4, 1fr); }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-card { min-height: 270px; }
  .hub-card small { margin-top: 35px; }
  .section-tree { grid-template-columns: 1fr; }
  .section-tree::before, .branch-line { display: none; }
  .method-focus { grid-template-columns: 1fr; }
  .method-focus ol { grid-template-columns: repeat(5, 1fr); }
  .chapter-study, .point-layout, .case-analysis, .results-layout { grid-template-columns: 1fr; }
  .chapter-guide, .point-side, .analysis-rail, .weak-points { position: static; }
  .chapter-guide { display: none; }
  .drill-grid { grid-template-columns: 1fr; }
  .drill-card { min-height: 300px; }
  .drill-card h2 { margin-top: 38px; }
  .quiz-body { grid-template-columns: 1fr; }
  .answer-panel { grid-row: 1; }
  .answer-grid { grid-template-columns: repeat(10, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { height: 66px; padding: 0 15px; gap: 12px; }
  .brand small { display: none; }
  .brand strong { font-size: 18px; }
  .search-button { margin-left: auto; border: 0; }
  .search-button span:last-child { display: none; }
  .menu-button { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 66px; display: none; padding: 7px 15px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: grid; gap: 0; }
  .main-nav a { height: 48px; justify-content: start; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .site-footer { display: block; padding: 22px 16px; }
  .site-footer p { margin-top: 12px; line-height: 1.6; }
  .opening-mark { gap: 17px; letter-spacing: .08em; font-size: 47px; }
  @keyframes opening-line { to { height: 52px; } }
  .opening p { font-size: 11px; letter-spacing: .16em; }
  .home-minimal { min-height: calc(100vh - 142px); padding: 46px 16px; }
  .home-minimal::after { inset: 10px; }
  .home-heading { margin-bottom: 28px; }
  .home-heading h1 { font-size: 40px; }
  .home-heading p { font-size: 16px; }
  .home-choices { grid-template-columns: 1fr; }
  .home-choice { min-height: 200px; padding: 23px 20px; grid-template-columns: 42px 1fr; gap: 7px 10px; }
  .choice-copy h2 { font-size: 30px; }
  .inner-head { padding: 20px 16px 35px; }
  .location-bar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .back-button { padding: 8px 12px; }
  .breadcrumbs { font-size: 12px; }
  .inner-title { margin-top: 32px; grid-template-columns: 1fr; gap: 4px; }
  .inner-title h1 { font-size: 39px; }
  .inner-title p { font-size: 16px; }
  .hub-grid { padding: 28px 16px 70px; }
  .hub-card { min-height: 255px; padding: 23px; }
  .map-page { padding: 25px 16px 70px; }
  .book-spine { display: flex; overflow-x: auto; }
  .spine-node { flex: 0 0 210px; }
  .chapter-network { padding: 20px 15px; }
  .network-head { display: block; }
  .legend-block { margin-top: 20px; justify-content: space-between; }
  .tree-root { width: 100%; }
  .section-branch { padding: 16px 13px; }
  .topic-node { min-height: 86px; }
  .network-note { display: block; }
  .network-note span { display: block; margin-top: 6px; }
  .syllabus-list { padding: 20px 16px 70px; }
  .syllabus-row { grid-template-columns: 40px 1fr; gap: 12px; }
  .syllabus-side { grid-column: 2; padding: 15px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .section-names { grid-template-columns: 1fr; }
  .chapter-title-page { padding: 20px 16px 40px; }
  .chapter-title-page > div:last-child { margin-top: 38px; }
  .chapter-title-page h1 { font-size: 38px; }
  .chapter-study { padding: 35px 16px 70px; }
  .section-lesson > header { grid-template-columns: 40px 1fr; }
  .section-lesson h2 { font-size: 22px; }
  .lesson-topic { grid-template-columns: 1fr; gap: 10px; }
  .lesson-topic .importance { justify-content: space-between; }
  .point-head { padding: 20px 16px 38px; }
  .point-heading { display: block; margin-top: 38px; }
  .point-heading h1 { font-size: 38px; }
  .point-heading > .importance { margin-top: 22px; }
  .point-layout { padding: 40px 16px 70px; }
  .point-content > section { grid-template-columns: 34px 1fr; gap: 10px; }
  .point-content h2 { font-size: 23px; }
  .reason-chain { align-items: stretch; flex-direction: column; gap: 6px; }
  .reason-chain i { transform: rotate(90deg); align-self: flex-start; }
  .assessment-grid, .principle-list { grid-template-columns: 1fr; }
  .assessment-grid > div, .principle-list > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .practice-page { padding: 28px 16px 70px; }
  .method-focus { padding: 23px 18px; }
  .method-focus ol { grid-template-columns: 1fr; }
  .method-focus li { padding: 12px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .practice-topic > header { grid-template-columns: 40px 1fr; }
  .practice-topic h2 { font-size: 25px; }
  .topic-cases { grid-template-columns: 1fr; }
  .topic-cases > a { min-height: 330px; border-left: 1px solid var(--line); }
  .micro-sources { text-align: left; }
  .case-head { padding: 20px 16px 42px; }
  .case-head > span { margin-top: 45px; }
  .case-head h1 { font-size: 36px; }
  .case-analysis { padding: 40px 16px 70px; }
  .analysis-rail { display: none; }
  .analysis-content > article { grid-template-columns: 42px 1fr; gap: 9px; }
  .analysis-no { width: 38px; height: 38px; }
  .analysis-content h2 { font-size: 25px; }
  .lead-text { font-size: 16px; }
  .analysis-rule { grid-template-columns: 1fr; }
  .case-pager { grid-template-columns: 1fr; }
  .case-pager a:last-child { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); text-align: left; }
  .drill-grid { padding: 28px 16px 70px; }
  .drill-card { min-height: 310px; padding: 23px; }
  .quiz-page, .results-page { padding: 20px 12px 60px; }
  .quiz-status { margin-top: 22px; padding: 16px; grid-template-columns: 1fr 65px; }
  .question-card { padding: 24px 17px; }
  .question-tags { flex-wrap: wrap; }
  .question-tags a { width: 100%; margin: 4px 0 0; }
  .question-card h1 { font-size: 20px; }
  .answer-grid { grid-template-columns: repeat(5, 1fr); }
  .score-block { padding: 30px 18px; }
  .score-block h1 { font-size: 67px; }
  .answer-title { grid-template-columns: 28px 1fr; }
  .answer-title > b { grid-column: 2; }
  .search-results > a { grid-template-columns: 70px 1fr; }
  .search-results > a > span { display: none; }
}

/* 第五版：章节直达、短阅读与稳定首页插画 */
#app.page-enter { animation: page-enter .28s cubic-bezier(.2,.7,.2,1) both; }
@keyframes page-enter { from { opacity: .01; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { #app.page-enter { animation: none; } }

.home-choice {
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  background-image: none !important;
  background-position: right center !important;
}
.home-choice:hover { transform: none; box-shadow: 0 20px 54px rgba(80,56,38,.12); }
.home-choice .choice-art { position: absolute; top: 0; right: 0; width: auto; height: 100%; max-width: 64%; object-fit: contain; object-position: right center; pointer-events: none; user-select: none; z-index: 0; }
.home-choice::before { z-index: 1; background: linear-gradient(90deg, #fcf9f2 0%, rgba(252,249,242,.98) 43%, rgba(252,249,242,.60) 63%, rgba(252,249,242,.08) 90%, transparent 100%); }
.home-choice .choice-copy, .home-choice > span { position: relative; z-index: 2; }

.map-selector, .map-chapter, .knowledge-compact { max-width: 1120px; margin: 0 auto; padding: 34px clamp(16px, 4vw, 48px) 74px; }
.chapter-choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.chapter-choice-grid a { min-height: 96px; padding: 18px; display: flex; align-items: center; justify-content: center; color: var(--ink); border: 1px solid var(--line); background: rgba(253,250,244,.92); box-shadow: 0 10px 28px rgba(73,51,34,.04); text-align: center; font: 650 20px/1.55 var(--serif); transition: border-color .2s ease, background .2s ease; }
.chapter-choice-grid a:hover { color: var(--red); border-color: var(--red); background: #f8eee5; }
.map-chapter > h1 { margin: 28px 0 24px; font: 700 clamp(31px, 4vw, 48px)/1.24 var(--serif); }
.chapter-groups { display: grid; gap: 18px; }
.topic-group { padding: 20px; border: 1px solid var(--line); background: rgba(253,250,244,.88); }
.topic-group h2 { margin: 0 0 14px; color: #663b3e; font: 650 20px/1.5 var(--serif); }
.topic-group > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.map-topic-button { min-height: 76px; padding: 13px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; color: var(--ink); border: 1px solid rgba(143,37,40,.18); background: #fffdf8; transition: border-color .2s ease, background .2s ease; }
.map-topic-button:hover { color: var(--ink); border-color: var(--red); background: #f7ebe3; transform: none; }
.map-topic-button b { font-size: 16px; line-height: 1.5; }
.map-topic-button .difficulty { gap: 6px; font-size: 12px; }
.map-topic-button .difficulty i { gap: 0; }
.chapter-drill-link { width: fit-content; margin: 24px auto 0; padding: 14px 22px; display: block; color: #fffaf2; background: var(--red); font-weight: 700; }

.knowledge-compact { max-width: 920px; }
.knowledge-compact > header { margin: 24px 0 18px; padding-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.knowledge-compact header > div > span { color: var(--red); font-size: 13px; font-weight: 700; }
.knowledge-compact h1 { margin: 6px 0 0; font: 700 clamp(30px, 4vw, 46px)/1.25 var(--serif); }
.compact-knowledge-cards { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; }
.compact-knowledge-cards section { padding: 20px; border: 1px solid var(--line); background: rgba(253,250,244,.93); }
.compact-knowledge-cards section:first-child { grid-row: span 2; background: #f0e5d7; }
.compact-knowledge-cards small { display: block; margin-bottom: 9px; color: var(--red); font-weight: 700; font-size: 12px; letter-spacing: .07em; }
.compact-knowledge-cards p { margin: 0; color: #514a43; font-size: 16px; line-height: 1.76; }

@media (max-width: 760px) {
  .home-choice { background-position: right center !important; }
  .home-choice .choice-art { max-width: 68%; }
  .home-choice::before { background: linear-gradient(90deg, #fcf9f2 0%, rgba(252,249,242,.97) 51%, rgba(252,249,242,.45) 76%, rgba(252,249,242,.04) 100%); }
  .map-selector, .map-chapter, .knowledge-compact { padding: 24px 16px 54px; }
  .chapter-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .chapter-choice-grid a { min-height: 76px; padding: 12px; font-size: 17px; }
  .map-chapter > h1 { margin: 20px 0 16px; font-size: 30px; }
  .topic-group { padding: 15px; }
  .topic-group > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .map-topic-button { min-height: 94px; padding: 11px; }
  .map-topic-button b { font-size: 14px; line-height: 1.46; }
  .map-topic-button .difficulty { font-size: 11px; }
  .knowledge-compact > header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .knowledge-compact h1 { font-size: 31px; }
  .compact-knowledge-cards { grid-template-columns: 1fr; gap: 10px; }
  .compact-knowledge-cards section:first-child { grid-row: auto; }
  .compact-knowledge-cards section { padding: 17px; }
  .compact-knowledge-cards p { font-size: 16px; line-height: 1.7; }
}

/* 第四版：浅色纸张体系、完整知识精讲与权威案例页 */
body {
  background:
    radial-gradient(circle at 9% 8%, rgba(181,138,67,.10), transparent 27rem),
    radial-gradient(circle at 90% 32%, rgba(143,37,40,.07), transparent 34rem),
    var(--paper);
}

.opening { color: #fff8ed; background: linear-gradient(145deg, #9b3d3f, #7f292d 60%, #a65b4d); }
.opening p { color: #ead8c8; }

.home-minimal::before {
  background:
    linear-gradient(120deg, rgba(255,252,246,.92), rgba(238,228,213,.72)),
    repeating-linear-gradient(135deg, rgba(143,37,40,.025) 0 1px, transparent 1px 14px);
}
.home-heading { margin-bottom: 34px; }
.home-heading > span { letter-spacing: .08em; }
.home-heading h1 { font-size: clamp(39px, 5.2vw, 66px); }
.home-choices { gap: 22px; }
.home-choice {
  min-height: 310px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  background-color: rgba(252,249,242,.96);
  background-position: right center;
  background-repeat: no-repeat;
  background-size: auto 100%;
  box-shadow: 0 18px 50px rgba(80,56,38,.08);
}
.home-choice::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #fcf9f2 0%, rgba(252,249,242,.96) 42%, rgba(252,249,242,.20) 82%, transparent 100%); }
.home-choice.learn-choice { background-image: url('./assets/home-marx-engels-lineart-v1.jpg'); }
.home-choice.drill-choice {
  color: var(--ink);
  border-color: rgba(143,37,40,.22);
  background-color: rgba(252,249,242,.96);
  background-image: url('./assets/home-books-lineart-v1.jpg');
}
.home-choice.drill-choice:hover { color: var(--ink); border-color: var(--red); background-color: #fffaf1; }
.home-choice .choice-copy { max-width: 56%; }
.choice-copy small, .drill-choice .choice-copy small { color: var(--red); letter-spacing: .08em; }
.choice-copy p, .drill-choice .choice-copy p { color: var(--muted); }
.home-choice > span, .drill-choice > span { color: var(--red); }

.inner-head {
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(236,222,202,.92), rgba(249,245,237,.98)),
    repeating-linear-gradient(90deg, rgba(143,37,40,.03) 0 1px, transparent 1px 28px);
  border-bottom: 1px solid var(--line);
}
.inner-head .back-button, .case-head .back-button { color: var(--red); border-color: rgba(143,37,40,.35); background: rgba(255,252,246,.72); }
.inner-head .breadcrumbs, .case-head .breadcrumbs { color: var(--muted); }
.inner-head .breadcrumbs b, .case-head .breadcrumbs b { color: var(--ink); }
.inner-title > span { color: var(--red); font-weight: 700; }
.inner-title p { color: var(--muted); }

.hub-grid.learn-hub { grid-template-columns: 1.08fr .92fr; }
.hub-card { min-height: 360px; background: rgba(252,249,242,.9); box-shadow: 0 16px 44px rgba(79,57,40,.06); }
.hub-card.featured { background: linear-gradient(145deg, #eadfce, #f7f0e5); }
.hub-card.practice-card { background: linear-gradient(145deg, #f3e5df, #fbf5ec); }
.hub-card small { margin-top: 28px; color: var(--red); letter-spacing: .08em; }

.spine-node:hover, .spine-node.active { color: #fff8ef; background: #983f40; }
.chapter-network { background: rgba(253,250,244,.88); box-shadow: 0 20px 58px rgba(75,54,37,.06); }
.tree-root { color: var(--ink); border: 1px solid rgba(143,37,40,.24); background: linear-gradient(135deg, #e9d8c6, #f4e7db); }
.tree-root span { color: var(--red); }
.section-branch { background: rgba(246,240,230,.92); }
.section-branch h3 { font-size: 19px; }
.topic-node { min-height: 86px; padding: 15px; background: #fffdf8; }
.topic-node b { font-size: 17px; line-height: 1.55; }
.topic-node:hover { border-color: var(--red); background: #f6e9e1; transform: translateY(-2px); }
.topic-node .importance { flex: none; }

.point-head { background: linear-gradient(130deg, #ede2d3, #faf6ee); border-bottom: 1px solid var(--line); }
.point-metrics { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.difficulty { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.difficulty i { display: flex; gap: 2px; font-style: normal; }
.difficulty em { color: #d5ccbf; font-style: normal; }
.difficulty em.on { color: var(--gold); }

.knowledge-detail { padding: 56px clamp(20px, 7vw, 110px) 100px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 50px; align-items: start; }
.knowledge-main { display: grid; gap: 18px; }
.knowledge-card { padding: 30px; border: 1px solid var(--line); background: rgba(253,250,244,.94); box-shadow: 0 12px 34px rgba(73,51,34,.05); }
.knowledge-card h2 { margin: 7px 0 18px; font: 650 27px var(--serif); }
.knowledge-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.card-label { color: var(--red); font-weight: 700; font-size: 12px; letter-spacing: .09em; }
.definition-card blockquote { margin: 0; padding: 24px 26px; border-left: 4px solid var(--red); background: #eee3d4; font: 21px/1.85 var(--serif); }
.knowledge-explain { font-size: 18px !important; color: #4e4740 !important; }
.logic-strip { margin-top: 24px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 9px; color: #65363a; background: #f0dfd7; border: 1px solid rgba(143,37,40,.13); font-size: 14px; }
.logic-strip i { color: var(--gold); font-style: normal; }
.knowledge-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.memory-card { border-top: 4px solid var(--gold); background: #f2eadb; }
.memory-card h2 { color: #775322; }
.exam-card { border-top: 4px solid var(--red); }
.mistake-card { background: #f6e6df; }
.transfer-card { border-left: 4px solid #9a4d48; }
.transfer-card a { display: inline-block; margin-top: 18px; color: var(--red); font-weight: 700; }
.knowledge-side { position: sticky; top: 105px; border-top: 3px solid var(--red); background: rgba(253,250,244,.94); }
.knowledge-side > div { padding: 22px; border: 1px solid var(--line); border-top: 0; }
.knowledge-side small { display: block; margin-bottom: 8px; color: var(--muted); }
.knowledge-side b { font: 700 24px var(--serif); }
.knowledge-side p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.chapter-practice-button { display: block; padding: 14px 18px; color: #fffaf2; background: var(--red); text-align: center; font-weight: 700; }

.method-focus { color: var(--ink); background: linear-gradient(135deg, #eadacb, #f4e7df); border: 1px solid rgba(143,37,40,.16); }
.method-copy > span, .method-focus li > b { color: var(--red); }
.method-copy p, .method-focus li small { color: var(--muted); }
.method-focus li { border-left-color: rgba(143,37,40,.16); }
.practice-topic > header { grid-template-columns: 110px 1fr; }
.practice-topic > header > span { color: var(--red); font: 700 18px var(--serif); }
.topic-cases > a { background: rgba(253,250,244,.72); }

.case-head { color: var(--ink); background: linear-gradient(130deg, #e3cfc0, #f7ede3); border-bottom: 1px solid var(--line); }
.case-head > span { color: var(--red); }
.case-head > p { color: var(--muted); }
.analysis-no { color: #fff9f0; background: #9b4242; }
.source-type { margin: -8px 0 22px; color: var(--muted); font-size: 13px; }
.case-timeline { border-left: 2px solid rgba(143,37,40,.25); }
.case-timeline > div { position: relative; padding: 0 0 25px 28px; }
.case-timeline > div::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border: 3px solid #f7f1e8; border-radius: 50%; background: var(--red); }
.case-timeline b { color: var(--red); font-size: 14px; }
.case-timeline p { margin: 6px 0 0; color: #554e47; font-size: 16px; line-height: 1.85; }
.official-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.official-grid section { padding: 24px; }
.official-grid section + section { border-left: 1px solid var(--line); }
.official-grid b { color: var(--red); font: 650 19px var(--serif); }
.official-grid p { margin-bottom: 0; color: var(--muted); line-height: 1.85; }
.authority-note { padding: 12px 16px; margin: 14px 0 0; color: #765e4b; background: #eee4d7; font-size: 12px; }
.methodology-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.methodology-grid section { padding: 21px; border: 1px solid var(--line); background: #fbf7ef; }
.methodology-grid b { color: var(--red); font: 650 17px var(--serif); }
.methodology-grid p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.related-links { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.related-links span { color: var(--muted); font-size: 13px; }
.related-links a { padding: 7px 10px; border: 1px solid rgba(143,37,40,.25); color: var(--red); font-size: 13px; }
.analysis-content blockquote { color: #5b2b2d; background: #efddd5; border-left: 4px solid var(--red); }
.case-answer { padding: 18px 20px; border: 1px solid rgba(143,37,40,.25); background: #f4e6dd; }
.case-answer summary { color: var(--red); cursor: pointer; font-weight: 700; }
.case-answer p { color: var(--muted); line-height: 1.85; }
.case-back-practice { display: inline-block; margin-top: 20px; color: var(--red); font-weight: 700; }

.drill-grid { gap: 22px; }
.drill-card { min-height: 290px; justify-content: center; align-items: center; text-align: center; background: linear-gradient(145deg, #fcf8f0, #efe3d4); box-shadow: 0 16px 45px rgba(73,51,35,.06); }
.drill-card:nth-child(2) { background: linear-gradient(145deg, #f7ede4, #ead6cf); }
.drill-card:nth-child(3) { background: linear-gradient(145deg, #f4ecdd, #e5dcc9); }
.drill-card:hover { color: var(--ink); border-color: var(--red); background: #fffaf3; }
.drill-card h2 { margin: 0 0 36px; font-size: clamp(32px, 3.2vw, 44px); }
.drill-card > strong, .drill-card:hover > strong { color: var(--red); }

.score-block { color: var(--ink); background: linear-gradient(135deg, #ead5cc, #f1e4d7); border: 1px solid rgba(143,37,40,.18); }
.score-block > span { color: var(--red); }
.score-block > p, .score-block small { color: var(--muted); }
.score-block > div, .score-block > div > b + b { border-color: rgba(143,37,40,.18); }
.result-next { max-width: 1180px; margin: 18px auto 0; display: flex; justify-content: center; gap: 12px; }
.result-next a { padding: 13px 20px; color: #fffaf2; background: var(--red); font-weight: 700; }
.result-next a.secondary { color: var(--red); border: 1px solid rgba(143,37,40,.3); background: transparent; }
.weak-points { color: var(--ink); background: #eee1d5; border: 1px solid var(--line); }
.weak-points > a:not(.map-review) { border-top-color: var(--line); }
.weak-points strong { color: var(--ink); }
.weak-points small { color: var(--muted); }
.map-review { color: var(--red); border-color: rgba(143,37,40,.35); }
.search-backdrop { background: rgba(106,54,50,.58); }

@media (max-width: 1050px) {
  .knowledge-detail { grid-template-columns: 1fr; }
  .knowledge-side { position: static; }
}

@media (max-width: 760px) {
  .home-choice { min-height: 235px; padding: 24px; background-position: 72% center; background-size: auto 100%; }
  .home-choice .choice-copy { max-width: 63%; }
  .home-choice::before { background: linear-gradient(90deg, #fcf9f2 0%, rgba(252,249,242,.94) 56%, rgba(252,249,242,.25) 100%); }
  .hub-grid.learn-hub { grid-template-columns: 1fr; }
  .practice-topic > header { grid-template-columns: 75px 1fr; }
  .knowledge-detail { padding: 36px 16px 70px; }
  .knowledge-card { padding: 22px 18px; }
  .knowledge-pair, .official-grid, .methodology-grid { grid-template-columns: 1fr; }
  .official-grid section + section { border-left: 0; border-top: 1px solid var(--line); }
  .logic-strip { align-items: flex-start; flex-direction: column; }
  .logic-strip i { transform: rotate(90deg); }
  .point-metrics { margin-top: 20px; align-items: flex-start; }
  .case-timeline > div { padding-left: 22px; }
  .result-next { flex-direction: column; text-align: center; }
}

/* 入口页面只保留层级导航与下一层按钮 */
.level-choice-page {
  min-height: calc(100dvh - 96px);
  padding: 38px clamp(20px, 7vw, 110px) 46px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: hidden;
}
.level-choice-page .location-bar { flex: none; margin: 0; }
.level-choice-grid { min-height: 0; flex: 1; display: grid; gap: 18px; }
.learn-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.drill-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.level-choice-grid > a {
  min-height: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,252,246,.96), rgba(237,225,209,.88));
  box-shadow: 0 16px 42px rgba(73,51,35,.06);
  text-align: center;
  font: 700 clamp(31px, 4vw, 52px)/1.28 var(--serif);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.level-choice-grid > a:hover { color: var(--red); border-color: var(--red); box-shadow: 0 18px 46px rgba(73,51,35,.10); transform: none; }
.level-choice-grid > a:nth-child(even) { background: linear-gradient(145deg, rgba(249,240,234,.96), rgba(232,216,207,.88)); }

@media (max-width: 760px) {
  .level-choice-page { min-height: calc(100dvh - 72px); padding: 18px 16px 20px; gap: 16px; }
  .learn-levels, .drill-levels { grid-template-columns: 1fr; }
  .level-choice-grid { gap: 10px; }
  .level-choice-grid > a { padding: 14px; font-size: clamp(25px, 8vw, 36px); }
}

/* 刷题页首屏直接进入题目，答题卡压缩后置 */
.quiz-page { padding-top: 18px; }
.quiz-page > .location-bar { max-width: 1180px; margin: 0 auto; }
.quiz-status { margin: 14px auto 12px; padding: 11px 16px; grid-template-columns: 1fr 58px; gap: 16px; }
.quiz-status > div > span { font-size: 15px; }
.quiz-status > div > div { height: 3px; margin-top: 7px; }
.quiz-status > b { font-size: 24px; }
.quiz-body { grid-template-columns: 1fr; gap: 10px; }
.question-card { padding: 26px 30px; }
.question-card h1 { margin: 20px 0; }
.quiz-actions { margin-top: 24px; padding-top: 16px; }
.answer-panel {
  grid-row: auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border: 1px solid var(--line);
}
.answer-panel h2 { margin: 0; color: var(--muted); font: 600 13px var(--sans); }
.answer-grid { width: auto; display: flex; gap: 6px; }
.answer-grid button { width: 32px; height: 32px; aspect-ratio: auto; font-size: 13px; }
.answer-panel > p { display: none; }

@media (max-width: 760px) {
  .quiz-page { padding-top: 12px; }
  .quiz-status { margin: 10px auto 8px; padding: 9px 12px; grid-template-columns: 1fr 50px; }
  .quiz-status > div > span { font-size: 14px; }
  .quiz-status > b { font-size: 21px; }
  .question-card { padding: 18px 15px; }
  .question-card h1 { margin: 16px 0; font-size: 19px; line-height: 1.62; }
  .question-tags { gap: 6px; }
  .question-tags a { width: auto; margin: 0 0 0 auto; }
  .option { padding: 10px 11px; }
  .quiz-actions { margin-top: 18px; }
  .answer-panel { justify-content: space-between; padding: 8px 10px; }
  .answer-grid button { width: 30px; height: 30px; }
}

/* 最终版：融合插画、逐级知行图谱与柔和页面切换 */
#app { view-transition-name: page-content; }
::view-transition-old(page-content) { animation: page-soft-out .18s ease both; }
::view-transition-new(page-content) { animation: page-soft-in .34s cubic-bezier(.22,.7,.22,1) both; }
@keyframes page-soft-out { to { opacity: 0; transform: translateY(-3px); } }
@keyframes page-soft-in { from { opacity: 0; transform: translateY(7px); } }
#app.page-enter { animation: page-enter .34s cubic-bezier(.22,.7,.22,1) both; }

.home-choice,
.home-choice.learn-choice,
.home-choice.drill-choice {
  position: relative;
  background-image: none !important;
  background-color: rgba(250,246,238,.96) !important;
}
.home-choice::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1 !important;
  pointer-events: none;
  background: linear-gradient(90deg, #faf6ee 0%, rgba(250,246,238,.98) 41%, rgba(250,246,238,.72) 59%, rgba(250,246,238,.12) 91%, transparent 100%) !important;
}
.home-choice::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: inset 0 0 46px rgba(105,73,45,.04);
  pointer-events: none;
}
.home-choice .choice-art {
  top: -3%;
  right: -1px;
  width: 66%;
  height: 106%;
  max-width: none;
  object-fit: contain;
  object-position: right center;
  opacity: .58;
  mix-blend-mode: multiply;
  filter: grayscale(1) sepia(.3) contrast(.85) brightness(1.1);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 24%, #000 51%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 24%, #000 51%, #000 100%);
  transform: none !important;
  transition: none !important;
}
.home-choice.drill-choice .choice-art { width: 63%; opacity: .52; }
.home-choice:hover .choice-art,
.home-choice:focus-visible .choice-art { transform: none !important; }
.home-choice .choice-copy,
.home-choice > span { position: relative; z-index: 4; }
.level-choice-grid > a { font-size: clamp(29px, 3.3vw, 44px); }

.map-tree-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 30px clamp(16px, 4vw, 48px) 64px;
}
.mindmap-stage { margin-top: 22px; }
.mindmap-root {
  width: min(440px, 100%);
  min-height: 104px;
  margin: 0 auto;
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  border: 1px solid rgba(143,37,40,.27);
  background: linear-gradient(135deg, #eadacb, #f7eee3);
  box-shadow: 0 14px 34px rgba(74,51,34,.07);
  text-align: center;
}
.mindmap-root small { color: var(--red); font-weight: 700; }
.mindmap-root strong { margin-top: 5px; font: 700 28px/1.35 var(--serif); }
.mindmap-branches {
  position: relative;
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.mindmap-branches::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 16.67%;
  right: 16.67%;
  height: 1px;
  background: rgba(143,37,40,.28);
}
.mindmap-branches > a {
  position: relative;
  min-height: 205px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(253,250,244,.94);
  box-shadow: 0 14px 34px rgba(73,51,34,.05);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.mindmap-branches > a::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 1px;
  height: 18px;
  background: rgba(143,37,40,.28);
}
.mindmap-branches span,
.active-branch header > span { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.mindmap-branches b { margin-top: 10px; font: 700 22px/1.5 var(--serif); }
.mindmap-branches small { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.mindmap-branches i { margin-top: auto; padding-top: 15px; color: var(--red); font-style: normal; font-size: 13px; font-weight: 700; }
.mindmap-branches > a:hover { color: var(--ink); border-color: var(--red); background: #fbf1e8; box-shadow: 0 18px 42px rgba(73,51,34,.09); transform: none; }

.active-branch { margin-top: 28px; }
.active-branch > header { padding: 20px 24px; border-left: 4px solid var(--red); background: rgba(238,226,211,.72); }
.active-branch h1 { margin: 5px 0 7px; font: 700 clamp(26px, 3vw, 37px)/1.35 var(--serif); }
.active-branch p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.knowledge-node-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.knowledge-node {
  min-height: 130px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255,253,248,.95);
  transition: border-color .2s ease, background-color .2s ease;
}
.knowledge-node > div { min-width: 0; }
.knowledge-node b { display: block; font: 650 18px/1.5 var(--serif); }
.knowledge-node > div > span { display: inline-block; margin-top: 9px; padding: 4px 8px; color: var(--red); background: #f1e2d8; font-size: 11px; font-weight: 700; }
.knowledge-node .difficulty { align-self: start; gap: 6px; }
.knowledge-node .difficulty b { display: none; }
.knowledge-node .difficulty i { white-space: nowrap; }
.knowledge-node > i { grid-column: 1 / -1; align-self: end; color: var(--red); font-style: normal; font-size: 12px; font-weight: 700; }
.knowledge-node:hover { color: var(--ink); border-color: var(--red); background: #f9eee6; transform: none; }
.compact-drill { margin-top: 16px; padding: 10px 16px; font-size: 13px; }

.map-selector .location-bar,
.map-tree-page .location-bar,
.knowledge-compact .location-bar { margin-bottom: 0; }

@media (max-width: 760px) {
  .level-choice-grid > a { font-size: clamp(25px, 8vw, 36px); }
  .home-choice .choice-art { right: -1px; width: 72%; height: 104%; opacity: .48; }
  .home-choice.drill-choice .choice-art { width: 69%; opacity: .46; }
  .home-choice::before { background: linear-gradient(90deg, #faf6ee 0%, rgba(250,246,238,.98) 48%, rgba(250,246,238,.64) 71%, rgba(250,246,238,.08) 100%) !important; }
  .map-tree-page { padding: 18px 14px 45px; }
  .mindmap-stage { margin-top: 15px; }
  .mindmap-root { min-height: 70px; padding: 12px 15px; }
  .mindmap-root strong { font-size: 22px; }
  .mindmap-branches { margin-top: 15px; grid-template-columns: 1fr; gap: 8px; }
  .mindmap-branches::before,
  .mindmap-branches > a::before { display: none; }
  .mindmap-branches > a { min-height: 0; padding: 15px 16px; }
  .mindmap-branches b { margin-top: 5px; font-size: 19px; }
  .mindmap-branches small { margin-top: 7px; font-size: 12px; line-height: 1.55; }
  .mindmap-branches i { padding-top: 8px; }
  .active-branch { margin-top: 12px; }
  .active-branch > header { padding: 13px 14px; }
  .active-branch h1 { margin: 3px 0 5px; font-size: 22px; }
  .active-branch p { font-size: 12px; line-height: 1.55; }
  .knowledge-node-grid { margin-top: 8px; grid-template-columns: 1fr; gap: 7px; }
  .knowledge-node { min-height: 92px; padding: 13px 14px; }
  .knowledge-node b { font-size: 16px; }
  .knowledge-node > div > span { margin-top: 6px; }
  .knowledge-node > i { display: none; }
  .compact-drill { margin-top: 10px; }
  .knowledge-compact { padding-top: 18px; }
  .knowledge-compact > header { margin: 14px 0 10px; padding-bottom: 10px; }
  .knowledge-compact h1 { font-size: 26px; }
  .compact-knowledge-cards { gap: 7px; }
  .compact-knowledge-cards section { padding: 13px 14px; }
  .compact-knowledge-cards small { margin-bottom: 5px; }
  .compact-knowledge-cards p { font-size: 14px; line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(page-content),
  ::view-transition-new(page-content),
  #app.page-enter { animation: none; }
}

/* 第六版：二、三级功能卡片与章节目录信息设计 */
.level-feature-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-items: flex-start !important;
  justify-content: space-between !important;
  flex-direction: column;
  padding: clamp(25px, 3vw, 40px) !important;
  text-align: left !important;
}
.level-feature-card::before {
  content: "";
  position: absolute;
  inset: 13px;
  z-index: -1;
  border: 1px solid rgba(143,37,40,.09);
  pointer-events: none;
}
.level-feature-card::after {
  content: "";
  position: absolute;
  left: clamp(25px, 3vw, 40px);
  top: clamp(25px, 3vw, 40px);
  width: 42px;
  height: 3px;
  z-index: -1;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.level-card-mark {
  position: absolute;
  right: 7%;
  top: 8%;
  z-index: -1;
  color: rgba(143,37,40,.075);
  font: 800 clamp(100px, 12vw, 168px)/1 var(--serif);
  user-select: none;
}
.level-feature-card > div { max-width: 78%; padding-top: 23px; }
.level-feature-card small {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font: 700 13px/1.5 var(--sans);
  letter-spacing: .06em;
}
.level-feature-card b {
  display: block;
  font: 700 clamp(31px, 3.3vw, 46px)/1.25 var(--serif);
}
.level-feature-card p {
  margin: 13px 0 0;
  color: var(--muted);
  font: 400 16px/1.75 var(--sans);
}
.level-feature-card > i {
  color: var(--red);
  font: 700 14px/1.4 var(--sans);
  font-style: normal;
}
.level-feature-card:hover .level-card-mark { color: rgba(143,37,40,.11); }

.chapter-choice-grid { gap: 13px; }
.chapter-choice-grid > a {
  position: relative;
  min-height: 178px;
  padding: 19px 18px 17px;
  overflow: hidden;
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  text-align: left;
  font-family: var(--sans);
}
.chapter-choice-grid > a::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(143,37,40,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(143,37,40,.025), 0 0 0 28px rgba(143,37,40,.018);
  pointer-events: none;
}
.chapter-choice-grid > a > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chapter-choice-grid > a > span b { color: var(--red); font: 750 14px/1.4 var(--sans); letter-spacing: .05em; }
.chapter-choice-grid > a > span em { color: rgba(143,37,40,.20); font: 700 24px/1 var(--serif); font-style: normal; }
.chapter-choice-grid > a > strong { margin-top: 12px; font: 700 19px/1.45 var(--serif); }
.chapter-choice-grid > a > small { margin-top: 8px; color: #7b5d44; font: 600 12px/1.5 var(--sans); }
.chapter-choice-grid > a > i {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: var(--muted);
  font: 400 12px/1.55 var(--sans);
  font-style: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.chapter-choice-grid > a > u { margin-top: auto; padding-top: 9px; color: var(--red); font: 700 12px/1.4 var(--sans); text-decoration: none; }
.chapter-choice-grid > a:nth-child(4n+2),
.chapter-choice-grid > a:nth-child(4n+3) { background: linear-gradient(145deg, rgba(251,247,239,.96), rgba(241,229,216,.82)); }

@media (max-width: 760px) {
  .level-feature-card { padding: 18px 20px !important; }
  .level-feature-card::before { inset: 8px; }
  .level-feature-card::after { left: 20px; top: 18px; width: 31px; height: 2px; }
  .level-card-mark { right: 6%; top: 10%; font-size: clamp(74px, 26vw, 106px); }
  .level-feature-card > div { max-width: 82%; padding-top: 10px; }
  .level-feature-card small { margin-bottom: 5px; font-size: 11px; }
  .level-feature-card b { font-size: clamp(25px, 7.5vw, 32px); }
  .level-feature-card p { margin-top: 6px; font-size: 13px; line-height: 1.55; }
  .level-feature-card > i { font-size: 12px; }

  .map-selector { padding-top: 18px; }
  .chapter-choice-grid { margin-top: 14px; gap: 8px; }
  .chapter-choice-grid > a { min-height: 148px; padding: 13px 12px 12px; }
  .chapter-choice-grid > a > span b { font-size: 12px; }
  .chapter-choice-grid > a > span em { font-size: 18px; }
  .chapter-choice-grid > a > strong { margin-top: 7px; font-size: 15px; line-height: 1.42; }
  .chapter-choice-grid > a > small { margin-top: 5px; font-size: 10px; }
  .chapter-choice-grid > a > i { margin-top: 4px; font-size: 10px; line-height: 1.45; -webkit-line-clamp: 1; }
  .chapter-choice-grid > a > u { padding-top: 5px; font-size: 10px; }
}
