/* V116.3 首屏关键 CSS - 从 index.html 内联迁移，避免 Vite html-inline-proxy 构建错误 */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5715;
  color: #303133;
  background: #f5f7fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
#app { min-height: 100%; }
/* 首屏骨架屏 - 避免白屏（V232.33: 沉稳靛蓝品牌视觉重设计） */
.app-loading {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background:
    radial-gradient(680px 420px at 78% -10%, rgba(45, 79, 124, 0.35), transparent 60%),
    radial-gradient(520px 380px at 12% 110%, rgba(46, 125, 123, 0.16), transparent 60%),
    linear-gradient(160deg, #1e3a5f 0%, #2d4f7c 48%, #5b4b8a 100%);
  z-index: 9999;
  transition: opacity 0.3s ease;
}
.app-loading.hidden { opacity: 0; pointer-events: none; }
.app-loading-logo {
  margin-bottom: 20px;
  animation: float 2.6s ease-in-out infinite;
}
.app-loading-logo svg { display: block; }
.app-loading-spark { animation: spark 2.6s ease-in-out infinite; }
.app-loading-text {
  color: #fff; font-size: 20px; font-weight: 600;
  letter-spacing: 6px; margin-right: -6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
.app-loading-sub {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12.5px; letter-spacing: 1.5px;
  margin-top: 10px; margin-bottom: 26px;
}
.app-loading-spinner {
  width: 132px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.18); overflow: hidden;
  position: relative;
}
.app-loading-spinner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #2d4f7c, #96a7bd);
  border-radius: 2px;
  animation: loading 1.15s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes spark {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
  body { color: #e2e8f0; background: #0f172a; }
}
/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .app-loading-logo, .app-loading-spark { animation: none; }
  .app-loading-spinner::after { animation: none; }
}
/* 屏幕阅读器专用 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}