/* =====================================================================
 * 暗色模式调色：与 OI-wiki 对齐
 *   - primary-fg     header 背景 / 强调底色：深石板色
 *   - accent-fg      hover / 选中：青绿色
 *   - typeset-a      链接：紫蓝色
 * ===================================================================== */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #2e303e;
  --md-accent-fg-color: #00bda4;
  --md-typeset-a-color: #526cfe;
}

/* =====================================================================
 * 微调（保留 OI-wiki 风格的代码块底色 + h2 分隔线）
 * ===================================================================== */
.md-typeset code {
  background: #f4f4f0;
}

.md-typeset h2 {
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  padding-bottom: 0.3em;
}

/* =====================================================================
 * Per-page footer (.md-source-file)：仿 OI-wiki 的 page-copyright
 *   · 红色左边框（OI-wiki 同款 #ff1700）
 *   · 每条 fact 单独一行（强制 block 布局）
 *   · 浅灰背景，圆角，让它从正文里"浮出来"
 * ===================================================================== */
.md-source-file {
  margin-top: 2.5em;
  padding: 0.9em 1.1em;
  border-left: 4px solid #ff1700;
  background: var(--md-code-bg-color);
  border-radius: 0 4px 4px 0;
  font-size: 0.78rem;
  line-height: 1.7;
}

.md-source-file__fact {
  display: block;
  padding: 0.15em 0;
}

.md-source-file__fact .md-icon {
  display: inline-block;
  margin-right: 6px;
  vertical-align: -3px;
}

.md-source-file__fact .md-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* 暗色模式下背景换成半透明白，避免与红边框对比过强 */
[data-md-color-scheme="slate"] .md-source-file {
  background: rgba(255, 255, 255, 0.04);
}
