* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  background-size: 200% 200%;
  animation: bgShift 8s ease infinite;
  color: #e2e8f0;
  overflow: hidden;
}

@keyframes bgShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(56, 189, 248, 0.4);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-30px) scale(1.2); opacity: 0.8; }
}

.container {
  text-align: center;
  padding: 2rem;
  z-index: 1;
}

.loader-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}

.ring-1 {
  border-top-color: #38bdf8;
  animation: spin 1.2s linear infinite;
}

.ring-2 {
  inset: 12px;
  border-right-color: #818cf8;
  animation: spin 1.6s linear infinite reverse;
}

.ring-3 {
  inset: 24px;
  border-bottom-color: #34d399;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 20px #38bdf8, 0 0 40px rgba(56, 189, 248, 0.5);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
}

.nodes {
  position: absolute;
  inset: -20px;
}

.node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #94a3b8;
  border-radius: 50%;
  animation: nodeBlink 2s ease-in-out infinite;
}

.node:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.node:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); animation-delay: 0.4s; }
.node:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.8s; }
.node:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); animation-delay: 1.2s; }

@keyframes nodeBlink {
  0%, 100% { background: #94a3b8; box-shadow: none; }
  50% { background: #34d399; box-shadow: 0 0 12px #34d399; }
}

h1 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.dots::after {
  content: "";
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

.subtitle {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-bar {
  width: 260px;
  max-width: 80vw;
  height: 4px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 4px;
  margin: 0 auto 1rem;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #34d399);
  border-radius: 4px;
  animation: progress 3s ease-in-out forwards;
}

@keyframes progress {
  0% { width: 0%; }
  30% { width: 35%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

.status {
  font-size: 0.8rem;
  color: #64748b;
  min-height: 1.2em;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.status-item {
  display: none;
  animation: statusFade 0.4s ease;
}

.status-item.active {
  display: block;
}

@keyframes statusFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
