/* ============================================================
   扬州立丹科技有限公司 - 动画与过渡效果
   ============================================================ */

/* ============ PARTICLE FLOAT ============ */
@keyframes particleFloat {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(40px); opacity: 0; }
}

/* ============ PULSE ============ */
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* ============ TYPING ANIMATION ============ */
.typing-line {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #14b8a6;
  animation: typing 3s steps(40) 1s forwards, blink 0.8s step-end infinite;
  width: 0;
  max-width: fit-content;
}
@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes blink {
  50% { border-color: transparent; }
}

/* ============ BAR GROW ============ */
@keyframes barGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
.mini-bar {
  animation: barGrow 2s ease-out forwards;
}
.mini-bar:nth-child(1) { animation-delay: 0.1s; }
.mini-bar:nth-child(2) { animation-delay: 0.2s; }
.mini-bar:nth-child(3) { animation-delay: 0.3s; }
.mini-bar:nth-child(4) { animation-delay: 0.4s; }
.mini-bar:nth-child(5) { animation-delay: 0.5s; }
.mini-bar:nth-child(6) { animation-delay: 0.6s; }
.mini-bar:nth-child(7) { animation-delay: 0.7s; }
.mini-bar:nth-child(8) { animation-delay: 0.8s; }

/* ============ WAVE ANIMATION ============ */
@keyframes wave {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.wave-1 {
  animation: wave 6s linear infinite;
}
.wave-2 {
  animation: wave 8s linear infinite;
  animation-delay: -2s;
}

/* ============ SOIL PULSE ============ */
@keyframes soilPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.3); }
}
.soil-dot {
  animation: soilPulse 3s ease-in-out infinite;
}
.soil-dot:nth-child(3n) { animation-delay: -1s; }
.soil-dot:nth-child(5n) { animation-delay: -0.5s; }
.soil-dot:nth-child(7n) { animation-delay: -1.5s; }

/* ============ AGRICULTURE BAR GROW ============ */
@keyframes agriGrow {
  to { transform: scaleY(1); }
}
.agri-bar {
  animation: agriGrow 1.5s ease-out forwards;
}
.agri-bar:nth-child(1)  { animation-delay: 0.1s; }
.agri-bar:nth-child(2)  { animation-delay: 0.15s; }
.agri-bar:nth-child(3)  { animation-delay: 0.2s; }
.agri-bar:nth-child(4)  { animation-delay: 0.25s; }
.agri-bar:nth-child(5)  { animation-delay: 0.3s; }
.agri-bar:nth-child(6)  { animation-delay: 0.35s; }
.agri-bar:nth-child(7)  { animation-delay: 0.4s; }
.agri-bar:nth-child(8)  { animation-delay: 0.45s; }
.agri-bar:nth-child(9)  { animation-delay: 0.5s; }
.agri-bar:nth-child(10) { animation-delay: 0.55s; }

/* ============ CTA GLOW ============ */
@keyframes ctaGlow {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(10%, 5%); }
}
.cta-inner::before {
  animation: ctaGlow 8s ease-in-out infinite alternate;
}

/* ============ SCROLL FADE-UP ============ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ HERO BADGE PULSE ============ */
.hero-badge .pulse-dot {
  animation: pulse 2s ease-in-out infinite;
}
.footer-status-badge .status-dot {
  animation: pulse 2s ease-in-out infinite;
}
.footer-sys-status .status-dot {
  animation: pulse 2s ease-in-out infinite;
}
