:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1c2230;
  --muted: #5d6676;
  --line: #dfe3ea;
  --accent: #2f5fd0;
  --accent-text: #ffffff;
  --tile: #eef1f6;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151c;
    --surface: #1b1f29;
    --text: #e8ebf2;
    --muted: #9aa3b4;
    --line: #2b3140;
    --accent: #6c93f0;
    --accent-text: #0e1320;
    --tile: #e6e9f0;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.shell { max-width: 980px; margin: 0 auto; padding: 0 20px 48px; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 650; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--tile); }
.brand-mark img { width: 26px; height: 26px; }
.api-link { color: var(--muted); font-size: 14px; text-decoration: none; }
.api-link:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: center; padding: 28px 0 36px; }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 12px; font-weight: 650; letter-spacing: 0.14em; }
h1 { margin: 0 0 14px; font-size: clamp(28px, 5vw, 42px); line-height: 1.2; }
h2 { margin: 0; font-size: 22px; }
h3 { margin: 0 0 6px; font-size: 16px; }
.intro { margin: 0 0 22px; color: var(--muted); }
.primary-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.download-button {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px;
  border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-text);
  font: inherit; text-align: left; cursor: pointer;
}
.download-button:disabled { opacity: 0.55; cursor: default; }
.download-button strong { display: block; }
.download-button small { display: block; opacity: 0.85; }
.button-icon { font-size: 22px; }
.picker { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.picker select {
  min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 14px;
}
.notice { min-height: 1.6em; margin: 14px 0 0; color: var(--muted); font-size: 14px; white-space: pre-line; }
.product-visual { display: grid; place-items: center; }
.icon-stage { display: grid; place-items: center; width: 200px; height: 200px; border-radius: 44px; background: var(--tile); border: 1px solid var(--line); }
.icon-stage img { width: 150px; height: 150px; }
.panel { margin-top: 20px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.version-pill { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; }
.latest dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 14px; font-size: 14px; }
.latest dt { color: var(--muted); }
.latest dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.latest .checksum { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.latest .release-notes { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--bg); white-space: pre-line; }
.empty { color: var(--muted); }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.notes-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.history { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.history li { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.history li:last-child { border-bottom: 0; padding-bottom: 0; }
.history .head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.history .head strong { font-size: 16px; }
.history .head span { color: var(--muted); font-size: 13px; }
.history p { margin: 4px 0 0; color: var(--muted); font-size: 14px; white-space: pre-line; }
footer { display: flex; justify-content: space-between; margin-top: 28px; color: var(--muted); font-size: 13px; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .product-visual { display: none; }
}
