/* ==========================================================================
   启明分级阅读馆 · 设计系统
   0—12 岁中英双语分级阅读 · 暖纸感 / 克制配色 / 清晰动线
   ========================================================================== */

/* ---------- 1. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; border-radius: 6px; }
::selection { background: #FFE0CB; color: var(--ink); }

/* ---------- 2. 设计令牌 ---------- */
:root {
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei",
          system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;

  /* 表面 */
  --bg: #FFFCF7;
  --bg-2: #FFF8EE;
  --surface: #FFFFFF;
  --surface-2: #FFF9F1;
  --surface-3: #FDF3E7;

  /* 文字 */
  --ink: #1A2B3C;
  --ink-2: #56697C;
  --ink-3: #8A9AA9;
  --ink-4: #AEBAC6;

  /* 描边 */
  --line: #F0E7DA;
  --line-2: #E5D9C8;
  --line-3: #D8C9B4;

  /* 品牌 */
  --brand: #FF7A3D;
  --brand-deep: #E85C1F;
  --brand-ink: #A83E0C;
  --brand-soft: #FFF1E7;
  --brand-ring: #FFC29B;

  /* 功能色 */
  --mint: #2FB89B;
  --mint-soft: #E7F7F2;
  --blue: #3B9DE8;
  --blue-soft: #E9F4FE;
  --amber: #E8A317;
  --amber-soft: #FEF4E0;
  --rose: #ED6E92;
  --rose-soft: #FDEDF2;
  --violet: #8B6FD1;
  --violet-soft: #F2EEFC;

  /* 圆角 */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  /* 阴影 */
  --sh-1: 0 1px 2px rgba(26,43,60,.04), 0 2px 6px rgba(26,43,60,.04);
  --sh-2: 0 2px 4px rgba(26,43,60,.03), 0 8px 22px rgba(26,43,60,.07);
  --sh-3: 0 4px 10px rgba(26,43,60,.05), 0 20px 48px rgba(26,43,60,.11);
  --sh-4: 0 10px 24px rgba(26,43,60,.08), 0 36px 80px rgba(26,43,60,.16);

  /* 间距（8pt 网格） */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 88px;

  --wrap: 1180px;
  --header-h: 74px;

  /* 档位色阶（成长光谱） */
  --t-a0:  #E8739A;
  --t-a2:  #FF8C42;
  --t-a4:  #E9B22C;
  --t-g1:  #7BBE4E;
  --t-g2:  #29B39A;
  --t-g3:  #3B9DE8;
  --t-g4:  #6274EA;
  --t-g5:  #9A66D2;
  --t-g6:  #C05499;
  --t-adv: #4E6274;
}

