/* mingbaiju.com — 频道资料站。来源页不做动效:来查东西的人,动效只挡路。
   2026-09-04 改版:纸上账本。三种表面(页底/内容面/批注面),金色只当元数据色,
   数字可扫(tabular-nums + 事实标题行加重),批注两身份(口径=金边,更正=墨边)。
   依据:Grok/Codex 双设计评审共识 + 官方 frontend-design 技能;禁动效、禁衬线标题、禁纹理。 */

:root {
  --paper: #faf8f2;        /* 页底 */
  --sheet: #fffdf9;        /* 内容面:表格、手机条目标题格、页眉 */
  --note-bg: #f8efdb;      /* 批注面:仅口径提醒用 */
  --ink: #1c1a17;
  --ink-soft: #4a453d;
  --ink-faint: #6d675d;
  --rule: #ddd6c8;
  --rule-soft: #ebe5d9;
  --gold: #9a6f10;         /* 元数据色:条目编号、时间码、列名、批注边 */
  --corr: #8a4a35;         /* 更正文字:偏褐,不做警报红 */
  --link: #1d5c8a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 22px; }

/* ---- 页眉 ---- */
header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--sheet);
}
header.site .wrap { padding-top: 20px; padding-bottom: 16px; }
.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}
.brand .dom { color: var(--ink-faint); font-weight: 400; font-size: 14px; letter-spacing: 0.06em; margin-left: 10px; }
nav.site { margin-top: 8px; font-size: 15px; }
nav.site a { color: var(--link); text-decoration: none; margin-right: 18px; }
nav.site a:hover { text-decoration: underline; }
nav.site a.here { color: var(--ink); font-weight: 600; }

/* ---- 正文 ---- */
main { padding: 34px 0 60px; }

h1 { font-size: 30px; line-height: 1.4; margin: 0 0 6px; letter-spacing: 0.01em; }
h2 {
  font-size: 22px;
  margin: 52px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rule);
}
h2[id] { scroll-margin-top: 16px; }
h3 { font-size: 18px; margin: 30px 0 10px; }
p { margin: 0 0 16px; }
a { color: var(--link); }
strong { font-weight: 700; }
code {
  background: #f0ece2;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
main hr { display: none; }   /* h2 底边已是分节线,不叠第二道 */

.lede { font-size: 18px; color: var(--ink-soft); }

.back-to-toc {
  float: right;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-faint);
  padding: 4px 0 4px 12px;   /* 手机上留够点击面 */
}

/* 顶部说明(md 引用段):是使用前提,不是主内容——降级,细墨线,不套框 */
blockquote {
  margin: 20px 0 28px;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--rule);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}
blockquote p { margin: 0 0 10px; }
blockquote p:last-child { margin-bottom: 0; }
blockquote strong { color: var(--ink); }

ul, ol { padding-left: 24px; margin: 0 0 18px; }
li { margin-bottom: 8px; }

/* ---- 批注:两种身份 ---- */
aside.scope-note {
  background: var(--note-bg);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
}
aside.scope-note p { margin: 0 0 10px; }
aside.scope-note ul { margin-bottom: 0; }
aside.correction {
  border-left: 3px solid var(--ink-soft);
  padding: 10px 18px;
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
aside.correction p { margin: 0; }
.corr { color: var(--corr); }

/* ---- 表格 ---- */
.tablewrap { overflow-x: auto; margin: 0 0 26px; -webkit-overflow-scrolling: touch; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 15px;
  line-height: 1.75;
  background: var(--sheet);
  font-variant-numeric: tabular-nums;
}
th, td {
  border: 1px solid var(--rule-soft);
  padding: 11px 13px;
  vertical-align: top;
  text-align: left;
}
th {
  background: var(--sheet);
  border-bottom: 2px solid var(--rule);
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-soft);
}

/* 条目表(数据/事件/观点与引语):事实标题行加重一档,细节行沉下去,编号是金色路标 */
table.entries td strong { font-size: 16px; }
table.entries td small {
  display: block;
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-faint);
}
table.entries td:first-child {
  color: var(--gold);
  font-weight: 700;
  text-align: right;
  width: 3.2em;
  font-size: 14px;
}
table.entries td:last-child { font-size: 14px; line-height: 1.8; }

/* ---- 目录:路标,不是卡片 ---- */
.toc { margin: 26px 0 10px; }
.toc-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--ink-soft); }
.toc ol { margin: 0; padding-left: 22px; font-size: 15.5px; }
.toc li { margin-bottom: 3px; }

/* ---- 首页视频卡 ---- */
.epi {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--sheet);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.epi h3 { margin: 0 0 6px; font-size: 19px; }
.epi p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15.5px; }
.epi .links a { margin-right: 18px; font-size: 15px; }

