:root {
  color: #e7efff;
  background: #0e1321;
  font-family: SimSun, "Songti SC", serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.loading-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #0e1321;
  position: relative;
}

.loading-panel {
  position: absolute;
  top: 48.5%;
  left: calc(60.9% - 162px);
  width: min(324px, calc(100vw - 48px));
  text-align: center;
}

.spinner {
  width: 80px;
  height: 80px;
  margin: 0 auto 43px;
  border: 5px solid #2b3140;
  border-bottom-color: #3e8cff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner.is-complete {
  animation-play-state: paused;
}

h1 {
  margin: 0 0 17px;
  color: #68aaff;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.progress-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #2a303e;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b91ff 0%, #6660f4 100%);
}

.status-text {
  margin: 24px 0 0;
  color: #7ea8d7;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}

.redirect-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 42px;
  margin-top: 22px;
  padding: 0 28px;
  border: 1px solid rgba(104, 170, 255, 0.55);
  border-radius: 8px;
  color: #f4f8ff;
  background: #317fe6;
  box-shadow: 0 8px 24px rgba(49, 127, 230, 0.22);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.redirect-button[hidden] {
  display: none;
}

.redirect-button:hover {
  background: #3e8cff;
  transform: translateY(-1px);
}

.redirect-button:focus-visible {
  outline: 3px solid rgba(104, 170, 255, 0.4);
  outline-offset: 3px;
}

.redirect-button:active {
  transform: translateY(0);
}

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

@media (max-width: 700px) {
  .loading-panel {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2s;
  }
}
