/* 首页纯CSS轮播 */
.css-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* 轮播指示点 */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dots .dot.active {
    background: #f5a500;
}

.carousel-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 覆盖原始的隐藏状态 */
.indexBanner {
    visibility: visible !important;
    opacity: 1 !important;
    height: 600px !important;
    padding-top: 0 !important;
}

.indexBnnerContainer {
    position: relative;
    z-index: 1;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .css-carousel {
        height: 300px;
    }
    
    .indexBanner {
        height: 300px !important;
    }
    
    .carousel-dots {
        bottom: 10px;
    }
    
    .carousel-dots .dot {
        width: 8px;
        height: 8px;
    }
}
