/* HK 站版式清理 2026-10-20 · 只作用于 roboticsdeal.com
   1) 隐藏 CMS 旧页脚块（灰底 + 中文链接）
   2) 加宽左侧固定导航，避免文字被截断
   3) 内容区偏移同步
   4) 隐藏重复的客服气泡
   5) 隐藏右侧被挤扁的楼层导航（文字全被截断，功能由浮标替代）
*/

@media (min-width: 1081px) {
/* 1. 旧页脚 / 旧导航块 */
html body .website-nav-n2,
html body .website-nav-n2.wow {
  display: none !important;
}

/* 2. 左侧导航加宽 + 文字不截断（四重类名压过后台默认 136px） */
html body nav.zlh-mainnav.zlh-mainnav.zlh-mainnav.zlh-mainnav {
  width: 210px !important;
  min-width: 210px !important;
  max-width: 210px !important;
  padding: 0 8px 20px !important;
  overflow: visible !important;
}
html body nav.zlh-mainnav.zlh-mainnav.zlh-mainnav.zlh-mainnav > a {
  font-size: 12.5px !important;
  line-height: 20px !important;
  padding: 6px 8px !important;
  gap: 6px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  min-width: 0 !important;
}
html body nav.zlh-mainnav.zlh-mainnav.zlh-mainnav.zlh-mainnav > a > span,
html body nav.zlh-mainnav.zlh-mainnav.zlh-mainnav.zlh-mainnav > a > i {
  min-width: 0 !important;
  white-space: nowrap !important;
}

/* 3. 内容区偏移（210 + 16） */
html body #mxi_1788990482#mxi_1788990482#mxi_1788990482#mxi_1788990482 {
  margin-left: 226px !important;
  width: calc(100% - 310px) !important;
  max-width: calc(100% - 310px) !important;
}

/* 4. 重复客服气泡 */
html body .plugin-kefu-icon,
html body .plugin-kefu-icon.plugin-kefu-icon {
  display: none !important;
}

/* 5. 被挤扁的右侧楼层导航 */
html body .zlh-floor-top,
html body .zlh-floor-top.zlh-floor-top {
  display: none !important;
}

/* 6. 小屏适配 */

/* 7. 右侧被挤扁的楼层工具条（100px 装不下，文字全截断） */
html body #zlh-floor-tools,
html body #zlh-floor-tools#zlh-floor-tools {
  display: none !important;
}

/* 8. 顶部导航在 1440 下挤爆：压缩字号与间距 */
html body header.zlh-brand .zlh-mainnav__links,
html body header.zlh-brand nav.zlh-links {
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}
html body header.zlh-brand .zlh-links a,
html body header.zlh-brand .zlh-mainnav__links a {
  font-size: 13px !important;
  padding: 0 6px !important;
}
html body header.zlh-brand .zlh-brand__tools {
  margin-left: auto !important;
}

/* 9. 顶部导航里与右上按钮重复的「联系我们 / 关于我们」隐藏 */
html body header.zlh-brand .zlh-links a[href*="type/7"],
html body header.zlh-brand .zlh-links a[href*="type/8"] {
  display: none !important;
}

/* 10. 顶栏：导航可压缩、右按钮组固定（1440 下不再被挤出屏幕） */
html body header.zlh-brand { flex-wrap: nowrap !important; }
html body header.zlh-brand nav#zlh-homenav {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  justify-content: flex-start !important;
  column-gap: 2px !important;
}
html body header.zlh-brand nav#zlh-homenav > a {
  font-size: 11.5px !important;
  padding: 0 4px !important;
  white-space: nowrap !important;
  letter-spacing: -0.2px !important;
}
html body header.zlh-brand nav.zlh-brand__tools {
  flex: 0 0 auto !important;
  margin-left: 10px !important;
  gap: 8px !important;
}

/* 11. 顶栏精简：去重/低频入口从顶部移除（左侧导航与页脚仍有） */
html body header.zlh-brand nav#zlh-homenav > a[href="/type/3.html"],
html body header.zlh-brand nav#zlh-homenav > a[href="/type/9.html"],
html body header.zlh-brand nav#zlh-homenav > a[href="/type/5.html"],
html body header.zlh-brand nav#zlh-homenav > a[href="/type/6.html"],
html body header.zlh-brand nav#zlh-homenav > a[href="/type/7.html"],
html body header.zlh-brand nav#zlh-homenav > a[href="/type/8.html"] {
  display: none !important;
}

