/* ============================================================
   响应式覆盖层 responsive.css
   适用：乾诚企业站（Joomla 遗留模板 + PHPMYWIND CMS）
   说明：本文件在页面所有 CSS 之后加载，仅通过媒体查询在小屏生效，
         桌面端(>1200px)完全不改变原有表现。所有覆盖均使用足够特异性
         和 !important 以对抗原模板中 130+ 处 !important。
   断点：≤1200 平板横屏 / ≤979 平板竖屏 / ≤767 手机 / ≤480 小屏手机
   ============================================================ */

/* ---------- 基础：让所有元素按边界盒计算，图片自适应 ---------- */
@media (max-width: 1200px) {
  html { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }

  img, video, iframe {
    max-width: 100% !important;
    height: auto !important;
  }

  /* 页面级容器：固定 1002px → 流式 */
  .container,
  .navbar-static-top .container,
  .navbar-fixed-top .container,
  .navbar-fixed-bottom .container,
  .grid12,
  .page-breadcrumbs,
  .science_list,
  .science_list_con li,
  .science_list_title,
  .page-top-one,
  section#main-top,
  #main,
  #utility,
  .navdrop,
  .flexslider {
    width: 100% !important;
    max-width: 1002px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* banner 解除锁死的 1002px 宽高，改为自适应高度 */
  .flexslider,
  .flexslider .slides,
  .flexslider .slides li,
  .div-reslider-box {
    width: 100% !important;
  }
  .flexslider .slides img,
  .flexslider img {
    width: 100% !important;
    height: auto !important;
  }

  /* 顶部 logo 区内联写死的 padding */
  #divLogoShow { padding-left: 0 !important; }

  /* 面包屑图片自适应 */
  .page-breadcrumbs img { max-width: 100% !important; height: auto !important; }

  /* 修正 gridN/offsetN 在缩放后因 padding 累加产生的几像素横向溢出 */
  [class*="grid"] { box-sizing: border-box !important; }
  #main .container, #main .container-fluid { padding-left: 0 !important; padding-right: 0 !important; }
  .offset3 { margin-left: 24.8% !important; }
}

/* ============================================================
   ≤979px：平板 —— 12栏栅格开始收缩，双栏仍可保持但改为百分比
   ============================================================ */
@media (max-width: 979px) {
  /* 主导航：桌面版隐藏（下拉固定 480px 无法适配），启用移动导航 */
  nav.ex-menu.hidden-phone { display: none !important; }

  /* 栅格系统整体转为百分比。用 float + 百分比宽度保留原有视觉顺序 */
  .grid1 { width: 8.3333% !important; }
  .grid2 { width: 16.6667% !important; }
  .grid3 { width: 25% !important; }
  .grid4 { width: 33.3333% !important; }
  .grid5 { width: 41.6667% !important; }
  .grid6 { width: 50% !important; }
  .grid7 { width: 58.3333% !important; }
  .grid8 { width: 66.6667% !important; }
  .grid9 { width: 75% !important; }
  .grid10 { width: 83.3333% !important; }
  .grid11 { width: 91.6667% !important; }
  .grid12 { width: 100% !important; }

  /* offset/inset 由 px 改为百分比，保持负边距定位逻辑 */
  .offset1 { margin-left: 8.3333% !important; }
  .offset2 { margin-left: 16.6667% !important; }
  .offset3 { margin-left: 25% !important; }
  .offset4 { margin-left: 33.3333% !important; }
  .offset5 { margin-left: 41.6667% !important; }
  .offset6 { margin-left: 50% !important; }
  .offset7 { margin-left: 58.3333% !important; }
  .offset8 { margin-left: 66.6667% !important; }
  .offset9 { margin-left: 75% !important; }
  .offset10 { margin-left: 83.3333% !important; }
  .offset11 { margin-left: 91.6667% !important; }
  .offset12 { margin-left: 100% !important; }

  .inset1 { margin-left: -8.3333% !important; }
  .inset2 { margin-left: -16.6667% !important; }
  .inset3 { margin-left: -25% !important; }
  .inset4 { margin-left: -33.3333% !important; }
  .inset5 { margin-left: -41.6667% !important; }
  .inset6 { margin-left: -50% !important; }
  .inset7 { margin-left: -58.3333% !important; }
  .inset8 { margin-left: -66.6667% !important; }
  .inset9 { margin-left: -75% !important; }
  .inset10 { margin-left: -83.3333% !important; }
  .inset11 { margin-left: -91.6667% !important; }
  .inset12 { margin-left: -100% !important; }

  html[dir='rtl'] .offset1 { margin-right: 8.3333% !important; margin-left: 0 !important; }
  html[dir='rtl'] .offset2 { margin-right: 16.6667% !important; margin-left: 0 !important; }
  html[dir='rtl'] .offset3 { margin-right: 25% !important; margin-left: 0 !important; }
  html[dir='rtl'] .inset12 { margin-right: -100% !important; margin-left: 0 !important; }

  /* 两栏内容区：250 + 740 改百分比 */
  .list_left, .sidebar-a { width: 25% !important; }
  .list_right { width: 75% !important; }
  .product_ul ul, .service_product ul { width: 100% !important; }
  .right_head, .right_head1 { width: 100% !important; }
}

/* ============================================================
   ≤767px：手机 —— 所有多栏结构改为单栏纵向堆叠
   ============================================================ */
@media (max-width: 767px) {
  /* ---- 容器取消左右 padding 叠加，铺满屏幕 ---- */
  .container,
  .page-breadcrumbs,
  section#main-top,
  #main,
  #utility,
  .page-top-one,
  .flexslider {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    box-sizing: border-box !important;
  }

  /* ---- 栅格：全部单栏、清浮动、清负边距定位 ---- */
  [class*="grid"],
  .grid1, .grid2, .grid3, .grid4, .grid5, .grid6,
  .grid7, .grid8, .grid9, .grid10, .grid11, .grid12 {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  [class*="offset"], [class*="inset"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  html[dir='rtl'] [class*="offset"],
  html[dir='rtl'] [class*="inset"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* 侧栏排到主内容之后，且不再被负边距拉到顶部 */
  aside#sidebar-a,
  #sidebar-a,
  .sidebar-a { float: none !important; width: 100% !important; clear: both !important; }

  /* ---- 顶部区域：logo/登录/版本/搜索 纵向堆叠 ---- */
  #roof > .container > div { float: none !important; width: 100% !important; }
  #roof > .container > div[style*="width"] { width: 100% !important; height: auto !important; padding-left: 0 !important; }
  #divLogoShow { text-align: center !important; padding-left: 0 !important; }
  #divLogoShow img { max-width: 60% !important; height: auto !important; }
  .roof-5, .roof-6, .search { display: block !important; width: 100% !important; text-align: center !important; }
  .search form, .search .inputbox { width: 90% !important; max-width: 100% !important; box-sizing: border-box !important; }

  /* ---- 双栏内容区纵向堆叠 ---- */
  .list_left, .list_right,
  .sidebar-a, .list_left_nav, .list_left_nav2 { float: none !important; width: 100% !important; }
  .science_dl dl, .science_dl dt, .science_dl dd { width: 100% !important; float: none !important; padding-left: 0 !important; }

  /* ---- 首页 4 个栏目块：两列显示（用户核心诉求） ----
     用 flex 栅格，彻底避开原生 float + 负边距 + !important 的干扰 */
  .lastworks-container .lastworks-row,
  .lastworks-container .row-fluid {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-flex-wrap: wrap !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }
  .lastworks-container .lastworks-item,
  .lastworks-container .row-fluid [class*="span"].lastworks-item,
  .is-narrow .lastworks-container .lastworks-item,
  .is-narrow .lastworks-container .row-fluid [class*="span"].lastworks-item {
    display: block !important;
    float: none !important;
    width: 49% !important;
    margin: 0 2% 12px 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .lastworks-container .row-fluid .lastworks-item:nth-child(2n),
  .lastworks-container .row-fluid [class*="span"].lastworks-item:nth-child(2n),
  .is-narrow .lastworks-container .row-fluid .lastworks-item:nth-child(2n) { margin-right: 0 !important; }
  .lastworks-item .content,
  .lastworks-item .content .artical,
  .lastworks-item .img { width: 100% !important; margin: 0 !important; box-sizing: border-box !important; }
  .lastworks-item h5, .lastworks-item h3 {
    height: auto !important;
    background: none !important;
    text-indent: 0 !important;
    padding-left: 6px !important;
  }
  .lastworks-item .companydesc, .lastworks-item .shortdesc { white-space: normal !important; }

  /* ---- 产品/新闻网格：单列或双列自适应 ---- */
  .product_ul li, .service_product li { width: 48% !important; box-sizing: border-box !important; }
  .list_right { width: 100% !important; }
  .news_ul, .news_ul li { width: 100% !important; float: none !important; }
  .news_ul li { width: 48% !important; display: inline-block !important; float: none !important; }

  /* ---- 文章/详情页内嵌写死的图片与布局 ---- */
  article img, .article-body img, .product img, .content img,
  [style*="width:740px"], [style*="width: 740px"],
  [style*="width:270px"], [style*="width: 270px"],
  [style*="width:220px"], [style*="width: 220px"] {
    max-width: 100% !important;
    height: auto !important;
  }
  [style*="width:200px"], [style*="width: 200px"],
  [style*="height:180px"], [style*="height: 180px"],
  [style*="height:200px"], [style*="height: 200px"] {
    max-width: 100% !important;
    height: auto !important;
  }

  /* ---- FAQ 内嵌 710px 两栏 ---- */
  .question_con li, .drop_content { width: 100% !important; }

  /* ---- 视频与下载区 ---- */
  .videoanddownload .video,
  .videoanddownload .download,
  .videoanddownload video { width: 100% !important; float: none !important; }
  .videoanddownload video { height: auto !important; }

  /* ---- 页脚：清掉 footer.php 内嵌 <style> 的 680/280/124px 固定值 ---- */
  #footer-nav, #footer-rightside, #footer .inner { width: 100% !important; }
  #footer-rightside { margin-top: 0 !important; height: auto !important; float: none !important; }
  #footer-nav ul { margin-left: 0 !important; }
  #footer-nav ul li { width: 48% !important; float: left !important; margin-bottom: 12px !important; }
  #follow-us img { width: 150px !important; height: 150px !important; }
  #footer .inner { overflow: hidden; }

  /* ---- 面包屑标题字号收敛 ---- */
  #breadcrumbs h3 { font-size: 28px !important; width: auto !important; }
  #breadcrumbs h4 { font-size: 18px !important; width: auto !important; }
  #breadcrumbs .block:first-child,
  #breadcrumbs .block:last-child,
  #breadcrumbs .block:first-child+div { float: none !important; width: 100% !important; }

  /* ---- 表格：横向滚动而非撑破屏幕 ---- */
  .category-list, .category-list table,
  table.category, .blog table, #main table { width: 100% !important; }
  .table-scroll, .category-list, #mainbody { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }

  /* ---- 悬浮客服条：小屏缩小或隐藏，避免遮挡 ---- */
  .suspend { display: none !important; }
}

/* ============================================================
   ≤480px：小屏手机 —— 栏目块也可改单列，进一步收敛
   ============================================================ */
@media (max-width: 480px) {
  .lastworks-container .lastworks-item,
  .lastworks-container .row-fluid [class*="span"].lastworks-item,
  .is-narrow .lastworks-container .lastworks-item,
  .is-narrow .lastworks-container .row-fluid [class*="span"].lastworks-item {
    width: 100% !important;
    margin-right: 0 !important;
    float: none !important;
  }
  .product_ul li, .service_product li, .news_ul li { width: 100% !important; }
  #footer-nav ul li { width: 100% !important; float: none !important; }
  .article-body, .article-tools { padding-left: 8px !important; padding-right: 8px !important; }
  #breadcrumbs h3 { font-size: 24px !important; }
}

/* ============================================================
   移动端导航（汉堡按钮 + 抽屉）—— 默认全局隐藏，仅小屏显示
   ============================================================ */
.mobile-nav,
.mobile-nav-overlay,
.mobile-nav-panel { display: none !important; }

@media (max-width: 979px) {
  .mobile-nav {
    display: flex !important;
    align-items: center;
    position: relative;
    z-index: 9998;
    height: 48px;
    background: #0583c4;
    padding: 0 12px;
    color: #fff;
  }
  .mobile-nav-brand {
    font-size: 16px;
    font-weight: bold;
    margin-left: 12px;
    letter-spacing: 1px;
  }
  .mobile-nav-toggle {
    width: 34px;
    height: 34px;
    padding: 6px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
  }
  .mobile-nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
  }
  .mobile-nav-overlay {
    display: block !important;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
    z-index: 9998;
  }
  .mobile-nav-overlay.open { opacity: 1; visibility: visible; }
  .mobile-nav-panel {
    display: block !important;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 78%;
    max-width: 320px;
    background: #fff;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform .28s ease;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0,0,0,.2);
  }
  .mobile-nav-panel.open { transform: translateX(0); }
  .mobile-nav-head {
    height: 48px;
    line-height: 48px;
    background: #0583c4;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-nav-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
  }
  .mobile-nav-list { list-style: none; margin: 0; padding: 0; }
  .mobile-nav-list li { border-bottom: 1px solid #eee; }
  .mobile-nav-list a {
    display: block;
    padding: 14px 16px;
    color: #333;
    font-size: 15px;
    text-decoration: none;
  }
  .mobile-nav-list a:active { background: #f0f0f0; }
  body.nav-open { overflow: hidden; }
}

/* ============================================================
   内页侧栏子导航：折叠式下拉菜单（手风琴）
   结构由 js/sidebar-nav.js 生成（.sa-nav / .sa-head / .sa-body /
   .sa-item / .sa-row / .sa-sub / .sa-caret），此处只负责外观。
   配色沿用主菜单主色 #0583c4；窄屏下自动变为整宽手风琴。
   ============================================================ */

/* 侧栏内层栅格纠正：.sidebar-a 在 768~979 区间会被压到 25%，这里统一拉满 */
#sidebar-a .sidebar-a {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 外框：原 240px 固定宽 + 虚线卡 → 通栏白卡 */
#sidebar-a .cen_par_l.sa-nav {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  float: none !important;
  display: block !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  border: 1px solid #e3e5e8 !important;
  background: #fff !important;
  box-sizing: border-box !important;
  overflow: hidden;
}

/* ---------- 标题行 ---------- */
#sidebar-a .cen_par_l.sa-nav > h3.sa-head {
  position: relative !important;
  display: block !important;
  height: 52px !important;
  line-height: 52px !important;
  margin: 0 !important;
  padding: 0 46px 0 18px !important;
  background: #f4f6f8 none !important;
  border: 0 !important;
  border-bottom: 1px solid #e3e5e8 !important;
  font-size: 16px !important;
  font-weight: bold !important;
  letter-spacing: 0 !important;
  color: #23303c !important;
  text-align: left !important;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#sidebar-a .cen_par_l.sa-nav > h3.sa-head > div {
  display: inline !important;
  text-align: left !important;
  font-size: inherit !important;
  color: inherit !important;
}
#sidebar-a .cen_par_l.sa-nav > h3.sa-head:hover {
  background-color: #edf3f7 !important;
  color: #0583c4 !important;
}

/* ---------- 箭头 ---------- */
#sidebar-a .cen_par_l.sa-nav .sa-caret {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  cursor: pointer;
  z-index: 2;
  pointer-events: auto;
}
#sidebar-a .cen_par_l.sa-nav .sa-caret::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -6px 0 0 -5px;
  border-right: 2px solid #98a2ac;
  border-bottom: 2px solid #98a2ac;
  -webkit-transform: rotate(-135deg);
      -ms-transform: rotate(-135deg);
          transform: rotate(-135deg);
  -webkit-transition: -webkit-transform .28s ease;
          transition: transform .28s ease;
}
/* 标题收起时箭头朝下 */
#sidebar-a .cen_par_l.sa-nav > h3.sa-head[aria-expanded="false"] .sa-caret::before {
  -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
          transform: rotate(45deg);
}
#sidebar-a .cen_par_l.sa-nav > h3.sa-head:hover .sa-caret::before { border-color: #0583c4; }
/* 分组默认收起（箭头朝下），展开时朝上 */
#sidebar-a .cen_par_l.sa-nav .sa-group .sa-caret::before {
  -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
          transform: rotate(45deg);
}
#sidebar-a .cen_par_l.sa-nav .sa-group.sa-open .sa-caret::before {
  -webkit-transform: rotate(-135deg);
      -ms-transform: rotate(-135deg);
          transform: rotate(-135deg);
}

