/* ==========================================
   字体清晰度优化 CSS
   增强文本渲染质量
   ========================================== */

/* 全局字体清晰度设置 */
* {
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    font-feature-settings: "kern" 1 !important;
}

/* 特定元素的字体优化 */
h1, h2, h3, h4, h5, h6 {
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    font-feature-settings: "kern" 1, "liga" 1 !important;
    text-shadow: none !important;
}

p, span, div, a, li {
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* 按钮和表单元素 */
button, input, textarea, select {
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* 导航和菜单 */
.navbar, .nav-link, .logo {
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* 内容区域 */
.hero-title, .hero-subtitle, .section-title {
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    font-feature-settings: "kern" 1, "liga" 1 !important;
}

/* 卡片和文章内容 */
.article-section, .feature-card, .content-wrapper {
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* 移除模糊的文本阴影 */
.hero-title, .section-title, h1, h2, h3, h4, h5, h6 {
    text-shadow: none !important;
}

/* 确保SVG文本清晰 */
svg text {
    text-rendering: optimizeLegibility !important;
    shape-rendering: geometricPrecision !important;
} 