/* ============================================================
   首页响应式样式（只作用于 body.page-home）
   ------------------------------------------------------------
   index.html 只有一套标记（PC 结构），靠本文件按宽度切换外观：
     >=1440px  → 完全沿用原 PC 样式，本文件不参与
     992~1439  → PC 样式去掉固定宽度，流式收缩
     <=991px   → 切成手机版外观：固定头 + 抽屉导航 / 横幅 + 焦点圆点 /
                 单列卡片 / 解决方案左右箭头翻页
   手机端用到的卡片外观尽量复用 /css/css.css（与内页手机版同源）。
   ============================================================ */

/* 电脑端：手机端专用控件不显示 */
body.page-home .nav-toggle,
body.page-inner .nav-toggle,
body.page-home .nav-mask,
body.page-inner .nav-mask,
body.page-home .nav-xjb,
body.page-inner .nav-xjb,
body.page-home .m_solution_nav,
body.page-inner .m_solution_nav {
    display: none;
}

/* 横幅：鼠标拖拽/手指滑动时不要触发浏览器原生的图片拖拽，也不要选中文字 */
body.page-home .ban2 .fullSlide,
body.page-home .ban2 .fullSlide .bd li,
body.page-home .ban2 .fullSlide .bd li a,
body.page-home .ban2 .fullSlide .bd img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

/* ============================================================
   992px ~ 1439px：PC 版去固定宽度
   ============================================================ */