/* ---------- 折叠容器 ---------- */
#sidebar-a .cen_par_l.sa-nav .sa-body,
#sidebar-a .cen_par_l.sa-nav .sa-sub {
  overflow: hidden;
  max-height: none;
  -webkit-transition: max-height .3s ease;
          transition: max-height .3s ease;
}
#sidebar-a .cen_par_l.sa-nav .sa-body.sa-collapsed,
#sidebar-a .cen_par_l.sa-nav .sa-sub.sa-collapsed { max-height: 0 !important; }

/* ---------- 栏目行 ---------- */
#sidebar-a .cen_par_l.sa-nav .par_hot1,
#sidebar-a .cen_par_l.sa-nav .sa-item {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #eef0f2 !important;
  background: transparent;
  box-sizing: border-box !important;
}
#sidebar-a .cen_par_l.sa-nav .sa-item:last-child { border-bottom: 0 !important; }

#sidebar-a .cen_par_l.sa-nav .par_hot1 h5,
#sidebar-a .cen_par_l.sa-nav .sa-row {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: normal !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: normal !important;
  box-sizing: border-box !important;
}

#sidebar-a .cen_par_l.sa-nav .par_hot1 h5 > a,
#sidebar-a .cen_par_l.sa-nav .item_detail p > a {
  display: block !important;
  padding: 14px 46px 14px 26px !important;
  font-size: 15px !important;
  line-height: 22px !important;
  font-weight: normal !important;
  color: #4c5560 !important;
  text-align: left !important;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-transition: color .2s, background-color .2s, padding-left .2s;
          transition: color .2s, background-color .2s, padding-left .2s;
}
#sidebar-a .cen_par_l.sa-nav .par_hot1 h5 > a:hover,
#sidebar-a .cen_par_l.sa-nav .item_detail p > a:hover {
  color: #0583c4 !important;
  background-color: #f5fafd !important;
  padding-left: 30px !important;
}

