/* ============================================================
   五个内容页共用页头（2026-11-07）
   用户提：标题字太大，而且五页各写各的。
   统一成一套：一行大字标题，下面紧跟一句说明「这一部分是干什么用的」。
   顺序即章法：① 课文视听 → ② 知识总结 → ③ 动画讲解 → ④ 衍生阅读 → ⑤ 互动练习 → ⑥ 游戏做题
   这个文件必须放在 paper.css 之后加载（它要压过各页自己的 h1 规则）。
   ============================================================ */

.pghead { display: block !important; margin: 2px 0 12px; }

.pghead h1 {
  font-family: "Songti SC", "Noto Serif SC", STSong, "PingFang SC", serif;
  font-size: 21px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  line-height: 1.38 !important;
  margin: 0 0 5px !important;
  background: none !important;
  color: var(--ink, #3B3025) !important;
  -webkit-text-fill-color: var(--ink, #3B3025) !important;
}

/* 说明行：跟全站正文同一档字号（12.5px），只讲这一页干什么，不铺陈 */
.pghead p.psub {
  margin: 0 !important;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 12.5px !important;
  line-height: 1.62 !important;
  max-width: 720px;
  color: var(--ink-3, #9C8B74) !important;
}
.pghead p.psub b { color: var(--rust, #C25F2C) !important; font-weight: 700; }
.pghead p.psub em {
  font-style: normal; color: var(--teal, #3E9C95) !important;
  border-bottom: 1px dashed rgba(62, 156, 149, .45);
}

/* 衍生阅读页：标题行保留「回书库」在右，说明另起一行 */
.pghead.rdhead { display: block !important; }
.pghead .rdhtop { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pghead .rdhtop h1 { flex: 1 1 auto; min-width: 0; }

@media (max-width: 640px) {
  .pghead h1 { font-size: 19px !important; letter-spacing: .5px !important; }
  .pghead p.psub { font-size: 12px !important; }
  .pghead .rdhtop { gap: 8px; }
  /* 手机上「← 回书库，看全部册次」太长，会把标题挤到下一行，只留前半句 */
  .pghead .rdhtop .rdfull { display: none; }
  /* 这一页标题改成「把一个知识点，放进一个故事里」比原来长三个字，
     手机上 19px 会跟「回书库」贴在一起 → 这一页单独降到 18px、把间距拉开 */
  .rdhead .rdhtop { gap: 14px; }
  .rdhead .rdhtop h1 { font-size: 18px !important; }
  .rdhead .rdhtop .rdback { font-size: 12px; }
}
