/**
 * 专家团队 swiper 切换列表样式
 * 来源：健康体检子站 zxgk 专家团队区块，适配主站 yxmr 页面
 * 选择器前缀由 .jj_list .zjtd 调整为 .zjtd，去除 .jj_list 依赖
 */

/* 专家团队容器 */
.zjtd {
    margin-top: 0;
    background: url(../img/people/icon30.png) no-repeat bottom center;
    background-size: 100% 3.85rem;
    width: 100%;
    position: relative;
}
.zjtd::before {
    content: "";
    display: block;
    background: url(../img/people/icon31.png) no-repeat center;
    background-size: 100% 100%;
    width: 9.04rem;
    height: 6.13rem;
    position: absolute;
    bottom: 1.85rem;
    left: 0;
    z-index: -1;
}
.zjtd > .w {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.zjtd > .w h1 {
    color: #333;
    font-size: 0.5rem;
    font-weight: 700;
}
.zjtd > .w14 .zj_tit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.zjtd > .w14 .zj_tit a {
    display: block;
    color: #333333;
    font-size: 24px;
    line-height: 0.48rem;
    position: relative;
    margin-left: 0.56rem;
    cursor: pointer;
}
.zjtd > .w14 .zj_tit a::before {
    content: "";
    display: block;
    width: 0;
    height: 0.02rem;
    background: #41ac4c;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all 0.5s;
}
.zjtd > .w14 .zj_tit a::after {
    content: "";
    display: block;
    width: 0;
    height: 0.02rem;
    background: #23a3e2;
    position: absolute;
    bottom: 0;
    right: 0;
    transition: all 0.5s;
}
.zjtd > .w14 .zj_tit a.on {
    color: #27aeff;
    font-weight: 700;
}
.zjtd > .w14 .zj_tit a.on::before {
    width: 0.15rem;
}
.zjtd > .w14 .zj_tit a.on::after {
    width: 0.75rem;
}

/* 内容区 */
.zjtd .zjtd_nr {
    position: relative;
}
.zjtd .zjtd_nr .zjtd_cont {
    display: none;
    min-height: 5.57rem;
}
.zjtd .zjtd_nr .zjtd_cont .zj {
    padding: 0 2.6rem;
    padding-bottom: 1.36rem;
    margin-top: 0.66rem;
    position: relative;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item {
    width: 360px;
    height: 4.21rem;
    position: relative;
    border-radius: 0.17rem;
    margin-right: 0.43rem;
    overflow: hidden;
    transition: width 0.3s ease;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item a::before {
    content: "";
    width: 0.25rem;
    height: 0.26rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../img/people/icon18.png);
    position: absolute;
    right: 0.15rem;
    top: 0.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item a .show {
    width: 100%;
    height: 100%;
    position: relative;
    background: #dbe9f2;
    z-index: 1;
    transition: opacity 0.3s ease;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item a .show span {
    color: #fff;
    font-size: 0.3rem;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.28rem;
    z-index: 4;
    width: 100%;
    padding: 0 0.3rem;
    box-sizing: border-box;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item a .show .img-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: flex-end;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item a .show .img-box img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item a .show::before {
    content: "";
    width: 100%;
    height: 1.98rem;
    position: absolute;
    left: 0;
    bottom: 0;
    background: url(../img/people/icon14.png) no-repeat center;
    background-size: 100% 100%;
    z-index: 2;
}

/* 隐藏层（hover 展开） */
.zjtd .zjtd_nr .zjtd_cont .zj .item a .hide {
    width: 6.32rem;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 20px;
    z-index: 2;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.3s ease;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item a .hide .bg-img {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
    -webkit-mask-image: url(../img/people/twist-mask.svg);
    -webkit-mask-position: -1.2rem -1.2rem;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: calc(100% + 1.2rem) auto;
    transition: -webkit-mask-position 0.5s;
    z-index: 1;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item a .hide .bg-img img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
    object-fit: cover;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item a .hide .img-box {
    width: 3.6rem;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item a .hide .img-box img {
    display: block;
    width: 100%;
    max-height: 100%;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item a .hide .info {
    width: 2.5rem;
    position: absolute;
    top: 50%;
    right: 1vw;
    transform: translateY(-50%);
    z-index: 2;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item a .hide .info span {
    color: #333;
    font-size: 0.34rem;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item a .hide .info .zw {
    margin-top: 0.2rem;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item a .hide .info .zw span {
    color: #333;
    font-size: 0.2rem;
    margin-right: 0.18rem;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item a .hide .info .con {
    color: #333;
    font-size: 0.2rem;
    margin-top: 0.3rem;
    line-height: 1.6;
}

/* active 展开 */
.zjtd .zjtd_nr .zjtd_cont .zj .item.active {
    width: 632px;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item.active a .show {
    opacity: 0;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item.active a .hide {
    opacity: 1;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item:hover a::before {
    opacity: 1;
    transition-delay: 0.3s;
}
.zjtd .zjtd_nr .zjtd_cont .zj .item:hover a .hide .bg-img {
    -webkit-mask-position: 0 0;
}

/* 滚动条 */
.zjtd .zjtd_nr .zjtd_cont .zj .bar {
    width: 50vw;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    right: 0;
    background: #fff;
    cursor: pointer;
}
.zjtd .zjtd_nr .zjtd_cont .zj .bar .swiper-scrollbar-drag {
    background: transparent;
}
.zjtd .zjtd_nr .zjtd_cont .zj .bar .swiper-scrollbar-drag::after {
    content: "";
    width: 0.59rem;
    height: 0.59rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../img/people/icon17.png);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.zjtd .zjtd_nr .zjtd_cont.on {
    display: block;
}

/* 响应式适配 */
@media screen and (max-width: 768px) {
    .zjtd {
        overflow: hidden;
        background: #f1f6fa;
        margin-top: 0;
        padding-top: 1rem;
    }
    .zjtd > .w14 .zj_tit a {
        font-size: 0.4rem;
        line-height: 2;
    }
    .zjtd .zjtd_nr .zjtd_cont .zj {
        padding: 0 0.3rem;
        padding-bottom: 1.5rem;
    }
    .zjtd .zjtd_nr .zjtd_cont .zj .item {
        width: 100%;
    }
    .zjtd .zjtd_nr .zjtd_cont .zj .item a .hide {
        width: 100%;
    }
    .zjtd .zjtd_nr .zjtd_cont .zj .item a .hide .info span {
        font-size: 0.4rem;
    }
    .zjtd .zjtd_nr .zjtd_cont .zj .item a .hide .info .zw span {
        font-size: 0.28rem;
    }
    .zjtd .zjtd_nr .zjtd_cont .zj .item a .hide .info .con {
        font-size: 0.28rem;
    }
    .zjtd .zjtd_nr .zjtd_cont .zj .item.active {
        width: 100%;
    }
    .zjtd .zjtd_nr .zjtd_cont .zj .item.swiper-slide-active a .show {
        opacity: 0;
    }
    .zjtd .zjtd_nr .zjtd_cont .zj .item.swiper-slide-active a::before {
        opacity: 1;
        transition-delay: 0.3s;
    }
    .zjtd .zjtd_nr .zjtd_cont .zj .item.swiper-slide-active a .hide {
        opacity: 1;
    }
    .zjtd .zjtd_nr .zjtd_cont .zj .item.swiper-slide-active a .hide .bg-img {
        -webkit-mask-position: 0 0;
    }
    .zjtd .zjtd_nr .zjtd_cont .zj .item:nth-child(2n+1) {
        margin-top: 0;
    }
}
