/* ==========================================================================
   高美官网主题 · H5 自适应样式
   --------------------------------------------------------------------------
   老站（ESPCMS specialty 皮肤）是固定 1000px 桌面版，手机端另开 /wap/ 一套站。
   本文件不改老 CSS，只在其后覆盖，做到「一套代码，桌面原样、手机自适应」。

   断点：
     ≥1201     桌面，一比一还原老站，本文件不介入
     1041–1200 小笔记本，容器收窄
     768–1040  平板 / 横屏手机，两栏改一栏
     ≤767      手机竖屏，全部单栏 + 抽屉导航
     ≤400      小屏手机，字号与间距再收一档

   注意：老站大量区块靠「固定宽度 + 背景图」撑版式（如 .mcommitment 690px、
   .footer 348px、.prodetailsinfo 402px），窄屏必须先解掉固定高度，否则内容被裁。
   ========================================================================== */

/* ==========================================================================
   0. 基础
   ========================================================================== */
html {
  -webkit-text-size-adjust: 100%;   /* iOS 横屏时不要自作主张放大字号 */
  text-size-adjust: 100%;
}
html, body { overflow-x: hidden; }  /* 兜底：个别元素溢出时不出现横向滚动条 */
body { -webkit-tap-highlight-color: transparent; }

img, video, iframe { max-width: 100%; }
img { height: auto; }

/* 正文里的图片一律自适应，老站正文常带内联固定宽度 */
.espcms_content img,
.pro_read_c img,
.info_con img,
.brand_txt img {
  max-width: 100% !important;
  height: auto !important;
}

/* 正文表格：老站参数表是定宽表格，手机上改成自适应并允许换行 */
.espcms_content table,
.pro_read_c table {
  width: 100% !important;
  max-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}
