/* 通用样式 */

/* *, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
body, html { font-size: 100%; padding: 0; margin: 0;}
body {
	font-family: 'Lato', Calibri, Arial, sans-serif;
	color: #b3b9bf;
	background: #f9f9f9;
}
a {
	color: #888;
	text-decoration: none;
} 
a:hover, a:active {
	color: #333;
}
*/

.bg-text {
	background-color: gray;
	width: 21.875rem;
	height: 21.875rem;
	color: whitesmoke;
	align-items: center;
	justify-content: center;
	display: flex;
	position: relative;
	border-radius: 10px;
	background: #333333;
}

.grid {
	margin: 0 auto;
	list-style: none;
	text-align: center;
}

.grid li {
	display: inline-block;
	max-width: 370px;
	max-height: 350px;
	margin: 3px;
	text-align: left;
	position: relative;
}

.grid figure {
	margin: 0;
	position: relative;
}

.grid figure img {
	max-width: 100%;
	display: block;

}

.grid figcaption {
	position: absolute;
	top: 0;
	left: 0;
	padding: 20px;
	background: #080808d4;
	color: white;
}

.grid figcaption h3 {
	margin: 0;
	padding: 0;
	color: #fff;
}

.grid figcaption span:before {
	/* content: 'by '; */
}

.grid figcaption a {
	text-align: center;
	padding: 5px 10px;
	border-radius: 2px;
	display: inline-block;
}

/* 说明文字样式 1 */

.cs-style-1 figcaption {
	height: 100%;
	width: 100%;
	opacity: 0;
	text-align: center;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
	-moz-transition: -moz-transform 0.3s, opacity 0.3s;
	transition: transform 0.3s, opacity 0.3s;
}

.no-touch .cs-style-1 figure:hover figcaption,
.cs-style-1 figure.cs-hover figcaption {
	opacity: 1;
	-webkit-transform: translate(0px, 0px);
	-moz-transform: translate(0px, 0px);
	-ms-transform: translate(0px, 0px);
	transform: translate(0px, 0px);
}

.cs-style-1 figcaption h3 {
	margin-top: 70px;
}

.cs-style-1 figcaption span {
	display: block;
}

.cs-style-1 figcaption a {
	position: absolute !important;
	bottom: 20px !important;
	right: 40%;
}

figcaption{
	border-radius: 10px;
}

figcaption span {
	text-align: left;
}

figcaption .btn {
	border-radius: 5px;
	background: linear-gradient(132.09deg, #FF9902 0%, #FFCE86 100%);
	box-shadow: 0px 20px 30px 0px #FFCCB4;
}

@media screen and (max-width: 31.5em) {
	.grid {
		padding: 10px 10px 100px 10px;
	}

	.grid li {
		width: 100%;
		min-width: 300px;
	}
}
