/* ============================================================
   全语种自托管字体栈
   标题=重磅几何黑体（能量/工业调性）；正文=中性黑体。
   覆盖 拉丁/西里尔(俄)/简中/日/韩。字体文件请放到
   /static/energy/fonts/ 下（文件名见下）。均免费商用。
   未放字体文件时，会自动回退到系统同类字体，页面照常显示。
   ============================================================ */

/* —— 标题：MiSans Heavy（拉丁/西里尔/简中）—— */
@font-face {
  font-family: "MiSans";
  src: url("/static/energy/fonts/MiSans-Heavy.woff2") format("woff2");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
/* —— 正文：MiSans Regular / Medium —— */
@font-face {
  font-family: "MiSans";
  src: url("/static/energy/fonts/MiSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MiSans";
  src: url("/static/energy/fonts/MiSans-Medium.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

/* —— 日文：Noto Sans JP —— */
@font-face {
  font-family: "Noto Sans JP";
  src: url("/static/energy/fonts/NotoSansJP-Black.woff2") format("woff2");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans JP";
  src: url("/static/energy/fonts/NotoSansJP-Regular.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* —— 韩文：Noto Sans KR —— */
@font-face {
  font-family: "Noto Sans KR";
  src: url("/static/energy/fonts/NotoSansKR-Black.woff2") format("woff2");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans KR";
  src: url("/static/energy/fonts/NotoSansKR-Regular.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "MiSans", "HarmonyOS Sans SC", "Noto Sans SC", -apple-system,
    BlinkMacSystemFont, "Segoe UI", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "MiSans", "HarmonyOS Sans SC", "Noto Sans SC", -apple-system,
    BlinkMacSystemFont, "Segoe UI", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 按 <html lang> 切换最佳字形（日/韩优先各自字体） */
:lang(ja) {
  --font-display: "Noto Sans JP", "MiSans", -apple-system, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", system-ui, sans-serif;
  --font-body: "Noto Sans JP", "MiSans", -apple-system, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", system-ui, sans-serif;
}
:lang(ko) {
  --font-display: "Noto Sans KR", "MiSans", -apple-system, "Apple SD Gothic Neo",
    "Malgun Gothic", system-ui, sans-serif;
  --font-body: "Noto Sans KR", "MiSans", -apple-system, "Apple SD Gothic Neo",
    "Malgun Gothic", system-ui, sans-serif;
}
