/* WXSSC V68.6-I1 flash-news layout width align
   Goal:
   1) Top-left important events width = lower market flash list width.
   2) Top-right realtime intelligence width = lower products/sidebar width.
   Scope: flash-news page .wx55 only.
*/

:root{
  --wx-flash-page-v686i1:1300px;
  --wx-flash-left-v686i1:960px;
  --wx-flash-side-v686i1:322px;
  --wx-flash-gap-v686i1:18px;
}

/* 页面宽度统一：重要事件行、下方主布局同一 1300 容器 */
html body .wx55-wrap.wx55-important,
html body .wx55-wrap.wx55-layout{
  width:min(var(--wx-flash-page-v686i1), calc(100vw - 36px)) !important;
  max-width:var(--wx-flash-page-v686i1) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}

/* 下方：市场快讯内容列表 + 右侧栏 */
html body .wx55-wrap.wx55-layout{
  display:grid !important;
  grid-template-columns:minmax(0, var(--wx-flash-left-v686i1)) var(--wx-flash-side-v686i1) !important;
  gap:var(--wx-flash-gap-v686i1) !important;
  align-items:start !important;
}

html body .wx55-main{
  min-width:0 !important;
  width:100% !important;
}

html body .wx55-side{
  width:var(--wx-flash-side-v686i1) !important;
  min-width:var(--wx-flash-side-v686i1) !important;
  max-width:var(--wx-flash-side-v686i1) !important;
  box-sizing:border-box !important;
}

/* 上方：重要事件 + 实时情报 · 快人一步，严格复用下方两列宽度 */
html body .wx55-wrap.wx55-important,
html body .wx55-wrap.wx55-important.wx-v6568d-important{
  display:grid !important;
  grid-template-columns:minmax(0, var(--wx-flash-left-v686i1)) var(--wx-flash-side-v686i1) !important;
  gap:var(--wx-flash-gap-v686i1) !important;
  align-items:stretch !important;
  overflow:visible !important;
}

/* 兼容 JS 重建前的旧结构 */
html body .wx55-important-left{
  min-width:0 !important;
  width:100% !important;
  box-sizing:border-box !important;
}

html body .wx55-promo{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  box-sizing:border-box !important;
}

/* JS 重建后的 V65.68D 真实结构 */
html body .wx55-important.wx-v6568d-important .wx-v6568d-important-main{
  min-width:0 !important;
  width:100% !important;
  box-sizing:border-box !important;
}

html body .wx55-important.wx-v6568d-important .wx-v6568d-important-vip{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  box-sizing:border-box !important;
  display:flex !important;
}

/* 重要事件内部卡片不要撑破 960 左列 */
html body .wx-v6568d-important-grid{
  min-width:0 !important;
}

html body .wx-v6568d-event{
  min-width:0 !important;
}

/* 右侧“旗下产品”等卡片强制吃满 322 列 */
html body .wx55-side .wx55-card,
html body .wx55-side .wx-v6569a-side-card{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

/* 平板以下恢复一列，避免移动端挤压 */
@media(max-width:900px){
  :root{
    --wx-flash-page-v686i1:760px;
    --wx-flash-gap-v686i1:14px;
  }

  html body .wx55-wrap.wx55-important,
  html body .wx55-wrap.wx55-layout{
    width:min(760px, calc(100vw - 20px)) !important;
    max-width:min(760px, calc(100vw - 20px)) !important;
  }

  html body .wx55-wrap.wx55-important,
  html body .wx55-wrap.wx55-important.wx-v6568d-important,
  html body .wx55-wrap.wx55-layout{
    grid-template-columns:1fr !important;
  }

  html body .wx55-side{
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
  }
}
