* { box-sizing: border-box; }
html { color-scheme: dark; --bg:#1f1f1f; --sidebar:#171717; --panel:#252525; --hover:#2c2c2c; --text:#ededec; --muted:#b5b5b5; --faint:#929292; --line:#363636; --active:#303030; --accent:#b5c7f7; --side:268px; scroll-behavior:smooth; scroll-padding-top:90px; }
html[data-theme=light] { color-scheme:light; --bg:#fff; --sidebar:#fafafa; --panel:#f6f6f6; --hover:#f0f0f0; --text:#242424; --muted:#555; --faint:#6c6c6c; --line:#e5e5e5; --active:#eaeaea; --accent:#36589d; }
body { margin:0; background:var(--bg); color:var(--text); font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif; font-size:16px; line-height:1.75; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; } button,input,select { font:inherit; color:inherit; } button { cursor:pointer; background:none; border:0; } a,button { touch-action:manipulation; -webkit-tap-highlight-color:transparent; } button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
svg { width:18px; height:18px; flex-shrink:0; vertical-align:middle; } h1,h2,h3,p { margin:0; } [hidden] { display:none!important; } kbd { font-family:inherit; font-size:11px; line-height:1.5; border:1px solid var(--line); border-radius:4px; color:var(--faint); padding:1px 5px; white-space:nowrap; }
.skip { position:fixed; top:-80px; left:15px; z-index:100; background:var(--panel); padding:12px; } .skip:focus { top:12px; }
.icon-button { width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; color:var(--muted); border-radius:6px; padding:0; flex-shrink:0; } .icon-button:hover { color:var(--text); background:var(--hover); }
.sidebar { width:var(--side); position:fixed; inset:0 auto 0 0; z-index:45; border-right:1px solid var(--line); background:var(--sidebar); display:flex; flex-direction:column; }
.sidebar-brand { height:56px; padding:0 14px 0 20px; display:flex; align-items:center; justify-content:space-between; flex-shrink:0; }
.brand { display:flex; gap:10px; align-items:center; } .brand img { width:147px; height:auto; } .brand .light-logo { display:none; } [data-theme=light] .brand .dark-logo { display:none; } [data-theme=light] .brand .light-logo { display:block; } .brand span { color:var(--muted); font-size:13px; }
.sidebar-brand .icon-button { width:26px; }
.sidebar-scroll { overflow:auto; flex:1; min-height:0; padding:26px 14px 20px; scrollbar-width:thin; scrollbar-color:var(--line) transparent; }
.nav-group { margin:0 0 26px; } .nav-caption { font-size:13px; font-weight:600; color:var(--text); padding:0 12px; margin-bottom:8px; line-height:1.5; }
.nav-item,.branch-row { min-height:34px; color:var(--muted); border-radius:6px; font-size:14px; line-height:1.5; margin:2px 0; }
.nav-item { display:block; padding:7px 12px; } .nav-item:hover,.branch-row:hover { background:var(--hover); color:var(--text); } .nav-item.active,.branch-row.active { background:var(--active); color:var(--text); font-weight:500; }
.branch-row { display:flex; align-items:center; } .branch-row>a,.branch-row>span { padding:7px 12px; flex:1; min-width:0; } .branch-row>span { font-size:13px; } .branch-row button { width:32px; height:32px; display:grid; place-items:center; color:var(--muted); flex-shrink:0; } .branch-row svg { width:12px; height:12px; transition:transform .16s; } .branch-row button[aria-expanded=true] svg { transform:rotate(90deg); }
.branch-children { margin:4px 0 8px 16px; padding-left:9px; border-left:1px solid var(--line); } .branch-children .nav-item { position:relative; padding:6px 9px; font-size:13px; } .branch-children .nav-item.active:before { content:""; position:absolute; left:-10px; width:2px; background:var(--text); top:7px; bottom:7px; } .branch-children .branch-row>a,.branch-children .branch-row>span { padding-left:9px; } .branch-children .branch-children { margin-left:10px; }
.sidebar-footer { color:var(--faint); font-size:11px; padding:0 12px 12px; }
.shell { margin-left:var(--side); min-width:0; }
.header { height:56px; padding:0 24px; position:sticky; top:0; z-index:35; display:flex; align-items:center; gap:18px; background:var(--bg); border-bottom:1px solid var(--line); }
.header-search { display:flex; align-items:center; gap:10px; width:360px; max-width:44%; color:var(--faint); padding:6px 10px; border:1px solid var(--line); border-radius:7px; text-align:left; font-size:13px; line-height:1.6; } .header-search:hover { background:var(--panel); } .header-search svg { width:16px; } .header-search kbd { margin-left:auto; }
.header-actions { display:flex; gap:17px; align-items:center; margin-left:auto; font-size:13px; white-space:nowrap; } .utility-link { color:var(--muted); } .utility-link:hover { color:var(--text); } .studio-link { padding:5px 12px; background:var(--text); color:var(--bg); border-radius:7px; display:flex; gap:8px; align-items:center; font-size:12px; font-weight:600; } .studio-link svg { width:12px; height:12px; } .header-actions select { padding:4px 0; border:0; background:var(--bg); max-width:82px; font-size:12px; } .mobile-menu,.restore-sidebar { display:none; }
.sidebar-collapsed .sidebar { display:none; } .sidebar-collapsed .shell { margin-left:0; } .sidebar-collapsed .restore-sidebar { display:flex; }
main { padding:50px 36px 24px; max-width:1280px; margin:0 auto; outline:none; min-width:0; }
.article-grid { display:grid; grid-template-columns:minmax(0,760px) 174px; gap:48px; justify-content:center; } .article-grid.wide { display:block; max-width:900px; margin:auto; } article { min-width:0; }
.welcome-banner { height:200px; display:flex; align-items:center; justify-content:center; gap:26px; background:#050505; border-radius:12px; margin:0 0 34px; padding:32px; color:#f4f4f4; } .welcome-banner img { width:min(270px,48%); height:auto; } .welcome-banner span { border-left:1px solid #444; padding-left:26px; font-size:34px; line-height:1.35; font-weight:500; letter-spacing:-.02em; white-space:nowrap; }
.breadcrumb { margin-bottom:10px; color:var(--muted); font-size:13px; } .breadcrumb a:hover { text-decoration:underline; }
.article-head h1 { font-size:28px; line-height:1.4; letter-spacing:-.02em; font-weight:650; margin-bottom:12px; } .lead { color:var(--muted); font-size:16px; line-height:1.8; max-width:800px; }
.page-actions { display:flex; align-items:center; gap:12px; margin-top:23px; padding-bottom:24px; border-bottom:1px solid var(--line); margin-bottom:26px; font-size:12px; color:var(--muted); }
.page-actions>button,.open-menu>summary { padding:5px 8px; display:flex; gap:7px; align-items:center; border-radius:5px; cursor:pointer; line-height:1.5; } .page-actions>button { margin-left:-8px; } .page-actions svg { width:14px; height:14px; } .page-actions>button:hover,.open-menu>summary:hover { background:var(--hover); color:var(--text); } .open-menu { position:relative; } .open-menu>summary { list-style:none; } summary::-webkit-details-marker { display:none; } .open-menu>summary svg { width:11px; } .open-options { position:absolute; top:36px; left:0; width:206px; background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:5px; z-index:25; box-shadow:0 10px 35px #0003; } .open-options button,.open-options a { display:flex; width:100%; align-items:center; gap:9px; text-align:left; padding:8px; border-radius:5px; font-size:12px; } .open-options button:hover,.open-options a:hover { background:var(--hover); color:var(--text); }
.article-body { line-height:1.9; font-size:15px; overflow-wrap:break-word; } .article-body p { margin:16px 0; } .article-body h2 { font-size:22px; line-height:1.5; font-weight:600; letter-spacing:-.015em; margin:36px 0 16px; } .article-body h3 { font-size:17px; font-weight:600; margin:24px 0 10px; } .article-body h2:first-child { margin-top:22px; } .article-body ul,.article-body ol { padding-left:24px; margin:18px 0 24px; } .article-body li { padding-left:3px; margin:10px 0; } .article-body li p { margin:5px 0 14px; color:var(--muted); } .article-body strong { font-weight:600; }
.article-body a,.support-line a { text-decoration:underline; text-decoration-color:var(--faint); text-underline-offset:4px; } .article-body a:hover,.support-line a:hover { color:var(--accent); text-decoration-color:var(--accent); } .doc-list a { font-weight:550; } .doc-list li { margin:14px 0; } .list-description { display:block; font-size:14px; color:var(--muted); margin-top:3px; } .model-list li { margin:15px 0; }
.article-body .heading-anchor { margin-left:9px; color:var(--faint); opacity:0; font-weight:400; text-decoration:none; } h2:hover .heading-anchor,.heading-anchor:focus-visible { opacity:1; }
.article-body figure { margin:25px 0; } .article-body figure button { width:100%; padding:0; display:block; cursor:zoom-in; } .article-body img { display:block; width:100%; max-height:540px; object-fit:contain; border:1px solid var(--line); border-radius:8px; background:var(--sidebar); } .article-body figcaption { color:var(--faint); font-size:12px; line-height:1.7; margin-top:10px; }
.article-body .entry { border:1px solid var(--line); background:var(--panel); padding:10px 14px; border-radius:6px; font-size:13px; color:var(--muted); }
.example,.prompt-example,.note,.result,.callout { padding:16px 18px; margin:20px 0; border:1px solid var(--line); background:var(--panel); border-radius:8px; } .example pre,.prompt-example pre { font-size:13px; font-family:ui-monospace,Consolas,monospace; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; margin:10px 0 0; } [data-copy] { border:1px solid var(--line); border-radius:5px; padding:3px 8px; font-size:11px; color:var(--muted); } .callout p,.note p { margin:6px 0 0; }
.table-scroll { overflow-x:auto; width:100%; margin:22px 0; } .article-body table { border-collapse:collapse; width:100%; font-size:13px; line-height:1.7; } .article-body th,.article-body td { text-align:left; border:1px solid var(--line); padding:11px 14px; vertical-align:top; } .article-body th { background:var(--panel); font-weight:600; } .article-body td { color:var(--muted); }
.related-links,.article-body .cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:24px 0; } .related-links a,.article-body .cards a { border:1px solid var(--line); border-radius:8px; padding:15px 17px; text-decoration:none; font-size:14px; } .related-links a:hover,.article-body .cards a:hover { background:var(--panel); } .article-body small { display:block; color:var(--muted); font-size:12px; margin-top:7px; }
.support-line { color:var(--muted); font-size:14px; margin:36px 0 28px; }
.toc { position:sticky; top:92px; align-self:start; max-height:calc(100dvh - 118px); overflow:auto; scrollbar-width:thin; font-size:12px; } .toc>p { font-size:12px; font-weight:500; margin:0 0 10px; } .toc a { display:block; padding:6px 0 6px 12px; color:var(--faint); border-left:1px solid var(--line); line-height:1.6; } .toc a:hover { color:var(--text); } .toc a.active { border-color:var(--text); color:var(--text); }
.article-pagination { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:34px 0 18px; } .article-pagination a { padding:16px 20px; border:1px solid var(--line); border-radius:9px; font-size:14px; } .article-pagination a:hover { background:var(--panel); } .article-pagination small { display:block; color:var(--faint); margin-bottom:5px; font-size:12px; } .article-pagination strong { font-weight:550; } .article-pagination p { font-size:12px; color:var(--faint); margin-top:5px; } .article-pagination>:last-child { text-align:right; }
.page-footer { display:flex; justify-content:space-between; gap:14px; font-size:11px; color:var(--faint); margin-top:40px; padding:20px 0 0; }
.release { padding-left:22px; border-left:1px solid var(--line); } .release>h2 { position:relative; } .release>h2:before { content:""; width:7px; height:7px; background:var(--text); border-radius:50%; position:absolute; left:-26px; top:13px; } .update-entry { border-top:1px solid var(--line); padding:20px 0; } .badge { display:inline-block; font-size:11px; color:var(--muted); padding:2px 6px; background:var(--panel); border:1px solid var(--line); border-radius:5px; } .update-entry h3 { display:inline; font-size:16px; margin:0 0 0 10px; } .update-entry p { font-size:14px; color:var(--muted); margin:10px 0 0; }
.hero { padding:30px 0; } .hero h1 { font-size:28px; } .primary-link { color:var(--accent); }
dialog { color:var(--text); background:var(--sidebar); border:1px solid var(--line); border-radius:12px; box-shadow:0 24px 100px #0007; } dialog::backdrop { background:#0008; backdrop-filter:blur(3px); }
#search-dialog { width:640px; max-width:calc(100vw - 28px); max-height:80dvh; padding:0; top:12dvh; margin-top:0; } .search-top { display:flex; align-items:center; gap:12px; border-bottom:1px solid var(--line); padding:14px 18px; } .search-top input { flex:1; min-width:0; background:none; border:0; outline:none; font-size:15px; } .search-top input:focus-visible { outline:none; } .search-top>span { color:var(--faint); } #search-status { font-size:12px; color:var(--faint); padding:12px 20px; } #search-results { padding:0 9px 9px; max-height:50dvh; overflow:auto; } .search-result { display:block; padding:12px; border-radius:7px; } .search-result:hover,.search-result.selected { background:var(--active); } .search-result small { color:var(--faint); font-size:11px; display:block; } .search-result strong { display:block; font-size:14px; font-weight:500; margin-top:3px; } .search-result p { font-size:12px; color:var(--muted); margin-top:3px; } .search-hint { display:flex; align-items:center; gap:6px; padding:10px 19px; border-top:1px solid var(--line); font-size:11px; color:var(--faint); } .search-hint kbd { margin-left:auto; }
#image-dialog { max-width:95vw; max-height:94dvh; padding:18px; } #image-dialog>button { display:flex; margin-left:auto; font-size:24px; } #image-dialog img { max-width:88vw; max-height:77dvh; display:block; margin:auto; object-fit:contain; } #image-dialog p { font-size:12px; color:var(--muted); margin-top:12px; }
#markdown-dialog { padding:0; width:780px; max-width:calc(100vw - 28px); max-height:85dvh; } .markdown-top { position:sticky; top:0; display:flex; align-items:center; justify-content:space-between; padding:12px 20px; border-bottom:1px solid var(--line); background:var(--sidebar); font-size:14px; } #markdown-dialog pre { white-space:pre-wrap; overflow-wrap:anywhere; font:13px/1.8 ui-monospace,Consolas,monospace; padding:20px; margin:0; }
#toast { position:fixed; bottom:25px; left:50%; transform:translate(-50%,10px); opacity:0; pointer-events:none; z-index:100; border:1px solid var(--line); background:var(--panel); color:var(--text); border-radius:8px; padding:10px 16px; font-size:13px; transition:opacity .16s,transform .16s; } #toast.visible { opacity:1; transform:translate(-50%,0); } .nav-scrim { display:none; }
@media(min-width:1600px) { main { padding-top:60px; } .article-grid { gap:64px; } }
@media(max-width:1180px) { .article-grid { grid-template-columns:minmax(0,1fr); max-width:780px; margin:auto; } .toc { display:none; } main { padding:40px 32px 24px; } .header { gap:12px; padding:0 20px; } .header-actions { gap:12px; } .header-search { max-width:40%; } .welcome-banner span { font-size:28px; } }
@media(max-width:960px) { html { --side:244px; } .sidebar-brand { padding-left:16px; } .brand img { width:128px; } .header-actions .utility-link { display:none; } .header-search { max-width:none; flex:1; width:auto; } .header-search kbd { display:none; } .header-actions { gap:8px; } .welcome-banner { gap:20px; padding:25px; height:174px; } .welcome-banner span { padding-left:20px; font-size:23px; } main { padding-left:26px; padding-right:26px; } }
@media(max-width:760px) { html { --side:268px; scroll-padding-top:80px; } .shell,.sidebar-collapsed .shell { margin-left:0; } .header { height:56px; padding:0 16px; gap:10px; } .mobile-menu { display:flex; } .restore-sidebar,.sidebar-collapsed .restore-sidebar { display:none; } .header-search { border:0; padding:6px 3px; } .header-search span { font-size:13px; } .header-actions { gap:4px; } .header-actions select { font-size:12px; } .studio-link { display:none; } .sidebar,.sidebar-collapsed .sidebar { display:flex; max-width:85vw; transform:translateX(-100%); transition:transform .18s ease; } .nav-open .sidebar { transform:translateX(0); box-shadow:12px 0 40px #0003; } .nav-open .nav-scrim { display:block; position:fixed; inset:0; z-index:40; background:#0007; } .sidebar-scroll { padding-top:22px; } main { padding:28px 24px 20px; } .welcome-banner { height:150px; gap:13px; padding:20px; margin-bottom:28px; border-radius:9px; } .welcome-banner img { width:48%; } .welcome-banner span { font-size:22px; padding-left:13px; white-space:normal; } .article-head h1 { font-size:27px; } .lead { font-size:15px; } .article-body { font-size:15px; line-height:1.85; } .article-body h2 { font-size:21px; } .page-actions { padding-bottom:20px; margin-bottom:24px; } .article-pagination { gap:10px; } .article-pagination a { padding:14px; } .article-pagination p { display:none; } .related-links,.article-body .cards { grid-template-columns:1fr; } .page-footer { flex-wrap:wrap; margin-top:30px; } .update-entry h3 { display:block; margin:8px 0 0; } .heading-anchor { display:none; } }
@media(max-width:360px) { .header { padding:0 10px; gap:5px; } .header-search span { font-size:12px; } .header-actions select { max-width:65px; } main { padding-left:18px; padding-right:18px; } .welcome-banner { height:136px; } .welcome-banner span { font-size:19px; } .page-actions { gap:8px; } }
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }

.header-search { min-width:0; } .header-search span { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
