/* 官网轮播 — 兼容 index_new.css + 视频背景 */
.gxyun-hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gxyun-banner-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gxyun-banner-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.gxyun-banner-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.gxyun-banner-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    background: #000;
}

.gxyun-banner-hit {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: block;
}

/* 手机端 */
.gxyun-hero-banner--mobile {
    height: 12.8rem;
    background: #0b1220;
}

.gxyun-hero-banner--mobile .swiper-container,
.gxyun-hero-banner--mobile .swiper-wrapper,
.gxyun-hero-banner--mobile .swiper-slide {
    height: 100%;
}

.gxyun-hero-banner--mobile .gxyun-banner-slide {
    height: 100%;
}

.gxyun-hero-banner--mobile .swiper-pagination {
    bottom: 0.36rem;
    z-index: 10;
}

.gxyun-hero-banner--mobile .swiper-pagination-bullet {
    position: relative;
    width: 0.72rem;
    height: 0.08rem;
    border-radius: 0;
    margin: 0 0.06rem;
    background: rgba(255, 255, 255, 0.35);
    opacity: 1;
    overflow: hidden;
}

.gxyun-hero-banner--mobile .swiper-pagination-bullet::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: #2358fe;
    transform-origin: left center;
    transform: scaleX(0);
}

.gxyun-hero-banner--mobile .swiper-pagination-bullet-active::after {
    animation: gxyun-banner-pagination-progress 4s linear forwards;
}

.gxyun-hero-banner--mobile .swiper-pagination-bullet-active {
    width: 0.72rem;
    background: rgba(255, 255, 255, 0.35);
}

.gxyun-hero-banner--mobile.act-banner-wrap {
    height: 9.066667rem;
}

.gxyun-hero-banner--mobile.act-banner-wrap .coupon-use-scene {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 5.026667rem;
    z-index: 12;
    width: 100%;
    line-height: .506667rem;
    font-size: .293333rem;
    color: #CC6633;
    text-align: center;
    pointer-events: none;
}

/* PC 端 — Swiper fade（参考 kkidc.com） */
.gxyun-hero-banner--pc.index-banner {
    height: 504px;
    min-height: 504px;
    background: transparent;
}

.gxyun-hero-banner--pc .swiper-container-gxyun-pc-banner,
.gxyun-hero-banner--pc .swiper-container-gxyun-pc-banner .swiper-wrapper,
.gxyun-hero-banner--pc .swiper-container-gxyun-pc-banner .swiper-slide {
    height: 504px;
}

.gxyun-hero-banner--pc .swiper-slide.gxyun-banner-pc-slide {
    position: relative;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
}

/* kkidc：独立链接层，不包裹 slide 内容 */
.gxyun-hero-banner--pc .swiper-slide > .gxyun-banner-hit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    display: block;
}

.gxyun-hero-banner--pc .swiper-container-initialized .swiper-slide > .gxyun-banner-hit {
    pointer-events: none;
}

.gxyun-hero-banner--pc .swiper-container-gxyun-pc-banner {
    cursor: grab;
}

.gxyun-hero-banner--pc .swiper-container-gxyun-pc-banner.swiper-container-dragging {
    cursor: grabbing;
}

.gxyun-hero-banner--pc.index-banner .swiper-slide .dt-index-content,
.gxyun-hero-banner--pc .gxyun-banner-slide--video .gxyun-banner-pc-content {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 1440px;
    max-width: 100%;
    height: 100%;
    margin: 0;
    pointer-events: none;
}

.gxyun-hero-banner--pc.index-banner .swiper-slide .gxyun-banner-pc-content--text {
    padding-top: 160px;
    box-sizing: border-box;
}

.gxyun-hero-banner--pc.index-banner .swiper-slide .dt-index-content .get-coupon-scroll-btn {
    pointer-events: auto;
}

.gxyun-hero-banner--pc.index-banner .swiper-slide .dt-index-content .double-eleven-ani-img {
    position: absolute;
    top: 160px;
    left: 0;
}

.gxyun-hero-banner--pc.index-banner .swiper-slide .dt-index-content .double-eleven-ani-img img {
    display: block;
}

.gxyun-hero-banner--pc.index-banner .swiper-slide .dt-index-content .get-coupon-scroll-btn {
    position: absolute;
    top: 344px;
    left: 0;
    width: 182px;
    text-align: center;
    height: 48px;
    line-height: 48px;
    font-size: 16px;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    outline: none;
    box-sizing: border-box;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s;
}

.gxyun-hero-banner--pc.index-banner .swiper-slide .dt-index-content .get-coupon-scroll-btn:hover {
    opacity: 0.92;
}

.gxyun-hero-banner--pc.index-banner .swiper-slide .gxyun-banner-pc-content--text .index-banner-content {
    position: static;
    z-index: 3;
    width: 600px;
    max-width: 100%;
    padding-left: 24px;
    box-sizing: border-box;
    pointer-events: none;
}

.gxyun-hero-banner--pc.index-banner .swiper-slide .gxyun-banner-pc-content--text .index-banner-title,
.gxyun-hero-banner--pc.index-banner .swiper-slide .gxyun-banner-pc-title {
    margin: 0;
    padding: 0;
    line-height: 58px;
    font-size: 48px;
    font-weight: 400;
    color: #2d3037;
}

.gxyun-hero-banner--pc.index-banner .swiper-slide .gxyun-banner-pc-content--text .index-banner-des,
.gxyun-hero-banner--pc.index-banner .swiper-slide .gxyun-banner-pc-subtitle {
    margin: 30px 0 0;
    padding: 0;
    line-height: 28px;
    font-size: 18px;
    font-weight: 400;
    color: #5e6d81;
}

