/* 页脚备案号居中 */
.md-footer-meta__inner {
  justify-content: center;
}
.md-footer-meta__inner .md-copyright {
  text-align: center;
}

/* ============================================================
   左侧导航：贴近原 Docsify 的简洁风格
   ============================================================ */

/* 0. 隐藏侧边栏顶部的抽屉标题（logo+站点名，与顶部蓝栏重复，桌面端隐藏，移动端保留） */
@media screen and (min-width: 60em) {
  .md-nav--primary > .md-nav__title[for="__drawer"] {
    display: none;
  }
}

/* 1. 桌面端统一显示当前页标题：
      Material 原生在不同宽度下会让 toggle 标签和页面链接二选一显示
      （≤1220px 显示标签，宽屏两者都不管），这里统一为显示链接、隐藏标签，
      避免标题消失或重复；移动端（<60em）保持原生的折叠交互 */
@media screen and (min-width: 60em) {
  .md-nav--integrated .md-nav__link[for="__toc"] {
    display: none;
  }
  .md-nav--integrated .md-nav__link[for="__toc"] + .md-nav__link {
    display: flex;
  }
}

/* 2. 隐藏页内目录自带的"目录"标题行 */
.md-nav--integrated .md-nav--secondary > .md-nav__title {
  display: none;
}

/* 3. 页内目录：去掉左侧竖线、小字号、浅色文字（Docsify 子目录风格）
      注意：Material 原生命中带 [dir=ltr] 属性选择器，优先级 (0,5,0)，
      这里必须加同样的 [dir=ltr] 前缀才能靠后加载覆盖掉 */
[dir=ltr] .md-nav--integrated > .md-nav__list > .md-nav__item--active > .md-nav--secondary {
  border-left: none;
  margin-top: 0.1rem;
}
.md-nav--integrated .md-nav--secondary .md-nav__link {
  font-size: 0.68rem;
  color: var(--md-default-fg-color--light);
  padding: 0.2rem 0.6rem;
}
.md-nav--integrated .md-nav--secondary .md-nav__link:hover {
  color: var(--md-accent-fg-color);
}

/* 4. 收紧各级缩进 */
.md-nav--primary .md-nav .md-nav {
  margin-left: 0.5rem;
}

/* 5. 导航项更紧凑 */
.md-nav--primary .md-nav__link {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

/* 6. 当前页码重（强调所在页） */
.md-nav__link--active {
  font-weight: 600;
}

/* ============================================================
   冰拓 API 文档自定义样式（复刻原 Docsify 站点视觉）
   ============================================================ */

/* 章节标题：左侧蓝色竖线 */
.md-typeset h2 {
  border-left: 4px solid #2f80ed;
  padding-left: 10px;
  line-height: 1.4;
}

/* 请求地址框 */
.api-url {
  background: #f6f8fa;
  border: 1px solid #e5e9ef;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 14px;
}
.api-url code {
  background: transparent;
  color: #e0402a;
  font-weight: 600;
  padding: 0;
}

/* 参数表格：宽度跟随父容器自动伸缩（Material 默认为内容宽度，不撑满） */
.md-typeset table:not([class]) {
  width: 100%;
}
/* 参数表格：浅蓝表头 + 斑马纹 */
.md-typeset table:not([class]) th {
  background: #eaf2fb;
  font-weight: 600;
}
.md-typeset table:not([class]) tbody tr:nth-child(2n) {
  background-color: #fafcfe;
}
.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
  border: 1px solid #ebeef5;
  padding: 10px 14px;
}

/* 是否必须 */
.req-yes { color: #e0402a; font-weight: 600; }
.req-no { color: #909399; }

/* 重点说明提示框：黄色 admonition */
.md-typeset .admonition,
.md-typeset details {
  background-color: #fff8e6;
  border-left-color: #f0a020;
  border-radius: 6px;
}
.md-typeset .admonition > .admonition-title,
.md-typeset details > summary {
  background-color: #fdeecb;
  border-color: #f5d9a0;
  color: #b25e00;
}
.md-typeset .admonition > .admonition-title::before,
.md-typeset details > summary::before {
  background-color: #f0a020;
}
.md-typeset .admonition code,
.md-typeset details code {
  background: #fdeecb;
  color: #b25e00;
}

/* 代码块：深色底 + 语法高亮（GitHub-dark 配色）
   本站代码块均为 JSON 响应示例，统一使用深色主题 */
.md-typeset .highlight {
  background-color: #2f4356;
  border-radius: 6px;
}
.md-typeset .highlight pre {
  background-color: transparent;
  margin: 0;
}
.md-typeset .highlight pre code {
  background: transparent;
  color: #e6edf3;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.7;
}
.md-typeset .highlight .nt  { color: #7ee787; } /* JSON 键名 */
.md-typeset .highlight .s,
.md-typeset .highlight .s2  { color: #a5d6ff; } /* 字符串 */
.md-typeset .highlight .mi  { color: #f2cc60; } /* 数字 */
.md-typeset .highlight .kc  { color: #ff7b72; } /* true/false/null */
.md-typeset .highlight .p   { color: #c9d1d9; } /* 标点 */

/* 移动端表格横向滚动 */
@media (max-width: 768px) {
  .md-typeset table:not([class]) {
    display: block;
    overflow-x: auto;
  }
}
