/* loading.css */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}
.loading-logo {
  width: 20vw;
  max-width: 400px;
  min-width: 140px;
  height: auto;
  /* 無動畫 */
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading-dots {
  margin-top: 24px;
  display: flex;
  gap: 8px;
}

@media (max-width: 600px) {
  .loading-logo {
    width: 60vw;
    max-width: 90vw;
    min-width: 80px;
  }
  .loading-dots {
    margin-top: 16px;
    gap: 5px;
  }
  .loading-dots span {
    width: 8px;
    height: 8px;
  }
}
.loading-dots span {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #333;
  opacity: 0.4;
  animation: dot-bounce 1.2s infinite;
}
.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-16px); opacity: 1; }
}
