/* 暖白、橙色与清晰的文字层级；教学重点保留各自的对应色。 */
:root {
  --ink: #29251f; --ink-soft: #574e43; --muted: #776d61;
  --blue: #c95117; --blue-strong: #aa3f0c; --soft: #fff0e5;
  --accent: #c95117; --accent-strong: #aa3f0c;
  --accent-soft: #fff0e5; --accent-line: #f2d5bf;
  --canvas: #faf7f2; --line: #eae2d8;
  --shadow-sm: 0 2px 6px #49301a04; --shadow-md: 0 10px 28px #49301a0d;
  color: var(--ink); background: var(--canvas); font-weight: 450;
}
body { background: var(--canvas); color: var(--ink); }
button, input, select { font-family: inherit; }
button, .text-button, .primary-button, .secondary-button { font-weight: 600; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline-color: #dc8b56; }
input, select, .filter-row input, .filter-row select { border-color: var(--line); }
.filter-row input:focus, .filter-row select:focus, .auth-card input:focus { border-color: #d48a59; outline: 3px solid #c9511718; }
h1, h2, h3 { font-weight: 750; letter-spacing: -.025em; }
.brand { color: var(--ink); font-weight: 750; }
.brand-en { font-weight: 700; }
.brand-mark { background: #ef6b22; box-shadow: 0 4px 12px #e5772620; }
.identity-phone { color: var(--ink-soft); font-weight: 600; }
.site-actions > .text-button { font-size: 13px; font-weight: 600; }
.site-header { background: #fffdf9; }
.workspace-nav { background: #fffdf9; border-color: var(--line); }
.workspace-label, .workspace-method { color: var(--muted); }
.workspace-nav nav a { color: var(--ink-soft); font-weight: 600; font-size: 14px; }
.workspace-nav nav a:hover { background: #fff5eb; }
.workspace-nav nav a[aria-current] { color: var(--blue); background: var(--soft); font-weight: 700; }
.workspace-nav [aria-current] .nav-symbol { color: var(--blue); }
.workspace-note { color: #c37c4c; }
.workspace-note strong { color: var(--ink-soft); font-weight: 700; }
.workspace-note p { color: var(--muted); }
[data-view='catalog'] .course-title h1 { font-size: 32px; font-weight: 750; }
[data-view='catalog'] .course-title .title-eyebrow { color: #a66032; font-weight: 650; }
[data-view='catalog'] .course-title .catalog-summary { font-size: 14px; }
.catalog-feature { background: #fff0e2; border: 1px solid #f0d6bf; color: var(--ink); box-shadow: none; }
.catalog-feature:hover { background: #ffead8; }
[data-view='catalog'] .course-title .feature-copy h2 { color: #4a3121; font-weight: 700; }
[data-view='catalog'] .course-title .feature-meta { color: #89664e; }
[data-view='catalog'] .course-title .feature-eyebrow { color: #a55d2e; font-weight: 600; }
.feature-cover { border-color: #e3c5af; }
.feature-action { background: var(--blue); color: white; font-weight: 650; }
.catalog-rail { border-color: var(--line); }
.rail-heading { color: var(--muted); font-weight: 600; }
.topic-buttons button { color: var(--ink-soft); font-weight: 600; font-size: 12px; }
.topic-symbol { border-color: #eee5d9; }
.topic-buttons button:hover { background: #fff7ef; }
.topic-buttons button[aria-pressed='true'] { background: var(--soft); color: var(--blue); }
.topic-buttons button[aria-pressed='true'] .topic-symbol { box-shadow: 0 3px 7px #c9511720; }
.catalog-heading { font-weight: 700; }
[data-view='catalog'] .card-info h2 { color: var(--ink); font-weight: 700; }
.lessons li > a:hover { border-color: #e2bf9e; }
.card-labels .chip { color: #8a633d; background: #faf0e4; font-weight: 550; }
.card-byline { color: var(--muted); }
.card-action { font-weight: 650; }
.primary-button, .secondary-button { font-size: 13px; }
.summary-title { font-size: 17px; font-weight: 700; }
.check-in-state { color: #8b6546; background: #fff3e7; }
.ring-track, .goal-track { stroke: #f9dfcc; background: #f9dfcc; }
.ring-fill { stroke: #e77631; }
.ring-value strong { font-weight: 750; }
.goal-track > span { background: #e77631; }
.week-dot { background: #faf6ef; border-color: var(--line); }
.learning-week [data-today='true'] .week-dot { border-color: #dd935e; }
.learning-week [data-checked='true'] .week-dot { background: var(--blue); border-color: var(--blue); }
.summary-totals strong, .summary-goal strong, .summary-week-head strong { font-weight: 700; }
.learning-outcomes { color: var(--muted); }
.learning-outcomes strong { color: #9d5c30; font-weight: 650; }
.lesson-nav button { font-weight: 650; }
main[data-view='lesson'] h1 { font-weight: 750; }
.transport, .passage-head .time { background: #faf5ed; }
.modes button[aria-pressed='true'], .reading-controls button[aria-pressed='true'] { font-weight: 650; }
.passage-actions .replay, .passage-actions .check, .passage-actions .text-button { font-weight: 600; }
.article-translation, .practice-translation { font-weight: 450; }
.section-head h2 { font-size: 23px; font-weight: 700; }
.section-hint { color: var(--muted); }
.practice-original, .article-original { font-weight: 500; color: var(--ink); }
.article-translation, .follow-translation { color: #716355; }
.follow-original { font-weight: 550; }
.expression h3 { font-weight: 700; }
.expression-meaning { font-weight: 600; }
.primary-button { box-shadow: 0 3px 8px #c9511719; }
.secondary-button { color: var(--ink-soft); }
.reading-controls, .speak-langs { background: #f7f2eb; }
.speak-card { --speak-accent-line: var(--accent-line); }
.speak-panel { background: #fdfbf7; }
.follow-line.active { background: #fff0e2; }
.resume-context { color: #985c32; background: #fff5ea; border-color: #eddac5; font-weight: 550; }
.resume-target { outline-color: #d6915d !important; }
.collect-button, .collection-filters button[aria-pressed='true'] { color: #a15b2e; background: #fff4e9; border-color: #edd8c4; }
.collect-button[aria-pressed='true'] { color: var(--blue); background: #ffe9d6; border-color: #edc4a1; }
.collection-filters button, .collection-foot, .collection-source, .collection-empty { color: var(--muted); }
.collection-card .sentence-listen { color: var(--blue); background: #fff4e9; border-color: #edd8c4; }
.collection-original { color: var(--ink); font-weight: 550; }
.profile-avatar { color: #c5753d; background: #fff0df; border-color: #eed7bd; }
.profile-caption, .profile-links small { color: var(--muted); }
.profile-library { color: #995a2f; background: #fff0e2; font-weight: 600; }
.profile-heading h2, .profile-links strong { font-weight: 700; }
.profile-logout { color: var(--ink-soft); background: #fcf8f2; border-color: var(--line); font-weight: 600; }
.memory-ratings button { color: var(--ink-soft); background: #fcf9f4; border-color: var(--line); }
.rating-hint { color: var(--muted); }
.auth-card .primary, .primary { background: var(--blue); border-color: var(--blue); font-weight: 650; }
.auth-card, .panel, .rows details { border-color: var(--line); }
.rows summary { color: var(--ink-soft); font-weight: 600; }
@media(max-width:1000px) {
  .workspace-nav nav a[aria-current] { background: var(--soft); }
  .topic-buttons button { background: #fcf9f5; border-color: var(--line); }
  .topic-buttons button[aria-pressed='true'] { background: var(--blue); color: white; }
  .topic-buttons button { gap: 5px; padding-inline: 4px; }
  .workspace-nav nav a { font-size: 11px; }
}
@media(max-width:560px) {
  [data-view='catalog'] .course-title h1 { font-size: 26px; }
  [data-view='catalog'] .course-title .catalog-summary { font-size: 13px; }
  [data-view='catalog'] .card-info h2 { font-size: 14px; }
  [data-view='catalog'] .card-byline { font-size: 11px; }
  .section-head h2 { font-size: 19px; }
  .workspace-nav nav a { font-size: 11px; }
  .summary-title { font-size: 14px; }
  #compareSection .section-head { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: start; }
  #readingControls { grid-column: 2; justify-self: start; }
}
