/* 爆炸风格动画效果 */

/* 标题发光动画 */
@keyframes titleGlow {
    0% {
        text-shadow: 0 0 30px rgba(255, 69, 0, 0.6),
                     0 0 40px rgba(255, 215, 0, 0.4);
    }
    50% {
        text-shadow: 0 0 50px rgba(255, 69, 0, 0.8),
                     0 0 60px rgba(255, 215, 0, 0.6),
                     0 0 70px rgba(220, 20, 60, 0.4);
    }
    100% {
        text-shadow: 0 0 30px rgba(255, 69, 0, 0.6),
                     0 0 40px rgba(255, 215, 0, 0.4);
    }
}

.main-title {
    animation: titleGlow 3s ease-in-out infinite;
}

/* 按钮脉冲动画 */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(255, 69, 0, 0.6),
                    0 0 30px rgba(255, 69, 0, 0.3);
    }
    100% {
        box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
    }
}

.btn-primary {
    animation: buttonPulse 2s ease-in-out infinite;
}

/* 特色卡片浮动动画 */
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.feature-card {
    animation: cardFloat 3s ease-in-out infinite;
}

.feature-card:nth-child(2) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(3) {
    animation-delay: 1s;
}

.feature-card:nth-child(4) {
    animation-delay: 1.5s;
}

/* 武器旋转动画 */
@keyframes weaponRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.weapon-item.active img {
    animation: weaponRotate 10s linear infinite;
}

/* 背景粒子动画 */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-10px) translateX(-5px);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-30px) translateX(15px);
        opacity: 0.8;
    }
}

/* 爆炸效果动画 */
@keyframes explode {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.7;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

.explosion-effect {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #FF4500, #FFD700, transparent);
    border-radius: 50%;
    animation: explode 0.8s ease-out forwards;
    pointer-events: none;
}

/* 火花效果 */
@keyframes sparkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    animation: sparkle 1s ease-out forwards;
    pointer-events: none;
}

/* 页面加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* 滚动触发动画 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

/* 鼠标悬停爆炸效果 */
.btn:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.3), transparent);
    border-radius: 50%;
    animation: hoverExplosion 0.6s ease-out;
    pointer-events: none;
}

@keyframes hoverExplosion {
    0% {
        width: 0;
        height: 0;
        transform: translate(-50%, -50%);
    }
    100% {
        width: 200px;
        height: 200px;
        transform: translate(-50%, -50%);
    }
}

/* 截图悬停效果 */
@keyframes imageZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.screenshot-item:hover img {
    animation: imageZoom 0.3s ease-out forwards;
}

/* 导航链接激活效果 */
@keyframes navActive {
    0% {
        background: rgba(255, 69, 0, 0.2);
    }
    50% {
        background: rgba(255, 69, 0, 0.4);
    }
    100% {
        background: rgba(255, 69, 0, 0.2);
    }
}

.nav a.active {
    animation: navActive 1s ease-in-out infinite;
}

/* 音频按钮动画 */
@keyframes audioWave {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.audio-btn.playing {
    animation: audioWave 0.5s ease-in-out infinite;
}

/* 加载动画 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 69, 0, 0.3);
    border-top: 4px solid #FF4500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* 响应式动画调整 */
@media (max-width: 768px) {
    .main-title {
        animation-duration: 4s;
    }
    
    .btn-primary {
        animation-duration: 3s;
    }
    
    .feature-card {
        animation-duration: 4s;
    }
}

/* 减少动画的用户偏好设置 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 