:root {
  --bg: #FFFFFF;
  --bg-panel: #F7F7F6;
  --bg-cream: #FCF4E8;
  --border: #E3E6E4;
  --accent: #0A7558;
  --accent-dark: #07513E;
  --link: #2F5FB3;
  --apricot: #F3D9B5;
  --text: #16302A;
  --text-muted: #5A6964;
  --success: #1C8C5E;
  --warn: #B9782F;
  --error: #C2463A;
  --line-ink: rgba(22,48,42,.16);
  --line-soft: rgba(22,48,42,.07);
  --veil: rgba(22,48,42,.28);
  --ill-sage-50: #EEF5F1;
  --ill-sage-100: #DFECE5;
  --ill-sage-300: #AECBBE;
  --ill-sage-500: #6F9E8B;
  --ill-ink: #2B4841;
  --ill-ink-2: #3A5751;
  --ill-apricot-50: #FAF0E2;
  --ill-apricot-200: #F0D6B2;
  --ill-apricot-400: #E3B57F;
  --ill-apricot-600: #C98F55;
  --clear: transparent;
  --font-display: Georgia, "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r-pill: 999px;
  --r-card: 16px;
  --r-frame: 22px;
  --r-field: 10px;
  --r-icon: 9px;
  --r-focus: 4px;
  --r-line: 2px;
  --r-circle: 50%;
  --shadow-card: 0 1px 2px rgba(22,48,42,.05), 0 10px 22px -8px rgba(22,48,42,.11), 0 28px 54px -22px rgba(22,48,42,.16);
  --shadow-frame: 0 2px 6px rgba(22,48,42,.05), 0 26px 52px -26px rgba(22,48,42,.24);
  --shadow-tag: 0 6px 14px -8px rgba(122,82,30,.36);
  --shadow-chip: 0 8px 18px -12px rgba(22,48,42,.34);
  --shadow-knob: 0 1px 2px rgba(22,48,42,.22);
  --shadow-seg: 0 1px 2px rgba(22,48,42,.08), 0 3px 8px -3px rgba(22,48,42,.14);
  --shadow-fab: 0 2px 6px rgba(22,48,42,.06), 0 16px 34px -14px rgba(22,48,42,.30);
  --gutter: 48px;
  --content-width: 1200px;
  --reading-width: 820px;
  --header-width: 1440px;
  --nav-h: 72px;
  --peek: 28px;
  --space-section: 88px;
  --ease: ease;
  --time-fast: .2s;
  --time-panel: .28s;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
img { height: auto; }
svg, .icon, .dot { flex-shrink: 0; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
  text-wrap: balance;
  margin: 0 0 20px;
}
h1 { font-size: clamp(34px, 2.1vw + 18px, 48px); line-height: 1.2; letter-spacing: .012em; }
h2 { font-size: clamp(26px, 2.5vw, 36px); }
h3 { font-size: 25px; }
h4 { font-size: 21px; }
p { margin: 0 0 18px; }
strong { font-weight: 600; }
small, .small { font-size: 13px; }
.muted { color: var(--text-muted); }
.keep { white-space: nowrap; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
:not(pre) > code {
  padding: .12em .35em;
  border-radius: var(--r-focus);
  background: var(--bg-panel);
  color: var(--text);
  font-size: .9em;
}
pre {
  max-width: 100%;
  min-width: 0;
  margin: 20px 0;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-panel);
  color: var(--text);
  line-height: 1.75;
  font-size: 14px;
  overscroll-behavior-x: contain;
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
.wrap, .reading {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}
.reading { max-width: calc(var(--reading-width) + var(--gutter) * 2); }
.sec { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.grid > *, .feature-browser > *, .footer-grid > * { min-width: 0; }
.stack > * + * { margin-top: 24px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.row > * { min-width: 0; }
.panel, .card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-frame);
  background: var(--bg);
  color: var(--text);
  min-width: 0;
}
.card { box-shadow: var(--shadow-card); }
.panel--soft { background: var(--bg-panel); color: var(--text); }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.prose { min-width: 0; line-height: 1.9; overflow-wrap: break-word; }
.prose h2 { margin-top: 56px; }
.prose h3 { margin-top: 32px; }
.prose li { margin-bottom: 10px; }
.prose img { display: block; max-width: 100%; }
.prose > :first-child { margin-top: 0; }
.prose div, .prose section, .prose article { min-width: 0; max-width: 100%; }
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  z-index: 60;
}
.skip:focus { top: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border: 1px solid var(--clear);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
  transition: background-color var(--time-fast) var(--ease), color var(--time-fast) var(--ease), transform var(--time-fast) var(--ease);
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn--solid:hover, .btn--solid.is-hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--bg); transform: translateY(-1px); }
.btn--line { background: var(--clear); border-color: var(--text); color: var(--text); }
.btn--line:hover, .btn--line.is-hover { background: var(--bg); color: var(--text); transform: translateY(-1px); }
.btn--small { min-height: 44px; padding: 9px 20px; font-size: 14px; }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel); color: var(--text-muted); border-color: var(--border); cursor: not-allowed; transform: none; }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.masthead, #site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.masthead__inner {
  position: relative;
  z-index: 2;
  max-width: var(--header-width);
  height: var(--nav-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  background: var(--bg);
  color: var(--text);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .01em;
  flex-shrink: 0;
}
.brand__mark { width: 34px; height: 34px; display: block; flex-shrink: 0; }
.tabs { margin-left: 56px; height: 100%; min-width: 0; }
.tabs__list {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tabs__item { height: 100%; }
.tabs__link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.tabs__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: var(--r-line);
  background: var(--accent);
  color: var(--bg);
  transform: scaleX(0);
  opacity: 0;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.tabs__link:hover { color: var(--accent-dark); }
.tabs__link:hover::after { transform: scaleX(1); opacity: .28; }
.tabs__link[aria-current="page"] { color: var(--accent-dark); font-weight: 600; }
.tabs__link[aria-current="page"]::after { transform: scaleX(1); opacity: 1; }
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; padding-left: 16px; }
.language { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 16px 7px 14px;
  border: 1px solid var(--line-ink);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
.lang:hover { border-color: var(--text); }
.lang svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.lang__caret { font-size: 11px; color: var(--text-muted); }
.lang__short { display: none; }
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 190px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-card);
  z-index: 5;
}
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; color: var(--text); text-decoration: none; border-radius: var(--r-field); }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--bg-panel); color: var(--accent-dark); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line-ink);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
}
.menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.nav-drawer {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 4;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--gutter) 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.nav-drawer ul { list-style: none; padding: 0; margin: 0; }
.nav-drawer a { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 10px 16px; color: var(--text); text-decoration: none; border-radius: var(--r-field); }
.nav-drawer a:hover, .nav-drawer a[aria-current] { background: var(--bg-panel); color: var(--accent-dark); }
.nav-drawer__languages { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.nav-veil { position: fixed; inset: var(--nav-h) 0 0; z-index: 0; border: 0; background: var(--veil); color: var(--text); }
.site-footer {
  padding-top: 64px;
  padding-bottom: 100px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 36px; }
.footer-brand p { color: var(--text-muted); margin-top: 20px; font-size: 14px; }
.site-footer h2 { font-family: var(--font-body); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer nav a { color: var(--text-muted); font-size: 14px; text-decoration: none; }
.site-footer nav a:hover { color: var(--link); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-muted); }
.reveal { opacity: 1; }
.reveal-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal-ready .reveal.shown { opacity: 1; transform: none; }
.decorated { position: relative; overflow-x: clip; }
.tilt { transform: rotate(-1.2deg); }
@media (max-width: 1350px) {
  .tabs { margin-left: 32px; }
  .tabs__list { gap: 22px; }
}
@media (max-width: 1279px) {
  .masthead__inner { max-width: 100%; }
  #site-header .tabs { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-tools { margin-left: auto; }
  .lang { min-height: 44px; }
}
@media (max-width: 1080px) {
  :root { --gutter: 24px; }
  .masthead--preview .masthead__inner { height: auto; flex-wrap: wrap; padding-top: 14px; }
  .masthead--preview .tabs { order: 3; width: 100%; height: 48px; margin: 10px 0 0; overflow-x: auto; scrollbar-width: none; }
  .masthead--preview .tabs::-webkit-scrollbar { display: none; }
  .masthead--preview .tabs__list { gap: 22px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn { min-height: 48px; padding: 11px 22px; font-size: 15px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --space-section: 56px; }
  .grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .brand { font-size: 16px; gap: 8px; }
  #site-header .brand { min-width: 0; flex-shrink: 1; }
  #site-header .brand > span { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
  .header-tools { padding-left: 4px; gap: 5px; margin-left: auto; }
  .lang { padding-inline: 11px; }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .tilt, .ucard--toggles, .ucard--import { transform: none !important; }
  .card, .panel { padding: 22px; }
  pre { padding: 16px; }
  h3 { font-size: 23px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  #site-header .brand { font-size: 14px; }
  #site-header .brand__mark { width: 30px; height: 30px; }
  #site-header .lang svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .btn:hover, .platforms__link:hover, .dl-fab:hover { transform: none; }
}