* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

ul,
ol,
li {
    list-style: none;
}

.header {
    position: relative;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 100%;
    min-width: 1000px;
    height: 60px;
    background: rgba(255, 255, 255, 0.6);
    padding: 0 47px;
    transition: height 0.3s;
    overflow: hidden;
}

/* .header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    min-width: 1440px;
    height: 60px;
    background: rgba(255, 255, 255, 0.6);
    padding: 0 47px;
    transition: height 0.3s;
    overflow: hidden;
} */

.header.open {
    height: 140px;
    /* background: rgba(255, 255, 255, 0.6); */
    background: white;
}

.header-nav {
    height: 60px;
}

.box-shadow {
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.15);
}

.nav-logo {
    float: left;
    width: 100px;
    height: 100%;
    line-height: 60px;
    background: url("./imgs/logo.png");
    background-repeat: no-repeat;
    background-size: 100px 26px;
    background-position: center center;
}

.dark .nav-logo {
    background-image: url('./imgs/logo_dark.png');
    background-size: 81px 19px;
}

.nav-logo img {
    width: 100%;
    vertical-align: middle;
    background-size: 100% 100%;
}

.nav-menu {
    max-width: calc(100% - 377px);
    min-width: 200px;
    height: 60px;
    overflow: hidden;
    float: left;
}

.nav-menu .sub-menu {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.nav-menu .sub-menu-item {
    padding: 0 20px;
    height: 60px;
    line-height: 60px;
    cursor: pointer;
}

.nav-menu .sub-menu .sub-menu-item a {
    display: inline-block;
    /* width: 100%; */
    color: #484d63;
}

.nav-menu .sub-menu-item:hover .sub-menu-item-sub {
    display: flex;
}

.sub-menu-item a>.icon {
    display: inline-block;
    width: 39px;
    height: 39px;
    vertical-align: middle;
    background: rgba(24, 156, 169, 0.6);
    /* mix-blend-mode: darken; */
    border-radius: 4px;
    background-size: 25px;
    background-position: center center;
    background-repeat: no-repeat;
}

.dark .sub-menu-item a>.icon {
    background-color: #F05A27;
}

.sub-menu-item a>.explor {
    background-image: url("./imgs/explor.png");
}

.sub-menu-item a>.gloss {
    background-image: url("./imgs/gloss.png");
}

.sub-menu-item a>.report {
    background-image: url("./imgs/report.png");
}

.sub-menu-item a>.download {
    background-image: url("./imgs/cloud-download.png");
}

.sub-menu-item a>.tibet_plateau {
    background-image: url("./imgs/tibet_plateau.png");
    background-size: 32px;
}

.sub-menu-item a>.biodiversity {
    background-image: url("./imgs/biodiversity.png");
}

.sub-menu-item a>.people {
    background-image: url("./imgs/people.png");
}

.sub-menu-item a>.funding {
    background-image: url("./imgs/funding.png");
}

.sub-menu-item a>.faq {
    background-image: url("./imgs/faq.png");
}

.nav-menu .sub-menu ul {
    /* display: none; */
    width: 100%;
}

.sub-menu-item-sub {
    position: absolute;
    left: 0;
    top: 60px;
    height: 80px;
    padding: 0 47px;
    display: flex;
    align-items: center;
    flex: 1;
}

.sub-menu-item-sub {
    display: none;
}

.sub-menu-item-sub .sub-menu-item {
    /* width: 234px; */

    /* mix-blend-mode: darken; */
    border-radius: 4px;
    margin-right: 15px;
}

.sub-menu-item-sub .sub-menu-item:hover {
    background: rgba(196, 196, 196, 0.6);
    /* background: #c4c4c4; */
}

.nav-search {
    height: 60px;
    float: right;
    /* width: 277px;暂时隐藏用户部分，如果开放用户部分，这段代码需要显示 */
    display: flex;
    flex: 1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.user-menu {
    width: 40px;
    margin-left: 12px;
}

.user-menu a {
    display: inline-block;
    width: 100%;
}

.user-menu .avatar {
    width: 100%;
}

.sub-menu-item span {
    padding: 5px 10px;
    font-weight: 600;
}

.dark .sub-menu-item span {
    color: #6C6C6C;
}

.dark .sub-menu-item-sub .sub-menu-item:hover {
    background: #0E0E0E;
    /* background: #c4c4c4; */
}

.sub-menu-item span i {
    display: inline-block;
    width: 19px;
    height: 18px;
    vertical-align: middle;
    background: url('./imgs/arrow-down.png') no-repeat center;
    background-size: 16px 10px;
    margin-left: 8px;
    transition: transform 0.3s;
}

.menu-active>a>span {
    background-color: rgba(196, 196, 196, 0.6) !important;
    border-radius: 4px !important;
}

.sub-menu-item span i.hover {
    transform: rotate(180deg);
}

.dark .header-menu {
    /* width: 60%; */
    height: 100%;
    float: right;
    min-width: 500px;
    max-width: 900px;
}

.dark .header {
    background: #232323;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.15);
}

.dark .nav-logo {
    background-image: url('./imgs/logo_dark.png');
}

.dark .nav-menu .sub-menu .sub-menu-item a {
    color: #6C6C6C;
}

.dark .nav-search {
    /* float: left; */
}

.dark .nav-menu {
    max-width: unset;
}

.header-menu button {
    outline: none;
    border: none;
    padding: 9px 15px;
    float: right;
    margin-top: 13px;
    margin-left: 5px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.dark-style {
    background: #F05A27;
    color: white;
    border-color: #F05A27;
}

.common-style {
    background: #72c2c9;
    color: white;
    border-color: #72c2c9
}
