/*======================================
  Header CSS（从 style.css 拆分）
========================================*/

/* 标志 */
.header .logo {
  float: left;
  margin-top: 31px;
}
.header .logo {
  display: inline-block;
  margin-right: 22px;
  padding-right: 22px;
  border-right: 1px solid #eee;
  margin-top: 6px;
}
.header .logo img {
  max-height: 64px;
}
/* 顶部栏（无 .navbar，页面使用 .main-menu .navigation） */
.header .topbar {
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 8px 0 10px;
}
.header .logo {
  display: inline-block;
  margin-right: 22px;
  padding-right: 22px;
  border-right: 1px solid #eee;
}
.header .topbar .tagline {
  display: inline-block;
  margin-top: 24px;
  font-size: 20px;
  font-style: italic;
}
.header .topbar .widget-main {
  float: right;
  margin-top: 14px;
}
.header .topbar .single-widget {
  position: relative;
  float: left;
  padding-left: 53px;
  margin-right: 25px;
}
.header .topbar .single-widget.first {
  position: relative;
  float: left;
  border-right: 1px solid #eee;
  margin-right: 20px;
  padding-right: 20px;
}
.header .topbar .single-widget:last-child {
  margin: 0;
  padding: 0;
  border: none;
}
.header .topbar .single-widget .logo {
  margin: 0;
  padding: 0;
  margin-top: 7px;
}
.header .topbar .single-widget i {
  position: absolute;
  left: 0;
  top: 3px;
  height: 40px;
  width: 40px;
  line-height: 40px;
  color: #fff;
  background: #0657cf;
  border-radius: 4px;
  text-align: center;
  font-size: 15px;
}
.header .topbar .single-widget h4 {
  font-size: 15px;
  font-weight: 500;
}
.header .topbar .single-widget p {
  margin-bottom: 2px;
  text-transform: capitalize;
}
.header .topbar .single-widget .btn {
  margin-left: 0;
  padding: 14px 25px;
  color: #fff;
}
/* 主导航 */
.header .nav li {
  margin-right: 15px;
  float: left;
  position: relative;
}
.header .nav li:last-child {
  margin: 0;
}
.header .nav li a {
  position: relative;
  font-size: 16px;
  text-transform: capitalize;
  position: relative;
  display: block;
  color: #0c0c24;
  z-index: 4;
  padding: 0;
  padding: 6px 16px;
  background: #fff;
  padding: 0;
  padding: 18px;
}
.header .nav li a:before {
  position: absolute;
  content: '';
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background: #0657cf;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
.header .nav li.active a:before,
.header .nav li:hover a:before {
  width: 100%;
  opacity: 1;
  visibility: visible;
}
.header .nav li.active a,
.header .nav li:hover a {
  color: #0657cf;
}
.header .nav li a i {
  margin-left: 7px;
  font-size: 9px;
}
/* 右侧栏 */
.header .right-bar {
  float: right;
  display: inline-block;
  margin-top: 9px;
}
.header .single-bar {
}
.header .single-bar:last-child {
  margin: 0;
}
/* 搜索表单 */
.header .search .form {
  position: relative;
}
.header .search .form input {
  height: 42px;
  width: 240px;
  border: 1px solid #eee;
  padding: 0px 60px 0 20px;
  border-radius: 5px;
}
.header .search .form button {
  height: 42px;
  width: 42px;
  position: absolute;
  right: 0;
  top: 0;
  background: transparent;
  border-radius: 0 5px 5px 0;
  background: transparent;
  color: #333;
  font-size: 14px;
  border: none;
  border-left: 1px solid #eee;
  text-align: center;
  padding: 0;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
.header .search .form button:hover {
  color: #0657cf;
}
.header .header-inner {
  width: 100%;
}
/* 固定页眉 */
.header.sticky .header-inner {
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
  animation: fadeInDown 1s both 0.2s;
  -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
}

