:root {
  color-scheme: light;
  --ink: #152b32;
  --muted: #536872;
  --teal: #00686c;
  --line: #d8e2e4;
  --paper: #f6f9f9;
  font-family: Inter, "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-underline-offset: .2em; }
.wrap { width: min(1060px, calc(100% - 72px)); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.bar { min-height: 72px; display: flex; align-items: stretch; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; font-size: 1.12rem; letter-spacing: .04em; text-decoration: none; }
.brand img { object-fit: contain; }
nav { display: flex; gap: 28px; }
nav a { display: inline-flex; align-items: center; border-bottom: 3px solid transparent; padding-top: 3px; color: var(--muted); text-decoration: none; font-size: .93rem; }
nav a[aria-current] { border-color: var(--teal); color: var(--teal); font-weight: 650; }
nav a:hover, summary:hover, .context a:hover { color: var(--teal); }
main { flex: 1; padding-bottom: 64px; }
.pagehead { padding: 52px 0 25px; }
h1,h2,p { margin: 0; }
h1 { font-size: clamp(1.95rem, 3.6vw, 2.65rem); line-height: 1.2; letter-spacing: -.04em; }
.release { margin-bottom: 30px; overflow: hidden; border: 1px solid #cddbdc; border-radius: 16px; background: #fff; }
.directory { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.directory a { display: flex; min-height: 112px; height: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 21px 24px; background: white; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.directory a:hover { border-color: var(--teal); background: #f7fcfb; }
.directory h2 { font-size: 1.23rem; line-height: 1.4; }
.directory p, .version { margin-top: 5px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.version { margin: 0; white-space: nowrap; color: var(--teal); }
.back { color: var(--teal); }
.hero .description { margin-top: 12px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: clamp(26px, 4vw, 44px); }
.edition { font-size: .89rem; font-weight: 650; color: var(--teal); }
.hero h2 { font-size: clamp(2rem,4.1vw,3.4rem); letter-spacing: -.055em; line-height: 1.16; margin: 12px 0; overflow-wrap: anywhere; }
.description { font-size: 1rem; line-height: 1.75; color: var(--muted); }
.metadata, .download-line, .form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.metadata { margin-top: 22px; font-size: .9rem; color: #475d65; }
.metadata b { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); }
.metadata i { height: .9em; width: 1px; background: #b9c8cc; }
.download-line { flex-direction: column; gap: 9px; }
.button { display: inline-flex; gap: 11px; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-weight: 650; font-size: .95rem; line-height: 1.4; cursor: pointer; text-decoration: none; }
.primary { color: #fff; background: var(--teal); }
.primary:hover { background: #005154; }
.secondary { background: white; color: #15585b; border-color: #bfd1d1; }
.secondary:hover { background: #f1f8f8; }
.download-icon { display: inline-block; height: 16px; width: 16px; border-bottom: 2px solid; position: relative; }
.download-icon::before { content: ""; width: 2px; height: 10px; background: currentColor; position: absolute; left: 7px; top: 0; }
.download-icon::after { content: ""; height: 6px; width: 6px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); position: absolute; top: 3px; left: 4px; }
.size,.hint,.context,.filename { color: var(--muted); font-size: .9rem; }
.details { border-top: 1px solid var(--line); padding-inline: clamp(26px, 4vw, 44px); }
details + details { border-top: 1px solid var(--line); }
summary { position: relative; padding: 17px 30px 17px 0; cursor: pointer; list-style: none; font-weight: 650; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; top: 21px; right: 4px; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
details[open] > summary::after { top: 24px; transform: rotate(225deg); }
.detail-body { color: var(--muted); line-height: 1.8; padding: 0 0 19px; margin: 0; }
.notes { white-space: pre-line; }
.filedata { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; }
dd { margin: 0; overflow-wrap: anywhere; }
code { font-family: "Cascadia Mono", Consolas, monospace; font-size: .9em; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 18px; border-top: 1px solid var(--line); padding: 21px 0 25px; color: var(--muted); font-size: .84rem; line-height: 1.7; }
.context { margin-bottom: 12px; }
.context a { color: var(--teal); }
.admin-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.admin-list, .upload-form { border-radius: 16px; border: 1px solid var(--line); background: white; }
.admin-item { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 27px 32px; }
.admin-item + .admin-item { border-top: 1px solid var(--line); }
.admin-item h2 { margin-top: 6px; letter-spacing: -.035em; font-size: 1.5rem; overflow-wrap: anywhere; }
.admin-item .metadata { margin-top: 8px; }
.filename { margin-top: 10px; overflow-wrap: anywhere; }
.admin-actions { display: flex; flex-direction: column; align-items: end; gap: 12px; flex-shrink: 0; }
.status { font-size: .88rem; background: #edf0f1; color: #45545a; border-radius: 20px; padding: 4px 12px; }
.status.live { background: #ddf3e7; color: #205c3b; }
.notice,.error,.empty { padding: 16px; margin: 0 0 18px; border-radius: 8px; background: #e3f3ed; }
.error { color: #942f24; background: #fff1ee; }
.upload-form { max-width: 780px; padding: 28px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fields label { display: block; font-weight: 600; }
.full { grid-column: 1 / -1; }
.hint { font-weight: 400; margin-left: .35em; }
.fields input,.fields textarea { display: block; width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid #aabcc0; border-radius: 7px; font: inherit; font-weight: 400; color: var(--ink); background: #fff; }
.fields .package { background: #f4fafa; border-style: dashed; }
.fields textarea { resize: vertical; }
.form-actions { margin-top: 24px; gap: 20px; }
:focus-visible { outline: 3px solid #158782; outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -5em; z-index: 5; padding: 10px; background: #fff; }
.skip:focus { top: 8px; }
@media (max-width: 740px) {
  .directory { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .directory a { min-height: 84px; padding: 15px 18px; }
  .wrap { width: calc(100% - 36px); }
  .bar { min-height: 62px; }
  .brand { gap: 7px; font-size: 1rem; }
  .brand img { width: 29px; height: 29px; }
  nav { gap: 14px; }
  .pagehead { padding: 30px 0 18px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 20px; }
  .download-line { flex-direction: row; justify-content: flex-start; gap: 12px; }
  .metadata { margin-top: 16px; }
  .details { padding-inline: 24px; }
  main { padding-bottom: 30px; }
  .admin-item { padding: 19px; flex-wrap: wrap; }
  .admin-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .upload-form { padding: 20px; }
  .fields { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 375px) {
  .wrap { width: calc(100% - 26px); }
  nav { gap: 9px; }
  .admin-head { flex-wrap: wrap; }
}
