/* 《人工智能时代与人类价值》2026-10-23 新增：对应兄弟目录 阅读-阅读与发芽/网站读书笔记/试排/261023-人工智能时代与人类价值-Artifact/ai-genesis.html。
   由根目录 reading_ai_batch_build.py 生成（页面和本样式都是），不要手改；全部限定在 .ai-genesis-notes 内，类前缀 gns-；
   小程序样式在 miniprogram/build_reading_notes.py 的 CLASS_STYLES（gns-*）。金色（--gns-gold）只用于书中原句和题图里的重点项。 */
.ai-genesis-notes {
  --gns-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --gns-latin: "Helvetica Neue", Helvetica, Arial, "Noto Sans SC", "PingFang SC", sans-serif;
  --gns-gold: #f2c14e;
  --gns-gold-soft: rgba(242, 193, 78, .13);
  max-width: 44em;
  font-size: 16.5px;
  line-height: 1.9;
}
.ai-genesis-notes [lang="en"],
.ai-genesis-page .reading-profile-facts dd[lang="en"],
.ai-genesis-page .reading-profile-field strong[lang="en"] { font-family: var(--gns-latin); }
.ai-genesis-notes .gns-lat { font-size: .94em; }
.ai-genesis-notes p { margin-bottom: 1.1em; }
.ai-genesis-notes p,
.ai-genesis-notes li,
.ai-genesis-notes dd { text-wrap: pretty; }
.ai-genesis-notes .gns-part-title,
.ai-genesis-notes .gns-quote p { text-wrap: balance; }
.ai-genesis-page .gns-nb { white-space: nowrap; }
.ai-genesis-notes .gns-overview-title,
.ai-genesis-page .chapter-prevnext a { word-break: keep-all; overflow-wrap: anywhere; }
@media (min-width: 641px) {
  .ai-genesis-page .chapter-title { word-break: keep-all; overflow-wrap: anywhere; }
}
.ai-genesis-notes strong { color: var(--white); font-weight: 700; }
.ai-genesis-notes .gns-pg { font-size: .8em; color: var(--slate); white-space: nowrap; }

/* ---------- 全书概览（右侧：题图） ---------- */
.ai-genesis-notes .gns-overview {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: center;
  padding: 26px 28px; background: var(--light-navy); border: 1px solid var(--lightest-navy); border-radius: 12px;
}
.ai-genesis-notes .gns-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 500; letter-spacing: .18em; color: var(--green); }
.ai-genesis-notes .gns-overview-title { margin: 0 0 14px; font-family: var(--gns-serif); font-size: 21px; font-weight: 900; line-height: 1.45; color: var(--white); }
.ai-genesis-notes .gns-overview-lead { margin: 0; color: var(--lightest-slate); }


/* ---------- 题图（fork） ---------- */
.ai-genesis-notes .gns-fork { margin: 0; padding: 16px 16px 12px; border: 1px solid var(--lightest-navy); border-radius: 10px; background: var(--navy); }
.ai-genesis-notes .gns-fork-q { margin: 0 0 14px; font-family: var(--gns-serif); font-size: 17px; line-height: 1.5; font-weight: 700; color: var(--white); }
.ai-genesis-notes .gns-fork-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ai-genesis-notes .gns-fork-box { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--lightest-navy); border-radius: 8px; background: var(--light-navy); }
.ai-genesis-notes .gns-fork-box b { font-size: 14px; line-height: 1.4; color: var(--white); }
.ai-genesis-notes .gns-fork-box span { font-size: 12px; line-height: 1.6; color: var(--lightest-slate); }
.ai-genesis-notes .gns-fork-box em { font-style: normal; font-size: 11.5px; line-height: 1.5; color: var(--slate); }
.ai-genesis-notes .gns-fork-box.gns-hi { border-color: var(--gns-gold); background: var(--gns-gold-soft); }
.ai-genesis-notes .gns-fork-box.gns-hi b, .ai-genesis-notes .gns-fork-box.gns-hi em { color: var(--gns-gold); }
.ai-genesis-notes .gns-fork-src { margin: 8px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--slate); }

.ai-genesis-notes .gns-intro { margin: 24px 0 0; color: var(--light-slate); }
.ai-genesis-notes .gns-intro + .gns-intro { margin-top: 12px; }

/* ---------- 正文内目录 ---------- */
.ai-genesis-notes .gns-toc {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  margin: 22px 0 0; padding: 18px 0 2px; border-top: 1px solid var(--lightest-navy);
}
.ai-genesis-notes .gns-toc-item {
  display: flex; gap: 8px; align-items: baseline; padding: 7px 10px; border: 1px solid var(--lightest-navy);
  border-radius: 6px; font-size: 14px; line-height: 1.4; color: var(--light-slate); transition: border-color .15s, color .15s;
}
.ai-genesis-notes .gns-toc-no { font-size: 12px; color: var(--green); white-space: nowrap; }
.ai-genesis-notes .gns-toc-item:hover,
.ai-genesis-notes .gns-toc-item:focus-visible { border-color: var(--green); color: var(--white); outline: none; }

/* ---------- 部分与模块 ---------- */
.ai-genesis-notes .gns-part { margin-top: 64px; scroll-margin-top: 24px; }
.ai-genesis-notes .gns-part-head { padding-bottom: 12px; margin: 0 0 18px; border-bottom: 1px solid var(--lightest-navy); }
.ai-genesis-notes .gns-part-no { margin: 0 0 2px; font-size: 13px; letter-spacing: .18em; color: var(--green); }
.ai-genesis-notes .gns-part-title { margin: 0; font-family: var(--gns-serif); font-size: 25px; font-weight: 900; line-height: 1.4; color: var(--white); }

.ai-genesis-notes .gns-items { list-style: none; display: grid; gap: 12px; margin: 0 0 1.1em; padding: 0; }
.ai-genesis-notes .gns-items li { padding-left: 16px; border-left: 2px solid var(--lightest-navy); }

.ai-genesis-notes .gns-quote {
  margin: 0 0 1.3em; padding: 4px 0 4px 18px; border-left: 3px solid var(--gns-gold);
  font-family: var(--gns-serif); color: var(--white); line-height: 1.85;
}
.ai-genesis-notes .gns-quote p { margin: 0 0 .4em; }
.ai-genesis-notes .gns-quote .gns-orig { font-size: 14px; line-height: 1.65; color: var(--slate); }
.ai-genesis-notes .gns-cite { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: var(--slate); }


@media (max-width: 900px) {
  .ai-genesis-notes .gns-overview { grid-template-columns: 1fr; }
  .ai-genesis-notes .gns-fork { max-width: 440px; }
}
@media (max-width: 640px) {
  .ai-genesis-notes { font-size: 16px; }
  .ai-genesis-notes .gns-overview { padding: 20px 18px; gap: 18px; }
  .ai-genesis-notes .gns-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-genesis-notes .gns-part-title { font-size: 22px; }
}

/* 导语引文接在概览卡下的段落之后 */
.ai-genesis-notes .gns-overview + .gns-intro { margin-top: 24px; }
