/**
 * 移动端汉堡菜单按钮 - 现代美观设计
 * Modern & Beautiful Mobile Menu Button
 */

@media (max-width: 767px) {
    
    /* 美观的汉堡按钮设计 */
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 48px !important;
        height: 48px !important;
        position: relative !important;
        background: linear-gradient(135deg, #0085cd 0%, #0066a1 100%) !important;
        border: none !important;
        border-radius: 12px !important;
        cursor: pointer !important;
        z-index: 1002 !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 12px !important;
        margin-left: auto !important;
        margin-right: 15px !important;
        box-shadow: 0 4px 12px rgba(0, 133, 205, 0.25), 
                    0 2px 6px rgba(0, 0, 0, 0.1) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transform: scale(1) !important;
    }
    
    /* 按钮悬停效果 */
    .mobile-menu-toggle:hover {
        transform: scale(1.05) !important;
        box-shadow: 0 6px 16px rgba(0, 133, 205, 0.35), 
                    0 3px 8px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* 按钮按下效果 */
    .mobile-menu-toggle:active {
        transform: scale(0.95) !important;
    }
    
    /* 汉堡按钮的三条横线 - 现代设计 */
    .mobile-menu-toggle span {
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        background: white !important;
        border-radius: 2px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        pointer-events: none !important;
        position: relative !important;
    }
    
    /* 添加微妙的内阴影效果 */
    .mobile-menu-toggle span::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
        transform: scaleY(0.5);
        transition: transform 0.3s ease;
    }
    
    /* 激活状态 - X形变换 */
    .mobile-menu-toggle.active {
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%) !important;
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25), 
                    0 2px 6px rgba(0, 0, 0, 0.1) !important;
    }
    
    .mobile-menu-toggle.active span {
        background: white !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg) !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
        transform: scaleX(0) !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg) !important;
    }
    
    /* Logo区域中的汉堡按钮定位 */
    .h201_main .head201 {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative !important;
    }
    
    .h201_main .mobile-menu-toggle {
        display: flex !important;
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    /* 导航区域中的汉堡按钮 */
    .na201 {
        position: relative !important;
    }
    
    .na201 .mobile-menu-toggle {
        display: flex !important;
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    /* 确保按钮在激活菜单时保持可见 */
    body.menu-open .mobile-menu-toggle {
        display: flex !important;
        position: fixed !important;
        top: 20px !important;
        right: 15px !important;
        z-index: 1003 !important;
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%) !important;
    }
    
    /* 响应式调整 - 小屏幕 */
    @media (max-width: 480px) {
        .mobile-menu-toggle {
            width: 44px !important;
            height: 44px !important;
            margin-right: 10px !important;
        }
        
        .mobile-menu-toggle span {
            width: 18px !important;
        }
    }
    
    /* 确保在低端设备上的性能 */
    .mobile-menu-toggle,
    .mobile-menu-toggle span {
        will-change: transform, background !important;
        backface-visibility: hidden !important;
    }
}

/* 桌面端隐藏 */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}
