/* CSS Document */
body {
    font-size:12px;
	font-family:"Microsoft YaHei", "SimSun";
	color:#333; 
}
body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre,fieldset, lengend, button, input, textarea,th, td {
    margin: 0;
    padding: 0;
}
a{text-decoration:none;outline:none; color:#666;}
img{border:0;vertical-align: middle;
}
input{border:none;outline:none;}
ol,ul,li{list-style: none;}
h1, h2, h3, h4, h5, h6{font-weight: normal;font-size: 100%;}

/*合并表格边框，设置边框距为零*/
table{border-collapse: collapse;border-spacing: 0;}

/*清除浮动*/
.clear{clear:both;}
.clear-fix:after {content: ".";display: block;height: 0;font-size: 0;clear: both;visibility: hidden;}
.clear-fix {+height:1%;}

/*强制换行*/
.break_word{word-wrap:break-word;word-break:break-all;}

/*禁止换行*/
.keep_all{word-break:keep-all;white-space:nowrap;}

/*超出省略号，仅限单行，并且需要设定一个宽度*/
.ellipsis { overflow: hidden; text-overflow: ellipsis; display: block; white-space: nowrap;}

/*段落两端对齐*/
.case_intro , .txt_justify{text-align:justify;text-justify:inter-ideograph;}

/*禁止FF等浏览器给textarea增加可拖拽大小的设置*/
textarea { resize: none; }

/*隐藏*/
.hide{ display:none;}

/*仅写自己所要用到的*/
.fl{ float:left;}
.fr{ float:right;}
/*英文字母大小写*/
.en{
	text-transform:uppercase;/*全部大写*/
	text-transform:lowercasecase;/*全部小写*/
	text-transform:capitalize;/*首字母大写*/
}


#about {
	color: #999;
	text-align: center;
	font: 0.9em Arial, Helvetica;
}
#about a {
	color: #777;
}
.menu {
	width: 620px;
	margin: 50px auto;
	padding: 15px;
	list-style: none;
	counter-reset: li;
	background: #eee;
	-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .1) inset;
	-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .1) inset;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .1) inset;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	border-radius: 10px;
}
.menu:before, .menu:after {
	content: "";
	display: table;
}
.menu:after {
	clear: both;
}
.menu {
	zoom:1;
}
/* -------------------------------- */        

.menu li {
	position: relative;
	float: left;
	cursor: pointer;
	height: 120px;
	width: 200px;
	margin: 10px 0 0 10px;
	color: #fff;
}
.menu li:hover, .menu li:focus {
	background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, .2)), to(rgba(255, 255, 255, 0)));
	background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0));
	background-image: -moz-linear-gradient(top, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0));
	background-image: -ms-linear-gradient(top, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0));
	background-image: -o-linear-gradient(top, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0));
	background-image: linear-gradient(top, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0));
}
.menu .cover {
	z-index: 2;
}
.menu .cover:focus {
	outline: 0;
}

/* -------------------------------- */

.menu li::after {
 content: counter(li);
 counter-increment: li;
 font: italic bold 10px serif, georgia;
 position: absolute;
 color: rgba(255, 255, 255, .1);
 opacity: 0;
 -webkit-transition: all .2s ease-out;
 -moz-transition: all .2s ease-out;
 -ms-transition: all .2s ease-out;
 -o-transition: all .2s ease-out;
 transition: all .2s ease-out;
}
 .menu li:hover::after, .menu li:focus::after {
 font-size: 100px;
 opacity: 1;
}
 .menu .cover::after {
 z-index: -1;
}

/* -------------------------------- */       

.menu li:nth-child(1), .menu li:nth-child(2), .menu li:nth-child(3) {
 margin-top: 0;
}
 .menu li:nth-child(1), .menu li:nth-child(4), .menu li:nth-child(7) {
 margin-left: 0;
}

/* -------------------------------- */       

.menu li:nth-child(1), .menu li:nth-child(1) .content, .menu li:nth-child(1) .close {
 background-color: #2c618f;
}
 .menu li:nth-child(2), .menu li:nth-child(2) .content, .menu li:nth-child(2) .close {
 background-color: #91ab31;
}
 .menu li:nth-child(3), .menu li:nth-child(3) .content, .menu li:nth-child(3) .close {
 background-color: #714a28;
}
 .menu li:nth-child(4), .menu li:nth-child(4) .content, .menu li:nth-child(4) .close {
 background-color: #e58600;
}
 .menu li:nth-child(5), .menu li:nth-child(5) .content, .menu li:nth-child(5) .close {
 background-color: #c33a00;
}
 .menu li:nth-child(6), .menu li:nth-child(6) .content, .menu li:nth-child(6) .close {
 background-color: #7f5dac;
}
 .menu li:nth-child(7), .menu li:nth-child(7) .content, .menu li:nth-child(7) .close {
 background-color: #5672b7;
}
 .menu li:nth-child(8), .menu li:nth-child(8) .content, .menu li:nth-child(8) .close {
 background-color: #69003f;
}
 .menu li:nth-child(9), .menu li:nth-child(9) .content, .menu li:nth-child(9) .close {
 background-color: #393043;
}
/* -------------------------------- */

.menu .content {
	opacity: 0;
	display: none\9;
	overflow: hidden;
	font: 12px Arial, Helvetica;
	position: absolute;
	height: 120px;
	width: 200px; /* Ideally: height: 100%; width: 100%; but works at it should just in FF */
 -webkit-transition: all .3s ease-out;
 -moz-transition: all .3s ease-out;
 -ms-transition: all .3s ease-out;
 -o-transition: all .3s ease-out;
 transition: all .3s ease-out;
}
.menu .expanded {
	opacity: .95;
	display: block\9;
	overflow: visible;
	padding: 40px;
	height: 300px;
	width: 540px; /* Cover the entire area */
}
 .menu li:nth-child(3n) .content { /* 3,6,9 */
 right: 0;
}
 .menu li:nth-child(3n-1) .expanded { /* 2,5,8 */
 left: 50%;
 margin-left: -310px;
}
 .menu li:nth-child(7) .content, /* 7,8,9 */ .menu li:nth-child(8) .content, .menu li:nth-child(9) .content {
 bottom: 0;
}
 .menu li:nth-child(4) .expanded, /* 4,5,6 */ .menu li:nth-child(5) .expanded, .menu li:nth-child(6) .expanded {
 margin-top: -190px;
 top: 50%;
}
/* -------------------------------- */    

.menu .title {
	position: absolute;
	height: 100%;
	width: 100%;
	text-align: center;
	font: italic bold 1em/120px 'trebuchet MS', Arial, helvetica;
	opacity: .2;
}
.menu li:hover .title {
	opacity: .7;
}
/* -------------------------------- */

.menu .close {
	display: none;
	border: 5px solid #fff;
	color: #fff;
	cursor: pointer;
	height: 40px;
	width: 40px;
	font: bold 20px/40px arial, helvetica;
	position: absolute;
	text-align: center;
	top: -20px;
	right: -20px;
	-moz-border-radius: 40px;
	-webkit-border-radius: 40px;
	border-radius: 40px;
}
.menu .cover .close {
	display: block;
}