/* 《贫穷的本质》读书笔记 · 2026-10-16 改版 · 对应 Artifact：Temp/261016-贫穷的本质-Artifact/poor-economics.html
   视觉线索取自本书方法“随机对照实验”：核心观点旁一组随机分组的点（青绿＝实验组，灰＝对照组，仅网站显示）；
   每个话题按“现象 → 原因 → 对策”串成一条线，只有“对策 / 反驳”那一格点亮成青绿。
   全部限定在 .poor-economics-notes 内；小程序样式见 Temp/261016-读书改版-网站/poor-economics-mp.py。 */
.poor-economics-notes {
  --pe-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --pe-control: #3a4a6b;
  --pe-accent-soft: rgba(100, 255, 218, .1);
  max-width: 44em;
  margin-left: 0;
  margin-right: 0;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--lightest-slate);
}
.poor-economics-notes p { margin: 0 0 1.1em; }
.poor-economics-notes strong { color: var(--white); font-weight: 700; }

/* 小节标题：上方小字标签 + 大标题 */
.poor-economics-notes .pe-h2 { margin: 0 0 22px; font-size: 25px; font-weight: 900; line-height: 1.4; color: var(--white); }
.poor-economics-notes .pe-h2-tag { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 500; letter-spacing: .18em; color: var(--green); }
.poor-economics-notes .pe-h2-en { margin-left: .8em; padding-left: .8em; border-left: 1px solid var(--lightest-navy); color: var(--slate); letter-spacing: .2em; }

.poor-economics-notes .pe-notes-head {
  margin: 0 0 22px; padding-top: 4px; font-size: 13.5px; letter-spacing: .18em; color: var(--slate);
}

/* 全书核心观点 */
.poor-economics-notes .pe-thesis { padding: 26px 28px; background: var(--light-navy); border: 1px solid var(--lightest-navy); border-radius: 12px; scroll-margin-top: 24px; }
.poor-economics-notes .pe-thesis-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: start; }
.poor-economics-notes .pe-thesis-h2 { font-size: 20px; margin-bottom: 14px; }
.poor-economics-notes .pe-thesis-text { margin: 0; }
.poor-economics-notes .pe-quote {
  margin: 18px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--green);
  font-family: var(--pe-serif); font-weight: 600; font-size: 20px; line-height: 1.85; color: var(--white);
}

/* 随机分组的点阵（纯装饰） */
.poor-economics-notes .pe-rct { display: grid; grid-template-columns: repeat(8, 10px); gap: 8px; margin-top: 8px; }
.poor-economics-notes .pe-rct i { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--pe-control); }
.poor-economics-notes .pe-rct i.t { background: var(--green); }
@media (prefers-reduced-motion: no-preference) {
  .poor-economics-notes .pe-rct i.t { animation: pe-assign .5s ease-out both; animation-delay: calc(var(--d, 0) * 40ms + 200ms); }
}
@keyframes pe-assign { from { background: var(--pe-control); transform: scale(.7); } to { background: var(--green); transform: scale(1); } }

/* 正文内目录 */
.poor-economics-notes .pe-toc { display: grid; gap: 10px; margin: 32px 0 0; padding: 18px 0; border-top: 1px solid var(--lightest-navy); border-bottom: 1px solid var(--lightest-navy); }
.poor-economics-notes .pe-toc-row { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.poor-economics-notes .pe-toc a {
  display: inline-flex; gap: 6px; align-items: baseline; padding: 4px 10px; border: 1px solid var(--lightest-navy);
  border-radius: 6px; font-size: 14px; line-height: 1.5; color: var(--light-slate); transition: border-color .15s, color .15s;
}
.poor-economics-notes .pe-toc a span { font-family: var(--mono); font-size: 12px; color: var(--slate); }
.poor-economics-notes .pe-toc a.pe-toc-part { border-color: transparent; padding-left: 0; font-weight: 700; color: var(--white); }
.poor-economics-notes .pe-toc a.pe-toc-part span { font-family: inherit; color: var(--green); }
.poor-economics-notes .pe-toc a:hover,
.poor-economics-notes .pe-toc a:focus-visible { border-color: var(--green); color: var(--white); outline: none; }
.poor-economics-notes .pe-toc a.pe-toc-part:hover,
.poor-economics-notes .pe-toc a.pe-toc-part:focus-visible { border-color: transparent; color: var(--green); }

/* 两部分 + 总结 */
.poor-economics-notes .pe-part { margin-top: 64px; scroll-margin-top: 24px; }

/* 话题：现象 → 原因 → 对策 */
.poor-economics-notes .pe-topic { margin-top: 40px; scroll-margin-top: 24px; }
.poor-economics-notes .pe-h2 + .pe-topic { margin-top: 28px; }
.poor-economics-notes .pe-topic-head { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 12px; align-items: baseline; margin-bottom: 12px; }
.poor-economics-notes .pe-no { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--slate); letter-spacing: .04em; }
.poor-economics-notes .pe-kicker { margin: 0; font-size: 13px; letter-spacing: .16em; color: var(--green); }
.poor-economics-notes .pe-topic-title { margin: 2px 0 0; font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--white); }

