/* wp-read.css — 白皮书详情页新排版（2026-11-14，补丁 CB）
   McKinsey 式阅读排版：正文和图表同宽（936，WP_WIDTH_CC：整本一个宽度）、左侧 200 目录栏、章节卡配 3:2 摄影图。
   只作用在 Info.vue 根节点 .wpr 之内；正文版式由 wp-read.js 生成（块里的字号、间距写在行内），
   这里只管页面骨架、页头、章节卡、目录栏、节标题和几处沿用旧组件的外观（来源卡、自查卡、PDF 卡）。
   色值与设计稿一致：INK #14363F / TEAL #1D4752 / GOLD #BE9B5A / GOLD7 #8A6D38 / IVORY #FBFAF6。 */

.wpr {
  --r-ink: #14363F; --r-teal: #1D4752; --r-teal2: #2F6E72; --r-teall: #EAF3F2;
  --r-gold: #BE9B5A; --r-gold7: #8A6D38; --r-ivory: #FBFAF6;
  --r-text: #353B39; --r-sub: #4A514E; --r-mute: #6B736F; --r-line: #E2E5E0; --r-line2: #C9CDC8;
  /* WP_FONT_CC（补丁 CC，2026-11-15）：标题统一用全站的标题字体 MiSans（main.js 自托管），不再用衬线体（品牌规范：不用衬线体）；正文苹方 / 雅黑；数字和编号 JetBrains Mono */
  --r-display: MiSans, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --r-serif: var(--r-display);
  --r-sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --r-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'PingFang SC', 'Microsoft YaHei', monospace;
  background: var(--r-ivory);
  color: var(--r-text);
  font-family: var(--r-sans);
  -webkit-font-smoothing: antialiased;
}
.wpr *, .wpr *::before, .wpr *::after { box-sizing: border-box; }
.wpr .wpr-wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
@media (min-width: 1080px) { .wpr .wpr-wrap { width: min(1200px, calc(100% - 64px)); } }

/* ---------- 页头 ---------- */
.wpr .wpr-top { background: var(--r-ivory); padding: 24px 0 36px; }
.wpr .wpr-crumb { margin: 0 0 22px; font-size: 13px; line-height: 20px; color: var(--r-mute); }
.wpr .wpr-crumb a { color: inherit; text-decoration: none; }
.wpr .wpr-crumb a:hover { color: var(--r-teal); }
.wpr .wpr-crumb .sep { margin: 0 8px; color: var(--r-line2); }
.wpr .wpr-crumb .cur { color: var(--r-text); }
.wpr .wpr-hero { margin: 0; max-width: none; }
.wpr .wpr-eyebrow { margin: 0; font-family: var(--r-mono); font-size: 11.5px; line-height: 22px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--r-gold7); }
html.wpx .wpr h1.wp-title { margin: 10px 0 0; font-family: var(--r-display); font-size: 30px; line-height: 39px; font-weight: 520; color: var(--r-ink); text-wrap: balance; }
.wpr .wpr-rule { width: 56px; height: 3px; margin: 18px 0; background: var(--r-gold); }
.wpr .wp-summary { margin: 0; font-size: 19px; line-height: 33px; color: var(--r-sub); text-wrap: pretty; }
.wpr .wp-summary p { margin: 0; }
.wpr .wpr-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; font-size: 13px; line-height: 26px; }
/* wp-visual.js 的 fHeader 把原来的信息行换成 .wpx-meta；这里按设计稿重画 */
html.wpx .wpr .wpx-meta { margin: 18px 0 0; padding: 0; border: 0; gap: 8px 12px; font-size: 13px; line-height: 26px; }
html.wpx .wpr .wpx-meta .cat { padding: 2px 12px; border: 0; border-radius: 999px; background: var(--r-teall); color: var(--r-teal); font-size: inherit; font-weight: 600; line-height: 22px; }
html.wpx .wpr .wpx-meta .mm { font-family: var(--r-mono); font-size: inherit; color: var(--r-mute); }
html.wpx .wpr .wpx-meta .sep { display: none; }
html.wpx .wpr .wpx-meta .wpx-pdflink { font-size: inherit; font-weight: 600; color: var(--r-teal); border: 0; text-decoration: underline; text-decoration-color: var(--r-line2); text-underline-offset: 4px; line-height: 26px; }
html.wpx .wpr .wpx-meta .wpx-pdflink:hover { color: var(--r-ink); }
html.wpx .wpr .wpx-hero-grid { display: block; }
html.wpx .wpr .wpx-hero-main { max-width: 800px; }
html.wpx .wpr .wpx-cover-pdf { margin-top: 14px; color: var(--r-gold7); font-size: 14px; }
@media (min-width: 1080px) {
  .wpr .wpr-top { padding: 40px 0 72px; }
  .wpr .wpr-crumb { margin-bottom: 48px; }
  .wpr .wpr-eyebrow { font-size: 13px; }
  html.wpx .wpr h1.wp-title { margin-top: 18px; font-size: 52px; line-height: 68px; }
  html.wpx .wpr h1.wp-title.wpr-long { font-size: 44px; line-height: 57px; }
  .wpr .wpr-rule { margin: 28px 0; }
  .wpr .wp-summary { font-size: 22px; line-height: 40px; }
  html.wpx .wpr .wpx-meta { margin-top: 28px; gap: 10px 18px; font-size: 14px; }
  html.wpx .wpr .wpx-hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 72px; }
  html.wpx .wpr .wpx-hero-main { flex: 1 1 auto; max-width: 800px !important; }
  html.wpx .wpr .wpx-hero-covcol { flex: 0 0 288px; }
  html.wpx .wpr .wpx-cover-pdf { text-align: center; }
}

