.navbar {
    background-color: var(--primary-color);
    padding: 1.2rem 2rem; /* Increased from 0.8rem 1.5rem */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: var(--text-light);
    font-size: 1.5rem; /* Increased from 1.3rem */
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    width: 36px; /* Increased from 32px */
    height: 36px; /* Increased from 32px */
    object-fit: cover;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem; /* Increased from 1.5rem */
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem; /* Increased from 0.95rem */
    padding: 0.8rem 1.2rem; /* Increased from 0.5rem 0.8rem */
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a.active {
    color: var(--secondary-color);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}



/* 汉堡菜单按钮 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    outline: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem; /* Increased from 0.6rem 1rem */
        position: relative;
    }

    .nav-brand {
        font-size: 1.3rem; /* Increased from 1.1rem */
    }

    /* 显示汉堡菜单 */
    .hamburger {
        display: flex;
        margin-left: auto;
    }

    /* 隐藏导航链接 */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        max-height: 300px;
    }

    .nav-links a {
        font-size: 1.1rem; /* Increased from 1rem */
        padding: 1.2rem; /* Increased from 1rem */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        width: 100%;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a.active::after {
        display: none;
    }

    .nav-links a.active {
        background-color: rgba(255, 255, 255, 0.1);
    }


}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 0.8rem;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .hamburger span {
        width: 22px;
        height: 2px;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 0.8rem;
    }
} 