/* WXSSC V67.2-D2 Home Price Light Container Fix
   修复首页价格轻量模块在首页左列内强行 1300 导致压到右侧栏的问题。
   注意：只作用首页 #priceCenter，不影响 /prices.html 价格中心 1300 工作台。
*/

/* 首页左列内：必须跟随父容器，不允许强行 1300 */
html body #priceCenter.wx-home-price-light-v672d,
html body section#priceCenter.wx-home-price-light-v672d,
html body [data-wx-home-price-light="true"]{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 0 22px 0 !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}

/* 内部元素也按 border-box 计算，避免 padding/border 撑破父容器 */
html body #priceCenter.wx-home-price-light-v672d *,
html body #priceCenter.wx-home-price-light-v672d *::before,
html body #priceCenter.wx-home-price-light-v672d *::after{
  box-sizing:border-box !important;
}

/* 搜索区、统计区、表格区不得超过左列 */
html body #priceCenter .wx-hpl672d-inner,
html body #priceCenter .wx-hpl672d-search,
html body #priceCenter .wx-hpl672d-summary,
html body #priceCenter .wx-hpl672d-table-wrap,
html body #priceCenter .wx-hpl672d-table{
  max-width:100% !important;
}

/* 表格内部可以横向滚动，但不能把整个模块撑出右侧栏 */
html body #priceCenter .wx-hpl672d-table-wrap{
  overflow-x:auto !important;
  overflow-y:hidden !important;
}

html body #priceCenter .wx-hpl672d-table{
  width:100% !important;
  min-width:720px !important;
}

/* 首页模块头部在窄列下允许换行 */
html body #priceCenter .wx-hpl672d-head{
  min-width:0 !important;
}

html body #priceCenter .wx-hpl672d-actions{
  min-width:0 !important;
}

/* 首页两列布局里，主列和侧栏都允许正确收缩，避免子元素撑破 grid/flex */
html body main,
html body .home-main,
html body .home-layout,
html body .wx-home-layout,
html body .wx67-layout,
html body .wx67-main,
html body .wx67-content,
html body .hm-layout,
html body .hm-main{
  min-width:0 !important;
}

/* 右侧情报/VIP栏保持在右侧，不被价格模块覆盖 */
html body aside,
html body .home-sidebar,
html body .wx-home-sidebar,
html body .wx67-sidebar,
html body .hm-sidebar{
  min-width:0 !important;
  position:relative;
  z-index:2;
}

/* 移动端：仍然满宽显示 */
@media(max-width:900px){
  html body #priceCenter.wx-home-price-light-v672d,
  html body section#priceCenter.wx-home-price-light-v672d,
  html body [data-wx-home-price-light="true"]{
    width:100% !important;
    max-width:100% !important;
    margin:0 0 16px 0 !important;
  }

  html body #priceCenter .wx-hpl672d-table{
    min-width:680px !important;
  }
}
