/* 前台轮播（Swiper 封装）：3D 覆盖流 / 平移 / 淡入淡出 / 卡片 */
.sw-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: var(--sw-pad-y, 0px) 0;
    background: transparent;
}
.sw-banner .swiper {
    width: 100%;
    height: auto;
    min-height: 180px;
    padding-bottom: 46px;
    overflow: hidden;
}
.sw-banner .swiper-slide {
    position: relative;
    height: auto;
    aspect-ratio: var(--sw-ratio, 2.74);
    overflow: hidden;
    border-radius: 16px;
    background: transparent;
    transition: filter .35s ease;
}
.sw-banner .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    user-select: none;
    -webkit-user-drag: none;
}

/* 3D 覆盖流 / 卡片：中间图按 --sw-width 取宽，两侧只露一条边 */
.sw-banner[data-effect="coverflow"] .swiper-slide,
.sw-banner[data-effect="cards"] .swiper-slide {
    width: var(--sw-width, 86%);
}
.sw-banner[data-effect="coverflow"] .swiper-slide-active,
.sw-banner[data-effect="cards"] .swiper-slide-active {
    box-shadow: 0 22px 54px rgba(0, 0, 0, .30);
}
/* 某些页面不要阴影（门店展示） */
.sw-banner[data-shadow="0"] .swiper-slide,
.sw-banner[data-shadow="0"] .swiper-slide-active {
    box-shadow: none !important;
}

/* 平移 / 淡入：整屏 */
.sw-banner[data-effect="slide"] .swiper-slide,
.sw-banner[data-effect="fade"] .swiper-slide {
    width: 100%;
    border-radius: 0;
}

/* 分页点 */
.sw-banner .swiper-pagination {
    bottom: 8px;
}
.sw-banner .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #9E308A;
    opacity: .28;
    transition: width .25s ease, opacity .25s ease;
}
.sw-banner .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 4px;
    opacity: 1;
}

/* 左右箭头 */
.sw-banner .swiper-button-prev,
.sw-banner .swiper-button-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .32);
    backdrop-filter: blur(2px);
    transition: background .25s ease, transform .25s ease;
}
.sw-banner .swiper-button-prev:hover,
.sw-banner .swiper-button-next:hover {
    background: rgba(158, 48, 138, .85);
    transform: scale(1.06);
}
.sw-banner .swiper-button-prev::after,
.sw-banner .swiper-button-next::after {
    font-size: 15px;
    font-weight: 700;
}

/* 首页：宽幅通栏，圆角保留 */
.sw-banner-hero {
    padding: 0;
}
.sw-banner-hero .swiper {
    height: auto;
    padding-bottom: 0;
}
.sw-banner-hero .swiper-pagination {
    bottom: 18px;
}

@media (max-width: 768px) {
    .sw-banner .swiper {
        height: auto;
        padding-bottom: 36px;
    }
    .sw-banner[data-effect="coverflow"] .swiper-slide,
    .sw-banner[data-effect="cards"] .swiper-slide {
        width: 94%;
    }
    .sw-banner .swiper-button-prev,
    .sw-banner .swiper-button-next {
        display: none;
    }
    .sw-banner-hero .swiper {
        height: auto;
    }
}
