/* 蒙医全科板块 /mongolian-medicine
   移动优先，320px 基线；选择器统一挂 .mm-page 前缀，避免被 public-foundation.css 覆盖字号。 */

.mm-page {
  --mm-navy: #0b3d5c;
  --mm-blue: #17608f;
  --mm-jade: #1f6f5c;
  --mm-ink: #14313f;
  --mm-muted: #5d7480;
  --mm-line: #dde7ec;
  --mm-surface: #f5f9fb;
  --mm-sand: #f7f3ea;
  color: var(--mm-ink);
  background: #fff;
}
/* 正文容器与 .public-site .container（导航栏）同宽同边距：
   宽屏 width min(1360px, 100%-64px) + padding 0 8px = 内容 1344px，与 nav-wrap 内容边缘齐平。 */
.mm-container { width: min(1360px, calc(100% - 64px)); margin: 0 auto; padding: 0 8px; }

/* ---------- HERO ---------- */
.mm-hero {
  padding: 36px 0 32px;
  background: linear-gradient(160deg, var(--mm-navy), #14556f 62%, #1a6b63);
  color: #fff;
}
.mm-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9fd8c9;
}
.mm-page .mm-hero h1 { margin: 0 0 12px; font-size: clamp(26px, 7vw, 40px); line-height: 1.25; font-weight: 600; color: #fff; }
.mm-lead { margin: 0 0 22px; max-width: 720px; font-size: 15px; line-height: 1.8; color: #d5e7ee; }
.mm-hero-points { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mm-hero-points li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  font-size: 13px;
}
.mm-hero-points b {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #b6e6d8;
  font-size: 11px;
}

/* ---------- 区块通用 ---------- */
.mm-section { padding: 40px 0; scroll-margin-top: 66px; }
.mm-section--alt { background: var(--mm-surface); }

/* ---------- 首屏目录卡（hero 之后第一篇正文之前，第一眼就能跳） ---------- */
.mm-quicknav {
  padding: 26px 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--mm-line);
}
.mm-quicknav-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px;
  margin-bottom: 16px;
}
.mm-quicknav-title {
  margin: 0;
  font-size: 16px; font-weight: 600;
  color: var(--mm-navy);
}
.mm-quicknav-hint {
  flex: 1 1 240px;
  margin: 0;
  font-size: 12.5px; line-height: 1.6;
  color: var(--mm-muted);
}
.mm-quicknav-toggle {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid var(--mm-line);
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
  color: var(--mm-navy);
  cursor: pointer;
}
.mm-quicknav-toggle:hover { border-color: #a9c8d8; background: var(--mm-surface); color: var(--mm-blue); }
.mm-quicknav-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.mm-quicknav-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--mm-line);
  border-radius: 10px;
  background: var(--mm-surface);
  font-size: 13.5px; line-height: 1.5;
  color: var(--mm-ink);
  text-decoration: none;
}
.mm-quicknav-list a:hover { border-color: #a9c8d8; background: #eef5f9; color: var(--mm-blue); }
.mm-quicknav.is-collapsed .mm-quicknav-list { display: none; }
.mm-quicknav-index {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--mm-line);
  font-size: 11px; font-weight: 600;
  color: var(--mm-blue);
}
/* ---------- 锚点目录（页面 5300px+，滚动时常驻视口顶部） ---------- */
.mm-toc {
  position: sticky; top: 0; z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--mm-line);
}
.mm-toc-inner {
  display: flex; align-items: center; gap: 10px;
  padding-top: 10px; padding-bottom: 10px;
}
.mm-toc-toggle { display: none; }
.mm-toc-list {
  display: flex; gap: 8px;
  flex: 1 1 auto; min-width: 0;
  margin: 0; padding: 0; list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}
