nav {
  height: 55px;
  background-color: #861118;
  border-bottom:5px solid #720b11;
}
.main{
  width:1200px;
  height:100%;
  margin:0 auto
}
.main > li {
  width:120px;
  text-align:center;
  float:left;
  height:100%;
  border-right:1px solid #62090e;
  border-left:1px solid #960f17;
}
.main li:first-child{border-left:0}
.main li:last-child{border-right:0}
.main li ul{    z-index: 999;
    position: relative;}


.main > li a {  text-decoration: none;
  color: #fff;
  display: block;
  font-size: 16px;
  transition: background-color 0.5s ease-in-out;height:55px;line-height:55px;}


.main > li a:hover {
  background-color: #720b11;
}
/*显示，隐藏二级菜单*/
.main > li:hover ul li{
	display:block;
}
.drop li {
  opacity: 0;
  transform-origin: top center;
  display:none;
}

.drop li a {
  background: rgba(134,17,24, 0.9);
}

/*------------- menu1 animation -------------------*/

.main li:hover .menu1 li:first-of-type {
  animation: menu1 0.3s ease-in-out forwards;
  animation-delay: 0.3s;
}

.main li:hover .menu1 li:nth-of-type(2) {
  animation: menu1 0.3s ease-in-out forwards;
  animation-delay: 0.6s;
}

.main li:hover .menu1 li:nth-of-type(3) {
  animation: menu1 0.3s ease-in-out forwards;
  animation-delay: 0.9s;
}

.main li:hover .menu1 li:last-of-type {
  animation: menu1 0.3s ease-in-out forwards;
  animation-delay: 1.2s;
}

@keyframes menu1 {
  from {
    opacity: 0;
    transform: translateX(30px) rotateY(90deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0);
  }
}

/*------------- menu2 animation -------------------*/

.main li:hover .menu2 li:first-of-type {
  animation: menu2 0.3s ease-in-out forwards;
  animation-delay: 0.3s;
}

.main li:hover .menu2 li:nth-of-type(2) {
  animation: menu2 0.3s ease-in-out forwards;
  animation-delay: 0.6s;
}

.main li:hover .menu2 li:nth-of-type(3) {
  animation: menu2 0.3s ease-in-out forwards;
  animation-delay: 0.9s;
}

.main li:hover .menu2 li:last-of-type {
  animation: menu2 0.3s ease-in-out forwards;
  animation-delay: 1.2s;
}

