.bannerSlider {
    width: 100%;
    height: 60vh;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    /* 新增：水平居中 */
    align-items: center;
    /* 新增：垂直居中 */
}

.bannerSlides {
    width: 100%;
    /*max-width: 1300px;  设置最大宽度 */
    height: auto;
    /* 为了保持图片的横纵比 */
    /* position: relative; */
}

.bannerSlide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.bannerSlide.active {
    opacity: 1;
}

.bannerSlide img {
    width: 100%;
    height: 100%;
    /*aspect-ratio: 2.75 / 1;  设置图片的横纵比 */
    object-fit: cover;
    /* 覆盖整个容器 */

}

.bannerDots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.bannerDot {
    width: 5vh;
    /* 长方块的宽度 */
    height: 7px;
    /* 长方块的高度 */
    margin: 0 12px;
    cursor: pointer;
    background: #939393;
    /* 默认背景颜色 */
    border-radius: 4px;
    /* 稍微圆角 */
    opacity: 0.7;
}

.bannerDot.active {
    background: #4a4e8f;
    /* 被选中时的背景颜色 */
}


/* 媒体查询，针对较小屏幕的调整 */
@media screen and (max-width: 768px) {
    .bannerSlider {
        height: 30vh;
        /* 较小的高度 */
    }

    .bannerDot {
        width: 5vh;
        /* 较大的点，易于触摸 */
        height: 10px;
        margin: 0 7px;
    }

    /* 如果有文本，调整字体大小 */
    .bannerText {
        font-size: 14px;
    }
}

/* 更小屏幕的调整 */
@media screen and (max-width: 480px) {
    .bannerSlider {
        height: 25vh;
    }

    .bannerDot {
        width: 3vh;
        height: 10px;
        margin: 0 7px;
    }

    /* 对于非常小的屏幕进一步调整文本大小 */
    .bannerText {
        font-size: 12px;
    }
}