/* 与颜色无关的字号、字重和布局在三套主题间保持一致。 */
:root {
  --ink:#202c42; --ink-soft:#526079; --muted:#626f85;
  --blue:#505ed3; --blue-strong:#3c48b5; --soft:#eef0ff;
  --accent:#505ed3; --accent-strong:#3c48b5; --accent-soft:#eef0ff; --accent-line:#dce0fb;
  --canvas:#f6f7fa; --line:#e7eaf1; --paper:#fff;
  --surface:#fff; --surface-soft:#f5f7fc; --button-ink:#fff; font-weight:450;
}
:root[data-theme='warm'] {
  --ink:#29251f; --ink-soft:#574e43; --muted:#776d61;
  --blue:#c64f16; --blue-strong:#aa3f0c; --soft:#fff0e5;
  --accent:#c64f16; --accent-strong:#aa3f0c; --accent-soft:#fff0e5; --accent-line:#f2d5bf;
  --canvas:#faf7f2; --line:#eae2d8;
}
:root[data-theme='warm'] { --surface:#fffdf9; --surface-soft:#fff0e5; }
body { color:var(--ink); background:var(--canvas); }
button, input, select { font-family:inherit; }
h1,h2,h3 { font-weight:750; letter-spacing:-.025em; }
.brand { font-weight:750; }
.brand-en { font-weight:700; }
.identity-phone { font-weight:600; }
.site-actions > .text-button { font-size:13px; font-weight:600; }
.workspace-nav nav a { font-size:14px; font-weight:600; }
.workspace-nav nav a[aria-current] { font-weight:700; }
[data-view='catalog'] .course-title h1 { font-size:32px; font-weight:750; }
[data-view='catalog'] .course-title .title-eyebrow { font-weight:650; }
[data-view='catalog'] .course-title .catalog-summary { font-size:14px; }
[data-view='catalog'] .course-title .feature-copy h2 { font-weight:700; }
.feature-action { font-weight:650; }
.topic-buttons button { font-size:12px; font-weight:600; }
.catalog-heading,[data-view='catalog'] .card-info h2 { font-weight:700; }
.primary-button,.secondary-button { font-size:13px; font-weight:600; }
.summary-title { font-size:17px; font-weight:700; }
.ring-value strong,.summary-totals strong { font-weight:750; }
.lesson-nav button { font-weight:650; }
main[data-view='lesson'] h1 { font-weight:750; }
.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-original,.practice-original { font-weight:500; }
.article-translation,.practice-translation { font-weight:450; }
.follow-original { font-weight:550; }
.section-head h2 { font-size:23px; font-weight:700; }
.expression h3,.profile-heading h2,.profile-links strong { font-weight:700; }
.expression-meaning,.profile-logout { font-weight:600; }
.theme-control { display:inline-flex; align-items:center; flex:none; gap:6px; min-height:36px; padding:0 8px; background:var(--surface); border:1px solid var(--line); border-radius:10px; }
.theme-control select { width:auto; min-width:0; min-height:34px; padding:0 2px; border:0; background:transparent; color:var(--ink-soft); font:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.theme-control select:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.theme-swatch { width:10px; height:10px; border-radius:50%; background:var(--blue); flex:none; }
.theme-standalone { position:absolute; top:16px; right:20px; }
.top .theme-control { margin-left:auto; }
/* 退出确认使用当前主题，逻辑与主题彼此独立。 */
.logout-dialog { background:var(--surface); color:var(--ink); border-color:var(--line); box-shadow:0 24px 80px #101a3029; }
.logout-dialog::backdrop { background:#10182777; }
.logout-emblem { color:var(--blue); background:var(--soft); }
.logout-dialog p { color:var(--muted); }
.logout-actions button { background:var(--surface); border-color:var(--line); color:var(--ink-soft); }
.logout-actions [data-logout-confirm] { background:var(--blue); color:var(--button-ink); border-color:var(--blue); }
.logout-actions button:focus-visible { outline-color:var(--blue); }
.logout-dialog .logout-error { color:#b24032; }
@media(max-width:1000px) {
  .workspace-nav nav a { font-size:11px; }
  .topic-buttons button { gap:5px; padding-inline:4px; }
}
@media(max-width:560px) {
  .site-actions { gap:8px; }
  .site-actions .learner-identity { display:none; }
  .theme-control { padding-inline:6px; gap:4px; }
  .theme-control select { font-size:11px; }
  [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; }
  .summary-title { font-size:14px; }
  .section-head h2 { font-size:19px; }
  #compareSection .section-head { display:grid; grid-template-columns:34px minmax(0,1fr); align-items:start; }
  #readingControls { grid-column:2; justify-self:start; }
  .top { flex-wrap:wrap; }
}
