/* 全局移动端适配 */
@media (max-width: 768px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  body { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; text-size-adjust: 100%; }

  /* 移动端简化：隐藏次要内容块 */
  .hide-mobile { display: none !important; }

  /* 头部版本链接竖排换行 */
  .m-ver { line-height: 1.9; }
  .m-ver a { display: inline-block; margin: 3px 7px; font-size: 15px; }
  .vsep { display: none !important; }
  font[color="#AAE3FF"] { display: none !important; }

  /* 头部搜索竖排 */
  #formSearch select, #formSearch input[type="text"] {
    display: block; width: 100%; margin: 4px 0; box-sizing: border-box; height: 38px;
  }
  #formSearch input[type="submit"] { display: block; width: 100%; height: 40px; margin-top: 8px; font-size: 16px; }

  /* 登录模块竖排 */
  #form1 input[type="text"], #form1 input[type="password"] {
    display: block; width: 100%; margin: 4px 0; box-sizing: border-box; height: 38px; font-size: 16px;
  }
  #form1 input[type="submit"] { width: 100%; height: 40px; font-size: 16px; }

  /* 常见固定宽度外层表格 → 自适应 */
  table[width="1024"], table[width="1003"], table[width="1002"], table[width="980"],
  table[width="960"], table[width="950"], table[width="699"], table[width="601"],
  table[width="600"], table[width="701"] { width: 100% !important; }
  table { max-width: 100% !important; }

  /* 固定宽度单元格改为自适应，避免并排列挤爆 */
  td[width], th[width] { width: auto !important; }

  /* 主布局多列竖向堆叠 */
  td[width="249"], td[width="251"], td[width="255"], td[width="444"],
  td[width="701"], td[width="1024"] { display: block !important; width: 100% !important; }

  /* 图片不超宽 */
  img { max-width: 100% !important; height: auto !important; }

  /* 长内容折行 */
  td, th, div, p, a, span, li { word-wrap: break-word; overflow-wrap: break-word; }

  /* 表单元素与点击区域 */
  input[type="text"], input[type="password"], select, textarea {
    font-size: 16px !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  a, input[type="submit"], input[type="button"], button { min-height: 36px; }
}

/* 宽表格横向滚动容器（需要时在页面里包一层） */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
