/**
 * Banner 轮播样式
 */

/* 轮播容器样式 */
.banner-swiper {
    width: 100%;
    height: 100vh; /* 占满整个视口高度 */
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

/* 背景图片容器样式 */
.backgroundImage {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* 内容图片区域样式 */
.contentImage {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* 轮播项样式 */
.swiper-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* 轮播背景图样式 */
.banner-slide-bg {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 8s ease; /* 添加缓慢缩放效果 */
    transform: scale(1.05);
}

/* 轮播图片激活状态 */
.swiper-slide-active .banner-slide-bg {
    transform: scale(1);
}

/* 分页器（横杆）样式 ，要覆盖swiper-bundle.min.css相应的样式，原来样式是：
.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction {
    bottom: 10px;
    left: 0;
    width: 100%
}
    important 方式？
*/
.swiper-pagination {

    position: absolute;
    bottom: 100px !important;
    width: 100%;
    text-align: center;
    z-index: 10;
}

/* 横杆指示器样式 */
.swiper-pagination-bullet {
    width: 120px;
    height: 4px;
    display: inline-block;
    border-radius: 0; /* 方形横杆 */
    background: rgba(255, 255, 255, 0.5);
    margin: 0 11px;
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* 当前活动的横杆样式 */
.swiper-pagination-bullet-active {
    background: #ffffff;
    width: 120px; /* 活动状态的横杆更宽 */
    height: 8px; /* 活动状态的横杆更粗 */
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* 下箭头图标样式 */
.tipXla {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* 导航按钮样式 */
.swiper-button-prev,
.swiper-button-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 20px;
    color: #fff;
    font-weight: bold;
}

/* 响应式调整 */
@media screen and (max-width: 725px) {
    /* 内容图片区域设置 */
    #contentImage {
        height: 200px !important;
        margin-top: 50px !important; /* 调整顶部边距，适应手机导航栏高度 */
    }
    
    /* 背景图片区域设置 */
    #backgroundImage {
        height: 200px !important;
    }
    
    /* 轮播容器设置 */
    .banner-swiper {
        min-height: 125px;
        height: 200px !important; /* 强制设置高度 */
    }
    
    /* 轮播项设置 */
    .swiper-slide {
        height: 200px !important; /* 确保轮播项也有固定高度 */
    }
    
    /* 轮播背景图设置 */
    .banner-slide-bg {
        height: 200px !important; /* 确保背景图有固定高度 */
        background-size: cover !important; /* 确保背景图片覆盖整个区域 */
        background-position: center center !important; /* 居中显示背景图片 */
    }
    
    /* 分页器设置 */
    .swiper-pagination {
        bottom: 10px;
    }
    
    .swiper-pagination-bullet {
        width: 20px;
        height: 3px;
        margin: 0 3px;
    }
    
    .swiper-pagination-bullet-active {
        width: 30px;
        height: 4px;
    }
    
    /* 导航按钮设置 */
    .swiper-button-prev,
    .swiper-button-next {
        width: 30px;
        height: 30px;
    }
    
    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 14px;
    }
}