/* ============================================================
   版块帖子列表页（forumdisplay）BUG 修复  v26112196
   ────────────────────────────────────────────────────────────
   ⚠ 本文件只修 BUG，不改任何卡片外观。
     卡片样式继续由站点原有的 dzx5_forumdisplay_threadcards_v26112001.css 负责
     （PC 一行一条 + 10px 间距；移动端 76px 紧凑卡）

   修复项：
   1. tbody#separatorline（分隔行）被误当帖子渲染成空白卡
   2. 表头条 .th 的内容盒比帖子列表窄 24px → 作者/回复/最后发表 三列整体左偏
   3. 表头三列文字左对齐，数据列居中 → 视觉错位
   ============================================================ */

/* ---------- 1. 分隔行 / 空行 ---------- */
html:root body.pg_forumdisplay #ct#ct#ct #threadlisttableid > tbody#separatorline,
html:root body.pg_forumdisplay #ct#ct#ct #threadlisttableid > tbody#separatorline > tr,
html:root body.pg_forumdisplay #ct#ct#ct #threadlisttableid > tbody.dx-thread-pin-divider,
html:root body.pg_forumdisplay #ct#ct#ct #threadlisttableid > tbody > tr:not(:has(td,th)){
  display:none!important;
}

/* ---------- 2 & 3. 表头条与数据列严格对齐 ---------- */
@media (min-width:721px){
  /* .th 的水平内容盒 = #threadlisttableid 的水平盒（都是 12px 外边）
     水平 padding 移到内部首/末单元格上，避免表格被内缩 12px */
  html:root body.pg_forumdisplay #ct#ct#ct #threadlist > .th{
    box-sizing:border-box!important;
    width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;
    margin:0 12px 8px!important;
    padding:8px 0!important;
  }
  html:root body.pg_forumdisplay #ct#ct#ct #threadlist > .th > table{
    width:100%!important;max-width:100%!important;
    margin:0!important;
    table-layout:fixed!important;
  }
  /* 左右各留 12px 内边，文字不贴边 */
  html:root body.pg_forumdisplay #ct#ct#ct #threadlist > .th > table > tbody > tr > th:first-child{
    padding-left:12px!important;
  }
  /* 列宽与数据列一一对应（数据列：by 108 / num 68 / by 108），并居中 */
  html:root body.pg_forumdisplay #ct#ct#ct #threadlist > .th > table > tbody > tr > td.by{
    width:108px!important;min-width:108px!important;max-width:108px!important;
    text-align:center!important;
  }
  html:root body.pg_forumdisplay #ct#ct#ct #threadlist > .th > table > tbody > tr > td.num{
    width:68px!important;min-width:68px!important;max-width:68px!important;
    text-align:center!important;
    white-space:nowrap!important;
  }
}
