:root {
  --paper: #fafaf8;
  --surface: #fff;
  --ink: #202124;
  --muted: #65646d;
  --accent: #6252b7;
  --accent-hover: #4f409d;
  --line: #e4e3e7;
  --tint: #eeedf5;
  --on-accent: #fff;
  --inset: clamp(20px, 5vw, 76px);
  --brand-ink: var(--ink);
  --brand-mist: var(--paper);
  --brand-muted: var(--muted);
  --brand-iris: var(--accent);
  --brand-line: var(--line);
  --brand-surface: var(--surface);
  --brand-soft: var(--tint);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1b20;
    --surface: #25252b;
    --ink: #f4f2f5;
    --muted: #bab8c2;
    --accent: #bfb1fc;
    --accent-hover: #dacfff;
    --line: #39383f;
    --tint: #302d3b;
    --on-accent: #221b38;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 5.75rem; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; min-width: 0; }
a { color: var(--accent); text-decoration-thickness: .07em; text-underline-offset: .21em; }
a:hover { color: var(--accent-hover); }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
:where(a, button, input, summary, select, textarea):focus-visible {
  outline: 3px solid var(--accent); outline-offset: 4px;
}
:where(a, button, summary) { touch-action: manipulation; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.24; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.4vw, 3.9rem); font-weight: 670; letter-spacing: -.055em; }
h2 { font-size: clamp(1.65rem, 2.6vw, 2.55rem); font-weight: 640; letter-spacing: -.042em; }
h3 { font-size: 1.25rem; font-weight: 640; letter-spacing: -.024em; }
:lang(zh) :is(h1, h2, h3) { letter-spacing: -.035em; line-break: strict; }
::selection { color: var(--ink); background: color-mix(in srgb, var(--accent) 20%, var(--paper)); }
.wrap { width: min(1200px, calc(100% - 2 * var(--inset))); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 20; padding: 9px 16px; background: var(--surface); }
.skip:focus { top: 8px; }
.site-header {
  position: sticky; z-index: 10; top: 0; background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; min-height: 76px; gap: clamp(18px, 2.35vw, 36px); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.identity-lockup, .identity-lockup img { display: block; width: auto; height: 33px; }
.navlinks { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 2.15vw, 32px); }
.navlinks a, .lang { text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 520; white-space: nowrap; padding-block: 10px; }
.navlinks a:hover, .lang:hover, .navlinks a[aria-current] { color: var(--accent); }
.lang { color: var(--muted); }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: .35em;
  min-height: 44px; padding: 10px 19px; border: 1px solid transparent;
  border-radius: 8px; background: var(--accent); color: var(--on-accent);
  font-size: 15px; line-height: 1.45; font-weight: 600; text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease;
}
.button:hover { background: var(--accent-hover); color: var(--on-accent); }
.button.secondary, .button.light { background: var(--surface); border-color: var(--line); color: var(--ink); }
.button.secondary:hover, .button.light:hover { border-color: var(--accent); color: var(--accent); }
.nav .button { min-height: 36px; font-size: 14px; padding: 7px 14px; white-space: nowrap; gap: .25em; }
.actions, .release-actions, .reading-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.release-notes, .fine, .article-meta, figcaption { color: var(--muted); font-size: .875rem; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.7; }
.muted { color: var(--muted); }
.textlink, .reading-links a { font-weight: 560; }
.hash, code { overflow-wrap: anywhere; }
pre { max-width: 100%; overflow-x: auto; background: var(--tint); padding: 16px 20px; border-radius: 6px; }
code, pre { font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-size: .89em; }
pre code { font-size: 1em; overflow-wrap: normal; }
details > summary { padding-block: 11px; font-weight: 560; }
summary::marker { color: var(--muted); font-size: .86em; }
.eyebrow { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .065em; }
.notice { padding: 13px 18px; border-inline-start: 2px solid var(--accent); background: var(--tint); }
.section { padding-block: 50px; }
.page-head { padding: clamp(42px, 6vw, 84px) 0 clamp(24px, 3vw, 42px); }
.page-head .eyebrow { margin-bottom: 12px; }
.page-head h1 { margin-bottom: 14px; }
.wrap:has(> .page-head), .wrap.prose { max-width: 800px; }
.prose { line-height: 1.85; }
.prose > * + *, .prose details > * + * { margin-top: 1em; }
.prose > h2, .prose details > h2 { margin-top: 1.75em; font-size: clamp(1.45rem, 2.1vw, 2rem); }
.prose h3 { margin-top: 1.6em; }
.prose li + li { margin-top: .45em; }
.prose ul, .prose ol { padding-inline-start: 1.45rem; }
.prose video { max-height: 520px; border-radius: 8px; }
.prose :is(p, li) { overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.reading-links { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.support-spread { display: grid; grid-template-columns: 4fr 5fr; gap: min(9vw, 140px); padding-block: clamp(58px, 8vw, 116px) clamp(40px, 6vw, 90px); }
.support-intro p { margin: 20px 0 28px; max-width: 22em; }
.support-options { border-top: 1px solid var(--line); }
.support-options > a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 22px 2px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.support-options strong { display: block; font-size: clamp(1.1rem, 1.45vw, 1.32rem); font-weight: 620; }
.support-options small { display: block; color: var(--muted); font-size: .94rem; margin-top: 3px; }
.support-options a > span:last-child { color: var(--accent); }
.support-options a:hover strong { color: var(--accent); }
.support-options .fine { margin-top: 18px; }
.error-page { padding-block: 12vh; }
.identity-mark img { width: 52px; margin-bottom: 30px; }
.error-page p { margin-top: 24px; }
.footer { margin-top: clamp(48px, 6.5vw, 96px); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 38px; gap: 32px; }
.footer .identity-lockup img, .footer .identity-lockup { height: 26px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 25px; align-items: center; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 13px; padding-block: 4px; }
.footer nav a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .nav { min-height: 62px; gap: 18px; }
  .navlinks { gap: 15px; }
  .identity-lockup img, .identity-lockup { height: 29px; }
  .support-spread { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 19px; padding-block: 28px; }
  .footer nav { gap: 3px 18px; }
}
@media (max-width: 525px) {
  :root { --inset: 20px; }
  html { scroll-padding-top: 72px; }
  .nav { min-height: 57px; gap: 13px; width: calc(100% - 28px); }
  .identity-lockup, .identity-lockup img { height: 22px; }
  .navlinks { gap: 12px; }
  .navlinks a, .lang { font-size: 13px; }
  .nav .button { font-size: 12px; min-height: 32px; padding: 6px 9px; border-radius: 6px; }
  .page-head { padding-top: 38px; }
  .support-spread { padding: 42px 0 8px; }
  .support-options > a { padding: 16px 0; }
}
@media (max-width: 374px) {
  :root { --inset: 17px; }
  .nav { gap: 10px; }
  .navlinks { gap: 9px; }
}
@media (max-width: 420px) {
  html:lang(en) .nav-download span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}
