.news-carousel{
    padding: 60px 0 50px;
}
.swiper-wrapper{
    padding-bottom: 60px !important;
}
.swiper{
    height: 420px;
    padding-bottom: 100px;
    box-sizing: content-box;
}
.swiper-slide{
 padding: 20px;
}
.swiper-item{
    display: flex;
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.07);
    gap: 50px;
}
.swiper-item img{
    flex: 1;
    height: 424px;
}
.swiper-item .swiper-info{
    flex: 1.5;
    padding-top: 45px;

}
.swiper-item .swiper-info h3{
    font-size: 26px;
    font-weight: 700;
    color: rgba(205, 167, 107, 1);
    margin-bottom: 34px;
}
.swiper-item .swiper-info p{
    font-size: 18px;
    font-weight: 400;
    line-height: 36px;
    color: rgba(0, 0, 0, 0.8);
}
.swiper-item .swiper-info span{
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 40px;
}
.swiper-pagination-bullet{
    background: rgba(205, 167, 107, 0.6);
    width: 14px;
    height: 14px;
}
.swiper-pagination-bullet-active{
    background: rgba(205, 167, 107, 1);
}

.news-list{
    background-color: rgba(245, 245, 245, 1);
    padding: 70px 0 40px;
}
.row>div{
    margin-bottom: 20px;
}

.card {
    border: none;
    border-radius: 0;
    height: 100%;
    padding: 1.5rem;
    margin: 0 !important;
    
}
.card a{
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
}
.card::before{
    content: " ";
    background-color: #fff;
    width: 5px;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
}
.card:hover::before{
    background-color: rgba(205, 167, 107, 1);
}
.card-title {
    color: #e67e22;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.date-box{
    width: 120px;
    border-right: 1px solid rgba(230, 230, 230, 1);
}
.date-box p{
    font-size: 26px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.5);
}
.date {
    color: rgba(0, 0, 0, 0.5);
    font-size: 16px;
    display: block;
    font-weight: 500;
}

.card-title{
    font-size: 20px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.8);
}
.card:hover .card-title{
    color: rgba(205, 167, 107, 1);
}
.card-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    color: rgba(0, 0, 0, 0.8);
    overflow: hidden; /* 隐藏超出部分 */
    display: -webkit-box; /* 将元素作为弹性伸缩盒子模型显示 */
    -webkit-box-orient: vertical; /* 设置伸缩盒子的子元素排列方式为垂直 */
    -webkit-line-clamp: 3; /* 限制显示的行数为3行 */
    line-clamp: 3; /* 标准属性，部分浏览器支持 */
    word-break: break-all; /* 强制换行（英文/数字长单词） */
}

.vertical-line {
    width: 3px;
    background-color: #e67e22;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.pagination {
    justify-content: center;
    margin-top: 2rem;
    border-top: 0.5px solid rgba(0, 0, 0, 0.3);
}

.page-item .page-link {
    color: #343a40;
    border: none;
    background: transparent;
    margin: 0 10px !important;
    padding: 10px 0;
    box-shadow: none;
    width: 34px;
    text-align: center;
    border-radius: 0 !important;
    border-top: 3px solid transparent;

}
.page-item.active .page-link{
    border-top: 3px solid rgba(205, 167, 107, 1);
}
.page-item.active .page-link {
    color: #e67e22;
    font-weight: bold;
    background: transparent;
}

.page-item .page-link:hover {
    color: #e67e22;
    background: transparent;
}

/*详情样式*/
.nav-detail{
    height: 60px;
    line-height: 60px;
    background-color: rgba(204, 204, 204, 0.1);
    font-size: 16px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.9);
}

.nav-detail span{
    color: rgba(0, 0, 0, 0.5);
}

