@charset "utf-8";
/* ==========================================================================
   瑞安市明国机械 ramsjx — 移动端自适应样式（仅移动端生效）
   说明：
   1. 本文件所有规则都包在 max-width 媒体查询中，桌面端（>1424px）不生效，
      不会改变现有桌面视觉。
   2. 旧模板中存在大量行内固定宽度（1300/970/431/323px 等）与 !important，
      因此此处统一使用 !important 覆盖，并用“属性选择器”兜底处理遗留模板。
   3. 层级：>1424 桌面 / 1424≤w 笔记本 / ≤1024 平板 / ≤767 手机 / ≤360 小屏
   ========================================================================== */

/* 由 responsive.js 动态生成的元素：桌面端一律不显示，避免影响桌面导航 */
.mnav-btn, .mnav-mask, .mbar, .mnav-extra, .mnav-caret { display: none; }

/* --------------------------------------------------------------------------
   0. 基础安全网
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1424px) {
  html { overflow-x: hidden; }
  body { overflow-x: hidden; }

  /* 容器由固定宽改为流式（仅在原本会溢出的区间生效，1441px 以上不变） */
  .w1340, .w1300 { width: 100% !important; max-width: 100%; }
  .banner-box { min-width: 0 !important; }
  #copy { width: 100% !important; }

  /* 内页：左侧 295px 分类 + 右侧自适应主体（#left 被页面隐藏时主体自动占满） */
  #bodycon {
    display: flex !important;
    align-items: flex-start;
    width: 100% !important;
    max-width: 100% !important;
  }
  #bodycon #left {
    float: none !important;
    flex: 0 0 295px;
    width: 295px !important;
    max-width: 295px;
  }
  #bodycon #center {
    float: none !important;
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    max-width: 100% !important;
  }
  #bodycon #bodycontent { width: 100% !important; max-width: 100% !important; }

  /* 首页产品区：固定 1200 容器内放 1300 列表，窄屏下会右侧溢出 */
  .sproc { width: 100% !important; max-width: 1300px !important; }
  .sproc ul { width: 100% !important; max-width: 1300px !important; }

  /* 新闻页顶部标签条固定 1300，1280 笔记本下右侧标签被裁 */
  .ny_news_dh, .ny_news_dh ul { width: 100% !important; max-width: 1300px !important; }

  /* 笔记本宽度下，行内固定宽的大容器改为流式，避免右侧被裁切 */
  [style*="width:1425px"], [style*="width: 1425px"],
  [style*="width:1300px"], [style*="width: 1300px"],
  [style*="width:1280px"], [style*="width: 1280px"] {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media screen and (max-width: 1024px) {
  /* 图片 / 视频 / 表格类内容不再撑破页面 */
  img, video, canvas, svg { max-width: 100%; }
  iframe, embed, object { max-width: 100%; }
  img { height: auto; }

  /* 遗留模板里的行内固定宽度统一收敛 */
  [style*="width:1425px"], [style*="width: 1425px"],
  [style*="width:1300px"], [style*="width: 1300px"],
  [style*="width:1280px"], [style*="width: 1280px"],
  [style*="width:1030px"], [style*="width: 1030px"],
  [style*="width:1000px"], [style*="width: 1000px"],
  [style*="width:970px"],  [style*="width: 970px"],
  [style*="width:971px"],  [style*="width: 971px"],
  [style*="width:950px"],  [style*="width: 950px"],
  [style*="width:930px"],  [style*="width: 930px"],
  [style*="width:880px"],  [style*="width: 880px"],
  [style*="width:800px"],  [style*="width: 800px"],
  [style*="width:755px"],  [style*="width: 755px"],
  [style*="width:750px"],  [style*="width: 750px"],
  [style*="width:747px"],  [style*="width: 747px"],
  [style*="width:700px"],  [style*="width: 700px"],
  [style*="width:649px"],  [style*="width: 649px"],
  [style*="width:625px"],  [style*="width: 625px"],
  [style*="width:600px"],  [style*="width: 600px"],
  [style*="width:549px"],  [style*="width: 549px"],
  [style*="width:502px"],  [style*="width: 502px"],
  [style*="width:500px"],  [style*="width: 500px"],
  [style*="width:465px"],  [style*="width: 465px"],
  [style*="width:460px"],  [style*="width: 460px"],
  [style*="width:431px"],  [style*="width: 431px"],
  [style*="width:426px"],  [style*="width: 426px"],
  [style*="width:402px"],  [style*="width: 402px"],
  [style*="width:401px"],  [style*="width: 401px"],
  [style*="width:400px"],  [style*="width: 400px"],
  [style*="width:380px"],  [style*="width: 380px"],
  [style*="width:345px"],  [style*="width: 345px"],
  [style*="width:323px"],  [style*="width: 323px"],
  [style*="width:320px"],  [style*="width: 320px"],
  [style*="width:315px"],  [style*="width: 315px"],
  [style*="width:310px"],  [style*="width: 310px"],
  [style*="width:305px"],  [style*="width: 305px"],
  [style*="width:295px"],  [style*="width: 295px"],
  [style*="width:267px"],  [style*="width: 267px"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 表格允许横向滚动，避免穿透布局 */
  table { max-width: 100% !important; }
  .product_content table, .bodyContentString8 table, .page1 table {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* 参数表：固定列宽，避免中文标签被压成每行一个字 */
  .product_content table table,
  .product_content > table,
  .bodyContentString8 table,
  .page1 table {
    table-layout: fixed;
  }
  .product_content table td, .product_content table th,
  .bodyContentString8 table td, .bodyContentString8 table th {
    min-width: 68px;
    word-break: break-word;
  }
  .product_content table td:first-child,
  .product_content table th:first-child,
  .bodyContentString8 table td:first-child {
    width: 34%;
    white-space: normal;
    word-break: keep-all;
  }

  /* 表单控件自适应 */
  input[type="text"], input[type="tel"], input[type="email"], input[type="search"],
  input[type="submit"], input[type="button"], textarea, select, button {
    max-width: 100%;
  }
  textarea { resize: vertical; }

  /* 触屏下取消 hover 位移带来的“错位感” */
  .sproc ul li:hover { transform: none; }
  .shopmrsc:hover, .pro_list_box_item_zdy:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   1. 顶部：品牌条 / 头部 / 汉堡导航抽屉
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .htop { display: none !important; }

  .header {
    height: auto !important;
    min-height: 64px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 120;
  }
  .header > .w1340 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: 64px;
    padding: 8px 15px;
  }
  .header .hlogo {
    float: none !important;
    padding: 0 !important;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 68%;
  }
  .header .hlogo > div { margin: 0 !important; }
  .header .hlogo img { max-height: 46px; width: auto; max-width: 100%; display: block; }
  .header .fr {
    float: none !important;
    display: flex;
    align-items: center;
    position: static !important;
  }

  /* 汉堡按钮（展开时需浮在抽屉之上，兼作关闭按钮） */
  .mnav-btn {
    position: relative;
    z-index: 9999952;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    margin-left: 8px;
    padding: 0;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mnav-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #5167ad;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
  }
  body.nav-open .mnav-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .mnav-btn span:nth-child(2) { opacity: 0; }
  body.nav-open .mnav-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mnav-mask {
    display: block;
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 9999940;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
  }
  body.nav-open .mnav-mask { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  /* 抬头自身是层叠上下文，展开时需整体提到最上层 */
  body.nav-open .header { z-index: 9999950; }

  /* 导航抽屉 */
  .header .nav {
    position: fixed !important;
    left: 0; top: 0; right: 0;
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    max-height: 100%;
    margin: 0 !important;
    padding: 56px 0 96px !important;
    float: none !important;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999951;
    transform: translateY(-102%);
    transition: transform .3s cubic-bezier(.2, .7, .3, 1);
    display: block !important;
  }
  body.nav-open .header .nav { transform: translateY(0); }

  .header .nav li {
    float: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0;
    border-bottom: 1px solid #eef0f3 !important;
    position: relative;
  }
  .header .nav li > a {
    display: block !important;
    line-height: 52px !important;
    height: auto !important;
    padding: 0 52px 0 18px !important;
    font-size: 16px !important;
    color: #333 !important;
    text-align: left !important;
    font-weight: normal;
  }
  .header .nav li > a i { display: none !important; }
  .header .nav li > a:after { display: none !important; }
  .header .nav li.cur > a { color: #1f74b7 !important; font-weight: bold; }
  .header .nav li.cur { background: #f5f8fd !important; }

  /* 子菜单折叠 */
  .header .nav li > .dropmenu {
    display: none !important;
    position: static !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #f7f8fa !important;
    border-top: 1px solid #eef0f3;
    box-shadow: none !important;
  }
  .header .nav li.open > .dropmenu { display: block !important; }
  .header .nav li > .dropmenu > .w1300,
  .header .nav li > .dropmenu > div {
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .header .nav li > .dropmenu a {
    display: block !important;
    line-height: 44px !important;
    padding: 0 18px 0 34px !important;
    font-size: 14px !important;
    color: #666 !important;
    border-bottom: 1px solid #eceef2;
  }
  .header .nav li > .dropmenu a:last-child { border-bottom: 0; }

  /* 子菜单展开箭头 */
  .mnav-caret {
    position: absolute;
    right: 0;
    top: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
  }
  .mnav-caret:before {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #9aa4b2;
    border-bottom: 2px solid #9aa4b2;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform .25s ease;
  }
  .header .nav li.open > .mnav-caret:before {
    transform: rotate(-135deg);
    margin-top: 4px;
    border-color: #1f74b7;
  }

  /* 抽屉底部补充信息 */
  .mnav-extra {
    display: block;
    padding: 18px;
    border-top: 1px solid #eef0f3;
    margin-top: 6px;
    font-size: 13px;
    color: #888;
  }
  .mnav-extra .mnav-tel {
    display: block;
    font-size: 17px;
    color: #1f74b7;
    font-weight: bold;
    line-height: 34px;
  }
  .mnav-extra .mnav-lang { display: flex; gap: 14px; margin-top: 10px; }
  .mnav-extra .mnav-lang a {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #dfe4ea;
    border-radius: 40px;
    font-size: 12px;
    color: #666;
  }

  .hcaoncat { display: none !important; }

  /* 未启用 JS 时的兜底：菜单平铺成三列，保证仍可导航 */
  html:not(.mnav-js) .header > .w1340 { flex-wrap: wrap; }
  html:not(.mnav-js) .header .nav {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-height: none;
    padding: 0 !important;
    margin-top: 6px !important;
    box-shadow: none !important;
    overflow: visible !important;
    display: flex !important;
    flex-wrap: wrap !important;
    background: #fff !important;
  }
  html:not(.mnav-js) .header .nav li {
    width: 33.333% !important;
    border-bottom: 1px solid #eef0f3 !important;
  }
  html:not(.mnav-js) .header .nav li > a {
    padding: 0 6px !important;
    text-align: center !important;
    font-size: 13px !important;
    line-height: 42px !important;
  }
}

/* --------------------------------------------------------------------------
   2. 横幅（首页轮播 + 内页 banner1）
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .banner { height: auto; }
  .banner-box { width: 100% !important; height: 320px !important; }
  .banner-box .bd li {
    height: 320px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-color: #f2f4f7 !important;
  }
  .banner-btn {
    top: 0 !important;
    height: 100% !important;
    bottom: 0;
    overflow: visible;
  }
  .banner-btn a.prev, .banner-btn a.next { display: none !important; }
  .banner-box .hd { bottom: 10px; }
  .banner-box .hd ul li { width: 9px; height: 9px; margin: 0 4px; }

  #banner1 {
    height: 200px !important;
    background-size: cover !important;
    background-position: center center !important;
  }
  /* 部分页面（产品总览、荣誉等）的 #banner1 是空容器且无背景图，
     给定高度后会变成一段空白，这里直接收起 */
  #banner1:empty { display: none !important; }
  .masked {
    position: static !important;
    top: auto !important;
    /* 贴合文字的深色衬底（非整行铺满），保证白字在浅色照片上可读 */
    display: table !important;
    width: auto !important;
    max-width: calc(100% - 28px) !important;
    margin: 14px auto 0 !important;
    padding: 12px 18px !important;
    background: rgba(0, 0, 0, .38) !important;
    border-radius: 6px;
    font-size: 14px !important;
    line-height: 1.7;
    /* 手机窄屏下渐变文字不可读，改为纯白 + 投影，保证叠加在照片上的对比度 */
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background-image: none !important;
    /* 原规则用 background-clip:text 做渐变字，白字会盖住任何衬底，
       这里改回常规绘制，并用「文字描边 + 硬投影」提升叠图可读性 */
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    /* 已有深色衬底，无需描边，避免细笔画被填成灰色 */
    -webkit-text-stroke: 0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  }
  .masked h1 {
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    animation: none !important;
    /* 大标题本身够粗，不描边、仅保留柔和投影 */
    -webkit-text-stroke: 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
  }
  .masked h1 { font-size: 24px !important; margin: 0 2px; }
}

@media screen and (max-width: 767px) {
  .banner-box { height: 200px !important; }
  .banner-box .bd li { height: 200px !important; }
  #banner1 { height: 168px !important; }
  .masked { padding: 14px 12px !important; font-size: 13px !important; }
  .masked h1 { font-size: 20px !important; }
}

/* --------------------------------------------------------------------------
   3. 首页：搜索条 / 应用领域 / 产品 / 优势 / 实力 / 关于 / 数字
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .top40 { height: 16px !important; }
  .top50 { padding-top: 24px !important; }
  .top60 { height: 24px !important; }
  .top30 { height: 16px !important; }
  .top35 { margin-top: 18px !important; }

  /* 搜索 / 咨询条 */
  /* 首页：移动端隐藏 banner 下方的蓝色咨询条（含关键词与热线） */
  .page-index .search { display: none !important; }
  .search {
    width: calc(100% - 30px) !important;
    height: auto !important;
    margin: -44px auto 0 !important;
    padding: 16px !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  }
  .search .semean { float: none !important; font-size: 14px; line-height: 1.7; }
  .search .semean strong { font-size: 17px !important; line-height: 1.5; }
  .search .sefind { float: none !important; margin: 10px 0 0 !important; }
  .search .seconcat { float: none !important; margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .35); }
  .search .seconcat p:nth-child(2) { font-size: 13px; line-height: 1.8; }
  .search .seconcat p:nth-child(2) strong { font-size: 15px; }
  #search_bg { width: 100% !important; }
  .keywords, .keywords a { line-height: 26px !important; }

  /* 应用领域 */
  .usetop p:nth-child(1) { font-size: 24px !important; }
  .usetop p:nth-child(2) { font-size: 16px !important; margin: 8px 0 10px !important; }
  .usetop p:nth-child(3) { font-size: 13px !important; line-height: 1.8 !important; width: 100% !important; padding: 0 15px; text-align: center; }
  .useul {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100% !important;
  }
  .useul li {
    float: none !important;
    width: auto !important;
    height: auto !important;
    padding: 12px 4px !important;
    font-size: 13px !important;
    border-left: 0 !important;
  }
  .useul li img { width: 64px; height: auto; margin-bottom: 10px; }

  /* 产品展示 */
  .products { height: auto !important; padding-bottom: 10px; }
  .procenter { width: 100% !important; }
  .title { font-size: 14px !important; padding: 0 12px; }
  .title p:nth-child(1) { font-size: 24px !important; margin-bottom: 6px; }
  .sproc { width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .sproc ul {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    width: 100% !important;
    height: auto !important;
  }
  .sproc ul li {
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    background: none !important;
  }
  .sproc ul li a {
    width: auto !important;
    height: auto !important;
    margin: 8px 6px !important;
    padding-bottom: 14px;
  }
  .sproimg { width: 100% !important; }
  .sproimg img { width: 100% !important; height: auto !important; }
  .sprowz { margin-left: 0 !important; text-align: center; }
  .sprotit { font-size: 14px !important; }
  .sprolb { font-size: 13px !important; line-height: 1.5; }
  .sprox { margin: 6px auto !important; }
  .spromore { margin: 20px auto 10px !important; }

  /* 好在哪里 */
  .proadv { padding: 0 12px; }
  .traitul { display: grid !important; grid-template-columns: 1fr; gap: 16px; }
  .traitul li {
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  }
  .trapic img { width: 100% !important; height: auto; }
  .trapic { max-height: 250px; }
  .traicon, .traline { display: none !important; }
  .trawa { margin-top: 0 !important; padding: 16px 14px 18px !important; }
  .trawa p:nth-child(1) { font-size: 18px !important; }
  .trawa p:nth-child(2) { margin: 10px auto !important; }
  .trawa p:nth-child(3) { font-size: 13px !important; line-height: 1.8 !important; }

  /* 实力保障 */
  .adv {
    height: auto !important;
    padding: 28px 0 30px !important;
    background-size: cover !important;
    background-position: center !important;
  }
  .adv_t { padding: 0 12px; }
  .adv_t p:nth-child(1) {
    font-size: 22px !important;
    line-height: 1.5 !important;
    background-size: contain !important;
    background-position: center bottom !important;
    padding-bottom: 6px;
  }
  .adv_t p:nth-child(2) { font-size: 15px !important; }
  .advcenter { padding: 0 12px; }
  .advone { height: auto !important; overflow: hidden; margin-bottom: 12px; }
  .aowa {
    width: 100% !important;
    float: none !important;
    padding: 18px 14px !important;
  }
  .ao_t p:nth-child(1) { font-size: 16px !important; line-height: 1.6 !important; }
  .ao_t p:nth-child(1) span { font-size: 22px !important; }
  .ao_t p:nth-child(2) { font-size: 18px !important; }
  .ao_w { margin-top: 14px !important; }
  .ao_w p { font-size: 13px !important; line-height: 1.9 !important; }
  .ao_b { width: auto !important; margin-top: 18px !important; font-size: 10px !important; line-height: 1.6; }
  .ao_b:after { display: none !important; }
  .aopic { display: none !important; }

  .advul {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
  }
  .advul li { float: none !important; width: auto !important; margin: 0 !important; }
  .advwa { height: auto !important; padding: 16px 14px 20px !important; }
  .advwa p:nth-child(1) { font-size: 17px !important; }
  .advwa p:nth-child(1) span { font-size: 22px !important; }
  .advwa p:nth-child(2) { font-size: 18px !important; }
  .advwa p:nth-child(3) { font-size: 13px !important; line-height: 1.9 !important; margin-top: 10px !important; }
  .advwa p:nth-child(4) { position: static !important; font-size: 18px !important; margin-top: 10px; }

  /* 关于 */
  .about {
    height: auto !important;
    background: none !important;
    padding: 26px 0 10px !important;
  }
  .about .w1300 { padding: 0 14px; }
  .abcon { width: 100% !important; float: none !important; padding: 0 !important; }
  .abcon p:nth-child(1) { font-size: 24px !important; }
  .abcon p:nth-child(2) { font-size: 15px !important; margin: 10px 0 16px !important; padding-bottom: 16px !important; }
  .abcon p:nth-child(3) { font-size: 13px !important; line-height: 1.9 !important; text-align: justify; }
  .abcon a { float: none !important; display: inline-block; margin-top: 20px !important; }

  /* 数字 */
  .ysnum {
    width: calc(100% - 24px) !important;
    height: auto !important;
    margin: 18px 12px 0 !important;
    padding: 18px 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08) !important;
  }
  .ysnum li {
    float: none !important;
    width: auto !important;
    padding: 8px 10px !important;
    text-align: left;
  }
  .ysnum li i, .ysnum li span { float: none !important; }
  .ysnum p span { font-size: 26px !important; }
  .ysnum p i { width: 18px; height: 18px; font-size: 11px; line-height: 18px; margin-left: 4px; }
  .ysnum p:nth-child(2) { font-size: 12px !important; line-height: 1.5; text-align: left; color: #888; }
}

@media screen and (max-width: 767px) {
  .useul { grid-template-columns: repeat(2, 1fr); }
  .useul li { border-bottom: 1px dashed #eee; }
  .traitul { gap: 14px; }
}

/* --------------------------------------------------------------------------
   4. 内页框架：左侧分类 + 主体 + 面包屑
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  #bodycon, #bodycon.pro-bodycon {
    display: block !important;
    width: 100% !important;
    padding: 0 12px !important;
    box-sizing: border-box;
  }
  #bodycon #left, .pro-bodycon #left {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 0 12px !important;
  }
  /* 手机端可整块隐藏的侧栏（如 contact 页的「关于明国」栏目菜单，
     内容与抽屉导航重复，隐藏后正文直接置顶） */
  #bodycon #left.hide-on-mobile,
  #bodycon #left.hide-on-mobile * {
    display: none !important;
  }
  #bodycon #center, .pro-bodycon #center {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }
  #bodycon #bodycontent, #bodycontent {
    width: 100% !important;
    max-width: 100% !important;
  }
  #right { display: none !important; }

  /* 左侧分类改为标签块 */
  .proclass {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .prot {
    display: block !important;
    height: auto !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    border-radius: 6px 6px 0 0;
  }
  .prot span { font-size: 11px !important; margin-top: 4px !important; }
  .proleft ul { display: flex !important; flex-wrap: wrap !important; }
  /* 分类标签按内容宽度排布，避免长名称被省略号截断 */
  .proleft > ul > li {
    width: auto !important;
    flex: 0 0 auto;
    box-sizing: border-box;
    border-right: 1px solid #fff;
  }
  .proleft > ul > li > a {
    display: block;
    line-height: 40px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    text-align: center;
    white-space: nowrap;
  }
  .proleft > ul > li > .proleftul > ul { display: none !important; }

  .proc1 { width: 100% !important; padding: 0 10px 14px !important; }
  .proc1 a { line-height: 38px !important; font-size: 13px !important; }
  .proc table { width: 100% !important; }
  .proc tr { display: block; padding-left: 0 !important; }
  .proc tr td a { line-height: 40px !important; }

  /* 面包屑 */
  .mianbxContent {
    width: 100% !important;
    height: auto !important;
    line-height: 1.7 !important;
    font-size: 13px !important;
    padding: 9px 12px 9px 30px !important;
    text-indent: 0 !important;
    text-align: left !important;
    background-position: 9px center !important;
    margin-bottom: 14px !important;
    word-break: break-all;
  }
  .mianbxContent a { font-size: 13px !important; }
  .mianbxContent:after { display: none !important; }

  /* 分页 */
  .pages_info {
    width: 100% !important;
    font-size: 13px !important;
    line-height: 2.2 !important;
    padding: 10px 0 !important;
    word-break: break-word;
  }
  .pages_info a, .RepeaterNumberList_Page {
    display: inline-block;
    min-width: 26px;
    line-height: 26px;
    text-align: center;
    font-size: 13px !important;
  }
}

/* --------------------------------------------------------------------------
   5. 产品列表 / 产品详情
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  /* 产品每 3 个分装在一个独立的 #bodycontent 里，各自 flex 换行后都变成 2+1，
     整页因此呈 2/1/2/1 的锯齿空洞。用 display:contents 把各组展平，
     让所有卡片进入同一个两列网格。 */  .body_box:has(.pro_one_box) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
    align-items: start;
    width: 100% !important;
    max-width: 100% !important;
  }
  .body_box:has(.pro_one_box) > div:has(> .pro_one_box) {
    display: contents !important;
  }
  .body_box:has(.pro_one_box) > .clear,
  .body_box:has(.pro_one_box) > div:empty {
    display: none !important;
  }
  /* 分页条独占整行 */
  .body_box:has(.pro_one_box) > .pages_info,
  .body_box:has(.pro_one_box) > .products_pages_info {
    grid-column: 1 / -1;
    width: 100% !important;
    margin: 6px 0 0 !important;
  }

  .pro_one_box, .dgweb_list_item {
    float: none !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }
  .pro_one_box .clear { display: none !important; }

  /* 图片区统一 4:3 比例框 + 内缩居中，各产品视觉尺寸一致 */
  .pro_pic, .dgweb_list_item_pic {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid #edf0f3;
    border-radius: 4px;
    box-sizing: border-box;
  }
  .pro_pic > a, .dgweb_list_item_pic > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
  .pro_pic img, .dgweb_list_item_pic img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 92% !important;
    max-height: 92% !important;
    object-fit: contain;
    border: 0 !important;
  }

  /* 标题固定两行高度，卡片底部基线对齐 */
  .pro_name, .dgweb_list_item_a {
    display: block !important;
    height: 3em !important;
    line-height: 1.5 !important;
    padding: 8px 2px 0 !important;
    margin: 0 !important;
    overflow: hidden;
    text-align: center;
  }
  .pro_name a, .dgweb_list_item_a a, .pro_name a.dgweb_list_item_a a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    word-break: break-word;
  }
  #copy, #bodycontent#copy { width: 100% !important; }

  /* 产品详情 */
  .pro_main_box {
    height: auto !important;
    padding: 10px 0 !important;
    background: #fff;
  }
  .propic_show_right {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: center;
  }
  .propic_show_right img { max-width: 100% !important; height: auto !important; }
  .pro_detail_title {
    font-size: 18px !important;
    line-height: 1.5 !important;
    padding: 10px 12px !important;
    margin-bottom: 6px !important;
  }
  .propic_show_left, .propic_show_piclist { display: none !important; }
  .propic_desc { height: auto !important; padding: 0 12px; }

  .product_content {
    width: 100% !important;
    padding: 14px 12px !important;
    font-size: 14px !important;
    line-height: 1.9 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .product_content img, .bodyContentString8 img, .page1 img {
    max-width: 100% !important;
    height: auto !important;
  }
  .product_content iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    min-height: 180px;
  }
  .pro_detail_rel_item > div { width: calc(50% - 6px) !important; margin: 0 6px 10px 0 !important; }
  .pro_detail_rel_item img { width: 100% !important; }
  .pro_detail_rel_hd strong { width: auto !important; padding: 0 14px !important; height: 44px !important; line-height: 44px !important; }
  .pro_show_btn button { width: calc(50% - 5px) !important; }
  .pro_show_btn button + button { margin-left: 0 !important; }

  /* 大图查看组件（MagicZoom）不遮挡 */
  .MagicZoom, .MagicThumb { max-width: 100% !important; }
}

