@media (max-width: 820px) {
  /* ===== P135 HituxCMS 系（hi-1718 / testmarts）移动端 ===== */
  /* hi-1718/testmarts 为 XHTML 文档，html/body 上设 overflow-x:hidden 会导致整页不渲染，改用 body 单独控制 */
  body { overflow-x: hidden; }

  /* 固定宽容器全部流式 */
  .TopInfo, .TopInfo .link, .TopLogo, .TopLogo .logo, .TopLogo .tel, .TopLogo .SearchTop,
  #NavLink, #NavLink #sddm,
  #wrapper, #wrapper #body, #Focus, .MainBlock, .MainBlock > div,
  #footer, #footer .inner, #dark_footer, .clearbox,
  .HeightTab, .WidthTab, .Column, .Sidebar, .Content {
    width: 100% !important; max-width: 100% !important;
    float: none !important; box-sizing: border-box !important;
  }

  /* 顶栏 / logo / 电话 */
  .TopInfo { height: auto !important; padding: 4px 8px; }
  .TopInfo .link { float: none !important; width: 100% !important; text-align: center; height: auto !important; }
  .TopLogo { height: auto !important; padding: 6px 8px; }
  .TopLogo .logo { float: none !important; width: 100% !important; height: auto !important; text-align: center; }
  .TopLogo .logo img { max-width: 100% !important; height: auto !important; }
  .TopLogo .tel, .TopLogo .SearchTop { float: none !important; width: 100% !important; height: auto !important; margin: 6px 0 0 !important; }
  .TopLogo .SearchTop #search-text, .SearchBar #search-text { width: 68% !important; }

  /* 导航横滑 */
  /* 导航：XHTML 下 overflow 裁切不可靠，改成换行排布，全部项目可见 */
  #NavLink { position: relative !important; overflow: visible !important; height: auto !important; }
  .NavBG { position: static !important; height: auto !important; background-size: auto 100% !important; }
  #NavLink #sddm {
    display: flex !important; flex-wrap: wrap !important;
    width: 100% !important; height: auto !important; padding: 0 !important;
  }
  #NavLink #sddm > li {
    float: none !important; flex: 1 1 33.33% !important; max-width: 33.34% !important; height: auto !important;
  }
  #NavLink #sddm > li > a {
    padding: 0 4px !important; font-size: 13px !important;
    line-height: 40px !important; height: 40px !important;
    text-align: center !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* 二级下拉是 div#m1..#m6（hover 显示），手机上无 hover，直接隐藏 */
  #NavLink #sddm > li > div, #NavLink #sddm ul { display: none !important; }

  /* 首页产品区：左侧分类 148 + 右侧产品 374 在 390 屏挤在一起 */
  .productShow, .hjnavleft, .hjnavleft ul, .hjnavleft li { width: 100% !important; float: none !important; box-sizing: border-box !important; }
  .hjnavleft { margin: 0 0 10px !important; }
  .hjnavleft li { display: flex; }
  .hjnavleft li a { flex: 1; }
  .hjnavcn { margin-top: 0 !important; }

  /* 首页产品分类导航块 .hjnavcn/.hjone 固定 820px */
  .hjnavcn, .hjone, .hjone > div, .hjnavcn > div { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
  .hjone div, .hjnavcn div, .hjnavcn a { max-width: 100% !important; }

  /* testmarts 用的是 #FocusBG + 背景图轮播（hi-1718 是 #Focus + img） */
  #FocusBG { width: 100% !important; height: auto !important; overflow: hidden; }
  #FocusBG .fullSlide, #FocusBG .bd { width: 100% !important; height: auto !important; position: static !important; }
  #FocusBG ul { width: 100% !important; height: auto !important; position: static !important; }
  #FocusBG li {
    width: 100% !important; height: 0 !important; padding-bottom: 37% !important;
    background-size: cover !important; background-position: center center !important;
    display: none !important; position: static !important;
  }
  #FocusBG li:first-child { display: block !important; }
  #FocusBG li a { display: block; height: 0; overflow: hidden; }
  #FocusBG .hd, #FocusBG .prev, #FocusBG .next { display: none !important; }

  /* 轮播：只留第一张，等比高度 */
  #Focus { height: auto !important; overflow: hidden; position: relative; }
  /* 轮播 ul 原为 absolute，脱离流后父层高度塌成 0 */
  #Focus ul { position: static !important; height: auto !important; overflow: visible !important; }
  #Focus ul { height: auto !important; width: 100% !important; }
  #Focus li { float: none !important; display: none !important; width: 100% !important; height: auto !important; }
  #Focus li:first-child { display: block !important; }
  #Focus li img { width: 100% !important; height: auto !important; display: block; }
  #Focus .btn, #Focus .btnBg { display: none !important; }

  /* 三栏 → 单栏；新闻/产品优先，关于其次 */
  .MainBlock { display: flex !important; flex-direction: column; padding: 0 10px; }
  .MainBlock > .left { order: 1; }
  .MainBlock > .right { order: 2; }
  .MainBlock > .right2 { order: 3; }
  .MainBlock > .left, .MainBlock > .right, .MainBlock > .right2 {
    width: 100% !important; margin: 0 0 16px !important;
  }
  .MainBlock .topic, .MainBlock .txt, .MainBlock .img { width: 100% !important; }
  .MainBlock .img img { max-width: 100% !important; height: auto !important; }

  /* 相册/产品缩略图两列 */
  .albumblock .inner, .inner .albumtitle { width: 48% !important; margin: 0 4% 12px 0 !important; float: left !important; }
  .albumblock .inner:nth-child(2n), .inner:nth-child(2n) { margin-right: 0 !important; }

  /* 表格与正文 */
  table { max-width: 100% !important; }
  img { max-width: 100% !important; height: auto !important; }
  #body { padding: 0 8px; }
  .content, .article, .news_content, #MBlockTable { max-width: 100% !important; word-break: break-word; }
  p, td, li, div { overflow-wrap: break-word; }

  /* 页脚 */
  #footer { padding: 12px 8px !important; font-size: 13px !important; line-height: 1.7 !important; }
  #footer *, #footer a { font-size: 13px !important; }
  #dark_footer { padding: 10px 8px !important; }
  #dark_footer .box_240px_left { width: 100% !important; float: none !important; margin-bottom: 10px; }

  /* 移动端把产品模块提到新闻之前：#body 用 flex 重排，不改 DOM */
  #body { display: flex !important; flex-direction: column; }
  #body > * { order: 10; }
  #body > #Focus { order: 1; }
  #body > .productShow { order: 5; }
  #body > .MainBlock { order: 6; }
  /* testmarts：第 1 块=产品分类、第 3 块=案例、第 5 块=公司产品 */
  #body > div:nth-child(1) { order: 4; }
  #body > div:nth-child(5) { order: 5; }
  #body > div:nth-child(3) { order: 7; }
}
