:root {
  color-scheme: light;
  --paper: #f7f7f5;
  --surface: #fff;
  --ink: #171817;
  --muted: #656760;
  --line: #dcded8;
  --line-dark: #c7cac3;
  --page: min(1040px, calc(100vw - 48px));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 12px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { width: var(--page); height: 68px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -.01em; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.nav-link { color: #4e504b; font-size: 13px; }
.nav-link:hover { color: var(--ink); }
.language-switch { min-width: 38px; height: 30px; padding: 0 9px; border: 1px solid var(--line-dark); border-radius: 6px; background: transparent; cursor: pointer; font-size: 12px; }
.language-switch:hover { background: var(--surface); }

.hero { width: var(--page); margin: 0 auto; padding: 84px 0 72px; }
.hero-copy { max-width: 720px; }
h1 { margin-bottom: 20px; font-size: clamp(38px, 5vw, 56px); line-height: 1.12; letter-spacing: -.045em; font-weight: 690; }
.hero-lede { max-width: 660px; margin-bottom: 27px; color: #555851; font-size: 17px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid var(--line-dark); border-radius: 7px; font-size: 13px; font-weight: 620; transition: background .15s ease, border-color .15s ease; }
.button-primary { color: white; border-color: var(--ink); background: var(--ink); }
.button-primary:hover { border-color: #363936; background: #363936; }
.text-link { color: #3f5147; border-bottom: 1px solid #99a69f; font-size: 13px; }
.text-link:hover { color: var(--ink); border-color: var(--ink); }
.hero-note { margin: 15px 0 0; color: #858780; font-size: 12px; }
.product-shot { margin: 58px 0 0; }
.product-shot img { width: 100%; border: 1px solid #cfd2cb; border-radius: 8px; background: #111; box-shadow: 0 18px 44px rgba(20, 22, 20, .09); }
.product-shot figcaption { margin-top: 10px; color: #858780; font-size: 12px; text-align: right; }

.downloads, .details, .included, .faq { width: var(--page); margin: 0 auto; padding: 84px 0; border-top: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: 260px minmax(0, 620px); gap: 48px; align-items: start; margin-bottom: 34px; }
.section-intro h2 { margin: 0; font-size: 28px; line-height: 1.25; letter-spacing: -.025em; font-weight: 650; }
.section-intro p { margin: 2px 0 0; color: var(--muted); }

.download-shell { overflow: hidden; border: 1px solid var(--line-dark); border-radius: 8px; background: var(--surface); }
.platform-tabs { display: flex; border-bottom: 1px solid var(--line); background: #f0f1ed; }
.platform-tabs button { min-width: 110px; height: 46px; padding: 0 22px; border: 0; border-right: 1px solid var(--line); color: #696c65; background: transparent; cursor: pointer; font-size: 13px; }
.platform-tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 -2px var(--ink); }
.download-panel { padding: 30px; }
.recommended-download { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-bottom: 28px; }
.recommended-download h3 { margin: 0 0 5px; font-size: 21px; letter-spacing: -.02em; }
.recommended-download p { max-width: 620px; margin: 0; color: var(--muted); }
.download-options { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.download-options.one-column { grid-template-columns: 1fr; }
.download-options a { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-right: 1px solid var(--line); }
.download-options a:last-child { border-right: 0; }
.download-options a:hover { background: #f7f8f5; }
.download-options strong { font-size: 13px; }
.download-options span { color: var(--muted); font-size: 12px; }
.architecture-switch { display: inline-flex; margin-bottom: 22px; border: 1px solid var(--line-dark); border-radius: 6px; }
.architecture-switch button { padding: 6px 12px; border: 0; border-right: 1px solid var(--line); color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; }
.architecture-switch button:last-child { border-right: 0; }
.architecture-switch button.is-active { color: var(--ink); background: #eef0eb; }
.release-links { display: flex; gap: 20px; padding: 13px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.release-links a:hover { color: var(--ink); }

.detail-layout { display: grid; grid-template-columns: 390px 1fr; gap: 70px; align-items: start; }
.folder-list { padding: 22px; border: 1px solid var(--line-dark); border-radius: 8px; background: #f0f1ed; }
.folder-list-title { display: flex; align-items: center; gap: 11px; padding-bottom: 17px; border-bottom: 1px solid #d1d4cd; }
.folder-list dl { margin: 8px 0 0; }
.folder-list dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #d9dbd5; }
.folder-list dl div:last-child { border-bottom: 0; }
.folder-list dt { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.folder-list dd { margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.plain-features article { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.plain-features article:last-child { margin-bottom: 0; }
.plain-features h3 { margin-bottom: 7px; font-size: 17px; letter-spacing: -.015em; }
.plain-features p { max-width: 580px; margin: 0; color: var(--muted); }

.included-list { border-top: 1px solid var(--line); }
.included-list article { display: grid; grid-template-columns: 260px minmax(0, 620px); gap: 48px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.included-list h3 { margin: 0; font-size: 15px; }
.included-list p { margin: 0; color: var(--muted); }
.faq { padding-bottom: 64px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 19px 42px 19px 0; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 14px; color: #767972; font-size: 21px; font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 720px; padding: 0 0 20px; margin: 0; color: var(--muted); }

footer { width: var(--page); margin: 0 auto; padding: 32px 0 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; border-top: 1px solid var(--line); color: #747770; font-size: 12px; }
footer > div:first-child { display: flex; flex-direction: column; }
footer strong { color: var(--ink); font-size: 13px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--ink); }
footer p { grid-column: 1 / -1; max-width: 760px; margin: 0; }
:focus-visible { outline: 3px solid #567a65; outline-offset: 3px; }
[hidden] { display: none !important; }

@media (max-width: 760px) {
  :root { --page: calc(100vw - 30px); }
  .site-header { height: 62px; }
  .nav-link-wide { display: none; }
  .header-actions { gap: 14px; }
  .hero { padding: 62px 0 58px; }
  h1 { font-size: 39px; }
  .hero-lede { font-size: 16px; }
  .product-shot { margin-top: 42px; }
  .downloads, .details, .included, .faq { padding: 64px 0; }
  .section-intro { grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
  .detail-layout { grid-template-columns: 1fr; gap: 38px; }
  .recommended-download { align-items: flex-start; flex-direction: column; gap: 20px; }
  .download-options { grid-template-columns: 1fr; }
  .download-options a { border-right: 0; border-bottom: 1px solid var(--line); }
  .download-options a:last-child { border-bottom: 0; }
  .included-list article { grid-template-columns: 1fr; gap: 6px; }
  footer { grid-template-columns: 1fr; }
  footer p { grid-column: auto; }
}
@media (max-width: 440px) {
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .platform-tabs button { min-width: 0; flex: 1; padding: 0 10px; }
  .download-panel { padding: 23px 18px; }
  .release-links { padding: 13px 18px; }
  .footer-links { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
