/* resize */
@font-face {
	font-family: 'avant';
	src: url('../font/Montserrat-Regular.ttf') format('truetype');
}
blockquote,body,div,dl,dt,dd,fieldset,h1,h2,h3,h4,h5,h6,hr,input,button,lengend,ul,li,ol,p,pre,th,td,textarea{margin:0;padding:0;}body,button,input,select,textarea{font-size:14px;font-family:'avant',Arial,Helvetica,Helvetica Neue,PingFang SC,'微软雅黑',Heiti SC,sans-serif}i{font-style:normal}u{text-decoration:none}address,cite,dfn,em,var{font-style:normal}code,kbd,pre,samp,tt{font-family:"Courier New",Courier,monospace}ol,ul{list-style:none}a{outline:0;color:inherit;text-decoration:none;cursor:pointer}abbr[title],acronym[title]{border-bottom:1px dotted;cursor:help}q:after,q:before{content:''}button,input,select,textarea{outline:0;font-size:100%}legend{color:#000}fieldset,img{border:none}table{border-collapse:collapse;table-layout:fixed;border-spacing:0}img{width:auto;height:auto;max-width:100%;max-height:100%}textarea{resize:none}hr{border:none;background:#eee}ins{text-decoration:none}button{text-align:center;cursor:pointer}
/* end resize */

/* public */
html {
	font-size: 100px;
}
@media screen and (max-width: 1599px) {
	html {
		font-size: 6.25vw;
	}
}
@media screen and (max-width: 1079px) {
	html {
		font-size: 67.5px;
	}
}
@media screen and (max-width: 750px) {
	html {
		font-size: 13.3333vw;
	}
}

body {
	margin: 0 auto;
	font-size: 14px;
}

.float-box:after {
    content: '';
    display: block;
    clear: both;
}

.m-textarea img {
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.m-textarea video {
    width: 100% !important;
    height: auto !important;
}

.ellipsis,
.p-ellipsis,
.m-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ellipsis-2,
.ellipsis-3,
.ellipsis-n,
.p-ellipsis-2,
.p-ellipsis-3,
.p-ellipsis-n,
.m-ellipsis-2,
.m-ellipsis-3,
.m-ellipsis-n {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: initial;
    -webkit-box-orient: vertical;
}
.ellipsis-2,
.p-ellipsis-2,
.m-ellipsis-2 {
    -webkit-line-clamp: 2;
}
.ellipsis-3,
.p-ellipsis-3,
.m-ellipsis-3 {
    -webkit-line-clamp: 3;
}

.f-cover {
	background-size: cover !important;
	background-position: center !important;
}
.f-img {
	width: 100%;
	height: 100%;
}

/* 移入图片放大 */
.an-img-hover-scale {
	overflow: hidden;
}
.an-img-hover-scale .an {
	transform: scale(1);
	transition: transform .5s ease;
}
.an-img-hover-scale:hover .an {
	transform: scale(1.1);
}
/* end 移入图片放大 */

/* 图片遮罩 */
.img-shade {
	position: relative;
	overflow: hidden;
}
.img-shade:after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,.03);
}
/* end 图片遮罩 */

.u-shade {
	display: none;
	z-index: 100;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: rgba(0,0,0,.5);
}
/* end public */

/* animation */
.an-fadein {
	opacity: 0;
	opacity: 1;
	animation: fadeIn 0.4s;
	animation-fill-mode: forwards;
}
@keyframes fadeIn {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

.an-fadeout {
	opacity: 1;
	animation: fadeOut 0.3s;
	animation-fill-mode: forwards;
}
@keyframes fadeOut {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

.an-bounce {
	transform: scale(0.5);
	transform: scale(1);
	animation: bounce 0.4s;
	animation-fill-mode: forwards;
}
@keyframes bounce {
	0% {
		transform: scale(0.5);
	}

	100% {
		transform: scale(1);
	}
}

.an-scroll {
	transform: translate(0, 0);
	animation-name: scroll;
	animation-duration: 30s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}
.an-scroll.z-pause {
	animation-play-state: paused;
}
@keyframes scroll {
	0% {
		transform: translate(0, 0);
	}
	100% {
		transform: translate(-50%, 0);
	}
}
@keyframes scrollReverse {
	0% {
		transform: translate(-50%, 0);
	}
	100% {
		transform: translate(0, 0);
	}
}
/* end animation */