body:has(.classical-hall) { --page-width: 100%; }
.classical-hall { --cw-orange: #a44922; --cw-orange-soft: #fff0df; --cw-gold: #f5c65f; --cw-teal: #226354; --cw-blue: #295d82; --cw-radius: 24px; }
.classical-hall [hidden] { display: none !important; }
.classical-hall :is(p, h1, h2, h3) { overflow-wrap: anywhere; }
.cw-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.cw-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: 10px; font-weight: 650; }
.cw-nav a:hover, .cw-nav a[aria-current] { background: var(--soft); color: var(--green); }
.cw-eyebrow { margin: 0 0 10px; color: var(--cw-orange); font-size: 16px; font-weight: 750; letter-spacing: .08em; }
.cw-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); align-items: center; gap: 32px; margin-top: 24px; padding: clamp(26px, 3.6vw, 72px); border: 1px solid #ebd7ac; border-radius: 32px; background: radial-gradient(ellipse at 0 100%, #f9deb2 0, transparent 50%), #fff5dd; }
.cw-hero h1 { margin-bottom: 16px; font-size: clamp(40px, 4.3vw, 72px); color: #714024; }
.cw-lead { max-width: 45em; font-size: clamp(20px, 1.4vw, 25px); line-height: 1.9; margin-bottom: 24px; }
.cw-hero-book { position: relative; max-width: 430px; justify-self: center; width: 100%; padding: 35px 25px 24px 46px; background: #fffdfa; border: 2px solid #d8b67d; border-left: 12px solid #c1784c; border-radius: 8px 24px 24px 8px; box-shadow: 10px 10px 0 #edd7ad; transform: rotate(3deg); }
.cw-hero-book p { font-family: "Songti SC", SimSun, serif; font-size: clamp(24px, 2vw, 36px); line-height: 1.9; margin: 0 0 20px; }
.cw-hero-book strong { color: var(--cw-orange); }
.cw-seal { position: absolute; right: 22px; top: 24px; display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid #ba5534; color: #a1472c; font-family: serif; font-size: 28px; transform: rotate(-8deg); }
.cw-book-caption { color: var(--muted); font-size: 15px; }
.cw-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px; border: 1px solid #c5d5c8; border-radius: 12px; background: var(--white); color: var(--green-dark); font-size: 17px; line-height: 1.5; font-weight: 650; text-align: center; }
.cw-button:hover { border-color: var(--green); background: #eef4e9; }
.cw-button:disabled { opacity: .6; cursor: default; }
.cw-primary { background: var(--cw-teal); color: #fff; border-color: var(--cw-teal); box-shadow: 0 3px 0 #164638; }
.cw-primary:hover { color: #fff; background: #194f42; }
.cw-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding: 24px 6px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cw-facts strong { font-size: 30px; color: var(--cw-orange); }
.cw-catalog { padding-top: 36px; }
.cw-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.cw-section-heading h2 { margin-bottom: 0; }
.cw-section-heading > p { max-width: 32em; margin: 0; color: var(--muted); }
.cw-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 22px; border: 1px solid var(--line); background: var(--white); border-radius: 20px; }
.cw-filters label, .cw-sidebar label { display: grid; gap: 6px; font-size: 16px; font-weight: 650; min-width: 0; }
.cw-filters input, .cw-filters select, .cw-sidebar select { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #bacdbe; border-radius: 10px; color: var(--ink); background: #fff; font-size: 18px; }
.cw-search { flex: 1 1 260px; }
.cw-reset { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); text-decoration: underline; }
.cw-result-count { margin: 18px 0; color: var(--muted); font-size: 16px; }
.cw-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.cw-card { display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid #dfd9c4; border-radius: var(--cw-radius); background: var(--white); box-shadow: 0 5px 0 #e9eddf; transition: transform .15s; }
.cw-card:hover { transform: translateY(-3px); border-color: #c89862; }
.cw-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; color: var(--muted); font-size: 16px; }
.cw-badge { display: inline-block; padding: 4px 12px; border-radius: 100px; background: #f9e9c7; color: #785122; font-size: 16px; font-weight: 750; white-space: nowrap; }
.cw-card h3 { font-size: 27px; margin-bottom: 6px; }
.cw-card h3 a:hover { color: var(--cw-orange); text-decoration: underline; text-underline-offset: 5px; }
.cw-card > p:not(.cw-byline) { flex: 1; font-size: 19px; }
.cw-byline { color: var(--muted); font-size: 16px; }
.cw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.cw-tags span { padding: 3px 9px; border: 1px solid #d8e6db; background: #f2f7ee; color: #42664a; border-radius: 8px; font-size: 15px; }
.cw-card footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-top: 1px dashed var(--line); padding-top: 16px; font-size: 16px; }
.cw-curriculum { color: var(--cw-orange); font-weight: 700; }
.cw-card-link { margin-left: auto; color: var(--green); font-weight: 750; }
.cw-book-entry { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 28px; border: 2px solid #c7d9b7; border-radius: 24px; background: linear-gradient(100deg, #f0f6e6, #fff3d6); }
.cw-book-entry h2 { margin-bottom: 10px; }
.cw-book-entry p:last-child { margin-bottom: 0; font-size: 20px; }
.cw-book-breadcrumb { display: flex; flex-wrap: wrap; gap: 20px; }
.cw-book-breadcrumb a { color: var(--cw-teal); text-decoration: underline; text-underline-offset: 4px; }
.cw-book-breadcrumb .cw-primary { color: white; text-decoration: none; }
.cw-search-results { display: grid; gap: 20px; }
.cw-unit-picker { padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: #f1f6e9; }
.cw-unit-picker summary, .cw-unit-print summary { cursor: pointer; min-height: 44px; padding-block: 8px; font-size: 18px; font-weight: 650; }
.cw-unit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; padding-block: 12px; }
.cw-unit-grid a { padding: 10px; border: 1px solid #cfdfca; border-radius: 10px; background: var(--white); color: var(--cw-teal); font-size: 17px; }
.cw-unit-print { margin: 10px 0; color: var(--cw-teal); }
.cw-unit-print .cw-print-links { max-width: 420px; font-size: 16px; }
.cw-read-mark { color: var(--green); font-size: 15px; }
.cw-empty { grid-column: 1 / -1; text-align: center; padding: 48px; border: 2px dashed var(--line); border-radius: var(--cw-radius); }
.cw-article-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-block: 24px; padding: 30px 38px; border-radius: 26px; background: linear-gradient(120deg, #fff0d5, #edf4e5); border: 1px solid #e9d9b7; }
.cw-article-hero h1 { margin-bottom: 8px; }
.cw-article-hero .cw-lead { margin-bottom: 0; }
.cw-number { flex: 0 0 auto; display: grid; place-items: center; padding: 12px 18px; border: 2px solid #b5623d; border-radius: 8px; color: #9e4e29; font-family: "Songti SC", SimSun, serif; font-size: 34px; line-height: 1.4; transform: rotate(5deg); }
.cw-steps { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 20px 30px; }
.cw-steps a { padding: 10px 18px; background: var(--white); border: 1px solid #d7dfc8; border-radius: 12px; color: var(--green-dark); font-size: 19px; font-weight: 700; }
.cw-steps a:hover { background: var(--soft); }
.cw-workspace { display: grid; grid-template-columns: minmax(0, 1fr) clamp(270px, 22vw, 360px); gap: 26px; align-items: start; }
.cw-main, .cw-sidebar { min-width: 0; }
.cw-section { margin-bottom: 28px; padding: clamp(20px, 2.5vw, 44px); border: 1px solid var(--line); border-radius: var(--cw-radius); background: var(--white); font-size: 20px; scroll-margin-top: 20px; }
.cw-section > p, .cw-think { max-width: 70em; }
.cw-editorial { padding: 14px 18px; border-left: 4px solid #d49c47; background: #fff5df; border-radius: 0 12px 12px 0; font-size: 18px; color: #73532b; }
.cw-reading-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-block: 24px 16px; }
.cw-reading-tools label { display: inline-flex; align-items: center; gap: 7px; font-size: 17px; }
.classical-hall input[type="checkbox"], .classical-hall input[type="radio"] { width: 20px; height: 20px; accent-color: var(--cw-teal); flex-shrink: 0; }
.cw-help { color: var(--muted); font-size: 16px; }
.cw-sentence { margin-top: 24px; padding: clamp(18px, 2vw, 30px); border: 1px solid #e4dfd2; border-radius: 18px; background: #fffcf4; scroll-margin-top: 24px; }
.cw-sentence.is-speaking { outline: 3px solid #cb9437; background: #fff1cc; }
.cw-sentence.is-selected, .cw-sentence:target { border-color: #55967e; box-shadow: 0 0 0 2px #d4e9da; }
.cw-line-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.cw-line-no { display: inline-grid; place-items: center; min-width: 38px; height: 38px; border-radius: 50%; background: #f3dfb5; color: #79502a; font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; }
.cw-line-anchor { margin-left: auto; color: var(--muted); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.cw-unit-source { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; color: var(--muted); font-size: 16px; }
.cw-unit-source a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.cw-original { max-width: 50em; margin: 8px 0 20px; font-family: "Songti SC", "STSong", "SimSun", serif; font-size: clamp(27px, 1.7vw, 34px); line-height: 2.1; letter-spacing: .06em; }
.cw-word { border-bottom: 2px dotted #b96932; color: #88401e; padding-bottom: 2px; border-radius: 4px; text-underline-offset: 6px; }
.cw-word:hover, .cw-word[aria-expanded="true"] { background: #fae0ad; color: #6c3019; }
.show-referents .cw-referent { background: #dcecf6; color: var(--cw-blue); border-bottom-style: solid; }
.cw-breaks { color: #416951; font-family: "Songti SC", SimSun, serif; font-size: 22px; line-height: 2; }
.cw-breaks > span[aria-label] { color: #b25b2b; padding-inline: 5px; }
.cw-small-label { color: var(--muted); font: 500 15px/1.7 system-ui, sans-serif; letter-spacing: 0; }
.cw-breaks .cw-small-label { margin-right: 10px; }
.cw-translation { border-top: 1px dashed #d8d8c8; padding-top: 12px; }
.cw-translation summary, .cw-note summary, .cw-think summary, .cw-answer summary { cursor: pointer; min-height: 44px; padding-block: 7px; font-weight: 700; }
.cw-translation summary { color: var(--green); font-size: 18px; }
.cw-translation p { margin: 12px 0; }
.cw-translation-text { padding: 16px 20px; background: #edf3e7; border-radius: 12px; font-size: 22px; }
.cw-supplement { color: #795127; }
.cw-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: start; gap: 10px; margin-top: 14px; }
.cw-note { min-width: 0; padding: 6px 14px; border: 1px solid #e6dcc9; border-radius: 12px; background: #fff; scroll-margin-top: 28px; font-size: 18px; }
.cw-note[open] { grid-column: 1 / -1; border-color: #b67c43; background: #fff8e8; }
.cw-note:target { outline: 2px solid #d2a05e; }
.cw-note strong { margin-right: 10px; font-size: 23px; }
.cw-note summary .cw-small-label { margin-left: 8px; }
.cw-pinyin { display: inline-block; color: #9f4927; font-size: 20px; margin-right: 5px; }
.cw-note p { margin: 10px 0; }
.cw-reference-target { padding: 12px 16px; border-radius: 10px; background: #e1edf5; color: #24546e; }
.cw-reference-target strong { font-size: 20px; }
.cw-sequence { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; max-width: 70em; }
.cw-sequence li { position: relative; padding: 18px 20px 18px 68px; background: #f2f6ec; border-radius: 14px; }
.cw-sequence li::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #d8e8cf; color: #315b3e; font-weight: 750; }
.cw-think { padding: 16px 20px; border: 1px solid #e5cca1; background: #fff5df; border-radius: 14px; }
.cw-think p { margin: 16px 0 0; }
.cw-takeaway { margin: 22px 0 0; color: var(--green-dark); font-weight: 650; }
.cw-recite-modes { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.cw-recite-modes [aria-pressed="true"] { color: #fff; background: var(--cw-teal); border-color: var(--cw-teal); }
.cw-recall-line { padding: 20px 0; border-bottom: 1px dashed var(--line); }
.cw-recall-line .cw-original { overflow-wrap: anywhere; }
.cw-question { padding: 25px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.cw-question h3 { max-width: 65em; }
.cw-question fieldset { min-width: 0; border: 0; padding: 0; margin: 0 0 16px; }
.cw-option { display: flex; align-items: baseline; gap: 12px; max-width: 60em; margin-block: 10px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf4; cursor: pointer; }
.cw-option:has(input:checked) { background: #e7f0df; border-color: #6c9271; }
.cw-feedback { margin: 16px 0 0; color: var(--cw-orange); font-weight: 650; }
.cw-feedback[data-correct="true"] { color: var(--green); }
.cw-feedback:empty, .cw-score:empty { display: none; }
.cw-score { padding: 14px 18px; border-radius: 12px; background: #edf4e5; color: var(--green-dark); font-weight: 650; }
.cw-answer { margin-top: 16px; padding: 10px 18px; background: #f4f3e9; border-radius: 12px; }
.cw-answer p { margin: 12px 0; }
.cw-selfcheck { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.cw-evidence-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; color: var(--green); text-decoration: underline; text-underline-offset: 5px; font-size: 17px; }
.cw-sidebar { display: flex; flex-direction: column; gap: 20px; }
.cw-side-block { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.cw-side-block h2 { font-size: 22px; margin-bottom: 14px; }
.cw-side-block label + label { margin-top: 12px; }
.cw-side-block .cw-help { margin: 16px 0 0; }
.cw-side-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cw-print-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cw-print-links a { padding: 10px; border: 1px solid #e2d8bc; border-radius: 10px; color: #795026; background: #fff6e4; text-align: center; font-weight: 650; }
.cw-print-links a:hover { background: #fbe6bb; }
.cw-directory a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 10px; font-size: 17px; }
.cw-directory a:hover, .cw-directory a[aria-current] { background: #edf3e5; color: var(--green); font-weight: 700; }
.cw-directory small { color: var(--cw-orange); font-size: 13px; white-space: nowrap; }
.cw-next { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 20px; }
.cw-next a, .cw-sources a { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.cw-sources p { font-size: 18px; }
.cw-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 2400px) { .cw-card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .cw-workspace { grid-template-columns: minmax(0, 1fr); } .cw-sidebar { grid-row: 1; } .cw-hero { grid-template-columns: minmax(0, 1fr) minmax(230px, .7fr); padding: 30px; gap: 25px; } .cw-hero-book { padding-left: 28px; } .cw-seal { right: 12px; top: 12px; width: 34px; height: 34px; font-size: 22px; } }
@media (max-width: 650px) { .cw-hero { grid-template-columns: minmax(0, 1fr); padding: 24px; } .cw-hero-book { display: none; } .cw-facts { gap: 12px 20px; font-size: 16px; } .cw-section-heading { display: block; } .cw-section-heading > p { margin-top: 12px; } .cw-filters { padding: 16px; } .cw-filters label { flex: 1 1 130px; } .cw-filters .cw-search { flex-basis: 100%; } .cw-article-hero { padding: 24px; } .cw-article-hero h1 { font-size: 34px; } .cw-number { display: none; } .cw-steps { gap: 8px; } .cw-steps a { flex: 1 1 130px; font-size: 16px; padding: 10px; } .cw-section { font-size: 19px; padding: 18px; } .cw-line-heading { gap: 8px; } .cw-line-anchor { font-size: 14px; } .cw-audio { padding-inline: 10px; font-size: 15px; } .cw-original { font-size: 27px; line-height: 2; } .cw-sentence { padding: 16px; } .cw-translation-text { padding: 14px; font-size: 20px; } .cw-nav { font-size: 16px; gap: 4px; } .cw-note summary .cw-small-label { display: block; margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .cw-card { transition: none; } }
@media print { .site-header, .site-footer, .skip-link, .cw-nav, .cw-steps, .cw-sidebar, .sl-sidebar, .cw-reading-tools, .cw-audio, .cw-line-anchor, .cw-recite-modes, .cw-recall-line button, .cw-question form, .cw-selfcheck, .cw-next { display: none !important; } .shell { width: 100%; padding: 0; } .cw-section, .cw-sentence { border-color: #aaa; background: #fff; box-shadow: none; } .cw-original, .cw-word { color: #000; } .cw-section { break-inside: auto; } .cw-sentence { break-inside: avoid; } }

/* 长篇按连续段落编排，词句与自测仍保留全篇稳定编号。 */
.cw-section-directory { margin: 28px 0; padding: 24px; border-radius: 20px; background: var(--soft); }
.cw-section-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.cw-section-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.cw-section-card h4 { margin: 0 0 10px; font-size: 21px; }
.cw-section-card p { font-size: 18px; }
.cw-section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 12px; }
.cw-paragraph-heading { padding: 24px; margin: 36px 0 18px; border-inline-start: 6px solid #16a6a3; border-radius: 14px; background: var(--soft); scroll-margin-top: 100px; }
.cw-paragraph-heading h3 { margin: 4px 0 10px; font-size: 28px; }
.cw-section-select { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0; font-weight: 700; }
.cw-section-select select { max-width: 100%; padding: 12px; font: inherit; color: inherit; background: var(--white); border: 2px solid var(--line); border-radius: 12px; }
