/* 《乌合之众》2026-10-17 新增：对应 Artifact Temp/261017-乌合之众-Artifact/wuhe-zhizhong.html（概览卡＋“沙粒被风吹成一个方向”画布题图、全书三卷、正文内目录、核心发现＋三卷＋结语＋今天怎么读）。
   全部限定在 .wuhe-zhizhong-notes 内，类前缀 wh-；小程序样式在 miniprogram/build_reading_notes.py 的 CLASS_STYLES（wh-*）。
   青绿＝个人／理性一侧，珊瑚（--wh-crowd）＝群体／暗示一侧，只用在这两处。 */
.wuhe-zhizhong-notes {
  --wh-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --wh-crowd: #ff8f70;
  --wh-crowd-tint: rgba(255, 143, 112, .1);
  max-width: 44em;
  font-size: 16.5px;
  line-height: 1.9;
}
.wuhe-zhizhong-notes p { margin-bottom: 1.1em; }
.wuhe-zhizhong-notes strong { color: var(--white); font-weight: 700; }

/* ---------- 全书概览（右侧画布：各自游走的沙粒被同一股风带成一个方向） ---------- */
.wuhe-zhizhong-notes .wh-overview {
  display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: center;
  padding: 26px 28px; background: var(--light-navy); border: 1px solid var(--lightest-navy); border-radius: 12px;
}
.wuhe-zhizhong-notes .wh-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 500; letter-spacing: .18em; color: var(--green); }
.wuhe-zhizhong-notes .wh-overview-title { margin: 0 0 14px; font-family: var(--wh-serif); font-size: 21px; font-weight: 900; line-height: 1.45; color: var(--white); }
.wuhe-zhizhong-notes .wh-overview-lead { margin: 0; color: var(--lightest-slate); }
.wuhe-zhizhong-notes .wh-sand canvas {
  display: block; width: 100%; height: auto; aspect-ratio: 11 / 8;
  border-radius: 10px; border: 1px solid var(--lightest-navy); background: var(--navy);
}

/* ---------- 全书三卷 ---------- */
.wuhe-zhizhong-notes .wh-books { margin: 26px 0 0; }
.wuhe-zhizhong-notes .wh-books-title { margin: 0 0 10px; font-size: 14px; letter-spacing: .08em; color: var(--slate); }
.wuhe-zhizhong-notes .wh-book-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wuhe-zhizhong-notes .wh-book { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--lightest-navy); border-radius: 10px; line-height: 1.5; }
.wuhe-zhizhong-notes .wh-book small { font-size: 12px; letter-spacing: .1em; color: var(--slate); }
.wuhe-zhizhong-notes .wh-book b { font-size: 15.5px; color: var(--white); }
.wuhe-zhizhong-notes .wh-book-desc { font-size: 13px; color: var(--slate); }

/* ---------- 正文内目录 ---------- */
.wuhe-zhizhong-notes .wh-toc {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin: 22px 0 0; padding: 18px 0 2px; border-top: 1px solid var(--lightest-navy);
}
.wuhe-zhizhong-notes .wh-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;
}
.wuhe-zhizhong-notes .wh-toc-no { font-size: 12px; color: var(--green); }
.wuhe-zhizhong-notes .wh-toc-item:hover,
.wuhe-zhizhong-notes .wh-toc-item:focus-visible { border-color: var(--green); color: var(--white); outline: none; }

/* ---------- 部分 ---------- */
.wuhe-zhizhong-notes .wh-part { margin-top: 64px; scroll-margin-top: 24px; }
.wuhe-zhizhong-notes .wh-part-head { padding-bottom: 12px; margin: 0 0 18px; border-bottom: 1px solid var(--lightest-navy); }
.wuhe-zhizhong-notes .wh-part-no { margin: 0 0 2px; font-size: 13px; letter-spacing: .18em; color: var(--green); }
.wuhe-zhizhong-notes .wh-part-title { margin: 0; font-family: var(--wh-serif); font-size: 25px; font-weight: 900; line-height: 1.4; color: var(--white); }
.wuhe-zhizhong-notes .wh-subtitle { margin: 34px 0 12px; font-size: 17px; font-weight: 700; color: var(--white); letter-spacing: .04em; }

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

