@import url(./global.css);


/* ==========================================================================
Header
========================================================================== */
.header_bg {
    width: 100%;
    height: .05rem;
    background: linear-gradient(90.00deg, rgb(230, 0, 18) 10.526%, rgb(0, 160, 170) 24.878%, rgb(255, 136, 58) 42.65%, rgb(22, 93, 164) 58.888%, rgb(38, 47, 86) 78.951%, rgb(255, 194, 15) 95.052%);
}

@media only screen and (max-width: 920px) {
    .header_bg {
        position: absolute;
        left: 0;
        top: 0;
    }
}

.logo {
    position: absolute;
    left: 20px;
    top: 0;
    width: 3.83rem;
    height: 1.45rem;
    line-height: 1.45rem;
    overflow: hidden;
    background: url(../images/logo.png) no-repeat left center;
    background-size: 3.83rem auto;
}


#globalnav.mini_top .logo {
    background: url(../images/logo.png) no-repeat left center;
    background-size: 3.83rem auto;
}

.searchIcon {
    position: absolute;
    z-index: 999;
    right: 20px;
    top: .55rem;
    cursor: pointer;
}

.search_box {
    height: .35rem;
    color: rgba(0, 0, 0, 0.93);
    font-size: 14px;
    font-weight: 400;
}

.search_box img {
    margin-right: 7px;
}

#globalnav.mini_top .searchIcon {
    color: #000;
}

.globalsearch {
    display: none;
}

.globalsearch {
    position: absolute;
    top: 1.45rem;
    right: 20px;
    width: 280px;
    padding: 7px;
    z-index: 999;
    background: var(--primary);
}

.globalsearch .warp {
    background: #fff;
}

.globalsearch #q {
    float: left;
    border: none;
}

.globalsearch .search-btn {
    float: right;
    border: none;
}

.globalsearch #q {
    width: calc(100% - 62px);
    height: 18px;
    padding: 10px;
    background: #fff;
    border: 1px solid #fff;
    font: 400 12px/18px microsoft yahei;
}

.globalsearch .search-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: url(../ico/btn_ser.png) no-repeat center;
}

#globalnav #gn_03 {
    display: none;
    font-size: 16px;
    height: 48px;
    line-height: 48px;
}

.language {
    position: absolute;
    right: 100px;
    top: .55rem;
}

.lang_box {
    position: relative;
}

.lang_img {
    color: rgba(0, 0, 0, 0.93);
    font-size: 14px;
    font-weight: 400;
    height: .35rem;
}

.lang_img img {
    margin-right: 7px;
}

.lang_drop {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 80px;
    margin-left: -40px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, .05);
    background: white;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.language:hover .lang_drop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.3s;
}

.lang_item {
    box-sizing: border-box;
    width: 100%;
    padding: 5px 0;
    font-size: 16px;
    color: #333;
    border-top: 1px solid #e5e5e58e;
    transition: all 0.3s;
}

.lang_item:hover {
    background-color: var(--primary);
    color: #fff;
}

.zhanwei {
    height: 1.5rem;
}

@media only screen and (max-width:920px) {

    .zhanwei,
    .language,
    .logo {
        display: none;
    }

    #globalnav #gn_03 {
        display: block;
    }

    .globalsearch {
        top: 48px;
        right: 0;
    }

    .searchIcon {
        right: 48px;
        top: 0;
        cursor: pointer;
    }

    .search_box {
        height: 48px;
        font-size: 12px;
    }

}

@media only screen and (max-width: 500px) {
    .globalsearch {
        width: calc(100% - 30px);
    }
}


/* ==========================================================================
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: 80px;
}

.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: 16px;
    line-height: 2;
    float: left;
    padding: 0;
    color: #000;
    background: none;
    border-bottom: 0 none;
    width: 100%;
    display: block;
    text-align: center;
}

.dropdown a:not(:last-of-type) {
    margin-bottom: 3px;
}

.dropdown a:hover {
    color: var(--primary);
}

@media only screen and (max-width:920px) {
    .dropdown {
        position: static;
        min-width: calc(100% - 40px);
        padding-top: 0;
    }

    .dropdown a {
        text-align: left;
    }

    .dropdown a:not(:last-of-type) {
        margin-bottom: 0;
    }
}


/* 回到顶部 */
.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 {
        height: 1rem;
        transition: all .3s;
    }

    #globalnav.mini_top .gn-content {
        height: .95rem;
        transition: all .3s;
    }

    #globalnav.mini_top .logo {
        height: .95rem;
        line-height: .95rem;
        transition: all .3s;
    }

    #globalnav.mini_top .globalsearch {
        top: .95rem;
        transition: all .3s;
    }

    #globalnav.mini_top .searchIcon,
    #globalnav.mini_top .language {
        top: .3rem;
        transition: all .3s;
    }

    #globalnav.mini_top .gn-list {
        height: .82rem;
        padding-top: .065rem;
        transition: all .3s;
    }

    #globalnav.mini_top .gn-item {
        height: .82rem;
        transition: all .3s;
    }

    #globalnav.mini_top .gn-link {
        height: .82rem;
        transition: all .3s;
    }
}