/* =============================================================================
   迹录 · 桌面版（全部规则 ≥769px，移动端一个字不动）
   -----------------------------------------------------------------------------
   设计定稿（2026-10-23，design）。字号阶梯照此落，不要自己补档：

     | 角色        | 尺寸 / 行高               | 字重 |
     |-------------|---------------------------|------|
     | h1          | clamp(56, 4.4vw, 64)/1.16 | 400  |
     | 区块标题 h2 | 24 / 32                   | 600  |
     | 卡片标题    | 19 / 27                   | 600  |
     | 副标题      | 19 / 30                   | 400  |
     | 阅读正文    | 17 / 32                   | 400  |
     | UI 正文     | 16 / 26                   | 400  |
     | 元信息      | 14 / 20                   | 400  |
     | 标签/面包屑 | 13 / 18                   | 500  |

   三条实现约定：
   1) 选择器一律 `html body ...` 前缀。各页的 <style> 是内联块，index.html 有一块
      在 </head> 之后（第 1633 行）、journey.html 也有（第 2411 行），靠"放在最后"
      压不住，只能靠特异性。
   2) 容器口径：nav 与 anon-bar 收成同一条 1200 内容边。
      anon-bar 自身 max-width:1200 + padding-inline:16 ⇒ 内容左边 = (100% - 1200)/2 + 16。
      nav 满宽，用同一个算式反推 padding-inline，两者在 ≥1200 精确重合；
      769–1199 落到 16px，与 anon-bar 的 padding 相同。
   3) 正文列 680 是"文字宽"，不是容器宽：
      容器 764 − 容器 padding 24×2 − 卡内 .day-body 18×2 = 680（17px ≈ 40 字/行）。
      正文图是 width:100%，跟着列宽走，没有写死的 720，不会溢出。
   ============================================================================= */

@media (min-width: 769px) {

  /* ---------- 1. 字族：拉丁留 Source Sans 3，CJK 显式声明 --------------------
     顺序不能反：把 PingFang/雅黑 放到前面会连拉丁一起接管。
     Windows 上没有 300 的微软雅黑，h1 的 300 只会渲成发虚的细体，这里提到 400。 */
  html body { font-family: 'Source Sans 3', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, sans-serif; }

  /* ---------- 2. 容器：nav / anon-bar 一条左边 ------------------------------ */
  /* anon-bar 自己就是 max-width:1200 + margin:0 auto + padding-inline:16，不用碰；
     这里只把满宽的 nav 用同一算式推回来。注意别在本档给 .anon-bar 写 margin，
     769–779 会踩到手机圆角浮条的 margin:8px 12px 0。 */
  /* Chrome 83 不认 padding-inline（87+，静默丢弃）：先给物理四边，再留逻辑属性给现代内核 */
  html body .nav {
    padding-left: max(16px, calc((100% - 1200px) / 2 + 16px));
    padding-right: max(16px, calc((100% - 1200px) / 2 + 16px));
    padding-inline: max(16px, calc((100% - 1200px) / 2 + 16px));
  }

  /* ---------- 3. 标题阶梯 --------------------------------------------------- */
  /* 下限 56 = 桌面现状：任何低于现状的下限都是退步（design 20261023 修） */
  html body .hero-title {
    font-size: clamp(56px, 4.4vw, 64px);
    font-weight: 400;
    line-height: 1.16;
  }
  html body .hero-title span { font-weight: 600; }
  html body .hero-sub {
    font-size: 19px;
    line-height: 30px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-inline: auto;
  }
  html body h2 { font-size: 24px; line-height: 32px; font-weight: 600; }

  /* ---------- 4. 卡片标题 / 元信息 ----------------------------------------- */
  html body .tk-title { font-size: 19px; line-height: 27px; font-weight: 600; }
  html body .tk-meta { font-size: 13px; line-height: 18px; font-weight: 500; }
  html body .fan-title { font-size: 19px; line-height: 27px; }
  html body .hero-meta { font-size: 14px; line-height: 20px; }

  /* ---------- 5. 阅读页正文：17/32，列宽 680 ------------------------------- */
  html body .day-story .story-p { font-size: 17px; line-height: 32px; }
  html body .day-story .story-fig figcaption { font-size: 13px; line-height: 18px; }

}

/* 桌面 nav 抬到 64：从 1024 起。769–1023 基本是平板，56 更贴触摸尺寸。
   别用 (pointer:fine) 判——二合一设备会在两种状态间闪。 */
