/* ============================================================
 *  全局自定义样式
 * ============================================================ */

/* ── 辞典图例颜色（固定 hex，不受 Bootstrap 主题覆盖） ── */
.text-pinyin  { color: #0d6efd !important; }  /* 拼音/罗马化（蓝色） */
.text-ipa     { color: #198754 !important; }  /* IPA 国际音标（绿色） */
.text-note    { color: #6c757d !important; }  /* 释义/备注（灰色） */

/* Markdown 内容样式优化 */
.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
}
.article-content p {
  line-height: 1.8;
}
.article-content h1,
.article-content h2,
.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* 导航栏活跃项 */
.navbar-light .nav-link.active {
  font-weight: 700;
  color: var(--bs-primary) !important;
}

/* 固定导航栏偏移 */
html {
  scroll-padding-top: 72px;
}

/* 无下划线链接的 hover 反馈（Bootstrap 5 推荐做法） */
a.text-decoration-none:hover {
  color: var(--bs-link-hover-color) !important;
}

/* 结果列表最后一项去底部边框（Bootstrap 无 :last-child 工具类） */
.card-body .border-bottom:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* 面包屑 chevron 分隔符 */
.breadcrumb-chevron .breadcrumb-item+.breadcrumb-item::before {
  content: "›";
}
