/* 自定义中文字体：霞鹜 WenKai - CSS only solution */
/* 无需 JavaScript，即时加载 */

@font-face {
  font-family: "ChineseOnly";
  src: url("/fonts/lxgw-wenkai-gb-screen-v1.245-subset-gb2312.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
  unicode-range: U+4E00-U+9FFF, U+3400-U+4DBF, U+20000-U+2A6DF, U+2A700-U+2B73F, U+2B740-U+2B81F, U+2B820-U+2CEAF, U+F900-U+FAFF, U+2F800-U+2FA1F;
}

/* 全局应用：中文用霞鹜文楷，英文用系统字体 */
html {
  font-family: "ChineseOnly", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 保留向后兼容 */
.zh-font {
  font-family: "ChineseOnly", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}