*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #edf4ff;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #262626;
  color: #565656;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.stage {
  position: relative;
  width: min(100vw, 750px);
  min-width: 320px;
  aspect-ratio: 750 / 1334;
  overflow: hidden;
  background: #edf4ff url("./assets/background.jpg") center top / 100% 100% no-repeat;
  container-type: inline-size;
  isolation: isolate;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.asset,
.image-button,
.desktop-action,
.download-popover,
.download-option {
  position: absolute;
}

.asset,
.image-button img,
.desktop-action img,
.download-popover img,
.download-option img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.logo {
  left: 24.8%;
  top: 0.52%;
  width: 50.67%;
  z-index: 2;
  pointer-events: none;
}

.image-button,
.desktop-action,
.download-option {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.image-button:focus,
.desktop-action:focus,
.download-option:focus {
  outline: none;
}

.image-button {
  left: 2%;
  width: 94%;
  z-index: 4;
}

.btn-official {
  top: 63.19%;
}

.btn-download {
  top: 70.84%;
}

.btn-service {
  top: 79.76%;
}

.footer-brand {
  left: 18.47%;
  top: 91%;
  width: 63.07%;
  z-index: 4;
  pointer-events: none;
}
.main-label {
  position: absolute;
  left: 48.2%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(19px, 4.8vw, 36px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  color: #575757;
  white-space: nowrap;
  pointer-events: none;
}

.download-popover {
  left: 11.87%;
  top: 49%;
  width: 79.07%;
  z-index: 7;
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transform-origin: center bottom;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.stage.is-download-open .download-popover {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.popover-bg {
  pointer-events: none;
}

.download-option {
  left: 6.32%;
  width: 87.35%;
  z-index: 2;
}

.option-app {
  top: 4%;
}

.option-huanyu {
  top: 32.5%;
}

.option-browser193 {
  top: 56%;
}

.download-option span {
  position: absolute;
  left: 46.3%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(15px, 3.6vw, 27px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  color: #575757;
  white-space: nowrap;
  pointer-events: none;
}

.desktop-action {
  left: 25.87%;
  top: 89.88%;
  width: 48.4%;
  z-index: 5;
}

.desktop-action span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(12px, 2.9vw, 22px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  color: #777;
  white-space: nowrap;
  pointer-events: none;
}

.add-text {
  left: 29.8%;
}

.close-text {
  right: 10.4%;
}

@media (max-width: 750px) {
  body {
    background: #edf4ff;
  }
}

@media (min-width: 751px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  body {
    background: #edf4ff url("./assets/background-wide.jpg") center center / cover no-repeat;
  }

  .page {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    overflow: hidden;
  }

  .stage {
    width: min(750px, 100vw, calc(100dvh * 750 / 1334));
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    aspect-ratio: auto;
    flex: 0 0 auto;
    background-size: 100% 100%;
  }

  .main-label {
    font-size: clamp(15px, 4.8cqw, 36px);
  }

  .download-option span {
    font-size: clamp(12px, 3.6cqw, 27px);
  }

  .desktop-action span {
    font-size: clamp(10px, 2.9cqw, 22px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-popover {
    transition: none;
  }
}
