/* 动画定义 */

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 脉冲发光动画 */
@keyframes pulse-glow {
    0% {
        text-shadow: 0 0 20px rgba(0, 255, 159, 0.6);
    }
    100% {
        text-shadow: 0 0 30px rgba(0, 255, 159, 0.8), 0 0 40px rgba(0, 255, 159, 0.4);
    }
}

/* 闪烁动画 */
@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 状态点脉冲 */
@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* 警告脉冲 */
@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.6), 0 0 30px rgba(255, 193, 7, 0.3);
    }
}

/* 边框流动动画 */
@keyframes border-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 网格移动背景动画 */
@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

/* 视频监控脉冲 */
@keyframes video-pulse {
    0%, 100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* 数据加载动画 */
@keyframes loading {
    0%, 20%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 旋转动画 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 渐入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滑入动画 */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 缩放动画 */
@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 弹跳动画 */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -10px, 0);
    }
    70% {
        transform: translate3d(0, -5px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* 心跳动画 */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.1);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(1);
    }
}

/* 光波扩散动画 */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* 进度条动画 */
@keyframes progress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* 数字滚动动画 */
@keyframes numberRoll {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(0);
    }
}


/* 呼吸灯动画 */
@keyframes breathe {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* 抖动动画 */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px);
    }
}


/* 数据流动画 */
@keyframes dataFlow {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 粒子效果动画 */
@keyframes particle {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
}

/* 能量波动画 */
@keyframes energyWave {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* 全息效果动画 */
@keyframes hologram {
    0%, 100% {
        text-shadow: 
            0 0 5px rgba(0, 200, 255, 0.5),
            0 0 10px rgba(0, 200, 255, 0.3),
            0 0 15px rgba(0, 200, 255, 0.2);
    }
    50% {
        text-shadow: 
            0 0 10px rgba(0, 255, 159, 0.6),
            0 0 20px rgba(0, 255, 159, 0.4),
            0 0 30px rgba(0, 255, 159, 0.2);
    }
}

/* 矩阵雨效果 */
@keyframes matrixRain {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}


/* 电力脉冲 */
@keyframes electricPulse {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(0, 200, 255, 0.3),
            inset 0 0 5px rgba(0, 200, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(0, 200, 255, 0.6),
            0 0 30px rgba(0, 200, 255, 0.4),
            inset 0 0 10px rgba(0, 200, 255, 0.3);
    }
}

/* 信号强度动画 */
@keyframes signal {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* 动画类 */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite alternate;
}

.animate-shimmer {
    animation: shimmer 3s linear infinite;
}

.animate-pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

.animate-pulse-warning {
    animation: pulse-warning 2s ease-in-out infinite;
}

.animate-border-flow {
    animation: border-flow 3s linear infinite;
}

.animate-grid-move {
    animation: grid-move 20s linear infinite;
}

.animate-video-pulse {
    animation: video-pulse 2s ease-in-out infinite;
}

.animate-loading {
    animation: loading 1.5s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 2s linear infinite;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

.animate-heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

.animate-ripple {
    animation: ripple 1s ease-out;
}

.animate-progress {
    animation: progress 2s ease-in-out;
}

.animate-number-roll {
    animation: numberRoll 0.8s ease-out;
}


.animate-breathe {
    animation: breathe 3s ease-in-out infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-radar {
    animation: radar 4s linear infinite;
}

.animate-data-flow {
    animation: dataFlow 3s ease-in-out infinite;
}

.animate-particle {
    animation: particle 2s ease-out infinite;
}

.animate-energy-wave {
    animation: energyWave 4s ease-in-out infinite;
}

.animate-hologram {
    animation: hologram 2s ease-in-out infinite;
}

.animate-matrix-rain {
    animation: matrixRain 5s linear infinite;
}

.animate-laser-scan {
    animation: laserScan 2s linear infinite;
}

.animate-electric-pulse {
    animation: electricPulse 1.5s ease-in-out infinite;
}

.animate-signal {
    animation: signal 2s ease-in-out infinite;
}

/* 延迟动画 */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* 动画持续时间 */
.duration-fast { animation-duration: 0.5s; }
.duration-normal { animation-duration: 1s; }
.duration-slow { animation-duration: 2s; }
.duration-slower { animation-duration: 3s; }

/* 动画填充模式 */
.fill-forwards { animation-fill-mode: forwards; }
.fill-backwards { animation-fill-mode: backwards; }
.fill-both { animation-fill-mode: both; }

/* 动画播放方向 */
.direction-reverse { animation-direction: reverse; }
.direction-alternate { animation-direction: alternate; }
.direction-alternate-reverse { animation-direction: alternate-reverse; }

/* 动画播放状态 */
.paused { animation-play-state: paused; }
.running { animation-play-state: running; }

/* 组合动画效果 */
.tech-glow {
    animation: 
        pulse-glow 3s ease-in-out infinite alternate,
        hologram 2s ease-in-out infinite;
}

.data-matrix {
    animation: 
        shimmer 3s linear infinite,
        breathe 4s ease-in-out infinite;
}

.system-pulse {
    animation: 
        electric-pulse 1.5s ease-in-out infinite,
        signal 2s ease-in-out infinite;
}

.zone-highlight {
    animation: 
        pulse-glow 2s ease-in-out infinite,
        shine 3s ease-in-out infinite;
}

/* 响应式动画 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高性能动画优化 */
.will-animate {
    will-change: transform;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}
