/* 动态Banner样式 - 现代3D轮播效果 */

/* 首页Banner 3D轮播效果 */
.hero-section {
    height: 500px;
    perspective: 1000px;
    overflow: visible;
    margin-top: 0 !important;
    position: relative;
}

/* 确保首页Banner样式与内页一致 */
.hero-section .dynamic-hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
}

.dynamic-hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
}

.hero-slide-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(-500px) rotateY(0deg);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-slide-3d.active {
    opacity: 1;
    transform: translateZ(0) rotateY(0deg);
    z-index: 2;
}

.hero-slide-3d.prev {
    transform: translateZ(-200px) rotateY(-20deg);
    opacity: 0.7;
    z-index: 1;
}

.hero-slide-3d.next {
    transform: translateZ(-200px) rotateY(20deg);
    opacity: 0.7;
    z-index: 1;
}

.hero-content-3d {
    text-align: center;
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
    transform: translateZ(50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide-3d.active .hero-content-3d {
    opacity: 1;
    transform: translateZ(0);
}

.hero-content-3d h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
    position: relative;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.hero-content-3d h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: white;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.hero-content-3d p {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* 内页Banner 3D轮播效果 */
.inner-banner-section {
    position: relative;
    height: 400px;
    overflow: visible;
    margin-top: 0;
    perspective: 1000px;
}

.dynamic-inner-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
}

.carousel-slide-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(-500px) rotateY(0deg);
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.carousel-slide-3d.active {
    opacity: 1;
    transform: translateZ(0) rotateY(0deg);
    z-index: 2;
}

.carousel-slide-3d.prev {
    transform: translateZ(-200px) rotateY(-20deg);
    opacity: 0.7;
    z-index: 1;
}

.carousel-slide-3d.next {
    transform: translateZ(-200px) rotateY(20deg);
    opacity: 0.7;
    z-index: 1;
}

.inner-banner-content-3d {
    text-align: center;
    color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    transform: translateZ(50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide-3d.active .inner-banner-content-3d {
    opacity: 1;
    transform: translateZ(0);
}

.inner-banner-content-3d h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.inner-banner-content-3d p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* 轮播控制按钮 */
.carousel-control-3d {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    backdrop-filter: blur(5px);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-control-3d:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-3d.prev {
    left: 20px;
}

.carousel-control-3d.next {
    right: 20px;
}

/* 轮播指示器 */
.carousel-indicators-3d {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator-3d {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.indicator-3d.active {
    background: white;
    transform: scale(1.2);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .hero-section {
        height: 400px;
    }
    
    .inner-banner-section {
        height: 350px;
    }
    
    .hero-content-3d h1 {
        font-size: 2.5rem;
    }
    
    .inner-banner-content-3d h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 300px;
    }
    
    .inner-banner-section {
        height: 300px;
    }
    
    .hero-content-3d h1 {
        font-size: 2rem;
    }
    
    .inner-banner-content-3d h2 {
        font-size: 1.8rem;
    }
    
    .hero-content-3d p,
    .inner-banner-content-3d p {
        font-size: 1rem;
    }
    
    .carousel-control-3d {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 250px;
    }
    
    .inner-banner-section {
        height: 250px;
    }
    
    .hero-content-3d h1 {
        font-size: 1.75rem;
    }
    
    .inner-banner-content-3d h2 {
        font-size: 1.5rem;
    }
    
    .carousel-control-3d {
        width: 35px;
        height: 35px;
    }
    
    .carousel-control-3d.prev {
        left: 10px;
    }
    
    .carousel-control-3d.next {
        right: 10px;
    }
}