/* ==========================================================================
   启动加载页（与登录页风格统一：深蓝渐变 + 多色光晕 + 玻璃卡片）
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body, #app {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.boot-loader {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 18% 22%, rgba(79, 142, 255, 0.32) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 82% 12%, rgba(94, 234, 212, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(167, 139, 250, 0.18) 0%, transparent 65%),
    linear-gradient(135deg, #050e2e 0%, #0c1e5c 45%, #1d4ed8 100%);
  overflow: hidden;
}

/* 顶部网格纹理（与登录页一致） */
.boot-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 85%);
}

/* 浮动装饰光晕（与登录页一致） */
.boot-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(4px);
}
.boot-orb--top {
  width: 380px;
  height: 380px;
  top: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.28) 0%, transparent 65%);
  animation: floatOrb1 14s ease-in-out infinite;
}
.boot-orb--bottom {
  width: 320px;
  height: 320px;
  bottom: -100px;
  left: -80px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.28) 0%, transparent 65%);
  animation: floatOrb2 17s ease-in-out infinite;
}
@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 30px) scale(1.05); }
}
@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

/* 卡片柔光环（仿照登录页 .login-container::after） */
.boot-loader::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 560px;
  height: 420px;
  max-width: 92vw;
  max-height: 80vh;
  transform: translate(-50%, -50%);
  border-radius: 22px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 80px 20px rgba(96, 165, 250, 0.18),
    0 0 120px 40px rgba(167, 139, 250, 0.10);
  pointer-events: none;
}

/* 主卡片：玻璃拟态 */
.boot-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 360px;
  padding: 44px 64px 40px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 30px 80px -10px rgba(8, 24, 70, 0.32),
    0 12px 28px rgba(8, 24, 70, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: cardEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 卡片顶部渐变条 */
.boot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f8eff 0%, #22d3c5 100%);
  border-radius: 18px 18px 0 0;
}

/* 卡片光晕 */
.boot-card::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  top: -100px;
  right: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 142, 255, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

/* ============ Logo 六边形 ============ */
.boot-logo {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.boot-logo__hex {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f8eff 0%, #22d3c5 100%);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  box-shadow:
    0 12px 24px -6px rgba(79, 142, 255, 0.45),
    inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  animation: floatLogo 6s ease-in-out infinite;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.boot-logo__char {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* Logo 外圈脉冲（呼吸） */
.boot-logo__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(96, 165, 250, 0.5);
  animation: logoPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes logoPulse {
  0%   { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.4);  opacity: 0;   }
}

/* ============ 文案 ============ */
.boot-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f1d3a;
  letter-spacing: 4px;
  background: linear-gradient(180deg, #0f1d3a 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.boot-subtitle {
  font-size: 13px;
  font-weight: 400;
  color: #6b7a99;
  letter-spacing: 2px;
  margin-bottom: 26px;
}

/* ============ 加载条 ============ */
.boot-progress {
  position: relative;
  width: 240px;
  height: 4px;
  border-radius: 2px;
  background: rgba(79, 142, 255, 0.12);
  overflow: hidden;
  margin-bottom: 18px;
}

.boot-progress__bar {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #4f8eff 30%, #22d3c5 70%, transparent);
  animation: progressSlide 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes progressSlide {
  0%   { left: -40%; }
  100% { left: 100%; }
}

/* ============ 状态文字 + 脉动小圆点 ============ */
.boot-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7a99;
  font-size: 13px;
  letter-spacing: 1px;
}

.boot-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3c5;
  box-shadow: 0 0 8px rgba(34, 211, 197, 0.7);
  animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%      { opacity: 0.5; transform: scale(0.75); }
}

/* ============ 底部版本号 ============ */
.boot-footer {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  letter-spacing: 1px;
  z-index: 1;
}