/* 当前栏目高亮 */
#sidebar-a .cen_par_l.sa-nav .sa-current { background-color: #f1f8fd; box-shadow: inset 3px 0 0 #0583c4; }
#sidebar-a .cen_par_l.sa-nav .sa-current h5 > a,
#sidebar-a .cen_par_l.sa-nav .sa-current h5 > a:hover,
#sidebar-a .cen_par_l.sa-nav .sa-current .item_detail p > a {
  color: #0583c4 !important;
  font-weight: bold !important;
  background-color: transparent !important;
}

/* ---------- 二级栏目 ---------- */
#sidebar-a .cen_par_l.sa-nav .sa-sub {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fafbfc !important;
  border-top: 1px solid #eef0f2;
}
#sidebar-a .cen_par_l.sa-nav .sa-sub.sa-collapsed { border-top: 0; }
#sidebar-a .cen_par_l.sa-nav .sa-sub li {
  list-style: none !important;
  margin: 0 !important;
  border-bottom: 1px solid #f1f3f5;
}
#sidebar-a .cen_par_l.sa-nav .sa-sub li:last-child { border-bottom: 0; }
#sidebar-a .cen_par_l.sa-nav .sa-sub li > a,
#sidebar-a .cen_par_l.sa-nav .sa-sub-link {
  display: block !important;
  padding: 11px 46px 11px 42px !important;
  font-size: 13px !important;
  line-height: 20px !important;
  color: #7c858f !important;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#sidebar-a .cen_par_l.sa-nav .sa-sub li > a:hover,
