html,
body,
#app {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
  overflow: hidden;
}
/* 动画定义 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lineGrow {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 加载器容器 */
.loader-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* 三点波浪加载器 */
#loader {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.loading-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #013170;
  box-shadow: 0 0 10px rgba(93, 135, 255, 0.4);
  animation: dotWave 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(1) {
  animation-delay: 0s;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotWave {
  0%, 60%, 100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  30% {
    transform: translateY(-20px) scale(1.2);
    opacity: 0.8;
  }
}
/* 流光进度条 */
.progress-container {
  width: 240px;
  height: 3px;
  background: rgba(0, 0, 0, 0.08); /* 浅灰色背景 */
  border-radius: 10px;
  overflow: hidden;
  margin-top: 24px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(93, 135, 255, 0.6),
    rgba(93, 135, 255, 0.9),
    rgba(93, 135, 255, 0.6)
  );
  background-size: 200% 100%;
  border-radius: 10px;
  animation: progressShine 2s ease-in-out infinite;
  width: 0%;
  position: relative;
}

/* 流光效果 */
.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  animation: shine 1.5s ease-in-out infinite;
}

@keyframes progressShine {
  0% {
    width: 20%;
    background-position: 0% 50%;
  }
  50% {
    width: 70%;
    background-position: 100% 50%;
  }
  100% {
    width: 95%;
    background-position: 0% 50%;
  }
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* 系统LOGO区域 */
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

/* Logo 图标 - 无背景，纯图片，稍大尺寸 */
.logo-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoFloat 2.5s ease-in-out infinite;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Logo 浮动动画 */
@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.logo-text {
  color: rgba(0, 0, 0, 0.85);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 加载完成动画 */
.loaded #loader-wrapper {
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.loaded .loader-container {
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 600px) {
  .load-title {
    font-size: 16px;
  }

  .load-subtitle {
    font-size: 13px;
  }

  #loader {
    width: 60px;
    height: 60px;
  }

  .progress-container {
    width: 160px;
  }

  .logo-icon {
    width: 56px;
    height: 56px;
  }
}

/* 禁用JS时的样式 */
.no-js #loader-wrapper {
  display: none;
}

.no-js h1 {
  color: #222222;
}
