/* 拾序 Web 加载页样式 */

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

body {
  background: #0a0e1a;
  overflow: hidden;
}

#loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0a0e1a;
  z-index: 9999;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

/* 链接粒子网络背景 */
.network-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.network-bg canvas {
  width: 100%;
  height: 100%;
}

/* 中心 logo 区域 */
.center-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* 外圈旋转光环 */
.logo-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    #00d4ff 25%,
    #7b2fff 50%,
    transparent 75%
  );
  animation: spin 2s linear infinite;
}

.logo-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #0a0e1a;
}

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

.logo-svg {
  width: 64px;
  height: 64px;
  position: relative;
  z-index: 1;
  animation: pulse-glow 2s ease-in-out infinite;
}

.logo-svg .bubble-path {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: draw-bubble 2s ease-in-out infinite;
}

.logo-svg .bolt {
  opacity: 0;
  animation: bolt-appear 0.4s ease 1.2s forwards;
}

.logo-svg .bubble-tail {
  opacity: 0;
  animation: bolt-appear 0.3s ease 1s forwards;
}

@keyframes draw-bubble {
  0% { stroke-dashoffset: 180; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -180; }
}

@keyframes bolt-appear {
  to { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8))
           drop-shadow(0 0 40px rgba(123, 47, 255, 0.4));
  }
}

/* 品牌文字 */
.brand-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(135deg, #00d4ff, #7b2fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 4px;
}

/* 加载进度条 */
.progress-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar-inner {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, #00d4ff, #7b2fff);
  border-radius: 1px;
  animation: loading-progress 2s ease-in-out infinite;
}

@keyframes loading-progress {
  0% { width: 0%; margin-left: 0%; }
  50% { width: 60%; margin-left: 20%; }
  100% { width: 0%; margin-left: 100%; }
}

/* 底部状态文字 */
.status-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

/* 底部装饰线 */
.bottom-line {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 500px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 212, 255, 0.3) 20%,
    rgba(123, 47, 255, 0.5) 50%,
    rgba(0, 212, 255, 0.3) 80%,
    transparent 100%
  );
  animation: line-pulse 3s ease-in-out infinite;
}

.bottom-line::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 212, 255, 0.1) 20%,
    rgba(123, 47, 255, 0.2) 50%,
    rgba(0, 212, 255, 0.1) 80%,
    transparent 100%
  );
  filter: blur(3px);
}

@keyframes line-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