/* 平板区间：卡片放到三列，避免两列时单张图过大 */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .body_box:has(.pro_one_box) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   6. 新闻 / 视频 列表与详情
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .pro_list_box { width: 100% !important; }
  .pro_list_box_item_zdy {
    display: block !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
  }
  .pro_list_box_item_zdy:after { display: none !important; }
  .pro_list_box_item_l_zdy {
    float: none !important;
    margin: 0 0 10px !important;
    width: 100% !important;
    box-sizing: border-box;
    text-align: center;
  }
  /* 缩略图保持自身比例居中，避免小图（如 nopic 占位图）被拉满整屏 */
  .pro_list_box_item_l_zdy img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 260px !important;
    box-sizing: border-box;
  }
  .pro_list_box .pro_list_box_item_l_zdy,
  .pro_list_box .pro_list_box_item_zdy .pro_list_box_item_l_zdy { margin-left: 0 !important; }
  .pro_list_box_item_r_zdy,
  .pro_list_box .pro_list_box_item_r_zdy {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    text-align: left;
  }
  /* 标题允许折行两行显示，不再被截成半句 */
  .pro_list_box_item_r_zdy a > p,
  .pro_list_box_item_r_zdy a p,
  .xwlbbt a {
    font-size: 16px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    width: auto !important;
    max-width: 100% !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* 无配图时使用的 nopic 占位图不占位，避免出现空白大图框 */
  .pro_list_box_item_l_zdy img[src*="nopic"] { display: none !important; }
  /* 摘要：按整行截断（3 行），避免出现半截文字 */
  .pro_list_box_item_zdy > a > div,
  .pro_list_box .pro_list_box_item_r_zdy a div,
  .pro_list_box_item_r_zdy a div {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 6px 0 0 !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
    text-indent: 0 !important;
    max-height: 5.4em !important;
    overflow: hidden !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
  }
  .pro_list_box_item_time_zdy, .shopmrsc p.xwlbsj { position: static !important; }
  .news_box_lbm { width: 100% !important; }

  .shopmrsc { display: block !important; padding: 12px !important; margin-bottom: 12px !important; }
  .shopmrsc a { float: none !important; height: auto !important; }
  .xwlb_img { width: 100% !important; height: auto !important; margin: 0 0 10px !important; }
  .xwlb_img img { max-width: 100% !important; height: auto !important; max-height: none !important; }
  /* 无配图条目使用 nopic 占位图，手机上会变成一大块灰色空图，直接收起 */
  .xwlb_img:has(> img[src*="nopic"]) { display: none !important; }
  .xwlb_content { width: 100% !important; float: none !important; padding: 0 !important; }
  .shopmrsc p { margin-left: 0 !important; }
  .xwlbbt, .xwlbnr { width: 100% !important; }
  .shopmrsc:after { display: none !important; }
  .n_yday, .n_year, .n_ymonth { display: none !important; }

  .news_content_title, .news_content_body, .news_content_back {
    width: 100% !important;
    padding: 0 12px !important;
    box-sizing: border-box;
  }
  .news_content_title h3 { font-size: 18px !important; line-height: 1.6 !important; }
  .news_content_body { font-size: 14px !important; line-height: 1.9 !important; word-wrap: break-word; }
  .news_content_body img { max-width: 100% !important; height: auto !important; }
  .news_content_body table { display: block; overflow-x: auto; }
  .news_content_back { text-align: left !important; }

  /* 新闻/视频列表页顶部分类条 */
  .ny_news_dh { width: 100% !important; }
  .ny_news_dh ul { display: flex !important; flex-wrap: wrap; width: 100% !important; }
  .ny_news_dh ul li, .ny_news_dh ul li a {
    width: auto !important;
    flex: 1 1 33.33%;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   7. 荣誉 / 应用领域 / 关于 等内页次要模块
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .honercon { width: 100% !important; height: auto !important; }
  .honercon td, .honercon tr {
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 10px !important;
    padding-left: 0 !important;
  }
  .honercon img { max-width: 100% !important; height: auto !important; }
  .honerjt { display: none !important; }

  .jianjie22 { width: 100% !important; }
  .jianjie3 td div { width: 100% !important; }
  .wz { width: 100% !important; height: auto !important; float: none !important; margin: 0 0 20px !important; }
  .tp { display: none !important; }

  .case_row2 ul { width: 100% !important; height: auto !important; }
  .case_row2 ul li { width: 100% !important; height: auto !important; }
  .C_btnNext, .C_btnPrev { display: none !important; }

  .bodyContentString8 { width: 100% !important; padding: 0 12px !important; box-sizing: border-box; }
  .page1 { width: 100% !important; }
  .contact_cont_l1 {
    float: none !important;
    width: 100% !important;
    font-size: 14px !important;
    line-height: 1.9 !important;
    padding: 0 0 20px !important;
  }
  .contact_main1_h3 {
    font-size: 20px !important;
    padding: 8px 0 14px !important;
    margin-bottom: 10px !important;
  }
  .contact_cont_l1 iframe { width: 100% !important; }

  /* 联系我们页的 .proc1 侧栏 */
  .leftclass .proclass .proc1 { border-radius: 0 0 6px 6px; }
}

/* --------------------------------------------------------------------------
   8. 页脚
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .links { height: auto !important; }
  .links .w1300 {
    height: auto !important;
    background: none !important;
    padding: 12px 14px !important;
  }
  .links p {
    float: none !important;
    line-height: 1.9 !important;
    font-size: 14px !important;
    display: block;
  }
  .linkTagcs { width: 100% !important; height: auto !important; }
  .linkTagcs ul { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .linkTagcs li {
    float: none !important;
    line-height: 26px !important;
    padding-right: 0 !important;
    font-size: 12px;
  }

  .kslj { height: auto !important; padding: 24px 0 10px !important; }
  .kslj ul.w1300 {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 20px 12px;
    width: 100% !important;
    padding: 0 14px !important;
    box-sizing: border-box;
  }
  .kslj li {
    float: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
  }
  .kslj li:nth-child(1), .kslj li:nth-last-child(1) { padding: 0 !important; }
  .kslj li:nth-last-child(1) {
    grid-column: 1 / -1;
    float: none !important;
    border-top: 1px solid #262626;
    padding-top: 16px !important;
  }
  .kslj li > p { font-size: 15px !important; margin-bottom: 8px !important; line-height: 1.5 !important; }
  .kslj li > a { font-size: 13px !important; line-height: 30px !important; }
  .erweima { display: flex !important; gap: 14px; flex-wrap: wrap; }
  .kslj li dl { float: none !important; }
  .kslj li dl + dl { margin-left: 14px !important; }
  .kslj li dl > img { width: 84px !important; height: 84px !important; padding: 3px !important; }
  .kslj li dl img + i { margin: 8px 0 0 10px !important; min-width: 58px; }
  .kslj li dl i span { margin-top: 12px !important; font-size: 12px; white-space: nowrap; }
  .crconcat { padding-top: 10px !important; font-size: 12px !important; line-height: 1.9 !important; }
  .crconcat span { font-size: 14px !important; }
  .crconcat p { padding-left: 20px; background-position: left center !important; line-height: 1.9 !important; }

  .end { padding: 14px 0 !important; }
  .end p.w1300 {
    line-height: 1.9 !important;
    font-size: 12px !important;
    padding: 0 14px !important;
    text-align: center;
    box-sizing: border-box;
  }
  .end, .end a { font-size: 12px !important; }
}

/* --------------------------------------------------------------------------
   9. 右侧浮动客服 + 移动端快捷工具条
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .y-kefu-box { top: auto !important; bottom: 90px; }
  .y-kefu-box01 { width: 42px !important; }
  .y-kefu-box01 .show-status > a,
  .y-kefu-box01 .show-status > div { width: 40px !important; padding: 6px 0 8px !important; }
  .y-kefu-box01 .show-status .kf-zixun { margin: 6px 0 5px !important; }
  .y-kefu-box01 .mobile-infos,
  .y-kefu-box01 .y-ewm-box,
  .y-kefu-box01 .y-email-infos,
  .y-kefu-box01 .hide-status { display: none !important; }
}

@media screen and (max-width: 767px) {
  /* 桌面悬浮客服在手机端由底部工具条替代（触屏无法 hover） */
  .y-kefu-box { display: none !important; }

  .mbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 52px;
    display: flex;
    background: #fff;
    border-top: 1px solid #e6e9ee;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);
    z-index: 9999930;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mbar a {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #5167ad;
    line-height: 1.2;
    text-decoration: none;
  }
  .mbar a + a { border-left: 1px solid #f0f2f5; }
  .mbar a.mbar-main { background: #5167ad; color: #fff; }
  .mbar i {
    display: block;
    width: 18px;
    height: 18px;
    margin: 0 auto 2px;
    background: url(../images/20200706162249_936942870.png) no-repeat;
  }
  .mbar .ico-qq { width: 20px; height: 20px; background-position: -5px -5px; }
  .mbar .ico-tel { background-position: -5px -32px; }
  .mbar .ico-mail { width: 18px; height: 14px; background-position: -5px -80px; }
  .mbar .ico-top { width: 14px; height: 12px; background-position: -5px -98px; }
  .mbar a.mbar-main i { filter: brightness(0) invert(1); }

  body { padding-bottom: 52px; }
  .end { padding-bottom: 18px !important; }
}

/* --------------------------------------------------------------------------
   10. 小屏（≤360px）微调
   -------------------------------------------------------------------------- */
@media screen and (max-width: 360px) {
  .header > .w1340 { padding: 6px 10px !important; }
  .header .hlogo img { max-height: 38px; }
  .useul li img { width: 54px; }
  .sproc ul li a { margin: 6px 4px !important; }
  .pro_one_box, .dgweb_list_item { width: 100% !important; margin: 0 !important; }
  .kslj ul.w1300 { grid-template-columns: 1fr; }
  .ysnum { grid-template-columns: 1fr; }
  .mbar a { font-size: 10px; }
}
