/* ==========================================================================
   思源黑体 (Noto Sans SC) — education/ 中文 Web 字体
   --------------------------------------------------------------------------
   字重：400（正文 / 题干 / 选项）· 700（标题 / 小卡 / 按钮）
        均为真实字形，非浏览器合成。

   加载策略（服务器 3Mbps ≈ 375KB/s）：
     font-display:swap → 首屏立即用系统字体绘制，字体后台下载完后平滑替换。

   重建：bash /root/edu-font-subset.sh
   ========================================================================== */

/* --- 400 Regular · 正文 / 题干 / 选项 / 解析 --- */
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/nssc-400.woff2') format('woff2');
}

/* --- 700 Bold · 标题 / 小卡 / 按钮 / 强调 --- */
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/nssc-700.woff2') format('woff2');
}

/* --- 生僻字补丁：仅 6 个码位，unicode-range 必须与文件内 cmap 完全一致 ---
   编码：勑 U+52D1 · 昃 U+6603 · 脩 U+8129 · 跂 U+8DC2 · 躐 U+8E90 · 邠 U+90A0
   注：不要用 font-weight 区间语法（如 "400 700"），也不要写错码位，
       否则会把整个中文字符集导向本文件而回退到系统字体。 */
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/nssc-patch.woff2') format('woff2');
  unicode-range: U+52D1, U+6603, U+8129, U+8DC2, U+8E90, U+90A0;
}

@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/nssc-patch.woff2') format('woff2');
  unicode-range: U+52D1, U+6603, U+8129, U+8DC2, U+8E90, U+90A0;
}

/* 600 / 800 / 900 未单独提供，由 CSS 就近匹配到 400 或 700。 */