
:root {
  --cream: #f2ede3; --paper: #fffdf8; --paper-2: #faf5ea; --ink: #17312b;
  --muted: #64716b; --green: #153f34; --green-2: #21594a; --mint: #dcebe2;
  --coral: #de7358; --coral-soft: #fae6de; --gold: #caa85a; --gold-soft: #f7edcf;
  --line: #dcd5c8; --blue-gray: #546b74; --shadow: 0 22px 70px rgba(25, 47, 39, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 160px; }
body { margin: 0; overflow-x: hidden; background: var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
button, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #e7a376; outline-offset: 3px; }
button:disabled { cursor: default; opacity: .42; }
main { min-height: 100vh; }
.site-header, .hero, .text-tabs, .audio-dock, .text-intro, .reading-section, .final-section, footer { width: min(1080px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }

.site-header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(23,49,43,.17); }
.site-header > p { margin: 0; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.wordmark { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.wordmark span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--coral); font: 800 22px Georgia, serif; }
.wordmark strong { font-family: Georgia, serif; font-size: 18px; }

.hero { min-height: 420px; margin-top: 36px; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; overflow: hidden; border-radius: 34px; color: white; background: var(--green); box-shadow: var(--shadow); }
.hero > div:first-child { padding: clamp(34px, 6vw, 72px); }
.eyebrow { margin: 0 0 14px; color: var(--coral); font-size: 10px; font-weight: 950; letter-spacing: .17em; }
.hero .eyebrow { color: #ffcbbd; }
.hero h1 { max-width: 760px; margin: 0; font: 700 clamp(46px, 7vw, 84px)/.98 Georgia, serif; letter-spacing: -.045em; }
.hero h1 em { display: block; color: #f4ca82; font-weight: 500; }
.hero > div:first-child > p:last-child { margin: 24px 0 0; color: #b9d2c7; font-size: 14px; letter-spacing: .04em; }
.hero-motif { min-height: 420px; display: flex; align-items: center; justify-content: center; gap: 16px; position: relative; background: radial-gradient(circle, rgba(244,202,130,.22), transparent 60%); }
.hero-motif::before { content: ""; position: absolute; width: 270px; height: 270px; border: 1px dashed rgba(255,255,255,.27); border-radius: 50%; }
.hero-motif span { z-index: 1; width: 108px; height: 108px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); font: 800 15px Georgia, serif; letter-spacing: .08em; box-shadow: 0 15px 45px rgba(0,0,0,.18); }
.hero-motif span:last-child { color: var(--green); background: #f4ca82; }
.hero-motif b { z-index: 1; font-size: 28px; }

.text-tabs { margin-top: 24px; padding: 7px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.55); }
.text-tabs button { min-height: 76px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; padding: 12px 18px; border: 0; border-radius: 16px; color: var(--muted); background: transparent; text-align: left; cursor: pointer; }
.text-tabs button small { grid-row: 1 / 3; color: var(--coral); font-weight: 950; letter-spacing: .12em; }
.text-tabs button strong { font: 650 19px Georgia, serif; }
.text-tabs button span { color: var(--blue-gray); font-size: 12px; }
.text-tabs button.active { color: white; background: var(--green); box-shadow: 0 10px 28px rgba(21,63,52,.17); }
.text-tabs button.active span { color: #b9d2c7; }

.audio-dock { position: sticky; top: 8px; z-index: 40; margin-top: 16px; display: grid; grid-template-columns: minmax(220px,1fr) auto; align-items: center; gap: 12px 20px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,.96); box-shadow: 0 12px 42px rgba(23,49,43,.13); backdrop-filter: blur(14px); }
.audio-dock > div:first-child { min-width: 0; display: flex; align-items: center; gap: 11px; }
.audio-dock p { margin: 0; }
.audio-dock p small { display: block; color: var(--coral); font-size: 8px; font-weight: 950; letter-spacing: .15em; }
.audio-dock p strong { display: block; margin-top: 3px; overflow: hidden; font: 650 14px Georgia, serif; white-space: nowrap; text-overflow: ellipsis; }
.audio-light { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #a5aca7; }
.audio-light.live { background: #3a9d6a; box-shadow: 0 0 0 7px rgba(58,157,106,.13); animation: pulse 1.7s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 3px rgba(58,157,106,.09); } }
.audio-settings { display: flex; align-items: end; gap: 8px; }
.audio-settings label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 800; }
.audio-settings select, .audio-settings button { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; color: var(--green); background: white; font-size: 11px; font-weight: 800; }
.audio-settings button { cursor: pointer; }
.audio-note { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.audio-error { grid-column: 1 / -1; padding: 8px 10px; border-radius: 9px; color: #923e28; background: #ffede7; font-size: 11px; }

.text-intro { padding: 74px 0 44px; scroll-margin-top: 150px; }
.text-intro h2 { margin: 0; font: 700 clamp(48px, 7vw, 80px)/1 Georgia, serif; letter-spacing: -.04em; }
.text-intro h3 { margin: 10px 0 0; color: var(--blue-gray); font-size: 22px; font-weight: 550; }
.byline { margin: 13px 0 26px; color: var(--muted); font-family: Georgia, serif; font-style: italic; }
.intro-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.intro-pair p { margin: 0; padding: 20px 22px; font-size: 15px; line-height: 1.75; }
.intro-pair p:first-child { font-family: Georgia, serif; border-right: 1px solid var(--line); }
.intro-pair p:last-child { color: var(--blue-gray); }
.intro-actions { display: flex; gap: 10px; margin-top: 18px; }
.intro-actions button, .intro-actions a { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid var(--green); border-radius: 12px; color: white; background: var(--green); font-size: 12px; font-weight: 850; text-decoration: none; cursor: pointer; }
.intro-actions a { color: var(--green); background: transparent; }
.overview-cards { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.overview-cards a { min-height: 118px; display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: rgba(255,255,255,.58); text-decoration: none; transition: .18s ease; }
.overview-cards a:hover { transform: translateY(-2px); background: white; box-shadow: 0 10px 28px rgba(23,49,43,.08); }
.overview-cards span { color: var(--coral); font-size: 10px; font-weight: 950; letter-spacing: .14em; }
.overview-cards strong { margin-top: auto; font: 650 16px/1.25 Georgia, serif; }
.overview-cards small { margin-top: 6px; color: var(--muted); line-height: 1.4; }
.overview-cards .final-card { color: white; border-color: var(--coral); background: var(--coral); }
.overview-cards .final-card span, .overview-cards .final-card small { color: #ffe8e0; }

.mobile-section-nav { display: none; }
.reading-section, .final-section { padding: 56px 0 44px; border-top: 1px solid var(--line); scroll-margin-top: 155px; }
.section-heading { display: grid; grid-template-columns: 92px 1fr auto; align-items: end; gap: 18px; margin-bottom: 26px; }
.section-heading > span { align-self: start; padding-top: 9px; color: var(--coral); font-size: 10px; font-weight: 950; letter-spacing: .15em; }
.section-heading h2 { margin: 0; font: 700 clamp(33px, 5vw, 54px)/1.05 Georgia, serif; letter-spacing: -.025em; }
.section-heading h3 { margin: 6px 0 0; color: var(--blue-gray); font-size: 18px; }
.section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.section-heading button { min-height: 44px; padding: 0 14px; border: 1px solid var(--green); border-radius: 12px; color: var(--green); background: transparent; font-size: 11px; font-weight: 850; cursor: pointer; }

.paragraphs { display: grid; gap: 18px; }
.paragraph-card { overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); box-shadow: 0 9px 30px rgba(25,47,39,.045); }
.paragraph-title { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px 8px 18px; border-bottom: 1px solid var(--line); background: #faf6ed; }
.paragraph-title span { color: var(--coral); font-size: 9px; font-weight: 950; letter-spacing: .15em; }
.paragraph-title button { min-height: 34px; padding: 0 10px; border: 1px solid #cfd9d2; border-radius: 9px; color: var(--green); background: #eef5f0; font-size: 10px; font-weight: 850; cursor: pointer; }
.sentence-pairs { padding: 5px 18px 12px; }
.sentence-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid #ece6db; }
.sentence-pair:last-child { border-bottom: 0; }
.english-sentence, .chinese-sentence { min-width: 0; margin: 0; padding: 15px 16px; line-height: 1.72; }
.english-sentence { display: grid; grid-template-columns: 34px 1fr; gap: 10px; border-right: 1px solid #ece6db; font: 400 17px/1.72 Georgia, serif; }
.english-sentence p { margin: 0; }
.chinese-sentence { color: var(--blue-gray); font-size: 15px; }
sup { margin-right: 7px; color: var(--coral); font: 750 9px Inter, sans-serif; }
.sentence-audio, .english-line button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #cad8d0; border-radius: 50%; color: var(--green); background: #edf5f0; cursor: pointer; font-size: 10px; }

.question-group { margin-top: 36px; }
.group-title { margin-bottom: 14px; }
.group-title span, .whole-text-player span { color: var(--coral); font-size: 9px; font-weight: 950; letter-spacing: .15em; }
.group-title h3 { margin: 5px 0 0; font: 700 28px Georgia, serif; }
.question-card { margin-bottom: 12px; overflow: hidden; border: 1px solid #e7d9b4; border-radius: 17px; background: #fff9ea; }
.question-card.reflection { border-color: #cbded3; background: #f1f8f4; }
.question-label { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; border-bottom: 1px solid rgba(104,86,47,.13); }
.question-label span { color: #9b7629; font-size: 9px; font-weight: 950; letter-spacing: .14em; }
.reflection .question-label span { color: var(--green-2); }
.question-label b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--gold); font: 700 13px Georgia, serif; }
.reflection .question-label b { background: var(--green-2); }
.question-copy, .answer-pair { padding: 16px 18px; }
.english-line { display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: start; }
.english-line p, .english-line h3 { margin: 2px 0 0; font-family: Georgia, serif; line-height: 1.62; }
.question-copy .english-line p { font-size: 19px; font-weight: 650; }
.chinese-line { margin: 10px 0 0 45px; color: var(--blue-gray); line-height: 1.7; }
details { border-top: 1px solid rgba(104,86,47,.13); }
summary { min-height: 44px; display: flex; align-items: center; padding: 0 18px; color: #745b2c; cursor: pointer; font-size: 11px; font-weight: 850; }
.reflection summary { color: var(--green-2); }
.answer-pair { background: rgba(255,255,255,.45); }
.answer-pair .english-line p { color: #4d594f; font-size: 15px; }

.summary-card, .model-summary { margin-top: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.summary-card summary, .model-summary summary { color: var(--green); }
.summary-actions { display: flex; justify-content: flex-end; padding: 0 18px; }
.summary-actions button { min-height: 36px; padding: 0 11px; border: 1px solid var(--green); border-radius: 9px; color: var(--green); background: #eef5f0; font-size: 10px; font-weight: 850; cursor: pointer; }
.bilingual-summary { display: grid; grid-template-columns: 1fr 1fr; padding: 14px 18px 20px; }
.bilingual-summary p { margin: 0; padding: 0 16px; line-height: 1.72; }
.bilingual-summary p:first-child { border-right: 1px solid var(--line); font-family: Georgia, serif; }
.bilingual-summary p:last-child { color: var(--blue-gray); font-size: 14px; }

.notes-card, .recorder-card, .review-card { margin-top: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.notes-card h4, .block-heading h4 { margin: 0; font: 700 20px Georgia, serif; }
.notes-card p, .recording-status { margin: 7px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.notes-card textarea, .review-grid textarea { width: 100%; min-height: 112px; resize: vertical; border: 1px solid #cfc9be; border-radius: 11px; padding: 12px; color: var(--ink); background: #fffefb; font-size: 16px; line-height: 1.55; }
.notes-card small, .review-card > small { display: block; margin-top: 7px; color: #87908b; font-size: 9px; }
.block-heading { display: flex; align-items: center; gap: 12px; }
.block-heading > span { color: var(--coral); font-size: 9px; font-weight: 950; letter-spacing: .15em; }
.recorder-card.recording { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(222,115,88,.11); }
.recorder-actions { display: flex; gap: 9px; }
.recorder-actions button { min-height: 46px; padding: 0 15px; border: 1px solid var(--green); border-radius: 11px; color: white; background: var(--green); font-size: 11px; font-weight: 850; cursor: pointer; }
.recorder-actions .stop-recording { color: #a33c28; border-color: #e7a895; background: #fff0eb; }
.recorder-actions .stop-recording:not(:disabled) { color: white; background: var(--coral); }
.replay-row { margin-top: 13px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.replay-row audio { width: 100%; }
.recording-error { color: #a33c28; font-size: 12px; }
.review-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.review-grid label { display: grid; gap: 7px; color: var(--green); font-size: 11px; font-weight: 800; }
.review-grid textarea { min-height: 92px; }
.adjacent-nav { margin-top: 24px; display: flex; justify-content: space-between; gap: 12px; }
.adjacent-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--green); font-size: 11px; font-weight: 850; text-decoration: none; }

.final-section { padding-bottom: 70px; }
.central-issue, .final-question, .whole-text-player { border: 1px solid var(--line); border-radius: 19px; background: var(--paper); }
.central-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--line); }
.central-pair:last-child { border-bottom: 0; }
.central-pair > * { margin: 0; padding: 20px; }
.central-pair .english-line { border-right: 1px solid var(--line); }
.central-pair .english-line p { font-size: 17px; }
.central-pair .chinese-line { color: var(--blue-gray); line-height: 1.75; }
.final-question { margin-top: 18px; overflow: hidden; }
.final-question > span { display: block; padding: 13px 18px; color: var(--coral); border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 950; letter-spacing: .15em; background: #faf6ed; }
.final-question .english-line h3 { font-size: 24px; }
.whole-text-player { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; }
.whole-text-player h3 { margin: 5px 0 0; font: 700 22px Georgia, serif; }
.whole-text-player button { min-height: 46px; padding: 0 15px; border: 1px solid var(--coral); border-radius: 11px; color: white; background: var(--coral); font-size: 11px; font-weight: 850; cursor: pointer; }

.desktop-rail { position: fixed; z-index: 30; top: 50%; right: 18px; transform: translateY(-50%); display: grid; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,.96); box-shadow: var(--shadow); }
.desktop-rail a { width: 34px; height: 34px; display: flex; align-items: center; overflow: hidden; border-radius: 10px; color: var(--muted); background: #f4efe6; text-decoration: none; transition: width .2s ease; }
.desktop-rail a span { width: 34px; flex: 0 0 34px; text-align: center; font-size: 10px; font-weight: 900; }
.desktop-rail a b { width: 190px; font: 650 12px Georgia, serif; white-space: nowrap; }
.desktop-rail a small { display: block; margin-top: 2px; color: #7e8983; font: 9px Inter, sans-serif; }
.desktop-rail:hover a, .desktop-rail:focus-within a { width: 230px; }
.desktop-rail a[aria-current="location"] { color: white; background: var(--green); }
.fixed-stop { position: fixed; z-index: 80; right: 18px; bottom: 18px; min-height: 52px; padding: 0 18px; border: 0; border-radius: 14px; color: white; background: var(--coral); box-shadow: 0 14px 40px rgba(110,46,30,.25); font-weight: 850; cursor: pointer; }
footer { padding: 30px 0 48px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .1em; }
footer a { color: var(--green); font-weight: 850; text-decoration: none; }

@media (max-width: 1240px) { .desktop-rail { display: none; } }
@media (max-width: 900px) {
  html { scroll-padding-top: 220px; }
  .site-header, .hero, .text-tabs, .audio-dock, .text-intro, .reading-section, .final-section, footer { width: min(100% - 24px, 1080px); }
  .hero { grid-template-columns: 1fr; min-height: 0; border-radius: 26px; }
  .hero-motif { min-height: 230px; }
  .hero-motif::before { width: 210px; height: 210px; }
  .hero-motif span { width: 90px; height: 90px; }
  .audio-dock { top: 6px; grid-template-columns: 1fr; }
  .audio-settings { width: 100%; }
  .audio-settings label:first-child { flex: 1; }
  .audio-settings select { width: 100%; }
  .text-intro, .reading-section, .final-section { scroll-margin-top: 220px; }
  .mobile-section-nav { position: sticky; top: 147px; z-index: 35; width: 100%; display: flex; gap: 7px; overflow-x: auto; padding: 8px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(242,237,227,.96); scrollbar-width: none; }
  .mobile-section-nav::-webkit-scrollbar { display: none; }
  .mobile-section-nav a { min-width: 148px; min-height: 48px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--paper); text-decoration: none; }
  .mobile-section-nav a span { color: var(--coral); font-size: 10px; font-weight: 950; }
  .mobile-section-nav a strong { font-size: 10px; }
  .mobile-section-nav a[aria-current="location"] { color: white; border-color: var(--green); background: var(--green); }
  .overview-cards { grid-template-columns: repeat(2,1fr); }
  .section-heading { grid-template-columns: 70px 1fr; }
  .section-heading button { grid-column: 2; justify-self: start; }
}

@media (max-width: 680px) {
  .site-header { min-height: 62px; }
  .site-header > p { display: none; }
  .hero { margin-top: 14px; }
  .hero > div:first-child { padding: 32px 22px; }
  .hero h1 { font-size: clamp(43px, 14vw, 62px); }
  .text-tabs button { min-height: 68px; grid-template-columns: 1fr; gap: 2px; padding: 10px 12px; }
  .text-tabs button small { grid-row: auto; }
  .text-tabs button strong { font-size: 15px; }
  .audio-settings { display: grid; grid-template-columns: 1fr 95px; }
  .audio-settings button { grid-column: 1 / -1; }
  .mobile-section-nav { top: 188px; }
  .text-intro { padding-top: 54px; }
  .intro-pair, .sentence-pair, .bilingual-summary, .central-pair { grid-template-columns: 1fr; }
  .intro-pair p:first-child, .english-sentence, .bilingual-summary p:first-child, .central-pair .english-line { border-right: 0; border-bottom: 1px solid var(--line); }
  .overview-cards { grid-template-columns: 1fr; }
  .overview-cards a { min-height: 96px; }
  .section-heading { grid-template-columns: 1fr; gap: 8px; }
  .section-heading > span { padding-top: 0; }
  .section-heading button { grid-column: 1; }
  .sentence-pairs { padding: 4px 10px 10px; }
  .english-sentence, .chinese-sentence { padding: 14px 8px; }
  .english-sentence { font-size: 17px; }
  .chinese-sentence { font-size: 15px; }
  .chinese-line { margin-left: 0; padding-left: 45px; }
  .review-grid { grid-template-columns: 1fr; }
  .review-grid textarea { min-height: 82px; }
  .recorder-actions, .intro-actions, .whole-text-player { display: grid; grid-template-columns: 1fr; }
  .recorder-actions button, .intro-actions button, .intro-actions a, .whole-text-player button { width: 100%; }
  .replay-row { grid-template-columns: 1fr; }
  .adjacent-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .adjacent-nav a:last-child { text-align: right; justify-content: flex-end; }
  footer { display: grid; }
  .fixed-stop { left: 12px; right: 12px; bottom: 12px; }
}

[hidden]{display:none!important}.text-content{display:block}.desktop-rail a strong{display:none}.static-badge{font-size:10px;color:var(--muted)}
