/* ----- 引入全局字体样式 ------ */
@font-face {
  font-family: "SourceHanSansCN-Normal";
  src: url("../assets/font/SourceHanSansCN-Normal.eot");
  src: url("../assets/font/SourceHanSansCN-Normal.eot?#font-spider") format("embedded-opentype"),
    url("../assets/font/SourceHanSansCN-Normal.woff") format("woff"),
    url("../assets/font/SourceHanSansCN-Normal.ttf") format("truetype"),
    url("../assets/font/SourceHanSansCN-Normal.svg") format("svg");
  font-weight: normal;
  font-style: normal;
}

:root {
  font-size: 14px;
}

@media (max-width:576px) {
  :root {
    font-size: 12px;
  }
}

@media (min-width: 992px) {
  :root {
    font-size: 16px !important;
  }
}

@media (min-width: 1920px) {
  :root {
    font-size: 1vw !important;
  }
}

* {
  -webkit-box-sizing: border-box;
  /*设置盒模型的实际大小不受border,padding的影响*/
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  width: 100%;
}

body {
  font-family: "SourceHanSansCN-Normal";
  line-height: 1.9;
  color: #333333;
  background-color: #fff;
  min-width: 375px !important;
  margin: 0 auto !important;
  position: relative;
  -webkit-overflow-scrolling: touch;
  /*滚动条快速滚动和回弹*/
}

/* ----- html5 elements reset ------ */

article,
aside,
details,
figcaption,
figure,
header,
section,
footer,
hgroup,
main,
nav,
summary {
  display: block;
}

audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}

audio:not([controls]) {
  /*隐藏所有没有显示控件的audio标签*/
  display: none;
  height: 0;
}

[hidden],
template {
  display: none;
}

a {
  background: transparent;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  color: #333333;
  outline: none;
}

a:active {
  outline: 0;
}

img {
  display: block;
  border: 0;
}

button,
input,
optgroup,
select,
textarea {
  color: inherit;
  /*继承父级字体颜色和字体复合属性*/
  font: inherit;
}

button {
  overflow: visible;
  /*额外间距消除*/
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  /*类似按钮效果[模拟]*/
  cursor: pointer;
}

button[disabled],
input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  /*低版本FireFox:button input文字垂直居中*/
  border: 0;
  padding: 0;
  margin: 0;
}

select {
  border: 0;
}

select::-ms-expand {
  display: none;
}

input,
textarea,
button,
select {
  outline: medium;
}

input,
select {
  outline: medium;
}

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  /*设置盒模型的实际大小不受border,padding的影响*/
  padding: 0;
}

input[type="search"] {
  -webkit-appearance: textfield;
  /*webkit-appearance: 改变元素外观[类似模拟]*/
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

input[type="checkbox"]:focus {
  outline: none;
}

textarea {
  overflow: auto;
  resize: none;
}

/* ------ table reset ------*/

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

/* ------ /table reset ------*/

body,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none outside none;
}

h1,
h2,
h3 {
  font-weight: normal;
}

h1,
h2 {
  text-align: center;
}

/* ------ placeholder提示信息 ------*/

input::-moz-placeholder,
textarea::-moz-placeholder,
input:-ms-input-placeholder,
textarea:-ms-input-placeholder,
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #ccc;
}

/**/

::-webkit-input-placeholder {
  /* WebKit browsers */
  color: #ccc;
}

:-moz-placeholder {
  /* Mozilla Firefox 4 to 18 */
  color: #ccc;
}

::-moz-placeholder {
  /* Mozilla Firefox 19+ */
  color: #ccc;
}

:-ms-input-placeholder {
  /* Internet Explorer 10+ */
  color: #ccc;
}
