header {
    background-image: url(../images/header-bg.jpg);
    background-repeat: repeat-x;
}

.head-cen {
    width: var(--all-width);
    margin: 0 auto;
}

.head-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.logo {
    width: var(--logo);
}

.tit {
    color: #666;
    margin-right: auto;
    margin-left: 10px;
    font-size: 13px;
}

.searchBar {
    width: var(--searchBar);
    display: flex;
}

#search {
    flex: 1;
    height: var(--button);
    text-indent: 10px;
    background-color: #e6e7e9;
    border: 1px solid;
    border-color: #CCC #BBB #BBB #CCC;
    border-right: 0;
    font-size: 14px;
}

#go {
    width: var(--button);
    height: var(--button);
    background-color: #E6E7E9;
    border: 1px solid;
    border-color: #CCC #BBB #BBB #CCC;
    border-left: 0;
}

#go img {
    transform: scale(.7);
    opacity: .4;
}

nav {
    width: var(--all-width);
    margin: 8px auto;
    border: 1px solid #CCC;
    background-image: url(../images/nav-bg.jpg);
}

nav ul {
    display: flex;
}

nav ul li {
    flex: 1;
    text-align: center;
}

nav ul li a {
    display: block;
    padding: 7px 0;
    color: #444;
    border-right: 1px solid #ccc;
    font-size: 13px;
}

nav ul li:last-child a {
    border-right: 0;
}

nav ul li a:hover {
    background-color: rgb(234, 234, 234);
    color: #000;
}

.active {
    background-color: rgb(234, 234, 234);
    color: #000;
}

.pe_btn {
    width: var(--button);
    height: var(--button);
    display: none;
}

@media (max-width:799px) {
    header {
        position: relative;
        z-index: 999;
    }

    .pe_btn {
        display: block;
    }

    .head-top {
        padding: 10px 0;
        justify-content: space-around;
    }

    .searchBar,
    nav {
        position: absolute;
        width: 100%;
        height: 100vh;
        top: 0;
        transform: translateY(-100%);
        margin: 0;
        background-image: none;
        background-color: #ddd;
    }

    .searchBar {
        padding: 30px 6px;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        padding: 15px 8px;
    }

    nav ul a {
        background-image: url(../images/nav-bg.jpg);
        padding: 12px 0 !important;
    }

    .menuActive,
    .searchActive {
        top: 100%;
        transform: translateY(0);
    }

    .tit {
        display: none;
    }
}