/* ---------- 3. 通用工具 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 32px; }
.section { padding: var(--s9) 0; }
.section--tight { padding: var(--s8) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-deep);
  background: var(--brand-soft); padding: 7px 14px; border-radius: var(--r-full);
}
.eyebrow--plain { background: none; padding: 0; color: var(--ink-3); }

.h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.14; letter-spacing: -.02em; font-weight: 900; }
.h2 { font-size: clamp(25px, 3.2vw, 36px); line-height: 1.24; letter-spacing: -.015em; font-weight: 850; }
.h3 { font-size: 19px; line-height: 1.4; font-weight: 800; letter-spacing: -.01em; }
.lede { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

.section-head { max-width: 720px; margin-bottom: var(--s7); }
.section-head .h2 { margin: 16px 0 12px; }
.section-head p { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }

/* ---------- 4. 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(255,252,247,.86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(26,43,60,.05);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: var(--s5); }

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(145deg, #FF9A5C, #F2652A);
  box-shadow: 0 4px 12px rgba(242,101,42,.32), inset 0 1px 0 rgba(255,255,255,.4);
  display: grid; place-items: center; color: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 17.5px; font-weight: 900; letter-spacing: -.01em; }
.brand-text small { font-size: 11px; color: var(--ink-3); letter-spacing: .02em; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 9px 15px; border-radius: var(--r-full);
  font-size: 14.5px; font-weight: 650; color: var(--ink-2);
  transition: background .18s, color .18s;
}
.site-nav a:hover { background: var(--surface-3); color: var(--ink); }
.site-nav a.is-active { color: var(--brand-ink); background: var(--brand-soft); }

.header-cta {
  padding: 10px 20px; border-radius: var(--r-full);
  background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 750;
  transition: transform .18s, box-shadow .18s, background .18s;
  flex-shrink: 0;
}
.header-cta:hover { background: #0F1E2C; transform: translateY(-1px); box-shadow: var(--sh-2); }

.nav-toggle { display: none; }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--r-full);
  font-size: 15.5px; font-weight: 750; letter-spacing: .01em;
  transition: transform .18s cubic-bezier(.34,1.4,.64,1), box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.975); }
.btn--primary {
  background: linear-gradient(150deg, #FF8B4D, #F0601F); color: #fff;
  box-shadow: 0 4px 14px rgba(240,96,31,.3), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(240,96,31,.36); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #0F1E2C; transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--line-3); background: var(--surface-2); transform: translateY(-2px); }
.btn--quiet { background: var(--surface-3); color: var(--ink-2); }
.btn--quiet:hover { background: var(--line); color: var(--ink); }
.btn--lg { padding: 17px 32px; font-size: 16.5px; }
.btn--sm { padding: 9px 17px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding: var(--s8) 0 var(--s9); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 720px; z-index: -1;
  background:
    radial-gradient(48% 60% at 18% 30%, rgba(255,171,110,.30), transparent 68%),
    radial-gradient(42% 52% at 82% 18%, rgba(122,196,235,.26), transparent 66%),
    radial-gradient(36% 48% at 62% 78%, rgba(160,225,196,.22), transparent 68%);
  filter: blur(6px);
}
.hero .wrap { display: grid; grid-template-columns: 1.06fr .94fr; gap: var(--s8); align-items: center; }
.hero-copy .h1 { margin: 22px 0 20px; }
.hero-copy .h1 em {
  font-style: normal; position: relative; white-space: nowrap;
  color: var(--brand-deep);
}
.hero-copy .h1 em::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .3em; z-index: -1;
  background: linear-gradient(90deg, rgba(255,197,143,.85), rgba(255,222,168,.55));
  border-radius: 4px;
}
.hero-lede { font-size: 18px; line-height: 1.78; color: var(--ink-2); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-facts { display: flex; gap: var(--s6); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); }
.hero-fact dt { font-size: 27px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.hero-fact dd { font-size: 13px; color: var(--ink-3); margin-top: 3px; font-weight: 600; }

/* Hero 右侧：成长阶梯 */
.stair {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--s5);
  box-shadow: var(--sh-3);
  display: grid; gap: 10px;
}
.stair-top {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 4px 10px 14px;
}
.stair-top b { font-size: 15px; font-weight: 800; }
.stair-top span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.stair-row {
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px;
  padding: 15px 16px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: transform .22s cubic-bezier(.34,1.3,.64,1), box-shadow .22s, border-color .22s;
  text-align: left; width: 100%;
}
.stair-row:hover { transform: translateX(4px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.stair-row:nth-child(2) { margin-right: 22px; }
.stair-row:nth-child(3) { margin-right: 11px; }
.stair-ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; flex-shrink: 0;
}
.stair-row b { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
.stair-row p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.stair-count { font-size: 12.5px; font-weight: 800; color: var(--ink-3); white-space: nowrap; }
.stair-foot {
  margin-top: 6px; padding: 14px 16px; border-radius: var(--r-md);
  background: linear-gradient(135deg, #FFF3E8, #FFF9F2);
  border: 1px dashed var(--line-3);
  font-size: 13px; color: var(--ink-2); line-height: 1.6;
}
.stair-foot b { color: var(--brand-ink); }

/* ---------- 7. 形式三档 ---------- */
.forms { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.form-card {
  position: relative; overflow: hidden;
  padding: var(--s6) var(--s5) var(--s5);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
  transition: transform .22s, box-shadow .22s;
}
.form-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.form-card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--tone, var(--brand));
}
.form-card .form-ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tone) 14%, #fff);
  color: var(--tone); margin-bottom: var(--s4);
}
.form-card .form-age { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; color: var(--tone); text-transform: uppercase; }
.form-card h3 { font-size: 20px; font-weight: 850; margin: 7px 0 10px; letter-spacing: -.01em; }
.form-card p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.form-card ul { margin-top: var(--s4); display: grid; gap: 7px; }
.form-card li { font-size: 13.5px; color: var(--ink-2); padding-left: 20px; position: relative; }
.form-card li::before {
  content: ""; position: absolute; left: 3px; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--tone);
}

