﻿/*1 -----------重定义浏览器默认样式-----------*/

* {
	word-wrap: break-word
}

a:active,
a:hover,
a:focus,
a:focus-within,
a:visited {
	text-decoration: none;
}

html,
body,
p,
iframe,
dl,
dt,
dd,
ul,
ol,
li,
pre,
form,
button,
input,
textarea,
th,
td,
fieldset {
	margin: 0;
	padding: 0;
	font-weight: normal;
}

ul,
ol,
dl {
	list-style-type: none
}

address,
caption,
cite,
code,
dfn,
em,
th,
var {
	font-style: normal;
	font-weight: 400
}

input,
button,
textarea,
select,
optgroup,
option {
	font-family: inherit;
	font-size: inherit;
	font-style: inherit;
	font-weight: inherit
}

input,
button {
	overflow: visible;
	vertical-align: middle;
	outline: none
}

body,
th,
td,
button,
input,
select,
textarea {
	font-family: Arial, "PingFang SC", "Microsoft Yahei", "Hiragino Sans GB", "Helvetica Neue", Helvetica, tahoma, arial, Verdana, sans-serif, "WenQuanYi Micro Hei", "\5B8B\4F53";
	font-size: 14px;
	color: #666;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale
}

body {
	line-height: 30px;
	flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-size: 100%
}

a,
area {
	outline: none;
	blr: expression(this.onFocus=this.blur())
}

a {
	line-height: 30px;
	text-decoration: none;
	cursor: pointer;
	color: #333
}

a:hover {
	text-decoration: none;
	outline: none;
	color: #000;
	transition: all 200ms ease-in;
}

a.ie6:hover {
	zoom: 1
}

a:focus {
	outline: none
}

a:hover,
a:active {
	outline: none
}

:focus {
	outline: none
}

sub,
sup {
	vertical-align: baseline
}

button,
input[type="button"],
input[type="submit"] {
	line-height: normal !important;
}

/*img*/
img {
	max-width:100%;
	border: 0;
	vertical-align: middle
}

a img,
img {
    -ms-interpolation-mode: bicubic
}

.img-responsive {
	max-width: 100%;
	height: auto
}


/*HTML5 reset*/
header,
main,
footer,
section,
aside,
details,
menu,
article,
section,
nav,
address,
hgroup,
figure,
figcaption,
legend {
	display: block;
	margin: 0;
	padding: 0
}

time {
	display: inline
}

audio,
canvas,
video {
	display: inline-block;
	*display: inline;
	*zoom: 1
}

audio:not([controls]) {
	display: none
}

/*没有controls属性的 audio标签都隐藏*/
legend {
	width: 100%;
	margin-bottom: 20px;
	font-size: 21px;
	line-height: 40px;
	border: 0;
	border-bottom: 1px solid #e5e5e5
}

/*组合表单中的相关元素*/
legend small {
	font-size: 15px;
	color: #999
}

svg:not(:root) {
	overflow: hidden
}

/*svg非根元素的元素超出部分隐藏*/
fieldset {
	border-width: 0;
	padding: 0.35em 0.625em 0.75em;
	margin: 0 2px;
	border: 1px solid #c0c0c0
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
	height: auto
}

input[type="search"] {
	-webkit-appearance: textfield;
	/* 1 */
	-moz-box-sizing: content-box;
	-webkit-box-sizing: content-box;
	/* 2 */
	box-sizing: content-box
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none
}

/*去除系统默认appearance的样式,常用于IOS下移除原生样式*/

/*clearfix 避免因子元素浮动而导致的父元素高度缺失问题*/
.cl:after,
.clearfix:after {
	content: "";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden
}

.cl,
.clearfix {
	zoom: 1
}