/* 字体回退机制 - 解决字体加载错误 */

/* 主要字体回退 */
body, .container, .header, .main-content, .sidebar, .content-area {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* 标题字体回退 */
h1, h2, h3, h4, h5, h6, .title, .heading {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
}

/* 按钮字体回退 */
button, .btn, .button, .plan-button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
}

/* 代码字体回退 */
code, pre, .code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
}

/* 确保所有文本都有合适的字体 */
* {
    font-family: inherit;
}

/* 防止字体加载失败时的闪烁 */
@font-face {
    font-family: 'SystemFont';
    src: local('Arial'), local('Helvetica'), local('sans-serif');
    font-display: swap;
}

/* 备用字体类 */
.font-system {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.font-mono {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
}
