/**
 * 全站统一免费开源字体（中英文站共用）
 * Noto Sans SC = 思源黑体（Source Han Sans SC）
 * 许可：SIL Open Font License 1.1 — 可免费商用、可自托管
 * 官方：http://github.com/adobe-fonts/source-han-sans
 */
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-sans-sc/noto-sans-sc-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-sans-sc/noto-sans-sc-chinese-simplified-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/noto-sans-sc/noto-sans-sc-chinese-simplified-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("../fonts/noto-sans-sc/noto-sans-sc-chinese-simplified-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("../fonts/noto-sans-sc/noto-sans-sc-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("../fonts/noto-sans-sc/noto-sans-sc-chinese-simplified-700-normal.woff2") format("woff2");
}

/* 思源别名：与 Noto Sans SC 指向同一套开源文件 */
@font-face {
  font-family: "Source Han Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-sans-sc/noto-sans-sc-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Han Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-sans-sc/noto-sans-sc-chinese-simplified-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Han Sans SC";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("../fonts/noto-sans-sc/noto-sans-sc-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Han Sans SC";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("../fonts/noto-sans-sc/noto-sans-sc-chinese-simplified-700-normal.woff2") format("woff2");
}

:root {
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "Source Han Sans", "思源黑体", sans-serif;
}

html,
body {
  font-family: var(--font-sans);
}

/* 英文整站强制思源，覆盖 Arial/Helvetica 等系统字体 */
body.lang-en,
body.lang-en button,
body.lang-en input,
body.lang-en textarea,
body.lang-en select,
body.lang-en optgroup {
  font-family: var(--font-sans) !important;
}
body.lang-en *:not(i):not(svg):not(path):not([class*="icon"]):not([class*="fa-"]) {
  font-family: inherit !important;
}
