@charset "utf-8";
/* 移动端适配 - 重写版（更稳定、更大气） */
/* 断点：≤768px 触发手机端，≤1024px 启用平板 */

* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

/* ===== 移动端导航：蓝色按钮网格 ===== */
.mb-nav-grid {
    display: none;
    background: linear-gradient(180deg, #1e6bd6 0%, #155bb5 100%);
    padding: 8px 4px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.mb-nav-grid .mb-nav-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}
.mb-nav-grid .mb-nav-row a {
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 14px 4px;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    line-height: 1.3;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.mb-nav-grid .mb-nav-row a:active {
    background: rgba(255,255,255,0.25);
}

/* ===== 移动端顶部条：搜索 + Logo + 汉堡 ===== */
.mb-header {
    display: none;
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    height: 52px;
    align-items: center;
    padding: 0 8px;
}
.mb-header .mb-search-btn,
.mb-header .mb-menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.mb-header .mb-logo {
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.mb-header .mb-logo img {
    max-height: 40px;
    max-width: 80%;
    object-fit: contain;
}

/* ===== 底部固定栏（4 图标） ===== */
.mb-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 998;
    height: 56px;
    padding-bottom: env(safe-area-inset-bottom);
}
.mb-bottom-bar a {
    flex: 1;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 11px;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mb-bottom-bar a .icon {
    font-size: 22px;
    line-height: 24px;
    margin-bottom: 1px;
}
.mb-bottom-bar a.consult { color: #1e6bd6; }
.mb-bottom-bar a.contact { color: #1e6bd6; }

/* ===== 抽屉菜单 ===== */
.mb-drawer-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}
.mb-drawer-mask.active { display: block; opacity: 1; }
.mb-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 12px rgba(0,0,0,0.15);
}
.mb-drawer.active { right: 0; }
.mb-drawer .mb-drawer-header {
    background: linear-gradient(135deg, #1e6bd6, #155bb5);
    color: #fff;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mb-drawer .mb-drawer-header .mb-drawer-close {
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    background: none;
    border: none;
}
.mb-drawer .mb-drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mb-drawer .mb-drawer-menu li {
    border-bottom: 1px solid #f0f0f0;
}
.mb-drawer .mb-drawer-menu li a {
    display: block;
    padding: 14px 18px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
}
.mb-drawer .mb-drawer-menu li.has-sub > a::after {
    content: '+';
    float: right;
    color: #999;
}
.mb-drawer .mb-drawer-menu li .mb-submenu {
    background: #f8f9fb;
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}
.mb-drawer .mb-drawer-menu li .mb-submenu a {
    padding-left: 36px;
    font-size: 14px;
    color: #666;
}
.mb-drawer .mb-drawer-menu li.has-sub.open .mb-submenu { display: block; }
.mb-drawer .mb-drawer-menu li.has-sub.open > a::after { content: '-'; }

/* ===== 抽屉搜索 ===== */
.mb-search-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 52px 12px 12px;
    z-index: 1002;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.mb-search-popup.active { display: block; }
.mb-search-popup form {
    display: flex;
    border: 2px solid #1e6bd6;
    border-radius: 4px;
    overflow: hidden;
}
.mb-search-popup input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}
.mb-search-popup button {
    background: #1e6bd6;
    color: #fff;
    border: none;
    padding: 0 18px;
    font-size: 14px;
    cursor: pointer;
}

/* ===== 触发：≤768px ===== */
@media (max-width: 768px) {
    .mb-hide { display: none !important; }
    .mb-show { display: block !important; }

    /* 隐藏 PC 元素 */
    .top_bg,
    .topbox_bg,
    .footer_bg,
    .copyright_bg,
    .adminbuy_cn_img,
    .topbox,
    .footerbox {
        display: none !important;
    }

    /* 显示移动端元素 */
    .mb-header { display: flex !important; }
    .mb-nav-grid { display: block !important; }
    .mb-bottom-bar { display: flex !important; }

    /* 主体加底部 padding */
    body { padding-bottom: 60px; }

    /* 通用块内边距 */
    .aboutbox, .productbox, .casebox, .newsbox,
    .insidebox, .contentbox, .contactbox {
        margin: 0 !important;
        padding: 12px 10px !important;
        width: 100% !important;
    }

    /* ===== 轮播 banner ===== */
    .bannerBox, .bannerBox .banner { margin: 0 !important; }
    .bannerBox .banner img { width: 100% !important; height: auto !important; display: block; }
    .bannerBox .banner .prev, .bannerBox .banner .next { display: none !important; }

    /* ===== 标题区 ===== */
    .title { text-align: center !important; padding: 20px 0 15px !important; overflow: hidden; }
    .title .tit, .title .tit1 {
        font-size: 20px !important;
        float: none !important;
        line-height: 1.4 !important;
        color: #333;
    }
    .title .line { display: block !important; margin: 8px auto !important; width: 40px; height: 2px; background: #1e6bd6; }
    .title .more { display: block !important; text-align: center !important; margin: 12px auto 0 !important; float: none !important; }

    /* ===== 关于我们 ===== */
    .aboutbox_bg { padding: 0 !important; }
    .aboutbox dt, .aboutbox dd { width: 100% !important; float: none !important; }
    .aboutbox .about { padding: 0 !important; text-align: center; }
    .aboutbox .about .tit, .aboutbox .about .tit1 { text-align: center !important; }
    .aboutbox .about .company_name { text-align: center !important; font-weight: 600; }
    .aboutbox .about .text { text-align: justify !important; font-size: 14px !important; line-height: 1.7 !important; padding: 0 5px !important; color: #555; }
    .aboutbox .about_pic { margin: 15px 0 0 !important; width: 100% !important; }
    .aboutbox .about_pic img { width: 100% !important; height: auto !important; border-radius: 6px; }

    /* ===== 产品区块 ===== */
    .productbox_bg, .core_advantage_bg, .casebox_bg, .newsbox_bg { padding: 0 !important; }
    .productbox dt, .productbox dd { width: 100% !important; float: none !important; }
    .productbox .tabs {
        text-align: center !important;
        padding: 5px 0 15px !important;
        margin: 0 10px !important;
    }
    .productbox .tabs a {
        display: inline-block !important;
        padding: 8px 14px !important;
        margin: 4px !important;
        border: 1px solid #1e6bd6 !important;
        border-radius: 20px !important;
        color: #1e6bd6 !important;
        font-size: 13px !important;
        background: #fff !important;
    }
    .productbox .tabs a.hover,
    .productbox .tabs a:hover {
        background: #1e6bd6 !important;
        color: #fff !important;
    }
    .productbox .product_list_scroll { display: block !important; }
    .productbox .product_list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin: 0 !important;
    }
    .productbox .product_list li {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
        background: #fff;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .productbox .product_list li .pic {
        width: 100% !important;
        aspect-ratio: 1 !important;
        overflow: hidden;
        background: #f5f5f5;
    }
    .productbox .product_list li .pic img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .productbox .product_list li .tit {
        text-align: center !important;
        font-size: 13px !important;
        padding: 8px 6px !important;
        line-height: 1.4 !important;
        background: #fff !important;
        color: #333 !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* ===== 列表页通用产品/案例网格 ===== */
    .product_list ul {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .product_list ul li {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
        background: #fff;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .product_list ul li .pic {
        width: 100% !important;
        aspect-ratio: 1 !important;
        overflow: hidden;
        background: #f5f5f5;
    }
    .product_list ul li .pic img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .product_list ul li .tit {
        font-size: 13px !important;
        text-align: center !important;
        padding: 8px 6px !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.4;
    }

    /* ===== 优势区块（手机端直接隐藏） ===== */
    .core_advantage_bg { display: none !important; }

    /* ===== 案例区块 ===== */
    .case_list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .case_list li {
        width: 100% !important;
        margin: 0 !important;
        background: #fff;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .case_list li .pic {
        width: 100% !important;
        aspect-ratio: 1 !important;
        overflow: hidden;
        background: #f5f5f5;
    }
    .case_list li .pic img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
    .case_list li .tit {
        font-size: 13px !important;
        text-align: center !important;
        padding: 8px 6px !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.4;
    }

    /* ===== 厂房环境 ===== */
    .environment ul, .productbox_bg .product_list { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .environment ul li {
        width: 100% !important;
        margin: 0 !important;
        background: #fff;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .environment ul li .pic {
        width: 100% !important;
        aspect-ratio: 1 !important;
        overflow: hidden;
        background: #f5f5f5;
    }
    .environment ul li .pic img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
    .environment ul li .tit { text-align: center; padding: 6px; font-size: 12px; }

    /* ===== 新闻区块 ===== */
    .newsbox dt, .newsbox dd { width: 100% !important; float: none !important; }
    .news_box { display: block !important; }
    .pic_news_list_scroll, .news_list_scroll { width: 100% !important; float: none !important; margin-bottom: 15px !important; }
    .pic_news_list, .news_list { list-style: none; padding: 0; margin: 0; }
    .pic_news_list li, .news_list li {
        width: 100% !important;
        margin: 0 0 12px !important;
        float: none !important;
        background: #fff;
        border-radius: 6px;
        padding: 12px !important;
        box-sizing: border-box !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        overflow: hidden !important;
    }
    .pic_news_list li .pic { aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; margin-bottom: 8px; }
    .pic_news_list li .pic img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
    .news_list li { display: flex !important; gap: 12px !important; align-items: flex-start !important; padding: 12px !important; }
    .news_list li .thumb { width: 110px !important; height: 80px !important; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
    .news_list li .thumb img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
    .news_list li .date { display: none !important; }
    .news_list li .brief { flex: 1 !important; min-width: 0 !important; overflow: hidden !important; }
    .news_list li .brief .tit { font-size: 14px !important; line-height: 1.5 !important; margin-bottom: 6px !important; word-break: break-all !important; }
    .news_list li .brief .des { font-size: 12px !important; line-height: 1.5; color: #888; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all !important; }

    /* ===== 面包屑 ===== */
    .location {
        font-size: 12px !important;
        padding: 8px 10px !important;
        background: #f8f9fb !important;
        margin: 0 !important;
        color: #666;
    }
    .location a { color: #1e6bd6; }
    .guidebox .tit {
        text-align: center !important;
        font-size: 18px !important;
        padding: 15px 0 !important;
        font-weight: 600;
    }
    .guidebox > dd > ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 0 10px !important;
    }
    .guidebox > dd > ul li {
        flex: 1 0 30% !important;
        text-align: center !important;
        margin: 0 !important;
        float: none !important;
    }
    .guidebox > dd > ul li a {
        display: block !important;
        padding: 8px 4px !important;
        font-size: 12px !important;
        background: #f0f5ff;
        color: #1e6bd6;
        border-radius: 4px;
        text-decoration: none;
    }

    /* ===== 详情页 ===== */
    .detail { padding: 12px !important; }
    .detail img { max-width: 100% !important; height: auto !important; }
    .adminbuy_cn { font-size: 14px !important; line-height: 1.7 !important; }
    .adminbuy_cn img { max-width: 100% !important; height: auto !important; }
    .article_meta { font-size: 12px !important; color: #999 !important; padding-bottom: 10px; border-bottom: 1px solid #eee; }

    /* ===== 分页 ===== */
    .pagination { text-align: center !important; padding: 15px 0 !important; }
    .pagination a, .pagination span { padding: 5px 10px !important; font-size: 13px !important; margin: 0 2px; }

    /* ===== 评论 ===== */
    .comment-box { padding: 12px !important; }
    .comment-list .comment-item { padding: 10px 0 !important; }
    .comment-list .comment-content { font-size: 13px !important; line-height: 1.6 !important; }

    /* ===== 友链 ===== */
    .friend-links { padding: 12px !important; }
    .friend-links a { display: inline-block !important; margin: 4px 6px !important; font-size: 13px !important; }

    /* ===== 联系我们表单 ===== */
    .detail .form-group input, .detail .form-group textarea {
        font-size: 14px !important;
        padding: 8px !important;
    }
    .detail .form-group input::placeholder, .detail .form-group textarea::placeholder {
        font-size: 14px !important;
    }
}

/* ===== 平板：769-1024px ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .mb-hide { display: none !important; }
    .mb-bottom-bar { display: flex !important; }
    body { padding-bottom: 60px; }
    .top_bg .top { margin: 0 15px !important; }
    .aboutbox, .productbox, .casebox, .newsbox, .insidebox { margin: 0 15px !important; }
    .product_list ul, .case_list { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 12px !important; }
    .product_list ul li { width: 100% !important; margin: 0 !important; }
}
