/* Custom Fonts CSS */
/* 这个文件用于定义自定义字体的@font-face规则 */

/* 示例：思源宋体 */
@font-face {
    font-family: 'Source Han Serif SC';
    src: url('../fonts/SourceHanSerifSC-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Han Serif SC';
    src: url('../fonts/SourceHanSerifSC-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 示例：思源黑体 */
@font-face {
    font-family: 'Source Han Sans SC';
    src: url('../fonts/SourceHanSansSC-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Han Sans SC';
    src: url('../fonts/SourceHanSansSC-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 示例：方正仿宋 */
@font-face {
    font-family: 'FZFangSong';
    src: url('../fonts/FZFangSong.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 示例：朱雀仿宋 */
@font-face {
    font-family: 'Zhuque Fangsong';
    src: url('../fonts/ZhuqueFangsong.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 示例：手写字体 */
@font-face {
    font-family: 'Handwriting Font';
    src: url('../fonts/HandwritingFont.woff2') format('woff2'),
         url('../fonts/HandwritingFont.woff') format('woff'),
         url('../fonts/HandwritingFont.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 示例：可爱字体 */
@font-face {
    font-family: 'Cute Font';
    src: url('../fonts/CuteFont.woff2') format('woff2'),
         url('../fonts/CuteFont.woff') format('woff'),
         url('../fonts/CuteFont.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 示例：艺术字体 */
@font-face {
    font-family: 'Artistic Font';
    src: url('../fonts/ArtisticFont.woff2') format('woff2'),
         url('../fonts/ArtisticFont.woff') format('woff'),
         url('../fonts/ArtisticFont.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 字体加载优化 */
.font-loading {
    font-family: system-ui, -apple-system, sans-serif;
}

/* 字体加载完成后的样式 */
.fonts-loaded .custom-font {
    font-family: var(--selected-font-family);
}

/* 字体预加载提示 */
.font-preload-hint {
    position: absolute;
    left: -9999px;
    visibility: hidden;
    font-family: 'Source Han Serif SC';
    font-family: 'Source Han Sans SC';
    font-family: 'FZFangSong';
    font-family: 'Zhuque Fangsong';
    font-family: 'Handwriting Font';
    font-family: 'Cute Font';
    font-family: 'Artistic Font';
}

