@font-face {
    font-family: 'Noto Color Emoji';
    src: url('../fonts/NotoColorEmoji-Regular.ttf') format('truetype');
    font-display: swap; /* 优化字体加载性能，避免FOIT */
    unicode-range: U+1F600-1F64F, U+1F300-1F5FF, U+1F680-1F6FF, U+1F1E0-1F1FF, U+2600-26FF, U+2700-27BF, U+1F900-1F9FF, U+1F018-1F270, U+238C, U+2744, U+1F004, U+1F0CF, U+1F170-1F251;
}

/* 添加WOFF2字体支持，提供更好的压缩率 */
@font-face {
    font-family: 'Noto Color Emoji';
    src: url('../fonts/noto-color-emoji-0.woff2') format('woff2'),
         url('../fonts/noto-color-emoji-1.woff2') format('woff2'),
         url('../fonts/NotoColorEmoji-Regular.ttf') format('truetype');
    font-display: swap; /* 优化字体加载性能 */
    unicode-range: U+1F600-1F64F, U+1F300-1F5FF, U+1F680-1F6FF, U+1F1E0-1F1FF, U+2600-26FF, U+2700-27BF, U+1F900-1F9FF, U+1F018-1F270, U+238C, U+2744, U+1F004, U+1F0CF, U+1F170-1F251;
}

/* 全局使用系统字体 */
* {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 为所有文本元素设置字体优先级，但unicode-range会确保只有emoji使用Noto Color Emoji */
body, html, div, span, p, h1, h2, h3, h4, h5, h6, a, button, input, textarea, select {
    font-family: 'Noto Color Emoji', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 确保emoji类也使用服务器字体 */
.emoji {
    font-family: 'Noto Color Emoji', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}