/* 加载动画样式 */
.loading-wrap {
  display: flex;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotate 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border: 4px solid transparent;
  border-radius: 50%;
}

.spinner-ring:nth-child(1) {
  animation-delay: -0.45s;
  border-top-color: #fff;
}

.spinner-ring:nth-child(2) {
  animation-delay: -0.3s;
  border-right-color: rgb(255 255 255 / 0.8);
}

.spinner-ring:nth-child(3) {
  animation-delay: -0.15s;
  border-bottom-color: rgb(255 255 255 / 0.6);
}

.loading-text {
  margin-top: 24px;
  animation: pulse 1.5s ease-in-out infinite;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .loading-wrap {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  }
}

/* 响应式适配 */
@media (width <= 768px) {
  .loading-spinner {
    width: 60px;
    height: 60px;
  }

  .loading-text {
    font-size: 14px;
  }
}
