:root{--bg:#f3f5f9;--panel:#ffffff;--surface:#edf0f5;--surface2:#f7f8fb;--paper:#ffffff;--rule:#e4e8ef;--ruleStrong:#cdd4df;--text:#151b26;--text2:#3d4756;--muted:#5b6576;--faint:#5f6979;--accent:#1856e8;--accentSoft:rgba(24,86,232,0.08);--accentLine:rgba(24,86,232,0.32);--accentInk:#0f45c8;--onAccent:#ffffff;--accent2:#151b26;--accent2Soft:rgba(21,27,38,0.06);--pos:#08764f;--neg:#c02a35;--warn:#8a5a00;--posSoft:rgba(8,118,79,0.10);--negSoft:rgba(192,42,53,0.09);--warnSoft:rgba(138,90,0,0.11);--accent-fill:#1856e8;--accent-fill-hover:#0f45c8;--on-accent-fill:#ffffff;--accent-tint:#edf3ff;--accent-tint-2:#dde8ff;--signal:#2f6bff;--focus:#1856e8;--ink-fill:#151b26;--ink-fill-hover:#2a3445;--on-ink-fill:#ffffff;--logo-ink:#0b1622;--logo-accent:#0033a0;--glass:color-mix(in srgb, #ffffff 94%, transparent);--hover:color-mix(in srgb, #151b26 5%, transparent);--ring:0 0 0 3px color-mix(in srgb, #1856e8 18%, transparent);--shadow-sm:0 4px 14px -4px hsl(220 40% 16% / 0.12);--shadow-lg:0 2px 6px hsl(220 40% 16% / 0.05), 0 20px 44px -16px hsl(220 40% 16% / 0.22);--shadow-xl:0 4px 10px hsl(220 40% 16% / 0.06), 0 32px 72px -24px hsl(220 40% 16% / 0.3);--band-grad:radial-gradient(ellipse 42% 120% at 88% -10%, rgba(80,140,255,0.16), transparent 70%), radial-gradient(ellipse 36% 90% at 8% 0%, rgba(140,120,255,0.10), transparent 70%), linear-gradient(180deg, #eaf1ff 0%, #f5f8ff 62%, #ffffff 100%);--link:#1856e8;--link-line:rgba(24,86,232,0.32);--scrim:rgba(15,23,42,0.28);--icon-filter:none;--code-bg:#0c0f15;--code-head:#121720;--code-rule:rgba(160,178,204,0.16);--code-fg:#c9d1dc;--code-dim:#7d8795;--code-str:#eceff3;--code-key:#8db0ff;--code-kw:#6f9bff;--code-fn:#d5dbe4;--code-tab:#a1abb8;--code-tab-on:#eceff3;--code-accent:#4580ff;--code-hover:rgba(160,178,204,0.10);--code-ok:#41c995;color-scheme:light;}
:root {
--font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Segoe UI", sans-serif;
--font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
--r-xs: 6px;
--r-lg: 10px;
--r-xl: 10px;
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
--dur-1: 120ms;
--dur-2: 180ms;
--dur-3: 260ms;
--topbar-h: 56px;
--nav-w: 272px;
--toc-w: 220px;
--content-w: 760px;
--gutter: clamp(16px, 4vw, 48px);
--ls-display: -0.01em;
--ls-title: 0em;
}
*, *::before, *::after { box-sizing: border-box; }
html {
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
background: var(--paper);
}
body {
margin: 0;
min-height: 100vh;
background: var(--paper);
color: var(--text);
font: 400 15px/1.75 var(--font-sans);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
overflow-x: clip;
}
body[data-nav-open] { overflow: hidden; }
a { color: var(--link); }
a { text-underline-offset: 3px; }
input, textarea { caret-color: var(--accent); }
html { scrollbar-color: var(--ruleStrong) var(--surface2); }
[hidden] { display: none !important; }
img, svg { vertical-align: middle; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
code, kbd, pre, samp { font-family: var(--font-mono); }
::selection { background: var(--accent-tint-2); color: var(--text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }
:focus:not(:focus-visible) { outline: none; }
.icon { flex: none; }
.sr-only {
position: absolute !important;
width: 1px; height: 1px;
padding: 0; margin: -1px;
overflow: hidden; clip: rect(0 0 0 0);
white-space: nowrap; border: 0;
}
.skip-link {
position: fixed; left: 12px; top: 10px; z-index: 100;
padding: 8px 14px;
border-radius: var(--r-xs);
background: var(--accent-fill); color: var(--on-accent-fill);
font-size: 14px; font-weight: 600; text-decoration: none;
transform: translateY(-160%);
transition: transform var(--dur-2) var(--ease-out);
}
.skip-link:focus { transform: none; }
kbd {
display: inline-flex; align-items: center; justify-content: center;
min-width: 20px; height: 20px; padding: 0 5px;
border: 1px solid var(--ruleStrong); border-bottom-width: 2px; border-radius: var(--r-xs);
background: var(--paper); color: var(--text2);
font: 500 11.5px/1 var(--font-mono);
}
.button {
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
min-height: 38px; padding: 0 16px;
border: 1px solid var(--ruleStrong); border-radius: var(--r-xs);
background: var(--paper); color: var(--text);
font: 500 14px/1 var(--font-sans); text-decoration: none; cursor: pointer;
transition: background-color var(--dur-1), border-color var(--dur-1), color var(--dur-1);
}
.button:hover { border-color: var(--accent); color: var(--accentInk); }
.button--primary { border-color: transparent; background: var(--accent-fill); color: var(--on-accent-fill); }
.button--primary:hover { border-color: transparent; background: var(--accent-fill-hover); color: var(--on-accent-fill); }
.icon-btn {
display: inline-grid; place-items: center; flex: none;
width: 36px; height: 36px; padding: 0;
border: 1px solid transparent; border-radius: var(--r-xs);
background: transparent; color: var(--text2); cursor: pointer;
transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
@media (max-width: 760px), (pointer: coarse) {
.icon-btn { width: 40px; height: 40px; }
.button { min-height: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
.topbar {
position: sticky; top: 0; z-index: 40;
display: flex; align-items: center; gap: 20px;
height: 64px; padding: 0 max(24px, calc((100vw - 1384px) / 2));
background: var(--panel); border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand-mark { flex: none; transition: transform 560ms var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.mark-k { fill: var(--logo-ink); }
.mark-a { fill: var(--logo-accent); }
.brand__name { font: 600 16px/1 var(--font-sans); }
.brand__site { display: none; align-items: center; gap: 10px; color: var(--text2); font: 500 15px/1 var(--font-sans); }
.brand__site::before { content: ""; width: 1px; height: 16px; background: var(--ruleStrong); }
.brand:focus-visible { outline-offset: 4px; }
.sites { display: flex; align-self: stretch; gap: 4px; margin-left: 8px; }
.sites__link {
display: inline-flex; align-items: center; padding: 0 10px;
color: var(--text2); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
box-shadow: inset 0 -2px 0 transparent; transition: color var(--dur-1), box-shadow var(--dur-2);
}
.sites__link:hover { color: var(--accent); }
.sites__link[aria-current] { color: var(--accentInk); box-shadow: inset 0 -2px 0 var(--accent); }
.sites__link:focus-visible { outline-offset: -2px; }
.topbar__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.topsearch { position: relative; display: flex; align-items: center; }
.topsearch__icon { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.topsearch__input {
width: 260px; height: 36px; padding: 0 12px 0 34px;
border: 1px solid var(--ruleStrong); border-radius: var(--r-xs); background: var(--paper); color: var(--text);
font: 400 13.5px/1 var(--font-sans); transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.topsearch__input::placeholder { color: var(--faint); }
.topsearch__input:hover { border-color: var(--accentLine); }
.topsearch__input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.lang-link, .console-link {
display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px;
border-radius: var(--r-xs); color: var(--text2); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.lang-link:hover, .console-link:hover { background: var(--hover); color: var(--accent); }
[data-site="mcp"] .topsearch__input, [data-site="skill"] .topsearch__input, [data-site="prompt"] .topsearch__input { min-width: 0; }
.footer { margin-top: 72px; border-top: 1px solid var(--rule); background: var(--surface2); }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 40px; width: min(100% - 2 * var(--gutter), 1240px); margin: 0 auto; padding: 40px 0 32px; }
.brand--footer .brand__name { font-size: 15px; }
.footer__text { max-width: 380px; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer__title { margin: 0 0 12px; color: var(--text); font-size: 13px; font-weight: 600; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__col a, .footer__base a { color: var(--text2); font-size: 13.5px; text-decoration: none; }
.footer__col a:hover, .footer__base a:hover { color: var(--accent); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; width: min(100% - 2 * var(--gutter), 1240px); margin: 0 auto; padding: 16px 0 28px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 12.5px; }
.footer__links, .footer__legal { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; }
.footer__base a { font-size: 12.5px; }
@media (max-width: 1099.98px) { .topsearch__input { width: 200px; } }
@media (max-width: 899.98px) {
.topbar { flex-wrap: wrap; height: auto; row-gap: 0; padding: 0 12px 0 16px; }
.brand { height: 52px; }
.sites { order: 3; width: calc(100% + 28px); margin: 0 -12px 0 -16px; padding: 0 8px; height: 42px; border-top: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.sites::-webkit-scrollbar { display: none; }
.topsearch { display: none; }
.footer__inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
.footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brand__name { display: none; }
.brand__site::before { display: none; }
.brand__site { display: inline-flex; color: var(--text); font-weight: 600; }
.console-link { padding: 0 8px; }
}
.code-block {
margin: 20px 0 24px; overflow: hidden;
border: 1px solid var(--code-rule); border-radius: var(--r-lg);
background: var(--code-bg); color: var(--code-fg);
color-scheme: dark;
}
.code-head {
display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 42px; padding: 0 6px 0 14px;
background: var(--code-head); border-bottom: 1px solid var(--code-rule);
}
.code-title { flex: 1; min-width: 0; overflow: hidden; color: var(--code-tab); font: 500 12.5px/1.2 var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.code-tabs { display: flex; flex: 1; min-width: 0; gap: 2px; margin-left: -6px; overflow-x: auto; scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tab {
position: relative; flex: none; height: 42px; padding: 0 10px;
border: 0; background: none; color: var(--code-tab); cursor: pointer;
font: 500 13px/1 var(--font-sans); white-space: nowrap;
transition: color var(--dur-1);
}
.code-tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--code-accent); transform: scaleX(0); transition: transform var(--dur-2) var(--ease-out); }
.code-tab:hover { color: var(--code-tab-on); }
.code-tab[aria-selected="true"] { color: var(--code-tab-on); }
.code-tab[aria-selected="true"]::after { transform: scaleX(1); }
.code-tab:focus-visible { outline: 2px solid var(--code-key); outline-offset: -4px; }
.code-copy {
display: inline-flex; align-items: center; gap: 6px; flex: none; height: 30px; margin-left: auto; padding: 0 9px;
border: 1px solid transparent; border-radius: var(--r-xs); background: none; color: var(--code-tab); cursor: pointer;
font: 500 12.5px/1 var(--font-sans);
transition: color var(--dur-1), background-color var(--dur-1), border-color var(--dur-1);
}
.code-copy:hover { color: var(--code-tab-on); background: var(--code-hover); border-color: var(--code-rule); }
.code-copy:focus-visible { outline: 2px solid var(--code-key); outline-offset: 0; }
.code-copy__done { display: none; }
.code-copy.is-copied { color: var(--code-ok); }
.code-copy.is-copied .code-copy__idle { display: none; }
.code-copy.is-copied .code-copy__done { display: block; }
.code-panel[hidden] { display: none; }
.code-body {
position: relative; margin: 0; padding: 16px 18px 18px; max-height: 640px; overflow: auto;
color: var(--code-fg); font: 13px/1.72 var(--font-mono); tab-size: 2;
scrollbar-width: thin; scrollbar-color: var(--code-rule) transparent;
}
.code-body:focus-visible { outline: 2px solid var(--code-key); outline-offset: -2px; border-radius: 0; }
.code-body code { display: block; width: max-content; min-width: 100%; font: inherit; }
.t-com { color: var(--code-dim); font-style: italic; }
.t-url { color: var(--code-str); text-decoration: underline; text-decoration-color: var(--code-dim); text-underline-offset: 3px; }
.t-key, .t-flag, .t-var { color: var(--code-key); }
.t-str { color: var(--code-str); }
.t-lit { color: var(--code-kw); }
.t-kw { color: var(--code-kw); font-weight: 600; }
.t-fn { color: var(--code-fn); }
.t-punc { color: var(--code-dim); }
.callout .code-block, li .code-block { margin: 12px 0; }
@media (max-width: 560px) {
.code-block { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-left: 0; border-right: 0; border-radius: 0; }
.callout .code-block, li .code-block, .table-wrap .code-block { margin-left: 0; margin-right: 0; border: 1px solid var(--code-rule); border-radius: var(--r-lg); }
.code-copy__label { display: none; }
.code-copy { width: 40px; height: 40px; justify-content: center; padding: 0; }
.code-tab { height: 44px; }
.code-body { padding: 14px 16px 16px; font-size: 12.5px; }
}
.code-note { margin: 0; padding: 12px 18px 0; color: var(--code-dim); font: 400 12.5px/1.6 var(--font-sans); }
:root { --wrap: 1384px; --topbar-h: 64px; }
.main { display: block; min-height: 60vh; }
.main:focus { outline: none; }
.wrap, .sections, .list-layout, .detail, .prose-wrap, .page-head__inner, .hero__inner, .cta-band__inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.hero { background: var(--surface2); border-bottom: 1px solid var(--rule); }
.hero__inner { padding: 38px 0 28px; }
.hero__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero__title { margin: 0; max-width: 760px; font: 650 clamp(26px, 2.6vw, 34px)/1.3 var(--font-sans); letter-spacing: var(--ls-display); text-wrap: balance; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; color: var(--muted); font-size: 13px; }
.hero__stats strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--text2);
font-size: 13.5px; text-decoration: none; transition: border-color var(--dur-1), color var(--dur-1);
}
.chip:hover { border-color: var(--accentLine); color: var(--accent); }
.search-field { position: relative; display: flex; align-items: center; gap: 8px; }
.search-field__icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search-field__input {
flex: 1; min-width: 0; height: 44px; padding: 0 14px 0 42px;
border: 1px solid var(--ruleStrong); border-radius: var(--r-xs); background: var(--paper); color: var(--text);
font: 400 15px/1 var(--font-sans); transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.search-field__input::placeholder { color: var(--faint); }
.search-field__input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.search-field--hero { max-width: 760px; margin-top: 22px; }
.search-field--hero .search-field__input { height: 52px; font-size: 15px; box-shadow: 0 2px 4px hsl(220 40% 16% / 0.03); }
.search-field--hero .search-field__go { height: 52px; padding: 0 25px; font-size: 15px; }
.search-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; color: var(--muted); font-size: 12.5px; }
.search-examples a { color: var(--text2); text-decoration: none; }
.search-examples a:hover { color: var(--accent); }
.search-examples kbd { margin-left: 2px; }
.home-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 36px; width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; padding-top: 26px; }
.home-content { min-width: 0; }
.home-sections { display: grid; gap: 34px; padding-top: 28px; }
.explore-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; min-height: 44px; border-bottom: 1px solid var(--rule); }
.explore-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0 12px; color: var(--muted); font-size: 13.5px; text-decoration: none; }
.explore-nav a:hover, .explore-nav .is-active { color: var(--accentInk); }
.explore-nav .is-active { box-shadow: inset 0 -2px var(--accent); font-weight: 600; }
.explore-nav a:last-child { margin-left: auto; }
.collections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.collection { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: 22px; border: 1px solid #dce6f5; border-radius: var(--r-lg); background: #f0f5fd; color: #234874; text-decoration: none; transition: border-color var(--dur-2), box-shadow var(--dur-2); }
.collection--1 { background: #f0f6f3; border-color: #dce9e2; color: #2f5949; }
.collection--2 { background: #f8f4ed; border-color: #ebe2d4; color: #6d5135; }
.collection:hover { border-color: currentColor; box-shadow: var(--shadow-sm); }
.collection__icon { display: block; margin-bottom: 16px; }
.collection h3 { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.5; }
.collection p { margin: 7px 0 18px; font-size: 12.5px; line-height: 1.7; }
.collection__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; margin-top: auto; font-size: 12px; }
.collection-intro { margin: 12px 0 0; max-width: 65ch; color: var(--text2); font-size: 15px; }
.companions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.companion { display: flex; justify-content: space-between; align-items: center; padding: 20px; border: 1px solid var(--rule); border-radius: var(--r-lg); color: var(--text2); text-decoration: none; }
.companion span { display: flex; align-items: center; gap: 12px; }
.companion:hover { color: var(--accentInk); border-color: var(--accentLine); }
.resource-rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.resource-rows li { border-bottom: 1px solid var(--rule); }
.resource-rows a { display: flex; align-items: center; gap: 14px; padding: 15px 8px; color: var(--text); text-decoration: none; }
.resource-rows a:hover { background: var(--surface2); }
.resource-rows__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.resource-rows__text strong { font-size: 14px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-rows__text > span { color: var(--muted); font-size: 12px; }
.resource-rows time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.search-field--list { flex: 1 1 280px; }
.search-field--list .search-field__input { height: 40px; font-size: 14px; }
.sections { display: grid; gap: 48px; padding-top: 40px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section__title { margin: 0; font: 650 19px/1.4 var(--font-sans); }
.section__more { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 14px; text-decoration: none; white-space: nowrap; }
.section__more:hover { color: var(--accentInk); }
.section--related { margin-top: 56px; }
.section--related .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tile {
display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px;
border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); color: var(--text); text-decoration: none;
transition: border-color var(--dur-1), box-shadow var(--dur-2);
}
.tile:hover { border-color: var(--accentLine); box-shadow: var(--shadow-sm); }
.tile__icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-xs); background: var(--accent-tint); color: var(--accent); flex: none; }
.tile__label { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; }
.tile__count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.cta-band { margin-top: 56px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--surface2); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 32px 0; }
.cta-band__title { margin: 0; font: 600 20px/1.4 var(--font-sans); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.main--home + .footer { margin-top: 0; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.card { position: relative; min-width: 0; }
.card__link {
display: flex; flex-direction: column; gap: 15px; height: 100%; padding: 20px;
border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); color: var(--text); text-decoration: none;
transition: border-color var(--dur-1), box-shadow var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.card__link:hover { border-color: var(--accentLine); box-shadow: var(--shadow-sm); }
.card__link:hover .card__name { color: var(--accent); }
.card__head { display: flex; align-items: center; gap: 11px; min-width: 0; padding-right: 22px; }
.card__title { display: grid; gap: 4px; min-width: 0; }
.card__name { overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; transition: color var(--dur-1); }
.card__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; color: var(--muted); font-size: 12px; line-height: 1.3; }
.card__pub { overflow: hidden; min-width: 0; text-overflow: ellipsis; white-space: nowrap; }
.card__sub .badge { flex: none; }
.card__pub:empty { display: none; }
.card__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text2); font-size: 13.5px; line-height: 1.6; min-height: calc(13.5px * 1.6 * 2); }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 11.5px; }
.card__cat { color: var(--text2); }
.card__tag { padding: 1px 6px; border-radius: var(--r-xs); background: var(--surface); }
.card__stars { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; font-variant-numeric: tabular-nums; }
.cards--compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.save-button { position: absolute; top: 12px; right: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 32px; height: 32px; padding: 0; border: 1px solid transparent; border-radius: var(--r-xs); background: transparent; color: var(--muted); cursor: pointer; }
.save-button:hover { color: var(--accent); background: var(--accent-tint); }
.save-button[aria-pressed="true"] { color: var(--accentInk); }
.save-button[aria-pressed="true"] svg { fill: var(--accent-tint-2); }
.save-button--full { position: static; width: auto; min-height: 38px; padding: 0 13px; border-color: var(--ruleStrong); font-size: 13px; }
.mark { display: inline-grid; place-items: center; flex: none; border-radius: var(--r-lg); font-weight: 600; line-height: 1; }
.mark--md { width: 40px; height: 40px; font-size: 17px; }
.mark--lg { width: 64px; height: 64px; border-radius: 12px; font-size: 28px; }
.mark--t0 { background: #e8efff; color: #1747c4; }
.mark--t1 { background: #e6f6f0; color: #08764f; }
.mark--t2 { background: #fff1e6; color: #a04a00; }
.mark--t3 { background: #f1ebff; color: #5b35c2; }
.mark--t4 { background: #e7f5fb; color: #0b6a8f; }
.mark--t5 { background: #fdeaef; color: #b0234a; }
.mark--t6 { background: #eef1f5; color: #3d4756; }
.mark--t7 { background: #f5f1e3; color: #7a5b00; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--r-xs); background: var(--surface); color: var(--text2); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.badge--official { background: var(--accent-tint); color: var(--accentInk); }
.badge--cn { background: var(--negSoft); color: var(--neg); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tag { padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--text2); font-size: 12.5px; }
.page-head { border-bottom: 1px solid var(--rule); background: var(--surface2); }
.page-head__inner { padding: 28px 0 24px; }
.page-head__title { margin: 0; font: 600 clamp(24px, 2.4vw, 30px)/1.3 var(--font-sans); }
.page-head__count { margin: 8px 0 0; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.crumbs a { color: var(--text2); text-decoration: none; }
.crumbs a:hover { color: var(--link); }
.crumbs__sep { color: var(--faint); }
.list-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 36px; padding-top: 28px; }
.catnav { position: sticky; top: calc(var(--topbar-h) + 20px); align-self: start; max-height: calc(100vh - var(--topbar-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
.catnav__title { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.catnav__saved, .catnav__source { display: flex; align-items: center; gap: 8px; padding: 12px 10px; font-size: 13px; color: var(--text2); text-decoration: none; }
.catnav__saved { border-top: 1px solid var(--rule); margin-top: 16px; }
.catnav__source { color: var(--muted); padding-top: 0; }
.catnav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.catnav__link {
display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px;
border-radius: var(--r-xs); color: var(--text2); font-size: 14px; text-decoration: none;
}
.catnav__link > span:first-of-type { flex: 1; min-width: 0; }
.catnav__link:hover { background: var(--hover); color: var(--text); }
.catnav__link[aria-current] { background: var(--accent-tint); color: var(--accentInk); font-weight: 500; }
.catnav__count { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.catnav__link[aria-current] .catnav__count { color: var(--accentInk); }
.list { min-width: 0; }
.list[aria-busy="true"] [data-list-results] { opacity: 0.55; transition: opacity var(--dur-2); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.toolbar__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar .search-field--list { flex-basis: 100%; }
.toolbar__filters .toggle { height: 34px; font-size: 12px; padding: 0 9px; border-color: var(--rule); }
.toolbar__filters .select select { height: 36px; font-size: 13px; border-color: var(--rule); }
.reset-filters { display: none; align-items: center; gap: 4px; border: 0; background: transparent; padding: 7px 0; color: var(--muted); font-size: 12px; cursor: pointer; }
.js .reset-filters { display: inline-flex; }
.reset-filters:hover { color: var(--accentInk); }
.select select {
height: 40px; padding: 0 30px 0 12px; border: 1px solid var(--ruleStrong); border-radius: var(--r-xs);
background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6576' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
color: var(--text); font: 400 14px/1 var(--font-sans); appearance: none; cursor: pointer;
}
.select select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.toggle { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--ruleStrong); border-radius: var(--r-xs); background: var(--paper); color: var(--text2); font-size: 14px; cursor: pointer; user-select: none; }
.toggle:hover { border-color: var(--accentLine); }
.toggle input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.toggle:has(input:checked) { border-color: var(--accentLine); background: var(--accent-tint); color: var(--accentInk); }
.toggle:has(input:focus-visible) { box-shadow: var(--ring); }
.list__status:empty { display: none; }
.list__status { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.list__empty { margin: 32px 0; padding: 40px 16px; border: 1px dashed var(--ruleStrong); border-radius: var(--r-lg); color: var(--muted); text-align: center; }
.list__empty strong { color: var(--text); font-weight: 600; }
.list__empty p { max-width: 50ch; margin: 8px auto 20px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 0; }
.pager__list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; }
.pager__num, .pager__step {
display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 36px; height: 36px; padding: 0 10px;
border: 1px solid var(--rule); border-radius: var(--r-xs); background: var(--paper); color: var(--text2); font-size: 14px; text-decoration: none; font-variant-numeric: tabular-nums;
}
a.pager__num:hover, a.pager__step:hover { border-color: var(--accentLine); color: var(--accent); }
.pager__num[aria-current] { border-color: var(--accent); background: var(--accent-fill); color: var(--on-accent-fill); }
.pager__step[aria-disabled] { color: var(--faint); background: var(--surface2); }
.pager__gap { padding: 0 4px; color: var(--muted); }
.detail { padding-top: 24px; }
.detail-nav { display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--rule); padding: 0 2px; }
.detail-nav a { padding: 14px 0; color: var(--text2); font-size: 13px; text-decoration: none; }
.detail-nav a:hover { color: var(--accentInk); }
.detail__main, .prompt, #hub-related, #vars-title { scroll-margin-top: 120px; }
.detail__top { padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 18px; }
.detail-head__text { flex: 1 1 320px; min-width: 0; }
.detail-head__title { margin: 0; font: 600 clamp(24px, 2.6vw, 32px)/1.25 var(--font-sans); overflow-wrap: anywhere; }
.detail-head__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 0; color: var(--text2); font-size: 14px; }
.detail-head__sub a { color: var(--text2); }
.detail-head__dot { color: var(--faint); }
.detail-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 28px; }
.detail__main { min-width: 0; }
.detail__lead { margin: 0 0 8px; color: var(--text); font-size: 16px; line-height: 1.8; }
.detail__lead { max-width: 72ch; }
.usage-example { border: 1px solid var(--rule); background: var(--surface2); border-radius: var(--r-lg); padding: 18px; }
.usage-example__text { margin: 0 0 14px; color: var(--text2); font-size: 14px; line-height: 1.8; max-width: 70ch; }
.usage-checks { margin: 16px 0 0; display: grid; gap: 12px; }
.usage-checks > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; font-size: 13px; }
.usage-checks dt { color: var(--text); font-weight: 550; }
.usage-checks dd { color: var(--muted); margin: 0; }
.setup-guide { display: flex; align-items: baseline; gap: 9px; padding: 12px 14px; border-radius: var(--r-xs); margin: 0 0 16px; color: var(--accentInk); background: var(--accent-tint); font-size: 13px; line-height: 1.7; }
.setup-guide .icon { align-self: start; margin-top: 3px; }
.detail__h2 { margin: 36px 0 14px; font: 600 18px/1.4 var(--font-sans); scroll-margin-top: calc(var(--topbar-h) + 16px); }
.detail__h3 { display: flex; align-items: center; gap: 8px; margin: 22px 0 -8px; color: var(--text2); font: 600 15px/1.4 var(--font-sans); }
.detail__note { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.features li { display: flex; gap: 10px; color: var(--text2); line-height: 1.7; }
.features .icon { margin-top: 5px; color: var(--pos); }
.quick-install { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.button--sm { min-height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.envs { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.envs li { max-width: 100%; }
.envs code { display: block; overflow-wrap: anywhere; padding: 4px 8px; border-radius: var(--r-xs); background: var(--surface); font-size: 13px; }
.detail__side { display: grid; gap: 16px; align-content: start; }
.side-card { padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); }
.side-card__title { margin: 0 0 12px; font-size: 14.5px; font-weight: 600; }
.side-card--cta { display: grid; gap: 10px; background: var(--surface2); }
.side-card--cta .side-card__title { margin-bottom: 4px; }
.facts { display: grid; gap: 0; margin: 0; }
.facts__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 13.5px; line-height: 1.6; }
.facts__row:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.facts dd a { color: var(--link); text-decoration: none; }
.facts dd a:hover { text-decoration: underline; }
.facts code { font-size: 12.5px; }
.facts__sep { margin: 0 6px; color: var(--faint); }
.button--block { width: 100%; }
.prompt { margin-top: 24px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--surface2); overflow: hidden; }
.prompt__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 8px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.prompt__tabs { display: flex; gap: 2px; }
.prompt__tab { position: relative; height: 44px; padding: 0 12px; border: 0; background: none; color: var(--text2); cursor: pointer; font: 500 14px/1 var(--font-sans); }
.prompt__tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform var(--dur-2) var(--ease-out); }
.prompt__tab[aria-selected="true"] { color: var(--accent); }
.prompt__tab[aria-selected="true"]::after { transform: scaleX(1); }
.prompt__only { padding: 0 8px; color: var(--muted); font-size: 12.5px; }
.prompt__panel[hidden] { display: none; }
.prompt__text { margin: 0; padding: 18px 20px 20px; max-height: 720px; overflow: auto; color: var(--text); font: 400 14.5px/1.85 var(--font-sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt__text:focus-visible { outline-offset: -2px; }
mark.var { padding: 1px 3px; border-radius: 3px; background: var(--warnSoft); color: var(--warn); font-family: var(--font-mono); font-size: 0.92em; }
mark.var.is-filled { background: var(--accent-tint); color: var(--accentInk); font-family: inherit; font-size: inherit; }
.vars__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.vars__field { display: grid; gap: 6px; }
.vars__label { color: var(--text2); font-size: 13.5px; font-weight: 500; }
.vars__label code { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }
.vars__input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--ruleStrong); border-radius: var(--r-xs); background: var(--paper); color: var(--text); font: 400 14px/1.6 var(--font-sans); resize: vertical; }
.vars__input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
[data-prompt-copy].is-copied { border-color: var(--pos); color: var(--pos); }
.prose-wrap { padding-top: 24px; color: var(--text2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.table th { background: var(--surface2); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table a { color: var(--link); text-decoration: none; }
.empty-page { width: min(100% - 2 * var(--gutter), 640px); margin: 0 auto; padding: 96px 0 40px; text-align: center; }
.empty-page__code { margin: 0; color: var(--accent); font: 600 48px/1 var(--font-mono); }
.empty-page__title { margin: 16px 0 24px; font: 600 24px/1.3 var(--font-sans); }
.empty-page__actions { display: flex; justify-content: center; gap: 10px; }
@media (max-width: 1023.98px) {
.hero__heading { align-items: start; flex-direction: column; gap: 12px; }
.home-layout { grid-template-columns: minmax(0, 1fr); }
.detail__grid { grid-template-columns: minmax(0, 1fr); }
.list-layout { grid-template-columns: minmax(0, 1fr); }
.catnav { display: none; }
}
@media (max-width: 899.98px) { :root { --topbar-h: 94px; } .section--related .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
.hero__inner { padding: 27px 0 22px; }
.hero__title { font-size: 25px; }
.hero__stats { font-size: 12px; gap: 8px 14px; }
.search-field--hero .search-field__go { padding: 0 16px; }
.search-examples kbd { display: none; }
.home-layout { padding-top: 16px; }
.home-sections { padding-top: 24px; gap: 30px; }
.explore-nav { gap: 2px 16px; }
.explore-nav a { padding-bottom: 10px; font-size: 12px; }
.explore-nav a:last-child { margin-left: 0; }
.collections { grid-template-columns: 1fr; gap: 10px; }
.collection { display: grid; grid-template-columns: 30px minmax(0, 1fr) 20px; gap: 4px 12px; padding: 18px; }
.collection__icon { grid-row: span 2; margin: 2px 0 0; }
.collection h3 { font-size: 15px; }
.collection p { grid-column: 2; margin: 0; font-size: 12px; }
.collection__foot { grid-column: 3; grid-row: 1 / 3; font-size: 0; justify-content: end; }
.collection__foot .icon { width: 18px; }
.companions { grid-template-columns: 1fr; }
.resource-rows time { display: none; }
.cards { grid-template-columns: minmax(0, 1fr); }
.card__link { padding: 18px; }
.save-button { width: 40px; height: 40px; top: 9px; right: 8px; }
.save-button--full { width: auto; }
.toolbar__filters { width: 100%; }
.toolbar__filters .select:first-child { flex: 1 1 100%; }
.toolbar__filters .select:first-child select { width: 100%; }
.pager__step span { display: none; }
.detail-head__actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-head__actions > * { min-width: 0; white-space: nowrap; }
.detail-head__actions > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.section--related .cards { grid-template-columns: minmax(0, 1fr); }
.detail-nav { gap: 20px; }
.facts__row { grid-template-columns: 84px minmax(0, 1fr); }
}
[data-list-results]:focus { outline: none; }
