@charset "utf-8";
body {
  font-family: Microsoft Yahei, PingFang SC, HanHei SC, Arial, sans-serif;
  background-color: #f5f5f5;
  margin-bottom: 50px;
  font-size: 16px;
  line-height: 1.5;
}
input,
textarea,
select,
button {
  font-family: Microsoft Yahei, PingFang SC, HanHei SC, Arial, sans-serif;
}

/* 常用 */

p {
  margin: 1em 0 0;
  text-align: justify;
  word-break: break-word;
}
a {
  text-decoration-line: none;
  color: #00e;
}
a:active {
  color: #f00;
}
hr {
  margin: 1rem 0;
}
.m-t-0 {
  margin-top: 0;
}
.m-t-1 {
  margin-top: 0.25rem;
}
.m-t-2 {
  margin-top: 0.375rem;
}
.m-t-3 {
  margin-top: 0.5rem;
}
.m-t-4 {
  margin-top: 0.75rem;
}
.m-t-5,
div.p {
  margin-top: 1rem;
}
.m-b-0 {
  margin-bottom: 0;
}
.m-b-1 {
  margin-bottom: 0.25rem;
}
.m-b-2 {
  margin-bottom: 0.375rem;
}
.m-b-3 {
  margin-bottom: 0.5rem;
}
.m-b-4 {
  margin-bottom: 0.75rem;
}
.m-b-5 {
  margin-bottom: 1rem;
}
p + ul,
p + ol {
  padding-left: 1.5em;
  margin-top: 0.5em;
  margin-bottom: 0;
}

/* flex 布局 */

.flex-row-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.flex-row-container > div {
  max-width: 100%;
}
@media screen and (min-width: 500px) {
  .flex-row-container > div {
    margin-right: 1rem;
  }
}

/* 横向按钮列表 */
.flex-row-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -0.375rem;
}
.flex-row-list + .flex-row-list {
  margin-top: 0.375rem;
}
.flex-row-list > * {
  margin-right: 0.375rem;
  margin-bottom: 0.375rem;
}
.flex-row-list a {
  display: block;
  color: #00f;
  text-decoration: none;
  border: 1px solid #bbb;
  padding: 0.125em 0.5em;
  box-sizing: border-box;
}
.flex-row-list a:hover {
  background-color: #ddf;
}
.flex-row-list a > span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flex-row-list .active {
  background-color: #fdd !important;
}
.flex-row-list > span:nth-child(1) {
  margin-right: 0;
}

/* 一行 */
.flex-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}
.flex-line > * {
  margin-right: 0.375rem;
}
.flex-line > span:nth-child(1) {
  margin-right: 0;
  word-break: keep-all;
}

/* 垂直排列 */
.flex-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* 两端对齐 */
.flex-justify {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* 输入框、按钮、下拉菜单、单选多选 */

input,
button,
select,
textarea {
  box-sizing: border-box;
}
button,
select {
  font-size: 14px;
  line-height: 1.25;
  padding: 0.1em 0.5em;
}
button {
  user-select: none;
}
input[type="text"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="file"],
input[type="color"],
textarea {
  font-size: 15px;
  line-height: 1.3;
  padding: 0.1em 0.4em;
  border: 1px solid #bbb;
}
input[type="file"] {
  font-size: 13px;
  padding: 0;
}
textarea {
  display: block;
  width: 500px;
  max-width: 100%;
  word-break: break-all;
}
.w100 textarea {
  width: 100% !important;
}
label {
  display: inline-flex;
  align-items: center;
}
label input[type="radio"],
label input[type="checkbox"] {
  margin: 0 0.25em;
}
label input[type="radio"] + span,
label input[type="checkbox"] + span {
  user-select: none;
}

/* 辅助类 */

.red {
  color: #f00;
}
.blue {
  color: #00f;
}
.green {
  color: #0f0;
}
.select-text {
  user-select: all;
}
.no-select-text {
  user-select: none;
}

/* 表格 */

.table {
  border: 1px solid #ccc;
  border-collapse: collapse;
}
.table > thead > tr {
  vertical-align: bottom;
}
.table > thead > tr > th {
  background-color: #ddd;
}
.table > thead > tr > th,
.table > tbody > tr > td {
  border: 1px solid #ccc;
  padding: 0 0.375em;
}
.table-striped > tbody > tr:nth-child(2n) {
  background-color: #eee;
}
.table-equally {
  /* 等宽列 */
  table-layout: fixed;
}
.table-hover > tbody > tr:hover {
  background-color: #ddd !important;
}
.table + .table {
  margin-top: -1px;
}
.tb-scroll {
  overflow-x: auto;
}
