/* 高级动画效果 */

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 发光效果 */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(107, 70, 193, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(107, 70, 193, 0.8), 0 0 30px rgba(107, 70, 193, 0.6);
    }
}

@keyframes glowBlue {
    0%, 100% {
        box-shadow: 0 0 5px rgba(49, 130, 206, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(49, 130, 206, 0.8), 0 0 30px rgba(49, 130, 206, 0.6);
    }
}

/* 脉冲效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 旋转效果 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 浮动效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 波浪效果 */
@keyframes wave {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

/* 数字计数动画 */
@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 背景粒子动画 */
@keyframes particleMove1 {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(100px, -100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes particleMove2 {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translate(-100px, -150px) rotate(-360deg);
        opacity: 0;
    }
}

/* 索道动画增强 */
@keyframes cableGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(159, 122, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(159, 122, 234, 0.8), 0 0 30px rgba(159, 122, 234, 0.6);
    }
}

@keyframes towerPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(107, 70, 193, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(107, 70, 193, 0.6), 0 0 30px rgba(107, 70, 193, 0.4);
    }
}

/* 应用动画类 */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-out;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-glow-blue {
    animation: glowBlue 2s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 10s linear infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-wave {
    animation: wave 2s ease-in-out infinite;
}

/* 索道动画增强 */
.cableway-cable {
    animation: cableGlow 3s ease-in-out infinite;
}

.cableway-tower {
    animation: towerPulse 4s ease-in-out infinite;
}

.cableway-tower.left {
    animation-delay: 0s;
}

.cableway-tower.right {
    animation-delay: 2s;
}

/* 滚动触发动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 鼠标悬停效果 */
.hover-glow:hover {
    animation: glow 1s ease-in-out;
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* 加载动画 */
@keyframes loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(107, 70, 193, 0.3);
    border-top: 4px solid var(--primary-purple);
    border-radius: 50%;
    animation: loading 1s linear infinite;
}

/* 文字打字机效果 */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-purple);
    white-space: nowrap;
    animation: typewriter 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-purple);
    }
}

/* 3D 翻转效果 */
@keyframes flip3D {
    0% {
        transform: perspective(400px) rotateY(0);
    }
    100% {
        transform: perspective(400px) rotateY(360deg);
    }
}

.flip-3d {
    animation: flip3D 2s ease-in-out;
}

/* 能量波纹效果 */
@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.ripple-effect {
    position: relative;
}

.ripple-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-purple) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 2s ease-out infinite;
}

/* 移除星空背景增强 */

/* 响应式动画调整 */
@media (max-width: 768px) {
    .hero-title {
        animation: none;
    }
    
    .cableway-animation {
        animation: none;
    }
    
    .animate-float {
        animation: none;
    }
} 