:root {
  color-scheme: light;
  --page-bg: #f3f6fb;
  --text: #202a3a;
  --muted: #687386;
  --blue: #1f80ed;
  --blue-dark: #1269cf;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.92), transparent 38rem),
    var(--page-bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.color-ribbon {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: #fff;
}

.block {
  position: absolute;
  top: -18px;
  height: 94px;
  border-radius: 0 0 16px 16px;
  filter: saturate(0.9);
}

.block::after {
  position: absolute;
  right: -46%;
  bottom: -48px;
  width: 74%;
  height: 60px;
  border-radius: 0 0 14px 14px;
  background: inherit;
  content: "";
}

.coral { background: #f29a80; }
.blue { background: #6685f2; }
.violet { background: #7189ee; }
.orange { background: #ffb072; }
.peach { background: #f7b178; }
.yellow { background: #ffef7e; }
.sky { background: #62b3f5; }
.cyan { background: #5dc7eb; }
.lime { background: #c3fb74; }
.mint { background: #78dddb; }

.b1 { left: 0; width: 7%; }
.b2 { left: 4%; width: 8%; height: 128px; }
.b3 { left: 10%; width: 8%; height: 80px; }
.b4 { left: 16%; width: 8%; height: 128px; }
.b5 { left: 22%; width: 14%; height: 130px; }
.b6 { left: 32%; width: 10%; height: 92px; }
.b7 { left: 39%; width: 11%; height: 128px; }
.b8 { left: 48%; width: 10%; height: 126px; }
.b9 { left: 56%; width: 10%; height: 178px; }
.b10 { left: 64%; width: 15%; height: 130px; }
.b11 { left: 76%; width: 8%; height: 84px; }
.b12 { left: 82%; width: 12%; height: 130px; }
.b13 { left: 91%; width: 9%; height: 94px; }
.b14 { left: 97%; width: 8%; height: 160px; }

main {
  min-height: calc(100vh - 204px);
}

.app-card {
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 20px 48px;
  text-align: center;
}

.logo-shell {
  display: grid;
  width: 158px;
  height: 158px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 7px 20px rgba(35, 48, 77, 0.18);
}

.app-logo {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 24px;
  object-fit: cover;
}

h1 {
  margin: 0;
  color: #151b27;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 17px 0 34px;
  color: #596579;
  font-size: 15px;
  line-height: 1.6;
}

.meta span + span {
  position: relative;
}

.meta span + span::before {
  position: absolute;
  top: 50%;
  left: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a8b0bd;
  content: "";
  transform: translateY(-50%);
}

.download-button {
  display: inline-flex;
  min-width: 182px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 25px;
  border-radius: 3px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(31, 128, 237, 0.22);
  font-size: 19px;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.download-button:hover {
  background: var(--blue-dark);
  box-shadow: 0 10px 22px rgba(31, 128, 237, 0.28);
  transform: translateY(-1px);
}

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

.download-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.platform-note {
  margin: 17px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.qr-wrap {
  margin: 0 auto;
}

.qrcode {
  display: grid;
  width: 154px;
  height: 154px;
  margin: 0 auto;
  padding: 8px;
  place-items: center;
  border: 1px solid #dfe4ec;
  background: #fff;
}

.qrcode svg,
.qrcode canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-wrap p {
  margin: 10px 0 0;
  color: #4f5b6d;
  font-size: 14px;
}

.description {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid #e1e6ee;
  text-align: left;
}

.description h2 {
  margin: 0 0 18px;
  color: #202a3a;
  font-size: 21px;
  font-weight: 500;
}

.description p {
  margin: 0 0 10px;
  color: #586477;
  font-size: 15px;
  line-height: 1.9;
}

.description .tip {
  color: #8a5a2a;
}

footer {
  padding: 20px 20px 28px;
  color: #98a1af;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 640px) {
  .color-ribbon {
    height: 92px;
  }

  .block {
    top: -28px;
    height: 70px;
    border-radius: 0 0 10px 10px;
  }

  .block::after {
    bottom: -32px;
    height: 42px;
    border-radius: 0 0 9px 9px;
  }

  .app-card {
    width: min(100%, 520px);
    padding: 42px 20px 34px;
  }

  .logo-shell {
    width: 136px;
    height: 136px;
  }

  .app-logo {
    width: 92px;
    height: 92px;
    border-radius: 22px;
  }

  h1 {
    font-size: 29px;
  }

  .meta {
    max-width: 300px;
    gap: 4px 13px;
    margin-right: auto;
    margin-bottom: 28px;
    margin-left: auto;
    font-size: 13px;
  }

  .meta span + span::before {
    display: none;
  }

  .download-button {
    width: min(240px, 86%);
  }
}

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