/* 轮播图样式 - 向左滑动版 - 2026-04-13 */

/* 轮播图容器 */
.ad-banner {
    position: relative;
    width: 100%;
    margin: 15px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 图片容器 */
.ad-banner .banner-container {
    position: relative;
    width: 100%;
}

/* 单张图片 */
.ad-banner .banner-item {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.ad-banner .banner-item.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
}

.ad-banner .banner-item.prev {
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
}

/* 图片样式 */
.ad-banner .banner-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 底部模糊遮罩 - 五分之二 */
.ad-banner .banner-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 3;
}

/* 响应式 */
@media (max-width: 767px) {
    .ad-banner {
        margin: 10px 0;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .ad-banner {
        margin: 8px 0;
        border-radius: 4px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }
}