.wuhe-zhizhong-notes .wh-quote {
  margin: 0 0 1.3em; padding: 4px 0 4px 18px; border-left: 3px solid var(--wh-crowd);
  font-family: var(--wh-serif); color: var(--white); line-height: 1.85;
}
.wuhe-zhizhong-notes .wh-quote p { margin: 0 0 .4em; }
.wuhe-zhizhong-notes .wh-quote cite { display: block; margin-top: 6px; font-family: inherit; font-style: normal; font-size: 13px; color: var(--slate); }

/* 三个原因 */
.wuhe-zhizhong-notes .wh-causes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 1.4em; }
.wuhe-zhizhong-notes .wh-cause { padding: 16px 16px 14px; border: 1px solid var(--lightest-navy); border-radius: 10px; background: var(--light-navy); }
.wuhe-zhizhong-notes .wh-cause-no { display: block; font-family: var(--wh-serif); font-weight: 900; font-size: 28px; line-height: 1; color: var(--wh-crowd); }
.wuhe-zhizhong-notes .wh-cause-title { margin: 8px 0 6px; font-size: 16px; color: var(--white); }
.wuhe-zhizhong-notes .wh-cause p { margin: 0; font-size: 15px; line-height: 1.8; }

/* 智力／感情 */
.wuhe-zhizhong-notes .wh-vs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--lightest-navy); border-radius: 10px; overflow: hidden; margin: 0 0 1.2em;
}
.wuhe-zhizhong-notes .wh-vs-side { padding: 14px 16px; }
.wuhe-zhizhong-notes .wh-vs-side + .wh-vs-side { border-left: 1px solid var(--lightest-navy); }
.wuhe-zhizhong-notes .wh-vs-hot { background: var(--wh-crowd-tint); }
.wuhe-zhizhong-notes .wh-vs-side strong { display: block; margin-bottom: 4px; }
.wuhe-zhizhong-notes .wh-vs-side p { margin: 0; font-size: 15.5px; line-height: 1.8; }

/* 名称＋说明＋书中例 */
.wuhe-zhizhong-notes .wh-rows { display: grid; margin: 4px 0 1.2em; }
.wuhe-zhizhong-notes .wh-row { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--lightest-navy); }
.wuhe-zhizhong-notes .wh-row:last-child { border-bottom: 1px solid var(--lightest-navy); }
.wuhe-zhizhong-notes .wh-row-name { font-size: 16px; font-weight: 700; line-height: 1.6; color: var(--white); }
.wuhe-zhizhong-notes .wh-row-body p { margin: 0 0 .6em; }
.wuhe-zhizhong-notes .wh-row-body p:last-child { margin-bottom: 0; }
.wuhe-zhizhong-notes .wh-case { margin-top: 8px !important; font-size: 15px; line-height: 1.85; color: var(--slate); }
.wuhe-zhizhong-notes .wh-tag {
  display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 4px;
  font-size: 12px; letter-spacing: .1em; line-height: 1.6; color: var(--wh-crowd); background: var(--wh-crowd-tint); border: 1px solid rgba(255, 143, 112, .3);
}

/* 500 人对比 */
.wuhe-zhizhong-notes .wh-five { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 1.2em; }
.wuhe-zhizhong-notes .wh-five-card { padding: 16px 18px; border: 1px solid var(--lightest-navy); border-radius: 10px; background: var(--light-navy); line-height: 1.6; }
.wuhe-zhizhong-notes .wh-five-n { display: block; font-family: var(--wh-serif); font-weight: 900; font-size: 34px; line-height: 1.15; color: var(--slate); font-variant-numeric: tabular-nums; }
.wuhe-zhizhong-notes .wh-five-card strong { display: block; margin: 6px 0 2px; font-size: 15px; }
.wuhe-zhizhong-notes .wh-five-card p { margin: 0; font-size: 14px; color: var(--slate); }
.wuhe-zhizhong-notes .wh-five-hit { border-color: var(--wh-crowd); background: var(--wh-crowd-tint); }
.wuhe-zhizhong-notes .wh-five-hit .wh-five-n { color: var(--wh-crowd); }