.note {
  background: var(--note-bg);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

/* ---- 署名条目 ---- */
.credit {
  border-top: 1px solid var(--rule-soft);
  padding: 14px 0;
  font-size: 15.5px;
}
.credit:first-of-type { border-top: 1px solid var(--rule); }
.credit .t { font-weight: 700; }
.credit .m { color: var(--ink-soft); }
.credit .pos {
  color: var(--gold);
  font-weight: 700;
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
}

/* ---- 页脚 ---- */
footer.site {
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-size: 14px;
  padding: 22px 0 34px;
}
footer.site a { color: var(--link); }
footer.site p { margin: 0 0 6px; }

/* ---- 手机 ---- */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  h1 { font-size: 25px; }
  h2 { font-size: 20px; margin-top: 40px; }
  .brand .dom { display: block; margin: 2px 0 0; }

  /* 表格改"一条一块",条与条之间用细线,不描整框(几十个框比内容还显眼) */
  .tablewrap { overflow: visible; }
  table { display: block; min-width: 0; background: none; }
  thead { display: none; }
  tbody, tr, td { display: block; width: auto; }
  tr, tbody tr:nth-child(even) {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--rule);
    margin: 0;
    padding: 4px 0 14px;
  }
  tbody tr:first-child { border-top: 0; }
  td { border: 0; padding: 7px 0; }
  td::before {
    content: attr(data-l);
    display: block;
    font-size: 12.5px;
    line-height: 1.5;
    letter-spacing: 0.06em;
    color: var(--gold);
    margin-bottom: 2px;
  }
  td:first-child {
    font-weight: 700;
    background: var(--sheet);
    padding: 8px 12px;
    border-radius: 2px;
  }
  td:first-child::before { content: none; }

  /* 条目表:编号在手机上变行首小金标,事实格当卡片主体 */
  table.entries td:first-child {
    width: auto;
    text-align: left;
    background: transparent;
    padding: 6px 0 0;
    font-size: 13px;
  }
  table.entries td:first-child::after { content: ""; }
}

/* ---- 打印:这页要挂好几年,存 PDF / 打印是档案通道 ---- */
@media print {
  header.site, footer.site, .toc, .back-to-toc { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.55; }
  .wrap { max-width: none; padding: 0; }
  table { min-width: 0; font-size: 9pt; background: #fff; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  aside.scope-note, aside.correction, .note { background: #fff; }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #555;
  }
}

/* 页眉 logo(2026-09-04:换用竖屏底板同款思源宋体金字牌) */
.brandlogo { height: 38px; display: inline-block; vertical-align: middle; }
@media (max-width: 640px) { .brandlogo { height: 28px; } }

/* 页眉文字牌(2026-09-04:弃缩图 logo,按 FT/NYT 式文字排版;结构仿频道字牌"财经小·明白局大") */
.brand .b1 { font-size: 15px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.12em; margin-right: 6px; }
.brand .b2 { font-size: 26px; font-weight: 800; color: #6b4a0b; letter-spacing: 0.06em; }
@media (max-width: 640px) { .brand .b2 { font-size: 22px; } }

/* ============================================================
   2026-09-05 加动效(Tracy 定)。三条自律:
   ① 不让任何数字"动着出现"——来查数的人不该等;
   ② 全部只动 transform / opacity,不动布局;
   ③ prefers-reduced-motion 一律退回静止。
   实现走 CSS 滚动驱动动画(animation-timeline),不引 JS。
   ============================================================ */

/* 顶部阅读进度线:长页面滚到哪一眼看得见 */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #6b4a0b, var(--gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 50;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress {
    animation: progress-grow linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes progress-grow { to { transform: scaleX(1); } }

/* 段落进场:轻微上移 + 淡入,只播一次。表格整块进,不逐行动 */
@supports (animation-timeline: view()) {
  main h2,
  main .epi,
  main .tablewrap,
  main aside.scope-note,
  main .credit {
    animation: rise-in linear both;
    animation-timeline: view(block);
    animation-range: entry 0% entry 55%;
  }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* 链接:下划线从左扫出,不是浏览器默认那条直接闪出来的 */
main a:not(.epi .links a),
nav.site a,
footer.site a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: 1px;
}
main a:hover, nav.site a:hover, footer.site a:hover { background-size: 100% 1px; }
nav.site a.here { background-size: 100% 2px; }

/* 片子卡片:可点的东西看着就该能点 */
.epi {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}
.epi:hover {
  transform: translateY(-3px);
  border-color: #cbbf9f;
  box-shadow: 0 10px 28px rgba(107, 74, 11, 0.10);
}
.epi .links a {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.epi .links a:hover { transform: translateX(3px); }

/* 首页折线:实际利率(10 年期 TIPS),从源表现读。它是内容不是装饰,所以带端点读数和出处 */
.hero-chart { position: relative; margin: 8px 0 30px; }
.chart-toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 0 0 8px; }
.chart-range-label { color: var(--ink-faint); font-size: 11px; }
.chart-ranges { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet); }
.chart-ranges button {
  appearance: none;
  border: 0;
  border-radius: 5px;
  padding: 5px 9px;
  background: transparent;
  color: var(--ink-faint);
  font: inherit;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.chart-ranges button:hover { color: var(--gold); }
.chart-ranges button:active { transform: translateY(1px); }
.chart-ranges button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.chart-ranges button.active { background: var(--gold); color: var(--paper); }
.chart-stage { position: relative; }
.realyield { display: block; width: 100%; height: 118px; overflow: visible; }
.realyield .base { stroke: var(--rule); stroke-width: 1; fill: none; }
.realyield .year-guide-lines line { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.year-labels { position: absolute; inset: 0; pointer-events: none; }
.year-labels span { position: absolute; top: 0; transform: translateX(5px); color: var(--ink-faint); font-size: 9px; line-height: 1; }
.realyield .line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: draw-line 2.4s cubic-bezier(0.33, 1, 0.68, 1) 0.3s forwards;
}
.realyield .line.range-swap { stroke-dasharray: none; stroke-dashoffset: 0; animation: range-swap 0.22s ease-out; }
.realyield .focus-line {
  stroke: color-mix(in srgb, var(--gold) 40%, transparent);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  pointer-events: none;
}
.realyield .focus-dot {
  fill: var(--paper);
  stroke: var(--gold);
  stroke-width: 2.25;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  pointer-events: none;
}
.realyield .chart-hit { fill: transparent; cursor: crosshair; touch-action: pan-y; }
.realyield .chart-hit:focus { outline: none; }
.hero-chart.is-reading .focus-line,
.hero-chart.is-reading .focus-dot { opacity: 1; }
.chart-tip {
  position: absolute;
  z-index: 1;
  min-width: 112px;
  padding: 7px 10px 8px;
  border: 1px solid color-mix(in srgb, var(--gold) 32%, var(--rule));
  border-radius: 7px;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  box-shadow: 0 7px 22px rgba(75, 57, 22, 0.12);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 10px)) scale(0.97);
  transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}
