.xqbj-component-adfloat {
    /* 线上小屏按 750 设计宽度缩放，本站为 640；仅在浮窗内对齐线上尺寸。 */
    --adfloat-unit: calc(100vw / 37.5);
    position: fixed;
    right: calc(1.5 * var(--adfloat-unit));
    bottom: calc(10 * var(--adfloat-unit) + env(safe-area-inset-bottom, 0px));
    width: calc(7.5 * var(--adfloat-unit));
    z-index: 90;
}

.xqbj-component-adfloat[hidden],
.xqbj-component-adfloat [hidden] {
    display: none !important;
}

.xqbj-component-adfloat .banner-swiper {
    width: 100%;
    overflow: hidden;
}

.xqbj-component-adfloat .swiper-wrapper {
    height: calc(7.5 * var(--adfloat-unit));
}

.xqbj-component-adfloat .swiper-slide a,
.xqbj-component-adfloat .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
}

.xqbj-component-adfloat .swiper-slide img {
    object-fit: cover;
}

.xqbj-component-adfloat .swiper-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.xqbj-component-adfloat .swiper-slide img:not([src]),
.xqbj-component-adfloat .swiper-slide img.loading {
    width: 64%;
    height: 64%;
    max-width: 64%;
    max-height: 64%;
    min-height: 0;
    margin: 0;
    object-fit: contain;
}

.xqbj-component-adfloat .banner-swiper .swiper-pagination {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(0.8 * var(--adfloat-unit));
    margin-top: calc(0.3 * var(--adfloat-unit));
    transform: none;
}

.xqbj-component-adfloat .swiper-pagination-bullet {
    flex: 0 0 auto;
    width: calc(0.3125 * var(--adfloat-unit));
    height: calc(0.3125 * var(--adfloat-unit));
    margin: 0 calc(0.2 * var(--adfloat-unit));
    background: #333;
    opacity: 1;
}

.xqbj-component-adfloat .swiper-pagination-bullet-active {
    background: #fff;
}

.xqbj-component-adfloat .adfloat-close {
    position: absolute;
    top: calc(-1.8 * var(--adfloat-unit));
    right: calc(-1.3 * var(--adfloat-unit));
    width: calc(2.6 * var(--adfloat-unit));
    height: calc(2.6 * var(--adfloat-unit));
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    z-index: 2;
}

.xqbj-component-adfloat .adfloat-close::before,
.xqbj-component-adfloat .adfloat-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    border-radius: 1px;
    background: #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.xqbj-component-adfloat .adfloat-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (min-width: 640px) {
    .xqbj-component-adfloat {
        --adfloat-unit: 1rem;
    }
}

@media (min-width: 960px) {
    .xqbj-component-adfloat {
        right: calc(1 * var(--adfloat-unit));
        bottom: calc(4.4375 * var(--adfloat-unit));
        width: calc(5 * var(--adfloat-unit));
    }

    .xqbj-component-adfloat .swiper-wrapper {
        height: calc(5 * var(--adfloat-unit));
    }

    .xqbj-component-adfloat .adfloat-close {
        top: calc(-1 * var(--adfloat-unit));
        right: calc(-0.78125 * var(--adfloat-unit));
        width: calc(1.5625 * var(--adfloat-unit));
        height: calc(1.5625 * var(--adfloat-unit));
    }
}