/* 教育 */
.wuhe-zhizhong-notes .wh-callout { margin: 0 0 1.2em; padding: 16px 18px; border-radius: 10px; background: var(--green-tint); border: 1px solid var(--lightest-navy); }
.wuhe-zhizhong-notes .wh-callout-title { margin: 0 0 4px !important; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--green); }
.wuhe-zhizhong-notes .wh-callout p { margin: 0 0 .6em; }
.wuhe-zhizhong-notes .wh-callout p:last-child { margin: 0; }

/* 两类（领袖、名望） */
.wuhe-zhizhong-notes .wh-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 1.2em; }
.wuhe-zhizhong-notes .wh-duo-card { padding: 14px 16px; border: 1px solid var(--lightest-navy); border-radius: 10px; line-height: 1.75; }
.wuhe-zhizhong-notes .wh-duo-card strong { display: block; margin-bottom: 4px; }
.wuhe-zhizhong-notes .wh-duo-card p { margin: 0; font-size: 15px; }

/* 断言→重复→传染 */
.wuhe-zhizhong-notes .wh-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 1.2em; }
.wuhe-zhizhong-notes .wh-step { position: relative; padding: 14px 18px 14px 16px; border: 1px solid var(--lightest-navy); background: var(--light-navy); line-height: 1.6; }
.wuhe-zhizhong-notes .wh-step:first-child { border-radius: 10px 0 0 10px; }
.wuhe-zhizhong-notes .wh-step-last { border-radius: 0 10px 10px 0; }
.wuhe-zhizhong-notes .wh-step + .wh-step { border-left: 0; }
.wuhe-zhizhong-notes .wh-step + .wh-step::before {
  content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: var(--light-navy); border-top: 1px solid var(--lightest-navy); border-right: 1px solid var(--lightest-navy); transform: rotate(45deg);
}
.wuhe-zhizhong-notes .wh-step strong { display: block; font-size: 17px; }
.wuhe-zhizhong-notes .wh-step-last strong { color: var(--wh-crowd); }
.wuhe-zhizhong-notes .wh-step-desc { font-size: 13.5px; color: var(--slate); }

/* 群体分类 */
.wuhe-zhizhong-notes .wh-tree { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 1.2em; }
.wuhe-zhizhong-notes .wh-tree-card { padding: 14px 16px; border: 1px solid var(--lightest-navy); border-radius: 10px; background: var(--light-navy); }
.wuhe-zhizhong-notes .wh-tree-card strong { display: block; margin-bottom: 8px; }
.wuhe-zhizhong-notes .wh-tree-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 !important; }
.wuhe-zhizhong-notes .wh-chip { padding: 2px 10px; border: 1px solid var(--lightest-navy); border-radius: 999px; font-size: 13.5px; line-height: 1.6; }
.wuhe-zhizhong-notes .wh-chip-on { border-color: var(--wh-crowd); color: var(--wh-crowd); }
.wuhe-zhizhong-notes .wh-tree-note { margin: 8px 0 0 !important; font-size: 13px; color: var(--slate); }

/* 文明循环 */
.wuhe-zhizhong-notes .wh-cycle { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 8px 0 12px; }
.wuhe-zhizhong-notes .wh-cycle::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--lightest-navy); }
.wuhe-zhizhong-notes .wh-stage { position: relative; padding: 26px 10px 0 0; line-height: 1.55; }
.wuhe-zhizhong-notes .wh-stage::before { content: ""; position: absolute; top: 2px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--navy); border: 2px solid var(--slate); }
.wuhe-zhizhong-notes .wh-stage-mob::before { border-color: var(--wh-crowd); background: var(--wh-crowd); }
.wuhe-zhizhong-notes .wh-stage-peak::before { border-color: var(--green); background: var(--green); }
.wuhe-zhizhong-notes .wh-stage strong { display: block; font-size: 15px; }
.wuhe-zhizhong-notes .wh-stage-desc { font-size: 13.5px; color: var(--light-slate); }
.wuhe-zhizhong-notes .wh-cycle-note { margin: 0 0 1.2em; font-size: 14px; color: var(--slate); }