#sidebar-a .cen_par_l.sa-nav .sa-sub-link:hover {
  color: #0583c4 !important;
  background-color: #f2f8fd !important;
}

/* ---------- 产品中心（ol.list 结构）适配 ---------- */
#sidebar-a .cen_par_l.sa-nav .xiangmu_left,
#sidebar-a .cen_par_l.sa-nav .list_box,
#sidebar-a .cen_par_l.sa-nav .list {
  width: 100% !important;
  display: block !important;
  float: none !important;
}
#sidebar-a .cen_par_l.sa-nav .list > li {
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #eef0f2 !important;
  background: none !important;
}
#sidebar-a .cen_par_l.sa-nav .item_detail p {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}
#sidebar-a .cen_par_l.sa-nav .item_img { display: none !important; }

/* ---------- 手机端：整宽手风琴，与目标效果一致 ---------- */
@media (max-width: 767px) {
  #sidebar-a { margin-bottom: 18px !important; }

  /* 子导航上移到主内容之前，符合移动端「先选栏目再看内容」的习惯 */
  #main > .container {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column !important;
            flex-direction: column !important;
  }
  #main > .container > #sidebar-a { order: -1; -webkit-box-ordinal-group: 0; }

  #sidebar-a .cen_par_l.sa-nav {
    margin-bottom: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0;
  }
  #sidebar-a .cen_par_l.sa-nav > h3.sa-head {
    height: 56px !important;
    line-height: 56px !important;
    font-size: 17px !important;
    padding-left: 16px !important;
    background-color: #f5f6f7 !important;
  }
  #sidebar-a .cen_par_l.sa-nav .par_hot1 h5 > a,
  #sidebar-a .cen_par_l.sa-nav .item_detail p > a {
    padding: 15px 46px 15px 30px !important;
    font-size: 16px !important;
    line-height: 24px !important;
  }
  #sidebar-a .cen_par_l.sa-nav .par_hot1 h5 > a:hover,
  #sidebar-a .cen_par_l.sa-nav .item_detail p > a:hover { padding-left: 34px !important; }
  #sidebar-a .cen_par_l.sa-nav .sa-sub li > a,
  #sidebar-a .cen_par_l.sa-nav .sa-sub-link {
    padding: 12px 46px 12px 46px !important;
    font-size: 14px !important;
    line-height: 22px !important;
  }
}

