:root {
  --paper: #f5f0e6;
  --paper-deep: #ece4d5;
  --ink: #183229;
  --muted: #66736d;
  --green: #0d5d45;
  --green-dark: #083e30;
  --green-soft: #dce8df;
  --gold: #a66a2c;
  --line: #d8d0c2;
  --white: #fffdf8;
  --shadow: 0 20px 55px rgba(40, 53, 45, .1);
  --sidebar: 294px;
  --serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.75; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .28; background-image: radial-gradient(rgba(13,93,69,.12) .55px, transparent .55px); background-size: 5px 5px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar); display: flex; flex-direction: column; background: #102f26; color: #e8efe9; border-right: 1px solid rgba(255,255,255,.08); }
.brand { display: flex; gap: 13px; align-items: center; padding: 24px 22px 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid #c6a56d; border-radius: 50%; color: #e3c78f; font-family: var(--serif); font-size: 23px; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--serif); font-size: 17px; letter-spacing: .03em; }
.brand small { margin-top: 2px; color: #9eb2a8; font-size: 9px; letter-spacing: .15em; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 11px 28px; scrollbar-width: thin; scrollbar-color: #466259 transparent; }
.nav-group { margin-bottom: 16px; }
.nav-label { display: block; padding: 5px 11px 8px; color: #849b90; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.nav-link, .nav-scroll a { display: block; border-radius: 6px; color: #cfdbd4; }
.nav-link { padding: 7px 11px; font-size: 13px; }
.nav-link:hover, .nav-link.is-active { background: rgba(255,255,255,.08); color: #fff; }
.nav-link.is-active { box-shadow: inset 2px 0 #d4b276; }
.nav-group summary { list-style: none; padding: 7px 11px; color: #b8c8c0; font-size: 12px; font-weight: 700; cursor: pointer; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::before { content: "＋"; display: inline-block; width: 20px; color: #80988d; }
.nav-group[open] summary::before { content: "−"; }
.nav-group summary.is-active { color: #fff; background: rgba(255,255,255,.08); box-shadow: inset 2px 0 #d4b276; border-radius: 6px; }
.nav-group summary b { float: right; color: #829a8e; font-weight: 500; }
.nav-scroll { margin: 4px 0 0 15px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.09); }
.nav-scroll a { padding: 5px 9px; color: #9fb1a8; font-size: 11.5px; line-height: 1.45; }
.nav-scroll a:hover, .nav-scroll a.is-active { color: #fff; background: rgba(255,255,255,.05); }
.sidebar-foot { display: flex; justify-content: space-between; padding: 12px 20px; color: #7f978b; border-top: 1px solid rgba(255,255,255,.08); font-size: 9px; }

.main-shell { position: relative; min-height: 100vh; margin-left: var(--sidebar); }
.top-tools { height: 66px; display: flex; justify-content: flex-end; align-items: center; padding: 0 4.2vw; border-bottom: 1px solid var(--line); }
.search-button { display: flex; min-width: 205px; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 11px 8px 15px; color: var(--muted); background: rgba(255,255,255,.45); border: 1px solid var(--line); border-radius: 7px; }
kbd { padding: 1px 7px; background: var(--paper-deep); border: 1px solid #d1c8b8; border-radius: 4px; font-size: 11px; }
.content { width: min(1180px, calc(100% - 8vw)); margin: 0 auto; padding: 56px 0 100px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 4.2vw 38px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.mobile-bar { display: none; }

.eyebrow, .hero-kicker { margin: 0 0 11px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.home-hero { position: relative; padding: 60px 5.8vw 66px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.home-hero::after { content: ""; position: absolute; right: -100px; top: -145px; width: 470px; height: 470px; border: 1px solid #d4c7ae; border-radius: 50%; box-shadow: 0 0 0 55px rgba(13,93,69,.025), 0 0 0 110px rgba(13,93,69,.018); }
.home-hero h1 { position: relative; z-index: 1; max-width: 720px; margin: 0; font-family: var(--serif); font-size: clamp(48px, 7vw, 88px); line-height: 1.1; letter-spacing: -.045em; }
.hero-lead { position: relative; z-index: 1; max-width: 660px; margin: 27px 0 0; color: #50625a; font-family: var(--serif); font-size: 18px; }
.hero-actions { position: relative; z-index: 1; display: flex; gap: 12px; margin-top: 31px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 17px; border: 1px solid var(--green); border-radius: 3px; color: var(--green); font-size: 13px; font-weight: 700; }
.button.primary { color: white; background: var(--green); }
.button.light { color: var(--white); border-color: rgba(255,255,255,.5); }
.button:hover { transform: translateY(-1px); }
.stats { display: grid; grid-template-columns: repeat(5,1fr); background: var(--green-dark); color: white; }
.stats > a { padding: 25px 20px; color: inherit; text-align: center; border-right: 1px solid rgba(255,255,255,.12); transition: background .16s ease; }
.stats > a:last-child { border-right: 0; }
.stats > a:hover { background: rgba(255,255,255,.07); }
.stats > a:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--gold); outline-offset: -3px; }
.stats strong, .stats span { display: block; }
.stats strong { font-family: var(--serif); font-size: 29px; }
.stats span { margin-top: 2px; color: #adbfB6; font-size: 11px; }
.home-section { padding: 76px 0 0; }
.home-section.tone { margin-top: 76px; padding: 65px 5vw; background: var(--paper-deep); border: 1px solid var(--line); }
.section-intro { max-width: 670px; margin-bottom: 28px; }
.section-intro.split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-intro h2 { margin: 0; font-family: var(--serif); font-size: clamp(29px,4vw,45px); line-height: 1.25; }
.section-intro p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); }
.section-intro > a { color: var(--green); font-size: 13px; font-weight: 700; }
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); background: var(--white); }
.feature-grid a { min-height: 245px; padding: 27px 24px; border-right: 1px solid var(--line); transition: .2s ease; }
.feature-grid a:last-child { border-right: 0; }
.feature-grid a:hover { color: white; background: var(--green); }
.feature-grid span { color: var(--gold); font-family: var(--serif); font-size: 24px; }
.feature-grid h3 { margin: 42px 0 12px; font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.feature-grid a:hover p { color: #c9d8d0; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.knowledge-card { position: relative; min-height: 220px; display: flex; flex-direction: column; padding: 24px; background: rgba(255,253,248,.75); border: 1px solid var(--line); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.knowledge-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--green); transform: scaleY(0); transition: transform .18s ease; }
.knowledge-card:hover { transform: translateY(-3px); border-color: #b8ad9d; box-shadow: var(--shadow); }
.knowledge-card:hover::before { transform: scaleY(1); }
.knowledge-card small { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.knowledge-card h3 { margin: 15px 0 10px; font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.knowledge-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.knowledge-card > span { margin-top: auto; padding-top: 17px; color: var(--green); font-size: 12px; font-weight: 700; }
.card-framework::before { background: var(--gold); }
.card-framework small, .card-framework > span { color: var(--gold); }
.card-case::before { background: #a04942; }
.card-case small, .card-case > span { color: #a04942; }
.card-problem::before { background: #75568b; }
.card-theme::before { background: #5b6f58; }
.theme-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.theme-grid a { min-height: 178px; padding: 25px 28px; background: var(--paper); }
.theme-grid a:hover { background: var(--white); }
.theme-grid span { color: var(--gold); font-size: 11px; font-weight: 800; }
.theme-grid h3 { margin: 17px 0 7px; font-family: var(--serif); font-size: 21px; }
.theme-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.source-banner { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-top: 76px; padding: 43px 4vw; color: white; background: var(--green); }
.source-banner h2 { margin: 0; font-family: var(--serif); font-size: 35px; }
.source-banner p:not(.eyebrow) { max-width: 680px; margin: 10px 0 0; color: #c8d9d1; }
.source-banner .eyebrow { color: #d8bb87; }

.page-header { max-width: 900px; margin-bottom: 46px; }
.page-label { display: inline-block; margin-bottom: 18px; padding-bottom: 5px; color: var(--green); border-bottom: 1px solid var(--green); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.page-header h1 { margin: 0; font-family: var(--serif); font-size: clamp(38px,5vw,62px); line-height: 1.2; letter-spacing: -.025em; }
.page-header > p { max-width: 790px; margin: 19px 0 0; color: #506159; font-family: var(--serif); font-size: 18px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: 11px; }
.page-meta > span { position: relative; }
.page-meta > span + span::before { content: "·"; position: absolute; left: -11px; }
.page-meta a { color: var(--green); }
.detail-layout { display: grid; grid-template-columns: minmax(0,760px) minmax(230px,1fr); gap: 55px; align-items: start; }
.detail-main { min-width: 0; }
.detail-aside { border-left: 1px solid var(--line); padding-left: 24px; }
.sticky { position: sticky; top: 30px; }
.detail-aside h2 { margin: 0 0 18px; font-family: var(--serif); font-size: 19px; }
.claim-box { margin-bottom: 36px; padding: 26px 30px; color: white; background: var(--green-dark); border-left: 4px solid #d3ad6a; }
.claim-box small { color: #c6d6ce; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.claim-box p { margin: 9px 0 0; font-family: var(--serif); font-size: 21px; line-height: 1.7; }
.article-section { padding: 34px 0; border-top: 1px solid var(--line); }
.article-section:first-child { border-top: 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.section-title h2 { margin: 0; font-family: var(--serif); font-size: 25px; }
.section-title small { color: var(--muted); font-size: 10px; }
.article-section p { margin: 0 0 12px; }
.lead-copy { font-family: var(--serif); font-size: 18px; line-height: 1.9; }
.lecture-prose { max-width: 760px; }
.lecture-prose p { margin: 0 0 18px; color: #34453e; font-family: var(--serif); font-size: 17px; line-height: 2; }
.lecture-prose p:last-child { margin-bottom: 0; }
.source-passages { margin-top: 16px; }
.source-quote { color: #33473f; }
.inline-citation { display: inline; margin-left: .45em; color: #977043; font-family: var(--sans); font-size: 11px; font-weight: 700; white-space: normal; overflow-wrap: anywhere; }
.structured-list { margin: 0; padding: 0; list-style: none; counter-reset: ordered; }
.structured-list > li { position: relative; min-height: 47px; padding: 11px 0 11px 48px; border-bottom: 1px dashed #d8d0c2; counter-increment: ordered; }
.structured-list > li::before { content: counter(ordered, decimal-leading-zero); position: absolute; left: 0; top: 11px; color: var(--gold); font-family: var(--serif); font-size: 14px; }
.structured-list p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.structured-list .book-definition { margin-top: 9px; color: #52615b; font-family: var(--serif); font-size: 12px; line-height: 1.85; }
.structured-list .book-page { display: block; margin-top: 7px; color: #8a6d40; font-size: 9px; font-weight: 700; }
.structured-list a { color: var(--green); font-weight: 700; }
.explained-list > li { padding-bottom: 16px; }
.explained-list .lecture-prose { margin: 11px 0 2px; }
.explained-list .lecture-prose p { color: #55645e; font-size: 13px; line-height: 1.85; }
.figure-only { padding-top: 34px; }
.conclusion { padding: 21px 24px; background: var(--green-soft); border-left: 3px solid var(--green); font-family: var(--serif); font-size: 18px; }
.source-stack { display: grid; gap: 12px; }
.source-card { padding: 20px 21px; background: var(--white); border: 1px solid var(--line); }
.source-card > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.source-card > div strong { color: var(--green); font-size: 12px; }
.source-card p { color: var(--muted); font-size: 13px; }
.expression { display: inline-block; padding: 2px 7px; border-radius: 2px; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.expression.direct { color: #7d312c; background: #f3ded9; }
.expression.paraphrase { color: #1b6751; background: #dcebe3; }
.expression.synthesis { color: #6a4a80; background: #e9dfef; }
.backlink-list { display: grid; gap: 7px; }
.backlink-list a { display: grid; padding: 11px 12px; background: rgba(255,253,248,.6); border: 1px solid var(--line); }
.backlink-list a:hover { border-color: var(--green); }
.backlink-list span { color: var(--gold); font-size: 9px; }
.backlink-list strong { margin: 3px 0; font-family: var(--serif); font-size: 13px; line-height: 1.4; }
.backlink-list small { color: var(--muted); font-size: 9px; }
.empty { color: var(--muted); font-size: 13px; }
.definition-list { display: grid; gap: 8px; }
.definition-list > div { display: grid; grid-template-columns: 130px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); }
.definition-list dt { font-weight: 700; }
.definition-list dd { margin: 0; color: var(--muted); }

.source-policy { margin-bottom: 44px; padding: 23px 26px; color: #eff7f2; background: var(--green); }
.source-policy p { margin: 5px 0 0; color: #c7d9d0; }
.chapter-source-list { display: grid; gap: 13px; }
.chapter-source { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; padding: 24px 26px; background: var(--white); border: 1px solid var(--line); }
.chapter-source small { color: var(--gold); }
.chapter-source h3 { margin: 6px 0 0; font-family: var(--serif); font-size: 20px; }
.chapter-source ol { margin: 0; color: var(--muted); font-size: 13px; }
.source-map { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.source-map a { display: flex; flex-direction: column; padding: 17px 18px; background: var(--white); }
.source-map a:hover { background: var(--green-soft); }
.source-map strong { font-family: var(--serif); font-size: 15px; }
.source-map span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.timeline { max-width: 800px; margin-left: 18px; border-left: 1px solid var(--line); }
.timeline article { position: relative; padding: 0 0 48px 34px; }
.timeline article::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; background: var(--paper); border: 2px solid var(--green); border-radius: 50%; }
.timeline time { color: var(--gold); font-size: 11px; font-weight: 800; }
.timeline h2 { margin: 8px 0; font-family: var(--serif); }
.timeline ul { color: var(--muted); }
.principle-list { display: grid; gap: 10px; padding-left: 20px; }
.expression-notes { display: grid; gap: 10px; }
.expression-notes p { display: flex; gap: 14px; align-items: center; }
.expression.synthesis { color: #5c4777; background: #eee8f4; }

.version-history { display: grid; gap: 22px; }
.version-history > article { padding: 24px; background: rgba(255,253,248,.72); border: 1px solid var(--line); }
.version-history > article > div > small { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.version-history > article > div > p { margin: 8px 0 20px; color: #45564e; }
.version-history .figure-stack { margin-top: 18px; }
.version-history .book-figure img { max-height: 620px; object-fit: contain; }

/* 可持续商业工具：新增独立栏目，不改动知识库定稿正文的版式与内容。 */
.tool-index-note, .tool-question { margin: 0 0 30px; padding: 24px 28px; color: #eff7f2; background: var(--green-dark); border-left: 4px solid #d3ad6a; }
.tool-index-note strong, .tool-question small { display: block; color: #e1c58d; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.tool-index-note p, .tool-question p { max-width: 810px; margin: 7px 0 0; color: #c9dbd2; font-family: var(--serif); font-size: 17px; line-height: 1.85; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.tool-card { position: relative; min-height: 280px; display: flex; flex-direction: column; padding: 28px 25px 23px; overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .18s ease, box-shadow .18s ease; }
.tool-card::after { content: ""; position: absolute; right: -45px; bottom: -75px; width: 150px; height: 150px; border: 1px solid rgba(13,93,69,.14); border-radius: 50%; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tool-card-index { color: #c6aa77; font-family: var(--serif); font-size: 31px; line-height: 1; }
.tool-card small, .tool-section small { display: block; margin-top: 13px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.tool-card h3 { margin: 17px 0 10px; font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.tool-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.tool-card-link { margin-top: auto; padding-top: 17px; color: var(--green); font-size: 12px; font-weight: 800; }
.tool-section { padding: 35px 0; border-top: 1px solid var(--line); }
.tool-section h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 27px; }
.tool-section > p { max-width: 820px; margin: 0 0 12px; color: #485950; }
.tool-lead { max-width: 810px; color: #4d5e56; font-family: var(--serif); font-size: 17px; line-height: 1.9; }
.tool-io, .tool-use, .tool-versions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tool-io > div, .tool-use > div, .tool-version { padding: 21px 22px; background: rgba(255,253,248,.72); border: 1px solid var(--line); }
.tool-io small, .tool-use small { margin: 0; color: var(--gold); }
.tool-io p, .tool-use p { margin: 9px 0 0; color: #43534c; font-family: var(--serif); font-size: 16px; line-height: 1.85; }
.tool-version h3 { margin: 0 0 16px; font-family: var(--serif); font-size: 21px; }
.tool-version dl { margin: 0; }
.tool-version dl > div { padding: 11px 0; border-top: 1px dashed var(--line); }
.tool-version dt { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.tool-version dd { margin: 5px 0 0; color: #45564e; font-size: 13px; line-height: 1.75; }
.tool-example { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 31px 34px; background: var(--green-soft); border: 1px solid #c3d2c8; }
.tool-example h2 { margin: 7px 0; }
.tool-example p { max-width: 720px; margin: 0; color: #466056; font-size: 13px; }
.tool-example .button { flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 980px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .tool-grid, .tool-io, .tool-use, .tool-versions { grid-template-columns: 1fr; } .tool-example { display: grid; padding: 25px; } .tool-example .button { width: 100%; } }

.figure-stack { display: grid; gap: 24px; }
.book-figure { margin: 0; overflow: hidden; background: #f7f4ed; border: 1px solid var(--line); }
.book-figure a { display: block; }
.book-figure img { display: block; width: 100%; height: auto; background: #f7f4ed; }
.book-figure figcaption { display: flex; justify-content: space-between; gap: 20px; padding: 15px 18px; background: var(--white); border-top: 1px solid var(--line); }
.book-figure figcaption strong { font-family: var(--serif); font-size: 14px; }
.book-figure figcaption span { color: var(--muted); font-size: 10px; text-align: right; }
.book-figure.feature img { max-height: 720px; object-fit: contain; }

.graph-toolbar { display: flex; align-items: end; gap: 15px; margin-bottom: 13px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); }
.graph-toolbar label { display: grid; gap: 3px; color: var(--muted); font-size: 10px; }
.graph-toolbar select, .graph-toolbar button { padding: 7px 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
.graph-toolbar > span { margin-left: auto; color: var(--muted); font-size: 11px; }
.graph-stage { position: relative; min-height: 690px; overflow: hidden; background: #f9f6ef; border: 1px solid var(--line); }
#knowledgeGraph { width: 100%; height: 690px; }
.graph-links line { stroke: #aeb9b3; stroke-opacity: .42; stroke-width: .6; }
.graph-nodes circle { cursor: pointer; stroke: #fff; stroke-width: 1.1; }
.graph-labels text { fill: #41524b; pointer-events: none; paint-order: stroke; stroke: #f9f6ef; stroke-width: 3px; stroke-linejoin: round; }
.graph-tooltip { position: absolute; z-index: 4; display: none; max-width: 290px; padding: 12px 14px; background: rgba(16,47,38,.96); color: white; box-shadow: var(--shadow); pointer-events: none; }
.graph-tooltip.show { display: grid; }
.graph-tooltip small { color: #d3b57e; font-size: 9px; text-transform: uppercase; }
.graph-tooltip strong { font-family: var(--serif); }
.graph-tooltip p { margin: 5px 0 0; color: #bed0c7; font-size: 11px; }
.graph-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 13px 0; color: var(--muted); font-size: 10px; }
.graph-legend span { display: flex; align-items: center; gap: 5px; }
.graph-legend i { width: 7px; height: 7px; border-radius: 50%; }
.graph-error { padding: 40px; text-align: center; color: var(--muted); }

.search-dialog { width: min(760px, calc(100% - 28px)); padding: 0; overflow: visible; background: transparent; border: 0; }
.search-dialog::backdrop { background: rgba(9,27,21,.65); backdrop-filter: blur(3px); }
.search-panel { overflow: hidden; background: var(--white); box-shadow: 0 35px 100px rgba(0,0,0,.3); }
.search-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; color: white; background: var(--green-dark); }
.search-head small, .search-head strong { display: block; }
.search-head small { color: #a9bcb3; font-size: 9px; letter-spacing: .13em; }
.search-head button { color: white; background: transparent; border: 0; font-size: 25px; }
#globalSearch { width: calc(100% - 40px); margin: 20px; padding: 13px 15px; background: var(--paper); border: 1px solid var(--line); outline: none; }
#globalSearch:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(13,93,69,.1); }
.search-results { max-height: 58vh; overflow-y: auto; padding: 0 20px 20px; }
.search-results a { display: grid; padding: 13px 5px; border-top: 1px solid var(--line); }
.search-results a:hover strong { color: var(--green); }
.search-results small { color: var(--gold); font-size: 9px; }
.search-results strong { margin: 3px 0; font-family: var(--serif); }
.search-results p { margin: 0; color: var(--muted); font-size: 11px; }
.search-hint { padding: 30px; text-align: center; color: var(--muted); }
.sidebar-scrim { display: none; }

@media (max-width: 1120px) {
  :root { --sidebar: 258px; }
  .content { width: min(1040px, calc(100% - 6vw)); }
  .card-grid { grid-template-columns: repeat(2,1fr); }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .feature-grid a:nth-child(2) { border-right: 0; }
  .feature-grid a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .detail-layout { grid-template-columns: minmax(0,1fr) 230px; gap: 28px; }
}
@media (max-width: 820px) {
  body.nav-open { overflow: hidden; }
  .sidebar { width: min(320px, 86vw); transform: translateX(-105%); transition: transform .24s ease; box-shadow: 15px 0 50px rgba(0,0,0,.2); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; background: rgba(8,26,20,.48); }
  .sidebar-scrim.is-open { display: block; }
  .main-shell { margin-left: 0; }
  .mobile-bar { position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: white; background: var(--green-dark); }
  .mobile-bar button { color: white; background: transparent; border: 0; font-size: 20px; }
  .mobile-bar a { font-family: var(--serif); font-weight: 700; }
  .top-tools { display: none; }
  .content { width: min(100% - 30px, 720px); padding: 34px 0 70px; }
  .home-hero { padding: 42px 26px 48px; }
  .home-hero h1 { font-size: clamp(42px,12vw,65px); }
  .home-hero::after { opacity: .45; }
  .stats { grid-template-columns: repeat(3,1fr); }
  .stats > a:nth-child(3) { border-right: 0; }
  .stats > a:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { padding: 30px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .sticky { position: static; }
  .source-banner { align-items: start; flex-direction: column; }
  .chapter-source { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 560px) {
  .hero-actions, .section-intro.split, .site-footer { align-items: stretch; flex-direction: column; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .stats > a { border-bottom: 1px solid rgba(255,255,255,.12); }
  .stats > a:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.12); }
  .stats > a:nth-child(even) { border-right: 0; }
  .feature-grid, .card-grid, .theme-grid, .source-map { grid-template-columns: 1fr; }
  .feature-grid a { border-right: 0; border-bottom: 1px solid var(--line); }
  .home-section { padding-top: 55px; }
  .home-section.tone { margin-top: 55px; padding: 45px 20px; }
  .page-header h1 { font-size: 38px; }
  .page-header > p { font-size: 16px; }
  .claim-box { padding: 22px; }
  .claim-box p { font-size: 18px; }
  .section-title { align-items: start; flex-direction: column; }
  .book-figure figcaption { align-items: start; flex-direction: column; }
  .book-figure figcaption span { text-align: left; }
  .graph-toolbar { align-items: stretch; flex-direction: column; }
  .graph-toolbar > span { margin-left: 0; }
  .graph-stage, #knowledgeGraph { min-height: 580px; height: 580px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }
