/* 全屏轮播 Banner - 自适应高度 */
.hero-carousel {
    position: relative;
    width: 100%;
    height: auto;
    background: linear-gradient(135deg, #0a0a1f 0%, #1a1a3a 50%, #0f0f2a 100%);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 200px; /* 确保至少有一定高度 */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 1;
}

.slide-bg {
    width: 100%;
    height: auto;
    display: block;
}

.slide-bg img {
    width: 100%;
    height: auto;
    display: block;
}

/* 确保控件可见 */
.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ctrl-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ctrl-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.slide-counter {
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
}

/* 手机端 */
@media (max-width: 768px) {
    .carousel-controls {
        bottom: 10px;
        left: 10px;
    }
    
    .ctrl-btn {
        width: 30px;
        height: 30px;
    }
    
    .ctrl-btn svg {
        width: 16px;
        height: 16px;
    }
}