/* ========================================
   新闻列表专属CSS - 细节优化最终版
   完全按你的要求实现
======================================== */

/* 1. 外层容器：左上角到右下角的白→淡蓝渐变 */
.news-list-container {
    width: 1500px;
    margin: 20px auto;
    padding: 24px 20px;
    /* 修正渐变方向：左上角白，右下角淡蓝 */
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
    border-radius: 12px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* 2. 标题下方的小蓝条 */
.news-list-title {
    font-size: 22px;
    font-weight: 600;
    color: #2a3342;
    margin: 0 0 24px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5eaf5;
    position: relative;
    z-index: 1;
}
/* 新增：标题下方的蓝色小条 */
.news-list-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #4096ff;
    border-radius: 2px;
}

/* 3. 网格布局 */
.news-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

/* 4. 新闻卡片：hover边框变蓝 + 流光特效 */
.news-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f4fa;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
/* hover边框变蓝 */
.news-card:hover {
    border-color: #4096ff;
    box-shadow: 0 3px 12px rgba(64,150,255,0.1);
    transform: translateY(-1px);
}
/* 流光特效：从左往右闪过 */
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(64,150,255,0.08), transparent);
    transition: left 0.6s ease;
}
.news-card:hover::before {
    left: 100%;
}

/* 5. 卡片标题 */
.news-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #2a3342;
    margin: 0 0 8px 0;
    line-height: 1.4;
    text-decoration: none;
    display: block;
}
.news-card-title:hover {
    color: #4096ff;
}

/* 6. 卡片元信息 */
.news-card-meta {
    font-size: 13px;
    color: #7a869a;
    margin: 0 0 10px 0;
}

/* 7. 卡片摘要 */
.news-card-excerpt {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* 8. 分页 */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}
.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #f7f9fc;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
	white-space: nowrap;
}
/* 上一页、下一页按钮，取消固定宽度 */
.news-pagination .page-numbers.prev,
.news-pagination .page-numbers.next {
    width: auto;
    padding: 0 12px;
    border-radius: 8px;
}
.news-pagination .current {
    background-color: #4096ff;
    color: #ffffff;
}
.news-pagination .page-numbers:hover:not(.current) {
    background-color: #e5eaf5;
}