/* 12. 搜索框收窄 60px，把空间让给导航最后一项 */
html body header.zlh-brand form.zlh-search,
html body header.zlh-brand form.zlh-search.zlh-search {
  width: 300px !important;
  min-width: 260px !important;
  max-width: 300px !important;
  flex: 0 0 300px !important;
}

/* 13. 右侧浮标面板：默认收起，悬停/点击才展开（香港站之前全开着，压住页脚） */
html body .DQHrhx2026-rail__panel,
html body .DQHrhx2026-rail__panel.DQHrhx2026-rail__panel {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
html body .DQHrhx2026-rail__item:hover > .DQHrhx2026-rail__panel,
html body .DQHrhx2026-rail__item.is-open > .DQHrhx2026-rail__panel,
html body .DQHrhx2026-rail__item.is-open .DQHrhx2026-rail__panel {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
}

/* ================= 移动端（≤1080）重排 ================= */
@media (max-width: 1080px) {


  /* 首屏广告横幅：移动端只保留中间块，铺满整宽（三块并排在手机上必然挤） */
  html body .zlh-home-native-ad,
  html body .zlh-home-native-ad > a {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }
  html body .zlh-banner-side { display: none !important; }
  html body .zlh-banner-center {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
  }
  html body .zlh-banner-center img {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    transform: none !important;
  }
  /* 移动端隐藏重复的客服气泡与楼层工具 */
  html body .plugin-kefu-icon { display: none !important; }
  html body #zlh-floor-tools { display: none !important; }
  /* 顶栏：改成两行（logo + 搜索整行），不再溢出 */
  html body header.zlh-brand {
    position: static !important;
    height: auto !important;
    flex-wrap: wrap !important;
    row-gap: 8px !important;
    padding: 10px 12px !important;
  }
  html body header.zlh-brand .zlh-brand__logo { flex: 0 0 auto !important; }
  html body header.zlh-brand form.zlh-search {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    order: 3 !important;
  }
  html body header.zlh-brand nav#zlh-homenav { display: none !important; }
  html body header.zlh-brand nav.zlh-brand__tools { flex: 0 0 auto !important; margin-left: auto !important; }

  /* 左侧固定导航：改为横向可滑动的菜单条 */
  html body nav.zlh-mainnav.zlh-mainnav.zlh-mainnav.zlh-mainnav {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    padding: 8px 12px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: #fff !important;
    border-bottom: 1px solid #e2eefb !important;
  }
  html body nav.zlh-mainnav.zlh-mainnav.zlh-mainnav.zlh-mainnav > a {
    flex: 0 0 auto !important;
    font-size: 13px !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    background: #f2f8ff !important;
    border: 1px solid #dbe9f8 !important;
    white-space: nowrap !important;
  }
  html body nav.zlh-mainnav.zlh-mainnav.zlh-mainnav.zlh-mainnav > a > i,
  html body nav.zlh-mainnav.zlh-mainnav.zlh-mainnav.zlh-mainnav > a::after { display: none !important; }

  /* 内容区：取消左侧偏移，占满整宽 */
  html body #mxi_1788990482#mxi_1788990482#mxi_1788990482#mxi_1788990482 {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 12px !important;
  }
  html body .tmp_start { overflow-x: hidden !important; }

  /* 图片与表格自适应 */
  html body img { max-width: 100% !important; height: auto !important; }
  html body table { width: 100% !important; display: block; overflow-x: auto; }

  /* 两列以上布局改单列 */
  html body .zlh-services__cards,
  html body .zlh-h01__cols,
  html body .zlh-topic-strip { grid-template-columns: 1fr !important; }

  /* 浮标与客服弹窗 */
  html body .DQHrhx2026-rail { display: none !important; }
  html body .DQHrhx2026-kefu { right: 8px !important; bottom: 8px !important; width: calc(100vw - 16px) !important; height: 68vh !important; }
}