.poor-economics-notes .pe-chain { display: grid; }
.poor-economics-notes .pe-step { position: relative; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 12px; padding-bottom: 14px; }
.poor-economics-notes .pe-step::before { content: ""; position: absolute; left: calc(1.3rem - .5px); top: 1.2em; bottom: -.2em; width: 1px; background: var(--lightest-navy); }
.poor-economics-notes .pe-step:last-child { padding-bottom: 0; }
.poor-economics-notes .pe-step:last-child::before { display: none; }
.poor-economics-notes .pe-step-tag {
  position: relative; z-index: 1; justify-self: center; display: grid; place-items: center;
  width: 2.4rem; height: 1.6rem; margin-top: .15em; border-radius: 999px; border: 1px solid var(--pe-control);
  background: var(--navy); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--slate);
}
.poor-economics-notes .pe-step-text { margin: 0; line-height: 1.85; }
.poor-economics-notes .pe-fix-tag { background: var(--green); border-color: var(--green); color: var(--navy); }
.poor-economics-notes .pe-fix-text { margin-top: -8px; padding: 10px 14px; border-radius: 8px; background: var(--pe-accent-soft); }

/* 五个关键教训 */
.poor-economics-notes .pe-lessons { list-style: none; counter-reset: pe-l; border-top: 1px solid var(--lightest-navy); }
.poor-economics-notes .pe-lesson { counter-increment: pe-l; display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--lightest-navy); }
.poor-economics-notes .pe-lesson::before { content: counter(pe-l); font-family: var(--pe-serif); font-weight: 900; font-size: 32px; line-height: 1.1; color: var(--green); }
.poor-economics-notes .pe-lesson:last-child { border-bottom: 0; }
.poor-economics-notes .pe-lesson-text { margin: 0; }
.poor-economics-notes .pe-lesson-key { display: block; margin-bottom: 4px; font-size: 19px; line-height: 1.6; }
.poor-economics-notes .pe-lesson-last .pe-lesson-text { font-family: var(--pe-serif); }

@media (max-width: 900px) {
  .poor-economics-notes .pe-thesis-top { grid-template-columns: minmax(0, 1fr); }
  .poor-economics-notes .pe-rct { display: none; }
  .poor-economics-notes .pe-thesis,
  .poor-economics-notes .pe-part,
  .poor-economics-notes .pe-topic { scroll-margin-top: 72px; }
}
@media (max-width: 600px) {
  .poor-economics-notes { font-size: 16px; line-height: 1.85; }
  .poor-economics-notes .pe-h2 { font-size: 22px; }
  .poor-economics-notes .pe-thesis { padding: 18px; }
  .poor-economics-notes .pe-thesis-h2 { font-size: 19px; }
  .poor-economics-notes .pe-quote { padding-left: 14px; font-size: 18px; }
  .poor-economics-notes .pe-part { margin-top: 52px; }
  .poor-economics-notes .pe-topic { margin-top: 32px; }
  .poor-economics-notes .pe-topic-head,
  .poor-economics-notes .pe-step { grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 10px; }
  .poor-economics-notes .pe-step::before { left: calc(1.2rem - .5px); }
  .poor-economics-notes .pe-step-tag { width: 2.3rem; }
  .poor-economics-notes .pe-topic-title { font-size: 18.5px; }
  .poor-economics-notes .pe-lesson { grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: 10px; }
  .poor-economics-notes .pe-lesson-key { font-size: 17.5px; }
  .poor-economics-notes .pe-toc a { font-size: 13.5px; padding: 3px 8px; }
}
