html {
  position: relative;
  min-height: 100%;
}

body {
  padding-top: 0;
  background: #fff;
  margin-bottom: 340px;
}

#site-logo {width: 100%; height: auto; margin-top: 24px;}
#header-search-form {margin-top: 35px; margin-bottom: 30px;}
#header-search-form .input-block-level {
  display: table !important;
}
#header-search-form .input-block-level input {
  display: table-cell !important;
  width: 100%;
}
#header-search-form .input-block-level .btn-group,
#header-search-form .input-block-level a.btn {
  display: table-cell !important;
  width: 1%;
}
#top-right-nav {margin-top: 33px;}


#main-menu {background: #ff9900;}
#main-menu .navbar {margin: 0;}
#main-menu .nav.nav-justified {display: table; width: 100%;}
#main-menu .nav.nav-justified > li {display: table-cell; width: 1%; float: none;}
#main-menu .nav.nav-justified > li > a {color: #333; text-align: center; background: transparent; text-shadow: none;}
#main-menu .nav.nav-justified > li.active,
#main-menu .nav.nav-justified > li>a:hover,
#main-menu .nav.nav-justified > li>a:focus {background: #fc0;}
#main-menu .nav.nav-justified.nohover > li > a:hover,
#main-menu .nav.nav-justified.nohover > li > a:focus,
#main-menu .nav.nav-justified.nohover > li > a:active {background: transparent;}

#all-category {
  background: #333;
  width: 160px;
  margin-right: -20px;
}
#all-category .dropdown-toggle {
  color: #fff;
}
#all-category .nav.nav-justified > li > a {
  color: #fff;
  background: transparent;
}

#left-category {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 0;
  border-radius: 0;
  color: #fff;
}
#left-category:after {
  display: none;
}
#left-category .icon-chevron-right {
  opacity: 0.7;
}
#left-category .nav.nav-tabs {
  margin: 0;
  width: 100%;
}
#left-category .nav.nav-tabs > li {
  float: none;
}
#left-category .nav.nav-tabs > li:hover {
  background-color: #eee;
}
#left-category .nav.nav-tabs > li > a {
  color: #333;
  text-shadow: none;
}
#left-category .nav.nav-tabs > li > a:hover,
#left-category .nav.nav-tabs > li > a:focus {
  background: #eee;
}
#left-category .nav.nav-tabs > li:first-child > a,
#left-category .nav.nav-tabs > li:last-child > a {
  border-radius: 0;
}
#left-category .nav.nav-tabs.secondary {
  display: none;
  position: absolute;
  left: 100%;
  top: 0px;
  margin-left: -1px;
  width: 100%;
  background: #fff;
  z-index: 100;
  border: 1px solid #ddd;
  -webkit-box-shadow: 0 6px 12px rgba(0,0,0,0.175);
  box-shadow: 0 6px 12px rgba(0,0,0,0.175);
}
#left-category .nav.nav-tabs > li:hover > .secondary {
  display: block;
}
#left-category .nav.nav-tabs.secondary > li {
  background: #fff;
}
#left-category .nav.nav-tabs.secondary > li > a {
  border: none;
}
#left-category h4 {
  color: #000;
  padding: 10px 15px;
}
#left-category .nav.nav-tabs.secondary > li > a.view-more {
  color: #337ab7;
  border-top: 1px solid #eee;
}
#left-category .nav.nav-tabs.secondary > li > a.view-more:hover,
#left-category .nav.nav-tabs.secondary > li > a.view-more:focus {
  color: #23527c;
  text-decoration: none;
}


#footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 280px;
  background: #000;
}
#footer .container{
  margin-top: 80px;
}
#footer p {
  color: #999;
}
#footer p.header {
  color: #fc0;
}
#footer p a {
  color: #999;
}
#footer p a:hover {
  color: #ddd;
  text-decoration: none;
}
#footer-logo {
  width: auto;
  height: 50px;
  margin-bottom: 10px;
}
#app-social-container {
  min-height: 110px;
  margin-left: 10px;
  border-left: 1px solid #999;
  padding-left: 9px;
}
#app-container {
  margin-top: 20px;
  margin-bottom: 11px;
}
#android-app {
  display: inline-block;
  width: 102px;
  height: 34px;
  margin-right: 10px;
  background-image: url('/images/bootstrap_v3/system/android-app.png');
}
#ios-app {
  display: inline-block;
  width: 102px;
  height: 34px;
  background-image: url('/images/bootstrap_v3/system/ios-app.png');
}
#social-container {
  position: relative;
  height: 25px;
  overflow: visible;
}
#wechat {
  display: inline-block;
  width: 30px;
  height: 25px;
  margin-right: 10px;
  background-image: url('/images/bootstrap_v3/system/wechat.png');
}
#weibo {
  display: inline-block;
  width: 31px;
  height: 25px;
  margin-right: 10px;
  background-image: url('/images/bootstrap_v3/system/weibo.png');
}
#facebook {
  display: inline-block;
  width: 25px;
  height: 25px;
  margin-right: 10px;
  background-image: url('/images/bootstrap_v3/system/facebook.png');
}

@media (min-width: 1200px) {
  #site-logo {margin-top: 16px;}

  #all-category {
    width: 200px;
    margin-right: -30px;
  }

  #app-social-container {
    margin-left: 15px;
    border-left: 1px solid #999;
    padding-left: 14px;
  }
}

@media (min-width: 768px) and (max-width: 979px) {
  #site-logo {margin-top: 30px;}
  #all-category {width: 124px;}
}

@media (max-width: 767px) {
  body {
    margin-bottom: 0;
    padding-bottom: 0;
  }
  #site-logo {max-width: 50%; margin-left: 25%;}
  #all-category {width: 100%; margin-right: 0;}
  #all-category .nav.nav-justified {float: none;}
  #left-category .nav.nav-tabs.secondary { left: auto; right: 0; width: 60%; }
  #footer {
    position: relative;
    width: auto;
    height: auto;
    margin-left: -20px;
    margin-right: -20px;
    padding: 40px 20px 20px;
    text-align: center;
  }
  #footer .container{
    margin-top: 0;
  }
  #app-social-container {
    margin-left: 0;
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 480px) {

}