@media screen and (min-width: 992px) and (max-width: 1439px) {
    body.page-home .main,
    body.page-home .m_products,
    body.page-home .m_solution,
    body.page-home .m_case,
    body.page-home .m_news,
    body.page-home .header,
    body.page-home .footer,
    body.page-home .foot_cro {
        width: auto;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body.page-home .head_r,
    body.page-home .heae_r_nav,
    body.page-home .heae_r_con,
    body.page-home .menu_top,
    body.page-home .menu_top ul,
    body.page-home .menu_top ul li,
    body.page-home .logo,
    body.page-home .logo img {
        width: auto;
        max-width: 100%;
    }

    body.page-home .heae_r_tel {
        display: none;
    }

    body.page-home .menu_top ul {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    body.page-home .menu_top ul li a {
        padding: 0 10px;
        font-size: 14px;
    }

    body.page-home .header {
        height: auto;
        overflow: hidden;
    }
}

/* ============================================================
   手机端 <= 991px
   ============================================================ */
@media screen and (max-width: 991px) {

    /* ---------------- 通用容器 ---------------- */
    /* 769~991px 段 global.css 的 PC 规则仍生效（固定 1200/1280px），必须显式清零 */
    body.page-home .main,
    body.page-home .mbox1,
    body.page-home .mbox2,
    body.page-home .mbox3,
    body.page-home .mbox4,
    body.page-home .m_products,
    body.page-home .m_solution,
    body.page-home .m_case,
    body.page-home .m_news,
    body.page-home .hbox,
    body.page-home .header,
    body.page-home .head_r,
    body.page-home .heae_r_con,
    body.page-home .heae_r_nav,
    body.page-home .menu_top,
    body.page-home .menu_top ul,
    body.page-home .menu_top ul li,
    body.page-home .logo,
    body.page-home .logo img {
        width: auto;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body.page-home .main {
        padding: 0;
    }

    body.page-home .mbox1,
    body.page-home .mbox4 {
        background: #ffffff;
    }

    body.page-home .mbox1,
    body.page-home .mbox2,
    body.page-home .mbox3,
    body.page-home .mbox4 {
        padding: 40px 0;
        min-height: 0;
        background-size: auto 100%;
    }

    /* 产品 / 方案 / 案例 / 新闻 四个区块的背景与留白 */
    body.page-home .mbox-products {
        background: #eaeaeb;
    }

    body.page-home .mbox-case {
        background: #ffffff;
    }

    body.page-home .mbox2 {
        background: url(../images/solutionbg.jpg) no-repeat center top;
        background-size: auto 100%;
    }

    body.page-home .mbox3 {
        background: url(../images/aboutbg.jpg) no-repeat center top;
        background-size: auto 100%;
    }

    /* ---------------- 顶部：固定头 + 抽屉导航（对齐手机版 .sp_header/.sjj_nav） ---------------- */
    body.page-home .hbox,
    body.page-inner .hbox {
        height: 0;
    }

    body.page-home .header,
    body.page-inner .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        overflow: hidden;
        background: #ffffff;
        /* 要高于遮罩与抽屉，汉堡按钮才点得到（header 会形成层叠上下文，子元素 z-index 受它限制） */
        z-index: 100000;
        padding: 0;
    }

    body.page-home .logo,
    body.page-inner .logo {
        float: left;
        width: auto;
        padding: 10px;
        height: 50px;
        line-height: 0;
    }

    body.page-home .logo img,
    body.page-inner .logo img {
        max-height: 40px;
        width: auto;
    }

    body.page-home .head_r,
    body.page-inner .head_r {
        float: none;
        width: auto;
    }

    body.page-home .heae_r_con,
    body.page-inner .heae_r_con,
    body.page-home .heae_r_nav,
    body.page-inner .heae_r_nav {
        float: none;
        height: auto;
        clear: none;
    }

    body.page-home .heae_r_tel,
    body.page-inner .heae_r_tel {
        display: none;
    }

    body.page-home .menu_top,
    body.page-inner .menu_top {
        display: block;
        position: static;
        width: auto;
        height: auto;
        background: none;
        overflow: visible;
    }

    /* 搜索图标（global.css 里 .searchBox 默认 display:none，手机端要显示出来） */
    body.page-home .searchBox,
    body.page-inner .searchBox {
        display: block !important;
        float: right;
        margin: 0 10px 0 0;
        height: 58px;
        line-height: 58px;
        width: auto;
        position: static;
    }

    body.page-home .searchBox .btn-search,
    body.page-inner .searchBox .btn-search {
        display: block;
        width: 24px;
        text-align: center;
        color: #666666;
    }

    body.page-home .searchBox .btn-search i,
    body.page-inner .searchBox .btn-search i {
        font-size: 20px;
        line-height: 58px;
    }

    /* 汉堡按钮：和手机版 .sp_nav 一致的 30x2 蓝条 */
    body.page-home .nav-toggle,
    body.page-inner .nav-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 0;
        width: 50px;
        height: 30px;
        margin: 0;
        padding: 0;
        cursor: pointer;
        /* 要盖在遮罩(99998)/抽屉(99999)之上，否则打开后按不到关闭 */
        z-index: 100000;
        background: none;
    }

    body.page-home .nav-toggle span,
    body.page-inner .nav-toggle span {
        display: block;
        position: absolute;
        left: 10px;
        width: 30px;
        height: 2px;
        margin: 0;
        background: #158fcf;
        transition: all ease 0.35s;
    }

    body.page-home .nav-toggle span:nth-child(1),
    body.page-inner .nav-toggle span:nth-child(1) {
        top: 0;
    }

    body.page-home .nav-toggle span:nth-child(2),
    body.page-inner .nav-toggle span:nth-child(2) {
        top: 10px;
    }

    body.page-home .nav-toggle span:nth-child(3),
    body.page-inner .nav-toggle span:nth-child(3) {
        top: 20px;
    }

    body.page-home .nav-toggle.open span:nth-child(1),
    body.page-inner .nav-toggle.open span:nth-child(1) {
        top: 10px;
        transform: rotate(45deg);
    }

    body.page-home .nav-toggle.open span:nth-child(2),
    body.page-inner .nav-toggle.open span:nth-child(2) {
        width: 0;
    }

    body.page-home .nav-toggle.open span:nth-child(3),
    body.page-inner .nav-toggle.open span:nth-child(3) {
        top: 10px;
        transform: rotate(-45deg);
    }

    /* 抽屉：和手机版 .sjj_nav 一致 */
    body.page-home .menu_top ul.nav-menu,
    body.page-inner .menu_top ul.nav-menu,
    body.page-home #navMenu,
    body.page-inner #navMenu {
        display: block;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: auto;
        height: calc(100% - 104px);
        margin: 0;
        padding: 0;
        background: #ffffff;
        font-size: 14px;
        line-height: 40px;
        overflow: auto;
        overflow-x: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(calc(-100% - 60px));
        transition: transform ease 0.35s, opacity ease 0.35s, visibility 0s linear 0.35s;
        z-index: 99999;
    }

    body.page-home .menu_top #navMenu.open,
    body.page-inner .menu_top #navMenu.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition: transform ease 0.35s, opacity ease 0.35s;
    }

    body.page-home .menu_top #navMenu > li,
    body.page-inner .menu_top #navMenu > li {
        float: none;
        width: auto;
        margin: 0 20px;
        border-top: 1px solid #cccccc;
        position: relative;
        line-height: 40px;
        background: none;
    }

    body.page-home .menu_top #navMenu > li:last-child,
    body.page-inner .menu_top #navMenu > li:last-child {
        border-bottom: 1px solid #cccccc;
    }

    body.page-home .menu_top #navMenu > li > a,
    body.page-inner .menu_top #navMenu > li > a {
        display: block;
        width: 80%;
        padding: 0;
        color: #666666;
        font-size: 14px;
        line-height: 40px;
        text-align: left;
    }

    /* 一级栏目右侧的 + / − */
    body.page-home .nav-xjb,
    body.page-inner .nav-xjb {
        display: block;
        position: absolute;
        top: 5px;
        right: 0;
        width: 24px;
        height: 30px;
        margin: 0;
        border-left: 1px solid #cccccc;
    }

    body.page-home .nav-xjb::before,
    body.page-inner .nav-xjb::before,
    body.page-home .nav-xjb::after,
    body.page-inner .nav-xjb::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        background: #555555;
        transition: all ease 0.2s;
    }

    body.page-home .nav-xjb::after,
    body.page-inner .nav-xjb::after {
        width: 14px;
        height: 2px;
        margin: -1px 0 0 -7px;
    }

    body.page-home .nav-xjb::before,
    body.page-inner .nav-xjb::before {
        width: 2px;
        height: 14px;
        margin: -7px 0 0 -1px;
    }

    body.page-home .menu_top #navMenu > li.open .nav-xjb::before,
    body.page-inner .menu_top #navMenu > li.open .nav-xjb::before {
        opacity: 0;
        transform: scaleY(0);
    }

    body.page-home .menu_top #navMenu > li.open .nav-xjb::after,
    body.page-inner .menu_top #navMenu > li.open .nav-xjb::after {
        background: #ec6a28;
    }

    body.page-home .menu_top #navMenu > li > ul,
    body.page-inner .menu_top #navMenu > li > ul {
        position: static;
        display: none;
        width: auto !important;
        margin: 0;
        padding: 0;
        background: none;
        box-shadow: none;
    }

    body.page-home .menu_top #navMenu > li.open > ul,
    body.page-inner .menu_top #navMenu > li.open > ul {
        display: block;
    }

    body.page-home .menu_top #navMenu > li > ul > li,
    body.page-inner .menu_top #navMenu > li > ul > li {
        width: auto !important;
        margin: 0;
        padding: 0;
        border: 0;
        line-height: 40px;
    }

    body.page-home .menu_top #navMenu > li > ul > li > a,
    body.page-inner .menu_top #navMenu > li > ul > li > a {
        display: block;
        width: auto;
        padding: 0;
        color: #666666;
        font-size: 14px;
        line-height: 40px;
        text-align: left;
    }

    body.page-home .nav-mask,
    body.page-inner .nav-mask {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        width: auto;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: all ease 0.3s;
        z-index: 99998;
    }

    body.page-home .nav-mask.open,
    body.page-inner .nav-mask.open {
        opacity: 1;
        visibility: visible;
    }

    /* ---------------- 横幅：42vw 高 + 焦点圆点 ---------------- */
    body.page-home .ban2 {
        margin-top: 60px;
        height: 42vw;
        min-height: 150px;
        overflow: hidden;
        position: relative;
    }

    body.page-home .ban2 .fullSlide {
        height: 100%;
        min-height: 0;
    }

    body.page-home .ban2 .fullSlide .bd,
    body.page-home .ban2 .fullSlide .bd ul {
        height: 100%;
    }

    body.page-home .ban2 .fullSlide .bd ul {
        position: relative;
    }

    body.page-home .ban2 .fullSlide .bd li {
        height: 100% !important;
        overflow: hidden;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    body.page-home .ban2 .fullSlide .bd li a {
        display: block;
        height: 100%;
    }

    body.page-home .ban2 .prev,
    body.page-home .ban2 .next {
        display: none !important;
    }

    body.page-home .ban2 .fullSlide .hd {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 10px;
        height: 14px;
        line-height: 14px;
        text-align: center;
        z-index: 5;
    }

    body.page-home .ban2 .fullSlide .hd ul {
        text-align: center;
    }

    body.page-home .ban2 .fullSlide .hd ul li {
        display: inline-block;
        width: 10px;
        height: 10px;
        margin: 0 3px;
        border-radius: 5px;
        overflow: hidden;
        text-indent: -9999px;
        background: #ffffff;
        cursor: pointer;
    }

    body.page-home .ban2 .fullSlide .hd ul li.on {
        background: #158fcf;
    }

    /* ---------------- 板块标题：左标题 + 右 READ MORE（同一行） ---------------- */
    body.page-home .main_bt,
    body.page-home .main_bt2 {
        width: 100%;
        margin-bottom: 10px;
        padding: 0 10px;
        text-align: left;
    }

    body.page-home .main_bt2 {
        margin-bottom: 20px;
        padding: 0;
        text-align: center;
    }

    /* 左标题 55% / 右 READ MORE 40%。
       必须给百分比宽度：.left 原来是 width:auto，被长的栏目描述撑满整行，
       READ MORE 就会被挤到下一行（客户案例就是这样）。 */
    body.page-home .main_bt .left {
        float: left;
        width: 55%;
        box-sizing: border-box;
        text-align: left;
    }

    body.page-home .main_bt .right {
        float: right;
        width: 40%;
        box-sizing: border-box;
        text-align: right;
    }

    /* READ MORE 按钮贴右边显示，别被 .right 的富余宽度推到中间 */
    body.page-home .main_bt .right a.nm2 {
        margin-left: auto;
        margin-right: 0;
    }

    body.page-home .main_bt h2,
    body.page-home .main_bt2 h2 {
        font-size: 24px;
        line-height: 21px;
        padding-bottom: 10px;
    }

    body.page-home .main_bt h3,
    body.page-home .main_bt2 h3 {
        font-size: 16px;
        line-height: 21px;
        padding-bottom: 10px;
    }

    body.page-home .main_bt p,
    body.page-home .main_bt2 p {
        padding: 5px 0;
        font-size: 14px;
        line-height: 20px;
    }

    body.page-home .main_bt2 p {
        line-height: 24px;
    }

    /* ---------------- 新品推荐（对齐手机版 .ny_products） ---------------- */
    body.page-home .m_products {
        padding: 0 10px;
        margin: 0;
        float: none;
        overflow: visible;
    }

    body.page-home .m_products li,
    body.page-home .m_products li:nth-child(4),
    body.page-home .m_products li:nth-child(8) {
        width: 100%;
        float: none;
        margin: 0 0 15px 0;
        background: #ffffff;
        height: auto;
    }

    body.page-home .m_products_p,
    body.page-home .m_products_p.tv_hot6 {
        float: none;
        width: 100%;
        height: auto;
        padding: 10px;
        text-align: center;
    }

    body.page-home .m_products_p .avatar6,
    body.page-home .tv_hot6 .avatar6 {
        display: block;
        width: 100%;
        height: auto;
        overflow: hidden;
    }

    body.page-home .m_products_p img,
    body.page-home .avatar6 img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
    }

    body.page-home .m_products_bt {
        padding: 12px 10px;
        font-size: 16px;
        text-align: center;
    }

    body.page-home .m_products_bt a {
        font-size: 18px;
        line-height: 22px;
        font-weight: bold;
        color: #333333;
    }

    body.page-home .m_products_js {
        padding: 0 20px 30px 20px;
        font-size: 15px;
        line-height: 22px;
        color: #666666;
    }

    /* ---------------- 解决方案：一屏一张 + 左右箭头 ---------------- */
    body.page-home .m_solution {
        position: relative;
        padding: 0 10px;
        margin: 0;
        float: none;
        overflow: visible;
    }

    body.page-home .m_solution > ul {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    body.page-home .m_solution > ul::-webkit-scrollbar {
        display: none;
    }

    body.page-home .m_solution li,
    body.page-home .m_solution li:nth-child(5) {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        float: none;
        margin: 0;
        padding: 0;
        background: #eff1f4;
        scroll-snap-align: center;
    }

    body.page-home .m_solution_p,
    body.page-home .m_solution_p.tv_hot4 {
        float: none;
        width: 100%;
        height: auto;
        position: relative;
        overflow: hidden;
    }

    body.page-home .m_solution_p .avatar4,
    body.page-home .tv_hot4 .avatar4 {
        display: block;
        width: 100%;
        height: auto;
        overflow: hidden;
    }

    body.page-home .m_solution_p img,
    body.page-home .avatar4 img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
    }

    body.page-home .m_solution_t {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 120px;
        background-color: rgba(21, 143, 207, 0.9);
        overflow: hidden;
    }

    body.page-home .m_solution_nav {
        display: block;
        position: absolute;
        top: 42%;
        left: 10px;
        right: 10px;
        height: 0;
        z-index: 20;
    }

    body.page-home .m_solution_nav .sol-prev,
    body.page-home .m_solution_nav .sol-next {
        position: absolute;
        top: -20px;
        width: 40px;
        height: 40px;
        overflow: hidden;
        cursor: pointer;
        background-repeat: no-repeat;
        background-position: center center;
    }

    body.page-home .m_solution_nav .sol-prev {
        left: 0;
        background-image: url(../images/jt1.png);
    }

    body.page-home .m_solution_nav .sol-next {
        right: 0;
        background-image: url(../images/jt2.png);
    }

    body.page-home .m_solution_nav .sol-prev i,
    body.page-home .m_solution_nav .sol-next i {
        display: none;
    }

    /* ---------------- 客户案例（对齐手机版 .m_case） ---------------- */
    body.page-home .m_case {
        padding: 0 10px;
        margin: 0;
        float: none;
    }

    body.page-home .m_case li,
    body.page-home .m_case li:nth-child(3) {
        width: 100%;
        height: auto;
        float: none;
        margin: 0 0 15px 0;
        background: #eff1f4;
    }

    body.page-home .m_case_p,
    body.page-home .m_case_p.tv_hot4 {
        float: none;
        width: 100%;
        height: auto;
        position: relative;
        padding: 0;
    }

    body.page-home .m_case_p img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
    }

    body.page-home .m_case_t {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 120px;
        background-color: rgba(0, 0, 0, 0.8);
    }

    body.page-home .m_case_l {
        width: 80%;
        float: left;
    }

    body.page-home .m_case_r {
        width: 20%;
        float: right;
        height: 120px;
        line-height: 120px;
        text-align: center;
        background: #158fcf;
    }

    body.page-home .m_case_r a,
    body.page-home .m_case_r a:hover,
    body.page-home .m_case_r i {
        height: 120px;
        line-height: 120px;
    }

    /* ---------------- 关于我们（对齐手机版 .m_about） ---------------- */
    body.page-home .m_about {
        padding: 0 10px;
    }

    body.page-home .m_about_l {
        margin-bottom: 30px;
    }

    body.page-home .m_about_l h2 {
        font-size: 30px;
        line-height: 40px;
        padding-bottom: 10px;
    }

    body.page-home .m_about_l h3 {
        font-size: 20px;
        line-height: 20px;
        padding-bottom: 10px;
    }

    body.page-home .m_about_l_js {
        font-size: 15px;
        line-height: 34px;
    }

    body.page-home .m_about_l_m {
        padding: 10px 0 0 0;
        margin-bottom: 40px;
        height: 50px;
    }

    body.page-home .m_about_l_m a.nm {
        float: left;
    }

    body.page-home .m_about_r {
        clear: both;
        width: 100%;
        margin-top: 20px;
    }

    body.page-home .m_about_r img {
        display: block;
        width: 100%;
        height: auto;
    }

    /* ---------------- 新闻资讯（对齐手机版 .m_news） ---------------- */
    body.page-home .m_news {
        padding: 10px;
        margin: 0;
        float: none;
    }

    body.page-home .m_news li {
        display: block;
        flex-wrap: nowrap;
        width: 100%;
        min-height: 0;
        height: auto;
        float: none;
        margin: 0 0 20px 0;
        background: #eff1f4;
    }

    body.page-home .m_news_p,
    body.page-home .m_news_p.tv_hot3 {
        float: none;
        width: 100%;
        height: auto;
        padding: 0;
    }

    body.page-home .m_news_p .avatar3,
    body.page-home .tv_hot3 .avatar3 {
        display: block;
        width: 100%;
        height: auto;
        overflow: hidden;
    }

    body.page-home .m_news_p img,
    body.page-home .avatar3 img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 260px;
        object-fit: cover;
    }

    /* ---------------- 页脚：先"联系我们"，再微信/抖音 ---------------- */
    body.page-home .pc-nav-col,
    body.page-inner .pc-nav-col {
        display: none;
    }

    body.page-home .footer,
    body.page-inner .footer {
        display: flex;
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
        padding: 0 10px;
    }

    body.page-home .footer .foot_com,
    body.page-inner .footer .foot_com {
        order: 1;
        padding: 0 10px;
    }

    body.page-home .footer .foot_nwm,
    body.page-inner .footer .foot_nwm {
        order: 2;
        padding-top: 20px;
        overflow: hidden;
    }

    body.page-home .footer .clear,
    body.page-inner .footer .clear {
        display: none;
    }

    body.page-home .footer .foot_com li,
    body.page-inner .footer .foot_com li {
        overflow: hidden;
        padding: 0;
    }

    body.page-home .footer .foot_com_i,
    body.page-inner .footer .foot_com_i {
        width: 15%;
        text-align: center;
        float: left;
    }

    body.page-home .footer .foot_com_r,
    body.page-inner .footer .foot_com_r {
        width: 85%;
        float: left;
    }

    body.page-home .footer .foot_bt,
    body.page-inner .footer .foot_bt {
        margin-bottom: 0;
        font-size: 16px;
        height: 38px;
        color: #ffffff;
        font-weight: bold;
    }

    body.page-home .footer .foot_line,
    body.page-inner .footer .foot_line {
        height: 2px;
        width: 50px;
        background: #ffffff;
    }

    body.page-home .foot_cro,
    body.page-inner .foot_cro {
        width: 100%;
        box-sizing: border-box;
        background: #000000;
        text-align: center;
        padding: 20px;
        color: #ffffff;
        font-size: 13px;
    }
}

