/* 容器宽度 */
.ey_news_new{
    background:#fff;
    padding:60px 0;
}

.news_container{
    margin:0 auto;
    width:90%;
    max-width:1400px;
}

@media (max-width:1600px){
    .news_container{
        max-width:1400px;
    }
}

/* ===== 上部轮播 ===== */
.news_top{
    overflow:hidden;
}

.newsSwiper{
    overflow:hidden;
}

.news_slide{
    display:flex;
    align-items:stretch;   /* 关键：让左右高度一致 */
    gap:60px;
}

.newsSwiper .swiper-slide{
    width:100%;
}

/* 左图固定比例 */
.news_slide_img{
    width:536px;
    height:367px;
    flex-shrink:0;
}

.news_slide_img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* ===== 右侧文字区域：三段式布局 ===== */
.news_slide_text{
    flex:1;
    display:flex;
    flex-direction:column;
    height:367px;   /* 与图片高度一致 */
}

/* 标题顶部对齐 */
.news_slide_text h2{
    font-size:28px;
    margin-bottom:20px;
}

.news_slide_text h2 a{
    color:#000;
}

/* 简介占中间空间 */
.news_slide_text .desc{
    font-size:16px;
    color:#666;
    line-height:1.8;
    flex:1;
}

.news_slide_bottom{
    display:flex;
    justify-content:space-between; /* 左日期右按钮 */
    align-items:center;
    margin-top:20px;
}

.news_slide_bottom .date{
    color:#999;
}

/* 按钮 */
.detail_btn{
    display:inline-flex;
    align-items:center;
    justify-content:space-between;
    padding:0 6px 0 18px;
    height:44px;
    min-width:150px;
    background:#366092;
    color:#fff;
    border-radius:22px;
    font-size:14px;
    text-decoration:none;
    transition:all .25s;
    box-shadow:0 6px 16px rgba(54,96,146,0.25);
}

/* 右侧圆形区域 */
.detail_btn .btn_arrow{
    width:34px;
    height:34px;
    background:#e9eef3;
    border-radius:50%;
    margin-left:14px;
    position:relative;
    flex-shrink:0;
}

/* 箭头 */
.detail_btn .btn_arrow:after{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:7px;
    height:7px;
    border-top:2px solid #366092;
    border-right:2px solid #366092;
    transform:translate(-60%,-50%) rotate(45deg);
}

/* Hover效果 */
.detail_btn:hover{
    background:#2c4f7a;
    transform:translateY(-1px);
}

/* 分页点 */
.newsSwiper .swiper-pagination{
    margin-top:30px;
    position:relative;
}

/* 分隔线 */
.news_line{
    height:1px;
    background:#e5e5e5;
    margin:50px 0;
}

/* ===== 列表 ===== */
.news_list ul{
    position:relative;
}

.news_list ul li{
    position:relative;
    border-bottom:1px solid #e5e5e5;
}

.news_item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 30px 0;
    color: #000;
    z-index: 1;
    background-color: transparent; 
    /* 在这里定义离开时的过渡 */
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out; 
}

/* 通栏背景层 */
/* 2. 通栏背景原始状态 */
.news_item:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 100vw;
    height: 100%;
    transform: translateX(-50%);
    background-color: #366092;
    opacity: 0; /* 默认隐藏 */
    z-index: -1;
    /* 关键：这里的过渡时间必须和本体 100% 一致 */
    transition: opacity 0.2s ease-in-out; 
}

.news_item_date{
    width:140px;
    border:1px solid #e5e5e5;
    padding:30px 16px;
    line-height: 2;
    text-align:left;
    flex-shrink:0;
    background:transparent;
    transition:border-color .2s ease, color .2s ease;
}

.news_item_date strong{
    display:block;
    font-size:26px;
    line-height:1;
}

.news_item_date span{
    font-size:14px;
    color:#666;
}

.news_item_text{
    flex:1;
    padding:0 40px;
}

.news_item_text h3{
    font-size:20px;
    margin-bottom:10px;
}

.news_item_text p{
    color:#666;
    line-height:1.7;
}

.news_item_img{
    width:260px;
    height:178px;
    flex-shrink:0;
}

.news_item_img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* hover效果 */
.news_item:hover{
    background:#366092;
    color:#fff;
}

.news_item:hover:before{
    opacity:1;
}

/* hover时只改颜色和边框 */
.news_item:hover .news_item_date{
    border-color:#fff;
    color:#fff;
}

.news_item:hover h3,
.news_item:hover p,
.news_item:hover span{
    color:#fff;
}

/* 分页 */
.news_pages{
    text-align:center;
    margin-top:50px;
    font-size:0;
}

/* 1. 基础样式 & 可点击状态 (浅灰色) */
/* 只要带有 href 属性，说明是可以跳转的“上一页/下一页/数字” */
.news_pages a[href] {
    display: inline-block;
    min-width: 42px;
    height: 42px;
    line-height: 40px; /* 减去边框 */
    margin: 0 5px;
    text-align: center;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.3s;
    background-color: #eeeeee; /* 浅灰色 */
    border: 1px solid #dddddd;
    color: #666666;
}

/* 2. 当前页状态 (深蓝色) */
/* 匹配 class="pnnum1" */
.news_pages a.pnnum1 {
    display: inline-block;
    min-width: 42px;
    height: 42px;
    line-height: 40px;
    margin: 0 5px;
    text-align: center;
    font-size: 14px;
    border-radius: 4px;
    background-color: #366092 !important; /* 深蓝色 */
    border: 1px solid #366092;
    color: #ffffff !important;
    cursor: default;
}

/* 3. 禁用/不可点击状态 (深灰色) */
/* 匹配没有 href 且不是当前页的 a 标签 */
.news_pages a:not([href]):not(.pnnum1) {
    display: inline-block;
    min-width: 42px;
    height: 42px;
    line-height: 40px;
    margin: 0 5px;
    text-align: center;
    font-size: 14px;
    border-radius: 4px;
    background-color: #bbbbbb; /* 深灰色 */
    border: 1px solid #aaaaaa;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 4. Hover 效果 */
.news_pages a[href]:hover {
    background-color: #366092;
    border-color: #366092;
    color: #ffffff;
}

.news_pages a,
.news_pages span{
    display:inline-block;
    min-width:40px;
    height:40px;
    line-height:40px;
    margin:0 5px;
    border:1px solid #ddd;
    color:#333;
    background:#fff;
    text-align:center;
    font-size:14px;
    transition:all .25s;
}

/* 当前页 */
.news_pages .active{
    background:#366092;
    color:#fff;
    border-color:#366092;
}

/* hover */
.news_pages a:hover{
    background:#366092;
    color:#fff;
    border-color:#366092;
}

/* 禁用状态 */
.news_pages .disabled{
    background:#f0f0f0;
    color:#999;
    border-color:#e0e0e0;
    cursor:not-allowed;
}

/* ===== 响应式 ===== */
@media (max-width:1024px){

    .news_slide{
        flex-direction:column;
    }

    .news_slide_img{
        width:100%;
        height:auto;
        aspect-ratio:536/367;
    }

    .news_item{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .news_item_img{
        width:100%;
        height:auto;
        aspect-ratio:536/367;
    }

    .news_item_text{
        padding:0;
    }
}