/* 《创造：用非传统方式做有价值的事》读书笔记 · 2026-10-16 改版 · 对应 Artifact：Temp/261016-创造-Artifact/build.html
   视觉线索取自原书英文名 Build 与 PPT 封面的“工程蓝图”：正文开头一块蓝图小样（仅网站），其余为单栏长文组件。
   全部限定在 .build-notes 内；小程序样式在 Temp/261016-读书改版-网站/build-mp.py（并入 build_reading_notes.py 的 CLASS_STYLES）。 */
.build-notes {
  --bd-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --bd-mark: #ff8a7a;                      /* 蓝图上的红色标注线 */
  --bd-grid: rgba(136, 146, 176, .14);
  --bd-accent-soft: rgba(100, 255, 218, .1);
  max-width: 44em;
  font-size: 16.5px;
  line-height: 1.95;
}
.build-notes p { margin: 0 0 1.1em; }
.build-notes strong { color: var(--white); font-weight: 700; }

/* ── 开头：正文内目录 + 蓝图小样 ── */
.build-notes .bd-top { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: center; }
.build-notes .bd-toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.build-notes .bd-toc-item {
  display: flex; gap: 8px; align-items: baseline; padding: 8px 10px; border: 1px solid var(--lightest-navy);
  border-radius: 6px; font-size: 14px; line-height: 1.4; color: var(--light-slate); text-decoration: none;
  transition: border-color .15s, color .15s;
}
.build-notes .bd-toc-no { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; color: var(--green); }
.build-notes .bd-toc-item:hover,
.build-notes .bd-toc-item:focus-visible { border-color: var(--green); color: var(--white); outline: none; }

/* 蓝图小样：网格纸上的 BUILD 线框字，加红色尺寸线 */
.build-notes .bd-blueprint {
  position: relative; width: 280px; height: 180px; border: 1px solid var(--lightest-navy); border-radius: 4px;
  background-color: var(--light-navy);
  background-image: linear-gradient(var(--bd-grid) 1px, transparent 1px), linear-gradient(90deg, var(--bd-grid) 1px, transparent 1px);
  background-size: 14px 14px; background-position: -1px -1px; overflow: hidden;
}
.build-notes .bd-bp-word {
  position: absolute; left: 28px; top: 44px; margin: 0; font-size: 64px; font-weight: 900; line-height: 1;
  letter-spacing: .02em; color: var(--white);
}
@supports (-webkit-text-stroke: 1px black) {
  .build-notes .bd-bp-word { color: transparent; -webkit-text-stroke: 1.5px var(--white); }
}
.build-notes .bd-bp-dim-h { position: absolute; left: 28px; right: 34px; top: 128px; height: 0; border-top: 1px solid var(--bd-mark); }
.build-notes .bd-bp-dim-h::before,
.build-notes .bd-bp-dim-h::after { content: ""; position: absolute; top: -6px; width: 0; height: 11px; border-left: 1px solid var(--bd-mark); }
.build-notes .bd-bp-dim-h::before { left: 0; }
.build-notes .bd-bp-dim-h::after { right: 0; }
.build-notes .bd-bp-dim-v { position: absolute; right: 18px; top: 44px; width: 0; height: 64px; border-left: 1px solid var(--bd-mark); }
.build-notes .bd-bp-dim-v::before,
.build-notes .bd-bp-dim-v::after { content: ""; position: absolute; left: -6px; width: 11px; height: 0; border-top: 1px solid var(--bd-mark); }
.build-notes .bd-bp-dim-v::before { top: 0; }
.build-notes .bd-bp-dim-v::after { bottom: 0; }
.build-notes .bd-bp-joint {
  position: absolute; left: 136px; top: 34px; width: 22px; height: 22px; border: 1px dashed var(--bd-mark);
  border-radius: 50%; animation: bd-pulse 4s ease-in-out infinite;
}
.build-notes .bd-bp-note {
  position: absolute; left: 28px; bottom: 14px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .12em; line-height: 1; color: var(--bd-mark);
}
@keyframes bd-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .build-notes .bd-bp-joint { animation: none; } }

/* ── 两大部分的分隔：01 我的读书笔记 / 02 PPT图解 ── */
.build-notes .bd-division {
  gap: 14px; margin: 2.6em 0 1.4em; padding-bottom: 12px; border-bottom: 1px solid var(--lightest-navy);
  font-size: 20px; font-weight: 700; color: var(--white);
}
.build-notes .bd-division .art-num { letter-spacing: .08em; }

/* ── 引言卡 ── */
.build-notes .bd-overview { padding: 26px 28px; background: var(--light-navy); border: 1px solid var(--lightest-navy); border-radius: 12px; scroll-margin-top: 24px; }
.build-notes .bd-label { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--slate); }
.build-notes .bd-overview-title { margin: 0 0 18px; font-size: 24px; font-weight: 900; line-height: 1.45; color: var(--white); }
.build-notes .bd-overview-sub { margin: 0 0 10px; font-size: 16.5px; font-weight: 700; color: var(--green); }
.build-notes .bd-overview p:last-child { margin-bottom: 0; }

/* ── 六个反直觉认知 + 结语 ── */
.build-notes .bd-part { margin-top: 64px; scroll-margin-top: 24px; }
.build-notes .bd-h { margin: 0 0 22px; font-size: 24px; font-weight: 900; line-height: 1.45; color: var(--white); }
.build-notes .bd-kicker { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; letter-spacing: .18em; color: var(--green); }

