.carousel-main-container {
    position: relative;
    width: 100vw;
    height: calc(100vh - 140px);
    overflow: hidden;
}

.carousel-main-slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-main-slide {
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* 添加淡入淡出效果 */
.carousel-main-slide {
    transition: opacity 0.4s ease-in-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 非活动幻灯片稍微降低透明度 */
.carousel-main-slide:not(.active) {
    opacity: 0.95;
}

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



.carousel-prev {
    left: 50px;
}

.carousel-next {
    right: 50px;
}

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

.indicator {
    width: 24px;
    height: 8px;
    border-radius: 2px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #fff;
    border-color: #fff;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.8);
}


.video-container {
    width: 100%;
    height: 100%;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    /* 优化GPU加速 */
    backface-visibility: hidden;
    background-color: #000;
    /* 防止闪烁 */
    -webkit-backface-visibility: hidden;
    /* Safari兼容 */
}

.hero .overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.15)); */
    pointer-events: none;
    /* 确保不会阻挡交互 */
}

.hero .tagline {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 50%;
    width: min(1100px, 92%);
    color: #fff;
    z-index: 2;
    /* 确保文字在最上层 */
}

/* 加载指示器 */
.carousel-loading {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    color: #fff;
    z-index: 20;
    pointer-events: none;
    font-size: 14px;
}
.carousel-loading::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.6);
    border-top-color: #fff;
    border-radius: 50%;
    animation: carousel-spin 1s linear infinite;
}
@keyframes carousel-spin {
    to { transform: rotate(360deg); }
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .carousel-main-container {
        height: calc(100vh - 100px);
    }
    .carousel-prev { left: 24px; }
    .carousel-next { right: 24px; }
    .carousel-main-indicators { bottom: 90px; gap: 10px; }
}
@media (max-width: 768px) {
    .carousel-main-container {
        height: 58vh;
    }
    .indicator { width: 18px; height: 6px; }
    .carousel-main-indicators { bottom: 60px; }
}
