.header-container{
    background-color: #fff;
    width: 100%;
    min-width: 1200px;
}
.header {
    width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
}

.logo {
    height: 48px;
}
.lang-switch{
    height: 48px;
    line-height: 48px;
    background: url("https://cpstatic.zzchemical.com/static/trade-hub/img/home/en/cn1-46a828d190.png") no-repeat left center;
    padding-left: 40px;
}
.lang-switch a{
    font-size: 20px;
    font-weight: bold;
}
.main-nav{
    padding-top: 8px;
}
.main-nav > li {
    float: left;
    position: relative;
    margin: 0 25px;
}

.main-nav > li > a {
    display: block;
    line-height: 84px;
    color: #222;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: color 0.3s;
}

.main-nav > li.more > a{
    padding-right: 20px;
}

/* 红色线条动效 */
.main-nav > li > a:after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #DA291C;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* 当鼠标悬浮在整个li上（包括其子菜单）或激活状态时显示红线 */
.main-nav > li:hover > a:after {
    width: 100%;
}

.main-nav > li.more:after {
    content: '';
    position: absolute;
    background: url("https://cpstatic.zzchemical.com/static/trade-hub/img/home/arrow-menu-7cb7d9c917.png") no-repeat 0 0;
    width: 14px;
    height: 7px;
    display: block;
    right: 0;
    top:39px;
}


/* 下拉菜单 */
.main-nav > li > ul {
    position: absolute;
    top: 84px;
    left: 0;
    width: 178px;
    background-color: #F8F8F8;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 100;
}

.main-nav > li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav > li > ul > li > a {
    display: block;
    height: 55px;
    line-height: 55px;
    color: #222;
    text-decoration: none;
    font-size: 16px;
    white-space: nowrap;
    text-indent: 26px;
    font-weight: bold;
}

.main-nav > li > ul > li > a:hover {
    color: #DA291C;
    background: url("https://cpstatic.zzchemical.com/static/trade-hub/img/home/new/menu_arrow-684fa28b96.png") no-repeat 152px center;
}

