/* WXSSC V68.6-I3D flash-news toolbar unstick final
   Purpose:
   Override old body.wx-v6569e-scroll / I3 sticky toolbar rules.
   Visual only. No API/SSE/JS logic changes.
*/

/* 最高优先级：压住旧 wx-v6569e-scroll sticky */
html body.wx-v6569e-scroll .wx55-main .wx55-tabs,
html body.wx-v6569e-scroll .wx55-main .wx55-tabs[data-wx55-tabs],
html body.wx-v6569e-scroll .wx55-tabs,
html body.wx-v6569e-scroll.wx-v6569c-scroll .wx55-tabs,
html body.wx-v6569e-scroll.wx-v6569d-scroll .wx55-tabs,
html body.wx-v6569c-scroll .wx55-tabs,
html body.wx-v6569d-scroll .wx55-tabs,
html body .wx55-main .wx55-tabs,
html body .wx55-main .wx55-tabs[data-wx55-tabs]{
  position:static !important;
  top:auto !important;
  bottom:auto !important;
  z-index:auto !important;
  transform:none !important;
}

html body.wx-v6569e-scroll .wx55-tools,
html body.wx-v6569e-scroll.wx-v6569c-scroll .wx55-tools,
html body.wx-v6569e-scroll.wx-v6569d-scroll .wx55-tools,
html body.wx-v6569c-scroll .wx55-tools,
html body.wx-v6569d-scroll .wx55-tools,
html body .wx55-tools{
  position:static !important;
  top:auto !important;
  bottom:auto !important;
  z-index:auto !important;
  transform:none !important;
}

/* 右栏可继续 sticky，不影响左侧列表；这里只解除顶部工具栏 */
html body.wx-v6569e-scroll .wx55-side{
  position:sticky !important;
  top:76px !important;
}

/* 主卡片：自然文档流，不让工具栏悬浮遮内容 */
html body .wx55-main{
  overflow:hidden !important;
  border-radius:14px !important;
}

/* 第一行分类工具栏 */
html body .wx55-main .wx55-tabs[data-wx55-tabs]{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:7px !important;
  min-height:42px !important;
  height:auto !important;
  padding:7px 14px 6px !important;
  background:#fff !important;
  border-bottom:1px solid rgba(148,163,184,.14) !important;
  box-shadow:none !important;
}

/* 分类按钮 */
html body .wx55-main .wx55-tab,
html body .wx55-main .wx55-chip{
  height:29px !important;
  min-height:29px !important;
  padding:0 11px !important;
  border-radius:999px !important;
  font-size:12px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}

/* 第二行控制工具栏 */
html body .wx55-tools{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  min-height:40px !important;
  height:40px !important;
  padding:5px 14px !important;
  background:linear-gradient(180deg,#fbfdff,#f8fbff) !important;
  border-bottom:1px solid rgba(148,163,184,.16) !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
}

/* 日期区 */
html body .wx55-date{
  flex:0 0 auto !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  white-space:nowrap !important;
}

html body #wx55Date{
  height:28px !important;
  padding:0 8px !important;
  border:0 !important;
  background:transparent !important;
  color:#334155 !important;
  font-size:13px !important;
  font-weight:950 !important;
}

html body .wx55-check{
  height:28px !important;
  padding:0 8px !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  border-radius:8px !important;
  background:#fff !important;
  border:1px solid rgba(148,163,184,.18) !important;
  color:#64748b !important;
  font-size:12px !important;
  font-weight:850 !important;
}

/* 右侧工具组 */
html body .wx55-righttools{
  flex:1 1 auto !important;
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:7px !important;
}

html body .wx55-search{
  flex:1 1 310px !important;
  min-width:260px !important;
  max-width:360px !important;
  width:auto !important;
  height:29px !important;
  padding:0 13px !important;
  border-radius:999px !important;
  background:#fff !important;
  border:1px solid rgba(148,163,184,.20) !important;
  font-size:12px !important;
  font-weight:800 !important;
  outline:none !important;
}

html body .wx55-search:focus{
  border-color:rgba(37,99,235,.45) !important;
  box-shadow:0 0 0 3px rgba(37,99,235,.08) !important;
}

html body .wx55-btn{
  height:29px !important;
  min-width:0 !important;
  padding:0 10px !important;
  border-radius:999px !important;
  font-size:12px !important;
  font-weight:900 !important;
  box-shadow:none !important;
}

html body #wx55Voice,
html body #wx55Auto{
  min-width:72px !important;
}

html body #wx55Refresh{
  min-width:48px !important;
}

/* 新情报提示条继续轻量 */
html body .wx55-newbar{
  height:26px !important;
  min-height:26px !important;
  line-height:26px !important;
  font-size:12px !important;
  background:#f6fbff !important;
  color:#2563eb !important;
  border-top:1px solid rgba(37,99,235,.08) !important;
  border-bottom:1px solid rgba(37,99,235,.08) !important;
  box-shadow:none !important;
}

/* 旧 scroll-margin 防止点击/推送时跳到被遮挡位置 */
html body.wx-v6569e-scroll .wx55-feed .wx55-item,
html body.wx-v6569c-scroll .wx55-feed .wx55-item,
html body.wx-v6569d-scroll .wx55-feed .wx55-item{
  scroll-margin-top:82px !important;
}

/* 中屏自然换行 */
@media(max-width:1100px){
  html body .wx55-tools{
    height:auto !important;
    min-height:40px !important;
    flex-wrap:wrap !important;
  }

  html body .wx55-date{
    flex:1 1 100% !important;
  }

  html body .wx55-righttools{
    width:100% !important;
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
  }

  html body .wx55-search{
    max-width:none !important;
    min-width:220px !important;
  }

  html body.wx-v6569e-scroll .wx55-side{
    position:static !important;
    top:auto !important;
  }
}
