/* ===================================================
   邦赢网络 - 移动端自适应样式
   不修改原有桌面端样式，仅通过media query覆盖
   =================================================== */

/* === 768px以下：手机端 === */
@media screen and (max-width: 768px) {

    /* 全局：取消最小宽度限制 */
    .main {
        min-width: 100% !important;
        width: 92% !important;
    }

    body {
        min-width: 100% !important;
        overflow-x: hidden;
    }

    /* === 头部导航 === */
    .header {
        position: fixed;
        background: rgba(255,255,255,0.98);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .header .logo {
        margin-left: 3%;
    }

    .header .logo .logo-img {
        height: 36px;
    }

    .header .logo .logo-img-scroll {
        height: 36px;
    }

    /* 桌面端菜单隐藏 */
    .header .menu {
        display: none !important;
    }

    .header .top_serch {
        display: none !important;
    }

    .header .tel {
        display: none !important;
    }

    /* 汉堡菜单按钮 - 显示 */
    .mobile_menu_btn {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        margin-right: 3%;
        z-index: 1001;
        background: none;
        border: none;
        padding: 0;
    }

    .mobile_menu_btn span {
        display: block;
        width: 22px;
        height: 2px;
        background: #333;
        margin: 3px 0;
        transition: all 0.3s;
        border-radius: 2px;
    }

    .mobile_menu_btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .mobile_menu_btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile_menu_btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    /* 移动端菜单面板 */
    .mobile_menu_panel {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(26, 58, 107, 0.98);
        z-index: 1000;
        padding-top: 70px;
        overflow-y: auto;
    }

    .mobile_menu_panel.active {
        display: block;
    }

    .mobile_menu_panel ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile_menu_panel ul li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .mobile_menu_panel ul li a {
        display: block;
        color: #fff;
        font-size: 16px;
        padding: 15px 8%;
        text-decoration: none;
        transition: background 0.2s;
    }

    .mobile_menu_panel ul li a:hover,
    .mobile_menu_panel ul li a:active {
        background: rgba(255,255,255,0.1);
    }

    .mobile_menu_panel .mobile_tel {
        color: #fff;
        font-size: 20px;
        font-weight: bold;
        text-align: center;
        padding: 30px 0 20px;
    }

    .mobile_menu_panel .mobile_tel a {
        color: #fff;
        text-decoration: none;
    }

    /* 滚动后header logo颜色适配 */
    .header.on .mobile_menu_btn span,
    .header.on .logo .logo-img {
        /* 保持默认，滚动后logo切换已由JS处理 */
    }

    /* === Banner轮播 === */
    .swiper-slide img,
    .swiper-slide .ban_img {
        width: 100% !important;
        height: auto !important;
        min-height: 200px;
        object-fit: cover;
    }

    .swiper-container {
        height: auto !important;
    }

    .banner .swiper-slide {
        height: 45vw !important;
        min-height: 200px;
    }

    .banner .swiper-wrapper {
        height: auto !important;
    }

    /* === section01 - 服务分类 === */
    .section01 ul {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }

    .section01 ul li {
        width: 48% !important;
        margin-bottom: 15px !important;
    }

    .section01 li .txt p {
        font-size: 12px !important;
        -webkit-line-clamp: 2;
    }

    /* === section02 - 服务详情 === */
    .section02 .service {
        flex-wrap: wrap !important;
    }

    .section02 .service li {
        width: 48% !important;
        margin-bottom: 15px !important;
        min-height: auto !important;
    }

    /* === section03 - 案例列表 === */
    .web_list li,
    .section03 .web_list li {
        width: 48% !important;
        margin-right: 0 !important;
        margin-bottom: 15px !important;
    }

    .web_list li:nth-child(3n) {
        margin-right: 0 !important;
    }

    /* === section04 - 新闻列表 === */
    .index_news {
        flex-direction: column !important;
    }

    .index_news .box1 {
        width: 100% !important;
    }

    .index_news .box2 {
        width: 100% !important;
        flex-wrap: wrap !important;
    }

    .index_news .box2 .item {
        width: 100% !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid #eee;
    }

    /* === section05 - CTA区域 === */
    .s_foot1 {
        min-width: 100% !important;
        padding: 40px 4% !important;
    }

    .s_foot1 h3 {
        font-size: 20px !important;
    }

    .s_foot1 p {
        font-size: 14px !important;
    }

    /* === Footer === */
    .footer {
        min-width: 100% !important;
    }

    .footer .box1 {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .footer .box1 ul {
        flex-wrap: wrap !important;
        margin: 15px 0;
    }

    .footer .box1 ul a {
        margin: 5px 10px 5px 0;
        font-size: 14px;
    }

    .footer .box2 {
        flex-direction: column !important;
    }

    .footer .f_about,
    .footer .f_weixin,
    .footer .f_lianxi {
        width: 100% !important;
        margin-bottom: 20px;
    }

    .footer .f_weixin {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start;
    }

    .footer .f_weixin li {
        margin-right: 20px;
    }

    .footer .f_weixin img {
        width: 80px !important;
        height: auto !important;
    }

    /* 友情链接 */
    .friend-links .main {
        flex-wrap: wrap;
    }

    .friend-links a {
        margin: 3px 6px !important;
        font-size: 12px !important;
    }

    /* === 通用标题 === */
    .main_tit h2,
    .section .tit h2 {
        font-size: 22px !important;
    }

    .main_tit p,
    .section .tit p {
        font-size: 14px !important;
    }

    /* === 案例详情页 === */
    .page_ban {
        height: 200px !important;
        min-width: 100% !important;
    }

    .page_ban .work_box h1 {
        font-size: 20px !important;
    }

    .cases_detail .info {
        flex-direction: column !important;
    }

    .cases_detail .info .left,
    .cases_detail .info .right {
        width: 100% !important;
    }

    /* === 新闻列表页 === */
    .news_list li {
        flex-direction: column !important;
    }

    .news_list li .pic {
        width: 100% !important;
        height: auto !important;
    }

    .news_list li .txt {
        width: 100% !important;
        padding: 15px 0 !important;
    }

    /* === 文字大小适配 === */
    .section {
        padding: 40px 0 !important;
    }

    /* === 关于我们 === */
    .about_banner {
        height: 200px !important;
        min-width: 100% !important;
    }

    .about_content {
        flex-direction: column !important;
    }

    .about_content .left,
    .about_content .right {
        width: 100% !important;
    }

    /* === 服务页卡片 === */
    .service_list li {
        width: 48% !important;
    }

    /* 版权区 */
    .copyright ul {
        flex-direction: column !important;
        text-align: center;
    }

    .copyright li {
        margin: 5px 0;
        font-size: 12px;
    }

    /* 隐藏桌面端导航按钮 */
    .nav_btn {
        display: none !important;
    }
}

/* === 480px以下：小屏手机 === */
@media screen and (max-width: 480px) {
    .section01 ul li {
        width: 100% !important;
    }

    .section02 .service li {
        width: 100% !important;
    }

    .web_list li,
    .section03 .web_list li {
        width: 100% !important;
    }

    .main_tit h2,
    .section .tit h2 {
        font-size: 18px !important;
    }

    .footer .f_weixin img {
        width: 60px !important;
    }
}

/* === 768px-1024px：平板 === */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .main {
        min-width: 100% !important;
        width: 94% !important;
    }

    .header .menu li a {
        margin: 0 8px !important;
        font-size: 14px !important;
    }

    .section01 ul li {
        width: 48% !important;
    }

    .section02 .service li {
        width: 48% !important;
    }

    .web_list li,
    .section03 .web_list li {
        width: 31% !important;
    }

    /* 桌面端隐藏汉堡按钮 */
    .mobile_menu_btn {
        display: none !important;
    }

    .mobile_menu_panel {
        display: none !important;
    }
}

/* 桌面端：隐藏移动端元素 */
@media screen and (min-width: 769px) {
    .mobile_menu_btn {
        display: none !important;
    }

    .mobile_menu_panel {
        display: none !important;
    }
}
