/* 动画样式 */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes bounceDown {
  0%, 100% { transform: rotate(45deg) translate(0,0); }
  50% { transform: rotate(45deg) translate(4px, 4px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes barGrow {
  from { height: 0 !important; }
}

/* 入场动画类 */
.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}
.animate-fadeIn {
  animation: fadeIn 0.6s ease forwards;
}
.animate-slideInLeft {
  animation: slideInLeft 0.6s ease forwards;
}
.animate-slideInRight {
  animation: slideInRight 0.6s ease forwards;
}
.animate-scaleIn {
  animation: scaleIn 0.5s ease forwards;
}

/* 延迟类 */
.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; }

/* 滚动显示 */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 回退：如果JS未生效（慢网络/旧浏览器），1.5秒后自动显示 */
@keyframes forceReveal {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
.scroll-reveal {
  animation: forceReveal 1s ease forwards;
  animation-delay: 1.5s;
}
.scroll-reveal.visible {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}

/* 粒子 */
.particle {
  position: absolute;
  border-radius: 50%;
  animation: particleFloat linear infinite;
  pointer-events: none;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* 发光效果 */
.glow-blue {
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.5),
              0 0 40px rgba(0, 102, 255, 0.2);
}
.glow-cyan {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5),
              0 0 40px rgba(0, 212, 255, 0.2);
}

/* 打字机效果 */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--secondary);
  animation: blink 0.8s infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

/* Bar动画 */
.bar {
  animation: barGrow 1s ease forwards;
}
