/* =========================================================
   全局字体配置：中文 → XuanZongTi（玄宗体分片），英文 → Mno16
   本文件由 Fonts/ 目录内引用字体文件，各页面 <head> 引入：
   根目录页面用  Fonts/fonts.css
   子目录页面用  ../Fonts/fonts.css
   ---------------------------------------------------------
   XuanZongTi 已按 Unicode 拆分为 4 个 WOFF2 分片
   （满足 Pages 单文件 25MB 限制，全部汉字保留、不删字形）：
     part1: U+20-U+7E 英文/ASCII + U+3000-U+303F 中文标点
            + U+FF00-U+FFEF 全角符号 + U+4E00-U+5FFF
     part2: U+6000-U+6FFF
     part3: U+7000-U+7FFF
     part4: U+8000-U+9FFF
   浏览器按 unicode-range 自动按需加载分片，页面代码无需区分。
   后备：分片字体未加载/加载失败时，自动降级到系统字体
   （system-ui / 微软雅黑 / 宋体 等），保证不出现方框缺字。
   ========================================================= */
@font-face {
  font-family: "XuanZongTi";
  src: url("XuanZongTi_part1.woff2") format("woff2");
  unicode-range: U+20-U+7E, U+3000-U+303F, U+FF00-U+FFEF, U+4E00-U+5FFF;
  font-display: swap;
}
@font-face {
  font-family: "XuanZongTi";
  src: url("XuanZongTi_part2.woff2") format("woff2");
  unicode-range: U+6000-U+6FFF;
  font-display: swap;
}
@font-face {
  font-family: "XuanZongTi";
  src: url("XuanZongTi_part3.woff2") format("woff2");
  unicode-range: U+7000-U+7FFF;
  font-display: swap;
}
@font-face {
  font-family: "XuanZongTi";
  src: url("XuanZongTi_part4.woff2") format("woff2");
  unicode-range: U+8000-U+9FFF;
  font-display: swap;
}
@font-face {
  font-family: "Mno16";
  src: url("Mno16.woff2") format("woff2");
  font-display: swap;
}
/* Mno16 只有英文/ASCII 字形（等宽），玄宗体负责中文。
   浏览器按顺序找字形：英文先命中 Mno16，中文 Mno16 没有 → 落到玄宗体分片，
   天然实现「英文用 Mno16、中文用玄宗体」。
   末尾系统后备：分片字体加载失败/文件缺失时降级到系统文字，不出现方框；
   末尾 monospace 兜底制表符/特殊符号，避免终端对齐被破坏。 */
* {
  font-family: "Mno16", "XuanZongTi", system-ui, -apple-system,
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", SimSun,
    sans-serif, monospace !important;
}

/* ===== 字体清晰渲染（Windows/Chrome/Edge 通用） ===== */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
