.header {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.header-top {
    height: 300px;
    background: url('../image/head.png') no-repeat center/cover;
    display: flex;
    align-items: center;
    position: relative;
}

.header-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 294px;
    height: 107px;
    object-fit: contain;
    vertical-align: middle;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    padding: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input {
    border: none;
    outline: none;
    padding: 10px 20px;
    font-size: 14px;
    background: transparent;
    width: 300px;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: var(--mainColor);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}


.search-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.header-nav {
    height: 75px;
    background-color: var(--mainColor);
    display: flex;
    align-items: center;
}

.nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
}

.nav-item {
    position: relative;
    margin: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    padding: 10px 0;
    transition: color 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-item.active .nav-link {
    color: #fff;
    font-weight: 500;
}

.nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #fff;
    border-radius: 2px 2px 0 0;
}

@media screen and (max-width: 1024px) {
    .header-top {
        height: 250px;
    }
    
    .logo img {
        width: 235px;
        height: 86px;
    }
    
    .search-input {
        width: 250px;
    }
    
    .nav-item {
        margin: 0 15px;
    }
    
    .nav-link {
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    .header-top {
        height: 200px;
    }
    
    .header-top-content {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        padding: 0 15px;
    }
    
    .logo img {
        width: 200px;
        height: 73px;
    }
    
    .search-input {
        width: 200px;
        font-size: 12px;
    }
    
    .search-btn {
        width: 35px;
        height: 35px;
    }
    
    .search-btn img {
        width: 16px;
        height: 16px;
    }
    
    .header-nav {
        height: 60px;
    }
    
    .nav-item {
        margin: 0 10px;
    }
    
    .nav-link {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .header-top {
        height: 180px;
    }
    
    .logo img {
        width: 160px;
        height: 58px;
    }
    
    .search-input {
        width: 150px;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .nav-item {
        margin: 2px 5px;
    }
    
    .nav-link {
        font-size: 11px;
    }
}