

.grid {
	position: relative;
	margin: 0 auto;
	padding: 1em 0 4em;
	min-width: 1366px;
	list-style: none;
	text-align: center;
	width: 90%;
}

/* Common style */
.grid figure {
	position: relative;
	float: left;
	overflow: hidden;
	margin: 20px 1%;
	min-width: 300px;
	min-height: 367px;
	width: 23%;
	background: #fff;
	text-align: center;
	cursor: pointer;
}

.grid figure img {
	position: relative;
	display: block;
	min-height: 100%;
	max-width: 100%;
	opacity: 1;
	width: 100%;
}

.grid figure figcaption {
	padding: 2em 0;
	color: #fff;
	text-transform: uppercase;
	font-size: 1.25em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
	pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption > 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 */
.grid figure figcaption > a {
	z-index: 1000;
	text-indent: 200%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}



.grid figure h2,
.grid figure p {
	margin: 0;
}


/*---------------*/
/***** 解决方案 *****/
/*---------------*/

figure.effect-ruby {
	/* background-color: #0772d5; */
}

figure.effect-ruby img {
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale(1.15);
	transform: scale(1.15);
	min-height: 367px;
}

figure.effect-ruby:hover img {
	-webkit-transform: scale(1);
	transform: scale(1);
}

figure.effect-ruby h2 {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 1;
	text-align: center;
	line-height: 60px;
	display: block;
	background-color:rgba(0, 0, 0, .3);
	width: 100%;
	font-size: 20px;
	transition: all .2s linear;
}

figure.effect-ruby .E-resolve-div {
	margin: 10% 0 0;
	padding: 3em;
	background-color:rgba(7, 114, 213, .8);
	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.1);
	transform: translate3d(0,20px,0) scale(1.1);
	min-height: 220px;
} 
.E-resolve-div>h4{
	font-size: 24px;
	line-height: 48px;
	padding-bottom: 25px;
}
.E-resolve-div>p{
	font-size: 18px;
	line-height: 30px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

figure.effect-ruby:hover h2 {
	
	transition: all .2s linear;
	opacity: 0;
}

figure.effect-ruby:hover .E-resolve-div {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0) scale(1);
	transform: translate3d(0,0,0) scale(1);
}