/* ---------- 章节卡 ---------- */
.wpr .wpr-chapters { background: #fff; border-top: 1px solid var(--r-line); }
.wpr .wpr-ch-in { padding: 28px 0 32px; }
.wpr .wpr-ch-label { margin: 0; font-family: var(--r-mono); font-size: 11.5px; line-height: 20px; font-weight: 600; letter-spacing: .16em; color: var(--r-gold7); }
.wpr .wpr-ch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; margin-top: 16px; }
.wpr .wpr-ch { display: block; color: inherit; text-decoration: none; }
.wpr .wpr-ch-ph { aspect-ratio: 3 / 2; background: #F5F5F2; overflow: hidden; }
.wpr .wpr-ch-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wpr .wpr-ch-no { margin-top: 9px; font-family: var(--r-mono); font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: .12em; color: var(--r-gold7); }
.wpr .wpr-ch-t { margin-top: 2px; font-family: var(--r-display); font-size: 15px; line-height: 23px; font-weight: 520; color: var(--r-ink); text-wrap: balance; }
.wpr .wpr-ch-d { margin: 4px 0 0; font-size: 12.5px; line-height: 20px; color: var(--r-sub); text-wrap: pretty; }
.wpr .wpr-ch:hover .wpr-ch-t { color: var(--r-teal); }
@media (min-width: 1080px) {
  .wpr .wpr-ch-in { padding: 44px 0 56px; }
  .wpr .wpr-ch-label { font-size: 12px; }
  .wpr .wpr-ch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; margin-top: 24px; }
  .wpr .wpr-ch-no { margin-top: 12px; }
  .wpr .wpr-ch-t { font-size: 17px; line-height: 26px; }
  .wpr .wpr-ch-d { font-size: 13.5px; line-height: 22px; }
}

