/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SourceHanSansCN (思源黑体 CN)
   4 weights: Light / Regular / Medium / Bold
   WOFF2 + 子集化（仅保留页面实际用到的字符）
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@font-face {
  font-family: 'SourceHanSansCN';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('SourceHanSansCN-Light.woff2') format('woff2');
}

@font-face {
  font-family: 'SourceHanSansCN';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('SourceHanSansCN-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'SourceHanSansCN';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('SourceHanSansCN-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'SourceHanSansCN';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('SourceHanSansCN-Bold.woff2') format('woff2');
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   默认字体 — 应用到全局
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
  --font-default: 'SourceHanSansCN', 'PingFang SC', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after {
  font-family: var(--font-default);
}

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