:root {
  color-scheme: light dark;
  --bg: #f8faf9;
  --paper: #fff;
  --text: #14252a;
  --muted: #44585e;
  --line: #cddbd9;
  --accent: #096b5a;
  --button: #136e5d;
  --button-text: #fff;
  --button-hover: #0a5346;
  --panel: #e8f3ef;
  --grid: #2b74603b;
  --halo: #b9ecdb;
  --window: #eef5f2;
  --shadow: #1f4e452c;
  --code-bg: #101820;
  --code-bar: #1a2731;
  --code-text: #bbf5e5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1319;
    --paper: #111e26;
    --text: #eef8f8;
    --muted: #a7b9c2;
    --line: #30414a;
    --accent: #79e5cb;
    --button: #80ebd2;
    --button-text: #0b2c25;
    --button-hover: #a4f4e1;
    --panel: #122a2c;
    --grid: #75c4b340;
    --halo: #153d3d;
    --window: #1b2932;
    --shadow: #0008;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: var(--accent); text-underline-offset: 0.23em; }
button, select { font: inherit; }
button, select, .button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
.wrap { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 2; inset: 0.7rem auto auto 0.7rem; padding: 0.65rem 1rem; background: var(--paper); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.75rem; display: flex; align-items: center; gap: 1.7rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); font-weight: 760; white-space: nowrap; letter-spacing: -0.03em; }
.brand img { margin-right: 0.57rem; border-radius: 8px; }
.brand span { margin-inline-start: 0.21em; color: var(--accent); font-size: 0.88em; }
nav { display: flex; gap: 1.45rem; align-items: center; margin-left: auto; }
nav a { color: var(--text); font-size: 0.94rem; text-decoration: none; white-space: nowrap; }
nav a:hover { color: var(--accent); text-decoration: underline; }
.language {
  appearance: none;
  color: var(--text);
  background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 0.88rem center / 5px 5px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 0.57rem center / 5px 5px no-repeat, var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.47rem 1.65rem 0.47rem 0.68rem;
  min-width: 7.75rem;
  font-size: 0.9rem;
}
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(52rem, 90%);
  z-index: -1;
  background: radial-gradient(circle, var(--grid) 1px, transparent 1.4px) center top / 20px 20px,
    radial-gradient(ellipse at 50% 32%, var(--halo), transparent 66%);
  mask-image: linear-gradient(#000, #000 46%, transparent);
}
.hero-copy { padding: clamp(3.6rem, 8vw, 6.25rem) 0 clamp(2.6rem, 5vw, 4.2rem); max-width: 59rem; margin-inline: auto; text-align: center; }
h1, h2, h3, p, figure { margin: 0; }
h1, .section-intro h2, .community h2 { line-height: 1.07; letter-spacing: -0.048em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 8.1vw, 6.1rem); font-weight: 790; }
h1 em { color: var(--accent); font-style: normal; }
:lang(zh-CN) h1, :lang(zh-CN) .section-intro h2, :lang(zh-CN) .community h2 { letter-spacing: -0.02em; }
.hero-copy p { max-width: 36rem; margin: 1.35rem auto 1.7rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); text-wrap: pretty; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: 0.66rem 1.2rem; border: 1px solid transparent; border-radius: 9px; color: var(--text); font-weight: 690; text-decoration: none; text-align: center; }
.button.primary { color: var(--button-text); background: var(--button); }
.button.primary:hover { background: var(--button-hover); }
.button.secondary { border-color: var(--line); background: var(--paper); }
.button.secondary:hover { border-color: var(--accent); color: var(--accent); }
.showcase { overflow: hidden; max-width: 64rem; margin-inline: auto; border: 1px solid var(--line); border-radius: 15px; background: var(--window); box-shadow: 0 20px 60px var(--shadow); }
.window-bar { position: relative; display: grid; place-items: center; min-height: 2.45rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; font-weight: 650; }
.window-dots { position: absolute; left: 0.95rem; display: flex; gap: 0.38rem; }
.window-dots i { width: 0.53rem; height: 0.53rem; border-radius: 50%; background: var(--line); }
.showcase picture { display: block; aspect-ratio: 1.88; overflow: hidden; }
.showcase img { width: 100%; height: auto; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(1rem, 4vw, 3rem); padding: 2.5rem 0 4.2rem; }
.features section { border-top: 1px solid var(--line); padding-top: 1rem; }
.features h2, .platform-notes h3 { font-size: 1.11rem; line-height: 1.35; }
.features p, .section-intro p, .community p, .platform-notes p, .run-note { color: var(--muted); }
.features p { margin-top: 0.35rem; }
.installation { display: grid; grid-template-columns: minmax(0, 0.87fr) minmax(0, 1.55fr); gap: clamp(2rem, 6vw, 4.6rem); padding: clamp(2.8rem, 6vw, 4.8rem) 0; border-top: 1px solid var(--line); }
.section-intro h2, .community h2 { font-size: clamp(2rem, 4vw, 3.65rem); text-wrap: initial; }
.section-intro p, .community p { margin-top: 0.85rem; max-width: 32rem; }
.setup { min-width: 0; }
.platforms { display: flex; flex-wrap: wrap; gap: 0.45rem; border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; }
.platforms a { min-height: 2.5rem; padding: 0.44rem 0.8rem; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; color: var(--text); font-size: 0.91rem; text-decoration: none; }
.platforms a[aria-selected="true"] { background: var(--panel); border-color: var(--accent); color: var(--accent); font-weight: 700; }
.platforms a:hover { border-color: var(--accent); }
.platform-notes { padding: 1rem 0 1.3rem; }
.platform-notes section + section { margin-top: 1.15rem; }
.platform-notes p { margin-top: 0.45rem; }
.platform-notes .prereqs { margin-top: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; font-weight: 630; }
.command-box { background: var(--code-bg); color: var(--code-text); border-radius: 11px; overflow: hidden; }
.command-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0.85rem; min-height: 3rem; gap: 0.75rem; background: var(--code-bar); color: #e3eff5; font-size: 0.88rem; font-weight: 650; }
.copy { min-height: 2rem; padding: 0.15rem 0.6rem; background: transparent; color: inherit; border: 1px solid #67818d; border-radius: 6px; }
.copy:hover { background: #30414a; }
.copy:focus-visible, pre:focus-visible { outline: 2px solid #80ebd2; outline-offset: -2px; }
pre { margin: 0; padding: 0.9rem; overflow-x: auto; font: 0.88rem/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; }
.local-address { display: flex; flex-wrap: wrap; gap: 0.15rem 0.55rem; margin-top: 0.9rem; }
.run-note { margin-top: 0.4rem; }
.community { border-block: 1px solid var(--line); background: var(--panel); }
.community-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; padding: 3rem 0; }
.community-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.site-footer { padding: 1.6rem 0; }
@media (max-width: 48rem) {
  .installation { grid-template-columns: 1fr; }
}
@media (max-width: 44rem) {
  .nav-install, .nav-community { display: none; }
}
@media (max-width: 37rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 4rem; gap: 0.65rem; }
  nav { gap: 0.65rem; }
  .language { min-width: 0; }
  .features { grid-template-columns: 1fr; row-gap: 1rem; padding-bottom: 2.75rem; }
  .window-bar { min-height: 2rem; }
  .showcase picture { aspect-ratio: 1.53; }
  .showcase img { width: 125%; max-width: 125%; }
}
@media (max-width: 22rem) {
  .header-inner { justify-content: space-between; }
  nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
