:root { color-scheme: light; --text: #182238; --muted: #66748c; --line: #e2e8f2; --soft: #f5f7fc; --paper: #ffffff; --blue: #465ddd; --tint: #edf1ff; --code-bg: #152136; --code-text: #dbe6ff; --sidebar-width: 236px; --shadow: 0 2px 5px #18223803, 0 12px 26px -22px #26395d35; --ease: cubic-bezier(.22,.7,.25,1); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; font-size: 14px; line-height: 1.85; color: var(--text); background: var(--soft); } html.dark { color-scheme: dark; --text: #edf2ff; --muted: #a4b1c8; --line: #2b3a52; --soft: #101722; --paper: #182335; --blue: #a7b7ff; --tint: #253555; --code-bg: #0d1728; --code-text: #dbe6ff; --shadow: 0 2px 5px #0000000a, 0 14px 30px -24px #0009; } * { box-sizing: border-box; } html { scroll-behavior: smooth; scroll-padding-top: 98px; } body { margin: 0; padding-left: var(--sidebar-width); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; } button { font: inherit; cursor: pointer; } a { color: inherit; text-decoration: none; } a:hover { color: var(--blue); } a, button { -webkit-tap-highlight-color: transparent; } a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 65%, transparent); outline-offset: 4px; } ::selection { background: color-mix(in srgb, var(--blue) 22%, transparent); } h1, h2, h3 { line-height: 1.45; letter-spacing: -.025em; color: var(--text); } h1 { font-size: clamp(29px,3.2vw,43px); font-weight: 650; margin: 12px 0 16px; letter-spacing: -.045em; } h2 { font-size: 22px; font-weight: 650; margin: 0 0 19px; display: flex; align-items: flex-start; gap: 12px; } h3 { font-size: 15px; font-weight: 650; margin: 24px 0 10px; } p { margin: 0 0 16px; color: var(--muted); } ul, ol { margin: 13px 0 18px; padding-left: 22px; color: var(--muted); } li { margin: 8px 0; padding-left: 3px; } li::marker { color: var(--blue); font-weight: 600; } strong { font-weight: 650; } code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; } code { font-size: .9em; padding: 3px 6px; background: var(--soft); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 5px; color: var(--text); overflow-wrap: anywhere; } pre { margin: 0; padding: 21px; background: var(--code-bg); color: var(--code-text); font-size: 12px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; tab-size: 2; } pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; } .sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); padding: 29px 16px 24px; background: var(--soft); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 20; } .brand { display: flex; gap: 11px; align-items: center; padding: 0 12px; font-weight: 650; font-size: 19px; color: var(--text); line-height: 1.4; } .brand:hover { color: var(--text); } .brand img { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; } .brand small { display: block; margin-top: 4px; font-size: 8px; font-weight: 550; letter-spacing: .25em; color: var(--muted); } .caption { color: var(--muted); font-size: 10px; font-weight: 550; letter-spacing: .055em; margin: 33px 12px 10px; } .sidebar nav { display: grid; gap: 5px; } .sidebar nav a { position: relative; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); font-size: 12px; transition: background-color .18s ease, color .18s ease, border-color .18s ease; } .sidebar nav a:hover { background: var(--tint); color: var(--blue); } .sidebar nav a[aria-current="page"] { background: var(--tint); color: var(--blue); border-color: color-mix(in srgb, var(--blue) 11%, transparent); font-weight: 650; } .sidebar nav a[aria-current="page"]::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 0; width: 2px; border-radius: 2px; background: var(--blue); } .sidebar footer { margin-top: auto; padding: 22px 12px 0; font-size: 10px; line-height: 1.9; color: var(--muted); } .sidebar footer::before { content: ""; display: block; width: 27px; height: 2px; margin-bottom: 13px; background: var(--blue); border-radius: 2px; opacity: .5; } .topbar { height: 70px; padding: 0 38px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 10; background: var(--paper); font-size: 11px; } .topbar > span { color: var(--muted); } .topbar strong { color: var(--text); font-weight: 550; } .topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; } .topbar a, .docs-theme { display: inline-flex; align-items: center; justify-content: center; min-height: 35px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); padding: 5px 12px; color: var(--muted); font-size: 11px; transition: color .18s, background .18s, border-color .18s; } .docs-theme { width: 36px; padding: 0; } .topbar a:hover, .docs-theme:hover { background: var(--tint); color: var(--blue); border-color: color-mix(in srgb,var(--blue) 25%,var(--line)); } .theme-sun, .dark .theme-moon { display: none; } .dark .theme-sun { display: block; } .wrap { max-width: 1320px; margin: 0 auto; padding: 32px 38px 60px; } .hero { position: relative; isolation: isolate; overflow: hidden; padding: 38px 36px; margin-bottom: 31px; border: 1px solid color-mix(in srgb, var(--blue) 14%, var(--line)); border-radius: 18px; background: linear-gradient(112deg, var(--tint), var(--paper) 80%); box-shadow: var(--shadow); } .hero::before { content: ""; position: absolute; z-index: -1; width: 310px; height: 310px; right: -72px; top: -105px; border: 1px solid color-mix(in srgb, var(--blue) 13%, transparent); border-radius: 50%; box-shadow: 0 0 0 32px color-mix(in srgb,var(--blue) 3%,transparent), 0 0 0 65px color-mix(in srgb,var(--blue) 2%,transparent); pointer-events: none; } .hero::after { content: ""; position: absolute; z-index: -1; width: 220px; height: 120px; right: 34px; bottom: 0; background-image: radial-gradient(color-mix(in srgb,var(--blue) 18%,transparent) .8px,transparent .8px); background-size: 14px 14px; mask-image: linear-gradient(90deg,transparent,#000); opacity: .6; pointer-events: none; } .eyebrow { color: var(--blue); font-size: 9px; font-weight: 650; letter-spacing: .2em; line-height: 1.6; } .hero p { max-width: 650px; margin-bottom: 0; font-size: 13px; line-height: 1.95; } .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; } .button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 9px 15px; background: var(--paper); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font-size: 11px; font-weight: 550; line-height: 1.6; transition: transform .2s var(--ease), background-color .18s, border-color .18s, box-shadow .2s; } .button.primary { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 5px 13px -8px var(--blue); } .dark .button.primary { color: #172340; } .button:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 6px 16px -10px color-mix(in srgb,var(--blue) 50%,transparent); } .button.primary:hover { color: #fff; } .dark .button.primary:hover { color: #172340; } .button:active { transform: translateY(0); } .layout { display: grid; grid-template-columns: minmax(0,1fr) 160px; align-items: start; gap: 30px; } .content { min-width: 0; display: grid; gap: 24px; counter-reset: doc-section; } .panel { min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); counter-increment: doc-section; } .panel h2::before { content: counter(doc-section,decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 27px; height: 27px; margin-top: 2px; border: 1px solid color-mix(in srgb,var(--blue) 13%,var(--line)); background: var(--tint); border-radius: 8px; color: var(--blue); font-family: "SFMono-Regular",Consolas,monospace; font-size: 10px; font-weight: 550; letter-spacing: -.02em; line-height: 1; } .panel > :last-child { margin-bottom: 0; } .toc { position: sticky; top: 98px; display: grid; gap: 3px; padding: 0 0 0 13px; border-left: 1px solid var(--line); font-size: 10px; line-height: 1.8; color: var(--muted); } .toc strong { padding: 3px 9px; margin-bottom: 10px; color: var(--text); font-weight: 600; } .toc a { padding: 6px 9px; border-radius: 6px; transition: color .18s, background-color .18s; } .toc a:hover, .toc a[aria-current="location"] { color: var(--blue); background: var(--tint); } .toc a[aria-current="location"] { font-weight: 600; } .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .cards article { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); } .cards h3 { margin: 0 0 9px; font-size: 16px; } .cards p { font-size: 12px; } .cards .button { margin-top: 6px; margin-right: 4px; min-height: 35px; padding: 8px 11px; font-size: 10px; } .code-card { overflow: hidden; margin: 17px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; } .code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--soft); font-size: 11px; line-height: 1.6; } .code-head strong { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; } .code-head strong::before { content: "›_"; color: var(--muted); font-family: "SFMono-Regular",Consolas,monospace; font-size: 10px; opacity: .8; } .copy { min-width: 58px; min-height: 30px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--text); font-size: 10px; line-height: 1.5; transition: color .18s, background .18s, border-color .18s; } .copy:hover { color: var(--blue); border-color: var(--blue); } .copy[data-copy-state="success"] { color: #227a5c; border-color: #b6ddcd; background: #effaf5; } .dark .copy[data-copy-state="success"] { color: #99dec2; background: #173a32; border-color: #366455; } .copy:active { transform: translateY(1px); } .note { margin: 16px 0; padding: 15px 17px; border: 1px solid var(--line); border-left: 3px solid color-mix(in srgb,var(--blue) 45%,var(--line)); border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 12px; line-height: 1.9; } .note.success { border-color: color-mix(in srgb,#419b7e 20%,var(--line)); border-left-color: #419b7e; background: color-mix(in srgb,#419b7e 7%,var(--paper)); color: #2c7c62; } .dark .note.success { color: #97d8bf; } .table-wrap { margin: 17px 0; border: 1px solid var(--line); border-radius: 10px; overflow: auto; } table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.85; } th, td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; } th { background: var(--soft); color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .025em; } td { color: var(--muted); } th:first-child, td:first-child { width: 25%; color: var(--text); } tr:last-child td { border-bottom: 0; } .inline-link { color: var(--blue); text-decoration: underline; text-decoration-color: color-mix(in srgb,var(--blue) 35%,transparent); text-underline-offset: 4px; transition: text-decoration-color .18s; } .inline-link:hover { text-decoration-color: var(--blue); } details { margin: 19px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); } summary { cursor: pointer; color: var(--text); font-weight: 550; font-size: 12px; } summary::marker { color: var(--blue); } details[open] summary { margin-bottom: 13px; } details p { font-size: 12px; } .updated { margin: 26px 0 0; padding-left: 2px; color: var(--muted); font-size: 10px; } .skip { position: fixed; left: 12px; top: -100px; z-index: 100; padding: 11px 18px; background: var(--text); color: var(--paper); border-radius: 8px; } .skip:focus { top: 12px; color: var(--paper); } .status { position: fixed; bottom: 24px; left: calc(50% + var(--sidebar-width)/2); z-index: 40; max-width: calc(100vw - 32px); padding: 11px 18px; transform: translateX(-50%); background: var(--text); color: var(--paper); border-radius: 10px; box-shadow: 0 8px 30px #14234425; font-size: 12px; text-align: center; } .status:empty { display: none; } @media (prefers-reduced-motion:no-preference) { .hero { animation: docs-arrive .55s var(--ease) both; } .panel.is-revealed { animation: docs-arrive .5s var(--ease) both; } .status:not(:empty) { animation: docs-status-in .2s var(--ease) both; } @keyframes docs-arrive { from { opacity: .55; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } } @keyframes docs-status-in { from { opacity: 0; translate: 0 5px; } to { opacity: 1; translate: 0 0; } } } @media (max-width:1200px) { :root { --sidebar-width: 220px; } .wrap { padding-inline: 27px; } .topbar { padding-inline: 27px; } .layout { grid-template-columns: minmax(0,1fr) 145px; gap: 22px; } .panel { padding: 25px; } .cards { grid-template-columns: 1fr; } } @media (max-width:1050px) { .layout { grid-template-columns: minmax(0,1fr); gap: 20px; } .toc { position: static; display: flex; align-items: center; gap: 5px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow-x: auto; scrollbar-width: thin; grid-row: 1; } .toc strong { display: none; } .toc a { flex-shrink: 0; white-space: nowrap; font-size: 11px; padding: 6px 9px; } .content { grid-row: 2; } } @media (max-width:840px) { :root { --sidebar-width: 0px; } html { scroll-padding-top: 132px; } body { padding-left: 0; } .sidebar { position: sticky; top: 0; width: 100%; padding: 15px 20px 10px; border-right: 0; border-bottom: 1px solid var(--line); display: block; background: var(--paper); } .brand { padding: 0; font-size: 16px; gap: 9px; } .brand img { width: 29px; height: 29px; border-radius: 8px; } .brand small { display: inline; margin: 0 0 0 9px; font-size: 8px; } .caption, .sidebar footer, .sidebar nav.account { display: none; } .sidebar nav { display: flex; overflow-x: auto; scrollbar-width: none; gap: 5px; margin-top: 12px; } .sidebar nav a { flex-shrink: 0; padding: 8px 10px; min-height: 38px; white-space: nowrap; font-size: 11px; border-radius: 8px; } .sidebar nav a[aria-current="page"]::before { display: none; } .topbar { position: static; height: 58px; padding-inline: 22px; font-size: 10px; background: var(--soft); } .topbar-actions { gap: 7px; } .wrap { padding: 24px 22px 46px; } .hero { padding: 28px; margin-bottom: 23px; } .hero h1 { font-size: 34px; } .panel { padding: 25px; } .cards { grid-template-columns: 1fr 1fr; } } @media (max-width:600px) { .sidebar { padding-inline: 17px; } .topbar { padding-inline: 18px; gap: 9px; } .topbar > span { font-size: 10px; } .topbar a { padding-inline: 9px; font-size: 10px; } .docs-theme { width: 34px; } .wrap { padding: 18px 16px 38px; } .hero { padding: 25px 22px; border-radius: 16px; margin-bottom: 19px; } .hero h1 { margin: 13px 0; font-size: 30px; line-height: 1.45; } .hero p { font-size: 12px; line-height: 1.9; } .hero::before { right: -190px; opacity: .55; } .hero::after { right: -90px; opacity: .35; } .eyebrow { font-size: 8px; letter-spacing: .17em; } .actions { gap: 8px; margin-top: 20px; } .button { font-size: 11px; min-height: 39px; padding: 9px 12px; } .layout { gap: 17px; } .content { gap: 18px; } .panel { padding: 22px 18px; border-radius: 14px; } h2 { gap: 9px; font-size: 19px; margin-bottom: 17px; } .panel h2::before { width: 24px; height: 24px; font-size: 9px; margin-top: 1px; border-radius: 7px; } .panel p, .panel ul, .panel ol { font-size: 12px; line-height: 1.9; } .cards { grid-template-columns: 1fr; gap: 12px; } .cards article { padding: 18px; } .cards h3 { font-size: 15px; } .code-head { padding: 9px 11px; font-size: 10px; gap: 8px; } .code-head strong { gap: 6px; } pre { padding: 16px; font-size: 11px; } .copy { min-height: 32px; padding-inline: 9px; } .note { padding: 13px; font-size: 11px; } th, td { padding: 10px 11px; } td { font-size: 11px; } th:first-child, td:first-child { width: 30%; } .updated { margin-top: 21px; font-size: 9px; } .status { bottom: 18px; font-size: 11px; } } @media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } .button:hover, .copy:active { transform: none; } }