@import url(./global.css);

.logo {
    position: absolute;
    overflow: hidden;
    left: 20px;
    top: 0;
    width: 2rem;
    height: 1rem;
    background: url(../images/logo.png) no-repeat left center;
    background-size: 2rem auto;
    z-index: 10;
}

#globalnav.mini_top .logo {
    background-image: url(../images/logo.png);
}

#globalnav #gn_07 {
    display: none;
    font-size: 16px;
    height: 48px;
    line-height: 48px;
}

.language_area {
    align-items: center;
}

@media only screen and (max-width:920px) {
    #globalnav #gn_07 {
        display: block;
    }

    .logo {
        display: none;
    }
}

/* ==========================================================================
Nav 导航栏
========================================================================== */
.dropdown {
    position: absolute;
    z-index: 999;
    background: rgba(255, 255, 255, .9);
    display: none;
    padding: 15px 20px;
    /* border-bottom: .03rem solid var(--primary); */
    top: 100%;
    min-width: 70px;
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.1);
}

.dropdown:after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    border: 0 solid transparent;
    border-width: 0 5px 5px;
    border-bottom-color: var(--primary);
    left: 50%;
    margin-left: -5px;
    top: -5px;
}

.dropdown a {
    white-space: nowrap;
    font-size: 14px;
    line-height: 2;
    float: left;
    padding: 0;
    color: #000;
    background: none;
    border-bottom: none;
    width: 100%;
    display: block;
    text-align: center;
}

.dropdown a:hover {
    color: var(--primary)
}

@media only screen and (max-width:920px) {
    .dropdown {
        position: static;
        min-width: calc(100% - 40px);
        padding-top: 0;
        background: #fff;
        overflow: hidden;
    }

    .dropdown a {
        text-align: left;
    }

    .dropdown:after {
        display: none;
    }
}


/* ==========================================================================
   搜索框
========================================================================== */
.zhanwei {
    height: 1.6rem;
}

.index_language {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.language_area {
    color: rgb(2, 71, 190);
    font-size: 16px;
    font-weight: 400;
}

.lang_txt {
    color: inherit;
}

@media only screen and (max-width: 920px) {
    .index_language {
        display: none;
    }
}




.index_search {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 9;
}

.search_flex {
    width: calc(100% - 4rem);
    max-width: 56%;
    margin: 0 auto;
}

.index_input {
    width: calc(100% - .46rem);
    border: 1px solid rgb(140, 153, 172) !important;
    background: rgb(255, 255, 255);
    line-height: .46rem;
    padding: 0 .2rem;
    font-size: .18rem;
    color: #000;
}

.index_btn {
    width: .46rem;
    height: .46rem;
    background: rgb(255, 255, 255);
    border: 1px solid rgb(140, 153, 172) !important;
    border-left: none !important;
}

.index_btn img {
    max-width: 66%;
}

@media only screen and (max-width: 920px) {

    #globalnav .overlay,
    .zhanwei {
        display: none;
    }

    .index_search {
        top: 9px;
        transform: translate(-50%, 0);
        width: 50%;
    }

    .search_flex {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .index_input {
        width: calc(100% - 30px);
        line-height: 30px;
        font-size: 12px;
    }

    .index_btn {
        width: 30px;
        height: 30px;
    }

    #globalnav .gn-list {
        transform: initial;
    }

    .dropdown {
        box-shadow: initial;
        border-bottom: .03rem solid var(--primary);
    }
}

@media only screen and (max-width: 500px) {
    .index_search {
        display: none;
    }
}




/* 回到顶部 */
.fixed-top {
    display: none;
    position: fixed;
    right: .3rem;
    bottom: .5rem;
    z-index: 999;
    background: rgba(0, 0, 0, 0.3);
    height: .4rem;
    width: .4rem;
    border-radius: 2px;
    transition: all .2s;
    cursor: pointer;
}

.return_box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixed-top .fa {
    color: #fff;
    font-size: .24rem;
}

.fixed-top:hover {
    background: var(--primary);
}




@media only screen and (min-width:921px) {
    #globalnav.mini_top {
        box-shadow: 0 .5px 2px rgba(0, 0, 0, 0.15);
    }
}