
.m-nav-toggle,
.m-nav-overlay {
    display: none;
}

@media screen and (max-width: 1200px) {
    #app {
        overflow-x: hidden;
    }
    body {
        overflow-x: hidden;
    }
    .content {
        width: 100% !important;
        max-width: 1200px;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }
    /* 修复各种硬编码 1200px 宽度的容器 */
    .item-con .con,
    .video-container .container,
    .home-swiper .desc-container,
    .home-swiper .video-container .container .video-title .title {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    /* 轮播容器不要溢出 */
    .carousel {
        width: 100% !important;
        max-width: 100%;
    }
    /* 所有图片自适应 */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* ============================== */
/*  2. 平板端  (769px - 1200px)    */
/* ============================== */
@media screen and (min-width: 769px) and (max-width: 1200px) {

    /* 导航间距 */
    .layout-header .nav {
        margin: 0 30px 0 40px !important;
    }
    .nav-li + .nav-li {
        margin-left: 30px !important;
    }
    .layout-header .nav-ul .about-us {
        margin-left: 30px !important;
    }

    /* Banner */
    .home-banner {
        height: 380px;
    }

    /* 首页 Grid 改两列 */
    .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .grid .container {
        height: auto;
    }

    /* 关于我们模块 */
    .about-box .company-profile .content .right {
        width: 320px !important;
        margin-left: 30px !important;
    }

    /* 产品列表 */
    .product-category {
        width: 180px;
        margin-right: 30px;
    }
    .product-items .product-box {
        width: calc(50% - 15px) !important;
        margin-bottom: 30px;
    }
    .product-items .product-right-name {
        width: 100% !important;
    }

    /* 产品详情 */
    .p-detail-img-box {
        width: 360px !important;
    }
    .p-detail-img-box .swiper-slide {
        width: 360px !important;
    }
    .product-desc-title {
        width: 200px !important;
    }

    /* 新闻列表 */
    .news-wrap .item {
        padding: 24px 20px;
    }
    .news-wrap img {
        width: 180px;
        height: 120px;
    }

    /* 首页 Swiper 产品卡片 */
    .product-item {
        width: auto !important;
    }
    .product-item .product-img-box {
        width: 100% !important;
    }

    /* Footer */
    .layout-footer {
        flex-wrap: wrap;
        padding: 50px 0 30px !important;
    }
    .layout-footer .footer-infos-ul {
        flex: 1 1 45% !important;
        min-width: 200px;
        margin-bottom: 30px;
    }

    /* 联系我们 */
    .map-message-box {
        flex-direction: column;
    }
    .map-img {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 30px;
        min-height: 300px;
    }
    .message-form {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {





    #app {
        display: block !important;
        min-width: auto !important;
        width: 100% !important;
        overflow-x: hidden;
    }
    body {
        min-width: auto !important;
        overflow-x: hidden;
    }
    .ennew-sensing {
        min-width: auto !important;
        width: 100% !important;
    }
    .min-h-box {
        min-height: auto !important;
    }

    /* ---------- .content 修复：必须把宽度从1200px改为auto ---------- */
    .content {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    /* ---------- 修复所有硬编码 1200px ---------- */
    .item-con .con,
    .video-container .container,
    .home-swiper .desc-container,
    .home-swiper .video-container .container .video-title .title,
    .news-wrap .content,
    .product-detail.content,
    .about-box .company-profile .content,
    .about-box .company-profile .con {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    .carousel {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .my-swiper {
        width: 100% !important;
    }
    .navigate {
        width: 100% !important;
        display: none !important;
    }

    /* ---------- 通用标题缩小 ---------- */
    .home-title {
        font-size: 22px !important;
        padding-top: 30px !important;
        padding-bottom: 15px !important;
        margin: 0;
    }
    .title-h3 {
        font-size: 26px !important;
        height: auto !important;
        margin-bottom: 4px;
    }
    .title-desc {
        font-size: 13px !important;
    }

    /* ---------- 图片自适应 ---------- */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* ================================================================ */
    /*  导航 Header - 移动端汉堡菜单（配合 head.html 中的 JS 开关逻辑）    */
    /* ================================================================ */

    /* ----- 顶栏容器 ----- */
    .layout-header-box {
        position: sticky !important;
        top: 0;
        z-index: 10000;
        background: #fff;
    }
    .layout-header {
        height: 56px !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        position: relative !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* ----- Logo ----- */
    .layout-header .text-left {
        display: flex !important;
        align-items: center !important;
        height: 56px !important;
        padding-left: 15px;
        flex-shrink: 0;
    }
    .layout-header .text-left img.logo {
        height: 32px !important;
        width: auto !important;
    }

    /* ====== 汉堡按钮 icon ====== */
    .m-nav-toggle {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-right: 8px;
        flex-shrink: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        z-index: 10001;
        position: relative;
    }
    .m-nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: #333;
        border-radius: 2px;
        transition: all .3s ease;
    }
    .m-nav-toggle span + span {
        margin-top: 5px;
    }
    /* 打开时 → X */
    .m-nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .m-nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .m-nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* ====== 语言切换隐藏 ====== */
    .layout-header .config a,
    .layout-header .config .split {
        display: none !important;
    }
    .layout-header .config {
        position: relative;
        top: auto;
        right: auto;
        font-size: 0;
        order: 0;
    }

    /* ====== 遮罩层 ====== */
    .m-nav-overlay {
        display: none;
    }
    .m-nav-overlay.show {
        display: block !important;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 9998;
    }

    /* ====== 导航抽屉 ====== */
    .layout-header .nav {
        display: none;
    }
    .layout-header .nav.show {
        display: block !important;
        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 56px) !important;
        background: #fff !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 9999 !important;
        margin: 0 !important;
        flex: none !important;
        -webkit-overflow-scrolling: touch;
        animation: mNavSlide .25s ease;
    }
    @keyframes mNavSlide {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    /* ====== 导航列表 - 垂直排版 ====== */
    .layout-header .nav-ul {
        flex-direction: column !important;
        padding: 0 !important;
        text-transform: none !important;
    }
    /* 一级菜单项 */
    .layout-header .nav-ul .nav-li,
    .layout-header .nav-ul .about-us {
        margin-left: 0 !important;
        text-align: left !important;
        border-bottom: 1px solid #f0f0f0;
    }
    .layout-header .nav-ul .nav-li::after {
        display: none !important;
    }

    /* 一级链接 */
    .layout-header .nav-ul .nav-li .nav-a,
    .layout-header .nav-ul .about-us > .nav-a {
        display: flex !important;
        align-items: center !important;
        padding: 17px 20px !important;
        font-size: 16px !important;
        color: #333 !important;
        width: auto !important;
        white-space: normal !important;
        font-weight: 400 !important;
        transition: color .2s;
    }
    .layout-header .nav-ul .nav-li .nav-a:active,
    .layout-header .nav-ul .about-us > .nav-a:active {
        background: #f5f5f5;
    }

    /* 当前激活项 */
    .layout-header .nav-ul .nav-li-active .nav-a {
        color: #056ccf !important;
        font-weight: 500 !important;
    }

    /* 隐藏原始下拉 SVG 图标 */
    .layout-header .nav-ul .about-us .icon-down {
        display: none !important;
    }

    /* ====== 子菜单箭头（仅包含子菜单 .about 的项显示） ====== */
    .layout-header .nav-ul .about-us:has(.about) > .nav-a::after {
        content: "";
        display: inline-block !important;
        width: 8px;
        height: 8px;
        border-right: 2px solid #bbb;
        border-bottom: 2px solid #bbb;
        transform: rotate(45deg);
        transition: transform .25s ease;
        margin-left: auto;
        flex-shrink: 0;
    }
    .layout-header .nav-ul .about-us:has(.about).sub-open > .nav-a::after {
        transform: rotate(-135deg);
        border-color: #056ccf;
    }

    /* ====== 二级子菜单 ====== */
    .layout-header .nav-ul .about-us .about {
        position: static !important;
        width: 100% !important;
        padding-top: 0 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .layout-header .nav-ul .about-us.sub-open .about {
        max-height: 600px;
    }
    .layout-header .nav-ul .about-us .about .about-wrap {
        box-shadow: none !important;
        border-radius: 0 !important;
        background: #f8f9fa !important;
        padding: 0 !important;
    }
    .layout-header .nav-ul .about-us .about .about-item {
        display: flex !important;
        align-items: center !important;
        padding: 14px 20px 14px 40px !important;
        font-size: 15px !important;
        color: #555 !important;
        border-bottom: 1px solid #eee;
        transition: background .2s;
    }
    .layout-header .nav-ul .about-us .about .about-item + .about-item {
        margin-top: 0 !important;
    }
    .layout-header .nav-ul .about-us .about .about-item:active {
        background: #eef2f7;
    }
    .layout-header .nav-ul .about-us.sub-open > .nav-a {
        color: #056ccf !important;
        background: #f8f9fa;
    }

    /* ====== 菜单底部语言切换项 ====== */
    .layout-header .nav-ul .nav-language-item {
        display: block !important;
        padding: 18px 20px !important;
        font-size: 13px !important;
        color: #999 !important;
        border-bottom: none !important;
        text-align: center !important;
        margin-top: 8px;
    }

    /* ========== 导航 Header 结束 ========== */

    /* ---------- Banner ---------- */
    .home-banner {
        height: 210px !important;
    }
    .home-banner .swiper-slide img,
    .home-banner .home-banner-source img {
        width: 100% !important;
        height: 210px !important;
        object-fit: cover;
    }

    /* ---------- 首页 Grid（公司新闻/行业动态卡片）单列 ---------- */
    .grid {
        grid-template-columns: 1fr !important;
        grid-gap: 16px !important;
    }
    .grid .container {
        height: auto !important;
        min-height: auto;
    }
    .grid .container .img-container {
        width: 100% !important;
        height: auto !important;
        max-height: 180px;
        object-fit: cover;
    }
    .grid .container .desc {
        padding: 10px 12px !important;
    }
    .grid .container .desc .inner-title {
        font-size: 15px !important;
    }
    .grid .container .desc .text {
        margin-top: 8px !important;
        font-size: 13px !important;
        -webkit-line-clamp: 3;
    }

    /* ---------- 首页 Swiper 产品卡片 ---------- */
    .swiper-slide .product-item {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        padding: 0 10px 20px !important;
        box-sizing: border-box;
    }
    .swiper-slide .product-item .product-img-box {
        width: 100% !important;
        margin-bottom: 15px !important;
    }
    .swiper-slide .product-name {
        font-size: 15px !important;
        margin-bottom: 15px !important;
    }

    /* ---------- 关于我们模块 ---------- */
    .about-box .company-profile .content {
        flex-direction: column !important;
    }
    .about-box .company-profile .content .left {
        width: 100% !important;
        flex: auto !important;
        order: 2 !important;
    }
    .about-box .company-profile .content .right {
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 20px !important;
        order: 1 !important;
    }
    .about-box .company-profile .content .right img {
        display: block;
        margin: 0 auto;
        max-width: 80% !important;
    }
    .company-profile .con {
        padding: 0 !important;
    }
    .profile {
        margin-top: 12px !important;
    }
    .profile-item {
        font-size: 13px !important;
        line-height: 1.7 !important;
        margin-bottom: 10px !important;
    }

    /* ---------- item-con 模块 ---------- */
    .item-con {
        padding: 30px 0 40px !important;
    }

    /* ---------- 视频 Banner（about 页） ---------- */
    .about-box .video-box img {
        min-height: 140px;
        object-fit: cover;
    }
    .video-container .container {
        padding: 0 15px !important;
    }
    .video-desc {
        font-size: 15px !important;
    }

    /* ---------- 产品列表页 ---------- */
    .product-flex {
        flex-direction: column !important;
        padding: 20px 0 0 !important;
    }
    .product-category {
        width: 100% !important;
        margin-right: 0 !important;
        padding-bottom: 0 !important;
        position: static !important;
        top: auto !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px;
        margin-bottom: 16px;
    }
    .product-category-title {
        width: 100% !important;
        font-size: 18px !important;
        margin: 0 0 6px !important;
    }
    .product-category .category-line {
        display: none !important;
    }
    .product-category li.product-category-li {
        font-size: 12px !important;
        padding: 5px 10px !important;
        border: 1px solid #ddd;
        border-radius: 16px;
        white-space: nowrap;
        margin: 2px 0;
        display: inline-block;
    }
    .product-category .product-category-li-active {
        background: #056ccf !important;
        border-color: #056ccf !important;
    }
    .product-category .product-category-li-active a {
        color: #fff !important;
    }
    .product-items {
        gap: 12px !important;
    }
    .product-items .product-box {
        width: calc(50% - 8px) !important;
        margin-bottom: 20px !important;
    }
    .product-items .product-img-box {
        height: 140px !important;
    }
    .product-items .product-img {
        width: 100px !important;
        height: 100px !important;
    }
    .product-items .product-right-name {
        width: 100% !important;
        font-size: 13px !important;
        margin-top: 12px !important;
        text-align: center;
    }
    .product-page {
        margin-bottom: 40px !important;
    }

    /* ---------- 产品详情页 ---------- */
    .product-detail-name {
        flex-direction: column !important;
        padding: 20px 0 !important;
    }
    .p-detail-text-box {
        margin-right: 0 !important;
        margin-bottom: 16px !important;
    }
    .p-detail-title {
        font-size: 18px !important;
    }
    .p-detail-img-box {
        width: 100% !important;
        flex-shrink: 1 !important;
    }
    .p-detail-img-box .swiper-slide {
        width: 100% !important;
    }
    .p-detail-img-box .p-detail-img {
        width: 100% !important;
    }
    .product-detail-desc .product-line {
        flex-direction: column !important;
        padding: 25px 0 !important;
    }
    .product-desc-title {
        width: 100% !important;
        font-size: 18px !important;
        margin-bottom: 12px;
    }
    .product-desc-img {
        width: 100% !important;
    }

    /* ---------- 新闻列表页 ---------- */
    .news-wrap .news-tab {
        flex-wrap: wrap !important;
        padding: 12px 5px !important;
        gap: 4px !important;
    }
    .news-wrap .news-tab .tab-item {
        font-size: 14px !important;
        padding: 6px 12px !important;
    }
    .news-wrap .news-tab .tab-item a {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    .news-wrap .item {
        flex-direction: column !important;
        padding: 14px !important;
        margin-bottom: 14px !important;
    }
    .news-wrap .item .pic {
        width: 100% !important;
        margin-bottom: 10px;
    }
    .news-wrap img {
        width: 100% !important;
        height: auto !important;
        max-height: 180px;
        object-fit: cover;
        border-radius: 4px;
    }
    .news-wrap .con {
        margin-left: 0 !important;
        width: 100% !important;
    }
    .news-wrap .con .tit {
        font-size: 15px !important;
        margin-bottom: 6px !important;
    }
    .news-wrap .con .time {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }
    .news-wrap .con .desc {
        font-size: 13px !important;
        height: auto !important;
        margin-bottom: 10px !important;
    }

    /* ---------- 新闻详情页 ---------- */
    .detail-wrap {
        margin-top: 1em !important;
    }
    .detail-wrap .head .title {
        font-size: 18px !important;
    }
    .detail-wrap .ql-editor {
        padding: 0 5px !important;
    }
    .detail-wrap .ql-editor img {
        max-width: 100% !important;
        height: auto !important;
    }
    .detail-wrap .ql-editor table {
        display: block;
        overflow-x: auto;
        max-width: 100%;
    }

    /* ---------- 联系我们表单 ---------- */
    .message-box {
        padding-bottom: 30px !important;
    }
    .map-message-box {
        flex-direction: column !important;
    }
    .map-img {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 16px !important;
        min-height: 180px !important;
        height:auto !important;
    }
    .tdt-map-container,
    .tdt-map {
        height: auto !important;
    }
    .message-form {
        width: 100% !important;
    }
    .message-form .message-desc {
        font-size: 13px !important;
    }
    .message-form .name-box {
        flex-direction: column !important;
        margin: 12px 0 0 !important;
        gap: 8px !important;
    }
    .message-form .input {
        width: 100% !important;
        margin-right: 0 !important;
    }
    .message-form .input:first-child {
        margin-right: 0 !important;
    }
    .enn-input-box {
        padding: 14px 16px !important;
    }
    .name-warn-box {
        flex-direction: column;
    }
    .message-form .message-btn {
        padding: 16px 0 !important;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }

    /* ---------- Footer ---------- */
    .layout-footer {
        flex-direction: column !important;
        padding: 30px 0 20px !important;
        text-align: center !important;
    }
    .layout-footer .footer-infos-ul {
        flex: auto !important;
        width: 100% !important;
        margin-bottom: 16px !important;
        align-items: center !important;
    }
    .layout-footer .footer-app {
        font-size: 22px !important;
        margin-bottom: 12px !important;
    }
    .layout-footer .footer-infos-li {
        margin-bottom: 6px !important;
    }
    .layout-footer .footer-desc.footer-gray {
        width: auto !important;
    }
    .layout-website {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 4px !important;
        padding: 16px 10px 24px !important;
        font-size: 12px !important;
    }

    /* ---------- 分页 ---------- */
    .enn-page-box .pagination,
    .pagebar .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3px;
    }
    .enn-page-box .page-item,
    .pagination a {
        font-size: 12px !important;
        padding: 4px 8px !important;
        margin: 0 2px !important;
    }
    .hidden-sm {
        display: none !important;
    }

    /* ---------- 面包屑 ---------- */
    .enn-page {
        font-size: 12px !important;
        padding: 6px 0 !important;
    }

    /* ---------- 各类灰色背景区 padding 减小 ---------- */
    .gray-bg {
        padding-bottom: 30px !important;
    }

    /* ---------- Swiper 分页器适配 ---------- */
    .swiper-pagination-bullet {
        width: 6px !important;
        height: 6px !important;
    }
    .swiper-pagination-bullet-active {
        width: 20px !important;
    }

    /* ---------- 合作伙伴图片 ---------- */
    .partner-img {
        width: 100% !important;
    }
}
