/* ============================================================
   HxYDP 响应式 / 手机版兼容层 (mobile.css)
   说明：本文件仅通过 max-width 媒体查询在窄屏下覆盖桌面样式，
   不影响 1100px 以上桌面端的原布局（桌面端 min-width 媒体查询亦不冲突）。
   所有覆盖均使用 !important 以保证优先级高于 index.css 的固定像素规则。
   ============================================================ */

/* 汉堡按钮与拨号条：桌面端默认隐藏，仅在 ≤768px 媒体查询中显示 */
.navToggle,
.navTel { display: none; }

/* ---------- 通用：容器与图片自适应（平板即开始） ---------- */
@media screen and (max-width: 1100px) {
    .container { width: auto !important; max-width: 100% !important; padding-left: 15px !important; padding-right: 15px !important; }
    img { max-width: 100%; height: auto; }
    .banner .banimgs a img { height: auto !important; }
    .insideban { background-size: cover !important; background-position: center top !important; }
}

/* ---------- 平板（769~1100）：多图网格转两列，避免溢出 ---------- */
@media screen and (max-width: 1100px) {
    .homeTwo ul li,
    .homeFourbom li,
    .proindexthreetop li,
    .pronine ul li,
    .casetwo ul li { float: left !important; width: 48% !important; margin-left: 0 !important; margin-bottom: 16px !important; }
    .homeTwo ul,
    .homeFourbom,
    .proindexthreetop,
    .pronine ul,
    .casetwo ul { margin-left: 0 !important; }
    .proindexthreetop li:nth-child(even),
    .pronine ul li:nth-child(even),
    .casetwo ul li:nth-child(even),
    .homeFourbom li:nth-child(even) { float: right !important; }
    .homeOne li { width: 48% !important; margin-right: 4% !important; }
    .homeOne li:nth-child(2n) { margin-right: 0 !important; }
}

/* ============================================================
   手机版（≤768px）：整套布局单列化 + 汉堡导航
   ============================================================ */
