/* 移动端精致化样式 - 简化版本 */

/* 只针对特定元素的字体修复，不影响头图 */
@media only screen and (max-width: 768px) {
    /* 字体渲染优化 */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* 只修复文章内容区域的文字渲染问题 */
    .post-container p,
    .post-container li,
    .post-container span:not(.navbar-brand),
    .post-container td,
    .post-container th,
    .post-article-wrapper .post-container p,
    .post-article-wrapper .post-container li,
    .post-article-wrapper .post-container span,
    .posts-grid .post-card .post-title,
    .posts-grid .post-card .post-subtitle,
    .posts-grid .post-card .post-excerpt,
    .posts-grid .post-card .post-meta {
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        background-clip: unset !important;
        font-feature-settings: normal !important;
        font-variant-numeric: normal !important;
    }
    
    /* 列表字体大小优化 */
    .post-container li,
    .post-article-wrapper .post-container li {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.5rem !important;
        font-weight: 400 !important;
        color: #4a5568 !important;
    }
    
    /* 列表标记修复 */
    .post-container ul li::marker,
    .post-container ol li::marker,
    .post-article-wrapper .post-container ul li::marker,
    .post-article-wrapper .post-container ol li::marker {
        color: #718096 !important;
        font-weight: normal !important;
    }
}

/* 375px移动端特别优化 */
@media only screen and (max-width: 375px) {
    .post-container li,
    .post-article-wrapper .post-container li {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.4rem !important;
    }
    
    /* Blog首页卡片字体修复 */
    .posts-grid .post-card .post-title {
        color: #1a202c !important;
        font-weight: 600 !important;
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        letter-spacing: -0.01em !important;
    }
    
    .posts-grid .post-card .post-subtitle {
        color: #4a5568 !important;
        font-weight: 400 !important;
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }
    
    .posts-grid .post-card .post-excerpt {
        color: #718096 !important;
        font-weight: 400 !important;
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    .posts-grid .post-card .post-meta {
        color: #a0aec0 !important;
        font-size: 0.8rem !important;
    }
}

/* 平板端优化 */
@media only screen and (min-width: 376px) and (max-width: 768px) {
    .post-container li,
    .post-article-wrapper .post-container li {
        font-size: 0.95rem !important;
        line-height: 1.55 !important;
        margin-bottom: 0.6rem !important;
    }
}
