/* 无敌风火圆：外环「火」顺时针、内环「风」逆时针、中心能量核脉冲 — 首屏与路由加载共用 */

.wfw-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  user-select: none;
}

.wfw-stage {
  position: relative;
  width: 64px;
  height: 64px;
}

.wfw-ring {
  position: absolute;
  border-radius: 50%;
  box-sizing: border-box;
}

/* 外环：火焰色，顺时针 */
.wfw-ring--fire {
  inset: 0;
  border: 3px solid transparent;
  border-top-color: #ff7a45;
  border-right-color: #fa8c16;
  border-bottom-color: rgba(250, 140, 22, 0.12);
  border-left-color: rgba(250, 140, 22, 0.12);
  animation: wfw-spin-cw 0.85s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 122, 69, 0.42));
}

/* 内环：风/水色，逆时针 */
.wfw-ring--wind {
  inset: 10px;
  border: 3px solid transparent;
  border-bottom-color: #409eff;
  border-left-color: #69b1ff;
  border-top-color: rgba(64, 158, 255, 0.1);
  border-right-color: rgba(64, 158, 255, 0.1);
  animation: wfw-spin-ccw 0.68s linear infinite;
  filter: drop-shadow(0 0 5px rgba(64, 158, 255, 0.32));
}

/* 中心核 */
.wfw-core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff, #e8f4ff 42%, #409eff);
  animation: wfw-pulse 1s ease-in-out infinite;
  box-shadow:
    0 0 10px rgba(64, 158, 255, 0.35),
    inset 0 0 8px rgba(255, 255, 255, 0.65);
}

.wfw-caption {
  margin: 0;
  font-size: 15px;
  color: #606266;
  letter-spacing: 0.5px;
}

/* 首屏加载：百分比进度条 */
.wfw-progress {
  width: min(180px, 86vw);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.wfw-progress__label {
  margin: 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #606266;
  text-align: center;
  letter-spacing: 0.5px;
}

.wfw-progress__track {
  height: 6px;
  border-radius: 999px;
  background: #ebeef5;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.wfw-progress__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #409eff 0%, #69b1ff 45%, #ff7a45 100%);
  background-size: 200% 100%;
  animation: wfw-progress-shimmer 1.2s ease-in-out infinite;
  /* 宽度由 index.html 内联脚本逐帧更新，不用 CSS transition */
  transition: none;
  transform-origin: left center;
}

@keyframes wfw-progress-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wfw-progress__fill {
    animation: none;
    background: linear-gradient(90deg, #409eff, #ff7a45);
  }
}

@keyframes wfw-spin-cw {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wfw-spin-ccw {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes wfw-pulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wfw-ring--fire {
    animation-duration: 1.6s;
  }
  .wfw-ring--wind {
    animation-duration: 1.4s;
  }
  .wfw-core {
    animation-duration: 1.8s;
  }
}
