/* =============================================
 * 本地化字体配置
 * Lato 英文字体：本地 woff2 (OFL 许可证)
 * 中文：思源黑体系统字体栈 (各平台均内置)
 * ============================================= */

/* === Lato - 英文字体（本地化 @font-face）=== */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/lato/lato-latin-300.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/lato/lato-latin-400.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 400;
    src: url('fonts/lato/lato-latin-400italic.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/lato/lato-latin-700.woff2') format('woff2');
    font-display: swap;
}

/* === 全局字体 === */
body {
    font-family: 'Lato', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}

/* === 中文字体优化 === */
/* Noto Sans SC 是 Google 与 Adobe 联合开发的开源字体 (OFL许可证)
 * 文件较大(16MB+)，使用系统内置字体栈，各平台均原生支持：
 *   Windows 10+: Microsoft YaHei
 *   macOS/iOS: PingFang SC
 *   Android: Noto Sans SC (系统内置)
 *   Linux: Noto Sans CJK SC (系统内置) */

/* 英文专用类 - 强制使用 Lato 字体 */
.font-en {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* 中文专用类 */
.font-cn {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif;
}
