/*============================================================================
 * 1. reset 的目的不是清除浏览器的默认样式，这仅是部分工作。清除和重置是紧密不可分的。
 * 2. reset 的目的不是让默认样式在所有浏览器下一致，而是减少默认样式有可能带来的问题。
 * 3. reset 期望提供一套普适通用的基础样式。
 ===========================-================================================= */

/** Sections
    ========================================================================== */

/**
  1. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%; /* 1 */
}
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
fieldset,
input,
textarea,
p,
blockquote,
th,
td {
    margin: 0;
    padding: 0;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%;
    font-weight: normal;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

address,
cite,
code,
dfn,
em,
var {
    font-style: normal;
    font-weight: normal;
}

blockquote,
q {
    quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
    background-color: transparent;
}

a:active {
    star: expression(this.onFocus=this.blur());
}
:focus {
    outline: 0;
}
a:link,
a:visited {
    text-decoration: none;
}
a:hover,
a:active {
    text-decoration: none;
    border: none;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

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

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
    font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

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

/**
 * Add the correct font size in all browsers.
 */

small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

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

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
    border: 0;
}

/* Tabular content
   ========================================================================== */

table {
    border-collapse: collapse;
    border-spacing: 0;
}

caption,
th {
    font-style: normal;
    font-weight: normal;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
    margin: 0; /* 2 */
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.5; /* 1 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input {
    /* 1 */
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select {
    /* 1 */
    text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    padding: 0;
    border-style: none;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
    padding: 0.35em 0.75em 0.625em;
    border: 0;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

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

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scroll-bar in IE 10+.
 */

textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
}

/* Interactive elements
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
    display: list-item;
}

/* Misc 杂项
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
    display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
    display: none;
}

/* Base Css
   ========================================================================== */

/**
 * 清除浮动
 */
.b-clearfix:before,
.b-clearfix:after {
    content: " ";
    display: table;
}
.b-clearfix:after {
    clear: both;
}

.b-clearfix {
    *zoom: 1;
}

/**
 * 文字
 */

.b-ft12 {
    font-size: 12px;
}
.b-ft14 {
    font-size: 14px;
}
.b-ft16 {
    font-size: 16px;
}
.b-ft20 {
    font-size: 20px;
}
.b-bold {
    font-weight: bold;
}
.b-indent2 {
    text-indent: 2em;
}
.b-underline {
    text-decoration: underline;
}
.b-ftfff {
    color: #fff;
}

/*
 *定位
*/

.b-tl {
    text-align: left;
}
.b-tc {
    text-align: center;
}
.b-tr {
    text-align: right;
}

.b-fl {
    float: left;
}
.b-fr {
    float: right;
}
.b-cb {
    clear: both;
}
.b-cl {
    clear: left;
}
.b-cr {
    clear: right;
}
.b-vm {
    vertical-align: middle;
}
.b-vt {
    vertical-align: top;
}
.b-relative {
    position: relative;
}
.b-absolute {
    position: absolute;
}
.b-zoom {
    zoom: 1;
}

/*
 *State
*/

.is-hidden {
    visibility: hidden;
}
.is-visible {
    visibility: visible;
}
.is-none {
    display: none;
}
.is-block {
    display: block;
}

/**
 *边距
*/

.b-m5 {
    margin: 5px;
}
.b-m10 {
    margin: 10px;
}
.b-m15 {
    margin: 15px;
}
.b-m20 {
    margin: 20px;
}
.b-m25 {
    margin: 25px;
}
.b-m30 {
    margin: 30px;
}
.b-mt5 {
    margin-top: 5px;
}
.b-mt10 {
    margin-top: 10px;
}
.b-mt15 {
    margin-top: 15px;
}
.b-mt20 {
    margin-top: 20px;
}
.b-mr5 {
    margin-right: 5px;
}
.b-mr10 {
    margin-right: 10px;
}
.b-mr15 {
    margin-right: 15px;
}
.b-mr20 {
    margin-right: 50px;
}
.b-mb5 {
    margin-bottom: 5px;
}
.b-mb10 {
    margin-bottom: 10px;
}
.b-mb15 {
    margin-bottom: 15px;
}
.b-mb20 {
    margin-bottom: 20px;
}
.b-ml5 {
    margin-left: 5px;
}
.b-m10 {
    margin-left: 10px;
}
.b-ml5 {
    margin-left: 5px;
}
.b-ml20 {
    margin-left: 20px;
}
.b-p5 {
    padding: 5px;
}
.b-p10 {
    padding: 10px;
}
.b-p15 {
    padding: 15px;
}
.b-p20 {
    padding: 30px;
}
.b-pt5 {
    padding-top: 5px;
}
.b-pt10 {
    padding-top: 10px;
}
.b-pt15 {
    padding-top: 15px;
}
.b-pt20 {
    padding-top: 20px;
}
.b-pr5 {
    padding-right: 5px;
}
.b-pr10 {
    padding-right: 10px;
}
.b-pr15 {
    padding-right: 15px;
}
.b-pr20 {
    padding-right: 20px;
}
.b-pb5 {
    padding-bottom: 5px;
}
.b-pb10 {
    padding-bottom: 10px;
}
.b-pb15 {
    padding-bottom: 15px;
}
.b-pb20 {
    padding-bottom: 20px;
}
.b-pl5 {
    padding-left: 5px;
}
.b-pl10 {
    padding-left: 10px;
}
.b-pl15 {
    padding-left: 15px;
}
.b-pl20 {
    padding-left: 20px;
}

/*
*线框
*/

.b-bt0 {
    border-top: 0 none;
}
.b-br0 {
    border-right: 0 none;
}
.b-bb0 {
    border-bottom: 0 none;
}
.b-bl0 {
    border-left: 0 none;
}

.b-valign {
    display: table-cell;
    *display: inline;
    zoom: 1;
    vertical-align: middle;
}
/* 换行 */
.b-wordbreak {
    word-wrap: break-word;
    overflow: hidden;
    word-break: break-all;
}
/* 省略 */
.b-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.b-scroll-x {
    overflow-x: auto;
    overflow-y: hidden;
}
.b-scroll-y {
    overflow-y: auto;
    overflow-x: hidden;
}

/** font-face */
@font-face {
    font-family: "icon";
    src: url("./iconfont/iconfont.eot");
    src: url("./iconfont/iconfont.eot?#iefix") format("embedded-opentype"),
        url("./iconfont/iconfont.woff") format("woff"), url("./iconfont/iconfont.ttf") format("truetype"),
        url("./iconfont/iconfont.svg#icon") format("svg");
}
.icon {
    font-family: "icon" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    /* -webkit-text-stroke-width: 0.2px; */
    -moz-osx-font-smoothing: grayscale;
}
