/* 字体设置 */
@font-face {
    font-family: 'ChineseFont';
    src: local('Microsoft YaHei'), local('PingFang SC'), local('Heiti SC'), local('WenQuanYi Micro Hei');
}

body {
    font-family: 'ChineseFont', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 标题字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'ChineseFont', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* 代码字体 */
code, pre, .code-block {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
}

/* 特殊文本样式 */
blockquote {
    font-family: 'ChineseFont', Georgia, 'Times New Roman', Times, serif;
    font-style: italic;
    border-left: 4px solid #6a89cc;
    padding-left: 15px;
    margin: 20px 0;
    color: #aaa;
}

/* 链接字体 */
a {
    font-family: inherit;
    font-weight: 500;
}

/* 按钮字体 */
button, .button, .project-link, .friend-link {
    font-family: 'ChineseFont', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 导航字体 */
header, nav {
    font-family: 'ChineseFont', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
}

/* 响应式字体大小 */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
}