/* 
== CSS初始化,清除浮动 == */

/* 修改盒模型*/

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}

html,
body,
ul,
li,
ol,
dl,
dd,
dt,
p,
h1,
h2,
h3,
h4,
h5,
h6,
form,
input,
fieldset,
legend,
img {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-decoration: none;
  font-weight: normal;
  font-size: 100%;
}

s,
i,
em {
  font-style: normal;
  text-decoration: none;
}

a,
a:hover {
  text-decoration: none;
  color: #555;
}

/* 统一表单的默认样式 */

fieldset,
img,
input,
button {
  border: none;
  padding: 0;
  margin: 0;
  outline-style: none;
}

input,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  appearance: none;
  background-color: rgba(0, 0, 0, 0);
  opacity: 1;
}

/* 去除上下调整按钮 */

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
}

input[type="number"] {
  -moz-appearance: textfield;
}

select,
input,
button {
  vertical-align: middle;
}

select,
input,
textarea {
  font-size: 12px;
  margin: 0;
}

/* 键盘防遮挡 */

a,
button,
input,
textarea {
  -webkit-user-modify: read-write-plaintext-only;
}

/* chrome 去除黄色边框，背景 */

input,
button,
select,
textarea {
  outline: none
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px white inset;
}

/* 防止拖动 影响布局 */

textarea {
  resize: none;
}

/* 去掉行内替换元素空白缝隙 */

img {
  border: 0;
  vertical-align: middle;
}

table {
  border-collapse: collapse;
}

body {
  font: 12px/150% Arial, Verdana, "\5b8b\4f53";
  color: #666;
  background: #fff;
}

/* 左右浮动 */

.right {
  float: right;
}

.left {
  float: left;
}

/* 字符超出限制 */

.textOmitted {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 清除浮动 */

.clearfix:before,
.clearfix:after {
  content: "";
  display: table;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  *zoom: 1;
}

/* 
== 通用样式 == */

/* 整体设置 */

html,
body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", Tahoma, Simsun, sans-serif;
}

html {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  background-color: #fff;
}

body {
  max-width: 800px;
}

/* 横屏样式  */

#vertical-mask {
  display: none;
  position: absolute;
  z-index: 10;
  width: 100%;
  height: 100%;
  background-color: #555;
  color: #fff;
  font-size: 0.48rem;
  line-height: 2rem;
  text-align: center;
}

/* 页面容器 */

#page-box {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}