:root {
  color-scheme: dark;
  --bg: #08113a;
  --bg-deep: #04081f;
  --surface: #101e59;
  --surface-strong: #162b70;
  --text: #f7f9ff;
  --text-soft: #d8e4ff;
  --muted: #b7c8eb;
  --cyan: #78dcff;
  --cyan-strong: #47c8f5;
  --violet: #8c7dff;
  --gold: #ffbf4d;
  --line: rgba(120, 220, 255, 0.32);
  --progress: 0deg;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg-deep);
}

body {
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(71, 200, 245, 0.14), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(140, 125, 255, 0.2), transparent 32rem),
    var(--bg);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle at 12% 24%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 68%, rgba(120, 220, 255, 0.65) 0 1px, transparent 1.4px),
    radial-gradient(circle at 42% 82%, rgba(255, 191, 77, 0.6) 0 1px, transparent 1.4px);
  background-size: 181px 181px, 239px 239px, 307px 307px;
  opacity: 0.34;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--cyan);
  color: #031024;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
.migration-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1440px, calc(100% - 48px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid rgba(120, 220, 255, 0.54);
  border-radius: 50%;
  box-shadow: inset 0 0 12px rgba(120, 220, 255, 0.2);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  position: absolute;
  display: block;
  content: "";
}

.brand-mark::before {
  inset: 6px;
  border: 1px solid rgba(140, 125, 255, 0.85);
  border-radius: 50%;
  transform: rotateX(62deg);
}

.brand-mark::after {
  width: 7px;
  height: 7px;
  top: 11px;
  left: 11px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.brand-mark i {
  width: 4px;
  height: 4px;
  top: 3px;
  right: 2px;
  border-radius: 50%;
  background: var(--gold);
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.header-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(120, 220, 255, 0.9);
}

.migration-shell {
  width: min(1440px, calc(100% - 48px));
  min-height: min(730px, calc(100svh - 134px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.18fr);
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(2, 5, 25, 0.46);
}

.migration-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: clamp(44px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background:
    radial-gradient(circle at 16% 4%, rgba(120, 220, 255, 0.11), transparent 18rem),
    linear-gradient(145deg, #101f5b 0%, #0c1748 72%, #09123b 100%);
}

.mission-label {
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 800;
}

.mission-label::before {
  width: 28px;
  height: 2px;
  content: "";
  background: var(--cyan);
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(3.3rem, 6.4vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  max-width: 17em;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.22rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.55;
  text-wrap: pretty;
}

.lead a {
  color: var(--cyan);
  text-decoration-color: rgba(120, 220, 255, 0.46);
  text-underline-offset: 4px;
}

.supporting-copy {
  max-width: 36em;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.redirect-status {
  margin: 34px 0 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.countdown {
  position: relative;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) var(--progress), rgba(120, 220, 255, 0.16) 0);
}

.countdown::before {
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  content: "";
  background: #0d194d;
}

.countdown span {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.countdown-copy {
  display: grid;
  gap: 5px;
}

.countdown-copy strong {
  color: var(--text);
  font-size: 1rem;
}

.countdown-copy > span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.launch-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 13px 22px;
  border-radius: 10px;
  background: var(--cyan);
  color: #071236;
  font-size: 0.98rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 6px 0 #319bc4;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease-out;
}

.launch-button:hover {
  background: #9be7ff;
  transform: translateY(-2px);
}

.launch-button:active {
  transform: translateY(3px);
}

.launch-button:focus-visible,
.brand:focus-visible,
.lead a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.fallback-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.migration-visual {
  position: relative;
  min-width: 0;
  min-height: 580px;
  margin: 0;
  overflow: hidden;
  background: #050922;
}

.migration-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 18, 59, 0.76) 0%, rgba(9, 18, 59, 0.05) 30%),
    linear-gradient(0deg, rgba(4, 8, 31, 0.62) 0%, transparent 34%);
}

.migration-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 67% center;
  transform: scale(1.015);
  animation: visual-arrival 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.migration-visual figcaption {
  position: absolute;
  right: clamp(24px, 4vw, 52px);
  bottom: clamp(24px, 4vw, 48px);
  z-index: 2;
  max-width: calc(100% - 48px);
  padding: 14px 17px;
  display: grid;
  gap: 4px;
  border-radius: 10px;
  background: #0b1748;
  box-shadow: 0 6px 0 rgba(71, 200, 245, 0.38);
}

.migration-visual figcaption span {
  color: var(--muted);
  font-size: 0.72rem;
}

.migration-visual figcaption strong {
  color: var(--cyan);
  font-size: 1rem;
}

.site-footer {
  width: min(1440px, calc(100% - 48px));
  min-height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.76rem;
}

.site-footer span:first-child {
  color: var(--text-soft);
  font-weight: 800;
}

.noscript-notice {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  width: min(560px, calc(100% - 32px));
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  color: #071236;
  text-align: center;
}

@keyframes visual-arrival {
  from {
    opacity: 0.7;
    transform: scale(1.06);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: scale(1.015);
    filter: blur(0);
  }
}

@media (max-width: 940px) {
  .migration-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .migration-copy {
    min-height: 600px;
  }

  .migration-visual {
    min-height: 400px;
  }

  .migration-visual::after {
    background:
      linear-gradient(180deg, rgba(9, 18, 59, 0.72) 0%, transparent 28%),
      linear-gradient(0deg, rgba(4, 8, 31, 0.68) 0%, transparent 34%);
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer,
  .migration-shell {
    width: min(100% - 24px, 1440px);
  }

  .site-header {
    min-height: 64px;
  }

  .header-status {
    font-size: 0;
  }

  .header-status::after {
    content: "已迁移";
    font-size: 0.76rem;
  }

  .migration-shell {
    border-radius: 12px;
  }

  .migration-copy {
    min-height: 560px;
    padding: 42px 26px;
  }

  h1 {
    font-size: clamp(3.2rem, 19vw, 4.7rem);
  }

  .lead {
    margin-top: 22px;
    font-size: 1.18rem;
  }

  .redirect-status {
    margin: 28px 0 24px;
  }

  .launch-button {
    width: 100%;
  }

  .migration-visual {
    min-height: 320px;
  }

  .migration-visual img {
    object-position: 70% center;
  }

  .site-footer {
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