@media screen and (max-width: 768px) {

    /* 基础排版 */
    body { font-size: 14px; -webkit-text-size-adjust: 100%; }
    .container { padding-left: 12px !important; padding-right: 12px !important; }
    img { max-width: 100% !important; height: auto !important; }
    * { box-sizing: border-box; }
    a { -webkit-tap-highlight-color: rgba(0,0,0,0); }

    /* 通用：清掉所有 float 双栏/三栏，强制单列 */
    .homeOne,
    .homeTwo ul,
    .homeThree .container,
    .homeFourtop,
    .homeFourbom,
    .homeFive ul,
    .homeSix ul,
    .proindex,
    .proindexthreetop,
    .proonebox,
    .proonebom,
    .pronine ul,
    .proten,
    .insidenew,
    .newflbox,
    .caselist,
    .casetwo ul,
    .casefive ul,
    .contactone,
    .contacttwo ul,
    .contactthree,
    .protenfl ul,
    .relatNew ul { margin-left: 0 !important; }

    .homeOne li,
    .homeTwo ul li,
    .homeThreefl,
    .homeThreemid,
    .homeThreefr,
    .homeFourtopfl,
    .homeFourtopfr,
    .homeFourbom li,
    .homeFive ul li,
    .homeSix ul li,
    .proindexone,
    .proindexbox,
    .proindexthreetop li,
    .proonefl,
    .proonefr,
    .proonebom dt,
    .proonebom dd,
    .pronine ul li,
    .protenfl,
    .protenfr,
    .newfl,
    .newfr,
    .relatNew,
    .insidecontact,
    .caselist li,
    .caselistpic,
    .caselistbox,
    .casetwo ul li,
    .casefive ul li,
    .contactonefl,
    .contactonefr,
    .contacttwo li,
    .contactthreefl,
    .contactthreefr,
    .protenfl ul li,
    .homeOneicon02,
    .homeOneicon01 { float: none !important; width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }

    /* 列表块上下间距 */
    .homeOne li,
    .homeTwo ul li,
    .homeFourbom li,
    .proindexthreetop li,
    .pronine ul li,
    .casetwo ul li,
    .contacttwo li { margin-bottom: 14px !important; }

    /* 首页各区块标题 */
    .homeTit h1,
    .homeTit h3 { font-size: 20px !important; }
    .homeTit p { font-size: 13px !important; }

    /* 首页一（产品推荐卡片）：内部图文改为上下排列 */
    .homeOne li .homeOnepic { float: none !important; width: 100% !important; margin: 0 0 10px 0 !important; }
    .homeOne li .homeOnebox { padding: 0 12px 14px !important; }
    .homeOne li .homeOnebox p { font-size: 13px !important; line-height: 22px !important; }

    /* 首页二（数据）图片自适应，文字居中；手机无 hover，强制显示覆盖文字 */
    .homeTwo ul li .homeTwopic img { width: 100% !important; }
    .homeTwo ul li .homeTwobox { position: static !important; top: auto !important; height: auto !important; padding: 16px 10px !important; }

    /* 首页三（设备详解）三栏堆叠 */
    .homeThreefl,
    .homeThreemid,
    .homeThreefr { text-align: center; }
    .homeThreefltxt,
    .homeThreefrtxt { font-size: 13px !important; line-height: 22px !important; }

    /* 首页四（设备组合） */
    .homeFourtopfl ul li { float: none !important; width: 100% !important; text-align: center; margin-bottom: 12px !important; }
    .homeFourtopfronepic img,
    .homeFourbompic img { width: 100% !important; height: auto !important; }

    /* 首页五/六（案例/知识）列表 */
    .homeFive ul li .homeFivepic img,
    .homeSix ul li .homeSixtime { width: 100% !important; }
    .homeSix ul li .homeSixtime { margin-bottom: 6px !important; font-size: 13px !important; }

    /* 产品列表页：推荐位上下排 */
    .proindexone,
    .proindexbox { padding: 12px !important; }
    .proindexonepic img { width: 100% !important; }
    .proindexboxtit { font-size: 22px !important; }
    .proindexthreetop li .proindexthreepic img { width: 100% !important; height: auto !important; }

    /* 子栏目导航（prosubnav）换行自适应 */
    .prosubnav a { display: inline-block !important; margin: 4px 4px !important; padding: 6px 12px !important; font-size: 13px !important; }

    /* 产品详情页 */
    .proonenav,
    .proonebox,
    .proonebom,
    .protwo,
    .proeight,
    .pronine,
    .proten { padding-left: 0 !important; padding-right: 0 !important; }
    .proonefl,
    .proonefr { padding: 0 12px !important; }
    .proonefr img { width: 100% !important; height: auto !important; }
    .proonefl01,
    .proonefl02,
    .proonefl03,
    .proonefl04 { font-size: 13px !important; line-height: 22px !important; }
    .proonefl04 { text-align: center; }
    .protwo { display: flex !important; flex-wrap: wrap !important; }
    .protwo a { flex: 1 1 30% !important; text-align: center !important; padding: 10px 4px !important; font-size: 13px !important; border: 1px solid #eee; margin: 2px; }
    .proeightpic img,
    .pronine ul li .proninepic img { width: 100% !important; height: auto !important; }
    .proten { display: block !important; }
    .protenfl,
    .protenfr { padding: 0 12px !important; }
    .protenfl ul li .protenfltime { margin-bottom: 6px !important; font-size: 13px !important; }

    /* 新闻列表页 */
    .newlist li { padding: 12px 0 !important; }
    .newlisttime { margin-bottom: 6px !important; font-size: 13px !important; }
    .newlisttit { font-size: 15px !important; }
    .newlisttxt { font-size: 13px !important; line-height: 22px !important; }

    /* 新闻详情页：左文右栏堆叠 */
    .insidenew { display: block !important; }
    .newfl,
    .newfr { padding: 0 12px !important; }
    .newflone { padding: 15px 12px !important; }
    .newflboxtwo { font-size: 13px !important; }
    .newflboxtext { font-size: 14px !important; line-height: 24px !important; }
    .newflboxtext img { width: 100% !important; height: auto !important; }
    .newfr { margin-top: 16px !important; }
    .relatNew,
    .insidecontact { padding: 12px !important; }
    .relatNew ul li a { font-size: 13px !important; }

    /* 案例列表页：图文上下排，去掉固定高度 */
    .caselist li { height: auto !important; padding: 14px 12px !important; background-size: 100% 100% !important; }
    .caselistpic { float: none !important; width: 100% !important; margin: 0 0 12px 0 !important; }
    .caselistpic img { width: 100% !important; height: auto !important; }
    .caselistbox { padding: 0 4px !important; }
    .caselistone { font-size: 16px !important; }
    .caselisttwo { display: block !important; }
    .caselisttwofl,
    .caselisttwofr { width: 100% !important; }
    .caselisttwofr { margin-top: 8px !important; font-size: 13px !important; line-height: 22px !important; }

    /* 案例详情页 */
    .casebox { padding: 14px 12px !important; }
    .caseonepic img { width: 100% !important; height: auto !important; }
    .caseonebox h1 { font-size: 18px !important; }
    .casetwo ul li { text-align: center; }
    .casetwo ul li .casetwopic img { width: 100% !important; height: auto !important; }
    .casethreebox { font-size: 14px !important; line-height: 24px !important; }
    .casethreebox img { width: 100% !important; height: auto !important; }
    .casefive ul li { text-align: center; }
    .casefivepic img { width: 100% !important; height: auto !important; }

    /* 关于我们（单页 content 内图片/表格自适应） */
    .about_content img,
    .about_content table,
    #about_content img,
    .page_about img { max-width: 100% !important; height: auto !important; }
    .about_content table { display: block !important; overflow-x: auto !important; }

    /* 联系我们页 */
    .contactone { padding: 14px 12px !important; }
    .contactonefl { padding: 0 0 14px 0 !important; text-align: center; }
    .contactonefl img { max-width: 100% !important; }
    .contactonefr { padding: 0 4px !important; text-align: center; }
    .contacttwo ul { margin-left: 0 !important; padding: 20px 0 30px !important; }
    .contacttwo ul li { margin-left: 0 !important; width: 33.33% !important; height: auto !important; background-position: center top !important; padding-top: 70px !important; font-size: 13px !important; }
    .contactthree { padding: 14px 12px !important; }
    .contactthreefl,
    .contactthreefr { padding: 0 !important; }
    .contactthreefrbox iframe { height: 240px !important; }
    .insidecontactxt { font-size: 13px !important; }
    .insideinput01,
    .insideinput02 { width: 100% !important; }

    /* 内页 banner 标题 */
    .insidebantit { font-size: 20px !important; }
    .insidebanbom { font-size: 13px !important; line-height: 22px !important; }

    /* ---------- 表单（留言）在手机端满宽 ---------- */
    .insideinput,
    .insidetextarea,
    .insidebtn { padding: 6px 0 !important; }
    .insideinput input,
    .insidetextarea textarea,
    .insideinput03 { width: 100% !important; max-width: 100% !important; }

    /* ---------- 分页 / 翻页 ---------- */
    .pagination { padding: 16px 0 !important; }
    .pagination > li { margin: 0 2px 4px !important; }
    .pagination > li > a,
    .pagination > li > span { padding: 6px 9px !important; font-size: 13px !important; }
    .fenye { position: static !important; left: auto !important; right: auto !important; height: auto !important; margin-top: 10px !important; }
    .fenye a { width: 50% !important; padding-left: 10px !important; padding-right: 10px !important; font-size: 12px !important; line-height: 18px !important; height: auto !important; }
    .fenye a i { display: none !important; }

    /* ---------- 右侧浮动客服：缩小并贴底，避免遮挡 ---------- */
    .floatbox { transform: scale(0.72) !important; transform-origin: bottom right !important; right: -6px !important; }
    .floatbox .serv { display: none !important; }

    /* ---------- 页脚 ---------- */
    .footer { font-size: 12px !important; line-height: 20px !important; padding: 18px 10px !important; }
    .footer .footertop { font-size: 12px !important; line-height: 20px !important; padding: 0 6px !important; }
    .footer .link { font-size: 12px !important; }

    /* ============================================================
       汉堡导航
       ============================================================ */
    .header { padding: 8px 0 !important; }
    .header .container { position: relative !important; min-height: 46px; }
    .header .logo { float: none !important; width: auto !important; max-width: 60% !important; padding: 0 !important; }
    .header .logo img { max-height: 42px !important; width: auto !important; }

    /* 隐藏桌面电话条，改用拨号条 */
    .header .headerPhoto { display: none !important; }

    /* 汉堡按钮：桌面隐藏，手机显示 */
    .navToggle {
        display: block !important;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 42px;
        height: 36px;
        padding: 8px 6px;
        cursor: pointer;
        z-index: 60;
        box-sizing: border-box;
        background: rgba(255,255,255,0.08);
        border-radius: 4px;
    }
    .navToggle span {
        display: block;
        height: 3px;
        background: #fff;
        margin: 4px 0;
        border-radius: 2px;
        transition: .3s;
    }
    .navToggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .navToggle.active span:nth-child(2) { opacity: 0; }
    .navToggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* 导航抽屉：默认收起，展开后绝对定位覆盖于 header 下方 */
    .header ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100% !important;
        float: none !important;
        background: #233142;
        padding: 0 !important;
        z-index: 50;
        max-height: 76vh;
        overflow-y: auto;
        box-shadow: 0 8px 18px rgba(0,0,0,0.35);
    }
    .header ul.open { display: block !important; }
    .header ul li {
        float: none !important;
        width: 100% !important;
        border-top: 1px solid #34405a;
    }
    .header ul li a {
        line-height: 46px !important;
        padding: 0 16px !important;
        font-size: 15px !important;
    }
    /* 去掉桌面端的导航装饰背景，避免手机端错位 */
    .header ul li:after,
    .header ul li.active:after,
    .header ul li.active:before,
    .header ul li:hover:before,
    .header ul li:hover:after { display: none !important; }

    /* 手机端拨号条：始终可见，点击直接拨打 */
    .navTel {
        display: block !important;
        position: relative;
        z-index: 55;
        float: none !important;
        clear: both;
        background: #3e47ca;
        color: #fff !important;
        text-align: center;
        line-height: 40px;
        font-size: 16px;
        font-weight: bold;
        text-decoration: none !important;
    }
    .navTel:active { background: #2f379c; }
}

/* ---------- 超小屏（≤480）：进一步收紧 ---------- */
@media screen and (max-width: 480px) {
    .homeTit h1,
    .homeTit h3 { font-size: 18px !important; }
    .contacttwo ul li { width: 50% !important; }
    .protwo a { flex: 1 1 46% !important; }
    .header .logo { max-width: 55% !important; }
}
