/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 60px;
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo img {
    width: auto;
    height: 28px;
    object-fit: contain;
    background-color: #ffcaca00;
    display: block;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.menu-toggle {
    display: none;
}

.nav-links a:hover {
    color: #627096;
}

.nav-links a.active {
    color: #627096;
    font-weight: 700;
    text-decoration: underline;
}

/* 响应式样式 */
@media (max-width: 1024px) {
    .logo img {
        height: 20px;
    }

    .navbar {
        justify-content: space-between;
        padding: 4px 16px;
        height: 48px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 48px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-items: flex-start;
        gap: 0px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.056);
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
        cursor: pointer;
    }
    
    .menu-toggle .bar {
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 5px 0;
        transition: 0.4s;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 20px;
    }

    .navbar {
        justify-content: space-between;
        padding: 4px 16px;
        height: 48px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 48px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-items: flex-start;
        gap: 0px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.056);
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
        cursor: pointer;
    }
    
    .menu-toggle .bar {
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 5px 0;
        transition: 0.4s;
    }
}