.gxyun-hero-banner--pc.index-banner .swiper-slide .gxyun-banner-pc-content--text .index-banner-content .gxyun-banner-pc-btn,
.gxyun-hero-banner--pc.index-banner .swiper-slide .gxyun-banner-pc-content--text .index-banner-content .get-coupon-scroll-btn {
    position: static;
    top: auto;
    left: auto;
    display: inline-block;
    width: 182px;
    height: 48px;
    line-height: 48px;
    margin: 32px 0 0;
    padding: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    outline: none;
    text-decoration: none;
    pointer-events: auto;
    transition: opacity 0.2s;
}

.gxyun-hero-banner--pc.index-banner .swiper-slide .gxyun-banner-pc-content--text .index-banner-content .gxyun-banner-pc-btn:hover,
.gxyun-hero-banner--pc.index-banner .swiper-slide .gxyun-banner-pc-content--text .index-banner-content .get-coupon-scroll-btn:hover {
    opacity: 0.92;
}

.gxyun-hero-banner--mobile.m-index-banner .swiper-container .slide-content.gxyun-banner-mobile-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    height: auto;
    padding: 2.48rem 0.4rem 0;
    box-sizing: border-box;
    text-align: center;
    pointer-events: none;
}

.gxyun-hero-banner--mobile.m-index-banner .swiper-container .slide-content .slide-title,
.gxyun-hero-banner--mobile.m-index-banner .swiper-container .slide-content .gxyun-banner-mobile-title {
    margin: 0;
    height: auto;
    min-height: 1.0667rem;
    line-height: 1.0667rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: #2d3037;
    text-align: center;
    text-shadow: none;
}

.gxyun-hero-banner--mobile.m-index-banner .swiper-container .slide-content .slide-des,
.gxyun-hero-banner--mobile.m-index-banner .swiper-container .slide-content .gxyun-banner-mobile-subtitle {
    margin: 18px 0 0;
    padding: 0;
    line-height: 0.7467rem;
    font-size: 0.4267rem;
    font-weight: 400;
    color: #5e6d81;
    text-align: center;
    text-shadow: none;
}

.gxyun-hero-banner--mobile .gxyun-banner-bg--fallback {
    background: linear-gradient(135deg, #2358fe 0%, #0040ff 100%);
}

.gxyun-hero-banner--pc.index-banner .swiper-slide .index-banner-img {
    position: absolute;
    right: 24px;
    bottom: -24px;
    width: 640px;
    height: 384px;
}

.gxyun-hero-banner--pc.index-banner .swiper-slide .index-banner-img img {
    position: absolute;
    left: 0;
    bottom: 0;
    max-width: 100%;
}

.gxyun-hero-banner--pc.index-banner .swiper-slide.swiper-slide-active .index-banner-img img.gf-s-img-5 {
    animation: gxyun-gf-five-animate 0.7s ease-in-out 0s 1 normal;
}

@keyframes gxyun-gf-five-animate {
    0% {
        transform: translate3d(0, 30px, 0);
        opacity: 0;
    }
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

.gxyun-hero-banner--pc .swiper-container-gxyun-pc-banner .swiper-pagination {
    bottom: 18px;
    z-index: 12;
}

.gxyun-hero-banner--pc .swiper-container-gxyun-pc-banner .swiper-pagination-bullet {
    position: relative;
    width: 36px;
    height: 4px;
    border-radius: 0;
    margin: 0 3px;
    background: rgba(255, 255, 255, 0.35);
    opacity: 1;
    overflow: hidden;
}

.gxyun-hero-banner--pc .swiper-container-gxyun-pc-banner .swiper-pagination-bullet::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: #2358fe;
    transform-origin: left center;
    transform: scaleX(0);
}

.gxyun-hero-banner--pc .swiper-container-gxyun-pc-banner .swiper-pagination-bullet-active::after {
    animation: gxyun-banner-pagination-progress 5s linear forwards;
}

@keyframes gxyun-banner-pagination-progress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.gxyun-hero-banner--pc .swiper-container-gxyun-pc-banner .swiper-button-prev,
.gxyun-hero-banner--pc .swiper-container-gxyun-pc-banner .swiper-button-next {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s;
    z-index: 12;
}

.gxyun-hero-banner--pc:hover .swiper-container-gxyun-pc-banner .swiper-button-prev,
.gxyun-hero-banner--pc:hover .swiper-container-gxyun-pc-banner .swiper-button-next {
    opacity: 1;
}

.gxyun-hero-banner--pc .swiper-container-gxyun-pc-banner .swiper-button-prev::after,
.gxyun-hero-banner--pc .swiper-container-gxyun-pc-banner .swiper-button-next::after {
    font-size: 18px;
}

.gxyun-hero-banner--pc .gxyun-banner-slide--pc {
    position: relative;
    display: block;
    width: 100%;
    height: 504px;
}

.gxyun-hero-banner--pc .gxyun-banner-slide--video .get-coupon-scroll-btn {
    pointer-events: auto;
}

.gxyun-hero-banner--pc.gxyun-act-pc-banner {
    height: 504px;
    min-height: 504px;
    position: relative;
    background: transparent;
}

.gxyun-act-pc-banner .coupon-use-scene {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
    z-index: 15;
    width: 100%;
    text-align: center;
    color: #cc6633;
    pointer-events: none;
}

/* 去掉轮播与下方内容区之间的阴影 */
.gxyun-hero-banner--pc + .homepage-product > .homepage-product-tab {
    box-shadow: none;
}

.gxyun-hero-banner--mobile + .m-index-product,
.gxyun-hero-banner--mobile + .all-huodong-box {
    box-shadow: none;
}