/* ---------- 8. 年龄路线图 ---------- */
.ages-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5);
  padding: var(--s4) var(--s5); margin-bottom: var(--s5);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 13.5px; color: var(--ink-2);
}
.ages-legend b { color: var(--ink); font-weight: 800; }
.ages-legend i {
  display: inline-block; width: 9px; height: 9px; border-radius: 3px;
  margin-right: 7px; vertical-align: middle; font-style: normal;
}
.ages { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s4); }

.age-card {
  position: relative; display: flex; flex-direction: column;
  padding: var(--s5) var(--s5) var(--s4);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
  text-align: left; overflow: hidden;
  transition: transform .24s cubic-bezier(.34,1.3,.64,1), box-shadow .24s, border-color .24s;
}
.age-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: var(--line-2); }
.age-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--tone);
}
.age-card--wide { grid-column: span 2; }
.age-card--zero { background: repeating-linear-gradient(135deg, #FFFCF7, #FFFCF7 10px, #FFF8EF 10px, #FFF8EF 20px); }
.age-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.age-card__name { font-size: 21px; font-weight: 900; letter-spacing: -.015em; }
.age-card__form {
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
  padding: 5px 10px; border-radius: var(--r-full);
  background: color-mix(in srgb, var(--tone) 13%, #fff); color: color-mix(in srgb, var(--tone) 88%, #333);
  white-space: nowrap;
}
.age-card__desc {
  font-size: 13.5px; line-height: 1.65; color: var(--ink-2); margin-top: 11px;
  min-height: 67px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.age-card__start {
  margin-top: var(--s4); padding-top: var(--s3); border-top: 1px dashed var(--line-2);
  font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start;
}
.age-card__start svg { flex-shrink: 0; margin-top: 2px; color: var(--tone); }
.age-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s4); }
.age-card__count { font-size: 13px; font-weight: 800; color: var(--ink); }
.age-card__count small { font-weight: 600; color: var(--ink-3); font-size: 12px; margin-left: 2px; }
.age-card__go {
  font-size: 13px; font-weight: 800; color: var(--tone);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.age-card:hover .age-card__go { gap: 8px; }
.age-card.is-empty .age-card__go { color: var(--ink-3); }

/* 儿歌聚合入口 */
.age-card--songs { background: linear-gradient(150deg, #FFF4F7, #FFFBFD); }

/* ---------- 9. 起点小测 ---------- */
.quiz-strip {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s6); align-items: center;
  padding: var(--s6) var(--s7);
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, #1F3348, #2C4863 55%, #365A78);
  color: #fff; box-shadow: var(--sh-3); position: relative; overflow: hidden;
}
.quiz-strip::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,145,80,.35), transparent 70%);
}
.quiz-strip h2 { color: #fff; font-size: clamp(23px, 2.6vw, 31px); font-weight: 850; letter-spacing: -.015em; }
.quiz-strip p { color: #B9CBD9; font-size: 15.5px; line-height: 1.7; margin-top: 12px; }
.quiz-strip .btn--primary { box-shadow: 0 6px 20px rgba(240,96,31,.4); }
.quiz-steps { display: flex; gap: 10px; }
.quiz-step {
  flex: 1; padding: 16px 14px; border-radius: var(--r-md);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
}
.quiz-step b { display: block; font-size: 12px; font-weight: 800; color: #FFB27D; letter-spacing: .1em; }
.quiz-step span { display: block; font-size: 14px; font-weight: 700; margin-top: 7px; line-height: 1.45; }

/* 小测弹窗 */
.quiz-dialog { width: min(560px, 94vw); }
.quiz-body { padding: var(--s8) var(--s7) var(--s7); }
.quiz-progress { display: flex; gap: 6px; margin-bottom: var(--s6); }
.quiz-progress i {
  flex: 1; height: 4px; border-radius: 99px; background: var(--line);
  transition: background .3s;
}
.quiz-progress i.is-on { background: var(--brand); }
.quiz-q { font-size: 25px; font-weight: 850; letter-spacing: -.02em; line-height: 1.35; }
.quiz-hint { font-size: 14px; color: var(--ink-3); margin-top: 10px; }
.quiz-options { display: grid; gap: 10px; margin-top: var(--s5); }
.quiz-option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1.5px solid var(--line);
  text-align: left; transition: border-color .18s, background .18s, transform .18s;
}
.quiz-option:hover { border-color: var(--brand-ring); background: var(--brand-soft); transform: translateX(3px); }
.quiz-option b { font-size: 15.5px; font-weight: 800; display: block; }
.quiz-option span { font-size: 13px; color: var(--ink-3); }
.quiz-option i {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--line-2); display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: transparent; font-style: normal;
}
.quiz-option:hover i { border-color: var(--brand); }
.quiz-result { text-align: center; padding: var(--s5) 0 var(--s3); }
.quiz-result__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .1em;
  color: var(--brand-ink); background: var(--brand-soft);
  padding: 7px 15px; border-radius: var(--r-full);
}
.quiz-result h3 { font-size: 32px; font-weight: 900; letter-spacing: -.025em; margin: 18px 0 10px; }
.quiz-result p { font-size: 15.5px; color: var(--ink-2); line-height: 1.75; max-width: 24em; margin: 0 auto; }
.quiz-result__books { font-size: 14px; color: var(--ink-3); margin-top: 14px; }
.quiz-result__actions { display: flex; gap: var(--s3); justify-content: center; margin-top: var(--s6); flex-wrap: wrap; }

/* ---------- 10. 儿歌专区 ---------- */
.songs { background: var(--surface-2); border-block: 1px solid var(--line); }
.song-scenes { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.song-scene {
  padding: var(--s5); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-1); transition: transform .22s, box-shadow .22s;
}
.song-scene:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.song-scene__ico {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tone) 14%, #fff); color: var(--tone);
  margin-bottom: var(--s4);
}
.song-scene h3 { font-size: 17px; font-weight: 850; }
.song-scene__when { font-size: 12.5px; color: var(--ink-3); font-weight: 700; margin-top: 4px; }
.song-scene p { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); margin-top: 10px; }
.song-scene__tag {
  display: inline-block; margin-top: var(--s4); padding: 5px 11px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 800;
  background: color-mix(in srgb, var(--tone) 12%, #fff);
  color: color-mix(in srgb, var(--tone) 85%, #333);
}
.songs-note {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: var(--s5); padding: var(--s5);
  background: var(--surface); border: 1px solid var(--line-2);
  border-left: 4px solid var(--rose); border-radius: var(--r-md);
  font-size: 14px; line-height: 1.7; color: var(--ink-2);
}
.songs-note b { color: var(--ink); }

/* ---------- 11. 家长指南 ---------- */
.faq { display: grid; gap: var(--s3); max-width: 860px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-color: var(--line-2); box-shadow: var(--sh-1); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px var(--s5);
  font-size: 16.5px; font-weight: 800; display: flex; align-items: center; gap: 14px;
  transition: background .18s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface-2); }
.faq-item summary::after {
  content: "+"; margin-left: auto; font-size: 22px; font-weight: 400; color: var(--ink-3);
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 var(--s5) 22px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.faq-item__body p + p { margin-top: 12px; }
.faq-item__body b { color: var(--ink); }
.faq-num {
  width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand-ink);
  display: grid; place-items: center; font-size: 13px; font-weight: 900;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  padding: var(--s8) 0 var(--s6); margin-top: var(--s9);
  border-top: 1px solid var(--line); background: var(--surface-2);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s7); }
