:root {
  color-scheme: light dark;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #657180;
  --border: #e2e6ea;
  --accent: #0f766e;
  --accent-strong: #0b5c58;
  --danger: #b42318;
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.page {
  width: min(960px, calc(100% - 32px));
  padding: 48px 0 64px;
}

.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.eyebrow,
.lead,
.asset-name,
.release-meta {
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lead {
  margin: 0;
  max-width: 620px;
  line-height: 1.6;
}

.release-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 0.9rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 210px;
}

.download-card h2 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.3;
}

.download-card p {
  margin: 0 0 18px;
  line-height: 1.55;
}

.asset-name {
  margin: auto 0 0;
  font-size: 0.82rem;
  word-break: break-all;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-strong);
}

.support-row {
  display: flex;
  gap: 18px;
  margin-top: 22px;
  font-size: 0.9rem;
}

.support-row a {
  color: var(--accent);
  text-decoration: none;
}

.support-row a:hover {
  text-decoration: underline;
}

.fallback {
  margin-top: 18px;
  padding: 14px;
  border-left: 3px solid var(--danger);
  background: #fff8f7;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .page { padding: 32px 0 40px; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card { min-height: 180px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111417;
    --surface: #181d21;
    --text: #f2f5f7;
    --muted: #a9b4bd;
    --border: #303840;
    --accent: #24a79d;
    --accent-strong: #1f9288;
  }

  .fallback { background: #292023; }
}
