img {
    display: block;
}

.home-swiper img,
.home-swiper video {
    display: block;
}

html,
body {
    position: relative;
    height: 100%;

}

body {
    background: #ffffff;
    color: #000;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 淡入动画*/
.fade-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/*  Swiper 基础覆盖（只作用于外层 .mySwiper）*/
.swiper {
    width: 100%;
    height: 100%;
}

.swiper .swiper-pagination-bullet {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(190, 188, 188, 0.3);
    margin: 0 8px;
    opacity: 1;
}

.swiper .swiper-pagination-bullet-active {
    background: #6CB896;
}

.mySwiper>.swiper-wrapper>.swiper-slide {
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 首屏 banner 外层容器 */
.home-swiper-wrap {
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.home-swiper {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.home-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    margin: 0 !important;
}

/*  媒体与遮罩  */
.home-swiper .slide-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    display: block;
    transform: scale(1);
    transition: transform 6s ease-out;
    will-change: transform;
}

.slide-mask {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.1) 55%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    color: #fff;
    z-index: 10 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.slide-content>*+* {
    margin-top: 18px;
}

.slide-title {
    font-size: 56px;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

.slide-sub {
    font-size: 20px;
    color: #fff;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(40px);
    margin-top: 40px;
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.55s;
}

/* .slide-title,
    .slide-sub {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    } */

.swiper-slide-active .slide-title,
.swiper-slide-active .slide-sub {
    opacity: 1;
    transform: translateY(0);
}

.swiper-slide:not(.swiper-slide-active) .slide-title,
.swiper-slide:not(.swiper-slide-active) .slide-sub {
    /* opacity: 0 !important; */
    transform: translateY(40px) !important;
}

.more-btn-wrap {
    margin-top: 60px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.65s;
}

.swiper-slide-active .more-btn-wrap {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.swiper-slide:not(.swiper-slide-active) .more-btn-wrap {
    opacity: 0 !important;
    transform: translateY(40px) !important;
}

.more-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 38px;
    font-size: 15px;
    font-weight: 500;
    color: #6CB896;
    background: #fff;
    border: 1px solid #6CB896;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.35s ease;
}

.more-btn i {
    font-style: normal;
    margin-left: 10px;
    transition: transform 0.35s ease;
}

.more-btn:hover {
    background: #6CB896;
    color: #fff;
    transform: translateY(-2px);
}

.more-btn:hover i {
    transform: translateX(5px);
}

.home-swiper .swiper-slide-active .slide-media {
    transform: scale(1.08);
}

.home-swiper .swiper-slide:not(.swiper-slide-active) .slide-media {
    transform: scale(1);
    transition: transform 0.6s ease-out;
}

.slide-video .video-el {
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    backface-visibility: hidden;
    transition: none !important;
}

.home-swiper .swiper-pagination {
    bottom: 40px;
    left: 8%;
    width: auto;
}

.home-swiper .swiper-pagination-bullet {
    width: 40px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 8px;
    transition: all 0.4s;
    opacity: 1;
}

.home-swiper .swiper-pagination-bullet-active {
    width: 60px;
    background: #0d4282 !important;
}

@media (max-width: 992px) {
    .home-swiper-wrap {
        margin-top: 70px;
    }

    .slide-content {
        bottom: 20%;
    }

    .slide-title {
        font-size: 40px;
    }

    .slide-sub {
        font-size: 17px;
    }

}

@media (max-width: 768px) {
    .home-swiper-wrap {
        height: 100vh;
        height: 100dvh;
        min-height: 480px;
        margin-top: 60px;
    }

    .slide-content {
        bottom: 20%;
    }

    .slide-title {
        font-size: 30px;
    }

    .slide-sub {
        font-size: 15px;
    }

    .more-btn-wrap {
        margin-top: 60px;
    }

    .home-swiper .swiper-pagination {
        left: 6%;
        bottom: 24px;
    }
}

@media (max-width: 480px) {
    .home-swiper-wrap {
        height: 70vh;
        min-height: 380px;
    }

    .slide-content {
        bottom: 20%;
    }

    .slide-title {
        font-size: 22px;
    }

    .slide-sub {
        font-size: 13px;
    }

    .more-btn-wrap {
        margin-top: 30px;
    }
}

.home-swiper .slide-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    display: block;
}

.home-swiper video.slide-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

.home-swiper .swiper-slide-active .slide-media {
    animation: slideZoom 6s ease-out forwards;
}

@keyframes slideZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

/* 移动端：外层 mySwiper 拍平*/
@media (max-width: 992px) {
    .mySwiper {
        height: auto !important;
        overflow: visible !important;
    }

    .mySwiper>.swiper-wrapper {
        display: block !important;
        transform: none !important;
        height: auto !important;
    }

    .mySwiper>.swiper-wrapper>.swiper-slide {
        height: auto !important;
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
    }

    .home-swiper-wrap {
        margin-top: 30px !important;
        height: 100vh;
        height: 40dvh;
    }

    .home-swiper {
        height: 100%;
    }

    .home-swiper .swiper-slide {
        height: 100% !important;
        width: 100% !important;
        display: block !important;
    }

    .mySwiper>.swiper-pagination {
        display: none !important;
    }

    .slide-title {
        font-size: 32px;
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }

    .slide-sub {
        font-size: 15px;
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
        margin-top: 15px;
    }

    .slide-content {
        padding: 0 20px;
        justify-content: center;
        top: 70% !important;
    }

    .slide-content>*+* {
        margin-top: 12px;
    }

    .more-btn-wrap {
        margin-top: 40px;
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }

    .more-btn {
        padding: 10px 26px;
        font-size: 14px;
    }

}