/* =====================================================
   智研科创平台 - 字体配置
   优先使用系统中文字体，英文字体作为后备
   ===================================================== */

/* ---------- 英文字体 Inter（本地加载） ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../font/Inter-Regular_1.otf) format('opentype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../font/Inter-Medium_1.otf) format('opentype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../font/Inter-SemiBold_1.otf) format('opentype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../font/Inter-Bold_1.otf) format('opentype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../font/Inter-ExtraBold_1.otf) format('opentype');
}

/* ---------- 全局中文 + 英文联合字体栈 ----------
 * 优先级说明：
 * 1. 系统优先中文字体（保证中文显示质量）
 *    macOS/iOS: PingFang SC (苹方)
 *    Windows: Microsoft YaHei (微软雅黑)
 *    Linux: Noto Sans CJK SC
 *    Android: Source Han Sans CN / Droid Sans Fallback
 * 2. 本地加载的 Inter 英文字体
 * 3. 跨平台通用系统字体作为最后后备
 * ------------------------------------------------- */
:root {
  --font-family-sans:
    /* 中文优先 - 苹果系统 */
    "PingFang SC",
    "Hiragino Sans GB",
    /* 中文优先 - Windows 系统 */
    "Microsoft YaHei UI",
    "Microsoft YaHei",
    /* 中文优先 - Linux/安卓 */
    "Noto Sans CJK SC",
    "Source Han Sans CN",
    "Droid Sans Fallback",
    /* 其他常见中文字体后备 */
    "WenQuanYi Micro Hei",
    "WenQuanYi Zen Hei",
    "Heiti SC",
    "SimHei",
    /* 英文字体 Inter */
    "Inter",
    /* 跨平台通用系统字体后备 */
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif,
    /* Emoji 字体 */
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol";

  --font-family-serif:
    "Source Han Serif SC",
    "Noto Serif CJK SC",
    "Songti SC",
    "SimSun",
    Georgia,
    "Times New Roman",
    serif;

  --font-family-mono:
    "JetBrains Mono",
    "Fira Code",
    "SF Mono",
    Consolas,
    "Liberation Mono",
    "Courier New",
    Menlo,
    Monaco,
    monospace;
}
