:root {
  color-scheme: light;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  --background: #f8f9fc;
  --surface: #fff;
  --text: #1c2030;
  --muted: #555f75;
  --line: #dce0ea;
  --accent: #4935ae;
  --accent-border: #a59bcf;
  --accent-surface: #f3f0ff;
}

body.claude {
  --background: #faf8f4;
  --text: #2b241e;
  --muted: #665b50;
  --line: #e9dfd5;
  --accent: #913f29;
  --accent-border: #c47d68;
  --accent-surface: #fff2eb;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
}

a {
  color: inherit;
  text-decoration-color: var(--accent-border);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--accent); }

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.container {
  width: min(100% - 2.5rem, 62rem);
  margin-inline: auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  padding-block: 1.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-header { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 0.65rem;
  height: 0.65rem;
  background-color: var(--accent);
  border-radius: 50%;
}

.hero { padding-block: clamp(2.7rem, 7vw, 5rem) 1.75rem; }

h1, h2, p { margin: 0; }

h1 {
  font-size: clamp(2.25rem, 6.8vw, 4.8rem);
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.hero > p {
  margin-top: 0.85rem;
  color: var(--muted);
}

.hero > .release-status {
  margin-top: 1.27rem;
  color: var(--accent);
  font-size: 0.87rem;
  font-weight: 600;
}

main { padding-bottom: 2.5rem; }
.section + .section { margin-top: 2.5rem; }

h2 {
  font-size: 1.12rem;
  line-height: 1.4;
  margin-bottom: 0.9rem;
}

.section-note {
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.downloads > li { min-width: 0; }

.download {
  min-height: 4.82rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface);
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 650;
  text-decoration: none;
}

.download:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-surface);
}

.download small {
  display: block;
  margin-top: 0.13rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.download-arrow {
  flex: 0 0 1.7rem;
  color: var(--accent);
  text-align: center;
  font-size: 1.25rem;
}

.metadata {
  margin-top: 0.9rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.history-list {
  border-block: 1px solid var(--line);
}

.history-release + .history-release { border-top: 1px solid var(--line); }

.history-release summary {
  display: list-item;
  padding-block: 0.8rem;
  cursor: pointer;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.history-release summary::marker { color: var(--accent); }
.history-release summary:hover { color: var(--accent); }

.history-content { padding-bottom: 1rem; }

@media (max-width: 420px) {
  .container { width: calc(100% - 2rem); }
  .download { min-height: 3.4rem; }
}
