:root {
  --red: #d70b12;
  --red-dark: #b6060c;
  --red-soft: #fff1f2;
  --ink: #111214;
  --text: #1f2530;
  --muted: #7b8493;
  --soft: #f5f6f8;
  --line: #e5e7eb;
  --line-light: #edf0f3;
  --top-height: 64px;
  --nav-text: #202327;
  --nav-font: Montserrat, Inter, -apple-system, system-ui, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; }
body.menu-open, body.dialog-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button { border: 0; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: -70px; left: 20px; padding: 12px 18px; border-radius: 8px; color: #fff; background: var(--red); z-index: 100; }
.skip-link:focus { top: 10px; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; height: var(--top-height); padding: 0 40px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; background: var(--red); color: #fff; font-size: 22px; font-weight: 800; line-height: 1; }
.brand-title { font-size: 20px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.brand-divider { height: 20px; width: 1px; margin: 0 3px; background: var(--line); }
.brand-section { font-size: 15px; font-weight: 500; color: #454e5c; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.search-entry { position: relative; width: 320px; height: 40px; font-family: var(--nav-font); }
.mobile-search-entry { display: none !important; }
.search-icon { fill: currentColor; stroke: none; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; }
.icon-button:hover { background: var(--soft); }
.menu-toggle { display: none; }
.workspace { --sidebar-width: 270px; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr) 270px; min-height: calc(100vh - var(--top-height)); }
.sidebar { position: sticky; top: var(--top-height); display: flex; flex-direction: column; align-self: start; height: calc(100dvh - var(--top-height)); min-height: 0; padding: 20px; border-right: 1px solid #e2e8f0; overflow-y: auto; scrollbar-width: thin; color: var(--nav-text); font-family: var(--nav-font); letter-spacing: normal; }
.category-tree { display: flex; flex-direction: column; gap: 16px; }
.module-title { margin: 0 0 4px; padding: 6px 8px; font-size: 14px; font-weight: 600; line-height: 24px; }
.submodule-heading { display: flex; align-items: center; gap: 8px; padding: 6px 4px 6px 8px; min-height: 36px; border-radius: 8px; }
.submodule-heading:hover { background: rgba(104, 119, 141, .08); }
.submodule-heading.is-selected { background: var(--red-soft); }
.submodule-toggle { display: flex; align-items: center; justify-content: center; flex: 0 0 16px; width: 16px; height: 24px; padding: 0; color: var(--nav-text); }
.submodule-link { flex: 1; min-width: 0; color: var(--nav-text); font-size: 14px; font-weight: 400; line-height: 24px; letter-spacing: normal; }
.submodule-toggle .icon { width: 16px; height: 16px; color: var(--nav-text); transform: rotate(90deg); }
.submodule-toggle[aria-expanded="false"] .icon { transform: rotate(0deg); }
.category-chevron { fill: currentColor; stroke: none; }
.article-link { display: block; padding: 6px 4px 6px 28px; min-height: 36px; border-radius: 8px; font-size: 14px; font-weight: 400; line-height: 24px; color: var(--nav-text); letter-spacing: normal; white-space: normal; overflow-wrap: break-word; }
.article-link:hover { background: rgba(104, 119, 141, .08); }
.article-link[aria-current="page"] { background: var(--red-soft); }
.reading { min-width: 0; outline: none; scroll-margin-top: var(--top-height); container-type: inline-size; }
.article-wrap { max-width: 740px; margin: 0 auto; padding: 20px 20px 0; }
.workspace.is-category { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.is-category .article-wrap, .is-category .toc-sidebar { display: none; }
.category-page { max-width: 740px; margin: 0 auto; padding: 20px; color: var(--nav-text); }
.category-header { margin-bottom: 28px; }
.category-header h1 { margin: 0; font-size: 28px; font-weight: 700; line-height: 36px; }
.category-header p { margin: 12px 0 0; color: #8496ae; font-size: 15px; line-height: 24px; }
.category-items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.category-item { display: flex; align-items: center; justify-content: space-between; min-width: 0; gap: 16px; padding: 16px 12px; border-radius: 8px; transition: background-color .15s; }
.category-item-label { display: flex; align-items: center; min-width: 0; gap: 16px; }
.category-item-number { flex: 0 0 28px; color: #8496ae; font-size: 15px; font-weight: 600; line-height: 24px; text-align: right; }
.category-item h2 { overflow: hidden; margin: 0; color: var(--nav-text); font-size: 17px; font-weight: 500; line-height: 24px; white-space: nowrap; text-overflow: ellipsis; }
.category-item > .icon { width: 20px; height: 20px; color: #8496ae; transition: color .15s, transform .15s; }
.category-item:hover { background: rgba(104, 119, 141, .08); }
.category-item:hover h2, .category-item:hover > .icon { color: var(--red); }
.category-item:hover > .icon { transform: translateX(2px); }
.article-header { margin: 0 0 8px; }
.article-header h1 { margin: 0; padding-bottom: 3.2px; color: var(--nav-text); font-size: 28px; line-height: 40px; font-weight: 700; letter-spacing: normal; overflow-wrap: anywhere; }
.article-content { font-size: 16px; line-height: 1.9; color: #343c48; overflow-wrap: break-word; }
.article-content > p:first-child { margin-top: 0; color: #4a5568; font-size: 16px; line-height: 24px; }
.article-content p { margin: 12px 0; }
.article-content h2 { margin: 38px 0 17px; font-size: 23px; line-height: 1.55; color: var(--ink); font-weight: 700; letter-spacing: -.2px; scroll-margin-top: var(--top-height); }
.article-content h3 { margin: 25px 0 12px; font-size: 18px; line-height: 1.65; color: #202631; font-weight: 650; scroll-margin-top: var(--top-height); }
.article-content strong { font-weight: 650; color: #242c38; }
.article-content a { color: var(--red); text-decoration: none; overflow-wrap: anywhere; }
.article-content a:hover { color: var(--red-dark); }
.article-content ul, .article-content ol { margin: 12px 0; padding-left: 25px; }
.article-content li { padding-left: 3px; margin: 6px 0; }
.article-content li::marker { color: #65707f; }
.article-content li p { margin: 8px 0; }
.article-content li > ul, .article-content li > ol { margin: 8px 0 14px; }
.article-content img { display: block; height: auto; margin: 20px auto; border: 1px solid #e8ebf0; border-radius: 7px; background: #fafafa; cursor: zoom-in; }
.article-content img.portrait-image { width: auto; max-width: 100%; max-height: 560px; }
.article-content .image-unavailable { border: 1px dashed #d9dee6; color: var(--muted); background: #fafafa; padding: 20px; margin: 18px 0; border-radius: 6px; font-size: 13px; }
.article-content blockquote { border-left: 3px solid #e18186; border-radius: 0 7px 7px 0; background: #f5f7f9; margin: 20px 0; padding: 12px 20px; color: #5d6674; font-size: 14px; }
.article-content blockquote > :first-child { margin-top: 2px; }
.article-content blockquote > :last-child { margin-bottom: 2px; }
.article-content blockquote strong { color: #805055; }
.article-content hr { height: 1px; margin: 29px 0; border: none; background: var(--line-light); }
.article-content .tableWrapper { margin: 18px 0 22px; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; scrollbar-width: thin; }
.article-content table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.8; }
.article-content th, .article-content td { padding: 12px 15px; min-width: 100px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; }
.article-content th { background: #f7f8fa; font-weight: 650; color: #303946; }
.article-content th:last-child, .article-content td:last-child { border-right: 0; }
.article-content tr:last-child > td, .article-content tr:last-child > th { border-bottom: 0; }
.article-content td > p, .article-content th > p { margin: 0; }
.article-content td > p + p { margin-top: 8px; }
.article-content[data-article-id="quick-start"] th:first-child, .article-content[data-article-id="quick-start"] td:first-child { width: 120px; min-width: 120px; }
.article-content [data-type="columns"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 21px 0 29px; }
.article-content [data-type="column"] { min-width: 0; }
.article-content [data-type="column"] > h3:first-child { margin-top: 0; font-size: 18px; padding-bottom: 13px; border-bottom: 1px solid var(--line-light); }
.article-content [data-type="column"] > p { font-size: 14px; line-height: 1.95; }
.article-content [data-type="column"] h3 { font-size: 16px; margin-top: 25px; }
.article-content [data-type="column"] li { font-size: 14px; }
.article-content [data-type="column"] + [data-type="column"] { padding-left: 25px; border-left: 1px solid var(--line-light); }
.article-content .source-placeholder { display: flex; align-items: center; justify-content: center; min-height: 90px; margin: 17px 0 21px; padding: 14px; border: 1px dashed #d9dee6; border-radius: 7px; background: #fafbfc; color: #8a94a2; font-size: 12px; text-align: center; }
.article-content sub { vertical-align: baseline; font-size: inherit; }
.article-content em { color: #738091; font-size: 13px; font-style: normal; }
.variant-switch { margin: 18px 0 26px; }
.variant-tabs { display: flex; gap: 28px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.variant-tab { position: relative; min-height: 43px; padding: 0 1px 13px; color: var(--muted); font-size: 15px; font-weight: 500; }
.variant-tab[aria-selected="true"] { color: var(--nav-text); font-weight: 650; }
.variant-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); }
.variant-panel > :first-child { margin-top: 0; }
.variant-panel h3 { font-size: 17px; }
.video-frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: #f5f7f9; margin: 20px 0 12px; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-status { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; background: #f5f7f9; text-align: center; }
.video-play { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid #cbd5e0; border-radius: 8px; background: #fff; color: var(--red); font-size: 14px; line-height: 20px; }
.video-play svg { width: 20px; height: 20px; fill: currentColor; }
.video-message { margin: 0 !important; color: #8496ae; font-size: 14px; line-height: 20px; }
.video-player-link { font-size: 14px; line-height: 20px; }
.video-caption { display: flex; align-items: center; justify-content: flex-end; font-size: 12px; color: var(--muted); }
.video-caption .icon { height: 12px; width: 12px; margin-left: 5px; vertical-align: middle; }
.source-reference { font-size: 13px; margin-top: 30px !important; }
.toc-sidebar { position: sticky; top: var(--top-height); align-self: start; height: calc(100dvh - var(--top-height)); padding: 20px 12px 0; color: var(--nav-text); }
.toc-heading { margin-bottom: 12px; font-size: 14px; line-height: 20px; font-weight: 700; }
.outline { height: calc(100dvh - var(--top-height) - 52px); overflow-y: auto; padding-right: 16px; border-left: 2px solid rgba(104, 119, 141, .08); scrollbar-width: thin; }
.outline-link { display: block; padding: 0 0 0 16px; color: var(--nav-text); font-size: 14px; font-weight: 400; line-height: 32px; letter-spacing: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outline-link.level-3 { padding-left: 32px; }
.outline-link[aria-current="location"] { color: var(--red); }
.article-feedback { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 40px; padding: 40px 0; border-top: 1px solid #cbd5e0; color: var(--nav-text); }
.article-feedback h2 { margin: 0; font-size: 16px; font-weight: 700; line-height: 22px; }
.feedback-options { display: flex; justify-content: center; gap: 8px; width: 100%; }
.feedback-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-width: 0; width: calc((100% - 8px) / 2); max-width: 172px; height: 36px; padding: 10px 12px; border: 1px solid transparent; border-radius: 8px; background: rgba(104, 119, 141, .08); color: #4a5568; font-size: 14px; font-weight: 400; line-height: 20px; white-space: nowrap; }
.feedback-button:hover { background: rgba(104, 119, 141, .16); }
.feedback-button[aria-pressed="true"] { background: var(--red-soft); }
.feedback-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; }
.search-input-wrap { display: flex; align-items: center; gap: 8px; width: 100%; height: 100%; min-width: 0; padding: 0 20px; border: 1px solid #cbd5e0; border-radius: 48px; background: #fff; color: #a9b9cc; font-family: var(--nav-font); }
.search-input-wrap:focus-within { border-color: var(--red); }
.search-input-wrap .icon { width: 20px; height: 20px; }
.search-input-wrap input { flex: 1; min-width: 0; width: 0; height: 34px; padding: 0; border: 0; outline: none; background: transparent; color: var(--nav-text); font-size: 14px; line-height: 20px; }
.search-input-wrap input::placeholder { color: #a9b9cc; }
.search-submit { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 20px; height: 20px; padding: 0; }
.clear-search { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 34px; margin-left: -8px; padding: 0; color: #8496ae; }
.clear-search .icon { width: 14px; height: 14px; }
.clear-search:hover { color: #68778d; }
.search-results { position: absolute; left: 0; top: calc(100% + 4px); width: 100%; max-height: 300px; overflow-y: auto; padding: 4px 0; border-radius: 6px; background: #fff; box-shadow: 0 12px 42px -4px #00000014, 0 8px 16px -6px #00000014; color: var(--nav-text); font-size: 14px; line-height: 20px; overscroll-behavior: contain; }
.search-result { display: block; padding: 8px 12px; color: var(--nav-text); font-size: 14px; font-weight: 400; line-height: 20px; }
.search-result:hover, .search-result.is-keyboard-active { background: rgba(104, 119, 141, .08); }
.search-result mark, .full-search mark { padding: 0; background: transparent; color: var(--red); }
.workspace.is-searching { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.is-searching .article-wrap, .is-searching .toc-sidebar { display: none; }
.full-search { width: calc(100% - 40px); max-width: 740px; margin: 0 auto; padding: 40px 0; color: var(--nav-text); }
.full-search h2 { margin: 0; color: #8496ae; font-size: 14px; font-weight: 400; line-height: 20px; }
.full-search-result { display: block; padding: 32px 0; border-bottom: 1px solid rgba(226, 232, 240, .9); }
.full-search-result:last-child { border-bottom: 0; }
.full-search-result h3 { margin: 0 0 12px; color: var(--nav-text); font-size: 20px; font-weight: 700; line-height: 28px; }
.full-search-result p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-family: var(--nav-font); font-size: 14px; line-height: 20px; }
.search-empty { position: fixed; inset: var(--top-height) 0 0; z-index: 29; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; background: #fff; color: #8496ae; text-align: center; }
.search-empty img { width: 126px; height: auto; }
.search-empty p { margin: 0; font-size: 16px; line-height: 22px; }
.menu-open .search-empty { display: none; }
.search-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; color: var(--nav-text); overflow: hidden; }
.search-dialog[open] { display: flex; flex-direction: column; }
.search-dialog::backdrop { background: #fff; }
.search-toolbar { display: flex; align-items: flex-start; gap: 16px; flex-shrink: 0; height: calc(63px + env(safe-area-inset-top)); padding: calc(6px + env(safe-area-inset-top)) 16px 16px; border-bottom: 1px solid rgba(226, 232, 240, .9); }
.search-toolbar .search-input-wrap { flex: 1; height: 40px; padding: 0 0 0 12px; border-radius: 43px; }
.search-toolbar input { height: 40px; padding-right: 12px; }
.cancel-search { flex-shrink: 0; height: 40px; padding: 0; color: var(--nav-text); font-size: 14px; line-height: 20px; }
.mobile-search-results { flex: 1; overflow-y: auto; }
.mobile-search-results .search-result { display: flex; align-items: center; height: 54px; padding: 0 16px; border-bottom: 1px solid rgba(226, 232, 240, .9); }
.mobile-search-results .search-result:last-child { border-bottom: 0; }
.mobile-search-results .search-result > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.image-dialog { padding: 38px 22px 15px; margin: auto; max-width: min(1200px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 10px; background: #fff; overflow: auto; }
.image-dialog::backdrop { background: rgba(22, 29, 41, .24); backdrop-filter: blur(3px); }
.image-dialog img { display: block; max-height: calc(100dvh - 140px); width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; }
.image-dialog p { margin: 13px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); text-align: center; }
.image-close { position: absolute; right: 6px; top: 3px; width: 30px; height: 30px; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; width: max-content; max-width: calc(100vw - 36px); padding: 12px 20px; border-radius: 8px; background: #313946; box-shadow: 0 8px 24px #1f253022; color: #fff; font-size: 13px; line-height: 1.7; z-index: 80; transition: opacity .2s, transform .2s; text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.noscript { padding: 20px; margin: 30px; border: 1px solid var(--line); }
@container (max-width: 599px) {
  .article-content [data-type="columns"] { grid-template-columns: minmax(0, 1fr); }
  .article-content [data-type="column"] + [data-type="column"] { padding-left: 0; padding-top: 22px; border-left: 0; border-top: 1px solid var(--line-light); }
}
@media (max-width: 767px) {
  .workspace { --sidebar-width: 230px; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
  .toc-sidebar { display: none; }
}
@media (max-width: 639px) {
  .workspace, .workspace.is-category, .workspace.is-searching { display: block; }
  .search-entry { width: 200px; }
  .menu-toggle { display: inline-flex; color: #4e5867; }
  .sidebar { display: none; position: fixed; top: var(--top-height); left: 0; width: 100%; z-index: 25; padding: 20px; border-right: 0; background: #fff; }
  .menu-open .sidebar { display: flex; }
  .article-wrap { max-width: 740px; padding: 20px 20px 0; }
  .topbar .icon-button:hover { background: transparent; }
  .topbar { padding: 0 16px; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 7px; font-size: 20px; }
  .brand-title { font-size: 18px; }
  .brand-divider { margin: 0 2px; height: 17px; }
  .brand-section { font-size: 13px; }
  .header-actions { gap: 5px; }
  .icon-button { width: 35px; height: 38px; }
  .article-content { font-size: 16px; line-height: 24px; }
  .article-content h2 { font-size: 24px; line-height: 32px; margin: 32px 0 15px; }
  .article-content h3 { font-size: 18px; line-height: 27px; }
  .article-content ul, .article-content ol { padding-left: 22px; }
  .article-content blockquote { padding: 11px 15px; font-size: 13px; }
  .article-content [data-type="columns"] { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .article-content [data-type="column"] + [data-type="column"] { padding-left: 0; padding-top: 22px; border-left: 0; border-top: 1px solid var(--line-light); }
  .article-content .tableWrapper { margin-top: 17px; }
  .article-content table { font-size: 13px; }
  .article-content th, .article-content td { padding: 11px 13px; min-width: 108px; }
  .article-content table[data-columns="3"] { min-width: 440px !important; }
  .article-content table[data-columns="4"] { min-width: 550px !important; }
  .article-content img { margin: 17px auto; border: 0; border-radius: 0; background: transparent; }
  .variant-tabs { gap: 27px; }
  .variant-tab { font-size: 14px; }
  .image-dialog { max-width: calc(100vw - 20px); padding: 38px 10px 15px; }
}
@media (max-width: 499px) {
  .search-entry { display: none; }
  .header-actions { gap: 1px; }
  .mobile-search-entry { display: inline-flex !important; color: #4e5867; }
  .mobile-search-entry .icon { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .topbar, .sidebar, .toc-sidebar, .article-feedback, .toast { display: none !important; }
  .workspace { display: block; }
  .article-wrap { max-width: none; padding: 0; }
  .article-content { font-size: 12px; }
  .article-content a { color: inherit; }
  .variant-panel[hidden] { display: block !important; }
}
