/* Header样式 */
.header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(18, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 100px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo-image {
    width: 131px;
    height: 45px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: #00d4aa;
}

.nav-links a.active {
    color: #00d4aa;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.language-selector-container {
    position: relative;
    margin-right: 20px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b0b8c1;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s;
}

.language-selector:hover {
    color: white;
}

/* 语言下拉菜单 */
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    z-index: 1000;
    margin-top: 0.5rem;
}

.language-dropdown .dropdown-item {
    color: #333;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.language-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.language-dropdown .dropdown-item:hover {
    background: #f8f9fa;
}

.language-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(0.7);
    transition: filter 0.3s ease;
}

.language-selector:hover .language-icon {
    filter: brightness(0) invert(1);
}

.btn-login {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-login:hover {
    border-color: #00d4aa;
    color: #00d4aa;
}

.btn-signup {
    background: linear-gradient(45deg, #00d4aa, #00b894);
    border: none;
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 212, 170, 0.3);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 170, 0.4);
}

/* 仪表盘链接样式 */
.dashboard-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
    cursor: pointer;
    margin-right: 20px;
}

.dashboard-link:hover {
    color: #00d4aa;
}

.dashboard-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* 用户菜单样式（登录后显示） */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar-container {
    cursor: pointer;
    transition: opacity 0.3s;
}

.user-avatar-container:hover {
    opacity: 0.8;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #00d4aa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 用户下拉菜单 */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    z-index: 1000;
    margin-top: 0.5rem;
}

.user-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.user-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown .dropdown-item:hover {
    background: #f8f9fa;
}

.user-name-item {
    color: #333;
    font-weight: 500;
    cursor: default;
}

.user-name-item:hover {
    background: transparent;
}

.logout-item {
    color: #dc3545;
    font-weight: 500;
}

.logout-item:hover {
    background: #fff5f5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .logo {
        margin-right: 50px;
    }
    
    .header-right {
        gap: 1rem;
    }
    
    .btn-login, .btn-signup {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}
