/* ------------------------------------------
 * IT书包
 * 网址：www.itshubao.com
 * 整理：yinq<3331653644@qq.com> 
 -------------------------------------------- */
@charset "UTF-8";
html {
  height: 100%;
  box-sizing: border-box;
}

*, *::after, *::before {
  box-sizing: inherit;
}

body {
  position: relative;
  height: 100%;
  background: mintcream;
  font-family: 'Microsoft YaHei', sans-serif;
  overflow: hidden;
}

nav {
  position: relative;
  width: 350px;
  max-height: 60px;
  margin: 50px auto auto;
  overflow: hidden;
  text-align: center;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
nav[class*=active-]:focus, nav[class*=active-]:hover, nav.focused[class*=active-] {
  outline: none;
  max-height: 240px;
}
nav[class*=active-]:focus ul, nav[class*=active-]:hover ul, nav.focused[class*=active-] ul {
  -webkit-transform: translateY(0);
          transform: translateY(0);
}
nav[class*=active-]:focus::after, nav[class*=active-]:hover::after, nav.focused[class*=active-]::after {
  -webkit-transform: rotateX(180deg);
          transform: rotateX(180deg);
}
nav::after {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 20px;
  color: white;
  content: "";
  font: normal normal normal 24px/1 octicons;
  display: inline-block;
  text-decoration: none;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  line-height: 55px;
  cursor: pointer;
  -webkit-transform: rotateX(0);
          transform: rotateX(0);
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
nav::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 20px;
  color: white;
  content: "";
  font: normal normal normal 24px/1 octicons;
  display: inline-block;
  text-decoration: none;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  line-height: 58px;
  cursor: pointer;
}
nav.active-4 ul {
  -webkit-transform: translateY(-240px);
          transform: translateY(-240px);
}
nav.active-3 ul {
  -webkit-transform: translateY(-180px);
          transform: translateY(-180px);
}
nav.active-2 ul {
  -webkit-transform: translateY(-120px);
          transform: translateY(-120px);
}
nav.active-1 ul {
  -webkit-transform: translateY(-60px);
          transform: translateY(-60px);
}
nav ul {
  -webkit-transform: translateY(0);
          transform: translateY(0);
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
nav li > a {
  display: inline-block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  text-transform: uppercase;
  color: white;
  font-weight: 600;
  font-size: 26px;
  line-height: 60px;
  background: mediumseagreen;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
nav li > a.selected {
  background: seagreen;
  font-weight: 700;
}
nav li > a:focus, nav li > a:hover {
  outline: none;
  background: #28784b;
}