/* ============================================================
   创业Spark — Fonts
   The source uses Chinese typefaces that are not freely
   web-distributable: PingFang SC (Apple system), Alibaba
   PuHuiTi 3.0, YouSheBiaoTiHei, DingTalk JinBuTi.
   On Apple devices PingFang SC renders natively. For
   cross-platform parity we load Noto Sans SC (Google) as the
   nearest geometric-Hei fallback. SUBSTITUTION — see readme.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;900&display=swap');

/* ------------------------------------------------------------
   @font-face declarations for the brand's real typefaces, using
   local() only — so an installed copy (e.g. PingFang SC on Apple
   devices) renders natively. These are NOT substitute families:
   the font-family name matches the token exactly. When you have
   the web font files, add a url(...) src to each rule (drop the
   .woff2 into assets/fonts/) — until then the token's fallback
   stack (Noto Sans SC / system) renders.
   ------------------------------------------------------------ */
@font-face {
  font-family: "PingFang SC";
  src: local("PingFang SC"), local("PingFangSC-Regular");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alibaba PuHuiTi 3.0";
  src: local("Alibaba PuHuiTi 3.0"), local("AlibabaPuHuiTi-3-55-Regular");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "YouSheBiaoTiHei";
  src: local("YouSheBiaoTiHei"), local("YouSheBiaoTiHei-Regular");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DingTalk JinBuTi";
  src: local("DingTalk JinBuTi"), local("DingTalkJinBuTi");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "SF Pro";
  src: local("SF Pro"), local("SF Pro Text"), local("-apple-system");
  font-weight: 400 600; font-style: normal; font-display: swap;
}

:root {
  /* Primary UI text — PingFang SC, falls back to Noto Sans SC */
  --font-sans: "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Buttons, numerals, tags — Alibaba PuHuiTi 3.0 */
  --font-puhui: "Alibaba PuHuiTi 3.0", "PingFang SC", "Noto Sans SC",
    -apple-system, sans-serif;

  /* Display headlines — YouSheBiaoTiHei (heavy condensed). Substituted
     with Noto Sans SC 900 on the web. */
  --font-display: "YouSheBiaoTiHei", "Noto Sans SC", "PingFang SC",
    sans-serif;

  /* Decorative / marketing — DingTalk JinBuTi */
  --font-jinbu: "DingTalk JinBuTi", "Noto Sans SC", "PingFang SC", sans-serif;

  /* Latin numerals in iOS chrome */
  --font-system: "SF Pro", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
}
