/* 风隅下载页：保留纸色与阅读气质，让下载入口成为宽版布局的中心。 */
:root {
  --paper: #f8f7f0;
  --surface: #fffef9;
  --ink: #293c34;
  --muted: #66715f;
  --line: #dedfd3;
  --green: #345b46;
  --wash: #e9ecdf;
  --serif: Georgia, 'Times New Roman', 'Noto Serif SC', 'Source Han Serif SC', SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
.sheet {
  width: calc(100% - 80px);
  max-width: 1080px;
  margin-inline: auto;
  padding-block: 32px 24px;
}
.masthead { display: grid; gap: 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brandmark { display: block; object-fit: contain; flex: 0 0 44px; }
.brandtext { font-size: 20px; font-weight: 700; letter-spacing: 1px; line-height: 1.35; }
.brandtext small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .4px;
}
h1 {
  margin: 6px 0 0;
  font: 600 clamp(28px, 2.7vw, 38px)/1.35 var(--serif);
  letter-spacing: -.4px;
}
.lede { margin: 0; color: #3c4c42; font-size: 17px; line-height: 1.75; }
.release { padding-top: 28px; }
.release-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.release-head h2 { margin: 0; font: 500 25px/1.4 var(--serif); }
.version { color: var(--green); font-variant-numeric: tabular-nums; }
.meta, .release-info { margin: 0; color: var(--muted); font-size: 14px; }
.release-info { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 8px; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 18px; }
.option {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.option-primary { border-color: #b9c6ad; background: #f6f8f0; }
.option h3 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.4; }
.option p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 4px;
  padding: 10px 20px;
  border: 1px solid #c5cebf;
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms, border-color 150ms, transform 150ms;
}
.button:hover { background: var(--wash); border-color: #9dae99; }
.button.primary { border-color: var(--green); background: var(--green); color: #fff; }
.button.primary:hover { border-color: #254735; background: #254735; }
.button:active { transform: translateY(1px); }
.button:focus-visible, summary:focus-visible, .brand:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.warning {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 4px 20px;
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  background: #efefe3;
}
.warning h3 { grid-row: span 2; margin: 1px 0 0; font-size: 15px; font-weight: 600; line-height: 1.75; }
.warning p { margin: 0; font-size: 14px; line-height: 1.75; color: #555f50; }
.warning details { min-width: 0; }
.warning summary { width: fit-content; cursor: pointer; font-size: 13px; color: var(--green); }
.warning code {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.notes, .facts { margin-top: 30px; }
.notes h2, .facts h2 { margin: 0 0 16px; font: 600 22px/1.4 var(--serif); }
.changelog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px;
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.8;
}
.changelog li { padding-left: 2px; }
.changelog li::marker { color: #7d967f; }
.facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; margin: 0; }
.facts dl > div { min-width: 0; }
.facts dt { margin-bottom: 5px; font-size: 15px; font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
footer p { margin: 0; }

@media (max-width: 800px) {
  .sheet { width: calc(100% - 48px); padding-top: 24px; }
  .changelog { grid-template-columns: 1fr; gap: 8px; }
  .facts dl { column-gap: 28px; }
}
@media (max-width: 600px) {
  .sheet { width: calc(100% - 40px); padding-block: 24px; }
  .masthead { gap: 14px; }
  h1 { font-size: clamp(23px, 6.5vw, 28px); }
  .lede { font-size: 16px; }
  .release { padding-top: 24px; }
  .release-head { gap: 8px; }
  .release-head h2 { font-size: 23px; }
  .meta, .release-info { font-size: 13px; }
  .options { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .option { gap: 10px; padding: 20px; }
  .option h3 { font-size: 19px; }
  .warning { grid-template-columns: 1fr; gap: 7px; padding: 16px; }
  .warning h3 { grid-row: auto; }
  .facts dl { grid-template-columns: 1fr; gap: 18px; }
  .notes, .facts { margin-top: 26px; }
  .notes h2, .facts h2 { font-size: 21px; margin-bottom: 12px; }
  footer { display: grid; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
