html {
    /*标准字体大小设置 16 像素「rem 参照对象」*/
    font-size: 16px;
    /*滚动事件发生在 html 元素上；JS 中可以监听 html 的滚动*/
    overflow-y: auto;
    /*让 html 和浏览器窗口高度一致*/
    height: 100%;
    /*少数浏览器默认背景色为浅灰色，所以设置默认背景颜色为纯白*/
    background-color: #fff;
}

html,
body {
    /*body 宽度大 html 度时，某些浏览器会出现内部滚动条；所以设置「html、body」宽度相同且「overflow-x: hidden」*/
    width: 100%;
    /*取消部分浏览器点击有阴影*/
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    /*优化移动端滚动事件*/
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}

@font-face {
    font-family: "OpenSans-Regular";
    src: url('../assets/OpenSans-Regular.ttf') format('truetype');
    font-style:normal;
    font-weight:normal;
    font-display: fallback;
}
@font-face {
    font-family: "OpenSans-Bold";
    src: url('../assets/OpenSans-Bold.ttf') format('truetype');
    font-style:normal;
    font-weight:normal;
    font-display: fallback;
}
@font-face {
    font-family: "OpenSans-BoldItalic";
    src: url('../assets/OpenSans-BoldItalic.ttf') format('truetype');
    font-style:normal;
    font-weight:normal;
    font-display: fallback;
}
@font-face {
    font-family: "OpenSans-ExtraBold";
    src: url('../assets/OpenSans-ExtraBold.ttf') format('truetype');
    font-style:normal;
    font-weight:normal;
    font-display: fallback;
}
@font-face {
    font-family: "OpenSans-ExtraBoldItalic";
    src: url('../assets/OpenSans-ExtraBoldItalic.ttf') format('truetype');
    font-style:normal;
    font-weight:normal;
    font-display: fallback;
}
@font-face {
    font-family: "OpenSans-Italic";
    src: url('../assets/OpenSans-Italic.ttf') format('truetype');
    font-style:normal;
    font-weight:normal;
    font-display: fallback;
}
@font-face {
    font-family: "OpenSans-Light";
    src: url('../assets/OpenSans-Light.ttf') format('truetype');
    font-style:normal;
    font-weight:normal;
    font-display: fallback;
}

@font-face {
    font-family: "OpenSans-LightItalic";
    src: url('../assets/OpenSans-LightItalic.ttf') format('truetype');
    font-style:normal;
    font-weight:normal;
    font-display: fallback;
}

@font-face {
    font-family: "OpenSans-Semibold";
    src: url('../assets/OpenSans-Semibold.ttf') format('truetype');
    font-style:normal;
    font-weight:normal;
    font-display: fallback;
}

@font-face {
    font-family: "OpenSans-SemiboldItalic";
    src: url('../assets/OpenSans-SemiboldItalic.ttf') format('truetype');
    font-style:normal;
    font-weight:normal;
    font-display: fallback;
}

