/* ===== 动画效果 ===== */

/* 绿色脉动动画（运行状态） */
@keyframes pulse-green {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(82, 196, 26, 0.6), 0 0 0 2px rgba(82, 196, 26, 0.2);
  }

  50% {
    box-shadow: 0 0 15px rgba(82, 196, 26, 0.8), 0 0 0 3px rgba(82, 196, 26, 0.3);
  }
}

/* 红色脉动动画（停止/故障状态） */
@keyframes pulse-red {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(255, 77, 79, 0.6), 0 0 0 2px rgba(255, 77, 79, 0.2);
  }

  50% {
    box-shadow: 0 0 15px rgba(255, 77, 79, 0.8), 0 0 0 3px rgba(255, 77, 79, 0.3);
  }
}

/* 淡入动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 滑入动画 */
@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 缩放动画 */
@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* 旋转动画 */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* 闪烁动画（用于警告） */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* 波纹动画 */
@keyframes ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(24, 144, 255, 0.4);
  }

  100% {
    box-shadow: 0 0 0 20px rgba(24, 144, 255, 0);
  }
}

/* 可选：为元素添加淡入动画 */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.slide-in {
  animation: slideIn 0.5s ease-in-out;
}

.scale-in {
  animation: scaleIn 0.5s ease-in-out;
}

/* 页面加载动画 */
.app-container {
  animation: fadeIn 0.6s ease-in-out;
}

.item {
  animation: fadeIn 0.8s ease-in-out;
}

