/* ============================================================
   正文表格可读性修复  table-fix v1  2026-10-30
   问题1：正文表格 th 自带内联浅色背景（如 #f7f9fc），
          而 detail.css 对 th 强制 color:#fff，
          导致浅底白字，表头文字看不见。
   问题2：base.css 给 table 设了 display:block + overflow-x:auto，
          且 td/th 一律 white-space:nowrap，
          手机上表格不换行，右侧内容被裁、必须左右滑动。
   ============================================================ */

/* --- 1) 表头文字色 --- */
/* th 有内联背景且不是深红色 → 深色文字 */
.cont th[style*="background"]:not([style*="#c0392b"]):not([style*="#C0392B"]),
.cont .article-cont th[style*="background"]:not([style*="#c0392b"]):not([style*="#C0392B"]) {
    color: #333 !important;
}
/* th 内联深红背景 → 保持白字 */
.cont th[style*="#c0392b"], .cont th[style*="#C0392B"],
.cont .article-cont th[style*="#c0392b"], .cont .article-cont th[style*="#C0392B"] {
    color: #fff !important;
}

/* --- 2) 正文表格正常换行，不再横向溢出 --- */
.cont table {
    display: table !important;
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
}
.cont table thead, .cont table tbody, .cont table tr,
.cont table th, .cont table td {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere;
}
