/* 导航栏通用样式 */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.logo {
    height: 45px;
    max-width: 160px;
    transition: transform 0.3s ease;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #4A90E2;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 原有的language-selector样式已移动到language-selector.css */
.language-selector {
    /* 这个类现在由language-selector-container代替 */
}

.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 60px;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.login-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.login-btn:hover {
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.member-btn {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.member-btn:hover {
    box-shadow: 0 5px 15px rgba(250, 112, 154, 0.4);
}

.member-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.logout-btn {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
}

.logout-btn:hover {
    box-shadow: 0 5px 15px rgba(252, 182, 159, 0.4);
}

/* 汉堡菜单按钮 - 默认隐藏 */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 汉堡菜单激活状态 */
.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* 显示汉堡菜单按钮 */
    .hamburger-menu {
        display: flex;
    }
    
    /* 导航菜单在移动端变为下拉菜单 */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        gap: 15px;
        z-index: 1001;
    }
    
    /* 移动端菜单激活状态 */
    .nav-menu.mobile-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        text-align: center;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .nav-menu a {
        display: block;
        font-size: 18px;
        padding: 8px 0;
    }
    
    /* 调整右侧按钮区域 */
    .nav-right {
        gap: 10px;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .auth-button {
        font-size: 12px;
        padding: 6px 12px;
        min-width: 50px;
    }
    
    /* 确保容器在移动端有相对定位 */
    .header {
        position: relative;
    }
}
