html,
body,
#app {
  height: 100%;
  margin: 0;
  padding: 0;
}
#loader-wrapper {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(22, 58, 140, 0.55), transparent 56%),
    radial-gradient(circle at 50% 42%, #0a1c44 0%, #050e25 56%, #030a1c 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow: hidden;
  transition: opacity 0.3s ease;
}
#loader-wrapper.loader-hidden {
  opacity: 0;
}
#loader-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(95, 140, 230, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 140, 230, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
  pointer-events: none;
}
.boot-console {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 44px 56px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(22, 50, 104, 0.42), rgba(10, 28, 68, 0.52));
  border: 1px solid rgba(95, 140, 230, 0.28);
  box-shadow:
    0 36px 88px -34px rgba(0, 8, 24, 0.85),
    inset 0 1px 0 rgba(140, 180, 255, 0.2);
  backdrop-filter: blur(12px);
  animation: boot-in 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.boot-orbit {
  position: relative;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  animation: boot-float 3.2s ease-in-out infinite;
}
/* 反向虚线环 */
.boot-orbit::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(77, 139, 255, 0.34);
  animation: miao-spin 8s linear infinite reverse;
}
/* 呼吸脉冲光圈 */
.boot-orbit::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(47, 227, 240, 0);
  animation: boot-pulse 2s ease-out infinite;
}
.boot-orbit i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(95, 140, 230, 0.2);
  border-top-color: #2fe3f0;
  border-right-color: rgba(77, 139, 255, 0.7);
  animation: miao-spin 1.3s linear infinite;
  box-shadow: 0 0 24px rgba(47, 227, 240, 0.28);
}
.boot-orbit span {
  font-size: 32px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  background: linear-gradient(135deg, #8ff4fc, #4d8bff 58%, #8b7bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(47, 227, 240, 0.5));
}
.boot-kicker {
  font: 11px/1.4 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.34em;
  color: rgba(140, 180, 255, 0.62);
  text-transform: uppercase;
}
.load-text {
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 6px;
  margin-left: 6px;
  background: linear-gradient(100deg, #8fd9ff 0%, #d8f6ff 25%, #ffffff 45%, #9ec8ff 65%, #8fd9ff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: boot-shimmer 2.6s ease-in-out infinite;
}
.boot-progress {
  position: relative;
  width: 184px;
  height: 3px;
  border-radius: 4px;
  background: rgba(95, 140, 230, 0.18);
  overflow: hidden;
}
.boot-progress i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, #2fe3f0, #4d8bff, transparent);
  animation: boot-slide 1.4s ease-in-out infinite;
}
.boot-status {
  font: 12px/1.4 'JetBrains Mono', ui-monospace, Consolas, monospace;
  letter-spacing: 0.08em;
  color: rgba(140, 180, 255, 0.5);
}
.boot-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 3px;
  vertical-align: baseline;
}
.boot-dots i {
  position: static;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  animation: boot-dot 1.2s ease-in-out infinite;
}
.boot-dots i:nth-child(2) {
  animation-delay: 0.2s;
}
.boot-dots i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes miao-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes boot-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes boot-slide {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(350%);
  }
}
@keyframes boot-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@keyframes boot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 227, 240, 0.4);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(47, 227, 240, 0);
  }
}
@keyframes boot-shimmer {
  0% {
    background-position: 220% 0;
  }
  100% {
    background-position: -120% 0;
  }
}
@keyframes boot-dot {
  0%,
  60%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .boot-console,
  .boot-orbit,
  .boot-orbit i,
  .boot-orbit::before,
  .boot-progress i,
  .load-text,
  .boot-dots i {
    animation: none;
  }
  .boot-orbit i {
    transform: rotate(300deg);
  }
}
