/* 全新移动端导航系统 - 完全独立设计 */

/* ========== 移动端导航容器 ========== */
@media (max-width: 768px) {
    
    /* 隐藏原有的移动端菜单相关元素 */
    .mobile-menu,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    /* 新的移动端导航容器 */
    .new-mobile-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        z-index: 10000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid #e5e7eb;
    }
    
    /* 新的移动端导航内容 */
    .new-mobile-nav-content {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 16px !important;
        height: 60px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow: hidden !important;
        width: 100% !important;
    }
    
    /* Logo区域 */
    .new-mobile-logo {
        flex-shrink: 0 !important;
        max-width: 60% !important;
        overflow: hidden !important;
    }
    
    .new-mobile-logo img {
        height: 36px !important;
        width: auto !important;
        max-width: 100% !important;
    }
    
    /* 右侧按钮组 */
    .new-mobile-actions {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
        min-width: 0 !important;
        max-width: 35% !important;
        overflow: visible !important;
    }
    
    /* 语言切换按钮 */
    .new-mobile-lang-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        background: #f8f9fa;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        color: #374151;
        transition: all 0.2s ease;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }
    
    .new-mobile-lang-btn:hover {
        background: #e5e7eb;
        border-color: #d1d5db;
    }
    
    .new-mobile-lang-btn img {
        width: 20px;
        height: 15px;
        object-fit: cover;
        border-radius: 2px;
    }
    
    /* 汉堡菜单按钮 */
    .new-mobile-menu-btn {
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        padding: 6px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 4px !important;
        transition: background-color 0.2s ease !important;
        flex-shrink: 0 !important;
        min-width: 36px !important;
    }
    
    .new-mobile-menu-btn:hover {
        background: #f3f4f6;
    }
    
    .new-mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 3px;
        background: #374151;
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    /* 汉堡菜单激活状态 */
    .new-mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .new-mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .new-mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* ========== 移动端菜单面板 ========== */
    
    .new-mobile-menu-panel {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 9999;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .new-mobile-menu-panel.active {
        transform: translateX(0);
    }
    
    /* 菜单内容 */
    .new-mobile-menu-content {
        padding: 20px 0;
    }
    
    /* 主导航菜单 */
    .new-mobile-nav-menu {
        margin: 0;
        padding: 0;
    }
    
    .new-mobile-nav-item {
        display: block;
        width: 100%;
        padding: 16px 20px;
        color: #374151;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.2s ease;
        min-height: 44px;
        box-sizing: border-box;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .new-mobile-nav-item:hover,
    .new-mobile-nav-item:active {
        background: #f8f9fa;
        color: #09a2e6;
        padding-left: 28px;
    }
    
    .new-mobile-nav-item.active {
        background: #e6f3ff;
        color: #09a2e6;
        font-weight: 600;
        border-left: 4px solid #09a2e6;
    }
    
    /* 语言选择区域 */
    .new-mobile-lang-section {
        margin-top: 20px;
        padding: 20px;
        border-top: 1px solid #e5e7eb;
        background: #f8f9fa;
    }
    
    .new-mobile-lang-title {
        font-size: 14px;
        font-weight: 600;
        color: #6b7280;
        margin-bottom: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .new-mobile-lang-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .new-mobile-lang-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 14px;
        color: #374151;
        text-decoration: none;
        min-height: 44px;
        box-sizing: border-box;
    }
    
    .new-mobile-lang-item:hover {
        background: #e6f3ff;
        border-color: #09a2e6;
        color: #09a2e6;
    }
    
    .new-mobile-lang-item.active {
        background: #09a2e6;
        border-color: #09a2e6;
        color: white;
    }
    
    .new-mobile-lang-item img {
        width: 20px;
        height: 15px;
        object-fit: cover;
        border-radius: 2px;
        flex-shrink: 0;
    }
    
    /* 联系按钮区域 */
    .new-mobile-contact {
        padding: 20px;
        border-top: 1px solid #e5e7eb;
    }
    
    .new-mobile-contact-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 16px;
        background: #09a2e6;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s ease;
        text-decoration: none;
        min-height: 44px;
        box-sizing: border-box;
    }
    
    .new-mobile-contact-btn:hover {
        background: #0891d1;
        color: white;
    }
    
    /* 遮罩层 */
    .new-mobile-overlay {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .new-mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* 确保页面内容不被固定导航遮挡 */
    body.new-mobile-nav-active {
        padding-top: 60px;
        overflow: hidden;
    }
    
    /* 隐藏桌面端导航 */
    .nav-center,
    .nav-right {
        display: none !important;
    }
    
    /* 调整原有header */
    .header {
        display: none !important;
    }
    
    /* 专门针对首页Hero Section的修复 */
    body .new-mobile-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 确保Hero Section不会影响移动端导航 */
    .hero .new-mobile-nav,
    .hero-slider .new-mobile-nav,
    .hero-slide .new-mobile-nav {
        position: fixed !important;
        z-index: 99999 !important;
    }
    
    /* 强制移动端导航内容不被覆盖 */
    body .new-mobile-nav .new-mobile-nav-content {
        position: relative !important;
        z-index: 99999 !important;
    }

}

/* 桌面端保持原样 */
@media (min-width: 769px) {
    .new-mobile-nav,
    .new-mobile-menu-panel,
    .new-mobile-overlay {
        display: none !important;
    }
}
