/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 20px;
    margin-right: 10px;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-gray);
}

.logo-slogan {
    font-size: 12px;
    color: var(--medium-gray);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin: 0 15px;
    position: relative;
}

.nav-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-gray);
    padding: 8px 0;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    bottom: -5px;
    left: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.nav-phone {
    font-weight: 700;
    color: var(--accent-orange);
    font-size: 18px;
    margin-right: 20px;
    white-space: nowrap;
    cursor: pointer;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 3px 0;
    transition: 0.3s;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding-left: 5px;
        padding-right: 5px;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 120px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
        transition: 0.3s;
        border-top: 1px solid var(--light-gray);
    }
    
    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        height: 60px;
        line-height: 60px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-actions .btn {
        display: none;
    }
}