@charset "utf-8";
/* ============================================================
   Мобильная/планшетная версия — только для экранов <= 1024px
   Классы с префиксом m- используются ТОЛЬКО в мобильной разметке.
   На десктопе блок .m-wrap скрыт, desktop-разметка не меняется.
   ============================================================ */

.m-wrap{display:none;}

@media screen and (max-width:1024px){
  /* 隐藏桌面版结构（URL 不变，只是不显示） */
  .header,.nav,.banner,.content,.footer{display:none !important;}

  html,body{width:100%;max-width:100%;overflow-x:hidden;}
  body{background:#f4f4f4;}

  .m-wrap{
    display:block;
    width:100%;
    max-width:100%;
    overflow-x:hidden;
    padding-bottom:64px;               /* 给底部固定条留位置 */
    font-family:"Segoe UI",Arial,"Helvetica Neue",sans-serif;
    color:#333;
    -webkit-text-size-adjust:100%;
  }
  .m-wrap *{box-sizing:border-box;}
  .m-wrap img{max-width:100%;height:auto;border:0;}
  .m-wrap a{text-decoration:none;}
  .m-wrap ul{list-style:none;margin:0;padding:0;}

  /* ---------- 顶部 ---------- */
  .m-header{
    position:sticky;top:0;z-index:99;
    display:flex;align-items:center;justify-content:space-between;gap:8px;
    padding:10px 12px;background:#fff;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
  }
  .m-logo img{display:block;height:34px;width:auto;}
  .m-tel{
    margin-left:auto;font-size:14px;font-weight:700;color:#c00;white-space:nowrap;
  }
  .m-menu{position:relative;flex:0 0 auto;}
  .m-menu>summary{
    list-style:none;cursor:pointer;
    display:flex;align-items:center;justify-content:center;gap:6px;
    height:38px;padding:0 14px;border-radius:19px;
    background:#c00;color:#fff;font-size:14px;font-weight:600;outline:none;
  }
  .m-menu>summary::-webkit-details-marker{display:none;}
  .m-menu>summary:before{
    content:"";width:16px;height:12px;
    border-top:2px solid #fff;border-bottom:2px solid #fff;
    box-shadow:0 4px 0 #fff;
  }
  .m-nav{
    position:absolute;right:0;top:46px;width:min(86vw,320px);
    background:#fff;border-radius:10px;overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.18);
    max-height:70vh;overflow-y:auto;
  }
  .m-nav a{
    display:block;padding:13px 16px;font-size:15px;color:#333;
    border-bottom:1px solid #eee;
  }
  .m-nav a:active{background:#f7f7f7;}
  .m-nav .m-sub{
    padding:10px 16px 6px;font-size:12px;font-weight:700;
    color:#c00;text-transform:uppercase;letter-spacing:.4px;background:#fafafa;
  }
  .m-nav .m-catlist li a{font-size:13.5px;color:#555;padding:10px 16px 10px 24px;}
  .m-nav .m-catlist li a:before{content:"›";color:#c00;margin-right:6px;}

  /* ---------- 首屏 ---------- */
  .m-hero{position:relative;overflow:hidden;background:#222;}
  .m-hero>img{display:block;width:100%;height:auto;min-height:210px;object-fit:cover;}
  .m-hero-txt{
    position:absolute;left:0;right:0;bottom:0;
    padding:18px 16px;color:#fff;
    background:linear-gradient(to top,rgba(0,0,0,.78),rgba(0,0,0,0));
  }
  .m-hero-txt h1{
    margin:0 0 10px;font-size:20px;line-height:1.35;font-weight:700;
    text-shadow:0 1px 3px rgba(0,0,0,.4);
  }
  .m-btn{
    display:inline-block;padding:9px 16px;border-radius:4px;
    background:#c00;color:#fff !important;font-size:14px;font-weight:600;
  }

  /* ---------- 通用区块 ---------- */
  .m-sec{padding:16px 14px;background:#fff;margin:10px 0;}
  .m-sec:nth-of-type(odd){background:#fff;}
  .m-h2{
    position:relative;margin:0 0 12px;padding-left:10px;
    font-size:17px;font-weight:700;color:#222;line-height:1.3;
  }
  .m-h2:before{
    content:"";position:absolute;left:0;top:2px;bottom:2px;width:4px;
    background:#c00;border-radius:2px;
  }
  .m-more{
    display:inline-block;margin-top:10px;font-size:13px;color:#c00 !important;font-weight:600;
  }

  /* ---------- 产品网格 ---------- */
  .m-hot{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
  .m-hot>li{
    width:auto !important;float:none !important;
    background:#fff;border:1px solid #e8e8e8;border-radius:6px;overflow:hidden;
    display:flex;flex-direction:column;
  }
  .m-hot>li .product_img{order:1;}
  .m-hot>li .product_img a{display:block;}
  .m-hot>li .product_img img{
    display:block;width:100%;height:120px;object-fit:cover;
  }
  .m-hot>li .product_name{order:2;padding:8px 9px 10px;}
  .m-hot>li .product_name .name{display:none;}
  .m-hot>li .product_introduction{
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
    overflow:hidden;min-height:36px;
    font-size:13px;line-height:1.38;color:#333;font-weight:500;
  }
  .m-hot>li .pro_btn{display:none !important;}

  /* ---------- 分类列表（首页产品分类区） ---------- */
  .m-catlist{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;}
  .m-catlist li{border-bottom:1px solid #eee;}
  .m-catlist li a{
    display:block;padding:11px 0;font-size:13.5px;color:#444;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }

  /* ---------- 关于我们 ---------- */
  .m-about p{
    margin:0;font-size:14px;line-height:1.75;color:#555;
    display:-webkit-box;-webkit-line-clamp:8;-webkit-box-orient:vertical;overflow:hidden;
  }

  /* ---------- 案例 ---------- */
  .m-cases{display:flex;flex-direction:column;gap:12px;}
  .m-cases>li{
    width:auto !important;float:none !important;padding:0 !important;min-height:0 !important;
    display:flex;gap:10px;align-items:flex-start;
    border-bottom:1px solid #eee;padding-bottom:12px !important;
  }
  .m-cases>li>a{flex:0 0 76px;}
  .m-cases>li>a img{width:76px;height:48px;object-fit:cover;display:block;border-radius:4px;}
  .m-cases>li>span{flex:1;min-width:0;}
  .m-cases .case_tit{
    display:block;margin-bottom:4px;font-size:14px;line-height:1.35;color:#333;font-weight:600;
  }
  .m-cases p{
    margin:0;font-size:12.5px;line-height:1.5;color:#777;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }
  .m-cases .more_case{display:none;}

  /* ---------- 页尾 ---------- */
  .m-footer{background:#222;color:#ddd;padding:18px 14px 22px;text-align:center;}
  .m-footer p{margin:0 0 8px;font-size:13px;line-height:1.6;}
  .m-footer a{color:#fff !important;}
  .m-footer .m-fname{font-weight:600;color:#fff;font-size:13.5px;}
  .m-footer .m-copy{color:#999;font-size:12px;margin-top:10px;}

  /* ---------- 底部固定联系条 ---------- */
  .m-bar{
    position:fixed;left:0;right:0;bottom:0;z-index:98;
    display:flex;background:#fff;border-top:1px solid #e5e5e5;
    box-shadow:0 -2px 10px rgba(0,0,0,.06);
  }
  .m-bar a{
    flex:1;display:flex;align-items:center;justify-content:center;gap:8px;
    height:52px;font-size:14px;font-weight:600;color:#333 !important;
  }
  .m-bar a+a{border-left:1px solid #eee;}
  .m-bar a.m-call{color:#c00 !important;}
  .m-bar a:before{
    content:"";width:16px;height:16px;border-radius:50%;
    background:#c00;opacity:.9;
  }
  .m-bar a.m-mail:before{background:#666;}
}

/* 平板横屏可稍微放大一点元素 */
@media screen and (min-width:641px) and (max-width:1024px){
  .m-hot{grid-template-columns:repeat(3,1fr);}
  .m-hot>li .product_img img{height:150px;}
  .m-hero-txt h1{font-size:24px;}
  .m-sec{padding:18px 20px;}
}
/* ===== 2026-11-18 手机端微调：头部、卡片文字、底部条 ===== */
@media screen and (max-width:1024px){
  .m-header{gap:6px;padding:8px 10px;}
  .m-logo{flex:0 0 auto;}
  .m-logo img{height:30px;}
  .m-tel{
    flex:1 1 auto;min-width:0;margin-left:6px;
    font-size:12.5px;line-height:1.2;text-align:right;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .m-menu{flex:0 0 auto;}
  .m-menu>summary{height:34px;padding:0 11px;font-size:13px;}

  .m-hot>li .product_name p{margin:0 !important;width:auto !important;}
  .m-hot>li .product_introduction{
    display:-webkit-box;width:auto !important;max-width:100%;
    white-space:normal !important;word-break:break-word;overflow-wrap:anywhere;
  }
  .m-hot>li .product_img img{height:118px;}

  .m-bar a{font-size:13px;padding:0 4px;white-space:nowrap;}
  .m-bar{padding-bottom:env(safe-area-inset-bottom);}
}

/* ===== 2026-11-18 修复分类下拉导致的横向溢出 ===== */
@media screen and (max-width:1024px){
  .m-hot{grid-template-columns:repeat(2,minmax(0,1fr));}
  .m-hot>li{min-width:0;}
  .m-nav{max-width:86vw;}
  .m-catlist{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:100%;}
  .m-catlist li{min-width:0;max-width:100%;}
  .m-catlist li a{min-width:0;max-width:100%;display:block;}
}

/* ===== 2026-11-19 修复：产品卡片图片未铺满/文字被截断、顶部邮箱与菜单按钮 ===== */
@media screen and (max-width:1024px){
  /* 顶部：邮箱替代电话，菜单按钮弱化红色避免视觉遮挡 */
  .m-header{align-items:center;}
  .m-contact{
    flex:1 1 auto;min-width:0;margin-left:4px;
    font-size:11.5px;line-height:1.2;font-weight:600;color:#333 !important;
    text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .m-menu>summary{height:32px;padding:0 10px;font-size:12.5px;background:#2f2f2f;}

  /* 产品卡片：彻底重置桌面端固定宽高与浮动 */
  .m-hot>li{height:auto !important;min-height:0 !important;}
  .m-hot>li .product_img{
    order:1;float:none !important;
    width:100% !important;height:auto !important;padding:0 !important;
  }
  .m-hot>li .product_img a{display:block;width:100%;height:auto;}
  .m-hot>li .product_img img{
    display:block;width:100% !important;height:132px !important;
    object-fit:cover;object-position:center;
  }
  .m-hot>li .product_name{
    order:2;float:none !important;
    width:100% !important;height:auto !important;
    padding:9px 10px 11px !important;overflow:visible !important;
  }
  .m-hot>li .product_name p{margin:0 !important;}
  .m-hot>li .product_introduction{
    display:-webkit-box;float:none !important;
    width:auto !important;height:auto !important;max-height:none !important;
    font-size:13px;line-height:1.4;color:#333;
    -webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }
}
@media screen and (min-width:641px) and (max-width:1024px){
  .m-hot>li .product_img img{height:150px !important;}
}

/* ===== 2026-11-19 平板（641-1024）三列，覆盖后面两列规则 ===== */
@media screen and (min-width:641px) and (max-width:1024px){
  .m-hot{grid-template-columns:repeat(3,minmax(0,1fr));}
  .m-hot>li .product_img img{height:150px !important;}
}

/* ===== 2026-11-19 删除首屏黑色横幅；菜单按钮仅文字+椭圆底；菜单默认收起 ===== */
@media screen and (max-width:1024px){
  /* 首屏不再使用深色横幅图，改为浅色标题条 */
  .m-hero{background:#f7f7f7;border-bottom:1px solid #ececec;}
  .m-hero>img{display:none !important;}
  .m-hero-txt{
    position:static;padding:16px 14px 18px;color:#222;
    background:none !important;
  }
  .m-hero-txt h1{
    margin:0 0 12px;color:#222;font-size:18px;line-height:1.42;
    text-shadow:none !important;
  }

  /* 菜单按钮：去掉左侧两条图标线，只保留文字与椭圆背景 */
  .m-menu>summary:before{display:none !important;}
  .m-menu>summary{
    justify-content:center;border-radius:999px;
    min-width:74px;height:32px;padding:0 14px;
  }

  /* details 未展开时彻底隐藏下拉，避免遮住首屏 */
  .m-menu:not([open])>.m-nav{display:none !important;}
}

/* ===== 2026-11-19 菜单按钮改品牌红（不再使用深黑色底） ===== */
@media screen and (max-width:1024px){
  .m-menu>summary{background:#c00 !important;color:#fff !important;box-shadow:0 2px 6px rgba(204,0,0,.25);}
}

/* ===== 2026-11-19 底部条：左=写邮件，右=联系页面 ===== */
@media screen and (max-width:1024px){
  .m-bar a.m-mailto{color:#c00 !important;font-size:12px;letter-spacing:-.2px;min-width:0;overflow:hidden;text-overflow:ellipsis;}
  .m-bar a.m-mailto:before{background:#c00;opacity:1;}
  .m-bar a.m-page{color:#333 !important;min-width:0;}
  .m-bar a.m-page:before{background:#666;opacity:1;}
}

/* ===== 2026-11-19 手机端隐藏"返回顶部"黑色小方块（底部已有固定联系条） ===== */
@media screen and (max-width:1024px){
  .backToTop{display:none !important;}
}
