.main-nav {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo样式 */
.nav-logo {
    flex: 0 0 auto;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.05);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15);
}

/* 导航菜单样式 */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.nav-link {
    color: #666666;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 15px;
    transition: color 0.3s;
    letter-spacing: 2px;
}

.nav-link:hover {
    color: #1e90ff;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 8px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #666666;
    text-decoration: none;
    padding: 8px 16px;
    display: block;
    transition: all 0.3s;
    font-size: 16px;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* 用户区域样式 */
.user-area {
    flex: 0 0 auto;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn,
.register-btn {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.login-btn:hover,
.register-btn:hover {
    color: #007bff;
}

.divider {
    color: #ddd;
}

/* 用户信息下拉菜单 */
.user-profile {
    position: relative;
}

.user-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile .dropdown-content {
    right: 0;
    left: auto;
    min-width: 220px;
}

.membership-info {
    padding: 8px 16px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 4px 0;
    font-size: 13px;
    color: #666;
}

.logout-link {
    color: #dc3545 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 20px;
    }

    .mobile-menu-btn {
        display: block;
    }
}