/* ghns58858x 复刻站 · 逐模块对齐补丁（scoped）
   来源：源站实测（Playwright getComputedStyle，390x844 移动视口）
   范围：仅 .ghns58858x-wrap 内；不改源站 4 个 CSS 文件、不改 fill.js
   目标：文本型模块 .gh-text 对齐源站 ul.ziliao > li 的「框 / 字体 / 字体颜色」
   源站 li 实测：font-family Microsoft YaHei / font-size 16px / font-weight 600 /
                color rgb(0,0,0) / background rgb(255,255,255) / padding 2px 0 /
                margin 2px 0 / text-align center / line-height normal / 行高 25px */

/* —— 文本型模块（idx 3/6/8/9/11/13/14/15/17/18/19）—— */
.ghns58858x-wrap .box .gh-text,
.ghns58858x-wrap .ziliao .gh-text{
  font-family:"Microsoft YaHei", Arial, Helvetica, sans-serif;
  font-size:16px;
  font-weight:600;
  color:#000;
  text-align:center;
}
.ghns58858x-wrap .box .gh-text p,
.ghns58858x-wrap .ziliao .gh-text p{
  font-family:"Microsoft YaHei", Arial, Helvetica, sans-serif;
  font-size:16px;
  font-weight:600;
  color:#000;
  background-color:#fff;
  padding:2px 0;
  margin:2px 0;
  text-align:center;
  line-height:normal;
}

/* —— rows 型模块（idx 0/1/2/4/5/7/10/12/16）——
   与 fill.js（v5）同值的保险副本：本文件承载，避免他人改动 fill.js 时对齐失效。
   源站实测：table 自身 border-width 0、.stairs 背景透明；td 边框色随表类
   （.stairs rgb(190,190,182) / .duilianpt1 rgb(231,213,164)）——故此处**不设 table 边框/底色、不改 td 边框色**。 */
.ghns58858x-wrap .box table.stairs td,
.ghns58858x-wrap .ziliao table.stairs td{
  border-left:0;
  border-right:0;
  padding:2px 0;
  line-height:normal;
}
.ghns58858x-wrap .box table:not(.stairs) td,
.ghns58858x-wrap .ziliao table:not(.stairs) td{
  border-left:0;
  border-right:0;
}
.ghns58858x-wrap .box table tr td:first-child,
.ghns58858x-wrap .ziliao table tr td:first-child{border-left-width:1px}
.ghns58858x-wrap .box table tr td:last-child,
.ghns58858x-wrap .ziliao table tr td:last-child{border-right-width:1px}
/* 期号行：整行浅青底 + 单行居中（源站 .firstt 实测 #5af9b8 / center / 2px 0） */
.ghns58858x-wrap .box table tr.firstRow td,
.ghns58858x-wrap .ziliao table tr.firstRow td{
  background-color:#5af9b8;
  text-align:center;
  font-weight:bold;
  white-space:nowrap;
  padding:2px 0;
}

/* —— 对奖列（CEO 10-04）：独立成格、与标题列有竖线分隔、不折行 —— */
.ghns58858x-wrap .box table td.gh-jdc,
.ghns58858x-wrap .ziliao table td.gh-jdc{
  border-left:1px solid #bebeb6;
  text-align:center;
  white-space:nowrap;
  background-color:#ffffff;
  color:#000;
  font-weight:700;
}
/* 期号行里的对奖列：保留浅青底但用竖线分隔，避免「像挤进标题」 */
.ghns58858x-wrap .box table tr.firstRow td.gh-jdc{
  background-color:#5af9b8;
}
/* text 型模块的每期对奖行 */
.ghns58858x-wrap .box .gh-text p.gh-jdc,
.ghns58858x-wrap .ziliao .gh-text p.gh-jdc{
  color:#000;
  background-color:#fff;
  text-align:center;
  font-weight:700;
  padding:2px 0;
  margin:2px 0;
}
/* CEO 10-04 框修复：对奖改为行内 span（不新增列），右浮 + 竖线分隔，避免期号行标题格溢出 */
span.gh-jdc{float:right;white-space:nowrap;background:#5af9b8;border-left:1px solid #bebeb6;padding:0 4px;margin-left:6px;font-weight:700}
tr.firstRow td.firstt{white-space:normal}


/* ===== CEO 10-15 修复：鳌虾户【中奖16码】三期必出特 =====
   表：table.duilianpt1.gh-aoixiahu16（6 行 / 3 列 th-td-th）
   问题：首行死宽 td width=655 / th width=22% / 另一行 th width=179 →
        390 视口出现横向滚动、6 行三列不对齐。
   处理：index.html 去掉死宽；此处 scoped 定宽三列（20%/auto/26%）+
        字号 <=12pt + word-break:break-all，保证 390 宽不横滚、三列对齐。
   范围：仅本表；不改 .duilianpt1 通用样式，不改 style41.css。 */
.ghns58858x-wrap .box table.duilianpt1.gh-aoixiahu16{
  table-layout:fixed;
  width:100%;
}
.ghns58858x-wrap .box table.duilianpt1.gh-aoixiahu16 tr > th:nth-child(1),
.ghns58858x-wrap .box table.duilianpt1.gh-aoixiahu16 tr > td:nth-child(1){width:20%;}
.ghns58858x-wrap .box table.duilianpt1.gh-aoixiahu16 tr > td:nth-child(2){width:auto;}
.ghns58858x-wrap .box table.duilianpt1.gh-aoixiahu16 tr > th:nth-child(3),
.ghns58858x-wrap .box table.duilianpt1.gh-aoixiahu16 tr > td:nth-child(3){width:26%;}
.ghns58858x-wrap .box table.duilianpt1.gh-aoixiahu16 td,
.ghns58858x-wrap .box table.duilianpt1.gh-aoixiahu16 th,
.ghns58858x-wrap .box table.duilianpt1.gh-aoixiahu16 p,
.ghns58858x-wrap .box table.duilianpt1.gh-aoixiahu16 span{
  font-size:12pt;
  word-break:break-all;
  white-space:normal;
}
/* 6 行统一：仅首行保留浅青底(#5af9b8)，其余 5 行不留底色（CSS 兜底，DOM 侧由 fill.js 去掉多余 firstRow） */
.ghns58858x-wrap .box table.duilianpt1.gh-aoixiahu16 tr:first-child td{
  background-color:#5af9b8;
}
.ghns58858x-wrap .box table.duilianpt1.gh-aoixiahu16 tr:not(:first-child) td,
.ghns58858x-wrap .box table.duilianpt1.gh-aoixiahu16 tr:not(:first-child) th{
  background-color:transparent;
}
