:root {
  --ink: #202522;
  --ink-soft: #4d5650;
  --muted: #7c847e;
  --paper: #f5f1e8;
  --surface: #fffdf8;
  --surface-2: #f0eadf;
  --line: #ddd5c8;
  --vermilion: #a7372b;
  --vermilion-dark: #81271f;
  --vermilion-soft: #f3e2dd;
  --jade: #2f6256;
  --jade-soft: #e0ebe6;
  --gold: #9b7846;
  --shadow: 0 16px 45px rgba(59, 47, 35, .08);
  --shadow-small: 0 6px 20px rgba(59, 47, 35, .07);
  --radius: 18px;
  --sidebar: 248px;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --font-sans: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid rgba(167, 55, 43, .3);
  outline-offset: 2px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 2000; background: var(--ink); color: white; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 100;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  color: #f5f0e7;
  background:
    radial-gradient(circle at 85% 12%, rgba(255,255,255,.055), transparent 20%),
    linear-gradient(180deg, #202a26, #17211d);
  box-shadow: 5px 0 24px rgba(26, 34, 30, .12);
}
.sidebar::after {
  content: "语";
  position: absolute;
  right: -18px;
  top: 180px;
  font-family: var(--font-serif);
  font-size: 150px;
  color: rgba(255,255,255,.022);
  pointer-events: none;
  transform: rotate(-6deg);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 30px; position: relative; z-index: 1; }
.brand-seal { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; font-family: var(--font-serif); font-size: 22px; background: var(--vermilion); color: white; border-radius: 6px 6px 8px 5px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transform: rotate(-2deg); }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-family: var(--font-serif); font-size: 18px; letter-spacing: .12em; }
.brand-copy span { font-size: 11px; letter-spacing: .2em; color: #aeb9b3; margin-top: 2px; }
.nav-list { display: grid; gap: 5px; position: relative; z-index: 1; }
.nav-item, .help-button {
  border: 0;
  background: transparent;
  color: #b9c2bd;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  transition: background-color .2s, color .2s;
}
.nav-item:hover, .help-button:hover { color: white; background: rgba(255,255,255,.07); }
.nav-item.active { color: white; background: linear-gradient(90deg, rgba(167,55,43,.9), rgba(167,55,43,.58)); box-shadow: inset 3px 0 0 #e8c4b8; }
.nav-item svg, .help-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item span:nth-of-type(1) { flex: 1; }
.nav-badge { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; background: rgba(255,255,255,.14); border-radius: 20px; font-size: 11px; }
.sidebar-verse { margin: auto 8px 24px; padding: 22px 18px; position: relative; overflow: hidden; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; }
.sidebar-verse::after { content: ""; width: 46px; height: 46px; position: absolute; right: -15px; bottom: -15px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.verse-mark { display: block; font-size: 10px; color: #caa69c; letter-spacing: .24em; margin-bottom: 10px; }
.sidebar-verse p { margin: 0 0 8px; font-family: var(--font-serif); font-size: 16px; line-height: 1.8; letter-spacing: .08em; }
.sidebar-verse small { color: #8f9b95; }
.sidebar-footer { border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; position: relative; z-index: 1; }
.help-button { width: 100%; }
.teacher-mini { display: grid; grid-template-columns: 36px 1fr 32px; align-items: center; gap: 10px; padding: 14px 8px 0; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #d8c6a7; color: #453727; font-family: var(--font-serif); font-weight: 700; }
.teacher-mini div:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.teacher-mini strong { font-size: 13px; }
.teacher-mini span { font-size: 11px; color: #89958e; }
.teacher-mini .icon-button { color: #9ba69f; }

.page-wrap { margin-left: var(--sidebar); min-height: 100vh; }
.topbar { height: 72px; padding: 0 clamp(20px, 3.2vw, 48px); display: flex; align-items: center; gap: 20px; position: sticky; top: 0; z-index: 50; background: rgba(245,241,232,.88); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(196,185,169,.6); }
.breadcrumb { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; white-space: nowrap; }
.breadcrumb i { width: 4px; height: 4px; background: #aaa197; border-radius: 50%; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.global-search { margin-left: auto; width: min(360px, 34vw); height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: rgba(255,253,248,.88); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.global-search:focus-within { border-color: var(--vermilion); box-shadow: 0 0 0 3px rgba(167,55,43,.1); }
.global-search svg { width: 18px; height: 18px; fill: none; stroke: #8a918d; stroke-width: 1.8; }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); }
.global-search input::placeholder { color: #9ca09d; }
.global-search kbd { padding: 2px 6px; color: #8c908d; background: #ebe6dd; border: 1px solid #ded7cc; border-radius: 5px; font-size: 10px; }
.icon-button { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; transition: background-color .2s; }
.icon-button:hover { background: rgba(43,54,48,.07); }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification { position: relative; flex: 0 0 auto; }
.notification span { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--vermilion); border: 2px solid var(--paper); }
.primary-button, .outline-button, .ghost-button { min-height: 42px; border-radius: 10px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.primary-button { border: 1px solid var(--vermilion); color: white; background: var(--vermilion); box-shadow: 0 6px 16px rgba(167,55,43,.16); }
.primary-button:hover { background: var(--vermilion-dark); border-color: var(--vermilion-dark); }
.primary-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.outline-button { border: 1px solid #cfc5b6; background: transparent; color: var(--ink); }
.outline-button:hover { border-color: var(--vermilion); color: var(--vermilion); background: #fffaf5; }
.ghost-button { border: 0; background: var(--surface-2); }
.ghost-button:hover { background: #e5ddd0; }
.menu-button { display: none; }

main { max-width: 1500px; margin: 0 auto; padding: 32px clamp(20px, 3.2vw, 48px) 60px; }
.welcome-block { min-height: 142px; display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; padding: 22px 32px; margin-bottom: 28px; background: linear-gradient(108deg, #f7eee1 0%, #f1e5d4 64%, #e6ddd0 100%); border: 1px solid #ded0bd; border-radius: 20px; box-shadow: var(--shadow-small); }
.welcome-block::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(#806b54 .55px, transparent .55px); background-size: 5px 5px; pointer-events: none; }
.welcome-block > div:first-child { position: relative; z-index: 2; }
.eyebrow, .section-kicker { color: var(--vermilion); font-size: 10px; letter-spacing: .18em; font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow span { width: 22px; height: 1px; background: var(--vermilion); }
.welcome-block h1 { margin: 7px 0 4px; font-family: var(--font-serif); font-size: clamp(26px, 2.2vw, 36px); font-weight: 700; letter-spacing: .05em; }
.welcome-block p { margin: 0; color: #6d665e; font-family: var(--font-serif); }
.welcome-art { width: 330px; height: 140px; position: absolute; right: 0; bottom: 0; opacity: .82; }
.welcome-art b { position: absolute; right: 34px; bottom: -27px; font-family: var(--font-serif); font-size: 142px; line-height: 1; font-weight: 700; color: rgba(82,75,64,.09); }
.sun { position: absolute; width: 48px; height: 48px; top: 24px; right: 96px; border-radius: 50%; background: rgba(167,55,43,.2); }
.mountain { position: absolute; bottom: -34px; border-radius: 52% 48% 0 0; transform: rotate(-8deg); background: rgba(72,92,80,.1); }
.mountain-one { right: 80px; width: 190px; height: 110px; }
.mountain-two { right: -28px; width: 180px; height: 86px; background: rgba(72,92,80,.15); transform: rotate(10deg); }
.flying-bird { position: absolute; font-size: 29px; color: rgba(37,70,58,.35); transform: rotate(-6deg); }
.bird-one { top: 32px; left: 62px; }.bird-two { top: 55px; left: 98px; font-size: 22px; }

.quick-actions { margin-bottom: 28px; }
.section-heading h2 { margin: 1px 0 0; font-family: var(--font-serif); font-size: 20px; letter-spacing: .04em; }
.inline-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.text-button { padding: 6px 0; border: 0; background: transparent; color: #6f7771; font-size: 12px; }
.text-button:hover { color: var(--vermilion); }
.text-button span { font-size: 17px; }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.action-card { min-height: 96px; padding: 18px; border: 1px solid transparent; border-radius: 16px; display: grid; grid-template-columns: 48px 1fr 24px; align-items: center; gap: 14px; text-align: left; transition: transform .2s, box-shadow .2s, border-color .2s; }
.action-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-small); }
.action-card.vermilion { background: var(--vermilion-soft); border-color: #e5c7c0; }.action-card.jade { background: var(--jade-soft); border-color: #c7ddd3; }.action-card.ink { background: #e3e6e3; border-color: #ced4cf; }
.action-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.6); }
.action-icon svg, .action-card .arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.action-card span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.action-card strong { font-family: var(--font-serif); font-size: 16px; }
.action-card small { color: #68706b; }
.action-card .arrow { width: 18px; opacity: .45; transition: transform .2s; }
.action-card:hover .arrow { transform: translateX(3px); opacity: .8; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(280px, .78fr); gap: 18px; margin-bottom: 18px; }
.panel { min-width: 0; background: rgba(255,253,248,.9); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-small); padding: 22px; }
.panel .inline-heading { margin-bottom: 12px; }
.lesson-list { display: grid; }
.lesson-item { display: grid; grid-template-columns: 66px 18px minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 120px; border-top: 1px solid #eee7dc; }
.lesson-item:first-child { border-top: 0; }
.lesson-time { display: flex; flex-direction: column; align-self: start; padding-top: 24px; }
.lesson-time strong { font-size: 15px; font-variant-numeric: tabular-nums; }.lesson-time span { color: #9a9e9b; font-size: 10px; }
.lesson-line { height: 100%; position: relative; display: flex; justify-content: center; }
.lesson-line::before { content: ""; width: 1px; height: 100%; background: #e4ddd3; }
.lesson-line i { position: absolute; top: 29px; width: 9px; height: 9px; border-radius: 50%; background: #aaa69f; box-shadow: 0 0 0 4px var(--surface); }
.lesson-item.current .lesson-line i { background: var(--vermilion); }
.lesson-main { padding: 16px 0; min-width: 0; }
.lesson-meta { display: flex; align-items: center; gap: 9px; color: #8c918e; font-size: 11px; }
.grade-tag { display: inline-flex; padding: 3px 8px; border-radius: 20px; color: var(--vermilion); background: var(--vermilion-soft); }.grade-tag.green { color: var(--jade); background: var(--jade-soft); }
.lesson-main h3 { margin: 7px 0 3px; font-family: var(--font-serif); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson-main p { margin: 0; color: #747b76; font-size: 12px; }
.lesson-progress { display: inline-block; width: 120px; height: 4px; margin: 12px 8px 2px 0; overflow: hidden; background: #eadfd8; border-radius: 5px; vertical-align: middle; }.lesson-progress span { display: block; height: 100%; background: var(--vermilion); border-radius: inherit; }
.lesson-main > small { color: #9b9e9c; font-size: 10px; }
.lesson-action { font-size: 12px; white-space: nowrap; }

.calendar-panel { padding: 22px 22px 18px; }
.calendar-head { display: flex; justify-content: space-between; align-items: start; }
.calendar-head h2 { margin: 0; font-family: var(--font-serif); font-size: 23px; }
.calendar-controls { display: flex; }.icon-button.small { width: 30px; height: 30px; }.icon-button.small svg { width: 16px; height: 16px; }
.calendar-week, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.calendar-week { margin-top: 17px; padding-bottom: 8px; color: #a1a5a2; font-size: 10px; }
.calendar-days { row-gap: 5px; font-size: 11px; }
.calendar-days span, .calendar-days button { width: 30px; height: 30px; place-self: center; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; position: relative; }
.calendar-days .muted { color: #c7c8c5; }.calendar-days .today { color: white; background: var(--vermilion); box-shadow: 0 5px 12px rgba(167,55,43,.2); }.calendar-days .today i { position: absolute; bottom: -5px; width: 3px; height: 3px; border-radius: 50%; background: var(--vermilion); }
.calendar-note { margin-top: 17px; padding: 12px; display: flex; gap: 10px; align-items: center; background: #f3eee6; border-radius: 11px; }
.calendar-note > span { width: 3px; height: 34px; background: var(--gold); border-radius: 3px; }.calendar-note div { display: flex; flex-direction: column; }.calendar-note strong { font-size: 11px; }.calendar-note small { color: #818681; font-size: 9px; margin-top: 3px; }

.lower-grid { grid-template-columns: minmax(0, 1.58fr) minmax(300px, .92fr); }
.resource-table { display: grid; }
.resource-row { min-height: 54px; display: grid; grid-template-columns: minmax(260px, 1.5fr) 1fr 90px 24px; align-items: center; gap: 14px; width: 100%; border: 0; border-top: 1px solid #eee7dc; background: transparent; text-align: left; color: #737974; font-size: 11px; }
button.resource-row { transition: background-color .2s; }.resource-row:not(.resource-header):hover { background: #f8f4ec; }.resource-header { min-height: 34px; border-top: 0; color: #a0a39f; font-size: 10px; }
.resource-row > span:first-child { display: flex; align-items: center; min-width: 0; }.resource-row b { color: var(--ink); font-family: var(--font-serif); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-icon { width: 29px; height: 34px; margin-right: 10px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 5px 5px 8px 5px; color: white; font-style: normal; font-size: 10px; font-weight: 700; }.file-icon.ppt { background: #b35a45; }.file-icon.doc { background: #4f7390; }.file-icon.pdf { background: #657960; }
.more-button { border: 0; background: transparent; color: #8c908d; letter-spacing: 2px; }
.book-line { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.book-cover { width: 74px; height: 96px; flex: 0 0 auto; padding: 10px; display: flex; flex-direction: column; color: #efe9dc; background: linear-gradient(155deg, #355247, #20352d); border-radius: 5px 9px 9px 5px; box-shadow: 6px 6px 16px rgba(30,45,39,.15), inset 4px 0 0 rgba(255,255,255,.1); }.book-cover span { font-size: 8px; letter-spacing: .1em; }.book-cover strong { margin: auto 0; font-family: var(--font-serif); font-size: 23px; letter-spacing: .15em; }.book-cover small { font-size: 8px; color: #c4d1ca; }
.book-info { min-width: 0; flex: 1; display: grid; grid-template-columns: 1fr 56px; align-items: center; }.book-info strong, .book-info span { grid-column: 1; }.book-info strong { font-family: var(--font-serif); }.book-info span { color: #7e8580; font-size: 11px; margin-top: 5px; }.ring-progress { grid-column: 2; grid-row: 1 / 3; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--vermilion) 0 42%, #ebe3d8 42%); position: relative; }.ring-progress::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }.ring-progress b { position: relative; z-index: 1; font-size: 12px; }
.unit-track { display: flex; align-items: center; margin-top: 24px; }.unit-track span { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #d7d0c6; color: #999d9a; border-radius: 50%; font-family: var(--font-serif); font-size: 10px; background: var(--surface); }.unit-track i { flex: 1; height: 1px; background: #ddd6cb; }.unit-track .done { color: var(--jade); border-color: var(--jade); background: var(--jade-soft); }.unit-track .active { color: white; border-color: var(--vermilion); background: var(--vermilion); box-shadow: 0 0 0 4px var(--vermilion-soft); }
.next-unit { margin: 14px 0 0; color: #747b76; font-size: 11px; text-align: center; }

.overlay { position: fixed; z-index: 90; inset: 0; background: rgba(20,28,24,.42); backdrop-filter: blur(2px); }
.toast { position: fixed; z-index: 1000; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 11px 18px; color: white; background: #26322c; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.lesson-dialog { width: min(480px, calc(100vw - 32px)); border: 1px solid #d9cdbd; padding: 0; color: var(--ink); background: var(--surface); border-radius: 20px; box-shadow: 0 25px 70px rgba(29,38,33,.25); }
.lesson-dialog::backdrop { background: rgba(20,28,24,.52); backdrop-filter: blur(3px); }
.lesson-dialog form { padding: 34px; position: relative; }.dialog-seal { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 8px; color: white; background: var(--vermilion); font-family: var(--font-serif); font-size: 22px; transform: rotate(-2deg); }.dialog-close { position: absolute; right: 20px; top: 20px; }.lesson-dialog h2 { margin: 5px 0 6px; font-family: var(--font-serif); font-size: 25px; }.lesson-dialog p { margin: 0 0 22px; color: #737a75; }.lesson-dialog label { display: grid; gap: 7px; margin-top: 15px; color: #525a55; font-size: 13px; }.lesson-dialog select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d6cec1; border-radius: 9px; background: white; color: var(--ink); }.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }

/* Textbook library */
.textbook-view { animation: view-in .28s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.library-hero { min-height: 122px; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #d7ccbc; border-radius: 18px; background: linear-gradient(115deg, #f7eee1 0%, #efe5d6 58%, #e1e4dc 100%); position: relative; overflow: hidden; }
.library-hero::after { content: "册"; position: absolute; right: 28%; top: -44px; font: 700 150px/1 var(--font-serif); color: rgba(85,73,57,.045); transform: rotate(5deg); }
.library-hero > div { position: relative; z-index: 1; }
.library-hero h1 { margin: 6px 0 3px; font: 700 clamp(25px, 2.2vw, 34px)/1.2 var(--font-serif); letter-spacing: .06em; }
.library-hero p { margin: 0; color: #706a62; }
.version-card { min-width: 300px; padding: 13px 14px; display: grid; grid-template-columns: 9px 1fr auto; gap: 10px; align-items: center; background: rgba(255,253,248,.72); border: 1px solid rgba(158,139,115,.26); border-radius: 13px; backdrop-filter: blur(7px); }
.version-dot { width: 9px; height: 9px; background: var(--jade); border: 3px solid #c6ddd2; border-radius: 50%; box-sizing: content-box; }
.version-card div { display: flex; flex-direction: column; }.version-card strong { font-size: 12px; }.version-card small { color: #858981; font-size: 9px; margin-top: 2px; }
.library-toolbar { min-height: 70px; display: flex; align-items: center; gap: 18px; }
.segment-control { padding: 3px; display: flex; background: #e7e1d7; border-radius: 11px; }
.segment-control button { min-width: 78px; height: 36px; border: 0; border-radius: 8px; color: #707670; background: transparent; font-weight: 600; transition: .18s; }.segment-control button.active { color: var(--ink); background: var(--surface); box-shadow: 0 3px 9px rgba(53,44,34,.1); }
.library-search { width: min(380px, 36vw); height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 13px; margin-left: auto; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }.library-search:focus-within { border-color: var(--vermilion); box-shadow: 0 0 0 3px rgba(167,55,43,.1); }.library-search svg { width: 18px; height: 18px; fill: none; stroke: #8b918d; stroke-width: 1.8; }.library-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; }
.coverage { display: flex; align-items: baseline; gap: 5px; color: #777e79; font-size: 11px; white-space: nowrap; }.coverage span { color: var(--vermilion); font: 700 20px/1 var(--font-serif); }.coverage i { width: 1px; height: 20px; margin: 0 7px; background: var(--line); }
.grade-tabs { display: flex; gap: 7px; padding: 0 0 16px; overflow-x: auto; scrollbar-width: thin; }
.grade-tab { min-width: 72px; height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,253,248,.7); color: #686f6a; white-space: nowrap; transition: .18s; }.grade-tab:hover { border-color: #b9a991; }.grade-tab.active { color: white; border-color: var(--jade); background: var(--jade); box-shadow: 0 5px 12px rgba(47,98,86,.16); }
.library-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.book-selector, .catalog-panel { min-width: 0; background: rgba(255,253,248,.9); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-small); }
.book-selector { padding: 20px 16px; position: sticky; top: 88px; }.book-selector-heading { padding: 0 5px 12px; }.book-selector-heading h2 { margin: 3px 0 0; font: 700 18px var(--font-serif); }
.book-card { width: 100%; min-height: 88px; margin-top: 9px; padding: 13px; display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; text-align: left; border: 1px solid transparent; border-radius: 12px; background: #f1ede5; transition: .18s; }.book-card:hover { border-color: #cbbda8; }.book-card.active { border-color: #b99c83; background: #f5e8dd; box-shadow: inset 3px 0 0 var(--vermilion); }
.mini-cover { width: 42px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #f5f1e8; background: linear-gradient(145deg, #37584b, #223a31); border-radius: 3px 6px 6px 3px; box-shadow: 3px 4px 7px rgba(31,46,40,.16); }.mini-cover.red { background: linear-gradient(145deg, #a94738, #7f2e26); }.mini-cover b { font: 700 17px var(--font-serif); }.mini-cover small { font-size: 7px; }
.book-card > span:last-child { display: flex; flex-direction: column; gap: 3px; }.book-card strong { font-family: var(--font-serif); }.book-card small { color: #8b8f8b; font-size: 10px; }
.source-note { margin-top: 18px; padding: 13px 8px 2px; display: flex; gap: 8px; border-top: 1px solid #e8e1d7; color: #8a8e89; }.source-note svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; }.source-note p { margin: 0; font-size: 9px; line-height: 1.65; }
.catalog-panel { padding: 24px; }
.catalog-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid #ebe4da; }.catalog-overline { color: var(--vermilion); font-size: 10px; letter-spacing: .15em; }.catalog-header h2 { margin: 4px 0 2px; font: 700 25px var(--font-serif); }.catalog-header p { margin: 0; color: #898e89; font-size: 10px; }.catalog-actions { display: flex; gap: 9px; }.source-link { text-decoration: none; font-size: 11px; }
.unit-filter { display: flex; gap: 7px; padding: 16px 0; overflow-x: auto; }.unit-chip { min-width: max-content; height: 31px; padding: 0 11px; border: 1px solid #dfd7cc; border-radius: 20px; background: #faf7f1; color: #777d78; font-size: 10px; }.unit-chip:hover, .unit-chip.active { color: var(--vermilion); border-color: #d7a79e; background: var(--vermilion-soft); }
.catalog-units { display: grid; gap: 11px; }
.unit-block { border: 1px solid #e7e0d5; border-radius: 13px; overflow: hidden; background: #fffefa; }
.unit-heading { width: 100%; min-height: 54px; padding: 0 16px; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: #f7f3ec; }.unit-heading:hover { background: #f3eee5; }.unit-number { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--vermilion); background: var(--vermilion-soft); font: 700 12px var(--font-serif); }.unit-heading strong { font: 700 14px var(--font-serif); }.unit-heading small { margin-left: auto; color: #929691; }.unit-heading svg { width: 17px; height: 17px; fill: none; stroke: #7b827c; stroke-width: 1.8; transition: transform .18s; }.unit-block.collapsed .unit-heading svg { transform: rotate(-90deg); }
.lesson-list-grid { padding: 6px 12px 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; }.unit-block.collapsed .lesson-list-grid { display: none; }
.catalog-lesson { min-height: 42px; padding: 7px 9px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 8px; background: transparent; text-align: left; color: #4f5752; font-size: 12px; }.catalog-lesson:hover { color: var(--vermilion); background: #f7eee9; }.lesson-type-icon { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #dfd7cc; border-radius: 7px; color: #8d918c; font: 700 9px var(--font-serif); background: #fff; }.catalog-lesson.has-resource .lesson-type-icon { color: var(--jade); border-color: #bad0c6; background: var(--jade-soft); }.catalog-lesson b { min-width: 0; font-weight: 500; overflow-wrap: anywhere; }.resource-mark { margin-left: auto; width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--jade); }.resource-badge { margin-left: auto; padding: 3px 6px; flex: 0 0 auto; border: 1px solid #c8d8d0; border-radius: 999px; color: #537065; background: #edf5f1; font-size: 10px; line-height: 1; }.resource-badge.premium { color: #8d4b31; border-color: #e1b9a8; background: #fbede7; }
.catalog-empty { min-height: 240px; display: grid; place-content: center; text-align: center; }.catalog-empty strong { font: 700 17px var(--font-serif); }.catalog-empty span { margin-top: 5px; color: #8b8f8b; font-size: 12px; }

.source-dialog { width: min(560px, calc(100vw - 32px)); }.source-list { display: grid; gap: 8px; margin: 6px 0 18px; }.source-list a { min-height: 54px; padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; text-decoration: none; color: var(--ink); background: #f5f1e9; border: 1px solid #e3dbcf; border-radius: 10px; }.source-list a:hover { border-color: #c59e8f; }.source-list span { color: #7f847f; font-size: 10px; margin-top: 2px; }.lesson-dialog .dialog-footnote { margin: 0; font-size: 10px; line-height: 1.6; color: #929691; }

.drawer-scrim { position: fixed; z-index: 180; inset: 0; background: rgba(24,31,27,.36); backdrop-filter: blur(2px); }
.lesson-drawer { position: fixed; z-index: 190; top: 0; right: 0; bottom: 0; width: min(640px, 100vw); display: flex; flex-direction: column; color: var(--ink); background: var(--surface); box-shadow: -18px 0 55px rgba(24,31,27,.2); transform: translateX(105%); visibility: hidden; transition: transform .28s ease, visibility .28s; }.lesson-drawer.open { transform: none; visibility: visible; }.drawer-header { min-height: 92px; padding: 21px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #f5f0e7; }.drawer-header h2 { margin: 4px 0 0; font: 700 22px var(--font-serif); }.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }.resource-status { min-height: 52px; padding: 10px 13px; display: grid; grid-template-columns: 9px 1fr; align-items: center; column-gap: 9px; background: var(--jade-soft); border: 1px solid #c8dbd2; border-radius: 11px; }.resource-status > span { width: 9px; height: 9px; border-radius: 50%; background: var(--jade); }.resource-status strong { font-size: 14px; }.resource-status small { grid-column: 2; color: #6f7d76; font-size: 12px; }
.lesson-meta-strip { margin-top: 12px; display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 9px; }.lesson-meta-strip span { min-width: 0; padding: 11px 12px; display: grid; gap: 4px; border: 1px solid #e3dbcf; border-radius: 10px; background: #fbf8f2; }.lesson-meta-strip .quality-meta { border-color: #e1b9a8; background: #fbede7; }.lesson-meta-strip small { color: #8a7d70; font-size: 12px; }.lesson-meta-strip strong { overflow-wrap: anywhere; font-size: 14px; }
.drawer-section { padding: 21px 0; display: grid; grid-template-columns: 32px 1fr; gap: 10px; border-bottom: 1px solid #ebe4da; }.drawer-index { color: var(--vermilion); font: 700 12px var(--font-serif); letter-spacing: .08em; }.drawer-section h3 { margin: -4px 0 8px; font: 700 17px var(--font-serif); }.drawer-section p { margin: 0; color: #56605a; font-size: 14px; line-height: 1.8; }.drawer-section ul { margin: 0; padding-left: 19px; color: #56605a; font-size: 14px; line-height: 1.8; }.knowledge-points li + li { margin-top: 5px; }.key-points { display: grid; gap: 8px; }.key-points p { display: grid; grid-template-columns: 42px 1fr; gap: 8px; }.key-points b { color: var(--vermilion); }.lesson-flow { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 7px; counter-reset: flow; }.lesson-flow li { padding: 7px 10px; color: #56605a; background: #f1ede5; border-radius: 7px; font-size: 13px; }.lesson-flow li::before { counter-increment: flow; content: counter(flow) ". "; color: var(--vermilion); font-weight: 700; }
.lesson-background { margin-top: 12px; padding: 11px 12px; display: grid; grid-template-columns: 66px 1fr; gap: 10px; border-left: 3px solid var(--gold); background: #f7f2e8; color: #626a65; font-size: 13px; line-height: 1.7; }.lesson-background b { color: #8a6330; }.structure-list, .question-chain { margin: 0; padding-left: 22px; color: #56605a; font-size: 14px; line-height: 1.75; }.structure-list li + li, .question-chain li + li { margin-top: 6px; }.question-chain li::marker { color: var(--vermilion); font-weight: 700; }.language-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }.language-tags span { padding: 5px 8px; border: 1px solid #d8d0c5; border-radius: 999px; color: #667069; background: #faf7f1; font-size: 12px; }.board-design { padding: 14px 16px; display: grid; gap: 7px; border: 1px solid #33443d; border-radius: 10px; color: #f4eee4; background: #26342f; font-family: "FangSong", "STFangsong", serif; font-size: 14px; line-height: 1.6; }.board-design span:first-child { color: #e8c78e; font-size: 17px; font-weight: 700; }.homework-list { display: grid; gap: 9px; }.homework-list p { padding: 10px 12px; display: grid; grid-template-columns: 42px 1fr; gap: 10px; border: 1px solid #e3dbcf; border-radius: 9px; background: #fbf8f2; }.homework-list b { color: var(--vermilion); }
.draft-notice { margin-top: 18px; padding: 13px; display: flex; flex-direction: column; border-left: 3px solid var(--gold); background: #f4eee3; }.draft-notice strong { font-size: 11px; }.draft-notice span { color: #7c817d; font-size: 10px; margin-top: 3px; }.drawer-footer { min-height: 72px; padding: 14px 24px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); background: #fbf8f2; }

@media (max-width: 1120px) {
  :root { --sidebar: 220px; }
  .topbar { gap: 12px; }
  .global-search { width: 240px; }
  .action-card { grid-template-columns: 42px 1fr; }.action-card .arrow { display: none; }.action-icon { width: 42px; height: 42px; }
  .dashboard-grid { grid-template-columns: 1fr; }.calendar-panel { max-width: none; }.calendar-days span, .calendar-days button { width: 34px; height: 34px; }
  .library-layout { grid-template-columns: 185px minmax(0,1fr); }.lesson-list-grid { grid-template-columns: 1fr; }.version-card { min-width: 280px; }
}

@media (max-width: 820px) {
  .sidebar { transform: translateX(-105%); transition: transform .25s ease; box-shadow: 12px 0 40px rgba(16,23,19,.22); }.sidebar.open { transform: translateX(0); }
  .page-wrap { margin-left: 0; }.menu-button { display: grid; }.breadcrumb span, .breadcrumb i { display: none; }.topbar { padding: 0 18px; }.global-search { width: auto; flex: 1; }.global-search kbd { display: none; }
  main { padding: 24px 18px 48px; }.welcome-block { padding: 22px; }.welcome-art { opacity: .48; }.welcome-block p { max-width: 70%; }
  .action-grid { grid-template-columns: 1fr; }.action-card { grid-template-columns: 48px 1fr 24px; }.action-card .arrow { display: block; }
  .library-hero { align-items: flex-start; flex-direction: column; }.version-card { width: 100%; min-width: 0; }.library-toolbar { flex-wrap: wrap; padding: 12px 0; }.library-search { order: 3; width: 100%; margin-left: 0; }.coverage { margin-left: auto; }.library-layout { grid-template-columns: 1fr; }.book-selector { position: static; }.book-selector-heading { display: none; }#bookCards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.book-card { margin: 0; }.source-note { display: none; }
}

@media (max-width: 590px) {
  .topbar { height: 64px; }.breadcrumb { display: none; }.topbar > .primary-button { width: 42px; padding: 0; font-size: 0; }.topbar > .primary-button svg { width: 19px; height: 19px; }.global-search { background: transparent; border-color: transparent; }.global-search input { display: none; }.global-search { margin-left: auto; width: 42px; flex: 0 0 auto; justify-content: center; }
  main { padding-inline: 14px; }.welcome-block { min-height: 174px; align-items: start; }.welcome-block p { max-width: 90%; font-size: 13px; }.welcome-art { right: -60px; bottom: -15px; }
  .lesson-item { grid-template-columns: 52px 14px minmax(0,1fr); padding: 6px 0; }.lesson-action { grid-column: 3; width: max-content; margin-bottom: 12px; }.lesson-main h3 { white-space: normal; }.lesson-progress { width: 80px; }
  .panel { padding: 18px 15px; }.resource-table { overflow-x: auto; }.resource-row { min-width: 640px; }
  .calendar-days span, .calendar-days button { width: 32px; height: 32px; }
  .book-info { grid-template-columns: 1fr 52px; }.unit-track span { width: 22px; height: 22px; }
  .library-hero { padding: 20px; }.library-hero p { font-size: 12px; }.version-card { grid-template-columns: 9px 1fr; }.version-card .text-button { grid-column: 2; justify-self: start; }.coverage { display: none; }.segment-control { width: 100%; }.segment-control button { flex: 1; }.grade-tabs { padding-bottom: 12px; }.catalog-panel { padding: 18px 14px; }.catalog-header { align-items: flex-start; flex-direction: column; }.catalog-actions { width: 100%; }.catalog-actions > * { flex: 1; }.source-link { padding-inline: 9px; }.lesson-list-grid { padding-inline: 7px; }.book-card { grid-template-columns: 38px 1fr; padding: 9px; }.mini-cover { width: 36px; height: 48px; }.lesson-drawer { width: 100vw; }.drawer-header, .drawer-body, .drawer-footer { padding-left: 18px; padding-right: 18px; }.lesson-meta-strip { grid-template-columns: 1fr 1fr; }.lesson-meta-strip .quality-meta { grid-column: 1 / -1; }.drawer-section { grid-template-columns: 26px 1fr; }.lesson-background { grid-template-columns: 1fr; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Public learning edition */
.public-header {
  min-height: 74px;
  padding: 0 clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(245, 241, 232, .94);
  border-bottom: 1px solid rgba(196, 185, 169, .72);
  backdrop-filter: blur(14px);
}
.public-brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.public-brand .brand-copy { gap: 1px; }
.public-brand .brand-copy strong { font: 700 18px var(--font-serif); letter-spacing: .12em; }
.public-brand .brand-copy small { color: #7b837e; font-size: 11px; letter-spacing: .16em; }
.public-nav { display: flex; align-items: stretch; align-self: stretch; gap: 6px; }
.public-nav a, .nav-link-button { min-width: 84px; padding: 0 13px; display: grid; place-items: center; border: 0; border-bottom: 2px solid transparent; color: #5c655f; background: transparent; text-decoration: none; font-size: 14px; }
.public-nav a:hover, .nav-link-button:hover, .public-nav .active { color: var(--vermilion); border-bottom-color: var(--vermilion); }
.header-search { width: min(340px, 30vw); height: 42px; margin-left: auto; padding: 0 13px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.header-search:focus-within { border-color: var(--vermilion); box-shadow: 0 0 0 3px rgba(167,55,43,.1); }
.header-search svg { width: 18px; height: 18px; fill: none; stroke: #7c847e; stroke-width: 1.8; }
.header-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; }
.public-main { max-width: 1440px; padding: 32px clamp(18px, 4vw, 64px) 72px; font-size: 16px; }
.public-intro { min-height: 180px; margin-bottom: 24px; padding: clamp(26px, 4vw, 50px); display: flex; align-items: center; justify-content: space-between; gap: 36px; overflow: hidden; position: relative; border: 1px solid #d8c9b6; border-radius: 22px; background: linear-gradient(118deg, #f8efe2 0%, #eee3d1 58%, #dde5de 100%); box-shadow: var(--shadow-small); }
.public-intro::after { content: "文"; position: absolute; right: 30%; bottom: -62px; color: rgba(60,73,65,.055); font: 700 190px/1 var(--font-serif); transform: rotate(-6deg); }
.public-intro > * { position: relative; z-index: 1; }
.public-intro h1 { max-width: 760px; margin: 8px 0 9px; font: 700 clamp(30px, 4vw, 50px)/1.18 var(--font-serif); letter-spacing: .04em; }
.public-intro p { max-width: 720px; margin: 0; color: #655f58; line-height: 1.8; }
.intro-stats { min-width: 270px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 16px; border: 1px solid rgba(128,105,76,.18); border-radius: 16px; background: rgba(255,253,248,.62); backdrop-filter: blur(8px); }
.intro-stats span { min-width: 78px; display: grid; text-align: center; border-left: 1px solid rgba(128,105,76,.16); }
.intro-stats span:first-child { border-left: 0; }
.intro-stats strong { color: var(--vermilion); font: 700 28px var(--font-serif); }
.intro-stats small { color: #757c77; font-size: 12px; }
.study-guide { margin: 0 0 26px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.84); box-shadow: var(--shadow-small); }
.study-guide .section-heading { margin-bottom: 16px; }
.study-guide .section-heading h2 { margin-top: 3px; }
.guide-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.guide-steps article { min-width: 0; padding: 15px; display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; background: #f4efe6; }
.guide-steps article b { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--jade); font: 700 13px var(--font-serif); }
.guide-steps article span { min-width: 0; display: grid; gap: 4px; }
.guide-steps strong { font-size: 14px; }
.guide-steps small { color: #747b76; font-size: 12px; line-height: 1.55; }
.public-main .library-hero h2 { margin: 6px 0 3px; font: 700 clamp(25px, 2.2vw, 34px)/1.2 var(--font-serif); letter-spacing: .06em; }
.public-footer { min-height: 86px; padding: 22px clamp(18px, 4vw, 64px); display: flex; align-items: center; justify-content: center; gap: 20px; color: #c2cbc5; background: #1f2b26; font-size: 13px; text-align: center; }
.public-footer p { margin: 0; }
.public-footer button { padding: 7px 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 8px; color: white; background: transparent; }
.public-footer button:hover { background: rgba(255,255,255,.08); }
.lesson-drawer { width: min(720px, 100vw); }
.detail-jump { margin: 12px 0 0; padding: 7px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; position: sticky; top: 0; z-index: 2; border: 1px solid #e4dbcf; border-radius: 11px; background: rgba(255,253,248,.94); backdrop-filter: blur(9px); }
.detail-jump a { min-height: 34px; display: grid; place-items: center; border-radius: 7px; color: #68716b; text-decoration: none; font-size: 13px; }
.detail-jump a:hover, .detail-jump a:focus-visible { color: var(--vermilion); background: var(--vermilion-soft); }
.original-text-card { padding: 18px 20px; border: 1px solid #d8cbb9; border-radius: 12px; background: #faf4e9; }
.original-source { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.original-source strong { color: var(--vermilion); font-size: 13px; }
.original-source span { color: #7c746b; font-size: 13px; }
.original-text-card p { margin: 7px 0; color: #343b36; font: 16px/1.95 var(--font-serif); }
.original-text-card small { display: block; margin-top: 14px; padding-top: 11px; border-top: 1px dashed #d9ccba; color: #8c857d; font-size: 12px; line-height: 1.65; }
.copyright-note { padding: 16px; border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; background: #f4eee3; }
.copyright-note strong { font-size: 14px; }
.copyright-note p { margin-top: 6px; color: #6c716d; font-size: 13px; }
.method-list { margin: 0; padding: 0; list-style: none; counter-reset: method; display: grid; gap: 9px; }
.method-list > p { margin: 0; padding: 11px 12px 11px 44px; position: relative; border: 1px solid #dfe3de; border-radius: 10px; color: #4e5953; background: #f7faf8; font-size: 14px; line-height: 1.7; }
.method-list > p::before { counter-increment: method; content: counter(method); width: 24px; height: 24px; position: absolute; left: 11px; top: 11px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--jade); font: 700 12px var(--font-serif); }
.method-list.teaching > p { border-color: #e3d8ca; background: #faf7f1; }
.method-list.teaching > p::before { background: var(--vermilion); }
.method-note { margin-top: 10px !important; color: #858b87 !important; font-size: 12px !important; }
.exercise-list { display: grid; gap: 11px; }
.exercise-list article { padding: 14px; border: 1px solid #e1d9cd; border-radius: 11px; background: #fffefb; }
.exercise-list article > div { display: flex; align-items: center; gap: 8px; }
.exercise-list article > div span { padding: 3px 7px; border-radius: 999px; color: var(--vermilion); background: var(--vermilion-soft); font-size: 11px; }
.exercise-list article > div b { color: #9a9e9a; font-size: 12px; }
.exercise-list article > p { margin-top: 9px; color: #404943; font-size: 14px; }
.exercise-list details { margin-top: 10px; border-top: 1px dashed #e2dbd0; }
.exercise-list summary { padding: 10px 0 2px; color: var(--jade); cursor: pointer; font-size: 13px; }
.exercise-list details div { padding-top: 7px; color: #69716c; font-size: 13px; line-height: 1.7; }
.content-disclaimer { margin-top: 18px; padding: 13px; display: flex; flex-direction: column; border: 1px solid #ddd4c7; border-radius: 10px; background: #f7f3ec; }
.content-disclaimer strong { font-size: 12px; }
.content-disclaimer span { margin-top: 3px; color: #777e79; font-size: 12px; line-height: 1.6; }
.resource-badge.original { color: #8b5d21; border-color: #dec79e; background: #fff5df; }

@media (max-width: 980px) {
  .public-nav { display: none; }
  .public-intro { align-items: flex-start; flex-direction: column; }
  .intro-stats { width: 100%; }
  .guide-steps { grid-template-columns: repeat(2, 1fr); }
  .guide-steps article:last-child { grid-column: 1 / -1; }
}

@media (max-width: 590px) {
  .public-header { min-height: 66px; padding-inline: 14px; }
  .public-brand .brand-copy small { display: none; }
  .public-brand .brand-seal { width: 36px; height: 36px; }
  .header-search { width: auto; min-width: 0; flex: 1; }
  .header-search input::placeholder { color: transparent; }
  .public-main { padding: 18px 14px 48px; }
  .public-intro { min-height: 0; padding: 24px 20px; }
  .public-intro h1 { font-size: 30px; }
  .public-intro p { font-size: 14px; }
  .intro-stats { min-width: 0; padding: 12px 6px; }
  .intro-stats span { min-width: 0; }
  .intro-stats strong { font-size: 23px; }
  .study-guide { padding: 18px 14px; }
  .guide-steps { grid-template-columns: 1fr; }
  .guide-steps article:last-child { grid-column: auto; }
  .detail-jump { overflow-x: auto; grid-template-columns: repeat(5, minmax(66px, 1fr)); }
  .public-footer { align-items: stretch; flex-direction: column; }
  .drawer-footer > * { flex: 1; }
}
