:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #1d2329;
  --muted: #73797e;
  --line: #deddd7;
  --button: #1d2329;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

.page-shell {
  width: min(calc(100% - 40px), 820px);
  margin: 0 auto;
  padding: 72px 0;
}

.site-header {
  margin-bottom: 72px;
}

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

h1 {
  margin-bottom: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 600;
  letter-spacing: -.04em;
}

h2 {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.download-list {
  border-top: 1px solid var(--line);
}

.download-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 112px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.download-item h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.meta strong {
  color: var(--ink);
  font-weight: 500;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid var(--button);
  border-radius: 5px;
  color: #fff;
  background: var(--button);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.download-button:hover { color: var(--ink); background: transparent; }
.download-button:focus-visible { outline: 3px solid rgba(29, 35, 41, .25); outline-offset: 3px; }

.status-message {
  margin: 0;
  padding: 28px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.status-message.is-error { color: #9a3f2c; }

@media (max-width: 560px) {
  .page-shell { width: min(calc(100% - 28px), 820px); padding: 42px 0; }
  .site-header { margin-bottom: 50px; }
  .download-item { grid-template-columns: 1fr; gap: 18px; padding: 22px 0; }
  .download-button { justify-self: start; }
}

