:root {
  color-scheme: light;
  --paper: #f7f8f2;
  --ink: #192b24;
  --muted: #4c5c53;
  --line: #cbd2c8;
  --accent: #345c3b;
  --panel: #e8ede4;
  font: 100%/1.5 Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #17211b;
  --ink: #f0f3eb;
  --muted: #b9c6bb;
  --line: #38483d;
  --accent: #bfdda0;
  --panel: #26362b;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #edab59; outline-offset: 4px; }
.shell { width: min(76rem, 100% - 2 * clamp(1.25rem, 5vw, 5rem)); margin-inline: auto; }
.top { background: #13221b; color: #f5f7ef; }
.bar, .tools, .brand, .languages a { display: flex; align-items: center; }
.bar { justify-content: space-between; min-height: 4.25rem; gap: .75rem; }
.brand { gap: .55rem; font-weight: 800; font-size: 1rem; letter-spacing: .085em; text-decoration: none; }
.brand img { image-rendering: pixelated; }
.tools { gap: clamp(.7rem, 2vw, 1.75rem); font-size: .875rem; }
.help-link { text-decoration: none; }
.help-link:hover, footer a:hover { text-decoration: underline; }
.tools summary, .theme-toggle { display: flex; align-items: center; justify-content: center; min-height: 2.75rem; cursor: pointer; }
.language-menu { position: relative; }
.language-menu summary { gap: .45rem; list-style: none; }
summary::-webkit-details-marker { display: none; }
.language-menu summary span:last-child { color: #c0cdba; font-size: 1.1rem; }
.languages { position: absolute; right: 0; z-index: 2; min-width: 8.5rem; padding: .35rem; background: #1d3026; border: 1px solid #506557; border-radius: .45rem; }
.languages a { min-height: 2.5rem; padding-inline: .6rem; text-decoration: none; border-radius: .2rem; }
.languages a:hover, .languages a[aria-current] { background: #364d3b; }
.theme-toggle { width: 2.75rem; font: inherit; font-size: 1.35rem; color: inherit; background: none; border: 0; }
.theme-toggle[hidden] { display: none; }
.hero {
  color: #fffdf4;
  background: linear-gradient(90deg, #102119 1%, rgba(15,32,24,.94) 17%, rgba(15,32,24,.82) 33%, rgba(15,32,24,.47) 56%, transparent 77%),
    linear-gradient(0deg, rgba(14,28,20,.36), transparent 30%), url(/assets/home.webp) center 53% / cover;
  background-color: #172b20;
}
.hero-inner { padding-block: clamp(3.75rem, 7vw, 6.5rem) clamp(4rem, 7.5vw, 7rem); }
.edition { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.25rem; color: #ecf0dc; font-size: .78rem; line-height: 1.3; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.edition span { border-left: 1px solid #a8b7a3; padding-left: .65rem; font-variant-numeric: tabular-nums; }
h1, h2, h3, p, figure { margin: 0; }
h1 { max-width: 11ch; font-size: clamp(3.25rem, 6.5vw, 6.35rem); line-height: .99; letter-spacing: -.065em; text-wrap: balance; }
:lang(zh-CN) h1 { letter-spacing: -.03em; line-height: 1.15; }
.intro { max-width: 27rem; margin-top: 1.45rem; color: #e8ede1; font-size: clamp(1rem, 1.45vw, 1.13rem); text-wrap: pretty; }
.downloads { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.download { display: inline-flex; align-items: center; gap: .8rem; min-width: 10.5rem; padding: .65rem 1.15rem; border: 1px solid; border-radius: .55rem; text-decoration: none; transition: background .15s; }
.download strong, .download small { display: block; }
.download strong { font-size: 1.04rem; line-height: 1.35; }
.download small { font-size: .74rem; line-height: 1.5; }
.download-mark { display: grid; place-items: center; font-size: 1.4rem; line-height: .9; width: 1.2rem; padding-bottom: .15rem; border-bottom: 1.5px solid currentColor; }
.primary { background: #d5ef9a; border-color: #d5ef9a; color: #203018; }
.primary:hover { background: #e4ffab; }
.secondary { background: #1e3029; border-color: #829384; color: #f8faef; }
.secondary:hover { background: #344d3d; }
.guide { display: grid; grid-template-columns: 1fr .93fr; align-items: start; gap: clamp(2.25rem, 7vw, 7rem); padding-block: clamp(2.75rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.3vw, 3.15rem); line-height: 1.1; letter-spacing: -.045em; }
.steps { margin: 1.5rem 0 0; padding: 0; list-style: decimal-leading-zero inside; }
.steps li { border-top: 1px solid var(--line); padding: .9rem 0; }
.steps li:last-child { padding-bottom: 0; }
.steps li::marker { font-size: .82rem; font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps h3 { display: inline; margin-left: .45rem; font-size: 1.1rem; }
.steps p { margin-top: .35rem; line-height: 1.5; color: var(--muted); }
.linux-help { margin-top: .45rem; }
.linux-help summary { width: fit-content; cursor: pointer; color: var(--accent); text-decoration: underline; text-underline-offset: .18rem; font-size: .9rem; }
.linux-help pre { margin: .6rem 0 0; padding: .7rem .85rem; background: var(--panel); border-radius: .4rem; }
figure { align-self: center; overflow: hidden; border: 1px solid var(--line); border-radius: .75rem; background: var(--panel); }
figure img { display: block; width: 100%; height: auto; }
figcaption { display: flex; flex-wrap: wrap; gap: .2rem 1rem; align-items: baseline; justify-content: space-between; padding: .9rem 1.1rem; }
figcaption strong { font-size: 1.1rem; }
figcaption span { font-size: .86rem; color: var(--muted); }
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding-block: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
footer strong { font-weight: 750; letter-spacing: .07em; }
footer a { text-decoration: none; }
@media (max-width: 46rem) {
  .guide { grid-template-columns: 1fr; gap: 2rem; }
  figure { max-width: 36rem; }
  .hero { background-position: 60% center; }
}
@media (max-width: 34rem) {
  .bar { min-height: 3.65rem; }
  .brand { font-size: .85rem; gap: .35rem; }
  .brand img { width: 27px; height: 27px; }
  .help-link { display: none; }
  .tools { gap: .4rem; }
  .hero {
    background-image: linear-gradient(0deg, #122219 5%, rgba(18,34,25,.94) 32%, rgba(18,34,25,.76) 56%, rgba(18,34,25,.05) 90%), url(/assets/home.webp);
    background-position: center, 69% top;
    background-size: cover, auto 100%;
    background-repeat: no-repeat;
  }
  .hero-inner { padding-block: 9rem 2.5rem; }
  .downloads { gap: .55rem; }
  .download { min-width: 0; padding: .6rem .75rem; flex: 1 1 7.3rem; max-width: 10.5rem; gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .download { transition: none; }
}
