@font-face {
  font-family: "Chill Round";
  src: url("./assets/round-heavy.otf") format("opentype");
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
}
:root {
  color: #301a4a;
  background: #faf7ff;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 100% 68% at 72% 21%, #f3eaff 0%, transparent 78%), #faf7ff;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #6127bb; outline-offset: 4px; }
button { font: inherit; cursor: pointer; }
.shell { width: min(1256px, calc(100% - 96px)); margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { width: 44px; height: 44px; border-radius: 13px; box-shadow: 0 4px 11px #8147b830; }
.brand span { font: 900 19px/1.2 "Chill Round", "PingFang SC", "Microsoft YaHei", sans-serif; }
.guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #e6d9f4;
  border-radius: 999px;
  background: #ffffff80;
  color: #5d4676;
  font-size: 13px;
  font-weight: 650;
  min-height: 40px;
  padding: 7px 13px;
  white-space: nowrap;
}
.guide-link svg { width: 17px; height: 17px; }
.guide-link:hover { background: #fff; color: #432362; }
main { flex: 1; display: grid; align-content: center; padding-block: 12px 20px; }
.download-panel {
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: ". art" "intro art" "actions art" ". art";
  column-gap: clamp(20px, 3.8vw, 55px);
  padding: 14px 14px 14px clamp(36px, 5.05vw, 74px);
  min-height: clamp(530px, 42vw, 620px);
  border: 1px solid #fff;
  border-radius: 39px;
  background: linear-gradient(145deg, #fffefa, #fff8f1 90%);
  box-shadow: 0 24px 68px -31px #9f67bf55, 0 4px 18px #a280cd0e, 0 0 0 1px #e9dff16b;
}
.intro { grid-area: intro; align-self: end; margin-bottom: 27px; }
h1 {
  margin: 0;
  font: 900 clamp(62px, 6.48vw, 96px)/1.02 "Chill Round", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -.035em;
}
h1 span { display: block; color: #7543d0; letter-spacing: -.045em; }
.intro-copy { color: #5b496a; margin: 25px 0 0; font-size: clamp(15px, 1.23vw, 18px); line-height: 1.76; }
.download-actions { grid-area: actions; min-width: 0; align-self: start; }
.platforms { display: grid; grid-template-columns: 1fr 1.08fr; gap: 11px; max-width: 480px; }
.platform {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 17px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.platform:hover { transform: translateY(-2px); }
.platform:active { transform: translateY(1px); }
.platform strong, .platform small { display: block; }
.platform strong { font-size: clamp(13px, 1.13vw, 16px); font-weight: 750; white-space: nowrap; }
.platform small { font-size: 12px; margin-top: 4px; }
.platform svg { display: block; }
.platform .platform-icon { width: 24px; height: 24px; }
.platform .platform-arrow { width: 17px; height: 17px; }
.platform-ios { background: linear-gradient(140deg, #512589, #391c60 82%); color: #fff; box-shadow: 0 6px 13px #47227932; }
.platform-ios small { color: #eee0fc; }
.platform-android {
  background: linear-gradient(145deg, #ffe995, #ffdd61);
  color: #40274d;
  border-color: #ffe183;
  box-shadow: 0 6px 13px #d6a4242b, inset 0 1px 0 #fff7d4;
}
.platform-android small { color: #5c4053; }
.illustration {
  position: relative;
  grid-area: art;
  overflow: hidden;
  border-radius: 28px;
  min-height: 360px;
  background: #d6b6fa;
}
.hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 49%;
}
.site-footer { color: #716580; text-align: center; font-size: 12px; padding: 19px 0 25px; }
dialog {
  border: 1px solid #eee2fa;
  background: #fffcf9;
  color: #301a4a;
  padding: 0;
  width: min(470px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  border-radius: 25px;
  box-shadow: 0 24px 55px #35204444;
}
dialog::backdrop { background: #28173a82; }
.help-content { position: relative; padding: 28px; margin: 0; }
.help-content h2 { margin: 0 34px 22px 0; font-size: 23px; }
.help-content h3 { margin: 19px 0 4px; font-size: 15px; }
.help-content p { margin: 0; color: #58496a; font-size: 14px; line-height: 1.7; }
.help-content .wechat-hint { padding: 11px 13px; border-radius: 10px; background: #f2e7ff; }
.close { position: absolute; top: 19px; right: 19px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f3eafa; color: #562a7e; font-size: 24px; }
.no-js-help { margin: 15px; font-size: 14px; }
@media (max-width: 1090px) {
  .shell { width: calc(100% - 60px); }
  .download-panel { padding-left: 36px; column-gap: 24px; min-height: 495px; }
  .platform { gap: 7px; padding-inline: 10px; }
  .platform .platform-icon { width: 20px; height: 20px; }
}
@media (max-width: 820px) {
  .shell { width: calc(100% - 36px); max-width: 560px; }
  .site-header { padding-block: 18px; }
  .brand img { width: 36px; height: 36px; border-radius: 10px; }
  .brand span { font-size: 16px; }
  main { padding: 4px 0 12px; }
  .download-panel {
    padding: 11px 11px 17px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: "intro" "art" "actions";
    row-gap: 16px;
    min-height: 0;
    border-radius: 28px;
  }
  .intro { padding: 20px 7px 0; margin: 0; align-self: auto; text-align: center; }
  h1 { font-size: clamp(32px, 7.7vw, 53px); line-height: 1.12; }
  h1 span { display: inline; margin-left: .08em; }
  .intro-copy { font-size: clamp(13px, 3.35vw, 16px); margin: 10px 0 0; line-height: 1.6; }
  .illustration { min-height: 0; aspect-ratio: 1.30; border-radius: 20px; }
  .guide-link { min-height: 36px; padding-inline: 10px; font-size: 12px; }
  .guide-link svg { width: 15px; height: 15px; }
  .download-actions { padding: 0 4px; }
  .platforms { max-width: none; }
  .platform { min-height: 63px; border-radius: 13px; }
  .platform strong { font-size: 14px; }
  .platform small { font-size: 11px; }
  .site-footer { padding-block: 15px 20px; }
}
@media (max-width: 390px) {
  .shell { width: calc(100% - 24px); }
  .platforms { gap: 8px; }
  .platform { gap: 6px; padding-inline: 8px; }
  .platform-arrow { display: none !important; }
  .platform { grid-template-columns: auto minmax(0, 1fr); }
  .intro-copy { max-width: 24em; margin-inline: auto; }
}
@media (max-width: 335px) {
  h1 { font-size: 28px; }
  .platform strong { font-size: 12px; }
  .platform .platform-icon { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