@media (min-width: 1024px) {
  html body .nav { height: 64px; }
  html body .nav-brand { font-size: 20px; }
  html body .nav-menu { font-size: 15px; }
}

/* 正文列宽只在真正有余量的宽度上收窄；1200 以下保持原 720，否则平板反而变挤。 */
@media (min-width: 1200px) {
  html body .days-container { max-width: 764px; }
}

/* =============================================================================
   B 层（2026-10-23，design 定稿）：A + 三件桌面专属
   -----------------------------------------------------------------------------
   1) 详情页 → 右侧 240px 竖排目录。目录由 journey.html 的 buildToc() 建到 body 上，
      几何放不下就不建（placeToc 的判据：正文右缘 + 44 + 240 + 32 ≤ 视口宽）。
      它接管后顶部 chip 条让位——同一信息不出现两遍。
   2) 广场 ≥1400 → 横向轨道换 3 列网格：首屏仍是三张大票根，往下才是网格。
      JS layoutWall() 打 .is-grid 类并只留中间那份副本（三份是给循环轨道用的）。
   3) 票根卡 ≥1280 → 一屏 3 整 + 两半（3.5 格），卡宽 380 封顶；
      这一条在 index.html 的 layoutWall() 里算，CSS 不参与。
   ============================================================================= */

/* 基础态先关掉：这条在媒体查询外，否则 1200 以下 .jp-toc 会以默认 display:block
   掉在 body 末尾，手机阅读页底部冒出一列没样式的按钮。 */
html body .jp-toc { display: none; }

@media (min-width: 1200px) {
  html body .jp-toc {
    position: fixed; top: 88px; width: 240px;
    flex-direction: column; gap: 2px; z-index: 60;
    max-height: calc(100vh - 136px); overflow-y: auto; overscroll-behavior: contain;
    padding-left: 18px; border-left: 1px solid var(--jl-border, #E5EDF5);
    scrollbar-width: thin;
  }
  html body.jp-toc-on .jp-toc { display: flex; }
  /* 容器自身那 2px（列方向）此前没有 83 兜底：.jp-toc-i 内部的 10px 有，容器没有。
     实测 83 态 jp-toc-h|jp-toc-i、jp-toc-i|jp-toc-i 各丢 2px。 */
  html:not(.fg-ok) body .jp-toc > * + * { margin-top:2px }
  html body.jp-toc-on .jl-rail { display: none !important; }
  html body .jp-toc-h {
    font-size: 11.5px; font-weight: 600; letter-spacing: .08em; color: #93A6BE;
    padding: 0 8px 8px;
  }
  html body .jp-toc-i{
    display: flex; align-items: baseline; width: 100%; min-height: 36px;
    padding: 8px; border: 0; border-radius: 8px; background: none; cursor: pointer;
    font: inherit; text-align: left; color: #5F7191;
    -webkit-tap-highlight-color: transparent;
    transition: background .12s ease-out, color .12s ease-out;}
html body .jp-toc-i > * + * { margin-left:10px }   /* 原 gap 10px；Chrome 83 flex 无 gap */
  html body .jp-toc-i:hover { background: #F9EBDD; }
  html body .jp-toc-i[aria-current="location"] { background: #F9EBDD; color: #8B4326; }
  html body .jp-toc-n {
    flex: none; width: 26px; font-size: 12px; font-weight: 600; color: #93A6BE;
    font-variant-numeric: tabular-nums;
  }
  html body .jp-toc-i[aria-current="location"] .jp-toc-n { color: #8B4326; }
  html body .jp-toc-t {
    min-width: 0; font-size: 13px; line-height: 18px; font-weight: 500;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  html body .jp-toc-t i { font-style: normal; margin-left: 6px; font-size: 12px; color: #93A6BE; }
  html body .jp-toc-i[aria-current="location"] .jp-toc-t i { color: #8B4326; }
  html body .jp-toc-i:focus-visible { outline: 2px solid #9E4F2E; outline-offset: 2px; }
/* fv83:auto */@supports not selector(:focus-visible){html body .jp-toc-i:focus{ outline: 2px solid #9E4F2E; outline-offset: 2px; }}


}

@media (min-width: 1400px) {
  html body .tk-sections.is-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 26px; max-width: 1200px; margin: 0 auto;
    padding: 34px 0 60px; overflow: visible; scroll-snap-type: none;
  }
  html body .tk-sections.is-grid > .tk { flex: none; width: auto; min-width: 0; }
  html body .tk-sections.is-grid ~ .rail-btn,
  html body .tk-sections.is-grid ~ .rail-fade { display: none !important; }
}
