@charset "utf-8";
/* CSS Document */

#menu {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	padding: 0;
}
#menu li{
	display: inline-block;
	float: left;
	width: 12.5%;
	padding: 0;
}



@media screen and (min-width: 768px){
	
#menu li{
		margin: 10px 0.5%;
	}
#menu li a {
	display: table-cell;
	 vertical-align: middle;
	width: 20%;
	height: 45px;
	padding:0 5%;
	background-color: #fff;
	color: #77d6ee;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;        /* CSS3草案 */  
    -webkit-border-radius: 4px;    /* Safari,Google Chrome用 */  
    -moz-border-radius: 4px;   /* Firefox用 */ 
	transition: 0.5s ;
}
#menu li:last-child a{
	border: none;
}
#menu li a:hover{
	display: table-cell;
	 vertical-align: middle;
	background: #cccccc;
	color: #fff;
}
	

#menu li a.active{
color:#fff;
background:#77d6ee;
}
}

#toggle {
	display: none;
}

@media only screen and (max-width: 768px) {
  #menu li{
    width: 15%;
	margin: 10px 0.5%;
  }
	
#menu li a {
	display: table-cell;
	 vertical-align: middle;
	width: 20%;
	height: 47px;
	padding:0 5%;
	background-color: #fff;
	color: #77d6ee;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;        /* CSS3草案 */  
    -webkit-border-radius: 4px;    /* Safari,Google Chrome用 */  
    -moz-border-radius: 4px;   /* Firefox用 */ 
	transition: 0.5s ;
}
#menu li:last-child a{
	border: none;
}
#menu li a:hover{
	display: table-cell;
	 vertical-align: middle;
	background: #cccccc;
	color: #fff;
}
	
#menu li a.active{
color:#fff;
background:#77d6ee;
}
	
}
@media only screen and (max-width: 480px){
  #menu{
    display: none;
  }
  #menu li{
    width: 100%;
	margin: 0 0.5%;
  }
	
#menu li a {
	display:block;
	width: 100%;
	height: 20px;
	padding: 10% 0;
	background-color: #fff;
	color: #77d6ee;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;        /* CSS3草案 */  
    -webkit-border-radius: 4px;    /* Safari,Google Chrome用 */  
    -moz-border-radius: 4px;   /* Firefox用 */ 
	transition: 0.5s ;
}
#menu li:last-child a{
	border: none;
}
#menu li a:hover{
	display:block;
	background: #cccccc;
	color: #fff;
}

	
  #toggle{
    display: block;
    position: relative;
    width: 100%;
    background: #222;
  }
  #toggle a{
    display: block;
    position: relative;
    padding: 12px 0 10px;
    border-bottom: 1px solid #444;
    color: #fff;
    text-align: center;
    text-decoration: none;
  }
  #toggle:before{
    display: block;
    content: "";
    position: absolute;
    top: 50%;
    left: 10px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    background: #fff;
  }
  #toggle a:before, #toggle a:after{
    display: block;
    content: "";
    position: absolute;
    top: 50%;
    left: 10px;
    width: 20px;
    height: 4px;
    background: #222;
  }
  #toggle a:before{
    margin-top: -6px;
  }
  #toggle a:after{
    margin-top: 2px;
  }
}