.mm-toc-list a {
  flex: 0 0 auto;
  padding: 6px 13px;
  border: 1px solid var(--mm-line);
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--mm-navy);
  text-decoration: none;
}
.mm-toc-list a:hover { border-color: #a9c8d8; background: var(--mm-surface); color: var(--mm-blue); }
.mm-toc-list a.is-active { border-color: var(--mm-navy); background: var(--mm-navy); color: #fff; }
.mm-head { margin-bottom: 24px; }
.mm-page .mm-head h2 { margin: 0 0 8px; font-size: clamp(20px, 4.6vw, 28px); line-height: 1.3; font-weight: 600; color: var(--mm-navy); }
.mm-head p { margin: 0; max-width: 760px; font-size: 14px; line-height: 1.75; color: var(--mm-muted); }
.mm-empty {
  padding: 28px;
  border: 1px dashed var(--mm-line);
  border-radius: 12px;
  background: #fff;
  color: var(--mm-muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- 什么是蒙医 ---------- */
.mm-intro { display: grid; grid-template-columns: 1fr; gap: 20px; }
.mm-intro-copy p { margin: 0 0 12px; font-size: 14px; line-height: 1.85; color: var(--mm-ink); }
.mm-intro-copy p:last-child { margin-bottom: 0; }
.mm-page .mm-intro-copy h2 { margin: 0 0 14px; font-size: clamp(20px, 4.6vw, 26px); font-weight: 600; color: var(--mm-navy); }
.mm-intro-note {
  padding: 18px;
  border: 1px solid #e5ded0;
  border-left: 4px solid var(--mm-jade);
  border-radius: 10px;
  background: var(--mm-sand);
}
.mm-intro-note strong { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--mm-navy); }
.mm-intro-note p { margin: 0; font-size: 13px; line-height: 1.75; color: #5c5343; }

/* ---------- 疗法 ---------- */
.mm-therapy-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.mm-therapy-card {
  position: relative;
  padding: 20px 18px 18px;
  border: 1px solid var(--mm-line);
  border-radius: 12px;
  background: #fff;
  transition: transform .2s ease, border-color .2s ease;
}
.mm-therapy-card:hover { transform: translateY(-2px); border-color: #a9c8d8; }
.mm-therapy-index {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--mm-blue);
}
.mm-page .mm-therapy-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--mm-navy); }
.mm-therapy-card p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--mm-muted); }

/* ---------- 医生 ---------- */
.mm-doctor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mm-doctor-card {
  display: flex; flex-direction: column; gap: 5px;
  padding: 16px 14px;
  border: 1px solid var(--mm-line);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  min-height: 44px;
  transition: transform .2s ease, border-color .2s ease;
}
.mm-doctor-card:hover { transform: translateY(-2px); border-color: #a9c8d8; }
.mm-doctor-card strong { font-size: 15px; font-weight: 600; color: var(--mm-navy); }
.mm-doctor-card span { font-size: 12px; color: var(--mm-jade); }
.mm-doctor-card small { font-size: 12px; line-height: 1.5; color: var(--mm-muted); }
.mm-doctor-card em.mm-doctor-dept { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--mm-blue); }
.mm-doctor-card b.mm-doctor-dept { font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--mm-ink); }
.mm-more { margin-top: 18px; text-align: center; }

/* ---------- 医院 ---------- */
.mm-hospital-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.mm-hospital-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--mm-line);
  border-radius: 10px;
  background: #fff;
  color: var(--mm-navy);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s ease;
}
.mm-hospital-card:hover { border-color: var(--mm-blue); }
.mm-hospital-card span { color: var(--mm-blue); }

