* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  padding: clamp(26px, 5vh, 54px) clamp(16px, 5vw, 64px);
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #fff;
  color: #0b1a37;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(141deg, transparent 7%, #c8dbf755 7% 11%, transparent 11% 86%, #b8d5fd77 86% 90%, transparent 90%),
    linear-gradient(163deg, transparent 24%, #c9def740 24% 37%, transparent 37% 89%, #90b9f64d 89%);
}
main {
  width: min(100%, 1120px);
  text-align: center;
}
h1 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 60px);
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .025em;
}
.demo-title {
  margin-bottom: clamp(17px, 3vh, 30px);
}
.demo-title p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.7vw, 24px);
  margin: 9px 0 0;
  color: #425979;
  font-size: clamp(14px, 2vw, 24px);
  letter-spacing: .08em;
}
.demo-title p::before,
.demo-title p::after {
  content: "";
  width: clamp(15px, 4vw, 58px);
  height: 1px;
  background: linear-gradient(90deg, transparent, #7997c8);
}
.demo-title p::after { transform: scaleX(-1); }

.demo-stage {
  position: relative;
  isolation: isolate;
  min-height: 348px;
  height: clamp(348px, 49svh, 484px);
  border: 2px solid #ffffffd9;
  border-radius: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(ellipse at 52% 36%, #fff 3%, #e3eeff 50%, transparent 75%),
    linear-gradient(120deg, #bdd2f5, #dbe8fb 45%, #c5d7f1);
  box-shadow: 0 25px 68px #2355a51e, inset 0 0 24px #ffffff80;
}
.stage-platform {
  position: absolute;
  z-index: -1;
  left: 54%;
  bottom: 4%;
  width: min(64%, 670px);
  height: 38%;
  transform: translateX(-50%);
  border: 2px solid #ffffffed;
  border-radius: 50%;
  background:
    repeating-linear-gradient(20deg, transparent 0 25px, #ffffff8f 26px 27px),
    repeating-linear-gradient(-20deg, transparent 0 25px, #ffffff8f 26px 27px),
    radial-gradient(ellipse, #f8fbfe, #c4dbfa 87%);
  box-shadow: 0 10px 0 #a8caff9e, 0 16px 28px #6196da54, inset 0 0 20px #ffffffb0;
}
.stage-platform::after {
  content: "";
  position: absolute;
  inset: -9% -3%;
  border: 1px solid #9cc3fc8c;
  border-radius: inherit;
}
.aircraft-animation {
  position: absolute;
  display: block;
  inset: -21% 10% -20% 16%;
  pointer-events: none;
}
.demo-animation {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 11px 9px #294b8940);
}
.stage-features {
  position: absolute;
  top: 50%;
  left: 3.5%;
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  list-style: none;
}
.stage-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid #fff9;
  border-radius: 100px;
  background: #f0f7ffb0;
  color: #172b4e;
  font-size: clamp(12px, 1.2vw, 17px);
  font-weight: 700;
  white-space: nowrap;
}
.stage-features span {
  color: #237afa;
  font-size: 23px;
  line-height: 1;
}
.stage-display {
  position: absolute;
  z-index: -1;
  top: 13%;
  right: 4%;
  width: 13%;
  height: 37%;
  border: 1px solid #fff9;
  border-radius: 14px;
  background:
    linear-gradient(#ffffff39 1px, transparent 1px) 0 0 / 13px 13px,
    linear-gradient(90deg, #ffffff39 1px, transparent 1px) 0 0 / 13px 13px,
    linear-gradient(135deg, #abc9f354, #eaf4ff51);
  box-shadow: inset 0 0 16px #ffffff4f;
}
.view-hd {
  position: absolute;
  top: 13px;
  right: 15px;
  min-height: 44px;
  padding: 6px 15px;
  border: 1px solid #91b3e9;
  border-radius: 999px;
  background: #f4f8ff;
  color: #183c79;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.view-hd:hover { background: #fff; }
.demo-nav {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(8px, 2.4vw, 18px);
  width: min(100%, 450px);
  margin: clamp(24px, 5vh, 45px) auto 0;
}
.demo-nav-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(5px, 1.4vw, 10px);
  min-height: 52px;
  padding: 8px clamp(6px, 2vw, 18px);
  border: 1px solid;
  border-radius: 16px;
  font-size: clamp(13px, 2.5vw, 16px);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease;
}
.demo-nav-back {
  border-color: #d7e3f2;
  background: linear-gradient(170deg, #fff 24%, #f2f7ff);
  box-shadow: inset 0 1px 0 #fff, 0 4px 14px #143a7014;
  color: #203858;
}
.demo-nav-enter {
  border-color: #2b62d1;
  background: radial-gradient(130% 110% at 6% 0%, #4b9fff22, transparent 70%),
    linear-gradient(155deg, #235fd9, #1948be 75%, #173da5);
  box-shadow: inset 0 1px 0 #ffffff46, 0 7px 17px #1b50c633;
  color: #fff;
}
.demo-nav-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(23px, 5vw, 28px);
  aspect-ratio: 1;
  border-radius: 8px;
}
.demo-nav-back .demo-nav-icon { background: #e7effb; color: #315a93; }
.demo-nav-back .demo-nav-icon::before {
  content: "";
  width: 12px;
  height: 1.5px;
  background: currentColor;
}
.demo-nav-back .demo-nav-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% - 6px);
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 0 1.5px 1.5px;
  transform: translateY(-50%) rotate(45deg);
}
.demo-nav-enter .demo-nav-icon {
  background: #ffffff24;
  box-shadow: inset 0 0 0 1px #ffffff33;
}
.demo-nav-enter .demo-nav-icon::before {
  content: "";
  width: 9px;
  height: 11px;
  margin-left: 2px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
@media (hover: hover) {
  .demo-nav-link:hover { transform: translateY(-2px); }
  .demo-nav-back:hover { box-shadow: inset 0 1px 0 #fff, 0 8px 17px #143a7020; }
  .demo-nav-enter:hover { box-shadow: inset 0 1px 0 #ffffff55, 0 9px 20px #1b50c64d; }
}
.demo-nav-link:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .demo-nav-link { transition: none; }
  .demo-nav-link:hover { transform: none; }
}
@media (max-width: 680px) {
  .demo-stage { min-height: 330px; height: auto; }
  .aircraft-animation { inset: -5% -1% 15% -1%; }
  .stage-platform { left: 50%; bottom: 18%; width: 82%; height: 29%; }
  .stage-features {
    top: auto;
    inset-inline: 6px;
    bottom: 12px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    transform: none;
  }
  .stage-features li { gap: 3px; padding: 5px 7px; }
  .stage-features span { font-size: 17px; }
  .stage-display { display: none; }
}
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #265ea8;
  outline-offset: 3px;
}
#demo-status { color: #9e2532; font-size: 14px; }

dialog {
  width: min(390px, calc(100% - 32px));
  padding: 28px 20px 24px;
  border: 1px solid #e5eefb;
  border-radius: 20px;
  background: #fff;
  color: #18243a;
  box-shadow: 0 16px 60px #1b39682e;
}
dialog::backdrop { background: #18243a70; }
dialog h2 { margin: 0 0 12px; font-size: 21px; }
dialog p { margin: 8px 0; font-size: 14px; line-height: 1.5; }
.hd-dialog {
  width: min(920px, calc(100% - 28px));
  max-height: calc(100svh - 28px);
  padding: 20px 16px 16px;
  background: radial-gradient(ellipse, #f8fbff, #e0ecff);
}
#hd-animation:not([hidden]) {
  display: block;
  width: min(100%, 880px);
  height: auto;
  max-height: calc(100svh - 112px);
  margin: 0 auto;
  object-fit: contain;
}
.dialog-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #435778;
  font-size: 22px;
  cursor: pointer;
}
.dialog-close:hover { background: #edf4fd; }
.wechat-qr { display: block; width: min(100%, 245px); height: auto; margin: 6px auto; }
#access-status { color: #435778; font-size: 14px; }

.activation-form {
  display: grid;
  gap: 10px;
  margin: 14px 0 16px;
}
.activation-form label {
  display: grid;
  gap: 5px;
  color: #435778;
  text-align: left;
  font-size: 14px;
}
.activation-form input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #cdd9ec;
  border-radius: 9px;
  background: #fff;
  color: #18243a;
  font: inherit;
}
.activation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(100%, 286px);
  margin: 2px auto 0;
}
.activation-action {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--glass-rim);
  border-radius: 999px;
  background: radial-gradient(ellipse at 50% -35%, #fff 16%, transparent 75%),
    linear-gradient(170deg, var(--glass-top), var(--glass-bottom));
  box-shadow: inset 0 1px 2px #fff, inset 0 -1px 2px #ffffffa0, 0 4px 12px var(--glass-shadow);
  color: var(--glass-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.activation-action-primary {
  --glass-top: #d4f3ff;
  --glass-bottom: #86d1fa;
  --glass-rim: #8acbf1;
  --glass-shadow: #56a7df44;
  --glass-ink: #123d65;
}
.activation-action-secondary {
  --glass-top: #fff;
  --glass-bottom: #eef4fb;
  --glass-rim: #d7e5f2;
  --glass-shadow: #4a668025;
  --glass-ink: #29445f;
}
.activation-action:hover:not(:disabled) {
  box-shadow: inset 0 1px 3px #fff, inset 0 -1px 2px #fff, 0 6px 16px var(--glass-shadow);
  filter: brightness(1.035);
}
.activation-action:disabled { opacity: .65; cursor: wait; }
#access-dialog .wechat-qr { width: min(100%, 215px); }
#redeem-status { margin: 0; color: #435778; }
