/* Ultimate Layout Fix - 最终布局修复样式 */

/* 高优先级覆盖导航栏样式 */
html body.font-inter.text-dark.bg-white.compact-business.business-style header#navbar,
html body.font-inter.text-dark.bg-white.compact-business.business-style header[id="navbar"],
body.compact-business.business-style #navbar {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  position: fixed !important;
  top: 0 !important;
}

/* 强制覆盖导航栏内联样式 */
#navbar[style*="height: 55px"],
#navbar[style*="height: 42px"] {
  height: 42px !important;
  min-height: 42px !important;
}

#navbar .flex.items-center.justify-between[style*="height: 42px"] {
  height: 42px !important;
  min-height: 42px !important;
}

/* 强制修复二级导航位置 */
html body.compact-business.business-style div.biz-tab-navigation,
body.compact-business.business-style .biz-tab-navigation {
  position: sticky !important;
  top: 42px !important;
  position: fixed !important; /* 使用fixed定位代替sticky */
  top: 42px !important;
  width: 100% !important;
  z-index: 145 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 修复main元素的padding */
html body.compact-business.business-style main,
body.compact-business.business-style main.pt-0.pb-8,
body.compact-business.business-style main.pt-8.pb-12 {
  padding-top: 84px !important; /* 42px (导航) + 42px (二级导航高度估算) */
  margin-top: 0 !important;
}

/* 强制覆盖所有Hero区域样式 */
html body.compact-business.business-style .guide-hero,
html body.compact-business.business-style .hero,
html body.compact-business.business-style .comparison-hero,
html body.compact-business.business-style .roi-hero,
html body.compact-business.business-style .case-hero,
html body.compact-business.business-style .cert-hero {
  padding: 12px 10px !important;
  margin: 0 0 8px 0 !important;
  min-height: auto !important;
  height: auto !important;
}

/* 修复可能存在的其他sticky元素 */
html body.compact-business.business-style .header,
body.compact-business.business-style .header {
  position: static !important;
  top: auto !important;
  position: relative !important;
}

/* 强制修复页面整体布局 */
body.compact-business.business-style {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* 修复容器可能的偏移 */
body.compact-business.business-style .container,
body.compact-business.business-style .biz-tab-nav-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 使用更具体的选择器覆盖可能的冲突样式 */
body.font-inter.text-dark.bg-white.compact-business.business-style #navbar + div.biz-tab-navigation + main {
  padding-top: 84px !important;
}

/* 确保页面滚动正常 */
html {
  scroll-padding-top: 42px !important;
}