:root {
  font-family: MiSans, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: #fff;
  /* background: #075fe8; */
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

button,
p,
h1 {
  margin: 0;
}

button {
  font: inherit;
}

@media (min-width: 769px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
  }

  .page-shell {
    flex: none;
    margin: 0;
  }
}

.page-shell {
  position: relative;
  width: 750px;
  height: 900px;
  margin: 0 auto;
}

.app-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 750px;
  height: 900px;
  overflow: hidden;
  transform-origin: left top;
  background: #075fe8 url("../imgae/background.png") left top / 100% 100% no-repeat;
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: -2px;
}

.brand-logo,
.official-badge,
.hero-title,
.title-underline,
.feature-list,
.description,
.download-actions,
.divider,
.tagline,
.phones {
  position: absolute;
}

.brand-logo {
  top: 32px;
  left: 36px;
  width: 250px;
  height: auto;
  object-fit: contain;
}

.official-badge {
  top: 108px;
  left: 36px;
  width: 140px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.official-badge span {
  position: absolute;
  top: 4px;
  left: 12px;
  width: auto;
  height: 20px;
  font-size: 13px;
  font-weight: 450;
  line-height: 20px;
  white-space: nowrap;
}

.hero-title {
  top: 156px;
  left: 36px;
  width: 360px;
  height: auto;
  font-size: 68px;
  font-weight: 630;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-title span {
  display: block;
  height: auto;
  white-space: nowrap;
}

.title-underline {
  top: 328px;
  left: 36px;
  width: 110px;
  height: 6px;
  background: #5adffd;
}

.feature-list {
  top: 358px;
  left: 36px;
  width: 410px;
  height: 26px;
  font-size: 17px;
  font-weight: 520;
  line-height: 26px;
  white-space: nowrap;
}

.description {
  top: 400px;
  left: 36px;
  width: 674px;
  height: auto;
  font-size: 13px;
  font-weight: 380;
  line-height: 22px;
  letter-spacing: 0;
}

.description br {
  display: none;
}

.download-actions {
  top: 622px;
  left: 36px;
  width: 410px;
  height: 54px;
}

.download-button {
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 199px;
  height: 54px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  color: #000;
  background: #fff;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.download-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 65, 160, 0.16);
}

.download-button:focus-visible {
  outline: 4px solid #5adffd;
  outline-offset: 5px;
}

.download-button img {
  position: static;
  flex: none;
  width: 30px;
  height: 30px;
}

.download-button span {
  position: static;
  width: auto;
  height: auto;
  font-size: 12px;
  font-weight: 380;
  line-height: 1.4;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ios-button {
  left: 0;
}

.android-button {
  left: 211px;
}

.divider {
  top: 704px;
  left: 36px;
  width: 410px;
  height: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
}

.tagline {
  top: 720px;
  left: 36px;
  width: 410px;
  height: 20px;
  font-size: 13px;
  font-weight: 380;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
}

.phones {
  top: auto;
  right: -25px;
  bottom: 0;
  left: auto;
  width: 330px;
  height: auto;
  object-fit: contain;
}

.download-dialog {
  width: 340px;
  max-width: calc(100% - 40px);
  padding: 30px 24px 24px;
  border: 0;
  border-radius: 24px;
  color: #102a43;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 40, 110, 0.28);
  text-align: center;
}

.download-dialog::backdrop {
  background: rgba(0, 32, 90, 0.58);
  backdrop-filter: blur(4px);
}

.download-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #2563a9;
  background: #edf5ff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.download-dialog__close:focus-visible {
  outline: 3px solid #168bfd;
  outline-offset: 2px;
}

.download-dialog__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.download-dialog h2 {
  margin: 12px 0 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
}

.download-dialog__tip {
  margin-top: 8px;
  color: #627d98;
  font-size: 14px;
  line-height: 20px;
}

.qr-code {
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  margin: 20px auto 0;
  padding: 10px;
  border: 1px solid #d9e6f2;
  border-radius: 12px;
  background: #fff;
}

.qr-code[hidden] {
  display: none !important;
}

.qr-code img,
.qr-code canvas {
  display: block;
  width: 200px !important;
  height: 200px !important;
}

.download-dialog__status {
  min-height: 20px;
  margin-top: 12px;
  color: #526f8a;
  font-size: 13px;
  line-height: 20px;
}

.brand-logo,
.official-badge,
.hero-title,
.title-underline,
.feature-list,
.description,
.download-actions,
.divider,
.tagline,
.phones {
  animation: reveal 600ms ease both;
}

.official-badge { animation-delay: 60ms; }
.hero-title { animation-delay: 110ms; }
.title-underline { animation-delay: 160ms; }
.feature-list { animation-delay: 200ms; }
.description { animation-delay: 240ms; }
.download-actions { animation-delay: 280ms; }
.divider,
.tagline { animation-delay: 320ms; }
.phones { animation-delay: 360ms; }

@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 768px) {
  .page-shell {
    width: 100% !important;
    height: auto !important;
    min-height: 100svh;
  }

  .app-page {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: auto;
    min-height: 100svh;
    padding: 28px 24px 0;
    transform: none !important;
    background: #075fe8 url("../imgae/background.png") center bottom / cover no-repeat;
    outline: none;
  }

  .brand-logo,
  .official-badge,
  .hero-title,
  .title-underline,
  .feature-list,
  .description,
  .download-actions,
  .divider,
  .tagline,
  .phones {
    position: relative;
    inset: auto;
  }

  .brand-logo {
    flex: none;
    width: 220px;
    max-width: 70vw;
    height: auto;
  }

  .official-badge {
    width: auto;
    height: auto;
    margin-top: 24px;
    padding: 5px 12px;
    border-radius: 999px;
  }

  .official-badge span {
    position: static;
    width: auto;
    height: auto;
    font-size: 13px;
    line-height: 20px;
  }

  .hero-title {
    width: auto;
    height: auto;
    margin-top: 26px;
    font-size: clamp(44px, 12.4vw, 58px);
    line-height: 1.22;
  }

  .hero-title span {
    height: auto;
    line-height: inherit;
  }

  .title-underline {
    flex: none;
    width: 76px;
    height: 5px;
    margin-top: 14px;
  }

  .feature-list {
    width: 100%;
    height: auto;
    margin-top: 30px;
    font-size: clamp(13px, 3.8vw, 17px);
    line-height: 1.6;
    white-space: normal;
  }

  .description {
    width: 100%;
    max-width: 640px;
    height: auto;
    margin-top: 14px;
    font-size: clamp(13px, 3.6vw, 16px);
    font-weight: 400;
    line-height: 1.8;
    overflow-wrap: break-word;
    text-align: justify;
    text-justify: inter-ideograph;
  }

  .description br {
    display: none;
  }

  .download-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    height: auto;
    margin-top: 24px;
  }

  .download-button {
    position: relative;
    inset: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
    height: 56px;
    padding: 0 8px;
    border-radius: 999px;
  }

  .download-button img {
    position: static;
    flex: none;
    width: 30px;
    height: 30px;
  }

  .download-button span {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    font-size: clamp(11px, 3.4vw, 15px);
    line-height: 1.4;
    letter-spacing: -0.02em;
  }

  .divider {
    flex: none;
    width: 100%;
    margin-top: 28px;
    border-top-width: 1px;
  }

  .tagline {
    align-self: center;
    width: auto;
    height: auto;
    margin: 14px auto 28px;
    font-size: 14px;
    line-height: 22px;
  }

  .phones {
    display: block;
    flex: none;
    width: min(100%, 420px);
    height: auto;
    margin: auto auto 0;
  }
}

@media (max-width: 360px) {
  .app-page {
    padding: 22px 18px 0;
  }

  .brand-logo {
    width: 200px;
  }

  .download-actions {
    gap: 10px;
  }

  .download-button {
    gap: 4px;
    height: 52px;
    padding: 0 4px;
  }

  .download-button img {
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo,
  .official-badge,
  .hero-title,
  .title-underline,
  .feature-list,
  .description,
  .download-actions,
  .divider,
  .tagline,
  .phones {
    animation: none;
  }

  .download-button {
    transition: none;
  }
}
