
/* 导航栏 */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px; /* 统一导航栏高度 */
    display: flex;
    align-items: center;
}

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%; /* 确保容器填满导航栏高度 */
    }

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--blue-800);
    height: 100%; /* 确保logo垂直居中 */
}

    .logo img {
        height: 60px
    }

    .logo i {
        margin-right: 10px;
        font-size: 28px;
    }

.nav-links {
    display: flex;
    gap: 40px; /* 增加导航项之间的间距 */
    align-items: center;
    height: 100%;
}

    .nav-links li {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .nav-links a {
        color: var(--gray-700);
        font-weight: 500;
        transition: all 0.3s ease;
        padding: 0 15px;
        height: 100%;
        display: flex;
        align-items: center;
        position: relative;
    }

        .nav-links a:hover {
            color: var(--blue-600);
        }

        .nav-links a.active {
            color: var(--blue-800);
        }

            .nav-links a.active::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 3px;
                background-color: var(--blue-600);
            }

        .nav-links a.btn {
            margin-left: 20px;
            height: 44px; /* 按钮高度固定 */
            padding: 0 24px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 80%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        gap: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        height: 300px;
        width: 180px
    }

        .nav-links.active {
            display: flex;
        }

        .nav-links li {
            width: 100%;
            text-align: center;
            display: unset
        }

            .nav-links li a {
                display: block;
                padding: 0.5rem 1rem;
            }

                .nav-links li a.btn-primary {
                    margin: 0.5rem 1rem;
                }
}
