/* WXSSC V67.3-B Home Price Light Table Center
   只修首页轻量预览表格的视觉居中，不影响 /prices.html 价格中心。
*/

/* 表格整体保持左列内，不撑破右侧栏 */
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-table{
  width:100% !important;
  table-layout:fixed !important;
}

/* 表头统一垂直居中 */
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-table th{
  vertical-align:middle !important;
  line-height:1.25 !important;
}

/* 表格单元格统一垂直居中 */
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-table td{
  vertical-align:middle !important;
  line-height:1.35 !important;
}

/* 公司列保留左对齐，符合快速扫公司名 */
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-table th:nth-child(1),
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-table td:nth-child(1){
  text-align:left !important;
}

/* 品名、规格、价格、涨跌、日期盘次居中 */
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-table th:nth-child(2),
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-table td:nth-child(2),
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-table th:nth-child(3),
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-table td:nth-child(3),
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-table th:nth-child(4),
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-table td:nth-child(4),
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-table th:nth-child(5),
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-table td:nth-child(5),
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-table th:nth-child(6),
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-table td:nth-child(6){
  text-align:center !important;
}

/* 日期 / 盘次两行整体居中 */
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-date{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  width:100% !important;
  min-height:48px !important;
  gap:5px !important;
  overflow:visible !important;
}

/* 日期数字居中 */
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-date b{
  display:block !important;
  width:100% !important;
  margin:0 !important;
  text-align:center !important;
  white-space:nowrap !important;
}

/* 下午盘胶囊居中 */
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-session{
  margin:0 auto !important;
  align-self:center !important;
  justify-self:center !important;
}

/* 价格数字居中后保持红色清晰 */
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-price{
  display:inline-block !important;
  min-width:82px !important;
  text-align:center !important;
}

/* 涨跌列即使为空，也居中 */
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-up,
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-down,
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-flat{
  display:inline-block !important;
  min-width:24px !important;
  text-align:center !important;
}

/* 统计卡数值视觉居中，顶部信息更稳 */
html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-stat{
  text-align:left !important;
}

html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-stat b{
  text-align:left !important;
}

/* 移动端保持同样居中逻辑 */
@media(max-width:760px){
  html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-date{
    min-height:46px !important;
  }

  html body #priceCenter.wx-home-price-light-v672d .wx-hpl672d-price{
    min-width:72px !important;
  }
}