.chart-tip.tip-below { transform: translate(-50%, 10px) scale(0.97); }
.chart-tip.tip-left { transform: translate(-100%, calc(-100% - 10px)) scale(0.97); }
.chart-tip.tip-left.tip-below { transform: translate(-100%, 10px) scale(0.97); }
.chart-tip.tip-right { transform: translate(0, calc(-100% - 10px)) scale(0.97); }
.chart-tip.tip-right.tip-below { transform: translate(0, 10px) scale(0.97); }
.hero-chart.is-reading .chart-tip { opacity: 1; }
.hero-chart.is-reading .chart-tip:not(.tip-below):not(.tip-left):not(.tip-right) { transform: translate(-50%, calc(-100% - 10px)) scale(1); }
.hero-chart.is-reading .chart-tip.tip-below { transform: translate(-50%, 10px) scale(1); }
.hero-chart.is-reading .chart-tip.tip-left { transform: translate(-100%, calc(-100% - 10px)) scale(1); }
.hero-chart.is-reading .chart-tip.tip-left.tip-below { transform: translate(-100%, 10px) scale(1); }
.hero-chart.is-reading .chart-tip.tip-right { transform: translate(0, calc(-100% - 10px)) scale(1); }
.hero-chart.is-reading .chart-tip.tip-right.tip-below { transform: translate(0, 10px) scale(1); }
.chart-tip .tip-date { display: block; white-space: nowrap; }
.chart-tip .tip-value { display: block; margin-top: 1px; color: var(--gold); font-size: 16px; }
.chart-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.chart-notes { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.chart-hint { flex: 0 0 auto; margin: 5px 0 0; color: var(--ink-faint); font-size: 11px; text-align: right; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes range-swap { from { opacity: 0.45; } to { opacity: 1; } }

.hero-chart figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.hero-chart .cap-l, .hero-chart .cap-r { color: var(--gold); font-weight: 700; white-space: nowrap; }
.hero-chart .cap-mid { color: var(--ink-soft); font-weight: 400; text-align: center; }
.hero-chart .chart-src { margin: 5px 0 0; font-size: 12px; line-height: 1.6; color: var(--ink-faint); }
@media (max-width: 640px) {
  .chart-toolbar { justify-content: space-between; }
  .chart-ranges button { padding: 5px 7px; }
  .realyield { height: 92px; }
  .chart-tip { min-width: 104px; padding: 6px 8px 7px; }
  .chart-notes { display: block; }
  .chart-hint { text-align: left; }
  .hero-chart figcaption { font-size: 12px; }
  .hero-chart .cap-mid { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .progress { display: none; }
  main h2, main .epi, main .tablewrap, main aside.scope-note, main .credit { animation: none; opacity: 1; transform: none; }
  .epi, .epi .links a, main a, nav.site a, footer.site a { transition: none; }
  .realyield .line { stroke-dashoffset: 0; animation: none; }
  .chart-tip { transition: none; }
  .chart-ranges button { transition: none; }
  .realyield .line.range-swap { animation: none; }
}
