/* ====================================================================
 * 本地字体声明（替代 Google Fonts CDN）
 * 字体：Noto Serif SC + Noto Sans SC + Inter，3 家族 7 字重
 * 字符范围：拉丁 + 拉丁扩展 + 全汉字（20992 字）
 * 体积：~18.7MB（woff2）；首次访问后由浏览器长期缓存
 *
 * font-display 说明（2026-09-15 冻结前优化）：
 *   原为 block —— 文字在字体下载完成前**完全不可见**，最坏情况阻塞 3 秒
 *   （实测首屏 FCP 2.9s 即由此造成）。改为 swap 后：
 *   先用系统 font-family 回退链秒显文字，字体就绪后无刷新替换，
 *   首屏 FCP 降到毫秒级；代价仅是极短暂的字体替换闪烁（FOUT），
 *   回退链已按 macOS/Windows 常见中文字体排序，视觉落差很小。
 * ==================================================================== */

/* ---- Inter（拉丁字母：英文+数字+符号，15KB/字重）---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Inter-500.woff2') format('woff2');
}

/* ---- Noto Sans SC（无衬线，正文）---- */
/* 注：300 字重全站未使用，已移除以节省 2.81MB 带宽 */
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/NotoSansSC-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/NotoSansSC-500.woff2') format('woff2');
}

/* ---- Noto Serif SC（衬线，标题）---- */
@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/NotoSerifSC-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/NotoSerifSC-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/NotoSerifSC-600.woff2') format('woff2');
}
