/* 汉堡菜单移动端修复样式 - 高优先级 */

@media (max-width: 768px) {
    /* 确保汉堡菜单按钮显示 */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        z-index: 1001 !important;
        width: 44px !important;
        height: 44px !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
    }
    
    /* 确保导航菜单在移动端正确隐藏和显示 */
    .unified-nav {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%) !important;
        flex-direction: column !important;
        padding: 24px !important;
        box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        z-index: 1000 !important;
        
        /* 关键：默认隐藏状态 */
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* 菜单打开状态 */
    .unified-nav.mobile-nav-open {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 500px !important;
        overflow: visible !important;
    }
    
    /* 导航链接样式 */
    .unified-nav a {
        padding: 16px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin: 0 !important;
        border-radius: 0 !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        width: 100% !important;
        text-align: left !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }
    
    .unified-nav a:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: white !important;
    }
    
    .unified-nav a:last-child {
        border-bottom: none !important;
    }
    
    /* 引用按钮特殊样式 */
    .nav-quote-btn {
        background: linear-gradient(135deg, var(--quote-orange) 0%, var(--commercial-warning) 100%) !important;
        margin-top: 16px !important;
        border-radius: 12px !important;
        text-align: center !important;
        font-weight: 700 !important;
    }
    
    /* 汉堡菜单动画 */
    .hamburger-line {
        width: 24px !important;
        height: 3px !important;
        background: white !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
        display: block !important;
        margin: 3px 0 !important;
    }
    
    /* 激活状态的汉堡菜单动画 */
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px) !important;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0 !important;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px) !important;
    }
    
    /* 确保页面容器不被菜单影响 */
    .header-container {
        position: relative !important;
    }
}

/* 确保PC端正常显示 */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .unified-nav {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-height: none !important;
        background: none !important;
        flex-direction: row !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }
}