/*页头*/
.nav-bar {
height: 60px;
line-height: 60px;
color: #888;
font-size: 14px;
position: relative;
}
.nav-bar:after {
content: ' ';
position: absolute; /* border-bottom: 1px solid #EEE; */
bottom: 0;
width: 100%;
}
.nav-bar ul.link-ext {
list-style: none;
margin: 0;
padding: 0;
}
.nav-bar ul.link-ext li {
float: left;
line-height: 60px;
margin: 0 0 0 0;
}
.nav-bar ul.link-ext li + li {
margin-left: 20px;
}
.jw-logo a {
display: block;
margin: 15px 0;
}
.jw-logo a img {
height: 30px;
width: auto;
max-width: none;
display: block;
}
.header {
margin: 0 auto; /* border-bottom: 1px solid #f5f5f5; */
}
.search-box {
height: 40px;
margin: 10px 0;
}
.nav-bar .line {
margin: 0px 15px;
}
.search-box .search {
height: 40px;
position: relative; /* background-color: #f2f6f8; */
}
.search-box .search input[type='text'] {
height: 40px;
line-height: 40px;
width: 255px;
padding: 0px 58px 0 10px;
border: 2px solid #e8e8e8;
background-color: #ffffff;
display: block;
border-radius: 5px;
}
.search-box .search input[type='text']:focus {
border: 2px solid #a1aebb;
box-shadow: none;
}
.search-box .search button {
position: absolute;
top: 0;
right: 0;
height: 40px;
padding: 9px 20px;
font-size: 18px;
line-height: 22px;
border: none;
background-color: transparent;
color: #009688;
}
.search-box .search button:hover {
color: #8f9aae;
}
.header:before,
.header:after {
content: ' ';
display: table;
}
.header:after {
clear: both;
}
.header .main-nav {
margin: 0;
padding: 0;
font-size: 18px;
position: relative;
}
.header .main-nav li {
float: left;
list-style: none;
}
.header .main-nav li + li {
margin-left: 2.1em;
}
.header .main-nav li > a {
display: block;
line-height: 50px;
color: #121212;
position: relative;
}
.header .main-nav li > a i {
vertical-align: middle;
color: #999;
transition: all 0.3s;
}
.header .main-nav li.active > a i {
-ms-transform: rotate(180deg);
transform: rotate(180deg);
}
.header .main-nav .dropdown-menu {
position: absolute;
margin: 0;
padding: 2em 1.5em;
border: 1px solid #eae6e6;
background: #fff;
box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2);
border-radius: 0;
min-width: auto;
display: none;
z-index: 999;
font-size: 18px;
left: 0;
}
.header .main-nav .dropdown-menu li,
.header .main-nav .dropdown-menu li + li {
margin: 0;
float: left !important;
width: 4em;
box-sizing: border-box;
text-align: center;
}
.header .main-nav .dropdown-menu li.group-header,
.header .main-nav .dropdown-menu li + li.group-header {
padding: 6px 15px;
margin: 0;
font-weight: bold;
color: #999;
}
.header .main-nav .dropdown-menu li.disabled,
.header .main-nav .dropdown-menu li + li.disabled {
font-style: italic;
color: #ddd;
cursor: not-allowed;
}
.header .main-nav .dropdown-menu li.disabled a,
.header .main-nav .dropdown-menu li + li.disabled a {
color: #ddd;
cursor: not-allowed;
}
.header .main-nav .dropdown-menu li.disabled a:hover,
.header .main-nav .dropdown-menu li + li.disabled a:hover {
background: none;
}
.header .main-nav .dropdown-menu li.active,
.header .main-nav .dropdown-menu li + li.active {
background: #ebf1f4;
}
.header .main-nav .dropdown-menu li.active a,
.header .main-nav .dropdown-menu li + li.active a {
background: #ebf1f4;
}
.header .main-nav .dropdown-menu li.divider,
.header .main-nav .dropdown-menu li + li.divider {
margin: 5px 0;
border-top: 1px solid #eee;
line-height: 0;
height: 0;
}
.header .main-nav .dropdown-menu li a,
.header .main-nav .dropdown-menu li + li a {
line-height: 3em;
display: inline-block;
padding: 0;
}
.header .main-nav .dropdown-menu li a:hover,
.header .main-nav .dropdown-menu li + li a:hover {
color: #098;
background: transparent;
}
.header-sm .hd {
float: left;
}
.header-sm .hd .search {
display: none;
}
.header-sm .main-nav {
float: right;
margin-top: 30px;
margin-bottom: 10px;
}
.header-sm .btn-search-sm {
float: right;
margin-top: 30px;
margin-bottom: 10px;
line-height: 50px;
height: 50px;
padding: 0 0.5em;
margin-left: 2em;
color: red;
display: block;
}
.header .main-nav li > a:after {
content: '';
position: absolute;
left: 0; /* top: 20px; */
width: 100%;
height: 3px;
background-color: #098;
filter: alpha(opacity=0);
opacity: 0;
display: none \9;
}
.header .main-nav li.dropdown > a:after {
display: none;
}
.header .main-nav li > a:hover:after {
bottom: 5px;
opacity: 1;
filter: alpha(opacity=100);
}
.header .main-nav li.nav-current a:after {
bottom: 5px;
opacity: 1;
filter: alpha(opacity=100);
}
.header .main-nav li.nav-current a {
font-weight: bold;
color: #098;
}
.header .main-nav li > .dropdown-menu a:after {
display: none;
}
.header .main-nav li a.extra {
position: relative;
}
.header .main-nav li a.extra:before {
content: ' ';
position: absolute;
top: 0.5em;
right: -5px;
border-width: 1px 1px 0 0;
border-style: solid;
height: 5px;
width: 5px;
border-color: #999;
}
@media (max-width: 1199px) {
.header .main-nav {
font-size: 16px;
}
.header .main-nav li + li {
margin-left: 1.6em;
}
.header .main-nav .dropdown-menu {
font-size: 16px;
}
}
@media (max-width: 959px) {
.header .main-nav {
font-size: 14px;
}
.header .main-nav li + li {
margin-left: 1.3em;
}
.header .main-nav .dropdown-menu {
padding: 10px 0;
font-size: 14px;
}
.header .main-nav .dropdown-menu li a,
.header .main-nav .dropdown-menu li + li a {
padding: 6px 6px;
}
}
@media (max-width: 768px) {
/*导航*/
.nav-bar {
height: 55px;
line-height: 55px;
}
.jw-logo a img {
height: 25px;
}
.jw-logo a {
margin: 15px 0;
}
.nav-bar {
overflow: hidden;
}
.search-box {
display: none;
}
.header .main-nav li + li {
margin-left: 1em;
}
}