@charset "utf-8";
body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,button,input,textarea,th,td {
    margin: 0;
    padding: 0;
}

/* 设置默认字体: 手机端的字体最好使用无衬字体 */
body {
    font-size: 12px;
    font-style: normal;
    font-family: "\5FAE\8F6F\96C5\9ED1", Helvetica, sans-serif;
}

/* 字体太小不适合阅读，我们让samll的字体恢复12px */
small {
    font-size: 12px;
}

h1 {
    font-size: 18px;
}
h2 {
    font-size: 16px;
}
h3 {
    font-size: 14px;
}
h4,h5,h6 {
    font-size: 100%;
}

/* 重置列表元素 */
ul,ol {
    list-style: none;
}

/* 重置连接元素 */
a {
    text-decoration: none;
    background-color: transparent;
}
a:hover, a:active {
    outline-width: 0;
    text-decoration: none;
}

/* 重置表格元素 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

hr {
    border: none;
    height: 1px;
}

img {
    border-style: none;
}
img:not([src]) {
    display: none;
}
svg:not(:root) {
    overflow: hidden;
}

/* 下面的操作是对于html5和响应布局准备的，不支持IE6-8以及其它低版本的浏览器 */
html {
    /* 禁用系统默认的菜单 */
    -webkit-touch-callout: none;
    /* 关闭iphone Android的浏览器纵向和横向模式中自动调整字体大小的功能 */
    -webkit-text-size-adjust: 100%;
}

input,textarea,button,a {
    /* 表单或者链接元素在手机点击时会出现边框或者彩色背景区域，这句话是去除点击的背景框 */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* 重置hmtl5元素的默认样式 */
article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary {
    display: block;
}

audio,canvas,progress,video {
    display: inline-block;
}

audio:not([controls]), video:not([controls]) {
    display: none;
    height: 0;
}

progress {
    vertical-align: baseline;
}

mark {
    background-color: #ff0;
    color: #000;
}

/* 上标和下标 */
sub, sup {
    position: relative;
    font-size: 75%;
    line-height: 0;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}
sup {
    top: -0.5em;
}

/* 重置表单元素 */
button,input,select,textarea {
    /* 使得表单元素在IE能继承字体大小 */
    font-size: 100%;
    outline: none;
}

button,input {
    overflow: visible;
}

button,select {
    text-transform: none;
}

textarea {
    overflow: auto;
}

button, html [type="button"],[type="reset"],[type="submit"] {
    -webkit-appearance: button;
}

button::-moz-focus-inner, 
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring, 
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-input-placeholder {
    color: inherit;
    opacity: 0.54;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

/* 清除浮动 */
.clearfix {
    *zoom: 1;
}
.clearfix::before,.clearfix::after {
    display: table;
    content: "";
}
.clearfix::after {
    clear: both;
}
