/**
 * @description 雪花屏（首屏 loading），基于 ant-design 改造
 * 2026-12-02：随全站 UI 质感层一起重做——原版是 ant 默认蓝 #1890ff 的圆点阵 +
 * 30px 纯黑粗体标题，与品牌主色 #18bc9c 完全不搭，且 body 未清 margin 导致整体偏移。
 * 现在改为：品牌渐变点阵 + 浅底径向品牌光晕 + 细字标题 + 底部扫光进度条。
 **/
html,
body {
  margin: 0;
  padding: 0;
  background: #f6fafb;
}

.first-loading-wrp {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  min-height: 520px;
  background: radial-gradient(
    circle at 50% 34%,
    #e6f8f3 0%,
    #f2f9f9 46%,
    #f6fafb 72%
  );
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

.first-loading-wrp .loading-wrp {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  padding: 0;
}

/* 标题：去掉 ant 的 30px 纯黑粗体，改中等字重 + 拉开字距 */
.first-loading-wrp > h1 {
  margin: 0;
  color: #162e33;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 3px;
}

/* 底部扫光进度条：纯装饰，不阻塞任何加载逻辑 */
.first-loading-wrp::after {
  width: 132px;
  height: 3px;
  margin-top: 20px;
  content: '';
  background: linear-gradient(
    90deg,
    rgba(24, 188, 156, 0) 0%,
    #18bc9c 42%,
    #22c9a8 58%,
    rgba(24, 188, 156, 0) 100%
  );
  background-size: 220% 100%;
  border-radius: 999px;
  animation: loadingSweep 1.5s ease-in-out infinite;
}

.dot {
  position: relative;
  box-sizing: border-box;
  display: inline-block;
  width: 64px;
  height: 64px;
  font-size: 64px;
  transform: rotate(45deg);
  animation: antRotate 1.2s infinite linear;
}

.dot i {
  position: absolute;
  display: block;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #2ed3b1 0%, #0f9d84 100%);
  border-radius: 100%;
  opacity: 0.28;
  transform: scale(0.75);
  transform-origin: 50% 50%;
  animation: antSpinMove 1s infinite linear alternate;
}

.dot i:nth-child(1) {
  top: 0;
  left: 0;
}

.dot i:nth-child(2) {
  top: 0;
  right: 0;
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
}

.dot i:nth-child(3) {
  right: 0;
  bottom: 0;
  -webkit-animation-delay: 0.8s;
  animation-delay: 0.8s;
}

.dot i:nth-child(4) {
  bottom: 0;
  left: 0;
  -webkit-animation-delay: 1.2s;
  animation-delay: 1.2s;
}

@keyframes loadingSweep {
  0% {
    background-position: 140% 0;
  }
  100% {
    background-position: -140% 0;
  }
}

@keyframes antRotate {
  to {
    -webkit-transform: rotate(405deg);
    transform: rotate(405deg);
  }
}

@-webkit-keyframes antRotate {
  to {
    -webkit-transform: rotate(405deg);
    transform: rotate(405deg);
  }
}

@keyframes antSpinMove {
  to {
    opacity: 1;
  }
}

@-webkit-keyframes antSpinMove {
  to {
    opacity: 1;
  }
}
