.carousel {
    position: relative;
}

.mySwiper {
    width: 100%;
    overflow: hidden;

}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 状态显示 */
.status {
    text-align: center;
    margin: 15px 0;
    color: #555;
    font-size: 16px;
}

/* 自定义分页器 */
.my-pagination {
    position: absolute;
    z-index: 10;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;

}

.my-bullet {
    position: relative;
    width: 12px;
    height: 12px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    margin: 0 4px;
}

.my-bullet:hover {
    background: white;
    transform: scale(1.2);
}

.my-bullet.active {
    background: white;
    transform: translateX(-50%) scale(1.2);
    border-radius: 12px 0 0 12px;
}

/* 创建第二个球体 */
.my-bullet.active::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    top: 0;
    left: 96%;
    border-radius: 0 12px 12px 0;
}

/* 导航按钮 */
.my-navigation {
    position: absolute;
    bottom: 5%;
    left: 8.5%;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.my-btn {
    width: 5.5rem;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
}

.my-btn:active {
    transform: translateY(-2px);
}

.toggle-btn {
    background: #ef4444;
}

.toggle-btn:hover {
    background: #dc2626;
}



@media (max-width: 1024px) and (min-width: 768px) {
    .my-btn {
        width: 3.5rem;
    }
}

@media (max-width: 768px) {
    .my-btn {
        width: 3.5rem;
    }

    .my-pagination {
        gap: 10px;
    }

}

@media (max-width: 992px) {
    .my-pagination {
        flex-direction: row;
        top: 92%;
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 576px) {
    .my-btn {
        width: 2.5rem;
    }

    .my-bullet {
        height: 8px;
        width: 8px;
        /* left: 93%; */
    }

    .my-bullet.active::before {
        height: 8px;
        width: 8px;
        left: 90%;
    }

    .my-pagination {
        flex-direction: row;
        top: 90%;
        right: 50%;
        transform: translateX(50%);
    }
}

/* @media screen and (min-width: 1025px) and (max-width: 1366px) {
    .carousel {
        margin: auto 12rem;
    }
}

@media screen and (min-width: 1367px) and (max-width: 1440px) {
    .carousel {
        margin: auto 20rem;
    }
}

@media screen and (min-width: 1441px) and (max-width: 1920px) {
    .carousel {
        margin: auto 20rem;
    }
}

@media screen and (min-width: 1921px) and (max-width: 2559px) {
    .carousel {
        margin: auto 20rem;
    }
}

@media screen and (min-width: 2560px) and (max-width: 3839px) {
    .carousel {
        margin: auto 20rem;
    }
} */