﻿* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto !important;
    border: 0;
}

table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
}

a {
    text-decoration: none;
}

/* ---------- 手机端 ---------- */
@media screen and (max-width:768px) {

    /* 老站写死的固定宽度容器全部100% */
    .wrap, .container, .main, .w1200, .box1200, .width1200 {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* 清除老站float布局 */
    .fl, .float-left, .fr, .float-left, .col, .item {
        float: none !important;
    }

    .clearfix::after {
        content: '';
        display: block;
        clear: both;
    }

    /* ===== 顶部导航：PC横向 → 汉堡折叠 ===== */
    .header, .top-header, .site-header {
        position: relative;
    }

    .nav, .nav-main, .main-nav, .navbar {
        position: relative;
    }

    /* 汉堡按钮（PC端隐藏，手机端显示） */
    .hamburger {
        display: block !important;
        width: 44px;
        height: 44px;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 9999;
        background: transparent;
        border: none;
    }

        .hamburger span {
            display: block;
            width: 24px;
            height: 3px;
            background: #333;
            margin: 5px auto;
            border-radius: 2px;
            transition: all .3s;
        }

        .hamburger.active span:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

    /* 原PC导航ul默认收起，点击展开 */
    .nav > ul, .nav-main > ul, .navbar > ul, .menu {
        display: none !important;
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        background: #fff;
        z-index: 9998;
        padding: 0;
        margin: 0;
        list-style: none;
        box-shadow: 0 6px 16px rgba(0,0,0,.12);
        max-height: 70vh;
        overflow-y: auto;
    }

        .nav > ul.show, .nav-main > ul.show, .navbar > ul.show, .menu.show {
            display: block !important;
        }

        .nav > ul > li, .nav-main > ul > li, .navbar > ul > li, .menu > li {
            width: 100% !important;
            float: none !important;
            display: block;
            border-bottom: 1px solid #eee;
            position: relative;
        }

            .nav > ul > li > a, .nav-main > ul > li > a, .navbar > ul > li > a, .menu > li > a {
                display: block;
                padding: 14px 16px;
                text-align: left !important;
                line-height: 1.4;
            }

    /* 二级下拉菜单：手机端改为点击展开，静态排列 */
    .nav li .submenu, .nav li .dropdown, .nav li ul, .sub-menu {
        position: static !important;
        width: 100% !important;
        display: none;
        background: #f7f7f7;
        box-shadow: none;
        padding-left: 12px;
    }

        .nav li .submenu.show, .nav li .dropdown.show, .nav li ul.show, .sub-menu.show {
            display: block !important;
        }

        .nav li .submenu li, .nav li ul li {
            width: 100% !important;
        }

    /* ===== 多列模块 → 单列 ===== */
    /* 服务范围4列、案例6列、优势3列、新闻tab */
    .service-col, .col-2, .col-3, .col-4, .col-6,
    .service-list li, .case-list li, .advantage-list li,
    .partner-list li, .news-list li, .knowledge-list li,
    .footer-col, .footer-item {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 18px !important;
    }

    /* 电商小程序数据卡片（付款成功率/成交总额/复购率） */
    .stat-box, .data-item, .num-box {
        width: 100% !important;
        text-align: center;
        margin-bottom: 16px;
    }

    /* 小程序类型卡片（官网/电商/预约/多门店/外卖/餐饮/营销/分销） */
    .mini-type, .mini-program-type, .mini-card {
        width: 48% !important; /* 手机端两列，不至于太挤 */
        margin: 0 1% 12px !important;
        float: left !important;
    }

    /* 开发案例卡片 */
    .case-item, .case-card {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    /* 合作伙伴logo墙：手机每行2个 */
    .partner-list li, .partner-logo {
        width: 50% !important;
        text-align: center;
        margin-bottom: 12px;
    }

    /* 地区栏目链接（黄浦/松江/浦东做网站…）自动换行 */
    .area-links a, .city-links a {
        display: inline-block;
        padding: 6px 12px;
        margin: 0 6px 8px 0;
        background: #f5f5f5;
        border-radius: 4px;
        font-size: 13px;
    }

    /* Banner/轮播：自适应高度 */
    .banner, .slider, .carousel {
        height: auto !important;
    }

        .banner img, .slider img {
            width: 100% !important;
            height: auto !important;
        }

    /* 字体 */
    body {
        font-size: 15px !important;
        line-height: 1.7;
    }

    h1 {
        font-size: 22px !important;
        line-height: 1.3;
    }

    h2 {
        font-size: 20px !important;
        line-height: 1.35;
    }

    h3 {
        font-size: 17px !important;
        line-height: 1.4;
    }

    /* 底部footer */
    .footer, .site-footer {
        padding: 20px 0;
    }

        .footer .footer-col, .footer .footer-item {
            width: 100% !important;
            float: none !important;
            margin-bottom: 16px;
        }

        .footer .contact-info, .footer .copyright {
            text-align: center !important;
        }

        /* 电话大按钮：手机端醒目 */
        .footer .phone, .tel {
            font-size: 20px !important;
            font-weight: bold;
        }

    /* 按钮点击区域≥44px */
    a, button, .btn, input[type=submit], input[type=button] {
        min-height: 44px;
        min-width: 44px;
    }

    /* 新闻/知识列表项 */
    .news-item, .knowledge-item, .article-item {
        width: 100% !important;
        padding: 12px 0 !important;
        border-bottom: 1px dashed #eee;
    }

        .news-item .date, .article-item .date {
            float: none !important;
            display: block;
            color: #999;
            font-size: 12px;
            margin-top: 4px;
        }

    /* tab切换（公司新闻/行业新闻/电商运营/网站推广） */
    .tab-nav, .tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

        .tab-nav li, .tabs li {
            display: inline-block;
            float: none;
        }
}

/* ---------- PC端：隐藏汉堡按钮 ---------- */
@media screen and (min-width:769px) {
    .hamburger {
        display: none !important;
    }
}
