/**
 * 文章列表网格布局样式
 * 包含响应式设计和视觉优化
 */

/* 主容器样式 */
.articles-grid-container {
    padding: 15px 0;
}

.articles-grid-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面头部样式 */
.page-header {
    text-align: center;
    margin-bottom: 45px;
    background: linear-gradient(144deg, #FAD38F 17.97%, #D1A75D 97.36%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

/* 网格布局 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* 文章卡片样式 */
.article-card {
    border-radius: 6px;
    overflow: hidden;
    height: fit-content;
    color: #fff;
}

/* 文章缩略图样式 */
.article-thumbnail {
    position: relative;
    overflow: hidden;
    height: 260px;
    width: 100%;
}

.article-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.article-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
}

.article-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
}

.placeholder-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 文章内容区域 */
.article-content {
    padding: 20px 0;
}

.article-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.article-title a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* 文章摘要 */
.article-excerpt {
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 0.95rem;
    opacity: 0.7;
}

.article-date {
    font-size: 14px;
}

/* 无文章提示 */
.no-articles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 1.1rem;
}



/* 响应式设计 */

/* 大屏幕 (1200px+) */
@media (min-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }

    .page-title {
        font-size: 3rem;
    }
}

/* 中等屏幕 (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .articles-grid-container .container {
        padding: 0 15px;
    }

    .page-title {
        font-size: 2.2rem;
    }
}

/* 小屏幕 (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .page-title {
        font-size: 2rem;
    }

    .article-content {
        padding: 10px 0;
    }
}

/* 超小屏幕 (575px以下) */
@media (max-width: 575px) {
    .articles-grid-container {
        padding: 20px 0;
    }

    .articles-grid-container .container {
        padding: 0 10px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .page-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .article-thumbnail {
        height: 180px;
    }

    .article-content {
        padding: 15px;
    }

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