/* custom-carousel.css - 轮播图专属样式 */
.custom-carousel-container {
    width: 100%;
    margin: 15px 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.custom-carousel {
    position: relative;
    width: 100%;
    height: 400px;
}

.custom-carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.custom-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
}

.custom-carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.custom-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 轮播控制按钮 */
.custom-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.custom-carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
}

.custom-carousel-prev {
    left: 20px;
}

.custom-carousel-next {
    right: 20px;
}

/* 轮播指示器 */
.custom-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.custom-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-carousel-indicator.active {
    background-color: #ffffff;
    width: 30px;
    border-radius: 6px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .custom-carousel {
        height: 200px;
    }
    
    .custom-carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .custom-carousel-indicator {
        width: 10px;
        height: 10px;
    }
    
    .custom-carousel-indicator.active {
        width: 25px;
    }
}