body {
  position: relative;
  padding-top: 40px;
}

/* 顶部导航 */
body > .navbar .brand {
  padding-right: 0;
  padding-left: 0;
  margin-left: 20px;
  float: right;
  font-weight: bold;
  color: #000;
  text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.125);
  -webkit-transition: all .2s linear;
     -moz-transition: all .2s linear;
          transition: all .2s linear;
}

body > .navbar .brand:hover {
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.4);
}

/* 面包屑导航 */
#breadcrumb {
    padding-top: 20px;
}

/* 侧边栏导航 */
.doc-sidenav {
  width: 228px;
  padding: 0;
  background-color: #fff;
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
  -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.065);
     -moz-box-shadow: 0 1px 4px rgba(0,0,0,.065);
          box-shadow: 0 1px 4px rgba(0,0,0,.065);
}

.doc-sidenav > li > a {
  display: block;
  *width: 190px;
  margin: 0 0 -1px;
  padding: 8px 14px;
  border: 1px solid #e5e5e5;
}

.doc-sidenav > li:first-child > a {
  -webkit-border-radius: 6px 6px 0 0;
     -moz-border-radius: 6px 6px 0 0;
          border-radius: 6px 6px 0 0;
}

.doc-sidenav > li:last-child > a {
  -webkit-border-radius: 0 0 6px 6px;
     -moz-border-radius: 0 0 6px 6px;
          border-radius: 0 0 6px 6px;
}

.doc-sidenav > .active > a {
  position: relative;
  z-index: 2;
  padding: 9px 15px;
  border: 0;
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
  -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
     -moz-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
          box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
}

/* 侧边栏导航的箭头 */
.doc-sidenav .icon-chevron-right {
  float: right;
  margin-top: 2px;
  margin-right: -6px;
  opacity: .25;
}

.doc-sidenav > li > a:hover {
  background-color: #f5f5f5;
}

.doc-sidenav a:hover .icon-chevron-right {
  opacity: .5;
}

.doc-sidenav .active .icon-chevron-right,
.doc-sidenav .active a:hover .icon-chevron-right {
  background-image: url(../img/glyphicons-halflings-white.png);
  opacity: 1;
}

.doc-sidenav.affix {
  top: 61px; /* nav's height 41px + 20px margin */
}

.doc-sidenav.affix-bottom {
  position: absolute;
  top: auto;
  bottom: 81px; /* footer's height 61px + 20px margin */
}

/* Sections */
section > .page-header,
section > .lead {
  color: #5a5a5a;
}

section > ul li {
  margin-bottom: 5px;
}

/* Footer */
.footer {
  padding: 20px 0;
  margin-top: 20px;
  border-top: 1px solid #e5e5e5;
  background-color: #f5f5f5;
}

.footer p {
  margin-bottom: 0;
  color: #777;
}

/* Responsive */
/* Desktop large */
@media (min-width: 1200px) {
  .doc-sidenav {
    width: 258px;
  }
}

/* Desktop */
@media (max-width: 980px) {
  body {
    padding-top: 0;
  }

  body > .navbar-fixed-top {
    margin-bottom: 0;
  }

  /* Unfloat brand */
  body > .navbar-fixed-top .brand {
    float: left;
    margin-left: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* When affixed, space properly */
  .doc-sidenav {
    top: 0;
  }
}

/* Tablet to desktop */
@media (min-width: 768px) and (max-width: 980px) {
  /* Adjust sidenav width */
  .doc-sidenav {
    width: 166px;
  }

  .doc-sidenav.affix {
    top: 20px;
  }
}

/* Tablet */
@media (max-width: 767px) {
  .doc-sidenav {
    width: auto;
    margin-bottom: 20px;
  }

  .doc-sidenav.affix {
    position: static;
    width: auto;
    top: 0;
  }

  .footer {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Landscape phones */
@media (max-width: 480px) {
  .footer .pull-right {
    float: none;
  }
}