/* ============================================================
   内页专用：模板合并成"单套 PC 标记"后，用这里还原手机版外观
   （共用头/尾的规则见上面 body.page-inner 那部分）
   ============================================================ */
@media screen and (max-width: 991px) {

    /* PC 模板在 body 上写了 margin-top:-21px 的取巧值，手机端归零 */
    body.page-inner {
        margin-top: 0 !important;
    }

    .page-inner .wrap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: visible;
    }

    /* comm/foot.html 里 .f_box 带行内 style="margin-top:-21px"（PC 用来抵消 body 的 -21px）。
       手机端 body 的 -21px 已经归零，这里必须把 footer 这 21px 也归零，
       否则页脚会往上压 21px 盖住上面的分页。行内样式要用 !important 才能盖过。 */
    body.page-home .f_box,
    body.page-inner .f_box {
        margin-top: 0 !important;
    }

    /* 容器：PC 用 bootstrap 的 .container（>=768px 会变固定宽度） */
    .page-inner .container,
    .page-inner .page-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 13px;
        padding-right: 13px;
        box-sizing: border-box;
    }

    /* 栏目横幅：手机版是 80px 高，PC 是 300px */
    .page-inner .nyban {
        margin-top: 60px;
        height: 80px;
        min-height: 80px;
        padding: 0;
        background-size: auto 80px !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    /* 子栏目导航：手机版是 49% 宽的两列小方块（对齐 css.css 的 .nylmdh2） */
    .page-inner .level {
        background: #ffffff;
        line-height: normal;
        padding: 12px 8px 8px 8px;
        overflow: hidden;
    }

    .page-inner .level .container {
        padding: 0;
    }

    .page-inner .level ul.level_ul {
        display: block;
        margin: 0;
        padding: 0;
        list-style: none;
        overflow: hidden;
    }

    .page-inner .level ul.level_ul li {
        display: block;
        float: left;
        width: 49%;
        height: 36px;
        line-height: 36px;
        text-align: center;
        background: #f5f5f5;
        margin: 0 0.5% 0.5% 0.5%;
    }

    .page-inner .level ul.level_ul li a,
    .page-inner .level ul.level_ul li a span {
        display: block;
        position: static;
        padding: 0;
        font-size: 14px;
        line-height: 36px;
        color: #666666;
    }

    /* 去掉 PC 那层滑动出来的蓝色底 */
    .page-inner .level ul.level_ul li a::after {
        display: none;
    }

    .page-inner .level ul.level_ul li.active,
    .page-inner .level ul.level_ul li:hover {
        background: #158fcf;
    }

    .page-inner .level ul.level_ul li.active a,
    .page-inner .level ul.level_ul li.active a span,
    .page-inner .level ul.level_ul li:hover a,
    .page-inner .level ul.level_ul li:hover a span {
        color: #ffffff;
    }

    /* 内容区 */
    .page-inner .nycon3,
    .page-inner .nycon4,
    .page-inner .main,
    .page-inner .pages {
        min-height: 0;
    }

    .page-inner .nycon3 {
        padding-top: 10px;
    }

    .page-inner img {
        max-width: 100%;
        height: auto;
    }

    /* 有些详情页把图片塞在 <b> 里，<b> 是行内元素会被图片撑开，
       进而把整个文档撑宽（固定定位的头部也会跟着变宽）。这里把行内包装改成块级，
       并给内容容器兜一层横向滚动，保证手机上永远不出现整页横向滚动。 */
    .page-inner .products_show_l b,
    .page-inner .products_show_p b,
    .page-inner .products_show_con b,
    .page-inner .ny_newsshow_c b,
    .page-inner .ny_about_con b,
    .page-inner .ny_contact_con b {
        display: block;
        max-width: 100%;
    }

    .page-inner .products_show_l,
    .page-inner .products_show_p,
    .page-inner .products_show_con,
    .page-inner .products_show_js,
    .page-inner .ny_newsshow_c,
    .page-inner .ny_about_con,
    .page-inner .ny_contact_con,
    .page-inner .nycon3,
    .page-inner .nycon4,
    .page-inner .page-wrapper {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 长文里的宽表格：让它自己横向滚动，别把整页撑宽（撑宽后固定定位的头部也会跟着变宽） */
    .page-inner table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .page-inner .table-wrap,
    .page-inner .table-responsive,
    .page-inner .pain-stack,
    .page-inner .solution-stack {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 面包屑：手机版本来就隐藏（PC 靠 d-none d-md-block），这里连外壳一起收掉 */
    .page-inner .position,
    .page-inner .here {
        display: none;
    }

    /* 留言表单（comm/ly.html 的 PC 结构对到手机版的 .m_ly） */
    .page-inner .ny_main3_r_bt {
        border-bottom: 1px solid #dddddd;
        padding-bottom: 15px;
        font-size: 20px;
        color: #333333;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .page-inner .ny_main3_r_con {
        padding: 0;
    }

    .page-inner .input_bk2,
    .page-inner .textarea-text2 {
        width: 100%;
        box-sizing: border-box;
        border: 1px solid #dcdcdc;
        padding: 8px 10px;
        font-size: 14px;
    }

    /* 关于我们（about.html / about2.html）与联系我们（contact.html）：
       PC 模板在正文外面套了一层 .mbox，而 css.css 里 .mbox 是 #eaeaeb 底色；
       旧的手机版没有这层，所以手机端去掉底色 */
    .page-about .mbox,
    .page-about2 .mbox,
    .page-contact .mbox {
        background: none;
    }

    /* 证书放大插件（spotlight.bundle.js）的容器是 #spotlight，层级只有 99999，
       而手机端固定头部是 100000，会把放大后顶部那排按钮（含关闭按钮）盖住。
       这里把放大层提到头部之上。 */
    body.page-inner #spotlight,
    body.page-home #spotlight {
        z-index: 200000 !important;
    }

    /* ---------------- 列表页 / 详情页 / 单页 的容器 ---------------- */
    .page-inner .nybox1,
    .page-inner .ny_box2,
    .page-inner .ny_main,
    .page-inner .ny_main3,
    .page-inner .ny_main4,
    .page-inner .ny_about,
    .page-inner .ny_contact,
    .page-inner .ny_main_con {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        padding-left: 13px;
        padding-right: 13px;
        min-height: 0;
    }

    /* 这两个只是外壳，给里层的 .level（栏目条）留出通栏，别让它俩也被缩进 */
    .page-inner .nybox1,
    .page-inner .ny_box2 {
        padding-left: 0;
        padding-right: 0;
    }

    .page-inner .nybox1 > .container,
    .page-inner .ny_box2 > .container {
        padding-left: 13px;
        padding-right: 13px;
        box-sizing: border-box;
    }

    .page-inner .nycon3,
    .page-inner .nycon4 {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        padding: 10px 13px;
        box-sizing: border-box;
    }

    .page-inner .main1280 {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* ---------------- 详情页正文（新闻/案例/方案/技术资料） ---------------- */
    .page-inner .ny_newsshow_bt {
        padding: 10px 0 5px 0;
        text-align: center;
        
    }

    .page-inner .ny_newsshow_bt h1 {
        font-size: 20px;
        line-height: 30px;
        color: #333;
    }

    .page-inner .ny_newsshow_h {
        font-size: 13px;
        line-height: 24px;
        padding-bottom: 5px;
         text-align: center;
    }

    .page-inner .ny_newsshow_c {
        font-size: 15px;
        line-height: 26px;
        padding-top: 10px;
    }

    .page-inner .ny_newsshow_c img {
        max-width: 100%;
        height: auto;
    }

    .page-inner .ny_newsshow_p {
        font-size: 14px;
        padding: 12px;
        margin: 10px 0;
    }

    /* 上一篇 / 下一篇 */
    .page-inner .nycon_next {
        padding: 15px;
        margin-top: 20px;
        font-size: 14px;
        line-height: 24px;
    }

    /* ---------------- 列表页：PC 的横排行 → 手机版整行卡片 ---------------- */
    .page-inner .list_news {
        padding: 0;
    }

    .page-inner .list_news ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .page-inner .list_news ul li {
        width: 100%;
        margin: 0 0 20px 0;
        padding: 0;
        border: 0;
        background: none;
        overflow: hidden;
    }

    .page-inner .list_news ul li .newspic {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .page-inner .list_news ul li .newspic img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 260px;
        object-fit: cover;
    }

    .page-inner .list_news ul li .right {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .page-inner .list_news ul li .right .name {
        display: block;
        padding: 10px 0 0 0;
        font-size: 18px;
        line-height: 26px;
        font-weight: bold;
        color: #333333;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        -webkit-line-clamp: unset;
    }

    .page-inner .list_news ul li .right .data {
        padding: 4px 0 8px 0;
        font-size: 14px;
        line-height: 24px;
        color: #999999;
    }

    .page-inner .list_news ul li .right .text {
        display: block;
        font-size: 14px;
        line-height: 24px;
        color: #666666;
        overflow: visible;
        -webkit-line-clamp: unset;
    }

    /* 最后那个 div 就是 READ MORE 的容器（模板里是行内 padding-top:20px） */
    .page-inner .list_news ul li .right > div:last-child {
        padding-top: 10px !important;
    }

    .page-inner .list_news ul li .right > div:last-child a {
        font-size: 16px !important;
        color: #444444;
    }

    /* ---------------- 产品 / 证书 列表（PC 用的就是手机版类名） ---------------- */
    .page-inner .ny_products {
        /* PC 模板把左右留白写在 .container 的行内 style 上，这里补回列表自身的留白 */
        padding: 0 13px;
        box-sizing: border-box;
    }

    .page-inner .ny_products li {
        width: 100%;
        float: none;
        margin: 0 0 15px 0;
    }

    .page-inner .ny_products_p,
    .page-inner .ny_products_p.tv_hot6 {
        float: none;
        width: 100%;
        height: auto;
        padding: 10px;
        text-align: center;
    }

    .page-inner .ny_products_p img,
    .page-inner .tv_hot6 .avatar6,
    .page-inner .tv_hot6 .avatar6 img {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .page-inner .ny_cert {
        padding: 0 13px;
        box-sizing: border-box;
    }

    .page-inner .ny_cert li {
        width: 48%;
        height: auto;
        margin: 0 1% 15px 1%;
        float: left;
    }

    .page-inner .ny_cert_p,
    .page-inner .ny_cert_p.tv_hot4 {
        float: none;
        width: 100%;
        height: auto;
        padding: 0;
        text-align: center;
    }

    .page-inner .ny_cert_p img,
    .page-inner .tv_hot4 .avatar4,
    .page-inner .tv_hot4 .avatar4 img {
        width: 100%;
        height: auto;
        max-height: none;
    }

    /* ---------------- 产品详情：图片区与信息区上下排 ---------------- */
    .page-inner .products_show_l,
    .page-inner .products_show_r {
        float: none;
        width: 100% !important;
        max-width: 100%;
        padding: 0;
        margin: 0 0 15px 0;
    }

    .page-inner .products_show_p img,
    .page-inner .products_show_l img {
        width: 100%;
        height: auto;
    }

    .page-inner .products_show_bt {
        padding: 0 0 15px 0;
        margin: 0;
    }

    .page-inner .products_show_bt h1 {
        font-size: 18px;
        line-height: 26px;
    }

    .page-inner .products_show_con,
    .page-inner .products_show_js {
        padding: 10px 0;
    }

    /* ---------------- 关于我们 / 联系我们 的两栏改上下 ---------------- */
    .page-inner .ny_about_con,
    .page-inner .ny_about_con2,
    .page-inner .ny_contact_con {
        width: 100%;
        padding: 20px 0 30px 0;
        font-size: 14px;
        line-height: 26px;
    }

    .page-inner .ny_about_con2_l,
    .page-inner .ny_about_con2_r,
    .page-inner .ny_contact_con_l,
    .page-inner .ny_contact_con_r {
        float: none;
        width: 100% !important;
        padding: 0;
        margin: 0;
    }

    .page-inner .ny_about_con2_l img,
    .page-inner .ny_contact_con_r img {
        width: 100%;
        height: auto;
        margin-bottom: 15px;
    }

    /* FAQ 页左右两栏改上下 */
    .page-inner .ny_main3_l,
    .page-inner .ny_main3_r {
        float: none;
        width: 100% !important;
        padding: 0;
        margin: 0 0 20px 0;
    }

    /* ---------------- 分页 ---------------- */
    .page-inner .ny_news_fy {
        padding: 10px 0;
    }

    .page-inner .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-inner .pagination a,
    .page-inner .pagination span {
        padding: 5px 10px;
        margin: 2px;
        font-size: 13px;
    }

    /* ============================================================
       列表页内容区域底色 #eaeaeb（仅手机端；PC 端不动）
       目前只剩"产品 / 案例"两个列表页需要，新闻和方案都已按要求去掉
       ============================================================ */
    .page-productslist .ny_products,
    .page-caselist .ny_products {
        padding: 10px;
        background: #eaeaeb;
        box-sizing: border-box;
    }

    /* 新闻列表：按用户要求不铺底色，列表项也不加卡片底 */
    .page-newslist .list_news {
        padding: 0;
        margin: 0;
        background: none;
    }

    .page-newslist .list_news ul li {
        padding: 0;
        margin: 0 0 20px 0;
        background: none;
    }

    /* ---------------- 解决方案列表页：PC 的 .solution_ul 改成手机版卡片 ---------------- */
    .page-solutionlist .solution.p110 {
        padding: 0;
    }

    .page-solutionlist .solution_ul {
        margin: 0;
        padding: 0;
        background: none;
    }

    .page-solutionlist .solution_ul > li {
        width: 100%;
        height: auto;
        float: none;
        padding: 0;
        margin: 0 0 20px 0;
        background: none;
        box-sizing: border-box;
    }

    .page-solutionlist .solution_ul > li > div {
        width: 100%;
        float: none;
        padding: 0;
    }

    .page-solutionlist .solution_ul > li img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 260px;
        object-fit: cover;
    }

    .page-solutionlist .solution_box {
        padding: 10px 0 0 0 !important;
        width: 100%;
        float: none;
    }

    .page-solutionlist .solution_box .font35 {
        display: block;
        font-size: 18px;
        line-height: 26px;
        font-weight: bold;
        color: #333333;
    }

    .page-solutionlist .solution_box .text {
        margin-top: 8px;
        font-size: 14px;
        line-height: 24px;
        color: #666666;
    }

    .page-solutionlist .solution_box .more {
        margin-top: 10px;
    }

    .page-solutionlist .solution_box .more a {
        font-size: 16px;
        color: #444444;
    }

    /* ============================================================
       产品详情页（products.html）
       ============================================================ */

    /* "产品详情"正文外层：之前漏了这个容器，正文左右直接贴边 */
    .page-products .ny_main2 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 20px 13px !important;
        box-sizing: border-box;
    }

    /* .products_con_bt 自带 10px 外边距，会跟 13px 的网格对不齐 */
    .page-products .products_con_bt {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 10px;
    }

    /* 放大镜主图：PC 靠 JS 写死 580×580 的行内尺寸，手机端改成随容器等比缩放 */
    .page-products .products_show_l {
        overflow: visible;
        position: relative;
    }

    .page-products .products_show_l #showbox,
    .page-products .products_show_l #showbox > div,
    .page-products .products_show_l #showbox b {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
    }

    .page-products .products_show_l #showbox img {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* 手机端没有 hover，放大镜的取景框直接隐藏 */
    .page-products .products_show_l #showbox > div > span {
        display: none !important;
    }

    /* 缩略图：改成可换行的居中排列，去掉横向滚动条 */
    .page-products .products_show_l #showsum {
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        margin-top: 10px;
    }

    .page-products .products_show_l #showsum p {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin: 0;
    }

    .page-products .products_show_l #showsum span {
        float: none !important;
        margin: 0 !important;
        width: 60px !important;
        height: 60px !important;
        flex: 0 0 auto;
        box-sizing: border-box;
    }

    .page-products .products_show_l #showsum img {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        object-fit: cover;
    }

    /* 大图左右箭头（.showpage）：手机上不好看，隐藏；
       改用手指左右滑动切换，见 products.html 里的脚本 */
    .page-products .products_show_l .showpage {
        display: none !important;
    }

    /* 滑动切换动画需要的两点：图片容器可定位、裁剪外面滑进来的那张 */
    .page-products .products_show_l #showbox {
        overflow: hidden;
    }

    .page-products .products_show_l #showbox b {
        position: relative;
        display: block;
        width: 100%;
    }
}

