/* ════════════════════════════════════════════════════════════════════
 *  字体定义 · fonts.css
 *  ────────────────────────────────────────────────────────────────────
 *  英文装饰字体（Playfair / Cormorant / Inter）→ 本地自托管 woff2
 *     · 文件在 assets/fonts/ 下，总共约 300KB，加载极快
 *  中文字体（思源宋体 / 思源黑体）→ 国内 CDN（字蛛 / 中文网字计划）
 *     · 中文字体单字重就有数 MB，全量自托管会有数百 MB，不现实
 *     · 这里用中文网字计划（chinese-font.netlify CDN，国内访问快）的动态子集
 *     · 如果你的服务器想完全离线，见文末"完全离线方案"注释
 *  ════════════════════════════════════════════════════════════════════ */

/* ─────────── Playfair Display（英文衬线大标题）─────────── */
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/playfair-display-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/playfair-display-latin-500-normal.woff2') format('woff2')}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/playfair-display-latin-700-normal.woff2') format('woff2')}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:900;font-display:swap;src:url('fonts/playfair-display-latin-900-normal.woff2') format('woff2')}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url('fonts/playfair-display-latin-400-italic.woff2') format('woff2')}

/* ─────────── Cormorant Garamond（英文斜体装饰）─────────── */
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:300;font-display:swap;src:url('fonts/cormorant-garamond-latin-300-normal.woff2') format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:300;font-display:swap;src:url('fonts/cormorant-garamond-latin-300-italic.woff2') format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url('fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2')}

/* ─────────── Inter（英文无衬线正文）─────────── */
@font-face{font-family:'Inter';font-style:normal;font-weight:300;font-display:swap;src:url('fonts/inter-latin-300-normal.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/inter-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/inter-latin-500-normal.woff2') format('woff2')}

/* ════════════════════════════════════════════════════════════════════
 *  中文字体方案
 *  ────────────────────────────────────────────────────────────────────
 *  当前默认（方案C）：不加载任何中文字体文件，直接用"高质量系统字体栈"。
 *  下面把 'Noto Serif SC' / 'Noto Sans SC' 这两个 CSS 里用到的家族名，
 *  映射到各操作系统自带的优秀中文字体，做到零外链、零延迟、永不失效。
 *  ── Windows：宋体→中易宋体 / 黑体→微软雅黑
 *  ── macOS / iOS：宋体→宋体-简 / 黑体→苹方
 *  ── Android：思源系
 *
 *  ★ 想升级到"统一的思源字体"观感（方案A/B），见 部署说明.md
 *  ════════════════════════════════════════════════════════════════════ */

/* 让 HTML/CSS 里写的 'Noto Serif SC' 自动回退到系统衬线中文字体 */
@font-face{
  font-family:'Noto Serif SC';
  src:local('Source Han Serif SC'),local('Source Han Serif CN'),
      local('Songti SC'),local('STSong'),local('SimSun'),local('serif');
  font-weight:200 900;font-display:swap;
}
/* 让 HTML/CSS 里写的 'Noto Sans SC' 自动回退到系统黑体中文字体 */
@font-face{
  font-family:'Noto Sans SC';
  src:local('Source Han Sans SC'),local('Source Han Sans CN'),
      local('PingFang SC'),local('Microsoft YaHei'),local('Heiti SC'),local('sans-serif');
  font-weight:300 500;font-display:swap;
}

/* ════════════════════════════════════════════════════════════════════
 *  ★ 完全离线 / 统一思源观感方案（方案A，推荐部署到你的 OSS+CDN）：
 *    1. 用 cn-font-split 或 font-spider（字蛛）对网站实际出现的中文字
 *       做"子集化"，把思源宋体/黑体压成只含这些字的精简 woff2（约几百 KB）
 *    2. 把生成的 woff2 上传到你的阿里云 OSS，挂 CDN
 *    3. 在本文件加 @font-face，src 指向你的 OSS+CDN 地址即可
 *    需要我帮你做子集化版本时，把原始字体文件给我，或告诉我即可。
 *  ════════════════════════════════════════════════════════════════════ */
