nav.bd-links li>a {
  padding: 0.375rem 0.75rem;
}

nav.bd-links li>a:active,
.logo__title:hover,
nav.bd-links li>a:hover {
  text-decoration: none;
}

a {
  text-decoration: none;
}

.bd-article-container h1,
.bd-article-container h2,
.heading-style,h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
}

.navbar-brand .logo__title {
  font-size: var(--pst-font-size-h1);
  font-weight: 700;
}

.prev-next-area a:hover p.prev-next-title:hover {
  text-decoration: none;
}

html {
  --pst-sidebar-font-size: 1rem;
  --pst-font-size-p: 1rem;
  --pst-font-size-h1: 1.625rem;
  --pst-font-size-h2: 1.375rem;
  --pst-font-size-h3: 1.375rem;
  --pst-font-size-h4: 1.125rem;
  --pst-font-size-h5: 1.125rem;
  --pst-font-size-h6: 1rem;
  --pst-font-size-desc: 0.875rem;
  --pst-sidebar-header-font-weight: 700;
  --pst-admonition-font-weight-heading: 700;
}

.toc-entry a.nav-link.active {
  font-weight: 700;
}

nav.bd-links .current>a {
  font-weight: 700;
}

.copyright {
  font-size: var(--pst-font-size-desc);
}

.toctree-wrapper li[class^=toctree-l]>a {
  font-size: var(--pst-sidebar-font-size);
}

p {
  font-size: var(--pst-font-size-p);
}

.prev-next-area a p.prev-next-title {
  text-decoration: none;
  font-size: var(--pst-font-size-p);
}

body {
  font-family: "Roboto Slab,ff-tisa-web-pro,Georgia,Arial,sans-serif";
}

.heading-style,h1,h2,h3,h4,h5,h6 {
  margin: 1.7rem 0 0.75rem;
}

.toc-entry a.nav-link:hover {
  text-decoration: none;
}

footer .cancat {
  font-size: var(--pst-font-size-desc);
}

footer {
  font-size: var(--pst-font-size-desc);
}

html[data-theme=light] {
  /* 主色系 - 基于 #2962ff 的衍生 */
  --pst-color-primary: #2962ff;
  --pst-color-primary-highlight: #1a4eff;
  /* 更深悬停色 */
  --pst-color-primary-bg: #e6f0ff;
  /* 极浅背景 */
  --pst-color-primary-bg-text: #1a1a1a;
  /* 深灰文字 */

  /* 辅助色 - 蓝色变体 */
  --pst-color-secondary: #4d8eef;
  /* 稍浅的蓝 */
  --pst-color-secondary-highlight: #397dcf;
  /* 中等蓝 */
  --pst-color-secondary-bg: #f0f7ff;
  /* 更浅的辅助背景 */

  /* 代码/信息色 */
  --pst-color-inline-code: #222832;
  /* 代码块浅蓝灰 */
  --pst-color-info: #2962ff;
  /* 与主色一致 */
  --pst-color-info-bg: #f5f8ff;
  /* 信息背景 */
  --pst-color-attention: #ffb029;
  /* 保留柔和黄作为警示 */

  /* 强调色 - 蓝色衍生 */
  --pst-color-accent: #547fca;
  /* 低饱和蓝 */
  --pst-color-accent-bg: #d4e3ff;
  /* 中等浅蓝 */

  /* ========== 组件专用变量 ========== */
  /* Sidebar/Dropdowns */
  --sd-color-primary: var(--pst-color-primary);
  --sd-color-primary-text: white;
  /* 主按钮白字 */
  --sd-color-primary-highlight: var(--pst-color-primary-highlight);
  --sd-color-primary-bg: var(--pst-color-primary-bg);
  --sd-color-primary-bg-text: var(--pst-color-primary-bg-text);

  --sd-color-secondary: var(--pst-color-secondary);
  --sd-color-secondary-text: white;
  /* 辅助按钮白字 */
  --sd-color-secondary-highlight: var(--pst-color-secondary-highlight);
  --sd-color-secondary-bg: var(--pst-color-secondary-bg);
}

html[data-theme="light"] .highlight .c1 {
  color: #198754;
}
.search-button-field:hover {
  border: 1px solid var(--pst-color-border);
  box-shadow: 0 0 0 0.15rem var(--pst-color-link-hover);
} 

.bd-sidebar-primary {
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bd-sidebar-primary::-webkit-scrollbar {
  display: none;
}

.navbar-brand:hover:hover,
.navbar-brand:visited:hover:hover {
  text-decoration: none !important;
}

cite {
  font-style: normal;
}

.bd-footer {
  background-color: #303846;
}

.bd-footer .footer-items__end {
  text-align: left;
}

.bd-footer .footer-items__center {
  text-align: left;
}

.search-button-field:hover {
  border: 1px solid var(--pst-color-border);
  box-shadow: 0 0 0 0.1875rem var(--pst-color-link-hover);
}

.bd-footer .footer-items__center,
.bd-footer .footer-items__end,
.bd-footer .footer-items__start {
  justify-content: flex-start;
}
@media (min-width: 960px) {
  .bd-sidebar-primary {
    font-size: 1rem;
  }
   .bd-page-width {
      max-width: 100%;
    }
    .bd-sidebar-primary {
      flex-basis: 300px;
    }
}

@media (min-width: 1200px) {
  .bd-sidebar-secondary {
    font-size: 0.875rem;
  }
  .page-toc .nav-link {
    font-size: .875rem;
  }
  .bd-sidebar-secondary {
    width: 300px;
  }
}
@media (min-width: 1440px) {
    .bd-main .bd-content {
        width: 1320px;
        margin: 0 auto;
    }
}
.h3,h3,.h5,h5 {
  font-weight: 400;
}
.bd-sidebar-primary label.toctree-toggle {
    opacity: 0.8;
    height: 39px;
}
.navbar-nav .toctree-checkbox~label .fa-chevron-down {
    transform: rotate(270deg);
}
/* 针对 FontAwesome 图标的统一样式  和增加动画*/
  .fa-magnifying-glass,
  svg.fa-list {
    width: 1rem !important;
    height: 1rem !important;
    font-size: 16px !important; 
    vertical-align: middle !important;
    transition: none !important;
  }
  .fa-sun,
  .fa-bars {
    width: 1.3rem !important;
    height: 1.3rem !important;
    font-size: 1.3rem !important; /* 强制统一大小 */
    vertical-align: middle !important; /* 统一垂直对齐 */
    transition: none !important;
  }
  .tocsection .icon {
    font-size: 0.875rem !important;
    width: auto !important;
  }
  .bd-header-article .header-article-items {
    height: 3rem !important;
  }
  .bd-article-container {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .page-transition {
    /* 确保初始状态为透明 */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .page-enter-active {
    opacity: 1;
    transform: translateY(0);
  }
