/* ========================================
   大脑营行 - 移动端优先样式
   所有样式都包裹在媒体查询内，不影响PC端
   ======================================== */

/* ========== PC端隐藏移动端元素 ========== */
@media (min-width: 992px) {
    .mobile-menu-overlay,
    .mobile-drawer {
        display: none !important;
        visibility: hidden !important;
    }

    .navmore {
        display: none !important;
    }
}

/* ========== 移动端样式（所有小于992px的设备） ========== */
@media (max-width: 991px) {

    /* 强制显示汉堡按钮 - 最高优先级 */
    .navmore {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        right: 15px !important;
        top: 18px !important;
        width: 30px !important;
        height: 24px !important;
        cursor: pointer !important;
        z-index: 100001 !important;
        pointer-events: auto !important;
    }

    /* 汉堡按钮三条线 */
    .navmore::before,
    .navmore::after,
    .navmore span {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        width: 30px !important;
        height: 3px !important;
        background: #FFFFFF !important;
        transition: all 0.3s ease !important;
    }

    .navmore::before {
        top: 0 !important;
    }

    .navmore span {
        top: 10px !important;
    }

    .navmore::after {
        top: 20px !important;
    }

    /* 隐藏老的PC导航菜单 */
    .nav-main {
        display: none !important;
    }

    .tellbox {
        display: none !important;
    }

    /* 移动端导航栏 */
    .nav-container {
        height: 60px !important;
    }

    .nav-box {
        height: 60px !important;
    }

    .logo {
        height: 60px !important;
    }

    .logo .logoimg {
        height: 35px !important;
        margin-top: 12px !important;
    }

    /* 强制显示抽屉菜单元素 - 最高优先级 */
    .mobile-menu-overlay {
        display: block !important;
        visibility: visible !important;
        opacity: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 999999 !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease !important;
    }

    .mobile-menu-overlay.open {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .mobile-drawer {
        display: block !important;
        visibility: visible !important;
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        width: 280px !important;
        height: 100vh !important;
        background: #FFFFFF !important;
        z-index: 9999999 !important;
        transition: left 0.3s ease !important;
        overflow-y: auto !important;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1) !important;
    }

    .mobile-drawer.open {
        left: 0 !important;
    }

    .mobile-drawer-header {
        background: linear-gradient(135deg, #2A3A8C 0%, #1a2356 100%);
        padding: 20px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-drawer-logo {
        display: flex;
        align-items: center;
        color: #FFFFFF;
        font-size: 18px;
        font-weight: 600;
    }

    .mobile-drawer-logo img {
        height: 28px;
        margin-right: 10px;
    }

    .mobile-drawer-close {
        width: 30px;
        height: 30px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 50%;
        color: #FFFFFF;
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-drawer-nav {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .mobile-drawer-nav > li {
        border-bottom: 1px solid #F0F0F0;
    }

    .mobile-drawer-nav > li > a {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        color: #333333;
        font-size: 15px;
        text-decoration: none;
    }

    .mobile-drawer-nav > li > a:hover {
        background: #F8F9FA;
    }

    .mobile-drawer-nav > li > a .arrow {
        margin-left: auto;
        transition: transform 0.3s;
    }

    .mobile-drawer-nav > li.expanded > a .arrow {
        transform: rotate(90deg);
    }

    .mobile-drawer-subnav {
        background: #F8F9FA;
        padding: 0;
        margin: 0;
        list-style: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .mobile-drawer-nav > li.expanded .mobile-drawer-subnav {
        max-height: 500px;
    }

    .mobile-drawer-subnav li {
        border-bottom: 1px solid #EEEEEE;
    }

    .mobile-drawer-subnav li a {
        display: block;
        padding: 12px 20px 12px 56px;
        color: #666666;
        font-size: 14px;
        text-decoration: none;
    }

    .mobile-drawer-footer {
        padding: 20px;
        background: #F8F9FA;
        border-top: 1px solid #EEEEEE;
    }

    .mobile-drawer-footer p {
        color: #999999;
        font-size: 12px;
        margin-bottom: 5px;
    }

    .mobile-drawer-footer .hotline {
        color: #FF6600;
        font-size: 18px;
        font-weight: 600;
    }

    /* Banner适配 */
    .banner-container {
        margin-top: 60px !important;
        height: 300px !important;
        min-height: 300px !important;
    }

    .banner-slider {
        height: 100% !important;
    }

    .slide {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .slide.active {
        opacity: 1 !important;
        z-index: 2 !important;
    }

    .banner-img {
        width: 100% !important;
        height: auto !important;
    }

    /* 页脚适配 */
    .footerbox {
        padding: 30px 15px !important;
    }

    .footer-logo,
    .footer-neirong,
    .nav-lianjie,
    .footer-ewm {
        float: none !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .lianjie {
        width: 100% !important;
        text-align: center !important;
    }

    .nav-xinxi {
        float: none !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 15px !important;
    }

    .nav-lianjie {
        float: none !important;
        width: 100% !important;
        text-align: center !important;
    }

    .nav-lianjie a {
        display: inline-block !important;
        margin: 5px 10px !important;
    }

    /* 金刚区适配 */
    .jingang-box {
        padding: 20px 10px !important;
    }

    .jingang-item {
        width: 25% !important;
        padding: 10px !important;
    }

    /* 气泡模块适配 */
    .qipao-box {
        padding: 20px 10px !important;
    }

    .qipao-item {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto 20px !important;
        float: none !important;
    }

    /* 会务模块适配 */
    .huiwubox {
        width: 100% !important;
        padding: 20px 10px !important;
        box-sizing: border-box !important;
    }

    .huiwu-item {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }

    .huiwu_sum {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        padding: 0 10px !important;
    }

    .huiwu_content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
        float: none !important;
        height: auto !important;
        min-height: 250px !important;
    }

    .hw_title {
        font-size: 24px !important;
        line-height: 60px !important;
    }

    .hw_longtext {
        font-size: 16px !important;
        padding: 15px 20px 0 20px !important;
    }

    .hw_sz {
        font-size: 80px !important;
    }

    /* 新闻图标适配 */
    .xwicon img {
        width: 80px !important;
        height: 80px !important;
    }

    /* 全局防溢出 */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
}

/* ========== 超小屏幕（<576px） ========== */
@media (max-width: 575px) {
    .jingang-item {
        width: 50% !important;
    }
}

/* ========== 其他页面移动端适配 ========== */
@media (max-width: 991px) {
    /* 关于我们页面 (about.html) */
    .gywm {
        width: 100% !important;
        padding: 40px 15px !important;
        box-sizing: border-box !important;
    }

    .gywm_text {
        font-size: 14px !important;
        line-height: 24px !important;
        padding: 0 10px !important;
    }

    .jigou {
        height: auto !important;
        padding: 40px 15px !important;
        background-size: cover !important;
    }

    .shiming {
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    .shiming_one {
        float: none !important;
        width: 100% !important;
        max-width: 300px !important;
        height: auto !important;
        margin: 0 auto 30px !important;
        padding: 20px !important;
    }

    .tuandui {
        padding: 40px 15px !important;
    }

    .team_new {
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    .team_su {
        width: 100% !important;
        height: 200px !important;
        background-size: cover !important;
        background-position: center !important;
    }

    .su_text {
        width: 90% !important;
        left: 5% !important;
        font-size: 14px !important;
        bottom: 15px !important;
    }

    .team_li_shen {
        padding: 0 10px !important;
    }

    .li_box, .shen_box {
        float: none !important;
        width: 100% !important;
        height: 200px !important;
        margin: 0 0 20px 0 !important;
        background-size: cover !important;
        background-position: center !important;
    }

    .li_text, .shen_text {
        width: 40% !important;
        left: 55% !important;
        font-size: 14px !important;
    }

    /* 公司组织架构 */
    .jiagoubox {
        padding: 40px 15px !important;
    }

    .jiagoubox img {
        width: 100% !important;
        height: auto !important;
    }

    /* 证书区域 (about.html) */
    .columnB {
        padding: 40px 15px !important;
    }

    .columnz {
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    .team {
        padding: 10px 0 !important;
    }

    .person {
        float: left !important;
        width: 50% !important;
        margin: 0 0 15px 0 !important;
        padding: 0 8px !important;
        box-sizing: border-box !important;
    }

    .person-img {
        width: 100% !important;
        height: auto !important;
    }

    .person-img img {
        width: 100% !important;
        height: auto !important;
    }

    .per-name {
        font-size: 12px !important;
        padding-left: 10px !important;
    }

    /* 课程页面 (course.html) */
    .kecheng1, .kecheng {
        width: 100% !important;
        margin: 20px auto !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    .kecheng_title {
        width: 100% !important;
        padding: 20px 15px !important;
    }

    .kecheng_title .kc_name {
        font-size: 24px !important;
        display: block !important;
        margin-bottom: 10px !important;
    }

    .kecheng_title .miaoshu {
        font-size: 14px !important;
        display: block !important;
        width: 100% !important;
    }

    .kecheng_box {
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        padding: 15px !important;
        margin-bottom: 20px !important;
    }

    .kecheng_xq {
        overflow: visible !important;
    }

    .kecheng_xq .kc_img {
        float: none !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 15px !important;
    }

    .kc_img img {
        width: 100% !important;
        height: auto !important;
    }

    .kecheng_xq .kc_miaoshu {
        float: none !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    .kc_xqname {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }

    .kc_xqname span {
        display: block !important;
        font-size: 14px !important;
        margin-left: 0 !important;
        margin-top: 5px !important;
    }

    .kc_miaoshu .miaoshu_text {
        font-size: 14px !important;
    }

    .kcbtn {
        width: 150px !important;
        font-size: 16px !important;
    }

    .kc_t {
        width: 100% !important;
        font-size: 14px !important;
    }

    .bigke {
        overflow: visible !important;
    }

    .bigke .kecheng_box {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
    }

    .bigke .kecheng_box .shuoming {
        width: 100% !important;
    }

    .bigke .kecheng_xq .kc_img {
        width: 100% !important;
        height: auto !important;
    }

    .shuoming {
        width: 100% !important;
        font-size: 14px !important;
    }

    /* 新闻页面 (news.html) */
    .news_yemian {
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    .news_left, .news_right {
        float: none !important;
        width: 100% !important;
    }

    .news_right {
        margin-top: 30px !important;
    }

    .listbox {
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    .title {
        width: 100% !important;
        font-size: 22px !important;
        padding: 0 15px !important;
    }

    .titlez {
        padding: 30px 0 20px 0 !important;
    }

    .single {
        padding: 15px 10px !important;
        flex-direction: column !important;
    }

    .single .riqi {
        margin-bottom: 10px !important;
    }

    .single .listtext {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .listitle {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }

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

    .single .listimg {
        width: 100% !important;
        text-align: center !important;
    }

    .single .listimg img {
        max-width: 100% !important;
        height: auto !important;
    }

    .xinwen {
        width: 100% !important;
        margin-top: 80px !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    .mianbaoxue {
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    .xinwen .newtitle {
        font-size: 20px !important;
    }

    .xinwen .newtime {
        width: 100% !important;
        font-size: 12px !important;
    }

    .xinwen .newtext {
        font-size: 14px !important;
        line-height: 26px !important;
    }

    /* 案例详情页左右布局 */
    .news_yemian {
        width: 100% !important;
        padding: 0 !important;
    }

    .news_left {
        float: none !important;
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    .news_right {
        float: none !important;
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        margin-top: 20px !important;
    }

    /* 行业分类 */
    .fenleibox {
        padding: 15px !important;
    }

    .fenleibox ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .fenleibox li {
        float: none !important;
        margin: 0 !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    /* 排行榜 */
    .paihang {
        margin-top: 15px !important;
        padding: 15px !important;
    }

    .tabboxzong li {
        padding: 0 30px !important;
        font-size: 12px !important;
    }

    .ph_content ul li {
        line-height: 36px !important;
    }

    .ph_content ul li div {
        font-size: 13px !important;
        max-width: calc(100% - 35px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* 新闻列表 */
    .companynew {
        width: 100% !important;
        padding: 0 15px !important;
    }

    .newlist {
        width: 100% !important;
    }

    /* 新闻详情页 */
    .news_detail_box {
        width: 100% !important;
        padding: 15px !important;
    }

    /* 服务页面 (services.html) */
    .aboutArticle {
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    .page_list {
        width: 100% !important;
    }

    .service_list {
        width: 100% !important;
    }

    .service_list li {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
    }

    .service_list .img1 {
        float: none !important;
        width: 80px !important;
        margin: 0 auto 15px !important;
    }

    .service_list .img1 img {
        width: 80px !important;
        height: auto !important;
    }

    .service_list .web {
        float: none !important;
        width: 100% !important;
        text-align: center !important;
    }

    .service_list .tit h3 {
        font-size: 18px !important;
    }

    .service_list .tit h4 {
        font-size: 14px !important;
    }

    .service_list .text p {
        font-size: 14px !important;
        text-align: left !important;
    }

    /* 团队页面 (team.html) */
    .location {
        padding: 10px 15px !important;
    }

    .loactionCont {
        width: 100% !important;
    }

    .locationInfor {
        font-size: 12px !important;
    }

    .team_list {
        width: 100% !important;
    }

    .team_list ul {
        width: 100% !important;
        padding: 0 !important;
    }

    .team_list li {
        width: 50% !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }

    .team_list .img {
        width: 100% !important;
    }

    .team_list .img img {
        width: 100% !important;
        height: auto !important;
    }

    .team_list .web h3 {
        font-size: 14px !important;
    }

    .team_list .web p {
        font-size: 12px !important;
    }

    /* 通用页面元素适配 */
    .lanmu_title {
        margin-bottom: 20px !important;
    }

    .lanmu_title img {
        width: 30px !important;
        height: auto !important;
    }

    .lanmu_title span {
        font-size: 20px !important;
        margin: 0 10px !important;
    }

    .jiazhi {
        width: 100% !important;
        padding: 40px 15px !important;
        box-sizing: border-box !important;
    }

    .column {
        width: 100% !important;
        padding: 0 15px 40px !important;
        box-sizing: border-box !important;
    }

    .products {
        width: 100% !important;
    }

    .pro-sigle {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
    }

    .cmpnimg {
        width: 100% !important;
        height: auto !important;
    }

    .pro-text {
        width: 100% !important;
        height: auto !important;
        padding: 10px !important;
    }

    /* Banner轮播适配 */
    .banner {
        margin-top: 60px !important;
    }

    .banner .swiper-container {
        height: 200px !important;
    }

    .banner .swiper-slide img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
    }

    /* 分页适配 */
    .pagbigbox {
        width: 100% !important;
        overflow-x: auto !important;
    }

    .pagebox {
        min-width: 100% !important;
    }

    .pagination {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* 相关推荐 */
    .tuijian {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }

    .tj_title {
        font-size: 15px !important;
        margin-bottom: 10px !important;
    }

    .tj_list ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        overflow: visible !important;
    }

    .tj_list ul li {
        float: none !important;
        width: calc(50% - 8px) !important;
        margin: 0 !important;
    }

    .tj_img img {
        height: 100px !important;
        object-fit: cover !important;
    }

    .tj_text {
        font-size: 12px !important;
        margin-top: 8px !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* 案例详情内容 */
    .newdetail {
        padding: 15px !important;
    }

    /* 案例页面 */
    .cases_list {
        width: 100% !important;
        padding: 0 15px !important;
    }

    .case_item {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    /* 页面通用 */
    .page {
        padding: 20px 0 !important;
    }

    .wrap {
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    .ht100 {
        height: 50px !important;
    }

    /* 登录页面 */
    .login_box {
        width: 95% !important;
        max-width: 400px !important;
        padding: 30px 20px !important;
        margin: 100px auto !important;
    }

    .login_title {
        font-size: 24px !important;
    }

    /* 报名页面 */
    .baoming_form {
        width: 100% !important;
        padding: 20px 15px !important;
    }

    .form_group {
        margin-bottom: 15px !important;
    }

    .form_group label {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        margin-bottom: 5px !important;
    }

    .form_group input,
    .form_group select,
    .form_group textarea {
        width: 100% !important;
    }
}

/* 超小屏幕适配 (≤ 480px) */
@media screen and (max-width: 480px) {
    /* 相关推荐改为单列 */
    .tj_list ul li {
        width: 100% !important;
    }

    .tj_img img {
        height: 120px !important;
    }

    /* 行业分类 */
    .fenleibox li {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    /* 排行榜 */
    .tabboxzong li {
        padding: 0 20px !important;
    }

    /* 新闻详情 */
    .xinwen .newtitle {
        font-size: 18px !important;
    }
}
