/* 统一导航栏样式 */
.global-nav {
    font-family: var(--font-primary);
    margin-top: 20px;
}

.global-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.global-nav li {
    margin: 0;
}

.global-nav a {
    color: #333 !important;
    font-size: 16px;
    font-weight: 500 !important;
    text-decoration: none;
    padding-bottom: 5px;
    position: relative;
}

.global-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #333;
    transition: width 0.3s ease;
}

.global-nav a:hover::after {
    width: 100%;
}

.global-nav a:hover {
    color: #333 !important;
    font-weight: 500 !important;
}

.contact-nav-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff !important;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.contact-nav-btn:hover {
    background-color: #2980b9;
}

.contact-nav-btn::after {
    display: none;
}

/* 移动端导航栏样式 */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    width: 30px;
    height: 25px;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    position: absolute;
    left: 0;
    margin: 0;
    transition: all 0.3s;
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-btn span:nth-child(3) {
    bottom: 0;
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        position: relative;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 15px 20px;
    }
    
    .logo {
        display: flex;
        align-items: center;
        margin-right: auto;
    }
    
    .language-selector {
        position: relative;
        margin-left: 0;
        margin-right: auto;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    .global-nav {
        position: fixed;
        top: 0;
        left: -80%; /* 初始隐藏在屏幕左侧 */
        width: 80%; /* 增加宽度占据更多空间 */
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 1000;
        transition: left 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: flex-start; /* 对齐方式改为顶部对齐 */
        justify-content: flex-start;
        padding-top: 80px; /* 增加顶部空间 */
        box-shadow: none;
        overflow-y: auto; /* 添加滚动条支持 */
    }
    
    .global-nav.active {
        left: 0; /* 展开时显示在屏幕左侧 */
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* 添加阴影效果 */
    }
    
    .global-nav ul {
        flex-direction: column;
        gap: 0; /* 减少间距 */
        text-align: left; /* 文字左对齐 */
        width: 100%; /* 占满整个宽度 */
    }
    
    .global-nav li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* 添加分隔线 */
    }
    
    .global-nav a {
        font-size: 16px;
        padding: 15px 25px; /* 增加点击区域 */
        display: block; /* 块级元素便于点击 */
        transition: background-color 0.2s ease;
    }
    
    .global-nav a:hover {
        background-color: rgba(0, 0, 0, 0.03); /* 悬停效果 */
    }
    
    /* 添加当前页面标记 */
    .global-nav li.active a {
        border-left: 4px solid #2a5caa;
        background-color: rgba(42, 92, 170, 0.05);
        padding-left: 21px; /* 25px - 4px */
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }
}    