/* 页面初始骨架屏 —— 在 React 挂载前展示 */

#app-root-loading {
  position: fixed;
  inset: 0;
  display: flex;
  background: #fff;
  z-index: 9999;
  box-sizing: border-box;
}

#app-root-loading *,
#app-root-loading *::before,
#app-root-loading *::after {
  box-sizing: border-box;
}

@keyframes skeleton-pulse {
  0%,
  100% { opacity: 1; }
  50%  { opacity: 0.4; }
}

.sk {
  background: #f7f7f7;
  border-radius: 8px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.d1 { animation-delay: 0.1s }
.d2 { animation-delay: 0.2s }
.d3 { animation-delay: 0.3s }
.d4 { animation-delay: 0.4s }

.sk-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.sk-body {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.sk-content {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 0 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  overflow: hidden;
}

.sk-paragraph {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sk-para-line {
  height: 32px;
  border-radius: 8px;
}

/* PC 客户端：隐藏骨架屏，避免 Boot 页渲染前出现布局跳变 */
.in-pc-client #app-root-loading .sk-main {
  display: none;
}
