/*常用样式库*/
.overflow-hidden {
	overflow: hidden;
}

.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}

.absolute-center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.txt-clamp {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
}

.txt-clamp[data-clamp='1'] {
	-webkit-line-clamp: 1;
}

.txt-clamp[data-clamp='2'] {
	-webkit-line-clamp: 2;
}

.txt-clamp[data-clamp='3'] {
	-webkit-line-clamp: 3;
}

.txt-clamp[data-clamp='4'] {
	-webkit-line-clamp: 4;
}

.swiper-pagination-bullet-active {
	background: var(--style-color);
}

#pager-wrap {
	margin-top: 20px;
}

#pager-wrap ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

#pager-wrap ul>li {
	margin: 0 2px 4px;
	font-size: 12px;
	padding: 8px;
	min-width: 36px;
	text-align: center;
	color: var(--style-color);
	border: 1px solid var(--style-color);
	cursor: pointer;
}

#pager-wrap li.active {
	color: #fff;
	background-color: var(--style-color);
}

@media (min-width: 768px) {
	.prev-btn, .next-btn {
		display: block;
	}
}

@media (min-width: 1200px) {
	#pager-wrap {
		margin-top: 42px;
	}

	#pager-wrap ul>li:hover {
		color: #fff;
		background-color: var(--style-color);
	}
}

/*文字相关公共库*/
*[data-size='48px'] {
	font-size: 28px;
}

*[data-size='46px'] {
	font-size: 28px;
}

*[data-size='40px'] {
	font-size: 28px;
}

*[data-size='36px'] {
	font-size: 24px;
}

*[data-size='30px'] {
	font-size: 24px;
}

*[data-size='28px'] {
	font-size: 24px;
}

*[data-size='26px'] {
	font-size: 20px;
}

*[data-size='24px'] {
	font-size: 20px;
}

*[data-size='22px'] {
	font-size: 18px;
}

*[data-size='20px'] {
	font-size: 18px;
}

*[data-size='18px'] {
	font-size: 16px;
}

*[data-size='16px'] {
	font-size: 16px;
}

@media(min-width:768px) {
	*[data-size='46px'] {
		font-size: 38px;
	}

	*[data-size='40px'] {
		font-size: 34px;
	}

	*[data-size='36px'] {
		font-size: 28px;
	}

	*[data-size='30px'] {
		font-size: 24px;
	}

	*[data-size='26px'] {
		font-size: 20px;
	}

	*[data-size='22px'] {
		font-size: 20px;
	}

	*[data-size='20px'] {
		font-size: 18px;
	}
}

@media(min-width:1200px) {
	*[data-size='48px'] {
		font-size: 48px;
	}

	*[data-size='46px'] {
		font-size: 46px;
	}

	*[data-size='40px'] {
		font-size: 40px;
	}

	*[data-size='36px'] {
		font-size: 36px;
	}

	*[data-size='30px'] {
		font-size: 30px;
	}

	*[data-size='28px'] {
		font-size: 28px;
	}

	*[data-size='26px'] {
		font-size: 26px;
	}

	*[data-size='24px'] {
		font-size: 24px;
	}

	*[data-size='22px'] {
		font-size: 20px;
	}

	*[data-size='20px'] {
		font-size: 20px;
	}

	*[data-size='18px'] {
		font-size: 18px;
	}
}

@media(min-width:1440px) {
	*[data-size='22px'] {
		font-size: 22px;
	}
}

/*图片相关公共库*/
.fit-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.scale-img {
	overflow: hidden;
	display: block;
}

@media(min-width:1200px) {
	.scale-img img {
		-webkit-transition: all .7s;
		-moz-transition: all .7s;
		-o-transition: all .7s;
		transition: all .7s;
	}

	.scale-img:hover img {
		-webkit-transform: scale(1.1);
		-moz-transform: scale(1.1);
		-o-transform: scale(1.1);
		transform: scale(1.1);
	}
}

/*按钮相关公共库*/
.btn-transY {
	transition: all 0.6s ease;
}

.btn-rotateX {
	position: relative;
	overflow: hidden;
}

.btn-rotateX::after {
	background-color: #fff;
	content: "";
	width: 50px;
	height: 155px;
	opacity: .2;
	position: absolute;
	top: -50px;
	left: -75px;
	transform: rotate(35deg);
	transition: all 550ms cubic-bezier(.19, 1, .22, 1);
	z-index: 2;
}

@media(min-width:1200px) {
	.btn-transY:hover {
		transform: translateY(-5px);
		box-shadow: 0 0 10px rgba(0, 0, 0, .4);
	}

	.btn-rotateX:hover::after {
		left: 120%;
		transition: all 550ms cubic-bezier(.19, 1, .22, 1);
	}
}