/* 侧栏模块容器宽度纠正（原 .block.module 被固定成 221px，与 251px 栏宽不齐） */
#sidebar-a .block.module {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* 留言板/产品信息块：原 685px 固定宽，窄屏改为随栏宽自适应 */
@media (max-width: 979px) {
  .messagesonline,
  .product_box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ============================================================
   移动端底部固定导航栏（m-tabbar）
   结构由 footer.php 输出：HOME / ABOUT US / PRODUCTS / PHONE
   仅在 ≤767px 显示；桌面与平板保持原 footer 不变。
   主色 #019be0 取自设计稿。
   ============================================================ */

.m-tabbar { display: none !important; }

@media (max-width: 767px) {

  .m-tabbar {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: flex !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9996 !important;
    height: 62px;
    padding: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    margin: 0 !important;
    background: #019be0 !important;
    border-top: 0 !important;
    box-sizing: content-box !important;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .08);
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
  }

  .m-tabbar-item {
    position: relative;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 0;
            flex: 1 1 0;
    min-width: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
            justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    color: #fff !important;
    text-decoration: none !important;
    background: transparent;
    border: 0 !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-transition: background-color .15s ease;
            transition: background-color .15s ease;
  }

  /* 按钮之间的竖向分隔线 */
  .m-tabbar-item + .m-tabbar-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 30px;
    margin-top: -15px;
    background: rgba(255, 255, 255, .28);
    pointer-events: none;
  }

  .m-tabbar-item:active { background: rgba(255, 255, 255, .14); }

  /* 图标：白色线框 */
  .m-tabbar-ico {
    display: block;
    width: 25px;
    height: 25px;
    margin: 0 0 5px 0;
    padding: 0;
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
  }

  /* 文字：大写，白色 */
  .m-tabbar-txt {
    display: block;
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: .5px;
    color: #fff !important;
    text-align: center;
    text-transform: none;
    white-space: nowrap;
  }

  /* 为固定栏预留空间，避免遮住页脚最后一行（62 栏高 + 16 呼吸空间） */
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important; }

  /* 右侧悬浮客服上移，避免与底部栏重叠 */
  .suspend { bottom: 74px !important; }
}

/* ============================================================
   移动端头部 / 页脚精简（≤767px）
   1) .m-header  紧凑头部：菜单 / LOGO / 会员（替代原 logo 墙+搜索+蓝条）
   2) 隐藏面包屑（子导航已折叠为下拉，信息重复）
   3) 隐藏原页脚，仅保留版权 + 备案号（.m-footer）
   ============================================================ */

.m-header,
.m-footer { display: none !important; }

