/* ---------- 隐藏默认的 "Made with Sphinx and Furo" 行 ---------- */
.bottom-of-page .left-details {
  display: none;
}

/* 左侧信息隐藏后,让右侧图标保持右对齐 */
.bottom-of-page {
  justify-content: flex-end;
}

/* ---------- 明亮模式:加深侧边栏背景(默认 #f8f9fb 过淡) ---------- */
/* 手动选择明亮主题时 */
body[data-theme="light"] {
  --color-sidebar-background: #E3DACC;
  --color-sidebar-search-background: #E3DACC;
  /* 顶层目录名默认是品牌蓝,与米黄背景不搭,改为暖棕色 */
  --color-sidebar-link-text--top-level: #6F5A3E;
  /* 右侧"目录"当前项高亮默认也是品牌蓝,同样改为暖棕色 */
  --color-toc-item-text--active: #6F5A3E;
}

/* 跟随系统且系统为明亮时 */
@media (prefers-color-scheme: light) {
  body:not([data-theme="dark"]) {
    --color-sidebar-background: #E3DACC;
    --color-sidebar-search-background: #E3DACC;
    --color-sidebar-link-text--top-level: #6F5A3E;
    --color-toc-item-text--active: #6F5A3E;
  }
}

/* ---------- 代码块美化 ---------- */

.highlight pre,
.highlighttable .linenodiv pre,
pre.literal-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

/* 容器:更大圆角 + 细边框 + 轻微阴影(颜色用 furo 变量,自动适配双主题) */
.highlight,
pre.literal-block {
  border: 1px solid var(--color-background-border);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 内边距稍宽松,行高更舒适 */
.highlight pre,
pre.literal-block {
  padding: 0.875rem 1rem;
  line-height: 1.6;
}

/* 行内代码 code.literal:小圆角药丸样式 */
code.literal {
  border-radius: 0.375rem;
  padding: 0.1em 0.4em;
}

/* 代码块横向滚动条细一点 */
.highlight pre,
pre.literal-block {
  scrollbar-width: thin;
}

/* 明亮模式下代码块背景改为浅米黄(暗色模式保持不变) */
body[data-theme="light"] .highlight,
body[data-theme="light"] pre.literal-block,
body[data-theme="light"] .code-block-caption {
  background: #fdf6e3;
}

@media (prefers-color-scheme: light) {
  body:not([data-theme="dark"]) .highlight,
  body:not([data-theme="dark"]) pre.literal-block,
  body:not([data-theme="dark"]) .code-block-caption {
    background: #fdf6e3;
  }
}

/* ---------- 页脚徽章(WordPress 风格迁移) ---------- */

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem 1rem;
}

.github-badge-big {
  display: inline-flex;
  align-items: stretch;
  font-size: var(--font-size--small);
  line-height: 1.6;
}

.github-badge-big .badge-subject {
  display: inline-flex;
  align-items: center;
  background: #555;
  color: #fff;
  padding: 2px 6px 2px 8px;
  border-radius: 3px 0 0 3px;
}

.github-badge-big .badge-value {
  display: inline-flex;
  align-items: center;
  color: #fff;
  padding: 2px 8px 2px 6px;
  border-radius: 0 3px 3px 0;
}

.github-badge-big a {
  color: #fff;
  text-decoration: none;
}

.github-badge-big a:hover {
  text-decoration: underline;
}

.bg-orange {
  background-color: #fe7d37;
}

.bg-green {
  background-color: #46bc99;
}

.bg-red {
  background-color: #e54545;
}

.bg-blue {
  background-color: #007ec6;
}

.bg-apricots {
  background-color: #f7b955;
}

.beian-shield {
  height: 14px;
  width: auto;
  vertical-align: -2px;
  margin-right: 2px;
}