.build-notes .bd-quote {
  margin: 22px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--green);
  font-family: var(--bd-serif); font-size: 20px; line-height: 1.85; color: var(--white);
}
.build-notes .bd-quote strong { font-weight: 900; }
.build-notes .bd-warn { border-left-color: var(--bd-mark); }
.build-notes .bd-warn strong { color: var(--bd-mark); }

.build-notes .bd-callout { padding: 16px 20px; background: var(--bd-accent-soft); border-radius: 8px; }

/* 五个特征：带序号的分隔清单 */
.build-notes .bd-steps { list-style: none; counter-reset: bd-s; margin: 8px 0 1.1em; border-top: 1px solid var(--lightest-navy); }
.build-notes .bd-step {
  counter-increment: bd-s; position: relative; padding: 12px 0 12px 2.6em;
  border-bottom: 1px solid var(--lightest-navy); line-height: 1.8;
}
.build-notes .bd-step::before {
  content: counter(bd-s); position: absolute; left: 0; top: 13px;
  font-family: var(--mono); font-weight: 700; color: var(--green);
}
.build-notes .bd-step strong { display: block; }

/* 六条铁律：两列 */
.build-notes .bd-rules { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 8px 0 1.1em; }
.build-notes .bd-rule { padding: 14px 0; border-top: 1px solid var(--lightest-navy); font-size: .97em; line-height: 1.8; }
.build-notes .bd-rule strong { display: block; margin-bottom: 2px; }
.build-notes .bd-ratio { display: grid; grid-template-columns: 85fr 15fr; gap: 3px; height: 8px; margin: 10px 0 2px; }
.build-notes .bd-ratio i { display: block; border-radius: 2px; background: var(--green); }
.build-notes .bd-ratio i + i { background: var(--lightest-navy); }

/* 三个无形细节 */
.build-notes .bd-marks { list-style: none; display: grid; gap: 14px; margin: 8px 0 1.1em; }
.build-notes .bd-mark { padding-left: 18px; border-left: 2px solid var(--lightest-navy); line-height: 1.8; }
.build-notes .bd-mark strong { display: block; }

/* 决策比较表 */
.build-notes .bd-table-wrap { overflow-x: auto; margin: 16px 0 22px; border: 1px solid var(--lightest-navy); border-radius: 8px; }
.build-notes .bd-table-wrap:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.build-notes .bd-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.build-notes .bd-table th,
.build-notes .bd-table td { padding: 11px 14px; border-bottom: 1px solid var(--lightest-navy); text-align: left; vertical-align: top; }
.build-notes .bd-table thead th { background: var(--light-navy); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; color: var(--slate); }
.build-notes .bd-table tbody tr:last-child > * { border-bottom: 0; }
.build-notes .bd-table tbody th { color: var(--white); white-space: nowrap; }
.build-notes .bd-row-key th { color: var(--green); }

/* 结语 */
.build-notes .bd-closing {
  margin: 4px 0 26px; padding: 0; border: 0;
  font-family: var(--bd-serif); font-size: clamp(26px, 3vw + 13px, 35px); line-height: 1.5;
}
.build-notes .bd-closing strong { color: var(--green); font-weight: 900; }
.build-notes .bd-question { padding-left: 20px; border-left: 3px solid var(--green); font-family: var(--bd-serif); font-size: 20px; line-height: 1.85; }

/* ── PPT 图解：整栏 16:9，点开进入共用看大图层（reading-viewer.js） ── */
.build-notes .bd-slides { scroll-margin-top: 24px; }
.build-notes .bd-slides .bd-division { margin-top: 3.2em; }
.build-notes .bd-deck-intro { margin: -6px 0 22px; font-size: 14px; color: var(--slate); }
.build-notes .bd-deck { display: grid; gap: 28px; }
.build-notes .bd-slide { margin: 0; }
.build-notes .bd-slide img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--lightest-navy);
  border-radius: 6px; background: var(--light-navy); transition: border-color .15s;
}
.build-notes .bd-slide img:hover { border-color: var(--green); }
.build-notes .bd-slide-cap { margin-top: 8px; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--slate); }

/* 内容区较窄时蓝图让位给目录 */
@media (max-width: 1100px) {
  .build-notes .bd-top { grid-template-columns: minmax(0, 1fr); }
  .build-notes .bd-blueprint { display: none; }
}
@media (max-width: 900px) {
  .build-notes .bd-rules { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .build-notes { font-size: 16px; line-height: 1.9; }
  .build-notes .bd-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .build-notes .bd-toc-item { font-size: 13.5px; }
  .build-notes .bd-division { margin-top: 2.2em; font-size: 19px; }
  .build-notes .bd-overview { padding: 20px 18px; }
  .build-notes .bd-overview-title { font-size: 21px; }
  .build-notes .bd-part { margin-top: 52px; }
  .build-notes .bd-h { font-size: 21px; }
  .build-notes .bd-kicker { font-size: 13px; }
  .build-notes .bd-quote, .build-notes .bd-question { padding-left: 16px; font-size: 18px; }
  .build-notes .bd-callout { padding: 14px 16px; }
  .build-notes .bd-deck { gap: 22px; }
}
