/* ===================== 首次进入加载动效 ===================== */
#boot-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;                 /* 由 JS 置为 flex 显示 */
  align-items: center;
  justify-content: center;
  background: radial-gradient(1200px 620px at 50% -12%, #102438 0%, #070d15 58%, #04070b 100%);
  overflow: hidden;
  transition: opacity .55s ease;
  font-family: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, Menlo, monospace;
}
#boot-loader.done { opacity: 0; }

#boot-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
  pointer-events: none;
}
#boot-names {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.boot-name {
  position: absolute;
  left: 0;
  white-space: nowrap;
  color: #38d6ff;
  text-shadow: 0 0 10px rgba(56, 214, 255, .45);
  letter-spacing: 1px;
  animation-name: bootDrift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
@keyframes bootDrift {
  from { transform: translateX(-28vw); }
  to   { transform: translateX(128vw); }
}

.boot-center {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #e8f1fb;
  padding: 24px;
  user-select: none;
}
.boot-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.boot-logo .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563EB, #38bdf8);
  color: #fff;
  font-family: monospace;
  font-weight: 800;
  box-shadow: 0 6px 22px rgba(37, 99, 235, .5);
}
.boot-title {
  font-size: 15px;
  color: #9fb4c9;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.boot-bar {
  width: min(420px, 78vw);
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  margin: 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.boot-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563EB, #38bdf8, #22d3ee);
  box-shadow: 0 0 14px rgba(56, 189, 248, .6);
  transition: width .2s ease;
}
.boot-pct {
  margin-top: 10px;
  font-size: 13px;
  color: #6fd6ff;
  letter-spacing: 1px;
}
.boot-status {
  margin-top: 6px;
  font-size: 12px;
  color: #6b8299;
  min-height: 16px;
}
.boot-skip {
  margin-top: 16px;
  font-size: 12px;
  color: #4b6175;
  letter-spacing: .5px;
  opacity: 0;
  transition: opacity .6s ease;
  user-select: none;
  cursor: pointer;
}
.boot-caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #22d3ee;
  margin-left: 4px;
  vertical-align: -2px;
  animation: bootBlink 1s steps(1) infinite;
}
@keyframes bootBlink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .boot-name { animation: none; opacity: .25 !important; }
  .boot-caret { animation: none; }
}
