.weather-svg {
  width: 3rem; /* 控制圖示大小 */
  height: 3rem;
  overflow: visible;
  display: inline-block;
}

/* 雨滴落下 */
.rain-drops line {
  animation: rain-fall 1.5s infinite linear;
  opacity: 0;
}

.rain-drops line:nth-child(1) {
  animation-delay: 0s;
}
.rain-drops line:nth-child(2) {
  animation-delay: 0.5s;
}
.rain-drops line:nth-child(3) {
  animation-delay: 1s;
}

@keyframes rain-fall {
  0% {
    transform: translateY(-5px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(8px);
    opacity: 0;
  }
}

/* 太陽旋轉 */
.spinning-sun {
  transform-origin: center center;
  animation: spin-slow 12s linear infinite;
}
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 雲朵漂浮 */
.floating-cloud {
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* 閃電閃爍 */
.lightning-strikes path {
  opacity: 0;
  animation: multi-flash 1.5s infinite linear;
}

.lightning-strikes path:nth-child(1) {
  animation-delay: 0s;
}
.lightning-strikes path:nth-child(2) {
  animation-delay: 0.2s;
}
.lightning-strikes path:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes multi-flash {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  10% {
    opacity: 0.6;
  }
  15% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
