/* 文章列表组件样式 - 深色主题 */

.post-list {
    width: 100%;
    padding: 60px 20px;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
}

.post-list .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 顶部标题区域 */
.post-list .section-header {
    width: 100%;
    text-align: left;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.post-list .category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 12px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    line-height: 1.3;
    display: inline-block;
    letter-spacing: 0.5px;
}

.post-list .category-desc {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
}

/* 文章网格区域 */
.post-list .articles-area {
    width: 100%;
}

/* 文章网格布局 */
.post-list .article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* 文章卡片样式 - 深色主题 */
.post-list .article-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: linear-gradient(145deg, var(--bg-card-hover) 0%, var(--bg-dark) 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-list .article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}

.post-list .article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 图片区域 */
.post-list .article-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--bg-card);
    position: relative;
}

.post-list .article-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%);
    pointer-events: none;
}

.post-list .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.post-list .article-card:hover .article-image img {
    transform: scale(1.05);
}

/* 内容区域 */
.post-list .article-content {
    padding: 16px;
}

/* 文章标题 */
.post-list .article-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0 0 10px 0;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.post-list .article-card:hover .article-title {
    color: var(--primary);
}

/* 文章摘要 */
.post-list .article-excerpt {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0 0 12px 0;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 发布日期 */
.post-list .article-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-list .article-date::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

/* ==================== 响应式适配 ==================== */

/* 1000-1200px 屏幕适配 */
@media screen and (min-width: 1000px) and (max-width: 1200px) {
    .post-list .container {
        gap: 20px;
    }

    .post-list .category-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .post-list .category-desc {
        font-size: 1rem;
    }

    .post-list .article-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .post-list .article-image {
        height: 140px;
    }

    .post-list .article-content {
        padding: 14px;
    }

    .post-list .article-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .post-list .article-excerpt {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .post-list .article-date {
        font-size: 0.9rem;
    }
}

/* 大屏幕（1200px以上） */
@media screen and (min-width: 1200px) {
    .post-list .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 平板屏幕（992px-1199px） */
@media screen and (max-width: 1199px) {
    .post-list .category-title {
        font-size: 1.8rem;
    }

    .post-list .article-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .post-list .article-image {
        height: 150px;
    }
}

/* 小屏幕平板（768px-991px） */
@media screen and (max-width: 991px) {
    .post-list {
        padding: 40px 20px;
    }

    .post-list .container {
        gap: 20px;
    }

    .post-list .section-header {
        padding-bottom: 12px;
    }

    .post-list .category-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .post-list .category-desc {
        font-size: 1rem;
    }

    .post-list .article-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .post-list .article-image {
        height: 140px;
    }

    .post-list .article-content {
        padding: 14px;
    }
}

/* 移动端（768px以下） */
@media screen and (max-width: 768px) {
    .post-list {
        padding: 40px 20px;
    }

    .post-list .container {
        gap: 18px;
    }

    .post-list .section-header {
        padding-bottom: 10px;
    }

    .post-list .category-title {
        font-size: 1.5rem;
        padding-bottom: 10px;
        border-bottom-width: 2px;
    }

    .post-list .category-desc {
        font-size: 1rem;
    }

    .post-list .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .post-list .article-image {
        height: 130px;
    }

    .post-list .article-content {
        padding: 12px;
    }

    .post-list .article-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .post-list .article-excerpt {
        font-size: 0.9rem;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

/* 小屏幕移动端（480px以下） */
@media screen and (max-width: 480px) {
    .post-list {
        padding: 40px 20px;
    }

    .post-list .container {
        gap: 15px;
    }

    .post-list .category-title {
        font-size: 1.5rem;
    }

    .post-list .category-desc {
        font-size: 1rem;
    }

    .post-list .article-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .post-list .article-image {
        height: 200px;
    }

    .post-list .article-content {
        padding: 15px;
    }

    .post-list .article-title {
        font-size: 1.1rem;
    }

    .post-list .article-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}
