/* 移动设备强制两列布局 CSS */

/* 极高优先级的选择器，确保覆盖任何其他样式 */
html body .articles-grid,
html body .main-content .articles-grid,
html body[data-page="categories"] .articles-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 确保文章卡片正确显示 */
html body .article-card,
html body .main-content .article-card {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* 图片样式 */
html body .article-image,
html body .main-content .article-image {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
    display: block !important;
}

/* 内容区域 */
html body .article-content,
html body .main-content .article-content {
    padding: 10px !important;
    box-sizing: border-box !important;
}

/* 标题样式 */
html body .article-title,
html body .main-content .article-title {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin: 0 0 5px 0 !important;
}

/* 元数据样式 */
html body .article-meta,
html body .main-content .article-meta {
    font-size: 12px !important;
    margin-bottom: 5px !important;
}

/* 摘要样式 */
html body .article-summary,
html body .main-content .article-summary {
    font-size: 13px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
}

/* 按钮样式 */
html body .read-more-btn,
html body .main-content .read-more-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
}

/* 确保在所有屏幕尺寸下都使用两列布局 */
@media (max-width: 1000px) {
    html body .articles-grid,
    html body .main-content .articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 超小屏幕的额外调整 */
@media (max-width: 360px) {
    html body .article-image {
        height: 100px !important;
    }
    
    html body .article-content {
        padding: 8px !important;
    }
    
    html body .article-title {
        font-size: 13px !important;
    }
}