﻿  .header {
  position: relative;
  height: 80px;
  line-height: 80px;
  padding: 0 6%;
  background-color: #fff;
}
.header a {
    color:#333;
}
  .header .nav {
  float: right;
  width: 40%;
}
  .header .nav ul {
  display: -webkit-box;
  /* iOS 6-, Safari 3.1-6 */
  display: -webkit-flex;
  /* Chrome */
  display: -moz-box;
  /* Firefox 19 */
  display: -ms-flexbox;
  display: flex;
  /*flex容器*/
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  -ms-justify-content: space-between;
  -o-justify-content: space-between;
  justify-content: space-between;
}
  .header .nav ul li {
  width: 23%;
  text-align: center;
  font-size: 18px;
  color: #666;
}
  .header .nav ul li a {
  display: block;
}
  .header .nav ul li.on {
  background-color: #eb0028;
}
  .header .nav ul li.on a {
  color: #fff;
}
  .header .nav ul li:hover {
  background-color: #eb0028;
}
  .header .nav ul li:hover a {
  color: #fff;
}
  .header .menu,
  .header .phone_nav {
  display: none;
}
@media (max-width: 1050px) {
    .header {
    padding: 0 2%;
  }
}
@media (max-width: 880px) {
    .header .nav {
    display: none;
  }
    .header .menu {
    display: block;
    float: right;
    cursor: pointer;
  }
    .header .menu img {
    width: 25px;
  }
    .header .phone_nav {
    position: absolute;
    left: 0;
    width: 100%;
    padding: 20px 20px 0;
    z-index: 9;
    background-color: #f3f3f3;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    /* Firefox */
    -webkit-box-sizing: border-box;
    /* Safari */
  }
    .header .phone_nav ul li {
    line-height: 45px;
    border-bottom: 1px solid #e3e3e3;
    padding: 0 15px;
  }
    .header .phone_nav ul li a {
    display: block;
    color: #7e7e7e;
  }
    .header .phone_nav ul li.on {
    border-bottom: 5px solid #eb0028;
  }
    .header .phone_nav ul li.on a {
    color: #333;
  }
}