:root {
  --page: #071321;
  --page-deep: #040a13;
  --card: #202733;
  --card-border: #3a4553;
  --white: #f7f9fc;
  --muted: #c0cad9;
  --blue: #72deed;
  --blue-soft: #dff9ff;
  --yellow: #ffb31f;
  --yellow-soft: #ffe28e;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--page);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

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

svg {
  width: 1em;
  height: 1em;
  stroke-width: 2;
}

.download-page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--page);
}

.download-shell {
  position: relative;
  z-index: 3;
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  padding: 48px 0 100px;
  text-align: center;
}

.access-label {
  width: max-content;
  max-width: 100%;
  min-height: 38px;
  margin-inline: auto;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #344457;
  border-radius: 20px;
  background: #0b1828;
  color: #d8e1ee;
  font-size: 12px;
  font-weight: 800;
}

.access-label span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #58e4ff;
  box-shadow: 0 0 12px rgba(88, 228, 255, 0.78);
}

.app-icon {
  width: 142px;
  height: 142px;
  margin: 20px auto 10px;
  padding: 14px;
  display: grid;
  place-items: center;
  border: 1px solid #354458;
  border-radius: 36px;
  background: #142237;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26), inset 0 0 0 5px rgba(255, 255, 255, 0.025);
}

.app-icon img {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 25px;
  object-fit: cover;
}

h1 {
  margin: 2px 0 0;
  font-size: 70px;
  line-height: 1.18;
  font-weight: 900;
}

.intro {
  margin: 0 auto;
  max-width: 800px;
  color: #b8c5df;
  font-size: 18px;
}

.download-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  text-align: left;
}

.download-card {
  min-height: 350px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.platform {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #5b6573;
  border-radius: 8px;
  background: #414957;
  font-size: 23px;
}

.android-icon {
  color: #72ecf5;
}

.ios-icon {
  color: #eef2f7;
}

.platform span:last-child,
.platform strong,
.platform small {
  display: block;
}

.platform strong {
  font-size: 14px;
}

.platform small {
  color: #86bff5;
  font-size: 11px;
  font-weight: 800;
}

.recommend {
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid #5b6571;
  border-radius: 16px;
  color: #eef2f7;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 700;
}

.card-copy {
  margin-top: 22px;
}

.card-copy h2 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.3;
}

.card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.download-button {
  min-height: 56px;
  margin-top: auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 6px;
  color: #07131c;
  font-size: 16px;
  font-weight: 900;
  transition: transform 160ms ease, filter 160ms ease;
}

.download-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.android-button {
  background: var(--blue);
}

.ios-button {
  background: var(--yellow);
}

.stars {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.stars i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(139, 203, 234, 0.34);
}

.stars i:nth-child(1) { top: 17%; left: 8%; }
.stars i:nth-child(2) { top: 13%; left: 59%; }
.stars i:nth-child(3) { top: 26%; right: 24%; }
.stars i:nth-child(4) { top: 61%; right: 15%; }
.stars i:nth-child(5) { top: 50%; left: 18%; }

.wave {
  position: absolute;
  z-index: 2;
  left: -3%;
  bottom: -1px;
  width: 106%;
  pointer-events: none;
}

.wave-back {
  height: 155px;
  background: #22262e;
  clip-path: polygon(0 62%, 12% 48%, 30% 53%, 49% 66%, 72% 45%, 89% 28%, 100% 34%, 100% 100%, 0 100%);
}

.wave-middle {
  height: 120px;
  background: #21414a;
  opacity: 0.9;
  clip-path: polygon(0 52%, 15% 70%, 33% 25%, 56% 61%, 76% 78%, 100% 45%, 100% 100%, 0 100%);
}

.wave-front {
  height: 82px;
  background: #f7f8fa;
  clip-path: polygon(0 12%, 17% 30%, 37% 71%, 58% 96%, 78% 74%, 100% 25%, 100% 100%, 0 100%);
}

.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 24px;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border: 1px solid #425064;
  border-radius: 6px;
  color: var(--white);
  background: #121b28;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

:focus-visible {
  outline: 3px solid #58e4ff;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .download-shell {
    width: min(100% - 30px, 560px);
    padding-top: 30px;
    padding-bottom: 150px;
  }

  .access-label {
    font-size: 10px;
  }

  .app-icon {
    width: 116px;
    height: 116px;
    margin-top: 18px;
    padding: 11px;
    border-radius: 29px;
  }

  .app-icon img {
    width: 92px;
    height: 92px;
    border-radius: 21px;
  }

  h1 {
    margin-top: 8px;
    font-size: 44px;
  }

  .intro {
    margin-top: 8px;
    font-size: 14px;
  }

  .intro br {
    display: none;
  }

  .download-grid {
    margin-top: 24px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .download-card {
    min-height: 310px;
    padding: 22px;
  }

  .card-copy h2 {
    font-size: 25px;
  }

  .card-copy p {
    font-size: 14px;
  }

  .wave-back { height: 125px; }
  .wave-middle { height: 98px; }
  .wave-front { height: 66px; }
}

@media (max-width: 380px) {
  .download-shell {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: 38px;
  }

  .card-header {
    align-items: flex-start;
  }

  .recommend {
    max-width: 84px;
    text-align: center;
  }

  .download-card {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
