@charset "UTF-8";
:root {
  --bg: #07080B;
  --bg-elev: #0D0F14;
  --panel: #11141B;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #E8EAED;
  --muted: #9AA3AE;
  --dim: #6B7380;
  --accent: #3DF5B0;
  --accent-2: #7C9CFF;
  --warn: #FFB547;
  --ink: #04110B;
  --code: #0B0D12;
  --font: "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --radius: 16px;
  --header: 64px;
}
* { box-sizing: border-box; }
html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 15%, transparent 72%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
::selection { background: rgba(61,245,176,.28); color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.container { width: min(1160px, calc(100% - 64px)); max-width: 100%; margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -80px; left: 16px; z-index: 100;
  padding: 8px 14px; background: var(--accent); color: var(--ink); border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.mono { font-family: var(--mono); }
.kicker, .eyebrow, .brand-note, .code-lang, .chip, .side-label, .demo-path, .bubble-from, .search-btn kbd {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}
.kicker { margin: 0 0 10px; }
.muted { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(7, 8, 11, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand-name { display: block; font-size: 17px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.brand-note { display: block; margin-top: 3px; letter-spacing: .1em; }
.site-nav { display: flex; justify-content: center; gap: 26px; font-size: 14px; }
.site-nav a { color: var(--muted); padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current=page], .header-about[aria-current=page] { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-about { font-size: 14px; color: var(--muted); }
.nav-about { display: none; }
.search-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 36px; padding: 0 10px 0 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255,255,255,.03); color: var(--muted); font-size: 13px;
}
.search-btn kbd {
  padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 6px;
  color: var(--dim); letter-spacing: .04em; text-transform: none;
}
.menu-btn {
  display: none; width: 40px; height: 36px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03);
}
.menu-btn span { display: block; width: 16px; height: 1.5px; margin: 4px auto; background: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  background: var(--accent); color: var(--ink);
  font-size: 14px; font-weight: 700; border: 0; border-radius: 10px;
  transition: box-shadow .2s, transform .2s, background .2s, border-color .2s;
}
.btn:hover { box-shadow: 0 0 28px rgba(61,245,176,.38); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { box-shadow: 0 0 20px rgba(124,156,255,.18); }
.text-link { color: var(--accent); font-size: 14px; font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.card {
  position: relative;
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .2s, transform .2s;
}
.card::before {
  content: "";
  position: absolute; left: 18px; right: 18px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.card:hover { border-color: rgba(61,245,176,.4); transform: translateY(-2px); }
.chip {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-elev);
  letter-spacing: .08em;
}
.badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  color: var(--ink); background: var(--accent); border-radius: 999px; padding: 2px 8px;
}
.empty-state {
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 36px 20px; text-align: center; color: var(--muted);
}

.hero-wrap { position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; width: 720px; height: 720px; right: -8%; top: -180px;
  background: radial-gradient(circle, rgba(61,245,176,.16) 0%, rgba(124,156,255,.12) 38%, transparent 68%);
  filter: blur(28px); pointer-events: none;
}
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px; align-items: center; padding: 72px 0 48px;
}
.hero-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
}
.grad {
  background: linear-gradient(90deg, #fff 10%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin: 0; max-width: min(540px, 100%); color: var(--muted); font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; word-break: break-word; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line);
}
.fact { min-width: 0; }
.fact strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.fact span { display: block; margin-top: 6px; color: var(--dim); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }

.demo-wrap { min-width: 0; max-width: 100%; }
.demo-card {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  max-width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.demo-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-elev);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #3d424c; }
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.demo-tabs { display: flex; gap: 4px; padding: 10px 12px 0; }
.demo-tab {
  flex: 1; min-width: 0; min-height: 34px;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px;
}
.demo-tab.is-active { background: rgba(61,245,176,.1); color: var(--accent); }
.demo-panel { padding: 14px 16px 18px; }
.demo-bubbles { display: grid; gap: 8px; margin-bottom: 14px; }
.bubble {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.bubble p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; }
.demo-q { margin: 0 0 12px; font-size: 14px; font-weight: 650; }
.prob-row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 3.2em;
  gap: 8px; align-items: center; margin: 8px 0;
}
.prob-label { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prob-bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.prob-bar span {
  display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--dim);
}
.prob-bar span.is-top { background: var(--accent); }
.demo-panel.is-active .prob-bar span { animation: bar-grow .7s ease; }
@keyframes bar-grow { from { width: 0; } to { width: var(--p); } }
.prob-num { font-family: var(--mono); font-size: 12px; text-align: right; color: var(--muted); }
.demo-score { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.demo-score strong { font-family: var(--mono); color: var(--text); }
.demo-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.conf, .route {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line);
}
.conf.is-high, .route.is-high { color: var(--accent); border-color: rgba(61,245,176,.35); background: rgba(61,245,176,.08); }
.conf.is-mid, .route.is-mid { color: var(--warn); border-color: rgba(255,181,71,.35); background: rgba(255,181,71,.08); }
.demo-caption { margin: 10px 0 0; color: var(--dim); font-size: 12px; }

.section { padding: 28px 0 56px; }
.section-title { margin: 0 0 22px; font-size: 28px; letter-spacing: -.03em; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 8px; }
.type-grid, .home-docs, .guide-grid, .doc-card-grid, .community-grid, .showcase-grid {
  display: grid; gap: 16px;
}
.type-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.type-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.type-card h3, .doc-card h3, .guide-card h3, .showcase-card h3 { margin: 0 0 8px; font-size: 18px; }
.type-card p, .doc-card p, .guide-card p, .showcase-card p { margin: 0; color: var(--muted); font-size: 14px; }
.type-sample {
  margin: 16px 0 0; padding: 10px 12px; border-radius: 10px;
  background: var(--code); color: var(--accent); font-family: var(--mono); font-size: 12px; overflow: auto;
}
.home-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-doc-group h3 { margin: 0 0 12px; font-size: 16px; }
.home-doc-group ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.home-doc-group li a { font-weight: 650; }
.home-doc-group li p { margin: 4px 0 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-card-top, .guide-card-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--dim); font-size: 12px; }
.guide-card h3 { margin: 14px 0 8px; }
.guide-card-meta { margin-top: 16px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { padding: 0 0 22px 22px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.timeline time, .news-meta time { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-right: 10px; }
.timeline a { display: inline-block; margin: 6px 0 4px; font-weight: 650; }
.timeline p { margin: 0; color: var(--muted); font-size: 14px; }

.stars { font-family: var(--mono); color: var(--accent); margin: 0; }
.showcase-card.is-featured { padding: 28px; margin-bottom: 16px; }
.showcase-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.showcase-by { color: var(--dim); font-size: 13px; margin: 4px 0 12px !important; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.showcase-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.showcase-cta { color: var(--muted); margin-top: 28px; }

.author-card {
  display: flex; gap: 14px; align-items: center;
  margin-top: 36px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.author-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.author-avatar { border-radius: 12px; background: var(--bg-elev); }
.author-card-lg { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 24px; }
.author-main { display: flex; gap: 14px; }
.author-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.qr-block { margin: 0; text-align: center; }
.qr-block img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); margin-inline: auto; }
.qr-block figcaption { margin-top: 8px; color: var(--dim); font-size: 12px; max-width: 240px; line-height: 1.5; }

.page-block { padding: 48px 0 80px; }
.page-header { max-width: 760px; margin-bottom: 32px; }
.page-header h1 { margin: 8px 0 12px; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.03em; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.breadcrumb { font-size: 13px; color: var(--dim); margin: 0 0 16px; }
.breadcrumb a:hover { color: var(--accent); }
.translate-note {
  margin: 18px 0 28px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(61,245,176,.28); background: rgba(61,245,176,.06);
  color: var(--muted); font-size: 13px; overflow-wrap: anywhere;
}
.translate-note a { color: var(--accent); }
.reading-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--dim); font-size: 13px; margin: 8px 0 28px; }

.docs-shell, .guide-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  gap: 40px;
  padding: 32px 0 80px;
  align-items: start;
}
.docs-shell { grid-template-columns: 260px minmax(0, 760px) 220px; justify-content: center; max-width: 100%; }
.guide-shell { grid-template-columns: minmax(0, 760px) 220px; justify-content: center; }
.docs-side, .toc { position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow: auto; }
.docs-mobile { display: none; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.docs-mobile summary { cursor: pointer; padding: 12px 14px; font-weight: 650; }
.docs-mobile .docs-side { position: static; max-height: none; padding: 0 8px 12px; }
.side-group { margin-bottom: 18px; }
.side-label { margin: 0 0 8px; }
.side-link, .toc-link {
  display: block; padding: 6px 10px; color: var(--muted); font-size: 13px; border-left: 2px solid transparent; border-radius: 0 8px 8px 0;
}
.side-link.is-current, .toc-link.is-active {
  color: var(--text); border-left-color: var(--accent); background: rgba(61,245,176,.07);
}
.toc-link.depth-3 { padding-left: 20px; font-size: 12px; }
.docs-main { min-width: 0; }
.docs-main > h1 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; line-height: 1.25; }

.prose { font-size: 16.5px; line-height: 1.85; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2em 0 .7em; font-size: 1.35em; letter-spacing: -.02em; }
.prose h3 { margin: 1.6em 0 .5em; font-size: 1.12em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(61,245,176,.4); }
.prose li { margin: .3em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose :not(pre) > code {
  font-family: var(--mono); font-size: .86em;
  background: rgba(255,255,255,.06); border-radius: 6px; padding: .1em .4em;
}
.prose img { border-radius: 12px; border: 1px solid var(--line); }
blockquote {
  margin: 1.2em 0; padding: .2em 0 .2em 16px;
  border-left: 2px solid var(--line-strong); color: var(--muted);
}
.callout { border-radius: 12px; padding: 14px 16px; margin: 1.2em 0; border: 1px solid var(--line); background: var(--bg-elev); }
.callout-tip { border-color: rgba(61,245,176,.35); background: rgba(61,245,176,.06); }
.callout-warn { border-color: rgba(255,181,71,.4); background: rgba(255,181,71,.07); }
.callout p { margin: .4em 0; }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.code-block {
  background: var(--code); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 1.4em 0;
}
.code-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-bottom: 1px solid var(--line);
}
.copy-btn {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 6px; padding: 4px 8px; font-size: 12px;
}
.copy-btn:hover { color: var(--text); border-color: var(--line-strong); }
.code-block pre { margin: 0; padding: 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; }
.code-block code { font-family: var(--mono); background: none; padding: 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-elev); }
.hljs-keyword, .hljs-selector-tag, .hljs-meta .hljs-keyword { color: var(--accent-2); }
.hljs-string, .hljs-attr, .hljs-attribute { color: var(--accent); }
.hljs-number, .hljs-literal { color: var(--warn); }
.hljs-comment, .hljs-quote { color: var(--dim); }
.hljs-built_in, .hljs-title, .hljs-section, .hljs-name { color: #9cdcff; }
.hljs-type, .hljs-class .hljs-title { color: #c792ea; }
.hljs-variable, .hljs-template-variable { color: #e8eaed; }
.hljs-symbol, .hljs-bullet, .hljs-link { color: var(--accent); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 40px 0 8px; }
.pager-link {
  display: block; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
}
.pager-link:hover { border-color: rgba(61,245,176,.4); }
.pager-link.is-next { text-align: right; }
.pager-link span { display: block; color: var(--dim); font-size: 12px; margin-bottom: 6px; }
.guide-controls { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border: 1px solid transparent; background: transparent; color: var(--muted);
  border-radius: 999px; padding: 6px 12px; min-height: 34px; font-size: 13px;
}
.filter[aria-pressed=true] { border-color: rgba(61,245,176,.35); background: rgba(61,245,176,.08); color: var(--accent); }
.search-field {
  display: flex; min-width: 240px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 0 12px;
}
.search-field input { width: 100%; border: 0; background: transparent; min-height: 40px; outline: none; }
.news-list { display: grid; gap: 28px; max-width: 760px; }
.news-item { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.news-item h2 { margin: 8px 0; }
.news-desc { color: var(--muted); }
.community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.community-card h2 { margin: 0 0 8px; }
.community-card.is-disabled { opacity: .72; pointer-events: none; }
.community-card .btn, .community-card .chip { margin-top: 16px; }
.official-links { display: grid; gap: 8px; margin-top: 16px; }
.official-links a { color: var(--accent); }
.about-page .prose { max-width: 760px; }
.doc-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.docs-index-group { margin-bottom: 36px; }
.docs-index-group h2 { margin: 0 0 14px; font-size: 20px; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; background: var(--bg-elev); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.footer-brand { font-size: 18px; font-weight: 750; }
.footer-inner p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-legal { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; line-height: 1.7; }
.footer-legal p { margin: 0; }

.not-found { padding: 96px 0 120px; max-width: 640px; }
.not-found-code { font-size: clamp(64px, 12vw, 120px); font-weight: 800; color: var(--accent); margin: 0 0 8px; line-height: 1; }
.not-found h1 { margin: 0 0 12px; }
.not-found p { color: var(--muted); }

.search-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.55);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 14vh 16px 16px;
}
.search-dialog {
  width: min(640px, 100%);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.search-dialog input {
  width: 100%; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; padding: 16px 18px; font-size: 16px; outline: none;
}
.search-results { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.search-results a { display: block; padding: 10px 12px; border-radius: 10px; }
.search-results a.is-active, .search-results a:hover { background: rgba(61,245,176,.08); }
.search-results strong { display: block; }
.search-results span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.search-hint { margin: 0; padding: 8px 16px 12px; color: var(--dim); font-size: 12px; }

@media (max-width: 1100px) {
  .docs-shell { grid-template-columns: 220px minmax(0, 1fr); width: min(1100px, calc(100% - 40px)); }
  .guide-shell { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .container { width: calc(100% - 32px); }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 40px 0 24px; gap: 28px; }
  .hero-actions .btn { width: 100%; }
  .demo-tabs { flex-wrap: wrap; }
  .hero-glow { width: 420px; height: 420px; right: -20%; top: -80px; }
  .header-inner { grid-template-columns: auto 1fr; gap: 12px; }
  .header-actions { justify-self: end; gap: 8px; }
  .header-about { display: none; }
  .search-btn kbd { display: none; }
  .search-btn { min-width: 36px; padding: 0 10px; }
  .site-nav {
    display: none; position: absolute; top: var(--header); left: 0; right: 0;
    background: rgba(7,8,11,.96); border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px; flex-direction: column; gap: 4px; align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 8px; }
  .nav-about { display: block; }
  .menu-btn { display: inline-block; }
  .guide-grid, .home-docs, .community-grid, .doc-card-grid { grid-template-columns: 1fr; }
  .author-card-lg { grid-template-columns: 1fr; }
  .author-aside { align-items: flex-start; }
}
@media (max-width: 720px) {
  .docs-shell, .guide-shell { grid-template-columns: minmax(0, 1fr); width: calc(100% - 28px); gap: 0; }
  .docs-side { display: none; }
  .docs-mobile { display: block; }
  .docs-mobile .docs-side { display: block; }
  .type-grid { grid-template-columns: 1fr; }
  .guide-controls { flex-direction: column; align-items: stretch; }
  .search-field { min-width: 0; }
  .pager { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .prob-label { white-space: normal; }
  .hero h1 { font-size: 44px; }
  .brand-note { display: none; }
  .demo-tab { font-size: 11px; }
  .demo-path { letter-spacing: .08em; }
  .hero-copy, .hero-lead, .lead, .prose, .translate-note, .docs-main, .page-header, .fact {
    max-width: 100%;
  }
  .hero-lead, .lead, .translate-note, .prose p {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
