:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef5fb;
  --ink: #122033;
  --muted: #66758a;
  --line: #dce5ef;
  --primary: #1677ff;
  --primary-dark: #0d58c8;
  --accent: #119464;
  --shadow: 0 28px 80px rgba(18, 32, 51, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter,
    "Microsoft YaHei UI",
    "Microsoft YaHei",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  background:
    linear-gradient(135deg, rgba(22, 119, 255, 0.12), transparent 34%),
    linear-gradient(215deg, rgba(17, 148, 100, 0.1), transparent 34%),
    var(--bg);
}

a {
  color: inherit;
}

.download-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), transparent 45%),
    linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(22, 119, 255, 0.28);
}

.topbar-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid rgba(102, 117, 138, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.hero {
  min-height: calc(100dvh - 116px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 44px;
  padding: 34px 0 44px;
}

.hero-copy {
  max-width: 590px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11em;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 900;
}

.lead {
  max-width: 36em;
  margin-bottom: 28px;
  color: #3f4f64;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-bottom: 24px;
}

.primary-button,
.secondary-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  font-weight: 850;
  text-decoration: none;
  border-radius: 8px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
  touch-action: manipulation;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 18px 34px rgba(22, 119, 255, 0.28);
}

.secondary-button {
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 16px 30px rgba(18, 32, 51, 0.18);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.topbar-link:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.32);
  outline-offset: 3px;
}

.file-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: #29425e;
  font-size: 13px;
  font-weight: 750;
  border: 1px solid rgba(22, 119, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.preview {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(220, 229, 239, 0.85);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 920;
  object-fit: cover;
  border-radius: 12px;
}

.steps {
  padding: 36px 0 20px;
}

.platforms {
  padding: 30px 0 8px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-title h2,
.notice h2 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.2;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.platform-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(220, 229, 239, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.platform-card.ready {
  border-color: rgba(22, 119, 255, 0.28);
  box-shadow: 0 18px 44px rgba(22, 119, 255, 0.12);
}

.platform-status,
.platform-note {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: #29425e;
  font-size: 12px;
  font-weight: 850;
  border: 1px solid rgba(22, 119, 255, 0.14);
  border-radius: 8px;
  background: rgba(238, 245, 251, 0.86);
}

.platform-card.ready .platform-status {
  color: #ffffff;
  background: var(--accent);
  border-color: transparent;
}

.platform-card h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.platform-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.platform-card a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0 14px;
  color: #ffffff;
  font-weight: 850;
  text-decoration: none;
  border-radius: 8px;
  background: var(--primary);
}

.platform-note {
  margin-top: auto;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-grid article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(220, 229, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.step-index {
  display: block;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.step-grid h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.step-grid p,
.notice p {
  margin-bottom: 0;
  color: var(--muted);
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid rgba(220, 229, 239, 0.9);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 245, 251, 0.82));
}

.notice p {
  max-width: 740px;
}

@media (max-width: 920px) {
  .download-page {
    width: min(100% - 28px, 680px);
    padding-top: 14px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 34px;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    max-width: 10em;
    font-size: clamp(40px, 12vw, 58px);
  }

  .preview {
    padding: 10px;
    border-radius: 14px;
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .step-grid article {
    min-height: auto;
  }

  .notice {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-link {
    width: 100%;
  }

  .lead {
    font-size: 16px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    min-height: 54px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .file-meta {
    text-align: center;
  }

  .trust-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .platform-card {
    min-height: auto;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
