/* =============================================================================
   通用样式重置
   兼容现代浏览器，去除默认边距、统一盒模型
   ============================================================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, figure, hr,
ul, ol, dl, dd, fieldset, legend,
input, textarea, button, select, table, th, td {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.4;
}

h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }
h5 { font-size: 13px; }
h6 { font-size: 12px; }

ul, ol { list-style: none; }

a {
  color: #3c8dbc;
  text-decoration: none;
  background-color: transparent;
  transition: color .15s;
}
a:hover { color: #2b7dbc; }

img, svg, video, canvas {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
  color: inherit;
}

button, [type="button"], [type="reset"], [type="submit"] {
  cursor: pointer;
  -webkit-appearance: button;
  background: none;
  border: 0;
}

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

button:disabled,
[type="button"]:disabled {
  cursor: not-allowed;
}

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

fieldset { border: 0; }

legend {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  color: inherit;
  white-space: normal;
}

textarea {
  overflow: auto;
  resize: vertical;
  font-family: inherit;
}

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

th {
  text-align: inherit;
}

pre, code, kbd, samp {
  font-family: "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
}

pre {
  overflow: auto;
  white-space: pre;
}

hr {
  border: 0;
  border-top: 1px solid #e4e7ea;
  margin: 16px 0;
}

[hidden] { display: none !important; }

/* 通用工具类 */
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.text-muted   { color: #999; }
.text-primary { color: #3c8dbc; }
.text-danger  { color: #dd4b39; }
.text-success { color: #00a65a; }
.text-warning { color: #f39c12; }

.font-bold { font-weight: 600; }
.font-normal { font-weight: normal; }

.pull-left  { float: left; }
.pull-right { float: right; }
.clearfix::after { content: ''; display: table; clear: both; }

.hidden   { display: none !important; }
.invisible { visibility: hidden; }
.small { font-size: 12px; }

.mt-0 { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.ml-10 { margin-left: 10px; }
.mr-10 { margin-right: 10px; }

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}