/* ---------- CTA ---------- */
.mm-cta { padding: 40px 0 56px; background: var(--mm-navy); color: #fff; }
.mm-cta-inner { display: flex; flex-direction: column; gap: 20px; }
.mm-page .mm-cta h2 { margin: 0 0 8px; font-size: clamp(20px, 4.6vw, 26px); font-weight: 600; color: #fff; }
.mm-cta p { margin: 0; font-size: 14px; line-height: 1.75; color: #cfe3ea; }
.mm-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 按钮 ---------- */
.mm-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.mm-button--primary { background: #d8b25c; color: #2c2410; }
.mm-button--primary:hover { background: #e3c377; }
.mm-button--ghost { border-color: var(--mm-line); background: #fff; color: var(--mm-navy); }
.mm-cta .mm-button--ghost { border-color: rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.mm-button:hover { transform: translateY(-1px); }
.mm-button:focus-visible,
.mm-doctor-card:focus-visible,
.mm-hospital-card:focus-visible { outline: 3px solid #4aa3d8; outline-offset: 2px; }

/* ---------- 三根学说卡片 ---------- */
.mm-roots-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
.mm-root-card {
  padding: 20px 18px;
  border: 1px solid var(--mm-line);
  border-top: 3px solid var(--mm-blue);
  border-radius: 12px;
  background: #fff;
}
.mm-root-card:nth-child(2) { border-top-color: var(--mm-jade); }
.mm-root-card:nth-child(3) { border-top-color: #c4923a; }
.mm-root-card b {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--mm-blue);
}
.mm-page .mm-root-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: var(--mm-navy); }
.mm-root-card p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--mm-muted); }

/* ---------- 发展史时间轴 ---------- */
.mm-timeline { margin: 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--mm-line); list-style: none; }
.mm-timeline li { position: relative; padding: 0 0 22px 18px; }
.mm-timeline li:last-child { padding-bottom: 0; }
.mm-timeline li::before {
  content: "";
  position: absolute; left: -28px; top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--mm-blue);
}
.mm-timeline strong { display: block; margin-bottom: 5px; font-size: 15px; font-weight: 600; color: var(--mm-navy); }
.mm-timeline p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--mm-muted); }

/* ---------- 数据表（经典著作 / 社会贡献） ---------- */
.mm-table-wrap { overflow-x: auto; border: 1px solid var(--mm-line); border-radius: 12px; background: #fff; }
.mm-data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; }
.mm-data-table th, .mm-data-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--mm-line); }
.mm-data-table thead th { background: var(--mm-surface); color: var(--mm-navy); font-weight: 600; white-space: nowrap; }
.mm-data-table tbody tr:last-child td { border-bottom: 0; }
.mm-data-table tbody tr:hover { background: #f8fbfd; }
.mm-data-table td b { color: var(--mm-navy); font-weight: 600; }

/* ---------- 重要人物 ---------- */
.mm-figure-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.mm-figure-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--mm-line);
  border-radius: 12px;
  background: #fff;
}
.mm-figure-avatar {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--mm-navy), var(--mm-blue));
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}
.mm-figure-card:nth-child(even) .mm-figure-avatar { background: linear-gradient(150deg, var(--mm-jade), #2f8c76); }
.mm-figure-body { min-width: 0; }
.mm-page .mm-figure-body h3 { margin: 0 0 2px; font-size: 16px; font-weight: 600; color: var(--mm-navy); }
.mm-figure-dates { margin: 0 0 7px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--mm-blue); }
.mm-figure-body p { margin: 0; font-size: 13px; line-height: 1.78; color: var(--mm-muted); }

/* ---------- 正骨与优势领域 ---------- */
.mm-strength-feature {
  padding: 22px 20px;
  border: 1px solid #e5ded0;
  border-left: 4px solid #c4923a;
  border-radius: 12px;
  background: var(--mm-sand);
}
.mm-page .mm-strength-feature h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: var(--mm-navy); }
.mm-strength-feature > p { margin: 0 0 10px; font-size: 13px; line-height: 1.82; color: #5c5343; }
.mm-strength-feature ul, .mm-strength-other { margin: 0; padding-left: 19px; font-size: 13px; line-height: 1.9; color: #5c5343; }
.mm-strength-other { margin-top: 18px; padding-left: 19px; color: var(--mm-muted); }
.mm-strength-other strong { color: var(--mm-navy); }

/* ---------- 断点 ---------- */
@media (min-width: 576px) {
  .mm-quicknav-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mm-therapy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-hero-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mm-roots-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mm-figure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .mm-hero { padding: 60px 0 52px; }
  .mm-section { padding: 56px 0; }
  .mm-intro { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
  .mm-therapy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .mm-doctor-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .mm-hospital-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .mm-figure-grid { gap: 18px; }
  .mm-quicknav-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 断点：sticky 目录条窄屏折叠成「当前章节 + 下拉」 ---------- */
@media (max-width: 900px) {
  .mm-toc-toggle {
    display: flex; align-items: center; gap: 8px;
    flex: 1 1 auto;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--mm-line);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    color: var(--mm-muted);
    cursor: pointer;
  }
  .mm-toc-toggle-label { flex: 0 0 auto; font-size: 12px; color: var(--mm-muted); }
  .mm-toc [data-mm-toc-current] {
    flex: 1 1 auto;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 13px; font-weight: 600; color: var(--mm-navy);
  }
  .mm-toc-chevron { flex: 0 0 auto; width: 16px; height: 16px; transition: transform .18s ease; }
  .mm-toc.is-open .mm-toc-chevron { transform: rotate(180deg); }
  /* 下拉面板：覆盖层全量 9 项，末端章节不会被横滚吃掉 */
  .mm-toc-list {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 4px;
    margin: 0; padding: 10px 12px 14px;
    background: #fff;
    border-bottom: 1px solid var(--mm-line);
    box-shadow: 0 16px 28px rgba(11, 61, 92, .12);
    overflow: visible;
  }
  .mm-toc.is-open .mm-toc-list { display: flex; }
  .mm-toc-list a { display: block; border-radius: 10px; padding: 10px 12px; }
  .mm-quicknav-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 断点：容器宽度跟随导航栏（.public-site .container） ---------- */
@media (max-width: 900px) {
  .mm-container { width: min(100% - 40px, 1360px); padding: 0 20px; }
}
@media (max-width: 620px) {
  .mm-container { width: calc(100% - 28px); padding: 0 14px; }
}
/* sticky 目录条：只补纵向内边距，横向宽度/内边距复用 .mm-container，
   保证 chips 与正文、导航内容左右边缘严格对齐（背景条仍通栏）。 */
.mm-toc .mm-container { padding-top: 10px; padding-bottom: 10px; }

html:lang(mn) .mm-page, html:lang(en) .mm-page { line-height: 1.78; }

@media (prefers-reduced-motion: reduce) {
  .mm-button, .mm-therapy-card, .mm-doctor-card { transition: none; }
  .mm-button:hover, .mm-therapy-card:hover, .mm-doctor-card:hover { transform: none; }
}