/* 今天怎么读 */
.wuhe-zhizhong-notes .wh-reads { display: grid; gap: 18px; margin: 0 0 1.4em; }
.wuhe-zhizhong-notes .wh-read { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 10px; }
.wuhe-zhizhong-notes .wh-read-no { font-family: var(--wh-serif); font-weight: 900; font-size: 30px; line-height: 1.15; color: var(--green); opacity: .85; font-variant-numeric: tabular-nums; }
.wuhe-zhizhong-notes .wh-read-title { margin: 0 0 2px; font-size: 16.5px; font-weight: 700; color: var(--white); }
.wuhe-zhizhong-notes .wh-read p { margin: 0; }
.wuhe-zhizhong-notes .wh-takeaway { padding: 18px 20px; border: 1px solid var(--lightest-navy); border-radius: 12px; background: var(--light-navy); }
.wuhe-zhizhong-notes .wh-takeaway-label { margin: 0 0 4px !important; font-size: 12px; letter-spacing: .14em; color: var(--green); }
.wuhe-zhizhong-notes .wh-takeaway-text { margin: 0 !important; font-family: var(--wh-serif); font-size: 19px; line-height: 1.8; color: var(--white); }

@media (max-width: 900px) {
  .wuhe-zhizhong-notes .wh-overview { grid-template-columns: 1fr; }
  .wuhe-zhizhong-notes .wh-sand { max-width: 360px; }
}
@media (max-width: 640px) {
  .wuhe-zhizhong-notes { font-size: 16px; }
  .wuhe-zhizhong-notes .wh-overview { padding: 20px 18px; gap: 18px; }
  .wuhe-zhizhong-notes .wh-book-list,
  .wuhe-zhizhong-notes .wh-causes,
  .wuhe-zhizhong-notes .wh-duo,
  .wuhe-zhizhong-notes .wh-tree { grid-template-columns: 1fr; }
  .wuhe-zhizhong-notes .wh-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wuhe-zhizhong-notes .wh-part-title { font-size: 22px; }
  .wuhe-zhizhong-notes .wh-row { grid-template-columns: 1fr; gap: 6px; }
  .wuhe-zhizhong-notes .wh-vs { grid-template-columns: 1fr; }
  .wuhe-zhizhong-notes .wh-vs-side + .wh-vs-side { border-left: 0; border-top: 1px solid var(--lightest-navy); }
  .wuhe-zhizhong-notes .wh-steps { grid-template-columns: 1fr; }
  .wuhe-zhizhong-notes .wh-step:first-child { border-radius: 10px 10px 0 0; }
  .wuhe-zhizhong-notes .wh-step-last { border-radius: 0 0 10px 10px; }
  .wuhe-zhizhong-notes .wh-step + .wh-step { border-left: 1px solid var(--lightest-navy); border-top: 0; }
  .wuhe-zhizhong-notes .wh-step + .wh-step::before { left: 50%; top: -7px; margin: 0 0 0 -6px; transform: rotate(135deg); }
  .wuhe-zhizhong-notes .wh-cycle { grid-template-columns: 1fr; gap: 14px; }
  .wuhe-zhizhong-notes .wh-cycle::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .wuhe-zhizhong-notes .wh-stage { padding: 0 0 0 28px; }
  .wuhe-zhizhong-notes .wh-stage::before { top: 5px; }
  .wuhe-zhizhong-notes .wh-read { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .wuhe-zhizhong-notes .wh-read-no { font-size: 24px; }
}
