/* ==========================================================================
   news-list.css - 新闻列表页样式
   ========================================================================== */

/* 主内容区域 */
.news-list-content {
    padding: 60px 0;
    background-color: var(--background-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 标题样式 */
.main-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.main-section-title h2 {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    line-height: 1.3;
}

/* 新闻列表布局 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px;
}

/* 单个新闻项目样式 */
.news-item {
    display: flex;
    background-color: white;
    border: 1px solid var(--border-color, #eee);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    border-radius: 4px;
}

.news-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* 新闻图片容器 */
.news-image {
    width: 400px;
    min-width: 400px;
    height: 250px;
    position: relative;
    overflow: hidden;
    background-color: var(--neutral-light-gray, #f0f0f0);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

/* 日期徽章 */
.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-blue);
    color: white;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 10px;
    line-height: 1.2;
    border-radius: 3px;
    z-index: 1;
}

.news-date .day {
    font-size: 24px;
    font-weight: bold;
}

.news-date .month {
    font-size: 12px;
    text-transform: uppercase;
}

/* 新闻内容 */
.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.news-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-title a:hover {
    color: var(--primary-blue);
}

.news-excerpt {
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 15px;
}

/* 直角、纯色按钮 */
.read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    border: none;
    border-radius: 4px;
    align-self: center;
}

.read-more-btn:hover {
    background-color: var(--primary-dark-blue);
    color: white;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .news-list-content {
        padding: 50px 15px;
    }
    .main-section-title h2 {
        font-size: 32px;
    }

    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        min-width: 100%;
        height: 220px;
    }
    
    .news-content {
        padding: 20px;
        text-align: left;
    }
    .news-title {
        font-size: 20px;
    }
    .news-excerpt {
        font-size: 14px;
    }
    .read-more-btn {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .news-list-content {
        padding: 40px 15px;
    }
     .main-section-title {
        margin-bottom: 30px;
    }
    .main-section-title h2 {
        font-size: 28px;
    }
    .news-list {
        gap: 25px;
    }

    .news-image {
        height: 200px;
    }
    
    .news-content {
        padding: 18px;
    }

    .news-title {
        font-size: 19px;
        margin-bottom: 10px;
    }

    .news-excerpt {
        margin-bottom: 15px;
    }
    
    .read-more-btn {
        padding: 9px 18px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .news-list-content {
        padding: 30px 10px;
    }
    .main-section-title h2 {
        font-size: 24px;
    }
    .news-list {
        gap: 20px;
        margin-bottom: 30px;
    }

    .news-item {
        border-radius: 0;
    }

    .news-image {
        height: 180px;
    }

    .news-content {
        padding: 15px;
    }

    .news-title {
        font-size: 17px;
    }
    
    .news-date {
        padding: 7px;
        left: 10px;
        top: 10px;
    }
    
    .news-date .day {
        font-size: 18px;
    }
    
    .news-date .month {
        font-size: 9px;
    }

    .news-excerpt {
        font-size: 13px;
        line-height: 1.55;
    }

    .read-more-btn {
        padding: 10px 15px;
        width: 100%;
        text-align: center;
        align-self: stretch;
    }
}

/* 确保分页容器正确对齐 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.pagination-container .page-item {
    margin: 0 3px;
}

.pagination-container .page-link {
    padding: 6px 10px;
    font-size: 14px;
}

@media(max-width: 576px) {
    .pagination-container .page-link {
        padding: 5px 8px;
        font-size: 13px;
    }
    .pagination-container .page-item {
        margin: 0 2px;
    }
}
