/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", sans-serif;
}

/* 新闻中心容器 */
.news-center {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* 新闻头部 */
.news-header {
    text-align: center;
    margin-bottom: 30px;
}
.news-header h1 {
    font-size: 28px;
    color: #333;
    position: relative;
    display: inline-block;
}
.news-header h1::after {
    content: "";
    width: 40px;
    height: 3px;
    background: #ff0000;
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}
.news-header p {
    font-size: 14px;
    color: #999;
    margin-top: 10px;
}

/* 标签栏 */
.news-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
.news-tabs .tab {
    padding: 8px 20px;
    border: none;
    background: #9d9d9d;
    color: #666;
    cursor: pointer;
    font-size: 16px;
}
.news-tabs .tab.active {
    background: #ff0000;
    color: #fff;
}

/* 新闻列表 - PC端布局（4列） */
.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.h_news-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 新闻项 */
.news-item {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}
.news-item .news-img {
    height: 180px;
    overflow: hidden;
}
.news-item .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.news-item:hover .news-img img {
    transform: scale(1.05);
}
.news-item .news-info {
    padding: 15px;
}
.news-item .news-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-item .news-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}
.news-item .news-date {
    font-size: 12px;
    color: #999;
}

/* 手机端适配（两列布局） */
@media (max-width: 768px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .h_news-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-item .news-img {
        height: 150px;
    }
}

/* 分页容器样式 */
        .pagination {
                display: flex;
                align-items: center;
                gap: 12px;
                font-size: 18px;
                padding: 20px;
                text-align: center;
                align-content: flex-end;
                justify-content: center;
                flex-wrap: nowrap;
                flex-direction: row;
                justify-content: center;
        }
        /* 页码项样式 */
        .page-item {
            padding: 6px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
        }
        /* 当前页码高亮 */
        .page-item.active {
            background-color: #f0f0f0;
            font-weight: bold;
            border-color: #999;
        }
        /* 下一页箭头 */
        .page-next {
            cursor: pointer;
        }
        
        .pagination {
    display: flex;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 14px; }
.pagination > li {
    display: inline; }
.pagination > li > a,
.pagination > li > span {
    position: relative;
    float: left;
    padding: 6px 12px;
    line-height: 1.42857;
    text-decoration: none;
    color: #337ab7;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-left: -1px; }
.pagination > li:first-child > a,
.pagination > li:first-child > span {
    margin-left: 0;
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px; }
.pagination > li:last-child > a,
.pagination > li:last-child > span {
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px; }
.pagination > li > a:hover, .pagination > li > a:focus,
.pagination > li > span:hover,
.pagination > li > span:focus {
    z-index: 2;
    color: #23527c;
    background-color: #eeeeee;
    border-color: #ddd; }
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus,
.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > span:focus {
    z-index: 3;
    color: #fff;
    background-color: #337ab7;
    border-color: #337ab7;
    cursor: default; }