/* 《人工智能与大语言模型》（Moallem、Degen、Ntoa 主编《Artificial Intelligence and Large Language Models: A Scientific Perspective》）2026-10-22 新增：
   对应兄弟目录 阅读-阅读与发芽/网站读书笔记/试排/261022-AI-LLM-Perspective-Artifact/ai-llm-perspective.html
   （概览卡＋“用不用大语言模型，先看两件事”题图、正文内目录、十三部分）。样式由 css/ai-all-in-one.css 换前缀而来。
   页面由根目录 reading_ai_llm_perspective_build.py 从试排页生成，不要手改正文；全部限定在 .ai-llm-perspective-notes 内，类前缀 llm-；
   小程序样式在 miniprogram/build_reading_notes.py 的 CLASS_STYLES（llm-*）。金色（--llm-gold）只用于书中原句和题图里的“高风险”；英文（lang="en"）用西文字体。
   防孤字：段落、条目末尾 4 个字在试排页生成时已包进 .llm-nb，不拆行。 */
.ai-llm-perspective-notes {
  --llm-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --llm-latin: "Helvetica Neue", Helvetica, Arial, "Noto Sans SC", "PingFang SC", sans-serif;
  --llm-gold: #f2c14e;
  --llm-gold-soft: rgba(242, 193, 78, .13);
  max-width: 44em;
  font-size: 16.5px;
  line-height: 1.9;
}
.ai-llm-perspective-notes [lang="en"],
.ai-llm-perspective-page .reading-profile-facts dd[lang="en"],
.ai-llm-perspective-page .reading-profile-field strong[lang="en"] { font-family: var(--llm-latin); }
.ai-llm-perspective-notes .llm-lat { font-size: .94em; }
.ai-llm-perspective-notes p { margin-bottom: 1.1em; }
.ai-llm-perspective-notes p,
.ai-llm-perspective-notes li,
.ai-llm-perspective-notes dd { text-wrap: pretty; }
.ai-llm-perspective-notes .llm-part-title,
.ai-llm-perspective-notes .llm-quote p { text-wrap: balance; }
.ai-llm-perspective-page .llm-nb { white-space: nowrap; }
.ai-llm-perspective-notes .llm-overview-title,
.ai-llm-perspective-page .chapter-prevnext a { word-break: keep-all; overflow-wrap: anywhere; }
@media (min-width: 641px) {
  .ai-llm-perspective-page .chapter-title { word-break: keep-all; overflow-wrap: anywhere; }
}
.ai-llm-perspective-notes strong { color: var(--white); font-weight: 700; }
.ai-llm-perspective-notes .llm-pg { font-size: .8em; color: var(--slate); white-space: nowrap; }

/* ---------- 全书概览（右侧：先看两件事） ---------- */
.ai-llm-perspective-notes .llm-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-llm-perspective-notes .llm-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 500; letter-spacing: .18em; color: var(--green); }
.ai-llm-perspective-notes .llm-overview-title { margin: 0 0 14px; font-family: var(--llm-serif); font-size: 21px; font-weight: 900; line-height: 1.45; color: var(--white); }
.ai-llm-perspective-notes .llm-overview-lead { margin: 0; color: var(--lightest-slate); }


/* ---------- 题图：用不用大语言模型，先看两件事（第 7 章） ---------- */
.ai-llm-perspective-notes .llm-risk { margin: 0; padding: 16px 16px 12px; border: 1px solid var(--lightest-navy); border-radius: 10px; background: var(--navy); }
.ai-llm-perspective-notes .llm-risk-title { margin: 0 0 10px; font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--white); }
.ai-llm-perspective-notes .llm-risk-q { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: q; display: grid; gap: 4px; }
.ai-llm-perspective-notes .llm-risk-q li { counter-increment: q; font-size: 13px; line-height: 1.5; color: var(--lightest-slate); }
.ai-llm-perspective-notes .llm-risk-q li::before {
  content: counter(q); display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-right: 8px;
  border-radius: 50%; border: 1px solid var(--green); color: var(--green); font-size: 11px;
}
.ai-llm-perspective-notes .llm-risk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ai-llm-perspective-notes .llm-risk-card { padding: 10px 10px 8px; border: 1px solid var(--lightest-navy); border-radius: 8px; background: var(--light-navy); }
.ai-llm-perspective-notes .llm-risk-card.llm-hi { border-color: var(--llm-gold); background: var(--llm-gold-soft); }
.ai-llm-perspective-notes .llm-risk-k { margin: 0 0 4px; font-size: 12px; line-height: 1.5; letter-spacing: .12em; color: var(--slate); }
.ai-llm-perspective-notes .llm-hi .llm-risk-k { color: var(--llm-gold); }
.ai-llm-perspective-notes .llm-risk-v { margin: 0 0 6px; font-size: 13.5px; line-height: 1.45; font-weight: 500; color: var(--white); }
.ai-llm-perspective-notes .llm-risk-eg { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--slate); }
.ai-llm-perspective-notes .llm-risk-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--lightest-slate); }
.ai-llm-perspective-notes .llm-risk-src { margin: 6px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--slate); }

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

/* ---------- 正文内目录 ---------- */
.ai-llm-perspective-notes .llm-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-llm-perspective-notes .llm-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-llm-perspective-notes .llm-toc-no { font-size: 12px; color: var(--green); white-space: nowrap; }
.ai-llm-perspective-notes .llm-toc-item:hover,
.ai-llm-perspective-notes .llm-toc-item:focus-visible { border-color: var(--green); color: var(--white); outline: none; }

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

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

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


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

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