html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  background: #f4f8fd;
}

.wfxf-bootstrap {
  position: relative;
  display: grid;
  min-height: 100dvh;
  padding: 24px;
  overflow: hidden;
  color: #10244b;
  background:
    radial-gradient(1000px 640px at 50% -22%, #fff 0%, rgb(255 255 255 / 0%) 62%),
    linear-gradient(180deg, #f8fbff 0%, #eaf1fa 100%);
  font-family:
    -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  box-sizing: border-box;
  place-items: center;
  -webkit-font-smoothing: antialiased;
}

/* 两团极慢漂移的光斑，给静态画面一点呼吸感 */
.wfxf-bootstrap::before,
.wfxf-bootstrap::after {
  position: absolute;
  content: '';
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}

.wfxf-bootstrap::before {
  top: 22%;
  left: 26%;
  width: 360px;
  height: 360px;
  background: rgb(37 127 254 / 11%);
  animation: wfxf-bootstrap-drift 22s ease-in-out infinite alternate;
}

.wfxf-bootstrap::after {
  right: 24%;
  bottom: 16%;
  width: 320px;
  height: 320px;
  background: rgb(1 42 104 / 6%);
  animation: wfxf-bootstrap-drift 22s ease-in-out infinite alternate-reverse;
}

/* 缓慢上浮的微光点 */
.wfxf-bootstrap__motes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wfxf-bootstrap__motes span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgb(37 127 254 / 45%);
  border-radius: 50%;
  animation: wfxf-bootstrap-mote 9s ease-in-out infinite;
}

.wfxf-bootstrap__motes span:nth-child(1) {
  top: 64%;
  left: 22%;
  animation-delay: -1s;
}

.wfxf-bootstrap__motes span:nth-child(2) {
  top: 74%;
  left: 34%;
  width: 3px;
  height: 3px;
  animation-delay: -4.5s;
  animation-duration: 11s;
}

.wfxf-bootstrap__motes span:nth-child(3) {
  top: 58%;
  left: 71%;
  animation-delay: -7s;
  animation-duration: 10s;
}

.wfxf-bootstrap__motes span:nth-child(4) {
  top: 70%;
  left: 80%;
  width: 3px;
  height: 3px;
  animation-delay: -2.5s;
}

.wfxf-bootstrap__motes span:nth-child(5) {
  top: 34%;
  left: 28%;
  width: 3px;
  height: 3px;
  animation-delay: -6s;
  animation-duration: 12s;
}

.wfxf-bootstrap__motes span:nth-child(6) {
  top: 30%;
  left: 74%;
  animation-delay: -8s;
  animation-duration: 10.5s;
}

.wfxf-bootstrap__content {
  position: relative;
  z-index: 1;
  width: min(340px, 100%);
  text-align: center;
  animation: wfxf-bootstrap-enter 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.wfxf-bootstrap__mark {
  position: relative;
  display: grid;
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  background: #fff;
  border-radius: 50%;
  box-shadow:
    0 18px 40px -20px rgb(1 42 104 / 45%),
    0 0 0 1px rgb(1 42 104 / 5%);
  animation: wfxf-bootstrap-float 5s ease-in-out infinite;
  place-items: center;
}

.wfxf-bootstrap__mark::before {
  position: absolute;
  inset: -32px;
  content: '';
  background: radial-gradient(closest-side, rgb(37 127 254 / 20%), rgb(37 127 254 / 0%) 72%);
  animation: wfxf-bootstrap-halo 5s ease-in-out infinite;
}

.wfxf-bootstrap__logo {
  position: relative;
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

/* 向外扩散后消失的信号环 */
.wfxf-bootstrap__pulse {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(37 127 254 / 55%);
  border-radius: 50%;
  animation: wfxf-bootstrap-signal 3.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

/* 沿标志外缘环绕的短光弧 */
.wfxf-bootstrap__orbit {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgb(37 127 254 / 0%) 0deg,
    rgb(37 127 254 / 0%) 250deg,
    rgb(37 127 254 / 85%) 330deg,
    rgb(37 127 254 / 0%) 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: wfxf-bootstrap-spin 2.8s linear infinite;
}

.wfxf-bootstrap__brand {
  padding-left: 0.16em;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.16em;
}

.wfxf-bootstrap__sub {
  padding-left: 0.32em;
  margin: 7px 0 0;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: #6d819c;
}

.wfxf-bootstrap__progress {
  position: relative;
  width: 200px;
  height: 3px;
  margin: 42px auto 18px;
  overflow: hidden;
  background: rgb(1 42 104 / 8%);
  border-radius: 999px;
}

.wfxf-bootstrap__progress span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 66px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(37 127 254 / 0%), #257ffe 55%, #012a68);
  animation: wfxf-bootstrap-progress 1.9s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

/* 光带前端的亮点 */
.wfxf-bootstrap__progress span::after {
  position: absolute;
  top: 50%;
  right: 1px;
  width: 4px;
  height: 4px;
  content: '';
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgb(37 127 254 / 70%);
  transform: translateY(-50%);
}

.wfxf-bootstrap__hint {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #6d819c;
  animation: wfxf-bootstrap-breathe 2.8s ease-in-out infinite;
}

.wfxf-bootstrap noscript {
  position: relative;
  z-index: 1;
  color: #a12828;
  text-align: center;
}

html.dark .wfxf-bootstrap {
  color: #e5efff;
  background:
    radial-gradient(1000px 640px at 50% -22%, rgb(24 58 108 / 55%) 0%, rgb(24 58 108 / 0%) 62%),
    linear-gradient(180deg, #0d1a2e 0%, #0a1424 100%);
}

html.dark .wfxf-bootstrap::before {
  background: rgb(37 127 254 / 14%);
}

html.dark .wfxf-bootstrap::after {
  background: rgb(20 93 204 / 9%);
}

html.dark .wfxf-bootstrap__motes span {
  background: rgb(120 174 255 / 45%);
}

html.dark .wfxf-bootstrap__mark {
  background: rgb(229 239 255 / 8%);
  box-shadow:
    0 18px 44px -18px rgb(0 0 0 / 60%),
    0 0 0 1px rgb(229 239 255 / 12%);
}

html.dark .wfxf-bootstrap__mark::before {
  background: radial-gradient(closest-side, rgb(74 141 255 / 26%), rgb(74 141 255 / 0%) 72%);
}

html.dark .wfxf-bootstrap__pulse {
  border-color: rgb(74 141 255 / 60%);
}

html.dark .wfxf-bootstrap__orbit {
  background: conic-gradient(
    from 0deg,
    rgb(74 141 255 / 0%) 0deg,
    rgb(74 141 255 / 0%) 250deg,
    rgb(74 141 255 / 90%) 330deg,
    rgb(74 141 255 / 0%) 360deg
  );
}

html.dark .wfxf-bootstrap__sub,
html.dark .wfxf-bootstrap__hint {
  color: #a9bdd7;
}

html.dark .wfxf-bootstrap__progress {
  background: rgb(229 239 255 / 12%);
}

html.dark .wfxf-bootstrap__progress span {
  background: linear-gradient(90deg, rgb(74 141 255 / 0%), #4a8dff 55%, #a9caff);
}

@keyframes wfxf-bootstrap-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wfxf-bootstrap-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes wfxf-bootstrap-halo {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.94);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes wfxf-bootstrap-signal {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes wfxf-bootstrap-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wfxf-bootstrap-progress {
  0% {
    opacity: 0;
    transform: translateX(-66px);
  }

  14%,
  84% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(200px);
  }
}

@keyframes wfxf-bootstrap-breathe {
  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

@keyframes wfxf-bootstrap-mote {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }

  25%,
  65% {
    opacity: 0.7;
  }

  100% {
    opacity: 0;
    transform: translate3d(14px, -70px, 0);
  }
}

@keyframes wfxf-bootstrap-drift {
  from {
    transform: translate3d(-24px, -16px, 0) scale(1);
  }

  to {
    transform: translate3d(28px, 22px, 0) scale(1.08);
  }
}

@media (width <= 480px) {
  .wfxf-bootstrap__brand {
    font-size: 20px;
  }

  .wfxf-bootstrap__progress {
    margin-top: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wfxf-bootstrap__content,
  .wfxf-bootstrap__mark,
  .wfxf-bootstrap__mark::before,
  .wfxf-bootstrap__orbit,
  .wfxf-bootstrap__pulse,
  .wfxf-bootstrap__hint,
  .wfxf-bootstrap__motes span,
  .wfxf-bootstrap::before,
  .wfxf-bootstrap::after {
    animation: none;
  }

  .wfxf-bootstrap__pulse {
    display: none;
  }

  .wfxf-bootstrap__progress span {
    left: 50%;
    opacity: 1;
    animation: none;
    transform: translateX(-50%);
  }

  .wfxf-bootstrap__progress span::after {
    display: none;
  }
}
