/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
nav {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}
.logo::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shine 3s infinite;
}
@keyframes shine {
    100% { left: 200%; }
}
.logo {
    text-decoration: none; 
}
.logo-text {
    color: #333;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00B4D8;
    transition: width 0.3s;
}

.nav-link:hover {
    color: #7CFC94;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-utils {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* 语言切换样式 */


/* 用户入口样式 */
.user-portal-wrapper {
    position: relative;
}

.user-portal-trigger {
    background: #00B4D8;
    color: #0A192F;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.user-portal-trigger:hover {
    background: #7CFC94;
    transform: translateY(-2px);
}

.user-portal-trigger .fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

/* 用户菜单 */
.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: rgba(10,25,47,0.95);
    border-radius: 6px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.menu-section {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,180,216,0.2);
}

.menu-section:last-child {
    border-bottom: none;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 1.5rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.2s;
}

.menu-item:hover {
    background: rgba(0,180,216,0.1);
    color: #7CFC94;
    padding-left: 1.8rem;
}

/* 登录状态控制 */
[data-logged-in="true"] {
    display: block;
}

[data-logged-in="false"] {
    display: none;
}
@media (max-width: 768px) {
    .user-menu {
        right: -20px;
        width: 180px;
    }
    
    .user-portal-trigger span {
        display: none;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10,25,47,0.95);
        flex-direction: column;
        padding: 1rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}