html,body{
  font-family: "microsoft yahei","微软雅黑";
  font-size: 16px;
  color: #333;
}
/* 通用 */
a{
  transition: all .3s;
}
.box-shadow{
  box-shadow: 0 0 7px 0 #e3e3e3;
}
p.only-2{
  text-align: justify;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.w-200{
  width: 200px;
}
.w-300{
  width: 300px;
}
.w-640{
  width: 640px;
}
.w-970{
  width: 970px;
  margin-left: 230px;
}
#w-1200{
  width: 1200px;
  margin: auto;
}

/* 左侧浮动栏 */
.tool-div.w-200{
  height: 1px;
}
.left-fixed{
  width: 200px;
  position: fixed;
  top: 0;
}
.left-fixed .logo{
  width: 190px;
  height: 62px;
  overflow: hidden;
  margin-right: 10px;
  margin-top: 5px;
}

/* 搜索 */
.left-search{
  margin-top: 5px;
}
.left-search form{
  position: relative;
}
.left-search input[type=text]{
  width: 100%;
  position: relative;
  height: 32px;
  border-radius: 16px;
  border: none;
  outline: none;
  display: block;
  background:#eee;
  z-index: 8;
  text-indent: 20px;
}
.left-search input[type=submit]{
  position: absolute;
  right: 10px;
  top: 4px;
  border: none;
  outline: none;
  width: 24px;
  height: 24px;
  z-index: 9;
  background:url('../images/search-icon.svg') center center no-repeat;
  background-size: contain;
  cursor: pointer;
}

/* 导航 */
nav{
  margin-top: 20px;
}
nav ul li{
  line-height: 40px;
  text-align: center;
  font-size: 18px;
  border-radius: 4px;
  position: relative;
  transition: all .3s;
  margin-bottom: 5px;
}
nav ul li.active{
  background: #0ae;
}
nav ul li .icon-wrap{
  position: absolute;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-right: 5px;
  left: 10px;
}
nav ul li .icon-wrap img{
  display: inline-block;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  position: absolute;
  top: 0;
  left: 0;
  transition: all .3s;
}
nav ul li.active{
  color: #fff;
}
nav ul li.active .icon-wrap img:first-child{
  opacity: 0;
  visibility: hidden;
}
nav ul li.active .icon-wrap img:nth-child(2){
  opacity: 1;
  visibility: visible;
}
nav ul li .icon-wrap img:nth-child(2){
  opacity: 0;
  visibility: hidden;
}
nav ul li:hover{
  background: #0ae;
}
nav ul li:hover a{
  color: #fff;
}
nav ul li:hover .icon-wrap img:nth-child(1){
  opacity: 0;
  visibility: hidden;
}
nav ul li:hover .icon-wrap img:nth-child(2){
  opacity: 1;
  visibility: visible;
}
/* footer */
footer{
  background: #fafafa;
  padding: 40px 0;
}
footer p{
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 5px 0;
}
footer p a:hover{
  color: #0ae;
}


