:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --card: #ffffff;
  --text: #1d2529;
  --muted: #68757b;
  --line: #dfe6e8;
  --primary: #184995;
  --primary-hover: #123a78;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
}

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

.page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.download-box {
  width: min(100%, 560px);
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  text-align: center;
  box-shadow: 0 18px 48px rgba(31, 46, 51, 0.08);
}

h1 {
  margin: 16px 0 24px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0;
}

.main-download {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.main-download:hover {
  background: var(--primary-hover);
}

.main-downloads {
  display: grid;
  gap: 10px;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.platforms a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344247;
  font-size: 14px;
  font-weight: 600;
}

.platforms a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.top-meta {
  margin: 0;
}

.install-notes {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  text-align: left;
}

.install-notes section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.install-notes h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
}

.install-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.note-image {
  display: block;
  max-width: 100%;
  margin-top: 12px;
  border-radius: 8px;
}

.tips {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 520px) {
  .page {
    align-items: start;
    padding: 18px;
  }

  .download-box {
    padding: 28px 18px;
  }

  h1 {
    font-size: 28px;
  }

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

}
