/* 微信 OAuth / 首屏 loading — 白色通用（无图标，纯 CSS） */
.wx-boot-loader {
  --wx-boot-green: #0d4a24;
  --wx-boot-green-light: #2d8f52;
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(32px, env(safe-area-inset-top)) 28px max(32px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: #ffffff;
  color: #1a1a1a;
}

.wx-boot-loader.active {
  display: flex;
}

.wx-boot-loader__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(13, 74, 36, 0.06), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.wx-boot-loader__content {
  position: relative;
  z-index: 1;
  width: min(320px, 100%);
  text-align: center;
  animation: wx-boot-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wx-boot-loader__title {
  margin: 0;
  font-size: clamp(20px, 5.5vw, 26px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: #1a1a1a;
}

.wx-boot-loader__hint {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #999;
  letter-spacing: 0.04em;
}

/* 抽象竖条（非图标） */
.wx-boot-loader__bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 32px;
  margin: 32px auto 0;
}

.wx-boot-loader__bars i {
  display: block;
  width: 3px;
  height: 10px;
  border-radius: 999px;
  background: var(--wx-boot-green);
  opacity: 0.35;
  animation: wx-boot-bar 1.1s ease-in-out infinite;
}

.wx-boot-loader__bars i:nth-child(1) { animation-delay: 0s; }
.wx-boot-loader__bars i:nth-child(2) { animation-delay: 0.12s; }
.wx-boot-loader__bars i:nth-child(3) { animation-delay: 0.24s; }
.wx-boot-loader__bars i:nth-child(4) { animation-delay: 0.36s; }
.wx-boot-loader__bars i:nth-child(5) { animation-delay: 0.48s; }

.wx-boot-loader__track {
  position: relative;
  height: 2px;
  margin-top: 24px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
}

.wx-boot-loader__track span {
  position: absolute;
  inset: 0;
  width: 32%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--wx-boot-green-light), var(--wx-boot-green), transparent);
  animation: wx-boot-slide 1.6s ease-in-out infinite;
}

@keyframes wx-boot-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wx-boot-bar {
  0%, 100% { height: 8px; opacity: 0.3; }
  50% { height: 28px; opacity: 1; }
}

@keyframes wx-boot-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(380%); }
}

@media (prefers-reduced-motion: reduce) {
  .wx-boot-loader__bars i,
  .wx-boot-loader__track span,
  .wx-boot-loader__content {
    animation: none !important;
  }
}
