.docs-center {
    --bg: #f5f6f8;
    --paper: #ffffff;
    --paper-muted: #fafbfd;
    --ink: #1f2937;
    --muted: #667085;
    --line: #e4e7ec;
    --blue: #2563eb;
    --blue-soft: #eff6ff;
    --green: #027a48;
    --green-soft: #ecfdf3;
}

body.docs-page .site-main { padding-top: 6rem; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.docs-center {
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.65;
}
.docs-center a { color: inherit; text-decoration: none; }
.docs-center .container { width: min(1320px, calc(100% - 32px)); margin: 0 auto; }
.docs-center .app-shell.container-xxl { width: 100%; margin: 0 auto; }

.topbar { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); }
.topbar-inner { display: flex; min-height: 64px; align-items: center; gap: 24px; }
.brand { display: inline-flex; flex: 0 0 auto; min-width: 0; align-items: center; gap: 10px; color: #111827; font-size: 17px; font-weight: 700; }
.brand img { width: 28px; height: 28px; }
.brand span { white-space: nowrap; }
.topbar-nav { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 2px; min-width: 0; padding: 0; }
.topbar-nav-item { position: relative; display: flex; align-items: center; }
.topbar-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 11px; white-space: nowrap; }
.topbar-nav-item:has(.topbar-subnav a) > .topbar-nav-link { padding-right: 34px; }
.topbar-nav-toggle { position: absolute; z-index: 1; top: 50%; right: 4px; display: grid; width: 28px; height: 28px; padding: 0; border: 0; place-items: center; color: #667085; background: transparent; cursor: pointer; transform: translateY(-50%); }
.topbar-nav-toggle span { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.topbar-nav-item:not(:has(.topbar-subnav a)) > .topbar-nav-toggle { display: none; }
.topbar-nav-toggle:hover, .topbar-nav-toggle:focus-visible { color: var(--blue); }
.topbar-subnav { position: absolute; z-index: 30; top: calc(100% - 1px); left: 50%; display: none; min-width: 176px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); box-shadow: 0 12px 28px rgba(16, 24, 40, .14); transform: translateX(-50%); }
.topbar-subnav a { display: block; min-height: 0; padding: 8px 10px; }
.topbar-nav-item:hover > .topbar-subnav:has(a), .topbar-nav-item:focus-within > .topbar-subnav:has(a) { display: grid; }
.topbar-meta { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; padding-left: 18px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; white-space: nowrap; }
.topbar-official { color: #475467; font-size: 13px; }
.topbar-official:hover, .topbar-official:focus-visible { color: var(--blue); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.site-search { display: flex; width: 210px; height: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.site-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 128, 237, .1); }
.site-search input { flex: 1 1 auto; width: auto; min-width: 0; padding: 0 10px; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 13px; }
.site-search input::placeholder { color: #98a2b3; }
.site-search button { flex: 0 0 auto; padding: 0 11px; border: 0; border-left: 1px solid var(--line); color: var(--blue); background: #f8fafc; font: inherit; font-weight: 600; cursor: pointer; }
.site-search button:hover, .site-search button:focus-visible { background: #eef5ff; outline: 0; }

.app-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 18px; align-items: start; min-width: 0; padding: 22px 0 36px; }
.docs-center .sidebar { position: sticky; top: 80px; display: grid; align-self: start; gap: 14px; max-height: calc(100vh - 96px); overflow-y: auto; scrollbar-width: thin; }
.docs-center .panel { border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.app-shell > .sidebar { padding-right: 18px; border-right: 1px solid var(--line); }
.app-shell > .sidebar > .panel, .app-shell > .content > .panel { border: 0; border-radius: 0; }
.panel-head { padding: 13px 16px; border-bottom: 1px solid var(--line); color: #344054; font-size: 13px; font-weight: 700; }
.tree-nav { padding: 8px; }
.tree-nav a { display: block; padding: 8px 10px; border-radius: 4px; color: #475467; font-size: 14px; }
.tree-category-toggle { display: flex; width: 100%; min-height: 38px; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 0; border-radius: 4px; color: #475467; background: transparent; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.tree-category-toggle:hover, .tree-category-toggle:focus-visible { color: var(--blue); background: var(--blue-soft); outline: 0; }
.tree-category-toggle.is-active, .tree-category-toggle.is-ancestor, .tree-category-toggle.is-current { color: var(--blue); font-weight: 700; }
.tree-toggle-icon { width: 7px; height: 7px; flex: 0 0 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .16s ease; }
.tree-category-toggle[aria-expanded="true"] .tree-toggle-icon { transform: rotate(45deg); }
.tree-nav a:hover, .tree-nav a.is-current, .tree-nav a.is-active:not(.is-ancestor) { color: var(--blue); font-weight: 700; background: var(--blue-soft); }
.tree-nav a.is-ancestor { color: var(--blue); font-weight: 700; background: transparent; }
.tree-nav .tree-root { color: #101828; font-weight: 700; }
.tree-nav-group:has(.tree-subnav a) > a { color: #344054; font-weight: 600; }
.tree-nav-group:has(.tree-subnav a) > a.is-ancestor { color: var(--blue); font-weight: 700; }
.tree-subnav { margin: 0 0 4px 11px; padding-left: 7px; border-left: 1px solid #d0d5dd; }
.tree-subnav[hidden], .tree-archive-subnav[hidden] { display: none; }
.tree-subnav a { padding: 6px 9px; color: var(--muted); font-size: 13px; }
.tree-nav-child-group > .tree-category-toggle { min-height: 34px; padding: 6px 9px; color: var(--muted); font-size: 13px; }
.tree-archive-subnav { margin: 0 0 4px 10px; padding-left: 7px; border-left: 1px solid #d0d5dd; }
.tree-archive-link { padding: 6px 9px !important; color: var(--muted) !important; font-size: 13px !important; }
.tree-archive-link:hover, .tree-archive-link.is-current { color: var(--blue) !important; font-weight: 700; background: var(--blue-soft); }
.sidebar-archive-list a { padding-top: 7px; padding-bottom: 7px; font-size: 13px; }
.sidebar-empty { display: block; padding: 8px 10px; color: var(--muted); font-size: 13px; }
.subtle { padding-bottom: 14px; background: var(--paper-muted); }
.subtle p { margin: 12px 16px 0; color: var(--muted); font-size: 13px; }

.docs-center .content { display: grid; gap: 18px; min-width: 0; }
.section-block { min-width: 0; padding: 24px; scroll-margin-top: 16px; }
.section-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.section-head.compact { margin-bottom: 18px; }
.docs-center h1, .docs-center h2, .docs-center h3, .docs-center p { margin-top: 0; }
.docs-center h1 { margin-bottom: 8px; color: #101828; font-size: 28px; line-height: 1.25; }
.docs-center h2 { margin-bottom: 6px; color: #101828; font-size: 20px; line-height: 1.35; }
.docs-center .section-head h1,
.docs-center .section-head h2 {
    padding: 0;
    font-weight: 700;
    text-align: left;
}
.docs-center .section-head.compact h2 { margin: 0 0 6px; }
.section-head p { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.status-box { flex: 0 0 142px; padding: 10px 12px; border: 1px solid #bfdbfe; border-radius: 5px; color: #175cd3; font-size: 12px; background: var(--blue-soft); }
.status-box strong, .status-box span { display: block; }
.status-box span { margin-top: 2px; color: #2563eb; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag-row span { padding: 5px 10px; border: 1px solid #dbeafe; border-radius: 4px; color: #1d4ed8; font-size: 13px; background: var(--blue-soft); }

/* Keep frontend article output aligned with the default rich-text editor. */
.article-body {
    margin-top: 20px;
    padding: 24px;
    border-top: 1px solid var(--line);
    color: #344054;
    font-size: 15px;
    line-height: 1.9;
}
.article-body > :first-child { margin-top: 0 !important; }
.article-body > :last-child { margin-bottom: 0 !important; }
.docs-center .article-body h1,
.docs-center .article-body h2,
.docs-center .article-body h3,
.docs-center .article-body h4,
.docs-center .article-body h5,
.docs-center .article-body h6 {
    padding: 0;
    color: #101828;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
}
.docs-center .article-body h1 { margin: 20px 0 10px; font-size: 26px; }
.docs-center .article-body h2 { margin: 20px 0 10px; font-size: 21px; }
.docs-center .article-body h3 { margin: 20px 0 10px; font-size: 18px; }
.docs-center .article-body h4,
.docs-center .article-body h5,
.docs-center .article-body h6 { margin: 16px 0 8px; }
.article-body p { margin: 0 0 16px; }
.docs-center .article-body ul,
.docs-center .article-body ol { margin: 0 0 16px; padding-left: 24px; }
.docs-center .article-body ul { list-style: disc outside; }
.docs-center .article-body ol { list-style: decimal outside; }
.docs-center .article-body ul ul { list-style-type: circle; }
.docs-center .article-body ul ul ul { list-style-type: square; }
.docs-center .article-body ol ol { list-style-type: lower-alpha; }
.article-body li { margin: 7px 0; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.article-body img,
.article-body video { display: block; max-width: 100%; height: auto; }
.article-body img { margin: 16px auto; }
.article-body table { width: 100%; max-width: 100%; border-collapse: collapse; overflow: hidden; }
.article-body th,
.article-body td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.article-body th { color: #344054; background: var(--paper-muted); font-weight: 700; }
.article-body blockquote { margin: 16px 0; padding: 10px 16px; border-left: 3px solid #98a2b3; color: var(--muted); background: var(--paper-muted); }
.article-body pre { min-width: 0; overflow-x: auto; margin: 16px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; color: #344054; background: #f8fafc; line-height: 1.7; }
.article-body code { padding: 2px 5px; border-radius: 3px; color: #1d4ed8; background: var(--blue-soft); }
.article-body pre code { padding: 0; color: inherit; background: transparent; }

.article-adjacent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.article-adjacent .pt-cms-adjacent { min-width: 0; margin: 0 !important; }
.article-adjacent .pt-cms-adjacent__link { min-height: 0 !important; padding: 8px 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: #344054 !important; }
.article-adjacent .pt-cms-adjacent__link:hover { color: var(--blue) !important; }
.article-adjacent .pt-cms-adjacent__label { color: var(--muted) !important; }
.article-adjacent .pt-cms-adjacent__title { color: inherit !important; }
.article-adjacent .pt-cms-adjacent--next { text-align: right; }

.tree-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; margin: 0; padding-left: 20px; }
.tree-list > li { color: #101828; font-weight: 700; }
.tree-list ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-weight: 400; }
.tree-list li::marker { color: #98a2b3; }
.sidebar-question { display: block; margin: 18px 10px 4px; padding: 9px 12px; border: 1px solid #bfdbfe; color: var(--blue); background: #eff6ff; text-align: center; font-size: 13px; font-weight: 700; }
.sidebar-question:hover, .sidebar-question:focus-visible { border-color: var(--blue); color: #fff; background: var(--blue); }

.rows { border: 0; border-radius: 0; overflow: hidden; }
.docs-center .row { display: grid; grid-template-columns: 154px minmax(0, 1fr); gap: 18px; align-items: center; min-height: 52px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.docs-center .row:last-child { border-bottom: 0; }
.docs-center .row:nth-child(even) { background: var(--paper-muted); }
.docs-center .row strong { color: #344054; font-size: 14px; }
.docs-center .row span { color: var(--muted); }
.content-list .row { grid-template-columns: minmax(0, 1fr) minmax(132px, auto); }
.content-list-head { min-height: 38px; padding-top: 8px; padding-bottom: 8px; color: #667085; background: transparent !important; font-size: 12px; font-weight: 600; }
.content-list-head span:last-child, .content-list-time { text-align: right; }
.content-list-main { display: flex; min-width: 0; align-items: center; gap: 14px; }
.content-list-category { color: var(--blue); }
.content-list-title { overflow: hidden; color: #344054; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.content-list-row a:hover, .content-list-row a:focus-visible { color: var(--blue); }
.content-list-time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.content-list-empty { grid-template-columns: 140px minmax(0, 1fr) !important; }
.search-page-form { display: flex; max-width: 680px; height: 42px; margin: 22px 0 26px; border-bottom: 1px solid #98a2b3; }
.search-page-form:focus-within { border-bottom-color: var(--blue); }
.search-page-form input { flex: 1 1 auto; min-width: 0; padding: 0 4px; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 15px; }
.search-page-form button { flex: 0 0 auto; padding: 0 6px 0 18px; border: 0; color: var(--blue); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.search-results { border-top: 1px solid var(--line); }
.search-result { padding: 18px 0; border-bottom: 1px solid var(--line); }
.search-result-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 12px; }
.search-result-meta a, .search-result h2 a { color: var(--blue); }
.search-result h2 { margin: 6px 0 4px; font-size: 18px; }
.search-result p { margin: 0; color: var(--muted); }
.search-empty { display: flex; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.search-empty span { color: var(--muted); }

.docs-center .footer { margin-top: 10px; padding: 0 0 28px; border-top: 1px solid var(--line); color: #c5ced8; font-size: 13px; background: #131313; }
.docs-center .footer-inner { border-top: 0; }
.docs-center .footer-primary, .docs-center .footer-secondary { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.docs-center .footer-primary { padding: 22px 0 16px; }
.docs-center .footer-secondary { padding: 14px 0 0; border-top: 1px solid #f0f2f5; font-size: 12px; }
.docs-center .footer-identity { display: flex; min-width: 0; align-items: baseline; gap: 14px; }
.docs-center .footer-identity strong { color: #c5ced8; font-size: 15px; }
.docs-center .footer-links, .docs-center .footer-records, .docs-center .footer-latest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.docs-center .footer-records { align-items: flex-start; flex-direction: column; gap: 4px; }
.docs-center .footer-records > div { display: flex; flex-wrap: wrap; gap: 18px; }
.docs-center .footer-links { justify-content: flex-end; }
.docs-center .footer a { color: #c5ced8; }
.docs-center .footer a:hover, .docs-center .footer a:focus-visible { color: var(--blue); }
.docs-center .footer-records a + a { position: relative; }
.docs-center .footer-records a + a::before { position: absolute; left: -10px; color: #d0d5dd; content: "·"; }
.docs-center .footer-latest { justify-content: flex-end; }
.docs-center .footer-latest span { color: #c5ced8; }
.docs-center .footer-latest a { color: #c5ced8; font-weight: 600; }
.docs-center .footer-reprint { color: #c5ced8; }

@media (max-width: 860px) {
    .topbar-inner { flex-wrap: wrap; gap: 0 16px; padding: 11px 0 8px; }
    .topbar-nav { order: 3; flex-basis: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
    .topbar-subnav { top: 100%; left: 0; transform: none; }
    .topbar-meta { margin-left: auto; }
    .app-shell { grid-template-columns: minmax(0, 1fr); }
    .docs-center .sidebar { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-height: none; overflow: visible; }
    .app-shell > .sidebar { padding-right: 0; border-right: 0; }
    .tree-nav { display: flex; flex-wrap: wrap; gap: 4px; }
    .tree-nav a { display: inline-block; }
    .sidebar .tree-nav { display: block; }
    .sidebar .tree-nav a { display: block; }
}
@media (max-width: 620px) {
    .docs-center .container { width: calc(100% - 24px) !important; max-width: 1320px; }
    .topbar-inner { align-items: center; }
    .brand { font-size: 16px; }
    .brand img { width: 26px; height: 26px; }
    .topbar-meta { order: 4; display: flex; width: 100%; flex: 1 1 100%; min-width: 0; margin-top: 8px; margin-left: 0; padding-top: 8px; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
    .site-search { width: 100%; min-width: 0; }
    .docs-center .sidebar { grid-template-columns: 1fr; }
    .sidebar .subtle { display: none; }
    .section-block { padding: 18px; }
    .section-head { display: block; }
    .status-box { display: inline-block; margin-top: 14px; }
    .article-body { padding: 18px; }
    .article-adjacent { grid-template-columns: 1fr; gap: 0; }
    .article-adjacent .pt-cms-adjacent--next { text-align: left; }
    .tree-list { grid-template-columns: 1fr; }
    .row { grid-template-columns: 1fr; gap: 3px; align-items: start; }
    .content-list-head { display: none; }
    .content-list .content-list-row { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; }
    .content-list-main { align-items: flex-start; flex-direction: column; gap: 2px; }
    .content-list-time { grid-column: 2; grid-row: 1; }
    .content-list-empty { grid-template-columns: 1fr !important; }
    .search-empty { align-items: flex-start; flex-direction: column; gap: 2px; }
    .docs-center .footer-primary, .docs-center .footer-secondary { align-items: flex-start; flex-direction: column; gap: 12px; }
    .docs-center .footer-primary { padding-top: 18px; }
    .docs-center .footer-identity { align-items: flex-start; flex-direction: column; gap: 2px; }
    .docs-center .footer-links, .docs-center .footer-latest { justify-content: flex-start; }
    .docs-center .footer-reprint { max-width: 290px; line-height: 1.5; }
}
