/*
 * ========== Inter 字体配置 - 中文优化版 ==========
 *
 * 文件说明：Inter 字体族配置，针对中文显示进行优化
 * 维护说明：移除了不适合中文的过粗和过细字体权重
 *
 * ========== 字体权重说明 ==========
 *
 * 1. 保留的字体权重（适合中文显示）：
 *    - 300 (Light): 轻量级，适合辅助文本
 *    - 400 (Regular): 常规，适合正文内容
 *    - 500 (Medium): 中等，适合强调文本
 *    - 600 (SemiBold): 半粗体，适合标题
 *    - 700 (Bold): 粗体，适合重要标题
 *    - 900 (Black): 超粗体，适合高桥流汇报体设计
 *
 * 2. 移除的字体权重（不适合中文）：
 *    - 100 (Thin): 过细，中文字符显示不清晰
 *    - 200 (ExtraLight): 过细，中文字符显示不清晰
 *    - 800 (ExtraBold): 过粗，中文字符显示过于厚重
 *
 * 3. 字体族说明：
 *    - InterVariable: 可变字体，支持连续权重调整
 *    - Inter: 静态字体，用于兼容性
 *    - InterDisplay: 显示字体，用于大尺寸显示
 *
 * 4. 中文字体回退：
 *    - 优先使用 Inter 字体族
 *    - 中文字符回退到系统字体：PingFang SC, Hiragino Sans GB, Microsoft YaHei
 *
 * ========== 使用示例 ==========
 *
 * CSS 变量使用：
 * :root { font-family: "Inter", sans-serif; }
 * @supports (font-variation-settings: normal) {
 *   :root { font-family: "InterVariable", sans-serif; font-optical-sizing: auto; }
 * }
 *
 * 权重使用：
 * .text-light { font-weight: 300; }
 * .text-normal { font-weight: 400; }
 * .text-medium { font-weight: 500; }
 * .text-semibold { font-weight: 600; }
 * .text-bold { font-weight: 700; }
 * .text-black { font-weight: 900; }
 */
@font-face {
  font-family: InterVariable;
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2');
}

/* ========== 静态字体 - 仅保留适合中文的权重 ========== */
/* 300 (Light) - 轻量级，适合辅助文本 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/Inter-Light.woff2') format('woff2');
}

/* 400 (Regular) - 常规，适合正文内容 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Inter-Regular.woff2') format('woff2');
}

/* 500 (Medium) - 中等，适合强调文本 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Inter-Medium.woff2') format('woff2');
}

/* 600 (SemiBold) - 半粗体，适合标题 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
}

/* 700 (Bold) - 粗体，适合重要标题 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Inter-Bold.woff2') format('woff2');
}

/* 900 (Black) - 超粗体，适合高桥流汇报体设计 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/Inter-Black.woff2') format('woff2');
}
/* ========== InterDisplay 字体 - 仅保留适合中文的权重 ========== */
/* 300 (Light) - 轻量级，适合辅助文本 */
@font-face {
  font-family: 'InterDisplay';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/InterDisplay-Light.woff2') format('woff2');
}

/* 400 (Regular) - 常规，适合正文内容 */
@font-face {
  font-family: 'InterDisplay';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/InterDisplay-Regular.woff2') format('woff2');
}

/* 500 (Medium) - 中等，适合强调文本 */
@font-face {
  font-family: 'InterDisplay';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/InterDisplay-Medium.woff2') format('woff2');
}

/* 600 (SemiBold) - 半粗体，适合标题 */
@font-face {
  font-family: 'InterDisplay';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/InterDisplay-SemiBold.woff2') format('woff2');
}

/* 700 (Bold) - 粗体，适合重要标题 */
@font-face {
  font-family: 'InterDisplay';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/InterDisplay-Bold.woff2') format('woff2');
}

/* 900 (Black) - 超粗体，适合高桥流汇报体设计 */
@font-face {
  font-family: 'InterDisplay';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/InterDisplay-Black.woff2') format('woff2');
}

