/* Font Selector Public Styles */

/* 基础字体优化 */
.font-selector-applied {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 字体加载优化 */
@supports (font-display: swap) {
    .font-selector-webfont {
        font-display: swap;
    }
}

/* 字体加载状态 */
.font-loading {
    visibility: hidden;
}

.font-loaded {
    visibility: visible;
    animation: fadeInFont 0.3s ease-in;
}

@keyframes fadeInFont {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 响应式字体大小 */
@media screen and (max-width: 768px) {
    .font-selector-responsive {
        font-size: calc(1rem + 0.5vw) !important;
    }
}

@media screen and (max-width: 480px) {
    .font-selector-responsive {
        font-size: calc(0.9rem + 0.3vw) !important;
    }
}

/* 字体回退样式 */
.font-selector-fallback {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* 中文字体回退 */
.font-selector-chinese-fallback {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

/* 艺术字体样式增强 */
.font-selector-artistic {
    letter-spacing: 0.02em;
    word-spacing: 0.1em;
}

/* 手写字体样式增强 */
.font-selector-handwriting {
    letter-spacing: 0.05em;
    line-height: 1.6;
}

/* 可爱字体样式增强 */
.font-selector-cute {
    letter-spacing: 0.03em;
    line-height: 1.5;
}

/* 仿宋字体样式增强 */
.font-selector-fangsong {
    letter-spacing: 0.01em;
    line-height: 1.8;
}

/* 宋体字体样式增强 */
.font-selector-songti {
    letter-spacing: 0.01em;
    line-height: 1.7;
}

/* 打印样式优化 */
@media print {
    * {
        font-family: "Times New Roman", Times, serif !important;
        color: black !important;
        background: white !important;
    }
}

