/* 新增导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.navbar-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    gap: 3rem;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ccc;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
}

.nav-links a.active {

    border-bottom: 2px solid #ffffff;
}

/* 响应式设计 */
@media (max-width: 999px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 1rem;
    }

    .hamburger {
        display: block;
    }
}