@font-feature-values InterVariable {
  @character-variant {
    cv01: 1;
    cv02: 2;
    cv03: 3;
    cv04: 4;
    cv05: 5;
    cv06: 6;
    cv07: 7;
    cv08: 8;
    cv09: 9;
    cv10: 10;
    cv11: 11;
    cv12: 12;
    cv13: 13;
    alt-1: 1; /* Alternate one */
    alt-3: 9; /* Flat-top three */
    open-4: 2; /* Open four */
    open-6: 3; /* Open six */
    open-9: 4; /* Open nine */
    lc-l-with-tail: 5; /* Lower-case L with tail */
    simplified-u: 6; /* Simplified u */
    alt-double-s: 7; /* Alternate German double s */
    uc-i-with-serif: 8; /* Upper-case i with serif */
    uc-g-with-spur: 10; /* Capital G with spur */
    single-story-a: 11; /* Single-story a */
    compact-lc-f: 12; /* Compact f */
    compact-lc-t: 13; /* Compact t */
  }
  @styleset {
    ss01: 1;
    ss02: 2;
    ss03: 3;
    ss04: 4;
    ss05: 5;
    ss06: 6;
    ss07: 7;
    ss08: 8;
    open-digits: 1; /* Open digits */
    disambiguation: 2; /* Disambiguation (with zero) */
    disambiguation-except-zero: 4; /* Disambiguation (no zero) */
    round-quotes-and-commas: 3; /* Round quotes &amp; commas */
    square-punctuation: 7; /* Square punctuation */
    square-quotes: 8; /* Square quotes */
    circled-characters: 5; /* Circled characters */
    squared-characters: 6; /* Squared characters */
  }
}
@font-feature-values Inter {
  @character-variant {
    cv01: 1;
    cv02: 2;
    cv03: 3;
    cv04: 4;
    cv05: 5;
    cv06: 6;
    cv07: 7;
    cv08: 8;
    cv09: 9;
    cv10: 10;
    cv11: 11;
    cv12: 12;
    cv13: 13;
    alt-1: 1; /* Alternate one */
    alt-3: 9; /* Flat-top three */
    open-4: 2; /* Open four */
    open-6: 3; /* Open six */
    open-9: 4; /* Open nine */
    lc-l-with-tail: 5; /* Lower-case L with tail */
    simplified-u: 6; /* Simplified u */
    alt-double-s: 7; /* Alternate German double s */
    uc-i-with-serif: 8; /* Upper-case i with serif */
    uc-g-with-spur: 10; /* Capital G with spur */
    single-story-a: 11; /* Single-story a */
    compact-lc-f: 12; /* Compact f */
    compact-lc-t: 13; /* Compact t */
  }
  @styleset {
    ss01: 1;
    ss02: 2;
    ss03: 3;
    ss04: 4;
    ss05: 5;
    ss06: 6;
    ss07: 7;
    ss08: 8;
    open-digits: 1; /* Open digits */
    disambiguation: 2; /* Disambiguation (with zero) */
    disambiguation-except-zero: 4; /* Disambiguation (no zero) */
    round-quotes-and-commas: 3; /* Round quotes &amp; commas */
    square-punctuation: 7; /* Square punctuation */
    square-quotes: 8; /* Square quotes */
    circled-characters: 5; /* Circled characters */
    squared-characters: 6; /* Squared characters */
  }
}
@font-feature-values InterDisplay {
  @character-variant {
    cv01: 1;
    cv02: 2;
    cv03: 3;
    cv04: 4;
    cv05: 5;
    cv06: 6;
    cv07: 7;
    cv08: 8;
    cv09: 9;
    cv10: 10;
    cv11: 11;
    cv12: 12;
    cv13: 13;
    alt-1: 1; /* Alternate one */
    alt-3: 9; /* Flat-top three */
    open-4: 2; /* Open four */
    open-6: 3; /* Open six */
    open-9: 4; /* Open nine */
    lc-l-with-tail: 5; /* Lower-case L with tail */
    simplified-u: 6; /* Simplified u */
    alt-double-s: 7; /* Alternate German double s */
    uc-i-with-serif: 8; /* Upper-case i with serif */
    uc-g-with-spur: 10; /* Capital G with spur */
    single-story-a: 11; /* Single-story a */
    compact-lc-f: 12; /* Compact f */
    compact-lc-t: 13; /* Compact t */
  }
  @styleset {
    ss01: 1;
    ss02: 2;
    ss03: 3;
    ss04: 4;
    ss05: 5;
    ss06: 6;
    ss07: 7;
    ss08: 8;
    open-digits: 1; /* Open digits */
    disambiguation: 2; /* Disambiguation (with zero) */
    disambiguation-except-zero: 4; /* Disambiguation (no zero) */
    round-quotes-and-commas: 3; /* Round quotes &amp; commas */
    square-punctuation: 7; /* Square punctuation */
    square-quotes: 8; /* Square quotes */
    circled-characters: 5; /* Circled characters */
    squared-characters: 6; /* Squared characters */
  }
}
