:root {
  --ink: #1a1d24;
  --blue: #2f6bff;
  --body: #3d6494;
  --muted: #8aa0b8;
  --card: #f3f5f8;
  --line: #e8ecf1;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family:
    'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}

.header {
  position: relative;
  z-index: 1;
  background: #fff;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo {
  width: 48px;
  height: 48px;
  flex: none;
  object-fit: contain;
}
.downloads {
  width: 100%;
  padding: 18px 16px 20px;
  border-top: 1px solid #e1ebf7;
  background: #ffffff;
  box-shadow: 0px 6px 12px 0px #eef4fb;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
button.dl {
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.dl {
  background: var(--card);
  border-radius: 18px;
  min-height: 168px;
  padding: 22px 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(28, 40, 70, 0.08);
}
.dl:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.dl .store {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.dl strong {
  display: block;
  margin-top: 14px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dl small {
  display: block;
  margin-top: 6px;
  color: #9aa3b2;
  font-size: 14px;
  line-height: 1.35;
}

.feature {
  position: relative;
  background: none;
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--tint, #eef5ff);
  mix-blend-mode: multiply;
  pointer-events: none;
}
main {
  --grid:
    linear-gradient(#f6f8ff 1px, transparent 1px),
    linear-gradient(90deg, #f6f8ff 1px, transparent 1px);
  position: relative;
  z-index: 0;
  display: flow-root;
  background-color: #fff;
  background-image: var(--grid);
  background-size: 88px 88px;
}
.feature.card {
  margin: 16px;
  border-radius: 12px;
}
.feature.card.gradient {
  border-radius: 24px;
}
.feature.card.gradient::before {
  background: var(--wash);
  opacity: 0.1;
  mix-blend-mode: normal;
}
.feature.card .feature-inner {
  padding: 16px;
}
.feature-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 20px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.visual {
  width: min(100%, 480px);
  margin: 0 auto;
}
.visual img {
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
}

.copy {
  width: 100%;
  max-width: 640px;
}
.copy h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--title, var(--bar-from, #3969ff));
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  transform: translateY(-12px);
}
.copy h2::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -0.22em;
  top: -28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e5f0f8;
  pointer-events: none;
  transform: translateY(12px);
}
.copy .en-title {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: #243044;
}
.bar {
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bar-from, #3969ff), var(--bar-to, #769cff));
  margin: 14px 0 18px;
}
.copy .zh,
.copy .en {
  margin: 0;
  color: #5f7495;
  font-size: 16px;
  line-height: 1.75;
}
.copy .en {
  margin-top: 12px;
}
.copy .zh strong,
.copy .en strong {
  font-size: calc(1em + 2px);
}
.copy .en strong {
  color: #5f7495;
}
.note {
  margin-top: 18px;
  color: rgba(0, 0, 0, 0.45);
  font-size: 13px;
  line-height: 1.7;
}
.note::before {
  content: '';
  display: block;
  width: 7px;
  height: 12px;
  margin-bottom: 6px;
  background: url('../images/note.png') left center / contain no-repeat;
}
.note p {
  margin: 0;
}
.note p + p {
  margin-top: 4px;
}

.footer {
  padding: 0 16px 48px;
  text-align: center;
  background: #fff;
  color: #757575;
  font-size: 12px;
  line-height: 1.4;
}
.footer-line {
  height: 3px;
  margin: 0 -16px 28px;
  background: linear-gradient(
    225deg,
    #ffffff 0%,
    #d8bbff 20.76%,
    #ff8585 38.38%,
    #ff8d36 54%,
    #35e2a5 69.02%,
    #3e99ff 82.25%,
    #ffffff 100%
  );
}
.footer p {
  margin: 0;
}
.footer p + p {
  margin-top: 4px;
}
.footer a {
  color: #1e88e5;
  font-size: 10px;
  text-decoration: underline;
  text-decoration-color: #1e88e5;
  text-underline-offset: 2px;
}

@media (max-width: 380px) {
  .brand h1 {
    font-size: 22px;
  }
  .logo {
    width: 40px;
    height: 40px;
  }
  .dl {
    min-height: 150px;
    padding: 16px 8px;
  }
  .dl strong {
    font-size: 18px;
  }
  .dl small {
    font-size: 12px;
  }
}

@media (min-width: 980px) {
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    border-bottom: 1px solid #e1ebf7;
  }
  .header-inner {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .downloads {
    width: auto;
    padding: 0;
    border-top: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    gap: 12px;
  }
  .dl {
    width: 210px;
    min-height: 0;
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 2px;
    align-items: center;
    text-align: left;
    padding: 10px 12px;
  }
  .dl .store {
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
  }
  .dl strong {
    font-size: 18px;
    margin-top: 0;
  }
  .dl small {
    font-size: 13px;
    margin-top: 0;
  }

  .feature-inner {
    flex-direction: row;
    align-items: center;
    gap: 64px;
    padding: 72px 28px;
  }
  .feature.card .feature-inner {
    padding: 16px;
  }
  .feature.flip .feature-inner {
    flex-direction: row-reverse;
  }
  .visual,
  .copy {
    flex: 1;
    min-width: 0;
  }
  .visual {
    display: flex;
    justify-content: center;
  }
  .copy {
    max-width: none;
  }
  .copy .en-title {
    font-size: 22px;
  }
  .copy .zh,
  .copy .en {
    font-size: 17px;
  }
  .footer {
    font-size: 14px;
  }
  .footer a {
    font-size: 12px;
  }
}

.dl-mask {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 28, 45, 0.45);
}
.dl-mask[hidden] {
  display: none;
}
.dl-dialog {
  width: min(100%, 360px);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(20, 28, 45, 0.18);
}
.dl-dialog h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}
.dl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--card);
  font-size: 16px;
  font-weight: 700;
}
.dl-row img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
}
