/* 全局表格排版强化：彻底防止表格列被压缩成单字竖条 */
.md-typeset__table {
  overflow-x: auto !important;
  margin: 1em 0;
}

.md-typeset table:not([class]) {
  display: table !important;
  width: 100%;
  border-collapse: collapse;
}

.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
  padding: 10px 14px;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* 最后一列（通常为性质、核心细节或考点总结），允许自动换行且设置合理底线宽度 */
.md-typeset table:not([class]) th:last-child,
.md-typeset table:not([class]) td:last-child {
  min-width: 200px !important;
  white-space: normal !important;
}

/* 其余指标列（算法名、复杂度、稳定性等）禁止断字折行 */
.md-typeset table:not([class]) th:not(:last-child),
.md-typeset table:not([class]) td:not(:last-child) {
  min-width: 90px !important;
  white-space: nowrap !important;
}

/* 首列（通常为算法名称、知识点名称）给予充裕宽度 */
.md-typeset table:not([class]) th:first-child,
.md-typeset table:not([class]) td:first-child {
  min-width: 120px !important;
  white-space: nowrap !important;
}
