/**
* @description: 公共css（TODO:后期修改）
* @author: Adrian
*/

* {
  padding: 0;
  margin: 0;
  appearance: none;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Microsoft YaHei", "微软雅黑","Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",  Arial, sans-serif;
  color: #333333;
  font-size: 14px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

b,
strong {
  font-weight: bolder;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

small {
  font-size: 80%;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  background-color: transparent;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

pre {
  font-size: 1em;
}

div:focus {
  outline: none;
}

ul, li {
  list-style: none;
}

img {
  border: none;
  vertical-align: middle;
}

button, input, select, textarea {
  outline: none;
}

button, input[type=button], input[type=checkbox], input[type=radio], input[type=rest], input[type=submit], select {
  cursor: pointer;
}

button, input[type=button], input[type=number], input[type=password], input[type=rest], input[type=submit], input[type=tel], input[type=text], textarea {
  appearance: none;
  outline: none;
}

fieldset {
  padding: 0;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[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;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[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-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  //table表格自动换行 特殊文字换行
  tr {
    td {
      word-wrap: break-word;
      word-break: break-all;
    }
  }
}
details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.clearfix {
  &:after {
    content: "";
    display: block;
    height: 0;
    width: 0;
    clear: both;
    zoom: 1;
  }
}

//.user-select-no {
//  user-select: none;
//}

.spot {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pointer {
  cursor: pointer;
}
.font-text-no{
  -o-user-select: none;
  -moz-user-select: none; /*火狐 firefox*/
  -webkit-user-select: none; /*webkit浏览器*/
  -ms-user-select: none; /*IE10+*/
  -khtml-user-select :none; /*早期的浏览器*/
  user-select: none;
}
//禁止文本被选中
.not-select{
  -moz-user-select:none; /*火狐*/
  -webkit-user-select:none; /*webkit浏览器*/
  -ms-user-select:none; /*IE10*/
  -khtml-user-select:none; /*早期浏览器*/
  user-select:none;
}
input[type=number] {
  -moz-appearance: textfield;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* 滚动条优化 start */
::-webkit-scrollbar{
  width: 7px;
  height: 7px
}
::-webkit-scrollbar-track{
  background: #f6f6f6;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb{
  background: #cdcdcd;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover{
  background: #747474;
}
::-webkit-scrollbar-corner {
  background: #f6f6f6;
}
/* 滚动条优化 end */
