/* SimOne 文档中心 — 自定义样式（参考原 Sphinx 品牌风格） */

/* === 搜索展开时禁用 tabs 点击 === */
[data-md-toggle="search"]:checked ~ .md-header .md-header__tabs-inline {
  pointer-events: none;
  opacity: 0.5;
}

/* === 语言切换按钮（SVG 图标） === */
.lang-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 2rem;
  padding: 0;
  border: none;
  border-radius: .2rem;
  opacity: .75;
  transition: opacity .2s, background .2s;
  text-decoration: none !important;
}
.lang-toggle:hover {
  opacity: 1;
  background: rgba(255, 255, 255, .15);
  text-decoration: none !important;
}
.lang-icon {
  width: 1.3rem;
  height: 1.3rem;
  display: block;
}
.lang-icon path {
  fill: rgba(255, 255, 255, 0.85) !important;
}
.lang-toggle:hover .lang-icon path {
  fill: #ffffff !important;
}

/* === 品牌色：与原 Sphinx 主题一致 === */
/* Live debug test - 2026-03-31 09:55:01 */
/* Testing Fast-Touch trigger - 2026-03-31 09:54:01 */
/* Testing native reload with polling env - 2026-03-31 09:52:45 */
/* Testing native reload - 2026-03-31 09:50:11 */
:root {
  --simone-brand: #293B5A;
  --simone-brand-light: #3a5070;
  --md-primary-fg-color: #293B5A;
  --md-typeset-a-color: #293B5A;
  --simone-header-height: 2.4rem;

  /* === Foxglove 风格三栏布局 === */
  --md-sidebar-width: 22rem;
  --md-sidebar-secondary-width: 23rem;
}

