/* ========== 思源字体定义 ========== */
@font-face {
    font-family: 'SY-Regular';
    src: url('../font/SourceHanSansCN-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SY-Bold';
    src: url('../font/SourceHanSansCN-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* ========== 全局字体应用 ========== */
* {
    font-family: 'SY-Regular', 'Source Han Sans CN', sans-serif;
}

/* 粗体元素使用思源黑粗体 */
b, strong,
h1, h2, h3, h4, h5, h6,
.font-bold,
.highlight,
[style*="font-weight: bold"],
[style*="font-weight: 700"] {
    font-family: 'SY-Bold', 'Source Han Sans CN', sans-serif;
    font-weight: bold;
}

/* 确保输入元素也使用思源字体 */
input, textarea, select, button {
    font-family: 'SY-Regular', 'Source Han Sans CN', sans-serif;
}

/* 确保代码元素也使用思源字体（如果需要） */
code, pre {
    font-family: 'SY-Regular', 'Source Han Sans CN', monospace;
} 