/*轮播图*/
.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-content {
    display: flex;
    transition: transform 0.5s;
}

.carousel-item {
    width: 100%;
    flex-shrink: 0;
    text-align: center;
    padding: 10px;
}

button {
    margin: 5px;
    cursor: pointer;
}

/**/
.department-box-bg {
    background: url('../pic/index/department-bg.png') center center/ cover no-repeat;
    width: 100%;
    height: 636px;
}

.more-btn {
    border: 1px solid #ffffff;
}

.department-item-indexHome {
    width: 16%; /* 25%的宽度 */
    height: 175.24px;
    background: rgba(255, 255, 255, 0.2);
    clip-path: polygon(0 50%, 25% 0%, 75% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    margin-right: 129.5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 16px;
    cursor: pointer;

}
.department-icon {
    width: 51px;
    height: 52px;
    margin-bottom: 4px;
}

.department-item-indexHome:last-child {
    margin-right: 0;
}


.mgt-83 {
    margin-top: -83px;
}

.mgt-76 {
    margin-top: -78px;
}


.more-btn {
    width: 98px;
    height: 36px;
    opacity: 0.5;
    border: 1px solid #B27041;
    border-radius: 4px;
    cursor: pointer;
}

.mgt12 {
    margin-right: 12px;
}

.right-icon {
    width: 24px;
    height: 14px;
}

.banner {
    width: 100%;
    height: 520px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.nav-item {
    height: 200px;
    width: 400px;
    background: white;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-item-bg {
    height: 200px;
    width: 400px;
    position: absolute;
    top: 0;
    z-index: 1;
}

.nav-icon {
    width: 66px;
    height: 60px;
}

.z-index-2 {
    z-index: 2;
}

.guide-box {
    /*margin-top: -60px;*/
    /*background: white;*/
}

.guide-box-bg {
    background: #f3f5f9;
}

@media screen and (max-width: 1200px) {
    .banner {
        height: 320px;
    }

    .guide-box {
        margin-top: 20px;
        background: #f3f5f9;


    }

    .nav-item {
        width: 90%;
        margin: 10px auto;
        border: 1px solid #F3F5F9;
    }

    .trends-box-bg {
        height: auto;
    }

    .trends-box {
        /*flex-direction: column;*/
        padding: 10px;
    }

    .trends-left {
        display: flex;
        flex-direction: column;
    }
    .trends-left-nav {
        /*display: flex;*/
        justify-content: space-between;
    }


    .trends-right {
        margin-top: 0;
        margin-left: 0;
    }

    .trends-box-bg .trends-right-item:nth-child(2n-1) {
        margin-right: 0;
    }

    .default-bg-title {
        padding: 10px;
    }

    .default-bg {



    }

    .video-item {
        display: none;;
    }

    .video-box {
        margin-bottom: 0;
    }

    /*.department-box-bg {*/
    /*    padding: 10px;*/


    /*}*/
    /*.department-item {*/
    /*    clip-path: unset;*/
    /*    width: 100px;*/
    /*    height: 100px;*/
    /*    margin-right: 0;*/
    /*    font-size: 12px;*/
    /*    margin-bottom: 10px;*/
    /*}*/

    .mgt-83,
    .mgt-76 {
        margin-top: 0;
    }

}


/*第二个大div 医院动态*/
.trends-box-bg {
    background: url('../pic/index/bg.png') center center/ cover no-repeat;
    width: 100%;
    height: 424px;
}
.trends-right {
    margin: 42px 0 0 72px
}

.trends-right-item {
    width: 500px;
    height: 162px;
    background: #FFFFFF;
    margin-bottom: 20px;
    box-sizing: border-box;
    padding: 20px;
    cursor: pointer;
}

.trends-right-item:nth-child(2n-1) {
    margin-right: 20px;

}

.news-img {
    width: 100px;
    height: 75px;
    margin-right: 20px;
}

.trends-left-item {
    border-bottom: 2px solid transparent;
    width: 72px;
    padding-bottom: 8px;
    margin-bottom: 33px;
    cursor: pointer;
}

.trends-left-item-act {
    color: #327CE4;
    font-weight: 600;
    margin-bottom: 20px; /* 设置垂直间距 */
    position: relative; /* 设置相对定位 */
}

.trends-left-item-act::before {
    content: "";
    position: absolute;
    bottom: 0; /* 控制底部边框的位置 */
    left: 0;
    width: 100%;
    height: 2px; /* 底部边框的高度 */
    background-color: #327CE4;
    transform: scaleX(0); /* 初始时不可见 */
    transform-origin: 0 0; /* 从左边开始显示 */
    transition: transform 0.3s ease; /* 添加过渡效果 */
}

.trends-left-item-act:hover::before {
    transform: scaleX(1); /* hover 时显示底部边框 */
    bottom: -2px; /* 通过修改 bottom 来使底部边框显示在文字下面 */
    margin-bottom: 0; /* hover 时去掉垂直间距 */
}


.mgb40 {
    margin-bottom: 40px;
}

@media screen and (max-width: 1200px) {
    .trends-box-bg {
        height: auto;
    }
}


/*专家介绍部分*/
.default-bg {
    background: #F3F5F9;
}

.default-bg-title {
    padding: 10px;
}

.default-bg {

    .doctor-box {
        flex-wrap: wrap;
    }

}


@media screen and (max-width: 1200px) {

    .default-bg-title {
        padding: 10px;
    }

    .default-bg {

        .doctor-box {
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
        }

        .video-item {
            display: none;;
        }

        .video-box {
            margin-bottom: 0;
        }
    }
}

/*专家的卡片的css*/
.doctor-item {
    border: 1px solid #DADBE1;
    background: #FFFFFF;
    border-radius: 4px;
    width: 280px;
    height: 510px;
    margin-right: 26px;
    margin-bottom: 24px;

    &:nth-child(4n) {
        margin-right: 0;
    }
}

.doctor-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 悬停时的阴影效果 */
}

.doctor-box-img {
    width: 280px;
    height: 280px;
    border-radius: 4px;
}

.info {
    background-color: #fff;
    padding: 20px;

}

.name {
    font-weight: 600;
    font-size: 20px;
    color: #222222;
}

.detail-one {
    font-weight: 600;
    font-size: 16px;
    color: #222222;
}

.dj {
    font-size: 12px;
    height: 24px;
    color: #B27041;
    padding: 0 8px;
    border: 1px solid #B27041;
    border-radius: 4px;
    margin: 0 0 0 12px;
}

.dj2 {
    font-size: 12px;
    height: 24px;
    color: #B27041;
    padding: 0 8px;
    border: 1px solid #B27041;
    border-radius: 4px;
    margin: 0 0 0 12px;
    width: 150px;
    text-align: center;
}

.work {
    font-size: 14px;
    color: #666666;
}

.detail {
    color: #222222ff;
    font-size: 14px;
    line-height: 24px;
    /*margin: 5px 0 0;*/
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.detail.overell {
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.detail-span {
    color: #666666ff;
}


@media screen and (max-width: 1200px) {
    .item {
        margin-right: 0;
    }
}

/*视频区域*/
.default-bg {
    background: #F3F5F9;
}

.video-box {
    width: 639.4px;
    height: 360px;
    flex-shrink: 0;
    background: black;
}

.video-img {
    width: 239.82px;
    height: 135px;
}


.border {
    border: 2px solid transparent;
}

.video-item:hover {
    .video-img {
        border: 2px solid #327CE4;
    }

    .color2 {
        color: #327CE4;
    }
}

.active {
    .border {
        border-color: #327CE4;
    }

    .fnw600 {
        color: #327CE4;
    }
}

.text-z-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*下面是医生展示栏*/
 .scrolling-container {
     overflow-x: hidden; /* 隐藏默认的滚动条 */
     /*overflow-x: scroll;*/
     white-space: nowrap;
     width: 100%;
     margin-bottom: 20px;
     padding: 20px 0;
     position: relative;
 }

.scrolling-container::-webkit-scrollbar {
    display: none; /* 隐藏滚动条（适用于WebKit浏览器如Chrome和Safari） */
}

.scrolling-container {
    scrollbar-width: none; /* 隐藏滚动条（适用于Firefox） */
    -ms-overflow-style: none; /* 隐藏滚动条（适用于Edge） */
}

.doctor-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    animation: scroll 120s linear infinite;
}

@keyframes scroll {
    100% {
        transform: translateX(calc(-280px * 8)); /* 最后一张卡片 */
    }
}
/*暂停滚动*/
.doctor-list:hover {
    animation-play-state: paused !important;;
    -webkit-animation-play-state:paused; /* Safari 和 Chrome */
}

.doctor-box {
    width: 280px; /* Adjust card width */
    margin-right: 10px; /* Adjust spacing between cards */
}
