/*模态框主体样式*/
.modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
}

/*模态框公共样式*/
.modal-content {
	z-index: 10000;
	background-color: #fefefe;
	margin: 120rem auto ;
	padding: 50rem;
	border: 1px solid #888;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
	animation: modal-show 0.3s;
	box-sizing: border-box;
}

/* 正常大小 */
.modal-normal {
	width: 1200rem;
}

/* 中等大小 */
.modal-medium {
	width: 400px;
}

/* 迷你大小 */
.modal-mini {
	width: 250px;
}

/* 隐藏 */
.modal-hide {
	animation: modal-hide 0.3s;
}

/* 展示动画 */
@keyframes modal-show {
	from {
		opacity: 0;
		transform: translateY(-50px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 隐藏动画 */
@keyframes modal-hide {
	from {
		opacity: 1;
		transform: translateY(0);
	}

	to {
		opacity: 0;
		transform: translateY(-50px);
	}
}

/*关闭按钮*/
.close {
	z-index: 10000;
	color: #aaa;
	float: right;
	font-size: 28rem;
	font-weight: bold;
	cursor: pointer;
	margin-bottom: 20rem;
	-webkit-tap-highlight-color: rgba(255, 0, 0, 0);
}

/*关闭按钮的鼠标点击和经过样式*/
.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: rgba(255, 0, 0, 0);
}


/* 屏幕小于768 */
	
@media screen and (max-width: 768px) {
	h3 {
		font-size: 60rem;
	}
	.modal-normal {
	    width: 1800rem;
	}
	
	.modal-content {
	    z-index: 10000;
	    background-color: #fefefe;
	    margin: 300rem auto;
	    padding: 100rem;
	}
	
	/*关闭按钮*/
	.close {
		z-index: 10000;
		font-size: 100rem;
		margin-bottom: 20rem;
	}
}