/* ========================================
   全新移动端菜单样式 - 简洁可靠
   ======================================== */

/* 基础重置 */
* {
    box-sizing: border-box;
}

/* 企业导航头部容器 */
.enterprise-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* ========================================
   顶部信息栏样式
   ======================================== */
.top-info-bar {
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    min-height: 40px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.top-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 24px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #fff;
}

.contact-item i {
    color: #4a90e2;
    font-size: 12px;
    min-width: 12px;
}

/* ========================================
   主导航栏样式
   ======================================== */
.main-navbar {
    background: #fff;
    padding: 0;
    min-height: 80px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo区域 */
.navbar-brand-area {
    flex-shrink: 0;
    margin-right: 30px;
}

.brand-link {
    display: inline-block;
    padding: 10px 0;
    text-decoration: none;
}

.brand-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.brand-link:hover .brand-logo {
    transform: scale(1.05);
}

/* 桌面端导航菜单 */
.desktop-menu {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 25px 20px;
    color: #333;
    font-family: "SimHei", "黑体", "Microsoft YaHei", "微软雅黑", "Heiti SC", "Heiti TC", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.menu-link:hover {
    color: #4a90e2;
    text-decoration: none;
}

.menu-link i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .menu-link i {
    transform: rotate(180deg);
}

/* 导航链接下划线效果 */
.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.menu-link:hover::after,
.menu-item.active .menu-link::after {
    transform: scaleX(1);
}

/* 下拉菜单面板 */
.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e8e8e8;
}

.has-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    padding: 20px 0;
}

.dropdown-section {
    padding: 0 20px 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

.dropdown-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-title a:hover {
    color: #4a90e2;
}

.section-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-link {
    display: block;
    padding: 8px 12px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    background: #f8f9ff;
    color: #4a90e2;
    text-decoration: none;
    transform: translateX(5px);
}

.single-link {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.single-link:last-child {
    border-bottom: none;
}

/* ========================================
   移动端菜单按钮 - 全新设计
   ======================================== */
.mobile-menu-btn {
    display: none;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
}

.mobile-menu-btn .bar {
    display: block;
    width: 24px;
    height: 3px;
    background: #333;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn:hover .bar {
    background: #4a90e2;
}

.mobile-menu-btn.active .bar1 {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active .bar2 {
    opacity: 0;
}

.mobile-menu-btn.active .bar3 {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   移动端全屏菜单 - 从右侧滑出
   ======================================== */
.mobile-fullscreen-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
}

.mobile-fullscreen-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 2px solid #f0f0f0;
    background: #fafafa;
    position: sticky;
    top: 0;
    z-index: 10001;
}

.mobile-logo img {
    height: 35px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    background: #ff4757;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.3);
    flex-shrink: 0;
}

.mobile-menu-close:hover {
    background: #ff3742;
    transform: scale(1.05);
}

.mobile-menu-body {
    padding: 0;
}

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

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

/* 有子菜单的导航项 */
.mobile-nav-item.has-submenu .mobile-nav-header {
    display: flex;
    align-items: center;
    position: relative;
    padding: 10px;
}

.mobile-nav-link {
    display: block;
    padding: 10px 20px 10px 10px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    background: #ffffff;
}

.mobile-nav-link:hover {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #fff;
    text-decoration: none;
}

/* 子菜单展开按钮 */
.submenu-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.submenu-btn:hover {
    background: #4a90e2;
    color: #fff;
    border-color: #4a90e2;
}

.submenu-btn.active {
    background: #4a90e2;
    color: #fff;
    border-color: #4a90e2;
}

.submenu-btn i {
    transition: transform 0.3s ease;
}

.submenu-btn.active i {
    transform: rotate(180deg);
}

/* 移动端子菜单 */
.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
    z-index: 1000;
}

.mobile-submenu.active {
    max-height: 1000px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
}

.mobile-submenu-item {
    border-bottom: 1px solid #e9ecef;
    padding: 10px;
}

.mobile-submenu-item:last-child {
    border-bottom: none;
}

.mobile-submenu-link {
    display: block;
    padding: 15px 20px 15px 50px;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    background: #f8f9fa;
}

.mobile-submenu-link::before {
    content: '→';
    position: absolute;
    left: 30px;
    color: #4a90e2;
    font-weight: bold;
    transition: all 0.3s ease;
}

.mobile-submenu-link:hover {
    background: #e9ecef;
    color: #4a90e2;
    text-decoration: none;
    padding-left: 55px;
}

.mobile-submenu-link:hover::before {
    left: 35px;
    transform: scale(1.2);
}

/* 移动端联系信息 */
.mobile-contact-info {
    margin: 20px 15px 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.mobile-contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #495057;
    font-size: 13px;
    font-weight: 500;
}

.mobile-contact-info .contact-item i {
    color: #4a90e2;
    width: 14px;
    font-size: 13px;
    flex-shrink: 0;
}

/* 移动端遮罩 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   响应式设计
   ======================================== */

/* 平板设备 */
@media (max-width: 991.98px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .contact-item.d-none.d-md-inline-flex {
        display: none !important;
    }
}

/* 手机设备 */
@media (max-width: 767.98px) {
    .top-info-bar {
        min-height: 35px;
        padding: 6px 0;
    }
    
    .main-navbar {
        min-height: 70px;
    }
    
    .navbar-content {
        min-height: 70px;
    }
    
    .brand-logo {
        height: 50px;
    }
    
    .contact-info {
        gap: 20px;
    }
    
    .contact-item {
        font-size: 12px;
    }
}

/* 超小设备 */
@media (max-width: 575.98px) {
    .contact-info {
        gap: 15px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .contact-item:last-child {
        display: none;
    }
    
    .brand-logo {
        height: 45px;
    }
}

/* 滚动状态样式 */
.enterprise-header.scrolled {
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.enterprise-header.scrolled .top-info-bar {
    min-height: 35px;
    padding: 5px 0;
}

.enterprise-header.scrolled .main-navbar {
    min-height: 70px;
}

.enterprise-header.scrolled .brand-logo {
    height: 50px;
}

/* 禁用旧样式 */
.header-corporate,
.top-bar,
.main-navigation,
.mobile-navigation,
.mobile-toggle {
    display: none !important;
}