/* 新闻资讯页面样式 */

.news_page {
    padding-top: 81px;
}
.news_title{
    font-size:24px;
    font-weight: bold;
    text-align: left;
}
/* Banner */
.news_banner {
    height: 350px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news_banner_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.news_banner_content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.news_banner_content h1 {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 15px;
}

.news_banner_content p {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.9;
}

/* 内容区域 */
.news_wrap {
    padding: 0;
}

/* 分类导航 */
.news_nav_box {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.news_nav_item {
    position: relative;
}

.news_nav_item a {
    display: block;
    padding: 12px 30px;
    font-size: 16px;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    transition: all .3s;
}

.news_nav_item a:hover,
.news_nav_item_active a {
    color: #fff;
    background: linear-gradient(135deg, #54acd7 0%, #5cb8e6 100%);
    border-color: #54acd7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(84, 172, 215, 0.3);
}

/* 新闻列表 */
.news_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    grid-auto-rows: 1fr;
}

.news_item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all .3s;
    display: flex;
}

.news_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.news_card {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.news_card_img {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.news_card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.news_item:hover .news_card_img img {
    transform: scale(1.1);
}

.news_card_content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news_card_title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .3s;
    flex: 1;
}

.news_item:hover .news_card_title {
    color: #54acd7;
}

.news_card_meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.news_card_date {
    font-size: 14px;
    color: #999;
}

/* 上一篇/下一篇 */
.news_prevnext {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news_prevnext_item {
    flex: 0 0 auto;
}

.news_prevnext_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 16px;
    transition: all .3s;
}

.news_prevnext_link:hover {
    color: #54acd7;
}

.news_prevnext_link:hover .news_prevnext_arrow {
    transform: translateX(0);
}

.news_prevnext_link:first-child:hover .news_prevnext_arrow {
    transform: translateX(-3px);
}

.news_prevnext_link:last-child:hover .news_prevnext_arrow {
    transform: translateX(3px);
}

.news_prevnext_arrow {
    font-size: 18px;
    transition: transform .3s;
}

.news_prevnext_text {
    font-size: 16px;
}

.news_prevnext_disabled {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 16px;
    cursor: not-allowed;
}

/* 分页 */
.news_pagination {
    margin-top: 60px;
    text-align: center;
}

.news_pagination a,
.news_pagination span {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    transition: all .3s;
}

.news_pagination a:hover {
    color: #54acd7;
    border-color: #54acd7;
    background: rgba(84, 172, 215, 0.1);
}

.news_pagination .current {
    background: linear-gradient(135deg, #54acd7 0%, #5cb8e6 100%);
    color: #fff;
    border-color: #54acd7;
}

/* 响应式 */
@media screen and (max-width: 980px) {
    .news_banner {
        height: 280px;
    }

    .news_banner_content h1 {
        font-size: 42px;
    }

    .news_banner_content p {
        font-size: 18px;
    }

    .news_wrap {
        padding: 60px 0;
    }

    .news_nav_box {
        gap: 15px;
        margin-bottom: 50px;
    }

    .news_nav_item a {
        padding: 10px 20px;
        font-size: 14px;
    }

    .news_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .news_card_img {
        height: 220px;
    }

    .news_card_title {
        font-size: 16px;
    }

    .news_pagination {
        margin-top: 50px;
    }
}

@media screen and (max-width: 768px) {
    .news_page {
        padding-top: 70px;
    }

    .news_banner {
        height: 240px;
    }

    .news_banner_content h1 {
        font-size: 32px;
    }

    .news_banner_content p {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .news_wrap {
        padding: 50px 0;
    }

    .news_nav_box {
        margin-bottom: 40px;
    }

    .news_list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news_card_content {
        padding: 20px;
    }

    .news_card_img {
        height: 200px;
    }

    .news_card_title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .news_pagination {
        margin-top: 40px;
    }

    .news_pagination a,
    .news_pagination span {
        padding: 8px 14px;
        font-size: 13px;
        margin: 0 3px;
    }
}
