/* ============================================
   Banner 轮播样式 - 连续无缝滚动
   ============================================ */

.banner-carousel {
    width: 100%;
    height: 100vh;
    margin-top: 55px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    /* 关键：使用 linear 匀速滚动，不要用 ease */
    transition: none;
}

.carousel-slide {
    flex: 0 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    overflow: hidden;
    /* 图片宽度根据内容的宽高比自动计算 */
}

.carousel-slide img {
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

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

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

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.carousel-dot.active {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 导航箭头 */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

/* 响应式 - 大屏幕 */
@media (min-width: 1400px) {
    .banner-carousel {
        height: 100vh;
    }
}

/* 中等屏幕 */
@media (max-width: 1024px) {
    .banner-carousel {
        height: 85vh;
        margin-top: 45px;
    }
}

/* 平板 */
@media (max-width: 768px) {
    .banner-carousel {
        height: 60vh;
        margin-top: 35px;
    }
    
    .carousel-dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .carousel-dot {
        width: 9px;
        height: 9px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
}

/* 手机 */
@media (max-width: 480px) {
    .banner-carousel {
        height: 50vh;
        margin-top: 20px;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .carousel-dots {
        bottom: 12px;
        gap: 6px;
    }
    
    .carousel-dot {
        width: 7px;
        height: 7px;
    }
}
