/* v2.2: 骨架壳 —— JS 加载前立即显示，消除白屏 */
#app-skeleton {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #faf5ff 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
.sk-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}
.sk-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sk-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.sk-name { font-size: 18px; font-weight: 700; color: #1e293b; }
.sk-name span { color: #6366f1; }
.sk-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}
.sk-hero-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  box-shadow: 0 8px 32px rgba(99,102,241,0.25);
  margin-bottom: 20px;
  animation: sk-pulse 2s ease-in-out infinite;
}
@keyframes sk-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.sk-title { font-size: 28px; font-weight: 800; color: #1e293b; margin-bottom: 8px; }
.sk-subtitle { font-size: 15px; color: #64748b; margin-bottom: 24px; line-height: 1.6; }
.sk-spinner {
  width: 32px; height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: sk-spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes sk-spin { to { transform: rotate(360deg); } }
.sk-loading-text { font-size: 13px; color: #94a3b8; }
#root.app-loaded ~ #app-skeleton { display: none; }
