.header,
.info,
.banner,
.con,
.footer {
	width: 100%;
	box-sizing: border-box;
	/*容器都采用边框盒子模型*/
}

/*.header*/
/* 次导航的设置 */
.top {
	background: #f0f0f0;
	height: 30px;
	line-height: 30px;
}

.top span {
	font-size: 1.2rem;
}

.topright {
	float: right;
}

.topright a:hover {
	color: #F0AD4E;
}

/*.logo搜索栏的设置*/
.logo {
	display: flex;
	flex-flow: row nowrap;
	align-items: flex-start;
}

/*把logo设置为弹性盒子，*/
.logoimg {
	order: 1;
	flex-grow: 1;
	margin: auto;
}

.search {
	order: 2;
	flex-grow: 2;
	margin: auto;
}

/* 搜索框的样式设置 */
input[type="text"] {
	width: 60%;
	height: 40px;
	border: 2px solid #00a9fa;
	border-radius: 4px;
}

input[type="text"]:focus {
	border-color: #f00;
}

/* 搜索按钮的设置 */
input[type="button"] {
	width: 60px;
	height: 40px;
	border-radius: 4px;
	background: #00a9fa;
	color: #fff;
	font-size: 1.8rem;
	font-weight: bold;
	cursor: pointer;
}

input[type="button"]:hover {
	background: rgba(255, 200, 100, 0.5);
}

/*汉堡菜单 */
.nav {
	background: #00a9fa;
	padding: 20px;
	position: relative;
}

.nav ul li {
	display: inline-block;
	margin: 0 30px;
}

.nav li a {
	display: block;
	color: #fff;
	font-size: 1.6rem;
	font-weight: bold;
}

.nav li a:hover {
	color: #f00;
	text-decoration: underline;
}

input[type="checkbox"],
.menu {
	position: absolute;
	top: 3px;
	left: 1.5%;
	display: none;
}

/*.banner广告栏的样式*/
.banner {
	width: 100%;
	background: url(../img/1.jpg) no-repeat 0px 0px;
	background-size: cover;
	min-height: 400px;
	overflow: hidden;
}

/*info*/
.info {
	padding: 20px 20px 30px;
	background: rgba(250, 250, 250, 0.65);
	text-align: center;
	font-size: 2.5rem;
}

.info h3 {
	font-size: 2.5rem;
	font-weight: 400;
	padding: 20px;
	font-family: "楷体";
}

/*.con主体容器的样式,容器设置为弹性盒模型*/
.con {
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	margin: 0 auto;
}

/* 主体元素的样式 */
.item {
	width: 25%;
	box-shadow: 2px 3px 4px #ddd;
	align-self: center;
	margin: 0 1rem;
}

.item h3 {
	padding: 10px 10px;
	color: #333;
	text-align: left;
	font-size: 1.5rem;
}

.item img {
	width: 100%;
	height: auto;
}

.item p {
	color: #999;
	font-size: 1.2rem;
	padding: 10px;
}

.morebtn {
	display: block;
	width: 90%;
	height: 40px;
	border-radius: 4px;
	color: #fff;
	background: rgba(200, 0, 0, 0.8);
	line-height: 40px;
	text-align: center;
	margin: 10px auto;
}

.morebtn:hover {
	background: rgba(200, 0, 0, 0.6);
}

.item h6 {
	font-size: 2rem;
	margin: 15px;
	font-weight: 400;
}

/*主体3子元素的样式*/
.txt {
	flex-grow: 1;
	width: 10%;
	min-height: 200px;
	box-shadow: 3px 3px 4px #DCDCDC;
	margin: 10px 20px;
	align-self: center;
}

.txt h4 {
	text-align: center;
	font-size: 1.6rem;
	margin-top: 10px;
}

.txt p {
	line-height: 200%;
	padding: 10px;
	font-size: 1.4rem;
	text-indent: 2rem;
}

/* 主体3子元素的样式 利用了字体图标 */
.fa-stack {
	color: olivedrab;
	margin-left: 30px;
}

.fa-stack:hover {
	color: #00a9fa;
}

/* footer的样式 */
.footer {
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	background: #00a9fa;
}

.linkbox {
	flex-grow: 1;
	width: 30%;
	height: auto;
	margin: 20px 20px 0;
	align-items: center;
}

.linkbox h4 {
	color: #eee;
	font-size: 1.2rem;
}

.linkbox ul li {
	line-height: 1.6rem;
}

.linkbox li a {
	font-size: 1.2rem;
	color: #fff;
}

/*media媒体查询设置*/

@media only screen and (max-width:768px) {
	.nav ul li {
		display: inline-block;
		margin: 0 20px;
	}

	.banner {
		min-height: 300px;
		overflow: hidden;
	}

	.info,
	.con {
		flex-flow: row wrap;
	}

	.item,
	.txt {
		width: 45%;
		margin: 0px auto;

	}
}

/* 汉堡菜单 */
@media only screen and (max-width:640px) {
	.header .nav ul {
		display: none;
	}

	.menu {
		display: block;
	}

	input[type="checkbox"]:checked~ul {
		display: block;
	}

	nav ul li {
		display: block;
		width: 100%;
		text-align: center;
		padding: 10px 0;
	}

	nav li a {
		font-size: 1.4rem;
	}

	input[type="text"] {
		width: 80%;
	}

	.banner {
		min-height: 200px;
		overflow: hidden;
	}

	.logo,
	.info,
	.con,
	.footer {
		display: flex;
		flex-flow: column;
	}

	.search,
	.item,
	.txt,
	.linkbox {
		width: 90%;
		margin: 5px auto;
	}

}