.footer-grid h4 { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; margin-bottom: var(--s4); }
.footer-grid a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 5px 0; transition: color .18s; }
.footer-grid a:hover { color: var(--brand-deep); }
.footer-about p { font-size: 14px; line-height: 1.75; color: var(--ink-2); margin-top: var(--s4); max-width: 30em; }
.footer-disclaimer {
  margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.8; color: var(--ink-3);
  display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap;
}
.footer-disclaimer b { color: var(--ink-2); font-weight: 700; }

/* ---------- 13. 对话框（通用） ---------- */
dialog {
  padding: 0; border: 0; border-radius: var(--r-xl); background: var(--surface);
  box-shadow: var(--sh-4); color: var(--ink); max-height: 92vh;
  width: min(1000px, 94vw);
  animation: dlg-in .28s cubic-bezier(.34,1.4,.64,1);
}
dialog::backdrop { background: rgba(20,32,45,.5); backdrop-filter: blur(4px); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.dlg-close {
  position: absolute; right: 16px; top: 16px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); color: var(--ink-2); font-size: 20px; line-height: 1;
  transition: background .18s, color .18s, transform .18s;
}
.dlg-close:hover { background: var(--line); color: var(--ink); transform: rotate(90deg); }

/* 阅读器对话框 */
.reader-dialog { width: min(1180px, 96vw); height: 92vh; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
.reader-bar {
  display: flex; align-items: center; gap: var(--s4);
  padding: 13px var(--s5); border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.reader-bar__back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 750; color: var(--ink-2);
  padding: 8px 14px; border-radius: var(--r-full); background: var(--surface);
  border: 1px solid var(--line); transition: all .18s;
}
.reader-bar__back:hover { border-color: var(--line-2); color: var(--ink); }
.reader-bar__label { font-size: 14.5px; font-weight: 800; margin-left: auto; }
.reader-bar__note { font-size: 12.5px; color: var(--ink-3); }
.reader-frame { flex: 1; width: 100%; border: 0; background: #F2F7FA; }

/* ---------- 14. 书单页 ---------- */
.books-hero { padding: var(--s7) 0 var(--s6); border-bottom: 1px solid var(--line); }
.books-hero__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; }
.books-hero__tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent, var(--brand-deep));
}
.books-hero__tag i { width: 10px; height: 10px; border-radius: 3px; background: currentColor; font-style: normal; }
.books-hero h1 { font-size: clamp(30px, 4.4vw, 45px); font-weight: 900; letter-spacing: -.025em; margin: 14px 0 12px; }
.books-hero p { font-size: 16px; line-height: 1.75; color: var(--ink-2); max-width: 40em; }
.books-hero__stats { display: flex; gap: var(--s5); }
.books-stat { text-align: right; }
.books-stat b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.books-stat span { font-size: 12.5px; color: var(--ink-3); font-weight: 650; }

