/* mobile-fix：老模板手机化补丁（自动生成，勿手改）
   1) 放开所有写死的 px 宽度与浮动，让栏目竖着排
   2) 图片/表格限制在屏宽内
   3) v2 加强：全局 max-width 收口 + 横向滚动条盒（跑马灯/图片横滑）改为可视宽
   4) 兜底 overflow-x:hidden，杜绝横向拖
*/
@media (max-width: 820px) {
  html, body { min-width: 0 !important; width: 100% !important; overflow-x: hidden !important; }
  body { font-size: 15px !important; line-height: 1.75 !important; }
  body *:not(script):not(style) { box-sizing: border-box !important; }
  body *:not(script):not(style):not(br):not(hr) { max-width: 100% !important; }
  div, section, header, footer, nav, aside, article, main, ul, ol, dl, form, p,
  h1, h2, h3, h4, h5, h6 {
    width: auto !important; min-width: 0 !important; max-width: 100% !important;
    margin-left: auto !important; margin-right: auto !important;
    float: none !important; clear: both !important;
  }
  img, video { max-width: 100% !important; height: auto !important; }
  iframe, embed, object { max-width: 100% !important; }
  table { display: block !important; width: 100% !important; max-width: 100% !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
  table, tbody, tr, td, th { max-width: 100% !important; }
  td, th, dl, dd, dt, p, li, a, span, div { white-space: normal !important; }
  input, textarea, select { max-width: 100% !important; }
  li { float: none !important; display: inline-block !important; }
  [class*="nav"] > ul > li, [class*="menu"] > ul > li { display: inline-block !important; }
  /* 横向滚动/跑马灯条：改成可视宽，别把页面顶宽 */
  marquee,
  [class*="scroll"], [id*="scroll"], [class*="marquee"], [id*="marquee"],
  [class*="slide"], [id*="slide"] {
    width: auto !important; max-width: 100% !important;
    overflow: hidden !important;
  }
  /* 绝对定位飞出屏幕的装饰/侧边条，统一裁掉 */
  body > div[style*="absolute"], body > a[style*="absolute"] { max-width: 100% !important; }
}