body {
    /*设置基本字体配置*/
    font: 1rem "OpenSans-Regular";
    /*让绝对定位元素，根据 body 定位*/
    position: relative;
    /*设置网页基本字体颜色为浅灰色*/
    color: #666;
    /*使字体渲染更顺滑*/
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


/**
   * 移除常用标签的浏览器默认的「margin、padding」
   * pre、code、legend、fieldset、blockquote … 等标签不是很常用，所以就不一一列举，如果项目中使用到，可以自己单独写
   */

body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
dl,
dd,
ul,
ol,
th,
td,
button,
figure,
input,
textarea,
form {
    margin: 0;
    padding: 0;
}


/**
   * 不同浏览器的 input、select、textarea 的盒子模型宽度计算方式不同，统一为最常见的 content-box
   */

input,
select,
textarea {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

table {
    /*table 相邻单元格的边框间的距离设置为 0*/
    border-spacing: 0;
    /*默认情况下给 tr 设置 border 没有效果，如果 table 设置了边框为合并模式：「border-collapse: collapse;」就可以了*/
    border-collapse: collapse;
}


/**
   * 移除浏览器部分元素的默认边框
   * acronym、fieldset … 等其他标签不是很常用，就不会一一列举；如果项目中用到，可以自己单独写
   */

img,
input,
button,
textarea {
    border: none;
}

input {
    /*由于 input 默认不继承父元素的居中样式，所以设置：「text-align: inherit」*/
    text-align: inherit;
}

textarea {
    /*textarea 默认不可以放缩*/
    resize: none;
}


/**
   * 由于以下元素的部分属性没有继承父节点样式，所以声明这些元素的这些属性为父元素的属性
   * 取消这些元素 `outline` 样式
   */

a,
h1,
h2,
h3,
h4,
h5,
h6,
input,
select,
button,
option,
textarea,
optgroup {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-style: inherit;
    line-height: inherit;
    color: inherit;
    outline: none;
}


/**
   * 取消超链接元素的默认文字装饰
   * 另外 del、ins 标签的中划线、下划线还是挺好的，就不去掉
   */

a {
    text-decoration: none;
}
a:hover {
    text-decoration: none;
    color: unset;
}

ol,
ul {
    /*开发中 UI 设计的列表都是和原生的样式差太多，所以直接给取消 ol，ul 默认列表样式*/
    list-style: none;
}

button,
input[type='submit'],
input[type='button'] {
    /*鼠标经过是「小手」形状表示可点击*/
    cursor: pointer;
}

input::-moz-focus-inner {
    /*取消火狐浏览器部分版本 input 聚焦时默认的「padding、border」*/
    padding: 0;
    border: 0;
}


/*取消部分浏览器数字输入控件的操作按钮*/

input[type='number'] {
    -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}


/*输入控件 placeholder 色设置 #999*/

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #999;
}

input:-moz-placeholder,
textarea:-moz-placeholder {
    color: #999;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #999;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #999;
}

template {
    /*由于部分浏览 template 会显示出来，所以要隐*/
    display: none;
}

.regular {
    font-family: 'OpenSans-Regular';
}
.bold{
    font-family: 'OpenSans-Bold';
}
.boldItalic{
    font-family: 'OpenSans-BoldItalic';
}
.italic{
    font-family: 'OpenSans-Italic';
}
.extraBold{
    font-family: 'OpenSans-ExtraBold';
}
.extraBoldItalic{
    font-family: 'OpenSans-ExtraBoldItalic';
}
.light{
    font-family: 'OpenSans-Light';
}
.lightItalic{
    font-family: 'OpenSans-LightItalic';
}
.semibold{
    font-family: 'OpenSans-Semibold';
}
.semiboldItalic{
    font-family: 'OpenSans-SemiboldItalic';
}

.size40{
    font-size: 40px;
}
.size36{
    font-size: 36px;
}
.size32{
    font-size: 32px;
}
.size30{
    font-size: 30px;
}
.size28{
    font-size: 28px;
}
.size26{
    font-size: 26px;
}
.size24{
    font-size: 24px;
}
.size20{
    font-size: 20px;
}
.size18{
    font-size: 18px;
}
.size16{
    font-size: 16px;
    line-height: 26px;
}
.size14{
    font-size: 14px;
}

.padding60{
    padding: 60px 0;
}

.main-color{
    color: #333333;
}
.sub-color{
    color: #666666;
}
.text-color{
    color: #999999;
}

/* 设置滚动条样式 */
::-webkit-scrollbar {
    width: 2px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: #999999;
    border-radius: 3px;
}

::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 3px;
}

@media (max-width: 768px) {

    .size40{
        font-size: 24px;
    }
    .size36{
        font-size: 20px;
    }
    .size32{
        font-size: 18px;
    }
    .size30{
        font-size: 16px;
    }
    .size28{
        font-size: 16px;
    }
    .size26{
        font-size: 16px;
    }
    .size24{
        font-size: 14px;
    }
    .size20{
        font-size: 14px;
    }
    .size18{
        font-size: 14px;
    }
    .size16{
        font-size: 12px;
					 line-height:18px;
    }
    .size14{
        font-size: 10px;
    }
    .padding60{
        padding:30px 0
    }
}

@media (min-width: 1440px) {
    .container{
        max-width: 1360px;
        margin: 0 auto;
    }
}



