/* WXSSC V65.69E - keep tabs/filter visible while scrolling */

body.wx-v6569e-scroll {
  scroll-behavior: smooth;
}

/* 顶部黑色导航固定 */
body.wx-v6569e-scroll .wx55-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 90 !important;
  backdrop-filter: blur(16px) !important;
}

/* 最新情报 ticker 不固定，避免顶部太厚 */
body.wx-v6569e-scroll .wx55-ticker {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
}

/* 关键修正：PC端无论高度多少，Tabs + 搜索筛选区都保持可见 */
body.wx-v6569e-scroll .wx55-main {
  overflow: visible !important;
}

body.wx-v6569e-scroll .wx55-tabs {
  position: sticky !important;
  top: 62px !important;
  z-index: 75 !important;
  min-height: 40px !important;
  background: rgba(255,255,255,.98) !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.055) !important;
  border-bottom: 1px solid #dbeafe !important;
}

body.wx-v6569e-scroll .wx55-tools {
  position: sticky !important;
  top: 104px !important;
  z-index: 74 !important;
  min-height: 38px !important;
  background: rgba(255,255,255,.98) !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.045) !important;
  border-bottom: 1px solid #e5edf7 !important;
}

/* 右侧栏继续跟随，顶部留出导航高度即可 */
body.wx-v6569e-scroll .wx55-side {
  position: sticky !important;
  top: 76px !important;
  max-height: calc(100vh - 92px) !important;
  overflow-y: auto !important;
  padding-right: 2px !important;
  scrollbar-width: thin !important;
  scrollbar-color: #cbd5e1 transparent !important;
}

/* 列表跳转和焦点不被工具条遮挡 */
body.wx-v6569e-scroll .wx55-feed .wx55-item {
  scroll-margin-top: 150px !important;
}

/* 修正旧 C/D 类残留 */
body.wx-v6569e-scroll.wx-v6569c-scroll .wx55-ticker,
body.wx-v6569e-scroll.wx-v6569d-scroll .wx55-ticker {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
}

body.wx-v6569e-scroll.wx-v6569c-scroll .wx55-tabs,
body.wx-v6569e-scroll.wx-v6569d-scroll .wx55-tabs {
  position: sticky !important;
  top: 62px !important;
}

body.wx-v6569e-scroll.wx-v6569c-scroll .wx55-tools,
body.wx-v6569e-scroll.wx-v6569d-scroll .wx55-tools {
  position: sticky !important;
  top: 104px !important;
}

body.wx-v6569e-scroll.wx-v6569c-scroll .wx55-side,
body.wx-v6569e-scroll.wx-v6569d-scroll .wx55-side {
  position: sticky !important;
  top: 76px !important;
  max-height: calc(100vh - 92px) !important;
}

/* 悬浮按钮保留，降低占位感 */
body.wx-v6569e-scroll .wx-v6569c-floatbar,
body.wx-v6569e-scroll .wx-v6569d-floatbar,
body.wx-v6569e-scroll .wx-v6569e-floatbar {
  position: fixed !important;
  right: 18px !important;
  bottom: 20px !important;
  z-index: 120 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
}

body.wx-v6569e-scroll .wx-v6569c-floatbar button,
body.wx-v6569e-scroll .wx-v6569c-floatbar a,
body.wx-v6569e-scroll .wx-v6569d-floatbar button,
body.wx-v6569e-scroll .wx-v6569d-floatbar a,
body.wx-v6569e-scroll .wx-v6569e-floatbar button,
body.wx-v6569e-scroll .wx-v6569e-floatbar a {
  width: 40px !important;
  height: 40px !important;
  border-radius: 14px !important;
  border: 1px solid #e5edf7 !important;
  background: rgba(255,255,255,.94) !important;
  color: #334155 !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.12) !important;
  display: grid !important;
  place-items: center !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
  cursor: pointer !important;
}

/* 进度条 */
.wx-v6569e-progress {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  height: 3px !important;
  width: 0 !important;
  z-index: 999 !important;
  background: linear-gradient(90deg,#2563eb,#e11d48,#d97706) !important;
}

/* 只有窄屏取消 sticky；不再因 max-height 取消 */
@media (max-width: 980px) {
  body.wx-v6569e-scroll .wx55-top,
  body.wx-v6569e-scroll .wx55-tabs,
  body.wx-v6569e-scroll .wx55-tools,
  body.wx-v6569e-scroll .wx55-side {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.wx-v6569e-scroll .wx55-feed .wx55-item {
    scroll-margin-top: 20px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.wx-v6569e-scroll {
    scroll-behavior: auto !important;
  }
}