/* ---------- 正文骨架：左目录栏 + 单栏正文 ---------- */
.wpr .wpr-body { border-top: 1px solid var(--r-line); }
.wpr .wpr-grid { display: block; padding: 28px 0 64px; }
.wpr .wpr-rail { display: none; }
.wpr .wpr-main { min-width: 0; }
@media (min-width: 1080px) {
  .wpr .wpr-grid { display: grid; grid-template-columns: 200px minmax(0, 936px); column-gap: 64px; padding: 72px 0 120px; }
  .wpr .wpr-rail { display: block; align-self: start; position: sticky; top: 96px; }
}
.wpr .wpr-rail-label { margin: 0 0 12px; font-family: var(--r-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; color: var(--r-mute); }
.wpr .wpr-rail-link { display: flex; gap: 10px; padding: 7px 0 7px 14px; border-left: 2px solid var(--r-line); font-size: 14px; line-height: 22px; color: var(--r-sub); text-decoration: none; transition: color .15s; }
.wpr .wpr-rail-link .n { font-family: var(--r-mono); font-size: 12px; color: var(--r-mute); }
.wpr .wpr-rail-link:hover { color: var(--r-ink); }
.wpr .wpr-rail-link.on { border-left-color: var(--r-gold); color: var(--r-ink); font-weight: 600; }
.wpr .wpr-rail-link.on .n { color: var(--r-gold7); }
.wpr .wpr-rail-pdf { display: block; width: 100%; margin: 24px 0 0; padding: 10px 14px; border: 1px solid var(--r-teal); border-radius: 999px; background: #fff; color: var(--r-teal); font-family: inherit; font-size: 14px; line-height: 22px; font-weight: 600; text-align: center; cursor: pointer; transition: background .15s, color .15s; }
.wpr .wpr-rail-pdf:hover { background: var(--r-teal); color: #fff; }

/* 节：序号 + 衬线节标题，节与节之间一条细线 */
.wpr .wpr-sec { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; scroll-margin-top: 96px; }
.wpr .wpr-sec ~ .wpr-sec { margin-top: 50px; padding-top: 36px; border-top: 1px solid var(--r-line2); }
.wpr .wpr-sec-h { margin: 0 0 24px; }
.wpr .wpr-sec-no { font-family: var(--r-mono); font-size: 13px; line-height: 24px; font-weight: 600; letter-spacing: .14em; color: var(--r-gold7); }
.wpr .wpr-sec-t { margin: 6px 0 0; font-family: var(--r-display); font-size: 27px; line-height: 36px; font-weight: 520; color: var(--r-ink); text-wrap: balance; }
@media (min-width: 1080px) {
  .wpr .wpr-sec ~ .wpr-sec { margin-top: 96px; padding-top: 56px; }
  .wpr .wpr-sec-h { margin-bottom: 36px; }
  .wpr .wpr-sec-no { font-size: 15px; }
  .wpr .wpr-sec-t { margin-top: 10px; font-size: 40px; line-height: 54px; }
}

/* ---------- 正文流（wp-read.js 生成） ---------- */
.wpr .wpr-flow { width: 100%; max-width: 936px; font-family: var(--r-sans); }
/* WP_WIDTH_CC（补丁 CC，2026-11-15）：Daniel「整本排版保持一整本的完整格式，相同宽度」——正文、小标题、表格、图、卡片都占满这一栏（电脑上 936） */
.wpr .wpr-flow > * { max-width: 100%; }
/* WP_SPACE_CC：块（图、表、卡片、结论框、自查卡）统一上 48 下 52（手机 36 / 40）；每节第一块紧贴节标题 */
.wpr .wpr-flow > :first-child { margin-top: 0 !important; }
.wpr .wpr-flow h3, .wpr .wpr-flow h4, .wpr .wpr-flow p, .wpr .wpr-flow ul, .wpr .wpr-flow ol, .wpr .wpr-flow li, .wpr .wpr-flow figure { font-family: inherit; }
/* WP_FONT_CC：正文流里的小标题、图表标题（wp-read.js 写在行内的是苹方）也用标题字体 */
.wpr .wpr-flow h3, .wpr .wpr-flow h4 { font-family: var(--r-display) !important; font-weight: 520 !important; }
.wpr .wpr-flow .wpr-w { max-width: none; }
.wpr .wpr-flow figure { max-width: none; }
/* 表格原件：留在页面里给搜索与读屏，不画出来 */
.wpr .wpr-hid { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wpr .wpr-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wpr .wpr-flow a { transition: color .15s; }
.wpr .wpr-flow a:hover { color: var(--r-ink); }

/* WP_JUSTIFY_CC（补丁 CC，2026-11-15）：Daniel「所有文章两端对齐」——正文段落、列表、摘要、数据来源都两端对齐（CB 时是左对齐） */
.wpr .wpr-flow p, .wpr .wpr-flow li, .wpr .wpr-flow .wpx-trust p, .wpr .wpr-src li { text-align: justify; text-wrap: wrap !important; } /* JUSTIFY_WRAP_CT（12-02）：盖掉段落行内的 text-wrap: pretty，iPhone Safari 上两者同用会把字距拉开 */
/* 页头摘要只有两三行，两端对齐会把第一行拉开（行尾放不下英文词时），保持左对齐 */
.wpr .wp-summary { text-align: left; }
.wpr .wpr-flow .wpx-trust-body { padding: 0; gap: 12px; }
.wpr .wpr-flow .wpx-trust-about { padding: 14px 0 0; border-top: 1px solid var(--r-line); background: none; }
.wpr .wpr-flow .wpx-trust-foot { padding: 14px 0 0; border-top: 1px solid var(--r-line); background: none; }
html.wpx .wpr .wpr-flow .wpx-trust-group p, html.wpx .wpr .wpr-flow .wpx-trust-about p { font-size: 14px !important; line-height: 25px !important; color: var(--r-sub) !important; text-align: justify; }
html.wpx .wpr .wpr-flow .wpx-trust-group .g, html.wpx .wpr .wpr-flow .wpx-trust-about .g { font-size: 13px; color: var(--r-ink); }
html.wpx .wpr .wpr-flow .wpx-trust-clamp { max-height: 76px; }
html.wpx .wpr .wpr-flow .wpx-trust-clamp.open { max-height: 900px; }

/* 一分钟自查（可勾选，沿用旧组件的存取方式） */
.wpr .wpr-ck-item { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--r-line); cursor: pointer; }
.wpr .wpr-ck-item .box { flex: none; width: 18px; height: 18px; margin-top: 4px; border: 1.5px solid var(--r-line2); border-radius: 3px; background: #fff; position: relative; transition: background .12s, border-color .12s; }
.wpr .wpr-ck-item.on .box { background: var(--r-teal); border-color: var(--r-teal); }
.wpr .wpr-ck-item.on .box::after { content: ''; position: absolute; left: 4.5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.wpr .wpr-ck-item:focus-visible { outline: 2px solid var(--r-teal2); outline-offset: 2px; }
@media (min-width: 1080px) { .wpr .wpr-ck-item .box { margin-top: 6px; } }
.wpr .wpr-ck-foot { margin: 8px 0 16px; font-size: 14px; line-height: 24px; color: var(--r-sub); text-wrap: pretty; }
.wpr .wpr-ck-foot .n { font-family: var(--r-mono); font-weight: 600; color: var(--r-ink); }

/* 数据来源与核验（沿用旧组件的折叠，只换外观） */
.wpr .wpr-flow .wpx-trust { margin: 40px 0 0; padding: 18px 0 0; border: 0; border-top: 2px solid var(--r-ink); border-radius: 0; background: none; box-shadow: none; color: var(--r-text); }
.wpr .wpr-flow .wpx-trust-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 8px; padding: 0; border: 0; background: none; }
.wpr .wpr-flow .wpx-trust-head .t { margin: 0; font-family: var(--r-display); font-size: 18px; line-height: 30px; font-weight: 520; color: var(--r-ink); }
.wpr .wpr-flow .wpx-trust-head .m { font-family: var(--r-mono); font-size: 12px; color: var(--r-gold7); }
.wpr .wpr-flow .wpx-trust p, .wpr .wpr-flow .wpx-trust li { color: var(--r-sub); font-size: 14px; line-height: 25px; }
.wpr .wpr-flow .wpx-trust .g { color: var(--r-ink); font-weight: 600; }
.wpr .wpr-flow .wpx-trust-toggle { color: var(--r-teal); font-weight: 500; }
@media (min-width: 1080px) { .wpr .wpr-flow .wpx-trust { margin-top: 56px; padding-top: 24px; } .wpr .wpr-flow .wpx-trust-head .t { font-size: 20px; } }

/* 页面级「数据来源与核验」（后台 sourceNotes，有的书没有） */
.wpr .wpr-src { margin-top: 56px; max-width: none; padding-top: 18px; border-top: 2px solid var(--r-ink); }
.wpr .wpr-src-t { margin: 0 0 10px; font-family: var(--r-display); font-size: 18px; line-height: 30px; font-weight: 520; color: var(--r-ink); }
.wpr .wpr-src ul { margin: 0; padding: 0; list-style: none; }
.wpr .wpr-src li { margin: 0 0 6px; font-size: 14px; line-height: 25px; color: var(--r-sub); text-wrap: pretty; }
.wpr .wpr-src-m { margin: 12px 0 0; font-family: var(--r-mono); font-size: 12px; color: var(--r-mute); }
/* 某个版块排版出错时，保留原件（wp-visual.js 增强后的样子） */
.wpr .wpr-raw { margin: 0 0 26px; }
/* 页尾承接（咨询 / 接着读） */
.wpr .wpr-main > .wpx-foot { margin-top: 40px; }

/* 页尾的领取卡：全页唯一一块深色 */
.wpr .wpr-main > .wpx-pdf, .wpr .wpr-main > div[style*="linear-gradient"] { margin-top: 56px; }
@media (min-width: 1080px) { .wpr .wpr-main > .wpx-pdf, .wpr .wpr-main > div[style*="linear-gradient"] { margin-top: 96px; } }
.wpr .wpr-main > section:not(.wpr-sec) { margin-top: 40px; }
.wpr .wpr-foot-host { margin-top: 40px; }

/* 手机端：旧的吸顶进度条和折叠目录不再用 */
.wpr .wpx-sticky, .wpr .wpx-mtoc { display: none !important; }
@media (prefers-reduced-motion: reduce) { .wpr * { transition: none !important; } }
