@charset "UTF-8";

:root {
  --paper: #f7faf5;
  --ink: #233e37;
  --muted: #586b62;
  --green: #22634c;
  --green-dark: #184b39;
  --line: #dce6d9;
  --soft: #e8f1df;
  --white: #fffefa;
  --orange: #b75e2c;
  --gutter: clamp(20px, 3vw, 80px);
  --page-width: 2240px;
  --card-tint: #fff0e5;
  --card-line: #efddca;
  --card-accent: #b75e2c;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}
button, a { touch-action: manipulation; }
button { cursor: pointer; }
form { margin: 0; }
p { margin-top: 0; line-height: 1.85; }
h1, h2, h3 { margin-top: 0; font-weight: 750; overflow-wrap: anywhere; }
h1 { font-size: clamp(34px, 3vw, 54px); line-height: 1.4; letter-spacing: -.03em; }
h2 { font-size: clamp(26px, 2vw, 34px); line-height: 1.5; }
h3 { font-size: 23px; line-height: 1.5; }

.site-top-inner, .site-header, .shell, .site-footer {
  width: min(calc(100% - var(--gutter) * 2), var(--page-width));
  margin-inline: auto;
}
.site-top { border-bottom: 1px solid var(--line); background: var(--soft); }
.site-top-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; min-height: 56px; padding-block: 6px; }
.site-top-welcome { margin: 0; color: var(--green-dark); font-size: 16px; }
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; font-size: 30px; font-weight: 800; line-height: 1.4; }
.brand img { flex-shrink: 0; }
.brand small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 4px; letter-spacing: .04em; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
.site-header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 18px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 650;
  white-space: nowrap;
}
.site-header nav img { flex-shrink: 0; }
.site-header .nav-gift { display: inline-grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; font-size: 28px; line-height: 1; }
.site-header nav a:hover, .site-header nav a[aria-current] { background: var(--soft); color: var(--green-dark); }
.account { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-width: 0; max-width: 100%; margin-left: auto; font-size: 16px; }
.account-profile { display: inline-flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; font-weight: 650; }
.account-profile:hover, .account-profile[aria-current] { color: var(--green); }
.account-avatar { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border: 1px solid #decfa6; background: #fff0c8; color: #805218; border-radius: 50%; }
.account-name { max-width: 10em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-profile-label { flex-shrink: 0; margin-left: 4px; color: var(--green); font-size: 15px; font-weight: 500; }
.site-top-link, .site-top-login { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 8px; color: var(--green-dark); white-space: nowrap; }
.account-profile:hover .account-profile-label, .site-top-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-top-login { padding-inline: 16px; border-radius: 10px; background: var(--green); color: #fff; font-weight: 650; }
.site-top-login:hover { background: var(--green-dark); }
.account form { flex-shrink: 0; }
.account .text-button { min-height: 44px; padding-block: 6px; }
.text-button { min-height: 48px; padding: 10px 8px; border: 0; background: none; color: var(--muted); font-size: 16px; }
.text-button:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.shell { min-height: 65vh; padding-bottom: 88px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 56px;
  padding: 13px 26px;
  border: 2px solid var(--green);
  border-radius: 16px;
  background: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 3px 0 #174733;
}
.button:hover { background: var(--green-dark); border-color: var(--green-dark); }
.button:active { box-shadow: none; transform: translateY(2px); }
.button.small { padding: 10px 20px; min-height: 52px; }
.button > span[aria-hidden] { font-size: 23px; line-height: 1; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 24px;
  min-height: 440px;
  padding: clamp(32px, 3.5vw, 64px);
  margin-top: 28px;
  border: 1px solid #dde8d2;
  border-radius: 32px;
  background: radial-gradient(ellipse at 90% 0%, #fdf0cc 0, transparent 48%), #edf4e5;
}
.hero-copy { min-width: 0; }
.eyebrow { margin-bottom: 14px; color: var(--green); font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.hero h1 { margin-bottom: 22px; font-size: clamp(42px, 3.7vw, 70px); line-height: 1.25; }
.hero h1 span { color: var(--green); }
.lead { font-size: 20px; color: var(--muted); line-height: 1.9; }
.hero .lead { margin-bottom: 28px; }
.hero-art { position: relative; width: min(100%, 560px); height: 350px; justify-self: center; }
.orbit { position: absolute; left: 17%; top: 3%; width: 300px; height: 300px; border: 2px dashed #bfceaa; border-radius: 50%; transform: rotate(-30deg); }
.orbit-two { left: 7%; top: 16%; width: 380px; height: 230px; transform: rotate(-20deg); }
.art-bubble { position: absolute; display: grid; place-items: center; border: 2px solid #ffffffb3; border-radius: 32px; box-shadow: 0 12px 0 #263d3808; }
.art-bubble img { width: 76%; height: 76%; }
.art-book { left: 10%; top: 45px; width: 190px; height: 200px; background: #ffe5ae; transform: rotate(-10deg); }
.art-globe { left: 53%; top: 5px; width: 158px; height: 168px; background: #d7e9ce; transform: rotate(8deg); }
.art-math { left: 56%; top: 192px; width: 124px; height: 130px; background: #dceaf6; transform: rotate(12deg); }
.spark { position: absolute; color: #a96920; font-size: 36px; }
.spark-one { left: 10%; top: -8px; }
.spark-two { right: 8%; top: 160px; }
.art-note { position: absolute; left: 5%; bottom: 0; padding: 8px 16px; border-radius: 10px; background: #fff7d9; color: #675a30; font-size: 15px; transform: rotate(-4deg); }
.study-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding: 26px 32px; margin: 20px 0 56px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.study-strip div { display: flex; align-items: center; gap: 14px; }
.study-strip strong { color: var(--green); font-size: 36px; font-weight: 800; line-height: 1.4; }
.study-strip span { color: var(--muted); font-size: 16px; }
.study-strip p, .study-strip > a { margin: 0 0 0 auto; color: var(--muted); font-size: 16px; }
.study-strip > a { display: inline-flex; align-items: center; min-height: 48px; color: var(--green); font-weight: 650; }
.incentive-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px; padding: 18px 28px; margin: 20px 0 8px; border: 1px solid var(--card-line); border-radius: 22px; background: linear-gradient(135deg, var(--card-tint), var(--white)); color: var(--ink); font-size: 16px; text-decoration: none; }
.incentive-strip .incentive-item strong { color: var(--card-accent); font-size: 26px; font-weight: 800; margin-right: 4px; }
.incentive-strip .incentive-go { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; color: var(--card-accent); font-weight: 650; }
.incentive-strip:hover .incentive-go { text-decoration: underline; }

/* 学习总览卡：首页与「我的学习」共用；配色复用 module-card 的 color-* 变量。 */
.overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0 0 34px; }
.overview-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--card-line);
  border-bottom-width: 4px;
  border-radius: 26px;
  background: var(--card-tint);
  overflow-wrap: anywhere;
}
.overview-card header { display: flex; align-items: center; gap: 12px; }
.overview-card header img { flex-shrink: 0; padding: 6px; background: #fff9; border-radius: 16px; }
.overview-card h3 { margin: 0; }
.overview-nums { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.overview-nums strong { display: block; color: var(--card-accent); font-size: 34px; font-weight: 800; line-height: 1.3; }
.overview-nums span { color: var(--muted); font-size: 15px; }
.overview-week { margin: 0; color: var(--card-accent); font-size: 15px; font-weight: 650; }
.overview-footnote { margin: 0; color: var(--muted); font-size: 15px; }
.overview-latest { display: block; padding: 12px 14px; border-radius: 16px; background: #fffa; }
.overview-latest span { display: block; font-weight: 650; }
.overview-latest small { color: var(--muted); }
.overview-latest:hover span { color: var(--card-accent); }
.overview-go { margin-top: auto; color: var(--card-accent); font-weight: 650; }
.overview-more { margin: 0 0 56px; text-align: center; }
.overview-more a { color: var(--green); font-weight: 650; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; }
.section-heading p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.section-heading .eyebrow { margin: 0 0 8px; color: var(--green); font-size: 15px; }
/* 标题右侧的特殊入口（挑战题库）：品牌绿药丸，标识「跨学科特殊入口」。 */
.section-aside { display: flex; align-items: center; }
.special-entry {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px 9px 11px;
  border: 1px solid #cddfc4;
  border-bottom-width: 3px;
  border-radius: 999px;
  background: var(--white);
  color: var(--green);
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 4px 10px #233e370d;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.special-entry:hover { transform: translateY(-2px); box-shadow: 0 8px 18px #233e3718; background: #f6faf2; }
.special-entry img { flex-shrink: 0; padding: 5px; border-radius: 50%; background: var(--soft); }
.special-entry .arrow { font-size: 19px; transition: transform .15s ease; }
.special-entry:hover .arrow { transform: translateX(3px); }
@media (max-width: 720px) { .section-aside { justify-content: flex-start; } }

/* 专题区背景面板：让入口区与前后区块拉开层次，卡片在色带上更跳。 */
.modules-section { padding: 30px 32px 34px; margin: 6px 0 46px; border: 1px solid #e0e9d8; border-radius: 32px; background: #f1f6ea; }
.modules-section .module-grid { margin-bottom: 0; }
@media (max-width: 720px) { .modules-section { padding: 22px 18px 26px; } }

.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-bottom: 64px; }

/* 网格内的专题分组：组头行占满一整行，组内卡紧随其后（如题库组）。 */
.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--card-line);
  border-bottom-width: 4px;
  border-radius: 26px;
  background: var(--card-tint);
  transition: transform .18s ease, box-shadow .18s ease;
  overflow-wrap: anywhere;
}
.module-card:hover { transform: translateY(-5px); box-shadow: 0 12px 26px #233e3710; }
.module-card img { flex-shrink: 0; padding: 8px; margin-bottom: 20px; background: #fff9; border-radius: 23px; }
.module-meta { position: absolute; top: 30px; right: 24px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.module-meta > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fffa; color: var(--card-accent); font-size: 22px; }
.module-card h3 { margin-bottom: 10px; }
.module-card p { flex: 1; margin-bottom: 24px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.color-chinese { --card-tint: #fff0e5; --card-line: #efddca; --card-accent: #b75e2c; }
.color-math { --card-tint: #eaf1fd; --card-line: #d3dff1; --card-accent: #426eac; }
.color-english { --card-tint: #f3f2d9; --card-line: #e3e2bd; --card-accent: #77712a; }
.color-science { --card-tint: #e8f3e8; --card-line: #cfe2ce; --card-accent: #397648; }
.color-geography { --card-tint: #e7f3f7; --card-line: #cbe1e9; --card-accent: #2d7886; }
.color-history { --card-tint: #f7ebdf; --card-line: #e9d7c2; --card-accent: #986332; }
.tag { display: inline-block; max-width: 100%; padding: 5px 11px; border: 1px solid #ffffffa3; border-radius: 9px; background: #fff9; color: #4c6252; font-size: 14px; font-weight: 550; line-height: 1.7; overflow-wrap: anywhere; }

.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; padding: 24px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 22px; background: #edf2e8; }
.filter-field { flex: 1 1 180px; min-width: 0; }
.filter-field label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 16px; font-weight: 600; }
input, select, textarea { width: 100%; min-width: 0; min-height: 56px; padding: 12px 15px; border: 1.5px solid #bacbb6; border-radius: 12px; background: var(--white); color: var(--ink); line-height: 1.6; }
input:hover, select:hover, textarea:hover { border-color: #829e79; }
input::placeholder, textarea::placeholder { color: #687869; opacity: 1; }
input[type="checkbox"] { width: 26px; height: 26px; min-height: 26px; margin: 0 8px 0 0; vertical-align: middle; accent-color: var(--green); }
textarea { resize: vertical; line-height: 1.9; }
.back:hover, .empty > a:not(.button):hover { text-decoration: underline; text-underline-offset: 6px; }
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.book-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 28px; border: 1px solid var(--line); border-top: 5px solid var(--card-line); border-radius: 22px; background: var(--white); overflow-wrap: anywhere; transition: border-color .18s, box-shadow .18s; }
.book-card:hover { border-color: var(--card-accent); box-shadow: 0 8px 22px #233e370b; }
.book-icon { padding: 5px; margin-bottom: 18px; background: var(--card-tint); border-radius: 16px; }
.book-card .tag { background: var(--card-tint); }
.book-card h3 { margin: 18px 0 12px; font-size: 23px; }
.book-card p { flex: 1; margin-bottom: 22px; color: var(--muted); font-size: 16px; }
.book-action { display: flex; justify-content: space-between; align-items: center; align-self: stretch; gap: 16px; min-height: 48px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--green); font-size: 17px; font-weight: 650; }
.book-action > span { font-size: 25px; }
.empty { grid-column: 1 / -1; padding: 54px 24px; border: 1px dashed #b7c9ad; border-radius: 22px; background: #eef3e7; text-align: center; }
.empty p { max-width: 44em; margin-inline: auto; color: var(--muted); }
.empty > a:not(.button) { display: inline-flex; align-items: center; min-height: 48px; color: var(--green); font-weight: 650; }
.back { display: inline-flex; align-items: center; min-height: 48px; margin: 24px 0; padding-block: 8px; color: var(--green); font-size: 17px; font-weight: 600; }
.page-heading { margin: 24px 0 36px; }
.page-heading h1 { margin-bottom: 16px; }
.page-heading p { color: var(--muted); }
.page-heading .eyebrow { color: var(--green); }
/* 模块详情页：标题卡（渐变底）+ 学习册分带，区域以背景区分。 */
.page-heading-compact {
  margin: 18px 0 20px; padding: 20px 26px;
  background:
    radial-gradient(ellipse at 92% 8%, #fff3d6, transparent 60%),
    linear-gradient(120deg, #f1f8ea, #eaf3e0);
  border: 1px solid #cfe3c0; border-radius: 20px;
}
.page-heading-compact h1 { margin-bottom: 8px; font-size: clamp(28px, 2.6vw, 40px); }
.module-books { padding: 20px 24px 24px; border: 1px solid var(--line); border-radius: 22px; background: #fbfdf9; }
.module-books .section-heading { margin: 0 0 10px; }
.module-books .book-grid { margin-top: 14px; }
/* 语文/数学模块页的教材落地卡：与英语模块页分区风格统一。 */
.module-entry { padding: 24px 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 8px 20px #233e3708; }
.module-entry h2 { margin: 0 0 10px; font-size: clamp(22px, 2.2vw, 28px); }
.module-entry p { margin: 0 0 20px; max-width: 46em; color: var(--muted); line-height: 1.8; }
.library-layout { display: grid; grid-template-columns: clamp(250px, 20vw, 330px) minmax(0, 1fr); gap: 32px; align-items: start; }
.library-layout > section { min-width: 0; }
.unit-nav { position: sticky; top: 24px; max-height: calc(100dvh - 48px); padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #edf2e5; overflow-y: auto; }
.unit-nav h2 { margin-bottom: 16px; font-size: 23px; }
.unit-nav a { display: block; min-height: 52px; padding: 12px 14px; margin-block: 4px; border-radius: 12px; font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.unit-nav a[aria-current], .unit-nav a:hover { background: var(--green); color: #fff; }
.unit-nav .unit-dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--c, #609cbd); vertical-align: baseline; }
.unit-nav .unit-count { float: right; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.unit-nav a[aria-current="page"] .unit-count { color: var(--ink); font-weight: 700; }
.content-list { border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.content-row { display: flex; align-items: center; gap: 24px; min-width: 0; padding: 28px; border-bottom: 1px solid var(--line); }
.content-row:first-child { border-radius: 21px 21px 0 0; }
.content-row:last-child { border-bottom: 0; border-radius: 0 0 21px 21px; }
.content-row:only-child { border-radius: 21px; }
.content-row:hover { background: #eef4e7; }
.content-row > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.content-row > span[aria-hidden] { color: var(--green); font-size: 26px; }
.row-number { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 15px; background: var(--soft); color: var(--green); font-size: 22px; font-weight: 750; }
.content-row h3 { margin: 8px 0; }
.content-row p { margin: 0; color: var(--muted); font-size: 17px; }
.muted, .content-row small { color: var(--muted); font-size: 15px; }
.content-row small { display: inline-block; margin-top: 10px; }

.reader-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 23vw, 400px); gap: 32px; align-items: start; max-width: 1800px; margin-inline: auto; }
.reader { min-width: 0; padding: clamp(28px, 3vw, 56px); border: 1px solid var(--line); border-radius: 26px; background: var(--white); overflow-wrap: anywhere; }
.reader h1 { font-size: clamp(32px, 2.8vw, 46px); }
.reader-summary { padding: 24px 28px; border-radius: 18px; background: #edf3e3; font-size: 22px; line-height: 1.9; }
.prose { max-width: 52rem; font-size: 21px; line-height: 2.05; white-space: normal; overflow-wrap: anywhere; }
.reading-section { padding-top: 28px; margin-top: 36px; border-top: 1px solid var(--line); }
.reading-section h2 { font-size: 27px; }
.source-note { margin: 36px 0 0; color: var(--muted); font-size: 14px; }
.progress-panel { position: sticky; top: 24px; padding: 28px; border: 1px solid #d5e3c9; border-radius: 24px; background: #eaf2df; }
.progress-panel h2 { font-size: 27px; }
.progress-panel .button { width: 100%; }
.progress-panel .muted { display: inline-flex; align-items: center; min-height: 48px; }
.stack-form { display: grid; gap: 22px; }
.stack-form label { display: block; min-height: 30px; margin-bottom: 8px; font-size: 18px; font-weight: 600; }
.stack-form:has(input[type="checkbox"]) label[for="id_bookmarked"] { display: inline-flex; align-items: center; min-height: 44px; margin-right: 10px; }
.stack-form p { margin: 0; }
.stack-form .helptext, .stack-form ul:not(.errorlist) { color: var(--muted); font-size: 15px; line-height: 1.8; }
.stack-form .helptext { display: block; margin-top: 8px; }
.stack-form ul { padding-left: 24px; }
.errorlist { padding: 0; margin: 8px 0; color: #a33425; list-style: none; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.notice { padding: 18px 24px; margin-top: 24px; border: 1px solid #c3d9b7; border-radius: 16px; background: #e2f0dc; color: var(--green-dark); }
.auth-card { width: 100%; max-width: 600px; padding: 40px; margin: 56px auto; border: 1px solid var(--line); border-top: 6px solid #b7d49d; border-radius: 28px; background: var(--white); }
.auth-card h1 { font-size: 34px; }
.auth-card > p { color: var(--muted); font-size: 18px; }
.auth-card > .muted { display: inline-flex; align-items: center; min-height: 44px; margin-top: 24px; font-size: 15px; }
.auth-card .back { margin-bottom: 0; }
.auth-actions { display: grid; gap: 14px; margin-top: 26px; }
.auth-actions .button { width: 100%; }
.auth-register { background: #eef5e3; border-color: #a3c188; color: #2f6d4f; }
.auth-register:hover { background: #e2edcf; border-color: var(--green); color: var(--green-dark, #2f6d4f); }
.tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.tabs a { display: inline-flex; align-items: center; min-height: 52px; padding: 10px 22px; border: 1px solid #cbdac4; border-radius: 16px; background: var(--white); font-size: 18px; font-weight: 600; }
.tabs a:hover, .tabs a[aria-current] { border-color: var(--green); background: var(--green); color: #fff; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 24px; margin: 36px 0; font-size: 17px; }
.pagination a { display: inline-flex; align-items: center; min-height: 52px; padding: 10px 18px; border-radius: 12px; background: var(--soft); color: var(--green); font-weight: 600; }
.pagination a:hover { background: #dbe8cc; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { z-index: 100; top: 12px; left: 12px; padding: 12px 20px; border-radius: 10px; background: var(--white); }

@media (min-width: 1680px) {
  .module-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1199px) {
  .hero { gap: 12px; padding: 36px 28px; }
  .hero .lead { font-size: 18px; }
  .hero-art { height: 320px; }
  .art-book { left: 2%; width: 160px; height: 175px; }
  .art-globe { left: 53%; width: 130px; height: 145px; }
  .art-math { left: 55%; top: 182px; width: 110px; height: 115px; }
  .orbit { left: 6%; width: 260px; height: 260px; }
  .orbit-two { left: 0; width: 310px; height: 210px; }
  .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .module-card { padding: 24px; }
  .overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .overview-card { padding: 22px; }
  .module-meta { top: 26px; right: 20px; gap: 6px; }
  .module-meta > span { width: 28px; height: 28px; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; }
  .reader-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; }
  .reader { padding: 28px; }
  .progress-panel { padding: 24px; }
}

@media (max-width: 1099px) {
  .site-header { gap: 16px; }
  .site-header nav { flex: 1 0 100%; justify-content: center; }
  .site-header nav a { gap: 8px; padding-inline: 14px; }
}

@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr .8fr; padding: 32px 24px; }
  .hero h1 { font-size: 42px; }
  .hero .lead br { display: none; }
  .hero-art { height: 300px; }
  .art-book { left: 0; top: 55px; width: 140px; height: 155px; }
  .art-globe { left: 50%; width: 110px; height: 125px; }
  .art-math { left: 55%; width: 94px; height: 100px; }
  .orbit { left: 0; width: 220px; height: 250px; }
  .orbit-two { width: 240px; height: 210px; }
  .art-note { left: 0; font-size: 13px; }
  .spark-two { right: 0; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-card img { width: 84px; height: 84px; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-strip { gap: 16px 28px; padding: 24px; }
  .study-strip p, .study-strip > a { flex-basis: 100%; margin-left: 0; }
  .reader-layout, .library-layout { grid-template-columns: minmax(0, 1fr); }
  .unit-nav { position: static; max-height: none; }
  .unit-nav a { display: inline-block; margin: 4px 4px 4px 0; padding: 10px 14px; }
  .progress-panel { position: static; }
}

@media (max-width: 759px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-art { display: none; }
}

@media (max-width: 599px) {
  :root { --gutter: 18px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .site-header { gap: 18px 12px; padding-block: 18px; }
  .brand { gap: 8px; font-size: 25px; }
  .brand img { width: 46px; height: 46px; }
  .brand small { max-width: 13em; font-size: 11px; letter-spacing: 0; }
  .site-top-welcome { display: none; }
  .account { flex: 1; gap: 8px; }
  .account-profile { margin-right: auto; }
  .account-name { max-width: 4em; font-size: 16px; }
  .account-profile { gap: 6px; }
  .account-profile-label { margin-left: 0; font-size: 14px; }
  .site-top-link, .account .text-button { font-size: 15px; padding-inline: 4px; }
  .site-header nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; }
  .site-header nav:has(> :last-child:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-header nav a { flex-direction: column; gap: 3px; min-height: 76px; padding: 8px 4px; border-radius: 14px; font-size: 16px; }
  .site-header nav a:nth-child(n+5) { grid-column: span 2; flex-direction: row; min-height: 52px; gap: 8px; }
  .site-header nav a:last-child:nth-child(5) { grid-column: 1 / -1; min-height: 48px; padding-block: 8px; }
  .site-header nav img { width: 30px; height: 30px; }
  .shell { padding-bottom: 56px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 30px 24px; margin-top: 20px; border-radius: 24px; }
  .hero h1 { font-size: clamp(34px, 8.5vw, 46px); }
  .hero-art { display: none; }
  .hero .lead { font-size: 18px; }
  .lead { font-size: 18px; }
  .eyebrow { font-size: 14px; letter-spacing: .04em; }
  .button { min-height: 54px; padding-inline: 22px; }
  .study-strip { gap: 14px 24px; padding: 20px; margin-bottom: 38px; border-radius: 18px; }
  .study-strip div { gap: 10px; }
  .study-strip strong { font-size: 30px; }
  .study-strip span, .study-strip p, .study-strip > a { font-size: 15px; }
  .section-heading { flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
  .section-heading p { font-size: 15px; }
  .section-heading > p { margin: 0; }
  .module-grid { gap: 14px; margin-bottom: 40px; }
  .module-card { padding: 22px 18px; border-radius: 22px; }
  .module-card h3 { font-size: 21px; }
  .module-card p { font-size: 16px; }
  .module-meta { top: 22px; right: 16px; font-size: 14px; }
  .module-meta > span { display: none; }
  .book-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .book-card { padding: 24px; }
  .book-card h3 { font-size: 22px; }
  .filters { gap: 14px; padding: 18px; border-radius: 18px; }
  .filter-field { flex: 1 1 calc(50% - 7px); }
  .filters .button { flex: 1 1 50%; }
  .filter-field label { font-size: 15px; }
  .back { margin-block: 16px; font-size: 16px; }
  .page-heading { margin: 20px 0 28px; }
  .page-heading h1 { font-size: 32px; }
  .unit-nav { padding: 20px; border-radius: 20px; }
  .unit-nav a { font-size: 16px; }
  .content-row { gap: 14px; padding: 22px 18px; }
  .row-number { flex-basis: 40px; height: 40px; border-radius: 12px; font-size: 19px; }
  .content-row h3 { font-size: 21px; }
  .content-row p { font-size: 17px; }
  .reader { padding: 26px 22px; border-radius: 22px; }
  .reader h1 { font-size: 32px; }
  .reader-summary { padding: 18px; font-size: 20px; }
  .prose { font-size: 20px; line-height: 2; }
  .reading-section h2 { font-size: 25px; }
  .progress-panel { padding: 24px; }
  .auth-card { padding: 30px 24px; margin-block: 30px; border-radius: 24px; }
  .auth-card h1 { font-size: 30px; }
  .tabs { gap: 10px; }
  .tabs a { flex: 1 1 calc(50% - 5px); justify-content: center; padding-inline: 14px; font-size: 17px; }
  .pagination { gap: 12px; font-size: 16px; }
  .pagination a { padding-inline: 14px; }
  .site-footer { font-size: 13px; }
}

@media (max-width: 479px) {
  .module-grid { grid-template-columns: minmax(0, 1fr); }
  .module-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 16px; align-items: start; padding: 22px 18px; }
  .module-card img { grid-row: 1 / 5; width: 76px; height: 76px; margin: 4px 0 0; padding: 6px; border-radius: 20px; }
  .module-meta { position: static; grid-column: 2; font-size: 14px; }
  .module-card h3 { margin: 0; }
  .module-card p { margin: 4px 0 10px; }
  .module-card .tag { justify-self: start; grid-column: 2; }
}

@media (max-width: 359px) {
  :root { --gutter: 14px; }
  .brand { font-size: 23px; }
  .brand img { width: 40px; height: 40px; }
  .brand small { font-size: 10px; }
  .account-avatar { display: none; }
  .account-name { max-width: 3em; }
  .account .button { padding-inline: 10px; }
  .hero { padding-inline: 20px; }
  .filter-field { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* 全站降级：platform.css 全局加载，这里同时管住各模块 CSS 的动效 */
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .module-card:hover, .button:active { transform: none; }
}

/* 点读（浏览器 TTS）与连读 */
.tts-parts { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.tts-parts .part { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 96px; min-height: 60px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.tts-parts .part b { font-size: 20px; }
.tts-parts .part i { font-style: normal; font-size: 13px; color: var(--muted); }
.tts-parts .part:active { transform: scale(.97); }
.tts-bar { display: flex; align-items: center; gap: 14px; margin: 10px 0; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 14px; }
.tts-bar p { margin: 0; font-size: 15px; }
.tts-active { background: var(--orange-soft, #fff4e0); }
.tts-playing { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 8px; background: var(--soft, #f2f5fa); }
@media print {
  .tts-parts, .tts-bar, [data-say] { display: none !important; }
}

/* 场景词卡（词典驱动） */
.word-card { text-align: center; padding: 18px 16px; margin: 4px 0 18px; background: var(--soft, #f2f5fa); border-radius: 18px; }
.word-emoji { font-size: 52px; margin: 0 0 4px; }
.word-headline { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 0; }
.word-en { font-size: clamp(34px, 4vw, 50px); font-weight: 900; letter-spacing: 2px; }
.word-ipa { color: #77739a; font-size: 20px; }
.word-zh { font-size: 21px; margin: 10px 0 0; }
.word-pos { color: var(--muted); font-size: 15px; margin: 4px 0 0; }
.word-source-state { font-size: 13px; margin: 10px 0 0; }
.word-related { display: flex; flex-wrap: wrap; gap: 10px; }
.word-related .tag { display: inline-block; padding: 8px 14px; font-size: 16px; }
.word-related .rel-tag { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 3px; margin-right: 2px; border-radius: 5px; background: #4c6252; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; vertical-align: 2px; }
.word-pills { display: flex; flex-wrap: wrap; gap: 10px; }

/* 打印版式：阅读页单栏、去交互装饰、防断页（图示控件隐藏见 figures.css）。 */
@media print {
  :root { --line: #ccc; }
  body { background: #fff; font-size: 13px; }
  .site-top, .site-header, .site-footer, .skip-link, .progress-panel, .back,
  .tts-parts, .tts-bar, [data-say], .chain-page, .account, .notice { display: none !important; }
  .shell { padding: 0; max-width: none; }
  .reader-layout { display: block; }
  .reader, .word-card, .reading-section { box-shadow: none; border-color: #ccc; break-inside: avoid; page-break-inside: avoid; }
  .reader h1 { font-size: 22px; }
  .word-en { font-size: 30px; color: #000; }
  .word-emoji { font-size: 36px; }
  .prose { font-size: 13px; line-height: 1.8; }
  .reading-section { margin-top: 14px; }
  .source-note { font-size: 11px; }
  .book-grid, .content-list { display: block; }
  .book-card, .content-row { border: 1px solid #ccc; margin-bottom: 8px; }
  a[href^="http"]::after { content: ''; }
}

/* 首页书架分区：教材同步 / 主题探索 */
/* 书架区白底面板：与专题区绿带交替，页面下半部有节奏。 */
.books-section { padding: 30px 32px 42px; margin: 0 0 46px; border: 1px solid var(--line); border-radius: 32px; background: var(--white); box-shadow: 0 8px 20px #233e3706; }
.books-section .filters { margin-bottom: 24px; }
@media (max-width: 720px) { .books-section { padding: 22px 18px 28px; } }

/* 首页专题单选筛选 chips */
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.area-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 15px; font-weight: 700; }
.area-chips a i { font-style: normal; font-size: 13px; color: #9aa79f; }
.area-chips a:hover { color: var(--green); border-color: var(--green); }
.area-chips a.on { border-color: var(--green); background: #eaf4ef; color: var(--green); }

/* 实景图片块：随导入内容本地存储 */
.reading-image { margin: 0 0 26px; }
.reading-image img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 20px; }
.reading-image figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; text-align: center; }
