/* Critical CSS — FOUC 防护；色值与 yx-tokens 默认深色对齐（无 var：CSP 外链阶段） */
html, body { margin: 0; padding: 0; background: #030712; color: #e8eefc; overflow: hidden; height: 100%; height: 100dvh; max-height: 100dvh; }
html[data-color-scheme='light'], html[data-color-scheme='light'] body { background: #f4f7ff; color: #0b1220; }
#app { height: 100%; height: 100dvh; max-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: inherit; color: inherit; }
.app-loading {
  position: fixed; inset: 0; background: #030712;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px; color: #e8eefc;
  font-family: 'Outfit', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  letter-spacing: 2px; font-size: 24px; font-weight: 700;
  z-index: 9999;
}
html[data-color-scheme='light'] .app-loading {
  background: #f4f7ff; color: #0b1220;
}
html[data-color-scheme='light'] .app-loading-bar { background: #e2e8f0; }
.app-loading-bar {
  width: 200px; height: 2px; background: rgba(148, 180, 255, 0.14); border-radius: 1px; overflow: hidden;
}
.app-loading-bar-inner {
  /* 对齐 --yx-accent #54a0ff（禁止金色条） */
  height: 100%; background: #54a0ff; border-radius: 1px;
  box-shadow: 0 0 12px rgba(84, 160, 255, 0.45);
  animation: load-progress 1.5s ease-in-out infinite;
}
@keyframes load-progress {
  0%   { width: 0%;   transform: translateX(0); }
  50%  { width: 70%;  transform: translateX(0); }
  100% { width: 100%; transform: translateX(100%); }
}
.boot-fallback {
  text-align: center;
  padding: 24px;
  max-width: 360px;
}
.boot-fallback-title { margin-bottom: 12px; }
.boot-fallback-hint {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 20px;
  line-height: 1.5;
}
.boot-fallback-hint--dark { color: #8494b8; }
.boot-fallback-hint--light { color: #64748b; }
.boot-reload-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #54a0ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  font-family: inherit;
}
html[data-color-scheme='light'] .boot-reload-btn {
  background: #2668e8;
}
