/* 代码整理：懒人之家 www.lanrenzhijia.com */
*, *:after, *:before { border-box; box-sizing: border-box; margin:0; padding:0;}
.clearfix:before, .clearfix:after { content: ''; display: table; }
.clearfix:after { clear: both; }



.grid2{
	overflow: hidden;
	margin:0 auto;
	padding: 0;
	width:90%;
	list-style: none;
	text-align: center;
	float:left;  height:320px; border:#CCC solid 1px; padding:1px; margin-bottom:15px
}
/* Common style */
.grid2 figure {
	position: relative;
	z-index: 9999;
	display: inline-block;
	overflow: hidden;
	width: 100%;
	height: 320px;
	background: #06C;
	text-align: center;
	cursor: pointer;
	float:left; opacity:1
}

.grid2 figure img {
	position: relative;
	display: block;
	min-height: 100%;
	opacity: 0.8; padding:1
}

.grid2 figure figcaption {
	padding:0.5em 0;
	color: #fff;
	text-transform: uppercase;
	font-size: 1.25em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;font-size:1.6em;
}
.grid2 figure figcaption h2{ font-size:0.8em;  height:2em; line-height:2; }
.grid2 figure figcaption:before,
.grid2 figure figcaption:after {
	pointer-events: none;
}

.grid2 figure figcaption,
.grid2 figure a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid2 figure a {
	z-index: 1000;
	font-size: 0;
}

.grid2 figure h2 {
	font-weight: normal; position:relative;top:162px;
}

.grid2 figure h2 span {
	font-weight: 200;  margin:0 auto;
}

.grid2 figure h2,
.grid2 figure p {
	margin: 0;
}

.grid2 figure p {
	font-size: 68.5%; text-align: left 
}


/***** Ruby *****/
/*---------------*/

figure.effect-ruby2 {
	background-color: #1960b2;
}

figure.effect-ruby2 img {
	opacity: 1;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale(1);
	transform: scale(1);width:100%; height:225px;
}

figure.effect-ruby2:hover img {
	opacity: 0.2;
	-webkit-transform: scale(1.15);
	transform: scale(1.15); width:100%
}
.jia img:hover{
	opacity: 0.8;
}
figure.effect-ruby2 h2 {
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-transform: translate3d(0,20px,0);
	transform: translate3d(0,20px,0); background:#0053b0; font-weight:bold; z-index:9999999999999999999
}

figure.effect-ruby2 p {
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(0,20px,0) scale(1);
	transform: translate3d(0,20px,0) scale(1);
} 

figure.effect-ruby2:hover h2 {
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);top:0; background:none;font-size:0.9em; line-height:1.2
}

figure.effect-ruby2:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0) scale(1.1);
	transform: translate3d(0,0,0) scale(1.1); text-align:center; font-size:0.8em; padding:10px; line-height:1.5; text-align:left; width:94%; margin:0 auto; box-sizing: border-box
}
figure.effect-ruby2:hover span { width:100px; margin:0 auto; padding:0; font-size:0.8em;line-height:2;}



.grid3{
	overflow: hidden;
	margin: 0;
	padding: 0;
	width:47%;
	list-style: none;
	text-align: center;
	float:left; margin:5px; padding:1px; background:#ffffff; padding:13px;
}
.grid3 img{ width:100%; height:160px}
/* Common style */

