﻿.color-1{
    background-color: #3b95ad;
}
.header{ background-color: #9E1D22; }
.header-content{ 
    height: 160px; display: flex; align-items: center; justify-content: space-between; 
    overflow: hidden; background-image: url(../img/head-bg.png); background-repeat: no-repeat;
    background-size: auto 100%; background-position: right;
    position: relative;
}
.header-content .logo{
     background-image: url(../img/logo-top.png);  width: 397px;  height: 82px;  
     background-repeat: no-repeat;
}
.header-content .header-right{ display: flex;align-items: center;justify-content: space-between; }
.header-content .header-right .top-btn{
    position: relative; height: 35px; line-height: 35px; border-radius: 20px;  
    padding: 0 15px; padding-left: 45px; white-space: nowrap; color: #fff;  
    font-size: 18px; margin-right: 50px; transition: all .2s;
}

.header-content .header-right .top-btn::before{ 
    position: absolute; content: " "; left: -2px; top: 50%; transform: translateY(-50%); 
    display: inline-block; background-repeat: no-repeat; background-size: 100% 100%; 
    width: 32px; height: 32px;
}
.header-content .header-right .top-btn:hover{ opacity: 0.8; }
.header-content .header-right .top-btn:active{ opacity: 0.6; }
.header-content .header-right .top-btn:nth-child(1)::before{ background-image: url(../img/mh.png); }
.header-content .header-right .top-btn:nth-child(2)::before{ background-image: url(../img/dt.png); }

.header-right .search{ 
    height: 40px; border-radius: 3px; padding: 0 0 0 10px; box-sizing: border-box; 
    background-color: #fff; width: 300px; display: flex; align-items: center;
    justify-content: space-between;
}
.header-right .search input{  
    width: calc(100% - 45px); height: 100%; background-color: transparent; color: #333;
    box-sizing: border-box; vertical-align: middle; font-size: 15px;
}
.header-right .search button{ width: 40px; height: 40px; line-height: 38px; padding: 0; }
.header-right .search button svg{ color: #fff; font-size: 23px; }
/* .header-right .search img{ display: inline-block; width: 17px; height: 17px; background-repeat: no-repeat; vertical-align: middle; } */

input::-webkit-input-placeholder { color: #a7a7a7; }
input::-moz-input-placeholder { color: #a7a7a7; }
input::-ms-input-placeholder { color: #a7a7a7 ; }

.head-menu-bg{ background-color: #fff; box-shadow: 0 .125rem .35rem rgba(0,0,0,.2)!important; position: relative; z-index: 101; }
.head-menu{ display: flex; vertical-align: middle; cursor: pointer; }
.head-menu .menu-item{ 
    position: relative; display: inline-block; text-align: center; width: 16%; height: 40px; line-height: 40px; 
}
.head-menu .menu-item a{ color: #333; font-size: 16px; transition: all .1s; }
.head-menu .menu-item > a{ font-weight: bold; }
.head-menu .menu-item:hover > a{ color: #9E1D22; font-size: 18px; }

.head-menu .menu-item ul{ 
    position: absolute;  top: 40px; left: 0; width: 100%; list-style: none; display: none;
    text-align: center; padding: 0; z-index: 99; background-color: #fff;
    box-shadow: inset 0px 15px 10px -15px rgba(0,0,0,.2), 0 .125rem .35rem rgba(0,0,0,.2)!important;
}
.head-menu .menu-item ul li a{ display: block; line-height: 38px; font-size: 16px; }
.head-menu .menu-item ul li a:hover{ background-color: #9E1D22; color: #fff; }
.head-menu .menu-item ul li a:active{ color: #cccccc; }



.head-top{ 
    z-index: 5;
    top: 61px;
    right: 0;
    display: block;
}
.head-top .search-bar{  display: flex; align-items: center; height: 100%; }
.head-top .search-input input{ 
    width: 260px;
    height: 40px; font-size: 16px; caret-color:black; padding: 0 10px; 
    border-top-left-radius: 5px; border-bottom-left-radius: 5px; display: block;
}
.head-top .search-bar .search-btn{ 
    height: 40px; width: 42px; background-size: 60% 60%; border-top-right-radius: 5px; 
    border-bottom-right-radius: 5px; background-color: #ffc107; 
    color: #fff; line-height: 40px;
}


.search-btn input {
    vertical-align: middle;
    margin-left: 8px;
    width: 24px;
    height: 25px;
}

.head-top .search-bar .search-btn svg{ font-size: 20px; }
.head-top .search-bar .search-btn:focus{ outline:none }
.head-top .search-bar .search-btn:active{ background-color: rgba(255, 193, 7, .9); }


.head-tools,
.m-head-menu,
.mobile-menus{ display: none; }

.list-top{ 
    height: 170px; background-image: url(../img/list/top-bg.png); user-select: none; pointer-events: none;
    background-repeat: no-repeat; background-position: center center;
}

.head-tools,
.m-head-menu,
.head-tools{ display: none; }

@media (max-width: 576px) {
    .header-right,
    .head-menu-bg{ display: none !important; }

    .head-tools{ display: block; width: 22vw; }
    .header-content {
        position: static;
      }
    
    .head-tools{ display: block; width: 22vw; }

    .head-tools button{ padding: 0; height: 10vw; width: 10vw; color: #fff; }
    .head-tools button svg{ font-size: 5.5vw; }
    .head-tools button.m-menu svg{ font-size: 6.5vw; }
    .head-tools button:hover{ color: #fff; }

    .header{ height: 20vw;  padding: 0 3vw; }
    .header .header-content{ height: 100%; }
    .header .logo{ height: 20vw; width: 62vw; background-size: contain; background-position: center; }

    .m-head-menu{ position: absolute; right: 0; top: 16vw; z-index: 10; background-color: rgba(0, 0, 0, .7); }
    .m-head-menu ul{ list-style: none; padding: 2vw 0; margin: 0; }
    .m-head-menu ul li{ height: 10vw; line-height: 10vw; width: 40vw; }
    .m-head-menu ul li a{ font-size: 4vw; padding: 0 4vw; display: block; color: #ffffff; }
    .m-head-menu ul li a:active{ background-color: rgba(184, 4, 5, .7); }

    .head-top{ 
        position: absolute; z-index: 5; top: 20vw; left: 0; width: 100%; height: 12vw; display: none; 
        line-height: 12vw; background-color: #9E1D22;
    }
    .head-top .search-bar{ margin: 0 auto; width: 68.6vw; display: flex; align-items: center; height: 100%; }
    .head-top .search-input input{ 
        width: 60vw; height: 8.5vw; font-size: 4vw; caret-color:black; padding: 0 2vw; 
        border-top-left-radius: 1vw; border-bottom-left-radius: 1vw; display: block;
    }
    .head-top .search-input input:focus{ border: 2px solid #ffc107; }
    .head-top .search-bar .search-btn{ 
        height: 8.5vw; width: 8.5vw; background-size: 60% 60%; border-top-right-radius: 1vw; 
        border-bottom-right-radius: 1vw; background-color: #ffc107; 
        color: #fff; line-height: 8.5vw;
    }
    .search-btn input {
        margin-left: 1.5vw;
        vertical-align: middle;
        width: 5vw;
        height: 5vw;
    }

    .head-top .search-bar .search-btn svg{ font-size: 5vw; }
    .head-top .search-bar .search-btn:focus{ outline:none }
    .head-top .search-bar .search-btn:active{ background-color: rgba(255, 193, 7, .9); }
}