/* 字体优化 - 使用 font-display: swap 防止文本闪烁 */

/* Font Awesome Solid */
@font-face {
    font-family: 'Font Awesome 6 Solid';
    src: url('../assets/fonts/fa-solid-900.woff2') format('woff2');
    font-display: swap;
    font-weight: 900;
    font-style: normal;
}

/* Font Awesome Brands */
@font-face {
    font-family: 'Font Awesome 6 Brands';
    src: url('../assets/fonts/fa-brands-400.woff2') format('woff2');
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}

/* Font Awesome Regular */
@font-face {
    font-family: 'Font Awesome 6 Regular';
    src: url('../assets/fonts/fa-regular-400.woff2') format('woff2');
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}

/* Pe Icon 7 Stroke */
@font-face {
    font-family: 'Pe-icon-7-stroke';
    src: url('../assets/fonts/Pe-icon-7-stroke.woff') format('woff');
    font-display: swap;
    font-weight: normal;
    font-style: normal;
}

/* Inter Variable Font */
@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-display: swap;
    font-weight: 100 900;
    font-style: normal;
}

/* Jost Font */
@font-face {
    font-family: 'Jost';
    src: url('../assets/fonts/Jost-VariableFont_opsz,wght.ttf') format('truetype');
    font-display: swap;
    font-weight: 100 900;
    font-style: normal;
}

/* 确保所有字体都使用 swap 策略 */
body {
    font-display: swap;
}

/* 优化字体加载性能 */
@supports (font-display: swap) {
    @font-face {
        font-family: 'Font Awesome 6 Solid';
        src: url('../assets/fonts/fa-solid-900.woff2') format('woff2');
        font-display: swap;
    }
}
