:root {
  color-scheme: dark;
  --page: #0c0f0e;
  --panel: #141816;
  --ink: #f3f5ee;
  --muted: #b6bdb4;
  --accent: #d0ef5d;
  --line: #2c352f;
  font-family: system-ui, "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button[hidden] { display: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
section { scroll-margin-top: 1rem; }

.shell { width: min(calc(100% - 6rem), 77.5rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; inset: .75rem auto auto .75rem; padding: .5rem 1rem; color: #101409; background: var(--accent); transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }

.site-header {
  background: #101411;
  border-bottom: 1px solid #282f28;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.75rem;
  gap: 2rem;
}

.brand {
  position: relative;
  justify-self: start;
  width: 9rem;
  aspect-ratio: 906 / 254;
  overflow: hidden;
}

/* Frame the artwork within the original PNG's transparent canvas. */
.brand img {
  position: absolute;
  width: 122.19%;
  height: 355.51%;
  max-width: none;
  top: -133.46%;
  left: -9.27%;
}

.site-nav { display: flex; align-items: center; gap: 2.5rem; color: var(--muted); font-size: .9375rem; }
.site-nav a { padding-block: .625rem; }
.site-nav a:hover, .view-image:hover { color: var(--accent); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-height: 3.25rem;
  padding: .7rem 1.5rem;
  border: 1px solid transparent;
  border-radius: .45rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.button-primary { color: #151b08; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: #e0ff81; border-color: #e0ff81; }
.button-primary:disabled { background: #30392a; border-color: #46533b; color: #c0c8b7; cursor: default; }
.button-secondary { color: var(--ink); background: #101511b8; border-color: #3a443b; }
.button-secondary:hover { border-color: #7d886e; background: #1c241f; }

.hero {
  position: relative;
  isolation: isolate;
  background: #0a0d0c;
  border-bottom: 1px solid #2c3429;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #0a0d0cf7 0%, #0a0d0caa 32%, #0a0d0c00 67%),
    linear-gradient(0deg, #0a0d0c 0%, #0a0d0c00 24%),
    url("assets/hero-graphite.png") center 53% / cover no-repeat;
}

.hero-inner {
  min-height: 39.5rem;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: 3.25rem;
  padding-block: 4.375rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.1rem;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .065em;
  color: var(--accent);
}

.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 {
  font-size: clamp(2.9rem, 5.1vw, 4.625rem);
  line-height: 1.16;
  letter-spacing: -.05em;
  font-weight: 730;
}

h1 span { display: block; color: #d6ed90; }

.hero-description {
  max-width: 24rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.download-dropdown { position: relative; z-index: 2; }
.download-toggle { gap: .65rem; }
.download-toggle > span { width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.12rem) rotate(45deg); }
.download-toggle[aria-expanded="true"] > span { transform: translateY(.1rem) rotate(225deg); }
.download-methods { position: absolute; top: 100%; left: 0; min-width: max(100%, 12rem); margin: 0; padding: .3rem; list-style: none; background: #141a14; border: 1px solid #454f3d; border-radius: .45rem; box-shadow: 0 .65rem 1.65rem #0008; }
.download-methods a { display: flex; align-items: center; min-height: 2.65rem; padding: .45rem .7rem; border-radius: .3rem; font-size: .9375rem; font-weight: 650; white-space: nowrap; }
.download-methods a:hover, .download-methods a:focus-visible { color: var(--accent); background: #202b1c; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1rem; margin-top: .6rem; font-size: .875rem; }
.version-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--muted); }
.windows-mark { width: .875rem; height: .875rem; background: repeating-linear-gradient(90deg, currentColor 0 45%, transparent 45% 55%, currentColor 55% 100%); clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%, 0 55%, 100% 55%, 100% 100%, 0 100%); }
.hero-links { display: flex; flex-wrap: wrap; gap: 0 .85rem; }
.hero-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.hero-links a, .site-info a { color: #d6ed90; text-decoration: underline; text-decoration-color: #899c56; text-underline-offset: .2em; }
.hero-links a:hover, .site-info a:hover { color: var(--accent); text-decoration-color: currentColor; }

.showcase { margin: 1.5rem 0 0; min-width: 0; }
.showcase-window {
  padding: .5rem;
  border: 1px solid #677151;
  border-radius: .8rem;
  background: linear-gradient(165deg, #353f31, #171d17 58%, #566037);
  box-shadow: 0 1.25rem 4.5rem #000a, 0 0 2.5rem #12190eb3, inset 0 1px #ffffff26;
}

.showcase-window img { width: 100%; height: auto; border-radius: .35rem; }
.showcase figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .65rem;
  color: #e2e7d9;
  text-shadow: 0 1px .6rem #050605;
  font-size: .875rem;
}

.view-image {
  min-height: 2.375rem;
  padding: .25rem .65rem;
  border: 1px solid #63705b;
  border-radius: .35rem;
  background: #101511e6;
  color: #e2e7d9;
  white-space: nowrap;
}

.section { padding-block: 4.5rem; }
.features { background: var(--panel); }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.75rem); font-weight: 720; letter-spacing: -.035em; line-height: 1.2; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.5rem; border-block: 1px solid var(--line); }
.feature { padding: 1.7rem 2rem 1.8rem 0; }
.feature + .feature { border-left: 1px solid var(--line); padding-left: 2rem; }
.feature h3 { margin-top: 1rem; font-size: 1.2rem; line-height: 1.35; font-weight: 700; }
.feature p { max-width: 19rem; margin-top: .55rem; color: var(--muted); }

.feature-icon {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #464f37;
  border-radius: .45rem;
  background: #252d20;
  color: var(--accent);
}

.icon-list { display: grid; place-content: center; gap: .22rem; }
.icon-list i { display: block; width: 1rem; height: 1px; background: currentColor; }
.icon-list i:last-child { width: .675rem; }
.icon-window i { position: absolute; inset: .7rem .625rem; border: 1px solid currentColor; border-radius: .13rem; }
.icon-window i::before { content: ""; display: block; width: 100%; height: .27rem; border-bottom: 1px solid currentColor; }
.icon-package i { position: absolute; inset: .75rem .7rem .65rem; border: 1px solid currentColor; border-radius: .1rem; }
.icon-package i::before { content: ""; position: absolute; inset: -.25rem -.1rem auto; height: .35rem; border: 1px solid currentColor; background: #252d20; }
.icon-package i::after { content: ""; position: absolute; inset: .26rem .28rem auto; height: 1px; background: currentColor; }

.changelog { border-block: 1px solid var(--line); }
.changelog-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.6rem; }
.log-refresh { min-height: 2.75rem; padding: .4rem .85rem; font-size: .875rem; }
.log-refresh:disabled { opacity: .65; cursor: wait; }
.log-state { padding: 1.1rem clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: .55rem; background: var(--panel); color: var(--muted); }
.log-entries { display: grid; gap: .65rem; }
.log-entries:empty { display: none; }
.log-state:not([hidden]) + .log-entries:not(:empty) { margin-top: .8rem; }
.log-entry { border: 1px solid var(--line); border-radius: .55rem; background: var(--panel); }
.log-entry[open] { border-color: #3c4637; }
.log-entry summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .55rem 1.5rem; padding: .95rem clamp(1rem, 3vw, 1.6rem); list-style: none; cursor: pointer; }
.log-entry summary::-webkit-details-marker { display: none; }
.log-version { min-width: 0; overflow-wrap: anywhere; color: #d6ed90; font-size: 1.125rem; font-weight: 700; }
.log-meta { display: inline-flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.log-toggle { width: .9rem; text-align: center; color: var(--accent); font-size: 1.15rem; }
.log-toggle::before { content: "+"; }
.log-entry[open] .log-toggle::before { content: "−"; }
.log-notes { margin: 0; padding: .1rem clamp(1rem, 3vw, 1.6rem) 1.1rem calc(clamp(1rem, 3vw, 1.6rem) + 1.15rem); color: var(--muted); overflow-wrap: anywhere; }
.log-notes li + li { margin-top: .35rem; }
.log-notes li::marker { color: #a7bc68; }

.release-panel {
  padding: clamp(1.5rem, 4.3vw, 3.75rem);
  border: 1px solid #3c4637;
  border-radius: .85rem;
  background: radial-gradient(ellipse at 94% 5%, #202d19, transparent 70%), #151b17;
}

.release-copy .eyebrow { margin-bottom: .65rem; }
.release-description { max-width: 36rem; margin-top: .9rem; color: var(--muted); }
.release-copy code { font: inherit; font-weight: 600; overflow-wrap: anywhere; color: #edf2e5; }
.release-notice {
  max-width: 36rem;
  margin-top: 1.15rem;
  padding-inline-start: .85rem;
  border-inline-start: 2px solid var(--accent);
  color: var(--ink);
  font-size: .9375rem;
}
.release-notice strong { margin-inline-end: .5rem; color: var(--accent); }

.site-info { background: var(--panel); border-top: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: 2rem clamp(2rem, 5vw, 4.5rem); }
.site-info h2 { font-size: clamp(1.55rem, 2.5vw, 2rem); }
.contact-card { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid #3c4637; border-radius: .85rem; background: #1b2219; }
.contact-card > p { margin-top: .75rem; color: var(--muted); }
.contact-person { display: flex; flex-wrap: wrap; gap: .35rem .7rem; }
.contact-person strong { color: var(--ink); }
.contact-details { margin-top: 1.15rem; padding-top: .9rem; border-top: 1px solid #3c4637; }
.contact-label { margin-bottom: .25rem; color: var(--muted); font-size: .875rem; }
.contact-qq { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .75rem; }
.contact-details strong { color: #d6ed90; font-size: clamp(1.4rem, 3vw, 1.8rem); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.contact-copy { min-height: 2.75rem; padding: .4rem .8rem; font-size: .875rem; color: #e4efcd; }
.contact-status { margin-top: .4rem; color: var(--muted); font-size: .875rem; }
.contact-status:empty { margin-top: 0; }
.site-info a { overflow-wrap: anywhere; }
.disclaimer p { max-width: 46rem; margin-top: .75rem; color: var(--muted); }
.disclaimer h2 + p { margin-top: 1rem; }

.site-footer { border-top: 1px solid var(--line); color: #aeb7ab; font-size: .875rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.35rem; }
.footer-inner > span:first-child { color: var(--ink); }

.image-dialog {
  width: min(1006px + 2rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #58614e;
  border-radius: .65rem;
  background: #151b17;
  color: var(--ink);
}

.image-dialog::backdrop { background: #070a08d9; }
.dialog-bar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .9rem; background: #151b17; }
.dialog-bar h2 { font-size: .9375rem; letter-spacing: 0; }
.dialog-close { min-height: 2.5rem; padding: .25rem .8rem; border: 1px solid #66705d; border-radius: .35rem; color: var(--ink); background: #222b21; white-space: nowrap; }
.dialog-close:hover { background: #354030; }
.image-scroll { margin: 0 .55rem .55rem; overflow: auto; }
.image-scroll img { width: 1006px; max-width: none; height: auto; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (max-width: 59rem) {
  .shell { width: min(calc(100% - 3rem), 45rem); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 2.25rem; padding-block: 3.5rem; }
  .hero::before {
    background:
      linear-gradient(180deg, #0a0d0c 9%, #0a0d0cbb 42%, #0a0d0c00 70%, #0a0d0c 100%),
      url("assets/hero-graphite.png") 67% bottom / auto 100% no-repeat;
  }
  h1 { font-size: clamp(2.65rem, 8.5vw, 4.625rem); }
  .showcase { width: 100%; margin: 0; }
  .feature { padding-right: 1.25rem; }
  .feature + .feature { padding-left: 1.25rem; }
}

@media (max-width: 37rem) {
  .shell { width: calc(100% - 2.5rem); }
  .header-inner { grid-template-columns: 1fr auto; min-height: 4.125rem; gap: 1rem; }
  .site-nav { display: none; }
  .brand { width: 7.25rem; }
  .hero-inner { padding-block: 2.65rem 2.25rem; }
  h1 { font-size: clamp(2.2rem, 10.5vw, 3.6rem); }
  .hero-description { margin-top: 1.2rem; font-size: 1rem; }
  .hero-actions { margin-top: 1.5rem; }
  .hero-actions .button { padding-inline: 1.15rem; }
  .showcase-window { padding: .3rem; border-radius: .55rem; }
  .showcase figcaption { font-size: .8125rem; }
  .view-image { min-height: 2.625rem; }
  .section { padding-block: 2.7rem; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); margin-top: 1.5rem; }
  .feature, .feature + .feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem 1rem; padding: 1.1rem 0; border-left: 0; }
  .feature + .feature { border-top: 1px solid var(--line); }
  .feature-icon { grid-row: span 2; }
  .feature h3, .feature p { margin-top: 0; }
  .feature p { max-width: none; }
  .info-grid { grid-template-columns: minmax(0, 1fr); }
}
