/* 入场动画样式 */

/* 动画基础类 */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 淡入 */
.animate-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.animate-fade-in.animated {
    opacity: 1;
}

/* 从下方滑入 */
.animate-slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 从上方滑入 */
.animate-slide-down {
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-down.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 从左方滑入 */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* 从右方滑入 */
.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* 缩放进入 */
.animate-zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-zoom-in.animated {
    opacity: 1;
    transform: scale(1);
}

/* 旋转进入 */
.animate-rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-rotate-in.animated {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* 弹性进入 */
.animate-bounce-in {
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.animate-bounce-in.animated {
    opacity: 1;
    transform: scale(1);
}

/* 延迟类 */
.delay-100 { transition-delay: 0.1s !important; }
.delay-200 { transition-delay: 0.2s !important; }
.delay-300 { transition-delay: 0.3s !important; }
.delay-400 { transition-delay: 0.4s !important; }
.delay-500 { transition-delay: 0.5s !important; }
.delay-600 { transition-delay: 0.6s !important; }
.delay-700 { transition-delay: 0.7s !important; }
.delay-800 { transition-delay: 0.8s !important; }

/* 动画持续时间类 */
.duration-fast { transition-duration: 0.4s !important; }
.duration-normal { transition-duration: 0.8s !important; }
.duration-slow { transition-duration: 1.2s !important; }

/* Banner轮播容器 - 立方体3D翻转 */
.banner-flip-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    perspective: 2000px;
    transform-style: preserve-3d;
}

.banner-flip-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transform-origin: center center;
    /* 使用JS控制transition */
}

.banner-flip-slide.active {
    display: block !important;
    z-index: 1;
}

/* 立方体3D翻转效果 */
.banner-flip-slide {
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* 3D光影效果 */
.banner-flip-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-flip-slide.active::before {
    opacity: 1;
}

/* Banner淡入淡出动画 */
.banner-fade-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: opacity 1s ease-in-out;
}

.banner-fade-slide.active {
    opacity: 1;
    z-index: 1;
    display: block !important;
}

.banner-fade-slide.inactive {
    opacity: 0;
    z-index: 0;
}
