/* ========== 轮播图容器样式 - 高度自适应，跟随图片比例 ========== */
.banner-container {
    /* 宽度始终占满视口 */
    width: 100vw;
    /* 高度由内容（图片）决定 */
    height: auto;
    min-height: 100px; /* 设置一个最小高度防止过矮 */
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

.banner-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.swiper-slide {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

/* ========== 关键修改：图片横向铺满全屏，高度按比例自适应 ========== */
.banner-image {
    /* 宽度始终为视口宽度 */
    width: 100vw;

    /* 高度自动，根据图片原始比例计算 */
    height: auto !important;

    /* 不使用 object-fit: cover，避免裁剪 */
    object-fit: contain;
    object-position: center;

    display: block;

    /* 确保图片不会被拉伸 */
    max-width: none;
}

/* ========== 分页器样式 - 高可见性设计 ========== */
.swiper-pagination {
    bottom: 40px !important;
    z-index: 10;
}


/* 分页点基础样式 */
.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.9);
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 普通状态的分页点 */
.swiper-pagination-bullet:not(.swiper-pagination-bullet-active) {
    background: #666666 !important;
    transform: scale(0.9);
}

/* 激活状态的分页点 */
.swiper-pagination-bullet-active {
    background: #d71f24 !important;
    border-color: #d71f24 !important;
    transform: scale(1.3);
    /*box-shadow: 0 3px 8px rgba(255, 107, 107, 0.6);*/
}

/* 动态子弹效果 */
.swiper-pagination-dynamic-bullet {
    transition: all 0.3s ease;
}



/* ========== 导航按钮样式 ========== */
.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    width: 60px;
    height: 60px;
    /*background: rgba(0, 0, 0, 0.4);*/
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    /*border: 2px solid rgba(255, 255, 255, 0.2);*/
    z-index: 10;
}

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

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 24px !important;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ========== 响应式适配 ========== */
@media (max-width: 768px) {
    .banner-container {
        min-height: 100px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 45px;
        height: 45px;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 20px !important;
    }

    /* 移动端分页点稍小一些 */
    .swiper-pagination-bullet {
        width: 10px !important;
        height: 10px !important;
    }

    .swiper-pagination-bullet-active {
        width: 28px !important;
        height: 10px !important;
        border-radius: 7px;
    }

}

/* 所有屏幕尺寸都使用相同的规则 */
@media (max-width: 1920px) {
    .banner-image {
        width: 100vw;
        height: auto !important;
    }
}

/* 超大屏幕适配 */
@media (min-width: 1921px) {
    .banner-container {
        min-height: 100px;
    }

    .banner-image {
        width: 100vw;
        height: auto !important;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .banner-container {
        min-height: 100px;
    }

    .banner-image {
        width: 100vw;
        height: auto !important;
    }
}
