.header-container{
    background-color: #fff;
    width: 100%;
    min-width: 1200px;
}
.header {
    max-width: 1600px;
    min-width: 1200px;
    margin: 0 auto;
    height: 94px;
    font-size: 18px;
}

.logo {
    margin-top:20px;
    width: 386px;
    height: 48px;
    background-image:url("https://cpstatic.zzchemical.com/static/trade-hub/img/home/new/logo-20520c5b05.png");
    background-repeat: no-repeat;
    background-size: cover;
}

.logo a{
    display: block;
    width: 100%;
    height: 100%;
}

.main-nav > ul > li {
    float: left;
    position: relative;
    margin: 0 25px;
}

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

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

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

/* 下拉菜单 */
.main-nav > ul > li > ul {
    position: absolute;
    top: 94px;
    left: 50%;
    margin-left: -70px;
    width: 178px;
    background-color: #F8F8F8;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 100;
}

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

.main-nav > ul > 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 > ul > li > ul > li > a:hover {
    color: #DA291C;
    border-left: 3px solid #DA291C;
    text-indent: 23px;
    background: url("https://cpstatic.zzchemical.com/static/trade-hub/img/home/new/menu_arrow-684fa28b96.png") no-repeat 152px center;
}

/* 头部右侧区域 */
.header-right {
    height: 94px;
    display: flex;
    align-items: center;
}

.header-right > div {
    margin-left: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

/* 搜索框相关样式 */
.search-box {
    position: relative;
}

.search-icon {
    width: 19px;
    height: 21px;
    background: url("https://cpstatic.zzchemical.com/static/trade-hub/img/home/new/search-icon-df946d3d38.png") no-repeat center;
    background-size: contain;
    margin-right: 10px;
    cursor: pointer;
}

.search-dropdown {
    position: absolute;
    top: 94px;
    right: 0;
    width: 100%;
    height: 0;
    background: #F8F8F8;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
    overflow: hidden;
    z-index: 999;
}

.search-dropdown > div{
    width: 975px;
    height: 58px;
    margin: 26px auto 0 auto;
}

.search-dropdown.active {
    height: 107px;
    opacity: 1;
    visibility: visible;
}

.search-dropdown input {
    height: 56px;
    line-height: 56px;
    width: 700px;
    outline: none;
    border:1px solid #fff;
    padding:0 40px 0 77px;
    font-size: 20px;
    background:#fff url("https://cpstatic.zzchemical.com/static/trade-hub/img/home/new/serch-icon-2-de05117092.png") 30px center no-repeat;
}

.search-dropdown input:focus {
    border: 1px solid #DA291C;
    outline: none;
}

.search-dropdown input::placeholder {
    font-size: 20px;
    color: #999;
}

.search-dropdown button {
    height: 58px;
    line-height: 58px;
    width: 156px;
    background-color: #DA291C;
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

/* 语言切换相关样式 */
.lang-box {
    position: relative;
}

.lang-switch a{
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    color: #222;
    cursor: pointer;
    position: relative;
    width: 82px;
    height: 38px;
    line-height: 40px;
    background: #F8F8F8 url("https://cpstatic.zzchemical.com/static/trade-hub/img/home/new/nimg20_1-a9165c59dd.png") no-repeat 16px center;
    border:1px solid #D9D9D9;
    border-radius: 20px;
    text-indent: 43px;
}

.lang-switch a:hover{
    color: #222;
}

.lang-switch:hover{
    border-color: #DA291C;
}


.search-icon:hover,
.lang-switch:hover {
    opacity: 0.8;
    color: #DA291C;
}

@media (max-width: 1300px) {
    .main-nav > ul > li > a {
        font-size: 16px;
    }
    .logo{
        width: 330px;
        height: 41px;
    }
}