/* ============================================================
   响应式适配层 · 仅在小屏 @media 内生效，桌面(>=1200px)版面完全不变
   加载顺序：必须放在 main.css / style.css / common.css 之后
   ============================================================ */
@media (max-width: 1199px) {
  html, body { min-width: 0 !important; }
  .wrap, nav, .container, .mainBox, .mainRight, .footer,
  .w1200, .center, .content, .articleBox { width: 100% !important; max-width: 1200px; }
  .mainRight { margin: 0 !important; }
  /* 覆盖模板里的内联 width:1200px（!important 可覆盖内联普通声明） */
  [style*="width:1200px"], [style*="width: 1200px"] { width: 100% !important; max-width: 1200px; }
  /* 顶部 banner 等比缩放 */
  .bannerSlide { height: auto !important; }
  .bannerSlide .center, .bannerSlide .center .relative, .bannerSlide .slide_ul li { height: 32vw !important; min-height: 150px; }
  .bannerSlide .slide_ul li { background-size: cover !important; background-position: center top !important; }
  /* 主导航：小屏横向滚动，条目不换行挤压 */
  nav { height: auto !important; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  nav > div { overflow-x: auto; }
  nav ul { display: flex; flex-wrap: nowrap; white-space: nowrap; }
  nav li { float: none !important; flex: 0 0 auto; }
  nav li .sub { display: none !important; }
  /* 主体两栏改单栏 */
  .mainLeft, .mainRight { float: none !important; width: 100% !important; }
  .mainLeft { margin-bottom: 15px; }
  /* 首页三栏/多栏块自动堆叠 */
  .indexContent .about, .indexContent .newsBox, .indexContent .notice,
  [style*="width:33%"], [style*="width:30%"] { width: 100% !important; float: none !important; margin-bottom: 18px; }
  /* 图片/视频不溢出 */
  img, iframe { max-width: 100% !important; height: auto !important; }
  table { max-width: 100%; }
  .txtcon img, .txtcon p { max-width: 100%; }
  /* 页脚高度自适应 */
  .footer { height: auto !important; min-height: 90px; padding: 12px 0; }
  .logoBox { position: static !important; }
  .headBox { text-align: left; }
}
@media (max-width: 640px) {
  body { font-size: 14px; line-height: 1.7; }
  nav li > a { font-size: 15px; padding: 0 10px; }
  .bannerSlide .center, .bannerSlide .center .relative, .bannerSlide .slide_ul li { height: 42vw !important; min-height: 120px; }
  .articleTitle { font-size: 18px !important; }
  .location { padding: 0 10px; }
  .mainBox { padding: 0 8px; }
  .footer-nr { padding: 0 10px; }
}
