﻿/* ============================================================
   首页专用字体（仅 body.home-page 生效）
   - 标题：思源宋体（Noto Serif SC）子集
   - 正文：思源黑体（Noto Sans SC）子集
   - 数字：JetBrains Mono 子集
   字体文件自托管于 static/fonts/，均按首页用字做子集化。
   度量覆盖（ascent/descent）对齐原系统字体，避免行高变化撑开卡片。
   ============================================================ */

@font-face {
  font-family: "Xinji Serif";
  src: url("../fonts/noto-serif-sc-home-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 112%;
  descent-override: 18%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Xinji Serif";
  src: url("../fonts/noto-serif-sc-home-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  ascent-override: 112%;
  descent-override: 18%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Xinji Sans";
  src: url("../fonts/noto-sans-sc-home-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 106%;
  descent-override: 26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Xinji Sans";
  src: url("../fonts/noto-sans-sc-home-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  ascent-override: 106%;
  descent-override: 26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Xinji Mono";
  src: url("../fonts/jetbrains-mono-home-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 106%;
  descent-override: 26%;
  line-gap-override: 0%;
}

/* —— 正文与说明文字 —— */
body.home-page {
  font-family: "Xinji Sans", -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

/* —— 标题与项目名 —— */
body.home-page h1,
body.home-page h2,
body.home-page h3,
body.home-page .brand .logo,
body.home-page .section-title,
body.home-page .today-voice .label,
body.home-page .film-head .label,
body.home-page .otd-person,
body.home-page .otd-title,
body.home-page .film-name {
  font-family: "Xinji Serif", "Songti SC", "STSong", "SimSun", serif;
}
/* 人物名旁的国别/时代保持正文无衬线 */
body.home-page .otd-country {
  font-family: "Xinji Sans", -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

/* 这两处小标签在原版式中为 12px/16px 行盒，显式对齐以保持高度不变 */
body.home-page .today-voice .label,
body.home-page .film-head .label {
  line-height: 16px;
}

/* —— 年份、日期、统计数字 —— */
body.home-page .otd-date,
body.home-page .otd-badge,
body.home-page .film-name em {
  font-family: "Xinji Mono", ui-monospace, Consolas, "Xinji Sans", monospace;
}

