/* ==================== 文章列表区域 ==================== */

.container {
    padding: 60px 20px;
    background-color: var(--bg-section);
}

.main {
    max-width: 1200px;
    margin: 0 auto;
}

/* 文章网格布局 - PC端每行最多3个 */
.article-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}

/* 文章卡片样式 - 每行最多3个 */
.article {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    opacity: 0.5;
}

.article:hover {
    background: linear-gradient(145deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.article img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.article-content {
    padding: 20px;
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 10px;
}

.article-title {
    font-size: 1.1rem;
    color: var(--text-white);
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0 0 15px 0;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==================== 响应式设计 ==================== */

@media (max-width: 992px) {
    .article {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 40px 15px;
    }

    .article-grid {
        flex-direction: column;
    }

    .article {
        flex: 0 0 100%;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

    .article img {
        width: 150px;
        height: auto;
        flex-shrink: 0;
    }

    .article-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .article-description {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .article {
        flex-direction: column;
    }

    .article img {
        width: 100%;
        height: 180px;
    }
}