.locked-banner {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  margin-top: var(--s5); padding: 15px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, #FFF3E2, #FFEDDD);
  border: 1px solid rgba(240,140,60,.30);
}
.locked-banner__badge {
  flex: none; padding: 5px 12px; border-radius: var(--r-full);
  background: var(--brand, #F0601F); color: #fff;
  font-size: 12.5px; font-weight: 800; letter-spacing: .04em;
}
.locked-banner p { flex: 1; min-width: 220px; margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.locked-banner p b { color: var(--ink); }
.locked-banner .btn { flex: none; }
.locked-banner[hidden] { display: none; }

.books-toolbar {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(255,252,247,.93);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.books-toolbar .wrap { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding-block: var(--s4); }
.chip {
  padding: 8px 15px; border-radius: var(--r-full);
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  transition: all .18s;
}
.chip:hover { border-color: var(--line-3); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.books-search {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
  padding: 9px 16px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .18s, box-shadow .18s;
}
.books-search:focus-within { border-color: var(--brand-ring); box-shadow: 0 0 0 3px var(--brand-soft); }
.books-search input { border: 0; outline: 0; background: none; font-size: 14.5px; width: 190px; color: var(--ink); }
.books-search input::placeholder { color: var(--ink-4); }
.books-count { font-size: 13.5px; color: var(--ink-3); font-weight: 650; }

.book-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s4); padding: var(--s6) 0 var(--s9); }
.book {
  display: flex; flex-direction: column; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .22s cubic-bezier(.34,1.3,.64,1), box-shadow .22s, border-color .22s;
}
.book:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: var(--line-2); }
.book__cover {
  position: relative; aspect-ratio: 3 / 4; background: var(--surface-3); overflow: hidden;
}
.book__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.book:hover .book__cover img { transform: scale(1.045); }
/* 未开通时资源受服务端保护，封面加载失败则显示上锁占位 */
.book__cover.is-locked {
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #F6F0E7, #F6F0E7 9px, #EFE8DC 9px, #EFE8DC 18px);
}
.book__cover.is-locked::after {
  content: "开通后可读"; font-size: 12px; font-weight: 800;
  letter-spacing: .05em; color: var(--ink-3);
  background: rgba(255,255,255,.78); padding: 6px 13px; border-radius: var(--r-full);
  box-shadow: 0 1px 3px rgba(26,43,60,.06);
}
.book__lv {
  position: absolute; left: 9px; top: 9px;
  padding: 4px 9px; border-radius: 8px;
  font-size: 11px; font-weight: 900; letter-spacing: .04em;
  background: rgba(26,43,60,.82); color: #fff; backdrop-filter: blur(4px);
}
.book__body { padding: 12px 13px 14px; display: flex; flex-direction: column; flex: 1; }
.book__title {
  font-size: 14px; font-weight: 800; line-height: 1.35; letter-spacing: -.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.book__zh {
  font-size: 12.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.book__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 11px; }
.book__series { font-size: 11.5px; font-weight: 750; color: var(--ink-3); }
.book__play { font-size: 12px; font-weight: 850; color: var(--brand-deep); display: inline-flex; align-items: center; gap: 4px; }
.books-empty { padding: var(--s9) 0; text-align: center; color: var(--ink-3); font-size: 15px; }

/* 分页 */
.books-more { display: flex; justify-content: center; padding-bottom: var(--s9); }

/* ---------- 15. 动效 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; gap: var(--s7); }
  .stair { max-width: 560px; }
  .ages { grid-template-columns: repeat(3, 1fr); }
  .age-card--wide { grid-column: span 1; }
  .book-grid { grid-template-columns: repeat(4, 1fr); }
  .forms { grid-template-columns: 1fr; }
  .song-scenes { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --s9: 60px; --s8: 44px; }
  .wrap { padding-inline: 20px; }
  .site-nav { display: none; }
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--surface-3); color: var(--ink);
  }
  .header-cta { margin-left: 0; padding: 10px 16px; }
  .header-cta__long { display: none; }
  .quiz-strip { grid-template-columns: 1fr; padding: var(--s6) var(--s5); }
  .quiz-steps { display: none; }
  .ages { grid-template-columns: repeat(2, 1fr); }
  .stair-row:nth-child(2), .stair-row:nth-child(3) { margin-right: 0; }
  .hero-facts { gap: var(--s5); }
  .hero-fact dt { font-size: 23px; }
  .book-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .books-hero__stats { display: none; }
  .books-search { margin-left: 0; width: 100%; }
  .books-search input { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s6); }
  dialog { border-radius: var(--r-lg); }
  .quiz-body { padding: var(--s6) var(--s5) var(--s5); }
  .reader-bar { padding: 11px 14px; gap: 10px; }
  .reader-bar__note { display: none; }
}

@media (max-width: 560px) {
  .ages { grid-template-columns: 1fr; }
  .age-card__desc { min-height: 0; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .song-scenes { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { flex-wrap: wrap; gap: var(--s5) var(--s5); }
  .brand-text small { display: none; }
  .quiz-result h3 { font-size: 26px; }
}

/* ---------- 17. 认证层适配 ---------- */
/* auth.js 注入的遮罩与胶囊保持原位；此处只确保层级与新设计不冲突 */
.qiming-gate { z-index: 900; }
.qiming-chip { z-index: 60; }
