:root {
  --blue-950: #10235a;
  --blue-800: #1d49b8;
  --blue-700: #2568ee;
  --blue-500: #1492ff;
  --cyan-400: #21d4e8;
  --mint-500: #18c6a9;
  --ink: #111827;
  --muted: #667085;
  --line: #dde7f4;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --shadow: 0 22px 56px rgba(28, 76, 151, .18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #0f2b79;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    radial-gradient(circle at 78% 72%, rgba(35, 173, 255, .7), transparent 26rem),
    linear-gradient(135deg, #13256a 0%, #1f61d3 58%, #33b4f2 100%);
  background-size: 52px 52px, 52px 52px, auto, auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: 100%;
  max-width: 750px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 21%, rgba(255, 255, 255, .11), transparent 15rem),
    radial-gradient(circle at 88% 42%, rgba(46, 169, 255, .38), transparent 22rem),
    linear-gradient(180deg, #1b3d93 0%, #286de0 42%, #1552bf 100%);
  box-shadow: 0 30px 90px rgba(6, 24, 77, .18);
}

.hero {
  position: relative;
  min-height: 430px;
  padding: max(28px, env(safe-area-inset-top)) 26px 104px;
  color: #fff;
  overflow: hidden;
  background: transparent;
}

.hero__grid,
.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero::before {
  z-index: 0;
}

.hero::after,
.hero__grid {
  z-index: 0;
}

.hero + .download-panel::before {
  position: absolute;
  inset: -46px 24px auto;
  height: 72px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0));
  content: "";
  pointer-events: none;
}

.hero__grid {
  inset: 0;
  opacity: .5;
  background:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .75), transparent 82%);
}

.hero::before {
  inset: 82px auto auto 50%;
  width: 280px;
  height: 280px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}

.hero::after {
  right: -112px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
}

.hero__topline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  width: min(360px, 100%);
  margin: 4px auto 34px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .86);
}

.hero__topline span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42));
}

.hero__topline span:last-child {
  background: linear-gradient(90deg, rgba(255, 255, 255, .42), transparent);
}

.app-card {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 360px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto 30px;
  padding: 0;
  text-align: center;
}

.app-logo {
  width: clamp(82px, 22vw, 112px);
  height: clamp(82px, 22vw, 112px);
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(7, 35, 111, .3);
}

.app-card h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 7.2vw, 36px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 10px 28px rgba(4, 24, 88, .28);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

.hero__eyebrow {
  margin: 0 0 8px;
  font-size: clamp(23px, 5.8vw, 31px);
  line-height: 1.15;
  font-weight: 800;
}

.hero__summary {
  margin: 0 auto;
  max-width: 380px;
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.download-panel {
  position: relative;
  z-index: 2;
  margin: -58px 18px 22px;
  padding: 26px 18px 22px;
  border: 1px solid rgba(224, 234, 247, .94);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 18px;
  text-align: center;
}

.section-heading p {
  margin: 0 0 6px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 700;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.35;
}

.section-heading span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.download-actions {
  display: grid;
  gap: 13px;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 62px;
  gap: 14px;
  padding: 0 18px;
  border-radius: 16px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 26px rgba(32, 104, 236, .2);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  cursor: pointer;
}

.download-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(32, 104, 236, .26);
}

.download-button:active {
  transform: translateY(1px) scale(.99);
}

.download-button[aria-disabled="true"] {
  cursor: not-allowed;
}

.download-button[aria-disabled="true"]:hover,
.download-button[aria-disabled="true"]:active {
  transform: none;
}

.download-button--android {
  background:
    linear-gradient(135deg, #16b99f, #258cf6);
}

.download-button--ios {
  background:
    linear-gradient(135deg, #15213b, #3f4e68);
}

.download-button__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .16);
}

.download-button__icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.download-button strong,
.download-button small {
  display: block;
}

.download-button span:last-child {
  min-width: 0;
}

.download-button small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.download-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
  color: #536179;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.download-note span {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--mint-500);
  box-shadow: 0 0 0 5px rgba(24, 198, 169, .12);
}

.download-note p {
  margin: 0;
}

.wechat-click-tip {
  display: block;
  max-height: 0;
  margin: 0;
  color: var(--blue-700);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  overflow: hidden;
  transition: opacity .18s ease, max-height .18s ease, margin-top .18s ease;
}

.wechat-click-tip.is-visible {
  max-height: 24px;
  margin-top: 8px;
  opacity: 1;
}

.wechat-guide {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  pointer-events: none;
}

.is-wechat .wechat-guide {
  display: block;
}

.wechat-guide::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 13, 35, .44), rgba(4, 13, 35, .08) 42%, transparent);
  content: "";
}

.wechat-guide__arrow {
  display: none;
}

.wechat-guide__card {
  position: absolute;
  top: max(28px, calc(env(safe-area-inset-top) + 18px));
  right: 16px;
  width: min(290px, calc(100vw - 44px));
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 18px;
  color: #fff;
  background: rgba(17, 31, 72, .86);
  box-shadow: 0 18px 42px rgba(3, 13, 42, .28);
  backdrop-filter: blur(12px);
  animation: guideFloat 1.45s ease-in-out infinite;
}

.wechat-guide__card strong,
.wechat-guide__card p {
  display: block;
}

.wechat-guide__card strong {
  font-size: 19px;
  line-height: 1.35;
}

.wechat-guide__card p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.55;
}

@keyframes guideFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

@media (min-width: 620px) {
  .download-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-panel {
    margin-right: 28px;
    margin-left: 28px;
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 390px) {
  .hero {
    padding-right: 20px;
    padding-left: 20px;
    min-height: 408px;
  }

  .app-card {
    gap: 12px;
  }

  .download-panel {
    margin-right: 14px;
    margin-left: 14px;
  }

  .download-button {
    padding: 0 14px;
  }

  .section-heading h2 {
    font-size: 21px;
  }
}
