.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 20px;
}

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

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover:not(.disabled) {
    color: #0066cc;
    background-color: #f5f5f5;
}

.nav-links a.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

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

.language-switch {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-btn {
    padding: 5px 10px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
}

.lang-btn:hover {
    background-color: #f5f5f5;
}

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

.auth-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.auth-links a:hover {
    color: #0066cc;
}

.divider {
    color: #ddd;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-right {
        gap: 10px;
    }
}

.user-info {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.user-nickname {
    padding: 0 10px;
    color: #333;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.user-info:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.user-dropdown a:hover {
    background-color: #f5f5f5;
}

/* 新增菜单项带角标样式 */
.menu-item-badge {
    position: relative;
    padding-right: 35px !important;
}

.hot-badge {
    position: absolute;
    top: -8px;
    right: 0;
    background-color: #FF4D4F;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(255, 77, 79, 0.2);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
  