.news-detail{
    padding: 42px 0 50px;
}
.news-header{
    text-align: center;
    margin-bottom: 50px;
}
.news-header h4{
    font-size: 26px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.8);
}
.news-header p{
    font-size: 16px;
    color: rgba(0, 0, 0, 0.5);
}
.news-text{
    font-size: 17px;
    font-weight: 400;
    line-height: 34px;
    color: rgba(0, 0, 0, 0.8);
}
.related{
    background-color: rgba(204, 204, 204, 0.1);
    padding: 40px 0;
}
.relatedWeb{
    display: block;
}
.relatedPhone{
    display: none;
}

.related .related-header{
    font-size: 24px;
    font-weight: 700;
    color: rgba(0, 0, 0, 1);
    margin-bottom: 28px;
}

.related-list{
    display: flex;
    gap: 38px;
}
.related-list .related-item{
    flex: 1;
    flex-basis: 33.333%;
    flex-grow: 0;
    flex-shrink: 0;
}
.related-list .related-item img{
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
}
.related-list .related-item p{
    padding: 0 18px;
    color: rgba(56, 56, 56, 1);
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
}
.related-list .related-item p:hover{
    color: rgba(205, 167, 107, 1);
}

@media (max-width: 768px){
    .news-carousel{
        padding: 10px 0 40px;
    }
    .news-carousel .container{
        padding: 0;
    }
    .swiper-slide{
        padding: 10px;
        background-color: #fff;
    }
    .swiper-item{
        display: block;
        /* box-shadow: 0px 2px 20px  rgba(0, 0, 0, 0.07); */
    }
    .swiper-item img{
        width: 100%;
        height: 267px;
    }
    .swiper-item .swiper-info{
        padding: 15px;
    }
    .swiper-item .swiper-info a{
        display: flex;
        flex-direction: column; 
        gap: 10px;
    }
    .swiper-item .swiper-info h3{
        font-size: 17px;
        margin-bottom: 12px;
        order: -1; 
        margin: 0;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .swiper-item .swiper-info p{
        font-size: 15px;
        line-height: 30px;
        color: rgba(0, 0, 0, 0.8);
        order: 0;
        margin: 0;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .swiper-item .swiper-info span{
        font-size: 15px;
        order: -2;
        margin: 0;
    }
    .card a{
        gap: 20px;
    }
    .card .date-box{
        width: auto;
        flex: 1;
    }
    .date-box .date{
        font-size: 14px;
    }

    .date-box p{
        font-size: 22px;
    }
    .card .card-info{
        flex: 4;
    }
    .news-list{
        padding: 40px 0;
    }
    .card-title{
        font-size: 17px;
        margin-bottom: 5px;
    }
    .card-text{
        font-size: 14px;
    }
    .pagination{
        gap: 18px;
        border-top: 0;
    }
    .page-item{
        border: 1px solid #ccc;
        border-radius: 50%;
        height: 38px;
        width: 38px;
        line-height: 38px;
        text-align: center;
        overflow: hidden;
    }
    .page-item.active .page-link{
        border-top: 0;
        text-align: center;
    }
    .page-item .page-link{
        width: 100%;
        height: 100%;
        padding: 0;
        margin: 0 !important;
        border-top: 0;
    }
    .page-item.active{
        border: 1px solid rgba(205, 167, 107, 1);
    }
    .page-item.active .page-link{
        background: rgba(205, 167, 107, 1);
        color: rgba(255, 255, 255, 1);
    }

    .nav-detail .container{
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 14px;
    }
    .news-detail{
        padding: 26px 0;
    }
    .news-header{
        margin-bottom: 20px;
    }
    .news-header h4{
        font-size: 22px;
    }
    .news-header p{
        font-size: 14px;
    }
    .related{
        padding: 30px 0;
    }
    .relatedWeb{
        display: none;
    }
    .relatedPhone{
        display: block;
    }
    .related .related-header{
        margin-bottom: 10px;
        font-size: 22px;
    }
    #related-swiper .swiper-slide{
        display: flex;
        gap: 15px;
        background: transparent;
    }
    #related-swiper .related-item{
        flex: 1;
    }
    #related-swiper .related-item img{
        width: 100%;
    }
    #related-swiper .related-item p{
        margin-top: 10px;
        font-size: 14px;
        line-height: 24px;
    }
}