/**
 * 全站字体（免费商用 + 性能优化）
 * 主字体：Noto Sans SC（思源黑体简体子集，SIL OFL 可商用）
 * Regular ≈ 1.1MB（原完整 CJK 约 5MB）
 * Bold 通过 fonts-bold.css 延迟加载，避免挡住首屏
 */

@font-face {
  font-family: "Noto Sans SC";
  src: url("/static/css/fonts/NotoSansSC-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("/static/css/fonts/NotoSansSC-Regular.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* 500/600/700 先用 Regular 顶上，等 bold 样式加载后再切换 */
@font-face {
  font-family: "Noto Sans SC";
  src: url("/static/css/fonts/NotoSansSC-Regular.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("/static/css/fonts/NotoSansSC-Regular.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("/static/css/fonts/NotoSansSC-Regular.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --site-font: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--site-font) !important;
}

.Hui-iconfont,
[class^="Hui-iconfont"],
[class*=" Hui-iconfont"] {
  font-family: "Hui-iconfont" !important;
}

.layui-icon {
  font-family: layui-icon !important;
}

.iconfont {
  font-family: "iconfont" !important;
}
