.redferrum-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  background: #f1f3f3;
}

/* 配置页切换时保留布局和侧栏，仅在内容区域内加载。 */
.ant-pro-layout .redferrum-loading {
  position: absolute;
  inset: 0;
  z-index: auto;
  height: 100vh;
  visibility: hidden;
  animation: redferrum-loading-reveal 0s 500ms forwards;
}

@keyframes redferrum-loading-reveal {
  to {
    visibility: visible;
  }
}

.redferrum-loading-logo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: linear-gradient(
    110deg,
    #bd202c 15%,
    #ed9298 45%,
    #d32f3c 65%,
    #bd202c 85%
  );
  background-size: 250% 100%;
  mask: url('/loading-logo.png') center / contain no-repeat;
  -webkit-mask: url('/loading-logo.png') center / contain no-repeat;
  animation: redferrum-loading-gradient 2.4s ease-in-out infinite alternate;
}

.redferrum-loading-label {
  color: #898b93;
  font: 13px / 20px 'Segoe UI', sans-serif;
  letter-spacing: 3px;
}

@keyframes redferrum-loading-gradient {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .redferrum-loading-logo {
    animation: none;
  }
}