.espcms_content td,
.espcms_content th,
.pro_read_c td,
.pro_read_c th {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   0.5 头部布局修复（桌面同样生效）
   --------------------------------------------------------------------------
   老站 .htop 定高 28px 且不清浮动。顶栏公告 marquee 实际渲染约 37px 高，
   浮动区外溢到 .htop 之下，会把 .hlogo 里第一个 float:left 的 logo
   挤到公告右侧（实测 logo 落在 x=773，应在 x=213），.logotext 被挤到第二行。
   裁掉顶栏溢出 + 让 logo 行自清浮动，双保险。
   ========================================================================== */
.htop { overflow: hidden; }
.htop .topl marquee { display: block; float: left; height: 28px; line-height: 28px; }
.hlogo .COM-WIDTH::after {
  content: "";
  display: block;
  clear: both;
  height: 0;
  overflow: hidden;
  font-size: 0;
}
.logotext { max-width: 330px; box-sizing: border-box; }  /* 防英文副标题过宽把右侧电话图挤下一行 */

/* 产品 tab 面板闭合浮动：pal 里全是 float:left 的 .show，不闭合的话面板高度为 0，
   桌面靠后面的 FLOATFIX 兜底，但平板/手机单栏布局下溢出的产品图会和分类列表重叠 */
.mproduct .tab-bd > .tab-pal { overflow: hidden; }

/* 所有可点元素保证最小触控尺寸（44px 是移动端通行标准） */
@media (max-width: 767px) {
  .m-drawer-nav a,
  .m-navbtn,
  .m-navtel,
  .mbar-item { min-height: 44px; }
}

/* ==========================================================================
   1. 小笔记本（1041–1200）：容器 1000px 收一点，其余不动
   ========================================================================== */
@media (max-width: 1200px) {
  .COM-WIDTH { width: auto; max-width: 1000px; }
  /* 漂浮窗 200px 宽，窄屏下内容区左边距不足会压住正文，收掉（≤767 由底栏接管） */
  .im_floatonline { display: none !important; }
}

/* ==========================================================================
   2. 平板 / 横屏手机（≤1040）：两栏改一栏
   ========================================================================== */
@media (max-width: 1040px) {

  /* ---------- 容器 ---------- */
  .COM-WIDTH {
    width: auto;
    max-width: 1000px;
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
  }

  /* 老站用来遮边缘的固定宽阴影，窄屏会溢出 */
  .mshow .shadow,
  .maboutfaq .left .shadow,
  .maboutfaq .right .shadow,
  .mproduct .shadow,
  .mbox .shadow,
  .bar { display: none; }

  /* ---------- 头部 ---------- */
  /* 顶栏（收藏/留言/地图）在窄屏意义不大，内容抽屉和页脚都有，直接隐藏：
     留着的话定高 28px 装不下浮动内容，会出现只剩几像素高的空条 */
  .htop { display: none; }
  .hlogo .COM-WIDTH { height: auto; padding-top: 12px; padding-bottom: 12px; }
  /* 容器收窄后 logo(300) + 文字 + 电话图(300) 放不下，电话图会让位隐藏 */
  .hlogo .logotel { display: none; }

  /* ---------- 导航：横向可滑，不换行挤成两排 ---------- */
  .hmenu ul.ULFIX {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hmenu ul.ULFIX::-webkit-scrollbar { display: none; }
  .hmenu ul.ULFIX li { float: none; flex: 0 0 auto; }
  .hmenu .lifirst { margin-left: 0; }

  /* ---------- 首页 · 轮播 ---------- */
  .focusBox { height: 380px; }
  .focusBox .pic li,
  .focusBox .pic li a { height: 380px; }
  .focusBox .pic li { background-size: cover !important; background-position: center !important; }
  .focusBox .prev, .focusBox .next { display: none !important; }

  /* ---------- 首页 · 搜索 ---------- */
  .msearch .COM-WIDTH { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .msearch .serchr { float: none; width: auto; flex: 1 1 260px; }

  /* ---------- 首页 · 产品 tab 区 ---------- */
  .mproduct .left,
  .mproduct .right { float: none; width: auto; }
  .mproduct .left .list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .mproduct .left .list ul li {
    width: auto;
    flex: 1 1 30%;
    margin: 0;
    text-indent: 0;
    text-align: center;
    padding: 0 6px;
  }
  .mproduct .left .tel,
  .mproduct .left .telimg { display: none; }
  .mproduct .right { padding: 12px 0 0; }

  /* 主打产品区：一行 2 个自适应（等宽等比，图片 contain 不变形不留白）
     选择器带 .mproduct .right 前缀，特异性压过 index.css 的 .mproduct .right .show */
  .mproduct .right .tab-pal .show {
    width: calc(50% - 6px);
    float: left;
    margin: 0 6px 16px 0;
    box-sizing: border-box;
  }
  .mproduct .right .tab-pal .show:nth-child(2n) { margin-right: 0; }
  .mproduct .right .tab-pal .show .box {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .mproduct .right .tab-pal .show .box .boximg { width: 100%; height: 100%; }
  .mproduct .right .tab-pal .show .box .boximg img { width: 100%; height: 100%; object-fit: contain; }
  .mproduct .right .tab-pal .show .shadow { display: none; }
  .mproduct .right .tab-pal .show .text { width: auto; margin-top: 6px; font-size: 13px; }

  /* ---------- 首页 · 优势区（老站 1325px 高 + 绝对定位） ---------- */
  .madvantage {
    height: auto;
    padding: 24px 0;
    background: #f4f6f8;
  }
  .madvantage .COM-WIDTH { position: static; }
  .madvantage .text,
  .madvantage .position1, .madvantage .position2, .madvantage .position3,
  .madvantage .position4, .madvantage .position5, .madvantage .position6,
  .madvantage .position7, .madvantage .position8 {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 12px !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    padding-left: 16px;
    border-left: 3px solid #d80d15;
    font-style: normal;
    line-height: 1.85;
  }
  .mbanner3 { display: none; }

  /* ---------- 首页 · 服务承诺（.box 定宽 473px） ---------- */
  .mservice .box {
    float: left;
    width: 48%;
    margin: 0 1% 14px;
    box-sizing: border-box;
  }
  .mservice .titile { width: 100% !important; background-size: contain !important; background-position: center !important; }

  /* ---------- 首页 · 承诺区（老站 690px 高，全靠背景图叠） ---------- */
  .mcommitment {
    height: auto;
    padding: 28px 0 34px;
    background-size: cover;
    background-position: center top;
    overflow: visible;
  }
  .mcommitment .title {
    /* 用 padding-top 撑比例：85/237 */
    width: 160px;
    height: 0;
    padding-top: 57px;
    margin: 0 auto 22px;
    background-size: contain;
    background-position: center;
  }
  .mcommitment .slogan {
    /* 192/608 */
    width: 100%;
    max-width: 460px;
    height: 0;
    padding-top: 31.6%;
    margin: 0 auto;
    background-size: contain;
    background-position: center;
  }
  .mcommitment .slogan2 {
    /* 69/494 */
    width: 100%;
    max-width: 380px;
    height: 0;
    padding-top: 14%;
    margin: 24px auto 0;
    background-size: contain;
    background-position: center;
  }
  .mcommitment .text {
    width: auto;
    max-width: 720px;
    margin: 26px auto 0;
    padding: 0 8px;
    font-size: 14px;
    line-height: 1.95;
    font-weight: normal;
  }

  /* ---------- 首页 · 关于 + 常见问题（左 670 / 右 320，均定高） ---------- */
  .maboutfaq .left,
  .maboutfaq .right {
    float: none;
    width: auto;
    height: auto;
    margin: 0 0 18px;
  }
  .maboutfaq .left .box,
  .maboutfaq .right .box { height: auto; }
  .maboutfaq .left .box .text .textl,
  .maboutfaq .left .box .text .textr { float: none; width: auto; }
  .maboutfaq .left .box .text .textl { text-align: center; margin-bottom: 10px; }
  .maboutfaq .left .box .img { width: auto; }
  /* 产品滚动图：原固定 208×136 + cover，窄屏被裁切变形 → 改等比自适应 */
  .maboutfaq .left .box .img .picList li img { width: 100%; height: auto; object-fit: contain; }
  .maboutfaq .right .box .txtMarquee-top { height: 240px; }

  /* ---------- 首页 · 产品墙 4 列 → 3 列 ---------- */
  .mshow .box .product { width: 31.3%; margin: 0 1% 14px; }
  /* 关键：.img 容器原为固定 239×239，卡片变窄后图片相对它撑满导致溢出变形 */
  .mshow .box .product .productbox .img { width: 100%; height: 100%; }
  .mshow .box .product .productbox { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .mshow .box .product .productbox .img img { width: 100%; height: 100%; object-fit: contain; }

  /* ---------- 首页 · 底部三栏（280 + 280 + 423） ---------- */
  .mbox { margin-top: 22px; }
  .mbox .COM-WIDTH { display: flex; flex-wrap: wrap; gap: 12px; }
  .mbox .news,
  .mbox .company,
  .mbox .feedback {
    float: none;
    width: calc(50% - 6px);
    height: auto;
    margin: 0;
  }
  .mbox .feedback { width: 100%; }
  .mbox .box { height: auto; min-height: 0; }
  .mbox .feedback .infoInput,
  .mbox .feedback textarea { width: calc(100% - 88px); box-sizing: border-box; }

  /* ---------- 页脚（老站 348px 定高 + 各块定宽） ---------- */
  .footer {
    height: auto;
    padding-bottom: 24px;
    background-size: cover;
  }
  .fmenu { width: auto; }
  .footer .link .lleft,
  .footer .link .lright { float: none; width: auto; }
  .footer .link .lleft { margin-bottom: 8px; }
  .footer .flogo { width: auto; }
  .footer .flogo .logo,
  .footer .flogo .text,
  .footer .flogo .logowx {
    float: none;
    width: auto;
    text-align: center;
    margin: 0 auto 14px;
  }
  .footer .flogo .logowx img { max-width: 120px; }

  /* 浮动客服在窄屏挡内容，交给底部快捷栏 */
  .im_floatonline { display: none !important; }

  /* ---------- 内页两栏（.center 1024 / 左 240 / 右 770） ---------- */
  .center {
    width: auto;
    max-width: 1000px;
    padding: 0 14px;
    margin: 12px auto;
    box-sizing: border-box;
  }
  .center .left {
    float: none;
    width: auto;
    min-height: 0;
    margin-bottom: 14px;
  }
  .center .right {
    float: none;
    width: auto;
    min-height: 0;
  }
  /* 产品详情页（手机）：主内容（主图/参数/详情）在前，左侧栏（推荐产品）沉底；
     PC 端为左右浮动布局，不受影响 */
  body.page-product .center { display: flex; flex-direction: column; }
  body.page-product .center .right { order: 1; }
  body.page-product .center .left { order: 2; margin-top: 16px; margin-bottom: 0; }
  .l_contact { min-height: 0; margin-top: 12px; }
  .l_news, .l_pro { min-height: 0; }

  /* 左侧目录树：长列表改成两列胶囊，省纵向空间 */
  .l_list ul.normal_list { display: flex; flex-wrap: wrap; gap: 6px; }
  .l_list ul.normal_list li {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    text-indent: 0;
    line-height: 30px;
  }
  .l_list ul.normal_list li a {
    display: block;
    padding: 0 12px;
    font-size: 13px;
    border: 1px solid #e2e6ec;
    background: #f7f9fb;
    color: #444;
  }
  .l_list ul.normal_list li.xiaoul a {
    padding-left: 12px;
    background: #fff;
    color: #666;
  }

  /* 产品墙：4 列 → 3 列 */
  .pro_con dl { margin: 6px 0.6% !important; }
  .pro_con dl dt { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; }
  .pro_con dl dt img { width: 100% !important; height: 100% !important; object-fit: cover; }
  .pro_con dl dd { width: auto !important; }

  /* 产品详情：左图右参数 → 上下 */
  .prodetailsinfo { height: auto !important; padding: 12px 0; }
  .prodetailsinfo .proviewbox {
    float: none;
    width: auto;
    padding-left: 0;
    margin: 0 auto 16px;
  }
  .prodetailsinfo .ul_prodinfo { float: none; width: auto; }
  .probigshow { width: auto; max-width: 340px; height: auto; margin: 0 auto; }
  #show { height: auto; }
  #show img { max-width: 100%; height: auto; }
  /* 缩略图条：老站 7500px 宽用来横向滑动 */
  .ul_prothumb { width: auto !important; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ul_prodinfoshow { max-height: none; overflow: visible; }
  .prodbaseinfo_a { width: auto; }

  /* 文章列表：日期标题同排改上下 */
  dl.news_dl dt { width: auto; }
  .page_typename_width { width: auto; }
  .formwidth_c { min-height: 0; }
  .fromcontent { width: auto; }
  .service_read .trait_m dl { width: auto; }

  /* 搜索表单 */
  .search_form input[type="text"] { width: 72%; box-sizing: border-box; }
}

/* ==========================================================================
   3. 手机竖屏（≤767）：单栏 + 抽屉导航
   ========================================================================== */
@media (max-width: 767px) {

  /* ---------- 头部 ---------- */
  .htop { display: none; }                 /* 顶栏在手机上纯属噪音，收进抽屉 */
  .hlogo .COM-WIDTH {
    padding: 10px 12px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .hlogo .hlogoimg { float: none; flex: 0 0 auto; }
  .hlogo .hlogoimg img { max-height: 44px; width: auto; }
  .hlogo .logotext { float: none; text-align: left; padding: 0; margin: 0; flex: 1 1 auto; min-width: 0; }
  .hlogo .logotext1 { font-size: 15px; line-height: 22px; }
  .hlogo .logotext2 { font-size: 10.5px; line-height: 16px; color: #999; }
  .hlogo .logotel { display: none; }        /* 电话放到底部快捷栏，这里不重复 */

  /* 导航条改成吸顶操作条：菜单 / 当前栏目 / 电话 */
  .hmenu {
    position: sticky;
    top: 0;
    z-index: 900;
    height: 48px;
    text-align: left;
    background-size: auto 100%;
  }
  .hmenu .COM-WIDTH {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 48px;
    padding: 0 10px;
  }
  .hmenu ul.ULFIX { display: none; }        /* 导航收进抽屉 */

  /* 轮播 */
  .focusBox { height: 210px; }
  .focusBox .pic li,
  .focusBox .pic li a { height: 210px; }
  .focusBox .hd { bottom: 6px; }
  .focusBox .hd li { width: 10px; height: 10px; margin: 0 4px; background-size: 10px auto; }

  /* 搜索 */
  .msearch { padding: 10px 12px 12px; }
  .msearch .COM-WIDTH { display: block; }
  .msearch .serchr { width: 100%; }
  .msearch .serchr .ftext { width: calc(100% - 78px); box-sizing: border-box; }
  .msearch > .COM-WIDTH > span,
  .msearch a { font-size: 12px; }

  /* 产品 tab */
  .mproduct { padding-bottom: 6px; }
  .mproduct .left .list ul li { flex: 1 1 45%; margin: 0; }
  .tab-pal .show { padding: 0; }
  .tab-pal .show .box,
  .tab-pal .show .text { width: 47.5%; margin: 0 1.25% 12px; float: left; box-sizing: border-box; }
  .tab-pal .show .text p { font-size: 13px; line-height: 1.5; }

  /* 首页产品墙：两列 */
  .mshow .box .product { width: 47.5%; margin: 0 1.25% 14px; }
  .mshow .box .product p { font-size: 13px; line-height: 1.45; }

  /* 服务承诺：一列 */
  .mservice .box { width: 100%; float: none; margin: 0 0 12px; }
  .mservice .text1 { font-size: 15px; }
  .mservice .text2 { font-size: 13px; line-height: 1.7; }

  /* 承诺区文字再收一点 */
  .mcommitment .text { font-size: 13.5px; line-height: 1.95; }

  /* 关于 + 问答 */
  .maboutfaq .left .box .text .textl img { max-width: 100%; }
  .maboutfaq .left .box .img .picList li img { width: 140px; height: 92px; }
  .maboutfaq .right .box { padding: 12px; }
  .maboutfaq .right .box .txtMarquee-top { height: 210px; }

  /* 底部三栏：各占一行 */
  .mbox .news,
  .mbox .company { width: 100%; }
  .mbox .feedback .control_label { width: 70px; font-size: 12.5px; }
  .mbox .feedback .infoInput,
  .mbox .feedback textarea { width: calc(100% - 76px); font-size: 13px; }

  /* 页脚 */
  .footer { margin-top: 20px; padding-top: 6px; }
  .fmenu { margin-top: 16px; }
  .footer .fmenu ul.ULFIX { display: flex; flex-wrap: wrap; justify-content: center; }
  .footer .fmenu ul.ULFIX li { float: none; }
  .footer .fmenu ul.ULFIX li a {
    padding: 0 9px;
    font-size: 13px;
    line-height: 32px;
    display: inline-block;
  }
  .footer .link .lright a { display: inline-block; margin: 0 6px 6px 0; font-size: 12px; }
  .footer .text p { font-size: 12.5px; line-height: 1.9; word-break: break-word; }

  /* 内页标题条 */
  .plc { height: auto; line-height: 24px; padding: 6px 10px; font-size: 12.5px; }
  .plc a { white-space: nowrap; }
  .right_main { padding: 10px 0; }

  /* 文章列表 */
  dl.news_dl dt .dt_1 { display: block; font-size: 14px; line-height: 23px; }
  dl.news_dl dt .dt_2 { display: block; font-size: 12px; line-height: 20px; }
  dl.news_dl dd { font-size: 12.5px; line-height: 21px; }

  /* 详情正文 */
  .pro_read_c, .info_con { padding: 10px 0; }
  .pro_read .i_h3 .fr { display: none; }   /* 标题右侧电话在手机上挤，隐藏 */

  /* 产品参数表 */
  .espcms_content td, .espcms_content th,
  .pro_read_c td, .pro_read_c th { padding: 5px 4px !important; font-size: 13px !important; }

  /* 品牌页 */
  .brand_head { padding: 12px; }
  .brand_head .brand_logo { float: none; display: block; margin: 0 auto 10px; }
  .brand_head .brand_txt { text-align: center; }
  .brand_head .brand_txt h1 { font-size: 17px; line-height: 25px; }

  /* 搜索页 */
  .search_form { display: flex; gap: 8px; }
  .search_form input[type="text"] { width: auto; flex: 1 1 auto; font-size: 14px; height: 40px; }
  .search_form button { flex: 0 0 auto; padding: 0 18px; height: 40px; font-size: 14px; }
  .search_list .sitem_t { font-size: 14px; line-height: 1.5; }
  .search_list .sitem { padding: 12px 0; }

  /* 错误页 */
  .error-page { padding: 24px 12px 36px; }
  .error-page .err-code { font-size: 60px; line-height: 70px; }
  .error-page h1 { font-size: 17px; line-height: 27px; }

  /* 询价表单 */
  .inquiry-form { padding: 12px 0; }
  .inquiry-form .row { display: block; margin-bottom: 0; }
  .inquiry-form input[type="text"],
  .inquiry-form input[type="tel"] {
    width: 100%;
    margin-bottom: 10px;
    height: 42px;
    box-sizing: border-box;
    font-size: 15px;          /* ≥16px 可避免 iOS 自动放大，15px 在多数机型已足够 */
  }
  .inquiry-form textarea { width: 100%; box-sizing: border-box; font-size: 15px; }
  .inquiry-form .submit { width: 100%; height: 44px; font-size: 15px; }

  /* 分页 */
  .apage { text-align: center; }
  .apage .apage_record,
  .apage .next_page { float: none; text-align: center; }
  .apage .apage_record { margin-bottom: 8px; }
  .apage a, .apage span { display: inline-block; margin: 0 2px 6px; min-width: 34px; line-height: 34px; }

  /* 单页 / 文章详情正文块 */
  .info_con .espcms_content.text { padding: 10px 0; }
  .info_con_tit .n_tit { text-align: left; line-height: 1.6; }
  .info_con_tit .n_tit .fontSize { float: none; display: block; font-size: 12px; }
  #cntrBody { font-size: 15px; line-height: 1.85; }

  /* 上下篇与标签条是固定 30px 高，手机上文字会换行，必须放开 */
  .gduo { height: auto; min-height: 30px; padding: 6px 8px; line-height: 1.7; }
  .gduo a { display: inline; }
  .info_key { height: auto; min-height: 30px; padding: 6px 0; line-height: 1.9; }
  .info_key a { display: inline-block; margin: 0 6px 4px 0; }

  /* 给底部快捷栏留位置 */
  body { padding-bottom: 56px; }
}

/* ==========================================================================
   4. 小屏（≤400）
   ========================================================================== */
@media (max-width: 400px) {
  .focusBox, .focusBox .pic li, .focusBox .pic li a { height: 170px; }
  .hlogo .logotext2 { display: none; }
  .hlogo .hlogoimg img { max-height: 38px; }
  .error-page .err-code { font-size: 50px; line-height: 60px; }
  .mbox .feedback .control_label { width: 62px; font-size: 12px; }
  .mbox .feedback .infoInput,
  .mbox .feedback textarea { width: calc(100% - 68px); }
  .footer .fmenu ul.ULFIX li a { padding: 0 7px; font-size: 12.5px; }
}

/* ==========================================================================
   5. 移动端组件：吸顶操作条 / 抽屉导航 / 底部快捷栏
   （桌面端全部隐藏，只在 ≤767 出现）
   ========================================================================== */

/* ---------- 吸顶条上的两个按钮 ---------- */
.m-navbtn,
.m-navtel,
.m-navcur { display: none; }

@media (max-width: 767px) {
  .m-navbtn,
  .m-navtel {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 12px;
    border-radius: 17px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }
  .m-navbtn:active,
  .m-navtel:active { background: rgba(255, 255, 255, .3); }
  .m-navbtn svg, .m-navtel svg { width: 16px; height: 16px; display: block; }
  .m-navcur {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 15px;
    text-align: center;
  }
}

/* ---------- 抽屉 ---------- */
.m-drawer { display: none; }

@media (max-width: 767px) {
  .m-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    pointer-events: none;
  }
  .m-drawer.is-open { visibility: visible; pointer-events: auto; }

  .m-drawer-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    transition: opacity .25s ease;
  }
  .m-drawer.is-open .m-drawer-mask { opacity: 1; }

  .m-drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 78%;
    max-width: 320px;
    background: #fff;
    box-shadow: 2px 0 12px rgba(0, 0, 0, .18);
    transform: translateX(-100%);
    transition: transform .28s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .m-drawer.is-open .m-drawer-panel { transform: translateX(0); }

  .m-drawer-head {
    background: #c8102e;
    color: #fff;
    padding: 16px 16px 14px;
    flex: 0 0 auto;
  }
  .m-drawer-head .m-drawer-t1 { font-size: 16px; font-weight: bold; line-height: 24px; }
  .m-drawer-head .m-drawer-t2 { font-size: 12px; line-height: 18px; opacity: .85; margin-top: 2px; }

  .m-drawer-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    background: rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
    padding: 0;
  }

  .m-drawer-nav { list-style: none; margin: 0; padding: 0; }
  .m-drawer-nav li { border-bottom: 1px solid #eef0f3; }
  .m-drawer-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    line-height: 48px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
  }
  .m-drawer-nav li a::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #c9ced6;
    border-bottom: 1.5px solid #c9ced6;
    transform: rotate(-45deg);
    flex: 0 0 auto;
  }
  .m-drawer-nav li.on a { color: #c8102e; font-weight: bold; background: #fff7f8; }
  .m-drawer-nav li.on a::after { border-color: #c8102e; }

  .m-drawer-contact {
    margin-top: auto;
    padding: 16px;
    background: #f7f8fa;
    font-size: 13px;
    line-height: 1.9;
    color: #666;
  }
  .m-drawer-contact b { color: #c8102e; font-size: 16px; }
  .m-drawer-contact .m-drawer-btn {
    display: block;
    margin-top: 10px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    background: #c8102e;
    color: #fff;
    border-radius: 21px;
    font-size: 15px;
    text-decoration: none;
  }

  /* 抽屉打开时锁住页面滚动 */
  body.m-drawer-open { overflow: hidden; }
}

/* ---------- 底部快捷栏 ---------- */
/* .mbar / .mbar-qr 的弹层样式都写在下面的 ≤767 媒体查询里，
   基础状态必须先藏掉，否则桌面端会按原始尺寸渲染：
   mbar-qr 里的微信二维码原图 1280×1280，之前桌面上每页底部
   出现的「巨大二维码」就是它没被藏住 */
.mbar { display: none; }
.mbar-qr { display: none; }

@media (max-width: 767px) {
  .mbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: #fff;
    border-top: 1px solid #e6e8ec;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .06);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mbar-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 52px;
    font-size: 11px;
    line-height: 1.2;
    color: #666;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
  }
  .mbar-item svg { width: 20px; height: 20px; display: block; }
  .mbar-item.is-primary { color: #c8102e; }
  .mbar-item:active { background: #f5f6f8; }

  /* 微信二维码弹层 */
  .mbar-qr {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, .55);
    align-items: center;
    justify-content: center;
  }
  .mbar-qr.is-open { display: flex; }
  .mbar-qr-box {
    background: #fff;
    padding: 18px;
    border-radius: 8px;
    text-align: center;
    max-width: 76vw;
  }
  .mbar-qr-box img { width: 200px; max-width: 100%; display: block; }
  .mbar-qr-box p { margin: 10px 0 0; font-size: 13px; color: #666; }
}

/* ==========================================================================
   6. 打印
   ========================================================================== */
@media print {
  .header, .footer, .mbar, .m-drawer, .im_floatonline,
  .center .left, .plc { display: none !important; }
  .center .right { width: 100% !important; float: none !important; }
  body { padding-bottom: 0; }
}