@media (max-width: 767px) {

  /* ---- 隐去原桌面头部：logo 墙 / 登录注册 / 英文站 / 搜索框 ---- */
  #roof { display: none !important; }
  /* 原「网站导航」蓝条由新头部替代；抽屉与遮罩保留不动 */
  .mobile-nav { display: none !important; }

  /* ---- 紧凑头部 ---- */
  .m-header {
    display: block !important;
    padding: 8px 10px;
    margin: 0 !important;
    background: #edf0f4;
    box-sizing: border-box;
  }
  .m-header-inner {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
            align-items: center;
    height: 54px;
    padding: 0 4px;
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    box-sizing: border-box;
  }
  .m-header-btn {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
            flex: 0 0 auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
            justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #6b7683;
    text-decoration: none !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .m-header-btn:active { background: #f0f3f6; }
  .m-header-btn svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .m-header-menu svg { width: 23px; height: 23px; }
  /* 列表图标左侧的小圆点需要填充 */
  .m-header-dots circle {
    fill: currentColor !important;
    stroke: none !important;
  }

  .m-header-logo {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
            flex: 1 1 auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
            justify-content: center;
    min-width: 0;
    height: 100%;
    text-decoration: none;
  }
  .m-header-logo img {
    display: block;
    width: auto;
    height: auto;
    max-height: 34px;
    max-width: 76%;
  }

  /* ---- 面包屑：小屏去掉（子导航已折叠为下拉，信息重复） ----
     注意：.page-breadcrumbs 是内页栏目 banner 图容器，不能动；
     真正的面包屑是正文里的 .block_div（全站仅此用途）。 */
  .block_div { display: none !important; }

  /* ---- 原页脚整体隐藏，改用精简版权条 ---- */
  #footer-wrap { display: none !important; }

  .m-footer {
    display: block !important;
    padding: 18px 16px;
    margin: 0 !important;
    background: #f5f7f9;
    border-top: 1px solid #e6eaee;
    text-align: center;
    font-size: 12px;
    line-height: 1.9;
    color: #8b949e;
  }
  .m-footer-copy { color: #8b949e; }
  .m-footer-icp { color: #8b949e; }
  .m-footer-icp a,
  .m-footer-icp a:visited {
    color: #8b949e !important;
    text-decoration: none !important;
  }
}

/* ---- FAQ 页内联的 710px 固定宽：768~979 区间同样要放开 ---- */
@media (max-width: 979px) {
  .question_con,
  .question_con li,
  .drop_news,
  .drop_news a,
  .drop_content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ============================================================
   首页四个栏目卡片（.lastworks-item）
   原样式用 242×332 的位图当底（custom.css:1143），
   卡片一在窄屏变宽/变高，底色就只铺住左上角，右边留白很难看。
   这里让底图按卡片尺寸拉伸铺满，宽屏 243×332 时几乎无变化。
   ============================================================ */
.lastworks-item {
  background-size: 100% 100% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #ebedef !important;
}
.lastworks-item:hover,
.lastworks-item:active {
  background-size: 100% 100% !important;
}

/* ---- ≤979：四个栏目块统一两列 + 纯色卡片 ----
   卡片底色原来是 242×332 的位图（custom.css:1143），
   卡片一变宽变高，底色就只铺住左上角、右边露白，很难看；
   这里换成纯色卡片，并顺带把 768~979 区间原来的「3+1」补成规整的两列 */
@media (max-width: 979px) {
  .lastworks-container .lastworks-row,
  .lastworks-container .row-fluid {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }
  .lastworks-container .lastworks-item,
  .lastworks-container .row-fluid [class*="span"].lastworks-item,
  .is-narrow .lastworks-container .lastworks-item,
  .is-narrow .lastworks-container .row-fluid [class*="span"].lastworks-item {
    display: block !important;
    float: none !important;
    width: 49% !important;
    margin: 0 2% 16px 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding-bottom: 16px !important;
    background-image: none !important;
    background-color: #ebedef !important;
    border-radius: 8px !important;
  }
  .lastworks-container .row-fluid .lastworks-item:nth-child(2n),
  .lastworks-container .row-fluid [class*="span"].lastworks-item:nth-child(2n),
  .is-narrow .lastworks-container .row-fluid .lastworks-item:nth-child(2n) {
    margin-right: 0 !important;
  }
  .lastworks-item:hover,
  .lastworks-item:active {
    background-image: none !important;
    background-color: #019be0 !important;
  }
  .lastworks-item .content,
  .lastworks-item .content .artical,
  .lastworks-item .img {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .lastworks-item .content {
    padding: 0 14px !important;
  }
  .lastworks-item h5,
  .lastworks-item h3 {
    height: auto !important;
    background: none !important;
    text-indent: 0 !important;
    margin-top: 0 !important;
    padding: 8px 14px 4px !important;
  }
}

/* ≤480 回到单列（放在两列规则之后，确保 100% 覆盖 49%） */
@media (max-width: 480px) {
  .lastworks-container .lastworks-item,
  .lastworks-container .row-fluid [class*="span"].lastworks-item,
  .is-narrow .lastworks-container .lastworks-item,
  .is-narrow .lastworks-container .row-fluid [class*="span"].lastworks-item {
    width: 100% !important;
    margin-right: 0 !important;
  }
}

/* ==========================================================================
   英文站专属补充（追加层，覆盖以上通用规则）
   1) 清掉上一版 checkbox 汉堡方案的残留节点（会出现裸复选框）
   2) ≤1024 隐藏只剩空白的主导航容器
   3) 抽屉菜单的二级折叠列表
   ========================================================================== */

/* ---- 1. 旧方案残留 ---- */
.ja-nav-cb,
.ja-sub-cb,
.ja-nav-btn,
.ja-sub-btn,
.dropdown-spacer { display: none !important; }

/* ---- 2. 主导航隐藏后 #top 只剩空壳 ---- */
@media (max-width: 979px) {
  #top { display: none !important; }
}

/* ---- 3. 抽屉二级菜单 ---- */
@media (max-width: 979px) {
  .mobile-nav-list > li.has-sub { position: relative; }
  .mobile-nav-list > li.has-sub > a { padding-right: 58px; }
  .mobile-nav-sub {
    position: absolute;
    top: 0;
    right: 0;
    width: 54px;
    height: 48px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav-sub::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    margin: -5px 0 0 -4px;
    border-right: 2px solid #9aa4ae;
    border-bottom: 2px solid #9aa4ae;
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
    -webkit-transition: -webkit-transform .25s ease;
            transition: transform .25s ease;
  }
  .mobile-nav-list > li.open > .mobile-nav-sub::before {
    -webkit-transform: rotate(-135deg);
            transform: rotate(-135deg);
  }
  .mobile-nav-sublist {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f7f9fb;
    border-top: 1px solid #eef1f4;
  }
  .mobile-nav-list > li.open > .mobile-nav-sublist { display: block; }
  .mobile-nav-sublist li { border-bottom: 1px solid #eef1f4; }
  .mobile-nav-sublist li:last-child { border-bottom: 0; }
  .mobile-nav-sublist li:first-child { border-top: 0; }
  .mobile-nav-sublist a {
    display: block;
    padding: 11px 16px 11px 26px;
    font-size: 14px;
    line-height: 1.5;
    color: #5b6570;
    text-decoration: none;
  }
  .mobile-nav-sublist a:active { background: #eef4f9; }
  .mobile-nav-list > li.active > a { color: #0583c4; font-weight: bold; }
}

/* ==========================================================================
   英文站专属补充 2：正文内嵌组件 / 长串不换行 / 表单与登录面板
   ========================================================================== */
@media (max-width: 979px) {

  /* ---- 正文里的 djslider 图集：原本写死 740px ---- */
  .djslider,
  .djslider-default,
  .slider-container,
  .djslider ul,
  .djslider li {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .djslider .dj-image,
  .djslider img { max-width: 100% !important; height: auto !important; }

  /* ---- 正文长英文串/型号不换行，会撑破页面 ---- */
  #component,
  #component p,
  #component b,
  #component strong,
  #component td,
  .article-body,
  .article-body p {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  #component img, .article-body img { max-width: 100% !important; height: auto !important; }

  /* ---- 留言表单（Fabrik / bootstrap）：label 140px + controls 160px 撑出 430px ---- */
  .form-horizontal .control-label {
    float: none !important;
    display: block !important;
    width: auto !important;
    text-align: left !important;
    padding: 0 0 4px !important;
  }
  .form-horizontal .controls,
  .form-horizontal .form-actions {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  .fabrikGroup,
  .fabrikForm,
  .fabrikElementContainer,
  .form-horizontal .fabrikinput,
  .form-horizontal .inputbox,
  .form-horizontal textarea,
  .form-horizontal select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* ---- 登录 / 注册面板：login.css 内是 402px 与 909px 的贴图 ---- */
  .xn_c_login_1_wrap,
  .xn_c_reg1_wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 16px 0 !important;
    padding: 10px 12px 24px !important;
    box-sizing: border-box;
    background-color: #1b4a76 !important;
    background-size: cover !important;
    background-position: center top !important;
  }
  #EIMS_C_40003_1_NoLoginBox > span,
  #EIMS_C_40003_1_NoLoginBox > span > input,
  .xn_c_reg1_wrap .EIMS_C_40073_Item > input,
  .xn_c_reg1_wrap .EIMS_C_40073_Item > select {
    width: 100% !important;
    box-sizing: border-box;
  }
  #EIMS_C_40003_1_NoLoginBox > span > input#EIMS_C_40003_1_InCode {
    width: calc(100% - 110px) !important;
  }
  .xn_c_reg1_wrap .EIMS_C_40073_Item {
    margin-left: 0 !important;
    height: auto !important;
    overflow: visible;
    padding-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .xn_c_reg1_wrap .EIMS_C_40073_Item > label {
    order: 1;
    float: none !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    line-height: 1.4 !important;
    margin: 0 0 4px !important;
    text-align: left !important;
  }
  .xn_c_reg1_wrap .EIMS_C_40073_Item > .EIMS_C_40073_Mark {
    order: 2;
    float: none !important;
    width: auto !important;
    height: auto !important;
    line-height: 1.4 !important;
  }
  .xn_c_reg1_wrap .EIMS_C_40073_Item > input,
  .xn_c_reg1_wrap .EIMS_C_40073_Item > select {
    order: 3;
    flex: 1 1 100%;
    float: none !important;
    display: block !important;
  }
  .xn_c_reg1_wrap .EIMS_C_40073_Item > input#EIMS_C_40073_SexBoy,
  .xn_c_reg1_wrap .EIMS_C_40073_Item > input#EIMS_C_40073_SexGirl {
    flex: 0 0 auto;
    display: inline-block !important;
    width: 23px !important;
    height: 23px !important;
  }
  .xn_c_reg1_wrap .EIMS_C_40073_Sex_span {
    order: 2;
    float: none !important;
    margin-top: 0 !important;
  }
  .xn_c_reg1_wrap .EIMS_C_40073_Msg,
  .xn_c_reg1_wrap .EIMS_C_40073_RegisterBtn,
  .xn_c_reg1_wrap #zhuce {
    margin-left: 0 !important;
    width: 100% !important;
  }
  #component input[type="submit"] { padding: 8px 18px; font-size: 15px; }
}

/* ==========================================================================
   英文站专属补充 3：列表页（新闻 / 产品列表，均为 table 布局）与招聘页 tabs
   ========================================================================== */
@media (max-width: 979px) {

  /* ---- 列表行：缩略图在左、标题+摘要 2~4 行在右，去掉 More 小尾巴 ---- */
  .cat-items { width: 100% !important; }
  .cat-items > table,
  .cat-items > table > tbody,
  .cat-items > table > tbody > tr {
    display: block !important;
    width: 100% !important;
  }
  .cat-items > table > tbody > tr {
    padding: 0 0 14px !important;
    margin: 0 0 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #e8ebee !important;
  }
  .cat-items > table > tbody > tr:last-child { border-bottom: 0 !important; margin-bottom: 0 !important; }
  .cat-items td.list-title {
    display: block !important;
    width: auto !important;
    position: static !important;
    border: 0 !important;
  }
  .cat-items .known_more { display: none !important; }

  .cat-items td.list-title > table {
    display: flex !important;
    width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }
  .cat-items td.list-title > table > tbody,
  .cat-items td.list-title > table > tbody > tr {
    display: flex !important;
    width: 100% !important;
    gap: 12px;
    border: 0 !important;
  }
  .cat-items td.list-title > table > tbody > tr > td {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
  }
  .cat-items td.list-title > table > tbody > tr > td:first-child {
    flex: 0 0 104px;
    width: 104px !important;
  }
  .cat-items td.list-title > table > tbody > tr > td:first-child div { width: 100% !important; }
  .cat-items td.list-title > table > tbody > tr > td:first-child img {
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    border: 1px solid #e0e4e8 !important;
    box-sizing: border-box;
  }
  .cat-items td.list-title > table > tbody > tr > td:last-child {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.55 !important;
    color: #6b7480;
    max-height: 104px;
    overflow: hidden;
  }
  .cat-items td:last-child h5,
  .cat-items .news_h5 {
    margin: 0 0 4px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }
  .cat-items td:last-child h5 a,
  .cat-items .news_h5 a { color: #123a5c !important; }

  /* ---- 招聘页职位表：三列压缩，避免 ShenZhen 被折行 ---- */
  #component table td { font-size: 13px; }
  .nn_tabs,
  .nn_tabs .tabs,
  .nn_tabs ul.tabs,
  .nn_tabs .content,
  .nn_tabs .panel { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
  .nn_tabs ul.tabs li,
  .nn_tabs .tabs li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 0 6px !important;
  }
  .nn_tabs ul.tabs li a,
  .nn_tabs .tabs li a { display: block !important; }
}

/* ==========================================================================
   英文站专属补充 4：招聘页 tabs（Bootstrap nav-tabs）与空图片占位
   ========================================================================== */
@media (max-width: 979px) {

  /* ---- 招聘详情 tabs：横向 tab 改纵向堆叠 ---- */
  .nn_tabs ul.nav-tabs {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    border: 0 !important;
  }
  .nn_tabs ul.nav-tabs > li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 0 6px !important;
    clear: both !important;
  }
  .nn_tabs ul.nav-tabs > li > a {
    display: block !important;
    width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: 4px !important;
  }
  .nn_tabs ul.nav-tabs > li > a::before,
  .nn_tabs ul.nav-tabs > li > a::after { display: none !important; }
  .nn_tabs .tab-content,
  .nn_tabs .tab-content > .tab-pane {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    float: none !important;
    border: 0 !important;
  }

  /* ---- 列表里 src 为空的产品图：不显示破图与占位列 ---- */
  .cat-items img[src=""],
  .cat-items img:not([src]) { display: none !important; }
  .cat-items td.list-title > table > tbody > tr > td:first-child:has(img[src=""]),
  .cat-items td.list-title > table > tbody > tr > td:first-child:has(img:not([src])) {
    display: none !important;
  }
}

/* ==========================================================================
   英文站专属补充 5：980~1024 区间首页四宫格仍会挤成 3+1，统一改两列
   ========================================================================== */
@media (min-width: 980px) and (max-width: 1024px) {
  .lastworks-container .lastworks-row,
  .lastworks-container .row-fluid {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }
  .lastworks-container .lastworks-item,
  .lastworks-container .row-fluid [class*="span"].lastworks-item {
    display: block !important;
    float: none !important;
    width: 49% !important;
    margin: 0 2% 16px 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .lastworks-container .row-fluid .lastworks-item:nth-child(2n),
  .lastworks-container .row-fluid [class*="span"].lastworks-item:nth-child(2n) {
    margin-right: 0 !important;
  }
  .lastworks-item .content,
  .lastworks-item .img { width: 100% !important; margin: 0 !important; }
  .lastworks-item {
    background-image: none !important;
    background-color: #ebedef !important;
    border-radius: 8px !important;
    padding-bottom: 14px !important;
  }
  .lastworks-item:hover { background-color: #019be0 !important; }
  /* 卡片标题右侧的 h2bg.png 小箭头定位在 302px，窄屏会跑到标题中间 */
  .lastworks-item h5,
  .lastworks-item h3 {
    background: none !important;
    text-indent: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ==========================================================================
   英文站专属补充 6：内页标题换行 / 768~979 容器 padding 造成的 18px 溢出
   ========================================================================== */
@media (max-width: 979px) {

  /* --- 容器加 box-sizing，避免 padding 叠加在 100% 之外 --- */
  #main .container,
  #mainbody,
  section.container,
  .container {
    box-sizing: border-box !important;
  }

  /* --- 详情页标题：原样式 height:45px + line-height:45px，长标题会压到正文 --- */
  .page-right-header,
  .right_head {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  .right_head > span:not(.published) {
    display: block !important;
    height: auto !important;
    font-size: 20px !important;
    line-height: 1.4 !important;
    padding: 0 !important;
  }
  .right_head .published {
    float: none !important;
    display: block !important;
    margin: 6px 0 0 !important;
    line-height: 1.6 !important;
    color: #8b949e;
  }
  .article.fulltext { clear: both; }
}

/* 正文段落带 text-indent:2em，行内图片会被首行缩进顶出 28px */
@media (max-width: 979px) {
  .article-body p:has(img),
  #component p:has(img),
  .article p:has(img) {
    text-indent: 0 !important;
    text-align: left !important;
  }
  .article-body img,
  #component p img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
  }
  .article-body p img:only-child { margin-left: 0 !important; }
}

/* 列表标题/招聘 tab 面板在 768~979 仍会超宽或 nowrap 截断 */
@media (max-width: 979px) {
  .cat-items .news_h5 a,
  .cat-items td:last-child h5 a {
    white-space: normal !important;
    display: inline !important;
    word-break: break-word !important;
  }
  .nn_tabs .tab-content,
  .nn_tabs .tab-content > .tab-pane,
  .nn_tabs .tab-pane {
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-wrap: break-word !important;
  }
}

/* 右侧悬浮客服条在 768~979 会压住正文，小屏隐藏（底部 tabbar 已提供 PHONE 入口） */
@media (max-width: 979px) {
  .suspend { display: none !important; }
}
