/**
 * 移动端导航栏增强样式
 * Enhanced Mobile Navigation Bar
 * 最高优先级，覆盖所有导航样式
 */

@media (max-width: 767px) {
    
    /* ==========================================
       顶部通知栏优化
       ========================================== */
    .top201 {
        height: auto !important;
        padding: 8px 0 !important;
        background: #f8f9fa !important;
    }
    
    .top201 .w201 {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 10px !important;
    }
    
    .top201 .zc201 {
        width: 100% !important;
        text-align: center !important;
        font-size: 11px !important;
        line-height: 1.5 !important;
        color: #666 !important;
    }
    
    .top201 .r201 {
        display: none !important;
    }

    /* ==========================================
       Logo区域优化
       ========================================== */
    .h201_main {
        padding: 10px 0 !important;
        background: #fff !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    }
    
    .head201 {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 15px !important;
    }
    
    .logo201 {
        width: auto !important;
        max-width: 140px !important;
    }
    
    .logo201 img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .ss201 {
        display: none !important;
    }

    /* ==========================================
       移动端导航栏（隐藏桌面导航）
       ========================================== */
    .nav201 {
        display: none !important; /* 完全隐藏导航栏 */
    }
    
    /* 汉堡菜单按钮显示在Logo区域 */
    .h201_main .mobile-menu-toggle {
        display: flex !important;
        position: relative !important;
        margin-left: auto !important;
        width: 44px !important;
        height: 44px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        padding: 10px !important;
        cursor: pointer !important;
        z-index: 1002 !important;
    }
    
    .h201_main .mobile-menu-toggle span {
        display: block !important;
        width: 24px !important;
        height: 2px !important;
        background: #333 !important;
        border-radius: 2px !important;
        transition: all 0.3s !important;
    }
    
    .h201_main .mobile-menu-toggle.active span {
        background: #0085cd !important;
    }
    
    /* 如果汉堡按钮不在head201中，在na201中显示 */
    .na201 .mobile-menu-toggle {
        display: flex !important;
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 44px !important;
        height: 44px !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        cursor: pointer !important;
        z-index: 1002 !important;
    }
    
    .na201 .mobile-menu-toggle span {
        display: block !important;
        width: 24px !important;
        height: 2px !important;
        background: #333 !important;
        border-radius: 2px !important;
    }

    /* ==========================================
       确保全屏菜单正常工作
       ========================================== */
    .nav201 .list201.active {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 1001 !important;
    }
    
    /* 确保body有menu-open类时，汉堡按钮在最上层 */
    body.menu-open .mobile-menu-toggle {
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        z-index: 1003 !important;
    }

    /* ==========================================
       页面内容区域
       ========================================== */
    
    /* 确保内容不被粘性导航遮挡 */
    .wrapper,
    .nybanner {
        margin-top: 0 !important;
    }
    
    /* Hero轮播图顶部对齐 */
    .b182 {
        margin-top: 0 !important;
    }

    /* ==========================================
       优化导航栏过渡动画
       ========================================== */
    .nav201,
    .nav201 .list201 {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
}

/* ==========================================
   平板适配（768px - 991px）
   ========================================== */
@media (min-width: 768px) and (max-width: 991px) {
    /* 平板显示简化的桌面导航 */
    .nav201 {
        display: block !important;
    }
    
    .nav201 .list201 {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        padding: 5px !important;
        gap: 5px !important;
    }
    
    .nav201 .list201 > li > a {
        padding: 8px 15px !important;
        font-size: 14px !important;
    }
    
    .nav201 .list201 > li > a span {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ==========================================
   确保汉堡按钮在正确位置
   ========================================== */
@media (max-width: 767px) {
    /* 将汉堡按钮移动到Logo区域 */
    .na201 .mobile-menu-toggle {
        display: none !important;
    }
    
    /* 在head201区域创建汉堡按钮位置 */
    .head201:after {
        content: '';
        width: 40px;
        height: 40px;
    }
}