@keyframes menu2 {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/*------------- menu3 animation -------------------*/

.main li:hover .menu3 li:first-of-type {
  animation: menu3 0.3s ease-in-out forwards;
  animation-delay: 0.3s;
}

.main li:hover .menu3 li:nth-of-type(2) {
  animation: menu3 0.3s ease-in-out forwards;
  animation-delay: 0.6s;
}

.main li:hover .menu3 li:nth-of-type(3) {
  animation: menu3 0.3s ease-in-out forwards;
  animation-delay: 0.9s;
}

.main li:hover .menu3 li:last-of-type {
  animation: menu3 0.3s ease-in-out forwards;
  animation-delay: 1.2s;
}

@keyframes menu3 {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/*------------- menu4 animation -------------------*/

.main li:hover .menu4 li:first-of-type {
  animation: menu4 0.3s ease-in-out forwards;
  animation-delay: 0.3s;
}

.main li:hover .menu4 li:nth-of-type(2) {
  animation: menu4 0.3s ease-in-out forwards;
  animation-delay: 0.6s;
}

.main li:hover .menu4 li:nth-of-type(3) {
  animation: menu4 0.3s ease-in-out forwards;
  animation-delay: 0.9s;
}

.main li:hover .menu4 li:last-of-type {
  animation: menu4 0.3s ease-in-out forwards;
  animation-delay: 1.2s;
}

@keyframes menu4 {
  0% {
    opacity: 0;
    transform: translateX(50px) rotate(-90deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

/*------------- menu5 animation -------------------*/

.main li:hover .menu5 li:first-of-type {
  animation: menu5 0.3s ease-in-out forwards;
  animation-delay: 0.3s;
}

.main li:hover .menu5 li:nth-of-type(2) {
  animation: menu5 0.3s ease-in-out forwards;
  animation-delay: 0.6s;
}

.main li:hover .menu5 li:nth-of-type(3) {
  animation: menu5 0.3s ease-in-out forwards;
  animation-delay: 0.9s;
}

.main li:hover .menu5 li:last-of-type {
  animation: menu5 0.3s ease-in-out forwards;
  animation-delay: 1.2s;
}

@keyframes menu5 {
  0% {
    opacity: 0;
    transform: rotateX(-90deg);
  }
  100% {
    opacity: 1;
    transform: rotateX(0);
  }
}

/*------------- menu6 animation -------------------*/

.main li:hover .menu6 li:first-of-type {
  animation: menu6 0.3s ease-in-out forwards;
  animation-delay: 0.2s;
}

.main li:hover .menu6 li:nth-of-type(2) {
  animation: menu6 0.3s ease-in-out forwards;
  animation-delay: 0.4s;
}

.main li:hover .menu6 li:nth-of-type(3) {
  animation: menu6 0.3s ease-in-out forwards;
  animation-delay: 0.6s;
}

.main li:hover .menu6 li:last-of-type {
  animation: menu6 0.3s ease-in-out forwards;
  animation-delay: 0.8s;
}

@keyframes menu6 {
  0% {
    opacity: 0;
    transform: scale(2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/*------------- menu7 animation -------------------*/

.main li:hover .menu7 li:first-of-type {
  animation: menu7 0.3s ease-in-out forwards;
  animation-delay: 0.3s;
}

.main li:hover .menu7 li:nth-of-type(2) {
  animation: menu7 0.3s ease-in-out forwards;
  animation-delay: 0.6s;
}

.main li:hover .menu7 li:nth-of-type(3) {
  animation: menu7 0.3s ease-in-out forwards;
  animation-delay: 0.9s;
}

.main li:hover .menu7 li:last-of-type {
  animation: menu7 0.3s ease-in-out forwards;
  animation-delay: 1.2s;
}
@keyframes menu7 {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/*------------- menu8 animation -------------------*/

.main li:hover .menu8 li:first-of-type {
  animation: menu8 0.3s ease-in-out forwards;
  animation-delay: 0.3s;
}

.main li:hover .menu8 li:nth-of-type(2) {
  animation: menu8 0.3s ease-in-out forwards;
  animation-delay: 0.6s;
}

.main li:hover .menu8 li:nth-of-type(3) {
  animation: menu8 0.3s ease-in-out forwards;
  animation-delay: 0.9s;
}

.main li:hover .menu8 li:last-of-type {
  animation: menu8 0.3s ease-in-out forwards;
  animation-delay: 1.2s;
}
@keyframes menu8 {
  0% {
    opacity: 0;
    transform: translateX(50px) rotate(90deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

/*------------- menu9 animation -------------------*/

.main li:hover .menu9 li:first-of-type {
  animation: menu9 0.3s ease-in-out forwards;
  animation-delay: 0.3s;
}

.main li:hover .menu9 li:nth-of-type(2) {
  animation: menu9 0.3s ease-in-out forwards;
  animation-delay: 0.6s;
}

.main li:hover .menu9 li:nth-of-type(3) {
  animation: menu9 0.3s ease-in-out forwards;
  animation-delay: 0.9s;
}

.main li:hover .menu9 li:last-of-type {
  animation: menu9 0.3s ease-in-out forwards;
  animation-delay: 1.2s;
}

@keyframes menu9 {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}


/* my button style */
.white-mode {
  text-decoration: none;
  padding: 7px 10px;
  background-color: #122;
  border-radius: 3px;
  color: #fff;
  transition: 0.35s ease-in-out;
  position: absolute;
  left: 15px;
  bottom: 15px;
  font-family: sans-serif;
}

.white-mode:hover {
  background-color: #fff;
  color: #122;
}