/* === 全局排版：飞书风格字体栈 === */
:root {
  --lark-font-stack: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote,
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", Tahoma,
    "PingFang SC", "Microsoft YaHei", Arial, "Hiragino Sans GB",
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";
  --md-text-font-family: var(--lark-font-stack);
  --md-code-font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

body, .md-typeset, .md-nav, .md-header__title, .md-search__input,
p, h1, h2, h3, h4, h5, h6 {
  font-family: var(--lark-font-stack) !important;
}

.md-typeset {
  color: #1f2329;
  font-size: 0.8rem;
  line-height: 1.75;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* === 标题 === */
.md-typeset h1, h1 { font-size: 180% !important; font-weight: bold !important; }
.md-typeset h2, h2 { font-size: 145% !important; font-weight: bold !important; }
.md-typeset h3, h3 { font-size: 130% !important; font-weight: bold !important; }
.md-typeset h4, h4 { font-size: 115% !important; font-weight: bold !important; }
.md-typeset h5, h5 { font-size: 105% !important; font-weight: bold !important; }

.md-typeset h2 {
  margin-top: 1.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #e0e0e0;
}

/* p {
  font-size: 105%;
} */

/* === Header 头部品牌色 === */
.md-header {
  background-color: #293B5A !important;
  height: var(--simone-header-height);
}

.md-header__inner {
  min-height: var(--simone-header-height);
  height: var(--simone-header-height);
}

/* logo 按钮收紧内边距以适配 2.4rem 紧凑 header */
.md-header__button.md-logo {
  margin: 0;
  padding: 0.2rem 0.4rem;
}

/* === 顶部导航合并为单行（通过 partials/header.html 模板内嵌实现）=== */

/* 1. 隐藏原独立 tabs 栏（已内嵌到 header） */
.md-tabs {
  display: none !important;
  height: 0 !important;
}

/* tabs 高度变量归零，消除 .md-main 的 margin-top 空缝 */
:root,
[data-md-color-scheme] {
  --md-tabs-height: 0px;
}

/* 2. header 内嵌导航容器 */
.md-header__tabs-inline {
  position: absolute;         /* 脱离普通 flex 布局，实现整个视口的绝对水平居中 */
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;                  /* 强制上下贴底，解决底部边框悬空问题 */
  display: flex;
  align-items: stretch;       /* 垂直方向拉伸以占满 header 高度 */
  justify-content: center;
  overflow: hidden;
  margin: 0;
  height: var(--simone-header-height);
  z-index: 10;                /* 确保在其他元素之上，若重叠则依然可点击 */
}

/* 3. 导航列表 */
.md-header__tabs-list {
  display: flex;
  align-items: stretch;       /* 垂直方向拉伸 */
  justify-content: center;
  height: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;                /* 导航项之间的适度间距 */
}

/* 4. 每个导航项 */
.md-header__tabs-list .md-tabs__item {
  display: flex;
  align-items: stretch;
  height: 100%;
  margin: 0 !important;       /* 清除可能继承的所有外部边距 */
}

/* 5. 链接样式（文字上下垂直居中） */
.md-header__tabs-list .md-tabs__link {
  display: flex;
  align-items: center;        /* 文字在自身块内垂直居中 */
  justify-content: center;
  height: 100%;
  box-sizing: border-box;     /* 确保底部边框占据空间 */
  padding: 0 0.6rem;          /* 收紧横向内边距，避免 tab 视觉过大 */
  line-height: 1.2;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none !important;
  white-space: nowrap;
  border-bottom: 2px solid transparent; /* 细一点，减少 tab 高度膨胀感 */
  margin: 0 !important;       /* 强制清除 mkdocs 默认自带的 margin-top，这是罪魁祸首！ */
  opacity: 1;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.md-header__tabs-list .md-tabs__link:hover {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.05); /* hover 时增加淡淡底色，更像独立的按钮 */
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.md-header__tabs-list .md-tabs__item--active .md-tabs__link {
  color: #fff !important;
  border-bottom-color: #fff;
}

/* 6. 主内容区（恢复 body 滚动，保持 Material JS 侧边栏逻辑正常） */
.md-container {
  padding-top: 0;
}


/* === 侧边栏定位：固定在 header 下方，不随 tabs 显示/隐藏抖动 === */
/* === 侧边栏导航 === */
.md-nav {
  width: 100%;
}

.md-nav__link {
  white-space: nowrap !important;
  text-overflow: ellipsis;
  overflow: hidden !important;
  line-height: 1.4 !important;
}

.md-nav__list {
  width: 100% !important;
}

.md-nav__item {
  width: 260px;
  margin-bottom: 4px !important;
}

.md-sidebar--primary .md-nav__item {
  width: 100%;
}

.md-sidebar--primary .md-nav__item > .md-nav__link[href] {
  box-sizing: border-box;
  width: calc(100% - 0.4rem);
}

.md-sidebar--primary .md-nav__item > .md-nav__container {
  box-sizing: border-box;
  width: calc(100% - 0.4rem);
}

/* === 左侧主导航：当前页面高亮 === */
:root {
  --simone-nav-active-bg: #dbe8ff;
  --simone-nav-active-fg: #1f5eff;
}

[data-md-color-scheme="slate"] {
  --simone-nav-active-bg: rgba(144, 202, 249, 0.22);
  --simone-nav-active-fg: #b7dcff;
}

/* 叶子页 active：只加底色 + 文字色 + 字重，不改任何尺寸 */
.md-sidebar--primary .md-nav__item > .md-nav__link[href].md-nav__link--active {
  background: var(--simone-nav-active-bg) !important;
  border-radius: 6px;
  color: var(--simone-nav-active-fg) !important;
  font-weight: 600;
}

/* 含折叠按钮的 section/index 页 active：标题部分 */
.md-sidebar--primary .md-nav__item > .md-nav__container > .md-nav__link[href].md-nav__link--active {
  background: var(--simone-nav-active-bg) !important;
  border-radius: 6px 0 0 6px;
  color: var(--simone-nav-active-fg) !important;
  font-weight: 600;
}

/* 含折叠按钮的 section/index 页 active：折叠按钮部分 */
.md-sidebar--primary .md-nav__item > .md-nav__container > .md-nav__link.md-nav__link--active + .md-nav__link.md-nav__link--active {
  background: var(--simone-nav-active-bg) !important;
  border-radius: 0 6px 6px 0;
  color: var(--simone-nav-active-fg) !important;
}

.md-sidebar--primary .md-nav__item > .md-nav__container > .md-nav__link.md-nav__link--active + .md-nav__link.md-nav__link--active .md-nav__icon {
  color: inherit;
}

.md-sidebar--primary .md-nav__item > .md-nav__link[href].md-nav__link--active .md-ellipsis,
.md-sidebar--primary .md-nav__item > .md-nav__container > .md-nav__link[href].md-nav__link--active .md-ellipsis {
  color: inherit;
}

.md-sidebar--primary .md-nav__item--active > .md-nav__link:not([href]) {
  font-weight: 600;
}

/* 侧边栏滚动 */
.md-sidebar__scrollwrap {
  max-height: calc(100vh - var(--simone-header-height) - 0.5rem) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* 左侧目录：填满侧栏容器宽度，内容贴合滚动条 */
.md-sidebar--primary .md-sidebar__scrollwrap {
  padding-left: 0.2rem;
  width: 100%;
}

/* 右侧 TOC 单独加宽 */
.md-sidebar--secondary .md-sidebar__scrollwrap {
  width: 340px;
}

.md-sidebar__scrollwrap::-webkit-scrollbar {
  width: 6px;
  background: transparent;
}

.md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

/* === 内容区宽度控制（Foxglove 风格：左侧贴边，整体不超过最大宽）=== */
.md-grid {
  margin-left: 0;
  margin-right: auto;
  max-width: 82rem;
}

.md-main__inner {
  margin-top: 0;
}

/* === 正文内容区内边距（左侧多留空间）=== */
.md-content__inner {
  padding-left: 180px;
  padding-right: 2rem;
}

/* === 大屏下拉开正文与右侧目录间距（右侧目录整体右移）=== */
@media screen and (min-width: 76.25em) {
  .md-sidebar--secondary {
    transform: translateX(1rem);
  }
}

/* === 表格（参考原 Sphinx 风格：100% 宽度 + 边框 + 灰色表头）=== */
.md-typeset table:not([class]),
table.docutils {
  width: 100% !important;
  display: table !important;
  border-collapse: collapse !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.md-typeset table:not([class]) th,
table.docutils th,
.md-typeset table:not([class]) td,
table.docutils td {
  border: 1px solid #e0e0e0 !important;
  padding: 12px !important;
  vertical-align: top;
  text-align: left !important;
}

.md-typeset table:not([class]) th,
table.docutils th {
  background-color: #f5f5f5 !important;
  font-weight: bold;
  color: #333;
}

/* === 图片居中 === */
img {
  display: block !important;
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* 段落与图片之间保留更舒适的呼吸感 */
.md-typeset p + p {
  margin-top: 0.8rem;
}

/* === Admonition === */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 0;
  box-shadow: none;
}

/* === 代码块 === */
.md-typeset pre > code {
  border-radius: 0;
}

/* === 搜索框 === */
.md-search__form {
  border-radius: 0;
}

/* === 全局滚动条：整页保留系统默认，仅隐藏侧边栏（侧边栏另有单独样式）=== */
html {
  scrollbar-color: rgba(0,0,0,0.2) transparent;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

body {
  -ms-overflow-style: auto;
}

/* === 首页 Hero 区域 === */
.mdx-hero {
  padding: 2.5rem 1rem;
  text-align: center;
  background: #293B5A;
  color: white;
  margin-bottom: 2rem;
  margin-top: 0;
}

.mdx-hero h1 {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.mdx-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === 首页卡片网格 === */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1.2rem 0;
}

.grid-card {
  background: var(--md-default-bg-color);
  border: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 0.8rem 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.grid-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #293B5A;
}

.grid-card .card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.grid-card .card-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.grid-card .card-title {
  font-size: 0.92rem;
  font-weight: bold;
  color: #293B5A;
  margin: 0;
}

.grid-card .card-desc {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.45;
}

/* === API 区域 === */
.api-section {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e0e0e0;
}

.api-section h2 {
  border-bottom: none;
}

.api-section .grid-cards {
  grid-template-columns: repeat(2, 1fr);
}

/* === 暗色模式适配 === */
[data-md-color-scheme="slate"] .grid-card {
  background: var(--md-default-bg-color);
  border-color: var(--md-default-fg-color--lightest);
}

[data-md-color-scheme="slate"] .grid-card:hover {
  border-color: var(--md-accent-fg-color);
}

[data-md-color-scheme="slate"] .grid-card .card-title {
  color: var(--md-typeset-color);
}

[data-md-color-scheme="slate"] .grid-card .card-desc {
  color: var(--md-default-fg-color--light);
}

/* === mkdocstrings API 文档块：去掉左侧缩进 === */
.doc-object,
.doc-function,
.doc-class,
.doc-module,
.doc-contents {
  padding-left: 0 !important;
  border-left: none !important;
  margin-left: 0 !important;
}

/* mkdocstrings 参数/返回描述按换行符显示中英文（覆盖默认 inline） */
/* display:flex 消除 div 内匿名行盒（空白文本节点）造成的额外顶底空白 */
.doc-contents td .doc-md-description {
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
}
.doc-contents td .doc-md-description > p,
.doc-contents td .doc-md-description > p:first-child {
  display: block !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}
/* 中英文两段之间只留一点呼吸感 */
.doc-contents td .doc-md-description > p + p {
  margin-top: 0.15rem !important;
}

/* mkdocstrings 参数/返回表格统一垂直居中，恢复历史视觉效果 */
.doc-contents table th,
.doc-contents table td,
.cpp-api-content table th,
.cpp-api-content table td {
  vertical-align: middle !important;
}

/* ================================================================
   Python API 页面（mkdocstrings）样式对齐 C++ API 页面
   ================================================================ */

/* --- 1. 函数标题 h2：卡片头部风格（与 .cpp-api-content h2 一致）--- */
.doc-function > h2.doc-heading,
.doc-function > .doc-heading {
  font-family: var(--md-code-font-family) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  background: #f4f7ff;
  color: #1a2340 !important;
  border-left: 4px solid #293B5A !important;
  border-bottom: 1px solid #dce4f8 !important;
  padding: 0.55rem 0.9rem !important;
  border-radius: 0 4px 0 0;
  margin-top: 2.8rem !important;
  margin-bottom: 0 !important;
  overflow-x: auto;
}

/* 函数标题内的锚点链接不显示 */
.doc-function > h2.doc-heading .headerlink {
  opacity: 0.4;
  font-size: 0.8rem;
}

/* --- 2. "参数：" / "返回：" 标签段落 → 沿用 mkdocstrings 默认样式，不额外覆盖 --- */

/* --- 3. 参数名（第 1 列 code）→ 紫色芯片 --- */
/* 适用参数表（4 列：名称|类型|描述|默认）*/
.doc-contents table:has(th:nth-child(3)) td:nth-child(1) code {
  background: #f0ebff !important;
  color: #5b21b6 !important;
  border: 1px solid #c4b5fd !important;
  padding: 0.08rem 0.42rem !important;
  border-radius: 3px !important;
  font-size: 0.79rem !important;
}

/* --- 4. 类型（第 2 列 code）→ 青色芯片 --- */
.doc-contents table:has(th:nth-child(3)) td:nth-child(2) code {
  background: #e5f7fa !important;
  color: #0e7490 !important;
  border: 1px solid #a5d8e8 !important;
  padding: 0.08rem 0.42rem !important;
  border-radius: 3px !important;
  font-size: 0.79rem !important;
}

/* 类型芯片内的链接继承芯片颜色 */
.doc-contents table:has(th:nth-child(3)) td:nth-child(2) code a {
  color: inherit !important;
  text-decoration: underline dotted;
}

/* --- 5. 返回值表（2 列：类型|描述）第 1 列 code → 青色芯片 --- */
.doc-contents table:not(:has(th:nth-child(3))) td:nth-child(1) code {
  background: #e5f7fa !important;
  color: #0e7490 !important;
  border: 1px solid #a5d8e8 !important;
  padding: 0.08rem 0.42rem !important;
  border-radius: 3px !important;
  font-size: 0.79rem !important;
}

/* --- 6. 暗色模式适配 --- */
[data-md-color-scheme="slate"] .doc-function > h2.doc-heading,
[data-md-color-scheme="slate"] .doc-function > .doc-heading {
  background: rgba(65, 85, 140, 0.14);
  color: var(--md-typeset-color) !important;
  border-left-color: #7ba4e0 !important;
  border-bottom-color: rgba(65, 85, 140, 0.22) !important;
}


[data-md-color-scheme="slate"] .doc-contents table:has(th:nth-child(3)) td:nth-child(1) code {
  background: rgba(91, 33, 182, 0.18) !important;
  color: #a78bfa !important;
  border-color: rgba(167, 139, 250, 0.35) !important;
}

[data-md-color-scheme="slate"] .doc-contents table:has(th:nth-child(3)) td:nth-child(2) code,
[data-md-color-scheme="slate"] .doc-contents table:not(:has(th:nth-child(3))) td:nth-child(1) code {
  background: rgba(14, 116, 144, 0.18) !important;
  color: #22d3ee !important;
  border-color: rgba(34, 211, 238, 0.35) !important;
}

/* === 右下角历史导航浮动按钮 === */
#custom-nav-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  gap: 8px;
}

.hist-btn {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(41, 59, 90, 0.15);
  color: #293B5A;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}

.hist-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.hist-btn:hover {
  background: #293B5A;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(41,59,90,0.25);
}

/* === 页脚版权栏 === */
.md-footer {
  background-color: #f5f5f5;
  border-top: 1px solid #e0e0e0;
}

.md-footer-meta {
  background-color: #f0f0f0;
}

.md-footer-meta__inner {
  color: #666;
  font-size: 0.78rem;
  justify-content: center;
}

.md-copyright {
  color: #666;
  font-size: 0.78rem;
  padding: 0.6rem 0;
  text-align: center;
  width: 100%;
}

/* === 回到顶部按钮：悬浮色与 tab 栏品牌色一致 === */
.md-top:hover,
.md-top:focus {
  background-color: #293B5A !important;
  color: #ffffff !important;
}

/* ================================================================
   C++ API 页面专属样式
   目标：使 docs/api/cpp/ 静态 Markdown 页面与 mkdocstrings 渲染的
         Python API 页面保持相近的视觉风格。
   依赖：hooks/cpp_api_style.py 将内容包裹在 .cpp-api-content 中。
   ================================================================ */

/* --- 1. 函数标题 h2：卡片头部风格 --- */
.cpp-api-content h2 {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  background: #f4f7ff;
  color: #1a2340 !important;
  border-left: 4px solid #293B5A !important;
  border-bottom: 1px solid #dce4f8 !important;
  padding: 0.55rem 0.9rem !important;
  border-radius: 0 4px 0 0;
  margin-top: 2.8rem !important;
  margin-bottom: 0 !important;
}

/* 函数标题内的链接继承颜色，去掉下划线 */
.cpp-api-content h2 a {
  color: inherit !important;
  text-decoration: none !important;
}

/* --- 2. 函数签名代码块：紧贴 h2，形成卡片体 --- */
/* 情形 A：h2 → p(描述) → .highlight(代码块) */
.cpp-api-content h2 + p + .highlight,
/* 情形 B：h2 → .highlight(无描述) */
.cpp-api-content h2 + .highlight {
  border: 1px solid #dce4f8;
  border-top: none;
  border-radius: 0 0 4px 4px;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
}

/* --- 3. 参数/返回值小节标签 → 沿用 mkdocstrings 默认 .doc-section-title 样式，不额外覆盖 --- */

/* --- 3b. 函数详细描述（裸段落）--- */

/* --- 4. 参数表格（3 列：名称 | 类型 | 说明） --- */

/* 第 1 列：参数名 code → 默认 code 样式，不高亮 */
.cpp-api-content table td:nth-child(1) code,
/* 第 2 列：类型 code → 默认 code 样式，不高亮 */
.cpp-api-content table td:nth-child(2) code,
/* --- 5. 返回值表（2 列）第 1 列 code → 同上 --- */
.cpp-api-content table:not(:has(th:nth-child(3))) td:nth-child(1) code {
  background: var(--md-code-bg-color) !important;
  color: var(--md-code-fg-color) !important;
  border: none !important;
  border-radius: 3px !important;
  padding: 0.06rem 0.4rem !important;
}

/* --- 6. 分隔线 hr 淡化 --- */
.cpp-api-content hr {
  border-color: #e8ecf8;
  margin: 2.2rem 0 !important;
}

/* --- 7. 表格字号与 Python API 对齐 --- */
.cpp-api-content table {
  font-size: 0.64rem !important;
}

/* --- 8. 暗色模式适配 --- */
[data-md-color-scheme="slate"] .cpp-api-content h2 {
  background: rgba(65, 85, 140, 0.14);
  color: var(--md-typeset-color) !important;
  border-left-color: #7ba4e0 !important;
  border-bottom-color: rgba(65, 85, 140, 0.22) !important;
}

[data-md-color-scheme="slate"] .cpp-api-content h2 + p + .highlight,
[data-md-color-scheme="slate"] .cpp-api-content h2 + .highlight {
  border-color: rgba(65, 85, 140, 0.22) !important;
}

/* 暗色模式 badge / code 芯片均已移除，沿用 MkDocs 默认样式，无需覆盖 */
