/* 导航栏样式 */
:root {
    --nav-green: #2ecc71;
    --nav-blue: #3498db;
    --nav-dark: #1e272e;
    --nav-light-green: #e8f8f2;
    --nav-light-blue: #e3f2fd;
    --gradient-nav: linear-gradient(135deg, #3498db, #2ecc71);
    --white: #ffffff;
    --border-color: #eaeaea;
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    background-color: var(--nav-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    padding-left: 15px;
}

.logo img {
    max-height: 45px;
    transition: all 0.3s ease;
    filter: brightness(1.05) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo a {
    display: flex;
    align-items: center;
}

.logo a::after {
    content: '光遇';
    color: white;
    font-size: 1.6rem;
    font-weight: 600;
    margin-left: 10px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 4px;
    color: var(--white);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-nav);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--nav-green);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link.active {
    color: var(--nav-green);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--nav-green);
    border-radius: 3px;
}

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

.login-btn {
    padding: 8px 16px;
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-2px);
}

.signup-btn {
    padding: 8px 16px;
    background-color: var(--nav-green);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.signup-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--nav-green);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 导航栏滚动效果 */
#navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background-color: rgba(52, 152, 219, 0.95);
}

#navbar.scrolled .logo img {
    max-height: 38px;
}

#navbar.scrolled .logo a::after {
    font-size: 1.4rem;
}

/* 响应式导航栏 */
@media (max-width: 992px) {
    .auth-buttons {
        display: none;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 80px);
        flex-direction: column;
        background-color: var(--nav-blue);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transition: right 0.3s ease;
        gap: 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        padding: 15px 10px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-link.active {
        background-color: rgba(46, 204, 113, 0.15);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 7px);
        background-color: var(--nav-blue);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -7px);
        background-color: var(--nav-blue);
    }
    
    /* 在移动端菜单中显示登录按钮 */
    .auth-buttons-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding: 15px 10px;
    }
    
    .auth-buttons-mobile .login-btn,
    .auth-buttons-mobile .signup-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
} 