/* ================================================
   智慧河湖管理平台 - 加载页面样式
   ================================================ */

.loading-container {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
}

/* 加载动画容器 */
.loading-spin__container {
  width: 48px;
  height: 48px;
  margin: 32px 0;
  position: relative;
}

/* 加载动画 - 波纹效果 */
.loading-spin {
  position: relative;
  width: 100%;
  height: 100%;
}

.loading-spin::before,
.loading-spin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: linear-gradient(135deg, #2563EB, #0D9488);
  opacity: 0;
  animation: loadingRipple 2s ease-out infinite;
}

.loading-spin::after {
  animation-delay: 1s;
}

@keyframes loadingRipple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* 中心圆点 */
.loading-spin-item {
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #2563EB, #0D9488);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  animation: loadingDot 1.5s ease-in-out infinite;
}

.left-0 { left: 0; }
.right-0 { right: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }

@keyframes loadingDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.6);
    opacity: 0.5;
  }
}

.loading-delay-500 {
  animation-delay: 0.375s;
}
.loading-delay-1000 {
  animation-delay: 0.75s;
}
.loading-delay-1500 {
  animation-delay: 1.125s;
}

/* 标题文字 */
.loading-title {
  font-size: 22px;
  font-weight: 600;
  color: #1E293B;
  letter-spacing: 2px;
  margin-top: 8px;
  background: linear-gradient(135deg, #2563EB, #0D9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .loading-container {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  }

  .loading-title {
    color: #F1F5F9;
  }
}
