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

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

    /* === Banner: fix fixed position on mobile === */
    .container01 {
        height: 45vw !important;
        min-height: 200px !important;
        position: relative !important;
    }

    #banner {
        position: relative !important;
        height: 45vw !important;
        min-height: 200px !important;
        min-width: 100% !important;
    }

    #banner li .pic img {
        width: 100% !important;
        height: 45vw !important;
        min-height: 200px !important;
    }

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

    /* FIX 2026-06-23: .main_tit 在 main.min.css 中有 min-width:1200px，
       会撑大 about/cases 等页面的 viewport 导致 innerWidth=1200，
       使 mobile-menu.js (innerWidth>768 早退) 不注入汉堡菜单 */
    .main_tit {
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 4% !important;
        padding-right: 4% !important;
    }
    .main_tit h2,
    .main_tit h3 {
        font-size: 22px !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }
    .main_tit h2 strong {
        font-size: 22px !important;
    }
    .main_tit p {
        font-size: 14px !important;
        word-break: break-word !important;
    }

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

    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;
    }
}

/* === section01 企业介绍模块 响应式 === */
@media screen and (max-width: 768px) {
    .section01 .s1-tit-left h1 {
        font-size: 26px !important;
    }
    .section01 .s1-tit-left h1 span {
        font-size: 16px !important;
        display: block;
        margin-left: 0 !important;
        margin-top: 6px;
    }
    .section01 .s1-subtitle {
        font-size: 15px !important;
    }
    .section01 .s1-philosophy {
        padding: 25px 18px;
        margin-top: 20px;
    }
    .section01 .s1-about-text p {
        font-size: 14px;
    }
    .section01 .s1-about-tags {
        gap: 8px;
    }
    .section01 .s1-tag {
        font-size: 12px;
        padding: 5px 14px;
    }
}
@media screen and (max-width: 480px) {
    .section01 .s1-tit-left h1 {
        font-size: 22px !important;
    }
    .section01 .s1-subtitle {
        font-size: 14px !important;
    }
    .section01 .s1-philosophy {
        padding: 18px 12px;
    }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .section01 .s1-philosophy {
        padding: 30px 25px;
    }
}

/* === section01b 响应式 === */
@media screen and (max-width: 768px) {
    .section01b ul {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }
    .section01b ul li {
        width: 48% !important;
        margin-bottom: 15px !important;
    }
    .section01b li .txt p {
        font-size: 12px !important;
    }
}
@media screen and (max-width: 480px) {
    .section01b ul li {
        width: 100% !important;
    }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .section01b ul li {
        width: 48% !important;
    }
}

/* === FAQ响应式 === */
@media screen and (max-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .faq-item {
        padding: 20px 16px;
    }
    .faq-q {
        font-size: 15px;
    }
}
@media screen and (max-width: 480px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .faq-q {
        font-size: 14px;
    }
    .faq-a {
        font-size: 13px;
    }
}


/* === 新闻分类页 + 新闻详情页 移动端布局修复 (2026-06-23) === */
@media screen and (max-width: 768px) {
    /* 左主体：解开 calc(100% - 400px) */
    .new_left,
    .page_main {
        width: 100% !important;
        margin-top: 0 !important;
        box-sizing: border-box !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    /* 右侧栏：解开固定 350px */
    .new_list2 {
        width: 100% !important;
        margin-top: 20px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }
    .side_box {
        margin-bottom: 15px !important;
    }
    /* 详情页文章区 */
    .n_article {
        min-height: auto !important;
        box-sizing: border-box !important;
    }
    .n_article .art_tit {
        padding-bottom: 15px !important;
        margin-bottom: 15px !important;
    }
    .n_article .art_tit h1 {
        font-size: 20px !important;
        line-height: 1.45 !important;
        word-break: break-word !important;
        padding-bottom: 8px !important;
    }
    .n_article .art_info {
        margin-bottom: 15px !important;
    }
    .n_article .art_info em {
        font-size: 13px !important;
        line-height: 30px !important;
        margin-right: 12px !important;
    }
    /* 列表页标签栏 */
    .new_title {
        font-size: 18px !important;
        line-height: 1.5 !important;
        padding-bottom: 8px !important;
    }
    .new_title span {
        display: block;
        margin-right: 0 !important;
        margin-bottom: 6px !important;
    }
    .new_title a {
        font-size: 13px !important;
        padding: 3px 10px !important;
        margin: 0 6px 6px 0 !important;
        display: inline-block;
    }
    /* 新闻列表项内左右图文比例保持 */
    .art_list {
        margin-top: 0 !important;
    }
    .art_list li {
        margin-bottom: 18px !important;
        padding-bottom: 14px !important;
        border-bottom: 1px solid #eee;
    }
    .art_list li .art_l {
        width: 34% !important;
    }
    .art_list li .art_r {
        width: 62% !important;
    }
    .art_list li.nopic .art_r {
        width: 100% !important;
    }
    /* 文章正文：图片不溢出，表格可滚动 */
    .article img,
    .by-art img,
    .n_article img {
        max-width: 100% !important;
        height: auto !important;
    }
    .article table,
    .by-art table {
        max-width: 100% !important;
        display: block;
        overflow-x: auto;
    }
    /* 移除文章正文内联固定宽度 (.by-art 命名空间默认1100px) */
    .article > div[style*="width"],
    .by-art-content,
    .by-art {
        max-width: 100% !important;
        width: auto !important;
    }
    /* 推荐文章侧栏小图保持比例 */
    .tjwz_img {
        width: 110px !important;
        height: 74px !important;
    }
    .wbox p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        padding: 10px 12px !important;
    }
    /* 分页 */
    .pages,
    .page_box {
        text-align: center;
        margin: 20px 0 !important;
    }
    .pages a, .page_box a {
        padding: 4px 9px !important;
        font-size: 13px !important;
    }
}
