/* 首屏启动样式：由 index.html 用 <link> 阻塞加载，不依赖任何外部请求，
 * 弱网下也不会出现"无样式半成品"。
 * 注意：本文件不能内联回 index.html 的 <style> —— vite 4.5.14 下内联样式
 * 会让 vite build 报 "No matching HTML proxy module found ... inline-css" 失败。 */
#boot-loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #ffffff;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  z-index: 9999;
}
#boot-loader .boot-wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.35em;
  color: #14100f;
  display: flex;
  align-items: center;
  gap: 10px;
}
#boot-loader .boot-wordmark::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background:
    linear-gradient(#e63946, #e63946) left / 30% 100% no-repeat,
    linear-gradient(#e63946, #e63946) center / 30% 60% no-repeat,
    linear-gradient(#e63946, #e63946) right / 30% 100% no-repeat;
}
#boot-loader .boot-dots { display: flex; gap: 8px; }
#boot-loader .boot-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e63946;
  animation: boot-pulse 1.2s ease-in-out infinite;
}
#boot-loader .boot-dots i:nth-child(2) { animation-delay: 0.15s; }
#boot-loader .boot-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes boot-pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}
.boot-error {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #ffffff;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  text-align: center;
  padding: 24px;
  z-index: 9999;
}
.boot-error h1 { font-size: 20px; color: #14100f; margin: 0; }
.boot-error p { font-size: 14px; color: #8a8583; margin: 0; line-height: 1.7; }
.boot-error button {
  margin-top: 6px;
  padding: 10px 34px;
  border: none;
  border-radius: 999px;
  background: #14100f;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}
.boot-error button:hover { background: #e63946; }
