/* --- Banner 主容器 --- */
.page-banner {
    /* 背景图设置 */
    /* 请将 url('...') 替换为您实际的图片路径 */
    background-image: url("/static/img/list_icon_1.jpeg");
    background-size: cover; /* 保持比例覆盖整个区域 */
    background-position: center; /* 居中显示 */
    background-repeat: no-repeat;
}

.news-section {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #fff;
}

/* ========== 标签栏 ========== */
.tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab {
    flex: 1;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none; /* 去掉下划线 */

}

.tab.active {
    background: #ffd700; /* 高亮黄色 */
    color: #000;
    font-weight: 600;
}

.tab:hover:not(.active) {
    background: #ffe100;
    color: #333;
}

/* ========== 新闻列表 ========== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 0.5px solid #c3c3c3;
    text-decoration: none; /* 去掉下划线 */

}

/* 悬浮效果 */
.news-item:hover {
    background: #ffe100; /* 浅黄色背景 */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 日期块 */
.date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 10px;
    /* background: #f9f9f9; */
    border-radius: 8px;
    text-align: center;
}

.day {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.month {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* 内容区 */
.content {
    flex: 1;
    min-width: 0; /* 防止溢出 */
}

.title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.summary {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.read-more:hover {
    color: #666;
    text-decoration: underline;
}

/* 缩略图 */
.thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
}

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

.name {
    color: #292929;
    font-weight: 700;
    font-size: 33px;
    text-align: center;
    margin-bottom: 30px;
}


.pagination {
    display: flex;
    justify-content: center; /* 居中分页 */
    gap: 10px; /* 页码间距 */
    list-style: none; /* 去掉点 */
    padding: 0;
    margin: 30px 0;
    font-family: Arial, sans-serif;
}

.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #c3c3c3; /* 边框主题色 */
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination li a:hover {
    background-color: #ffd700;
    color: #fff;
}

.pagination li.active span {
    background-color: #ffd700;
    color: #fff;
    border-color: #ffd700;
}

.pagination li.disabled span {
    color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

/* ===== 小屏笔记本适配 ===== */
@media (max-width: 1366px) {
    .news-section {
        padding: 30px;
    }

    .tab {
        padding: 12px 10px;
        font-size: 14px;
    }
}

@media (max-width: 1200px) {
    .news-section {
        padding: 24px;
        margin: 40px auto;
    }

    .tab {
        padding: 12px 6px;
        font-size: 13px;
    }

    .name {
        font-size: 26px;
    }
}