/* TigerkinForGHMax 组件手册自定义样式 */

/* ── 内容区加宽 + 排版优化 ────────────────────── */
.md-grid {
  max-width: 1400px;          /* 默认 61rem 太窄, 加宽到 1400px */
}
.md-content {
  max-width: 1100px;
  margin: 0 auto;
}
.md-typeset {
  font-size: 0.82rem;         /* 正文略小, 提升信息密度舒适度 */
  line-height: 1.7;           /* 行高放松, 阅读节奏更轻松 */
  -webkit-font-smoothing: antialiased;
}

/* ── 标题层次 ────────────────────────────────── */
.md-typeset h1 {
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.md-typeset h2 {
  font-weight: 700;
  margin-top: 2rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  padding-bottom: 0.3rem;
}
.md-typeset h3 {
  font-weight: 700;
  margin-top: 1.5rem;
  color: var(--md-primary-fg-color);
}

/* ── 参数表格美化 ─────────────────────────────── */
.md-typeset table:not([class]) {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border: 1px solid var(--md-default-fg-color--lightest);
}
.md-typeset table:not([class]) th {
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.6rem 1rem;
  border: none;
}
.md-typeset table:not([class]) td {
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}
.md-typeset table:not([class]) tr:hover td {
  background: var(--md-default-fg-color--lightest);
}
.md-typeset table:not([class]) tr:last-child td {
  border-bottom: none;
}

/* ── 徽章/标签内联代码样式 ─────────────────────── */
.md-typeset code {
  border-radius: 4px;
  font-size: 0.85em;
  padding: 0.15em 0.4em;
}

/* ── 水平分割线弱化 ───────────────────────────── */
.md-typeset hr {
  border: none;
  border-top: 1px solid var(--md-default-fg-color--lightest);
  margin: 1.5rem 0;
}

/* ── MANUAL 补充区块强调 ──────────────────────── */
.md-typeset h2:last-of-type {
  border-bottom: 2px solid var(--md-accent-fg-color);
}

/* ── 导航项 emoji 对齐 ────────────────────────── */
.md-nav__item .md-nav__link {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ── 暗色模式表格适配 ─────────────────────────── */
[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background: var(--md-primary-fg-color);
}
[data-md-color-scheme="slate"] .md-typeset table:not([class]) {
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
