/*************basic*************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 14px;
    font-family: PingFangSC, PingFang SC, Microsoft Yahei, "微软雅黑", Arial;
    color: #333;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #353535;
}

img {
    border: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    line-height: 0;
}

input, button {
    border: none;
    outline: none;
    background: none;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-size: 14px;
    font-family: Microsoft Yahei, "微软雅黑", Arial;
    color: #333;
}

a {
    text-decoration: none;
}

img {
    border: 0;
}

.left {
    text-align: left;
}

.right {
    text-align: right;
}

.center {
    text-align: center;
}

.clear {
    clear: both;
}

/* flex布局 */
.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.flex-start {
    justify-content: flex-start;
}

.flex-end {
    justify-content: flex-end;
}

.flex-shrink {
    flex-shrink: 0;
}

.flex-1 {
    flex: 1;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

/* 字体样式 */
.text-bold {
    font-weight: bold;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* 字体大小 */
.font-32 {
    font-size: 32px;
}

.font-28 {
    font-size: 28px;
}

.font-22 {
    font-size: 22px;
}

.font-12 {
    font-size: 12px;
}

/* 字体颜色 */
.text-gray {
    color: #666666;
}

.text-black {
    color: #353535;
}

.text-red {
    color: #982D30 !important;
}

/* 背景颜色 */
.bg-white {
    background-color: #ffffff;
}

.bg-gray {
    background-color: #F7F7F7;
}

.bg-gray-light {
    background-color: #F8F8F8;
}

/* 常用按钮 */
.btn {
    border: none;
    outline: none;
    cursor: pointer;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #982D30;
    font-size: 14px;
    color: #fff;
    border-radius: 5px;
    min-width: 88px;
}

.btn:active {
    transform: translate(1px, 1px);
}

/* 常用输入框 */
.input {
    outline: none;
    background: none;
    font-size: 14px;
    border-radius: 5px;
    width: 240px;
    height: 44px;
    display: flex;
    align-items: center;
    border: 1px solid #CCCCCC;
    padding-left: 10px;
}

.input::placeholder {
    color: #CCCCCC;
}

.input.error {
    border: 1px solid #982D30;
}

.input.error::placeholder {
    color: #982D30;
}

.radio-label .input[type='radio'] {
    height: 20px;
    width: 20px;
    display: inline-block;
    margin-right: 5px;
}

.radio-label {
    margin: 0 10px;
    display: flex;
    align-items: center;
}

/* 常用选择框 */
.select {
    outline: none;
    background: none;
    font-size: 14px;
    border-radius: 5px;
    width: 240px;
    height: 44px;
    display: flex;
    align-items: center;
    border: 1px solid #CCCCCC;
    padding-left: 10px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.select.error {
    border: 1px solid #982D30;
}

.select.placeholder {
    color: #CCCCCC;
}

.select.active {
    color: #333;
}

.select::after {
    content: "";
    position: absolute;
    right: 10px;
    width: 6px;
    height: 6px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.select .select-option-box {
    display: none;
    position: absolute;
    border-radius: 2px;
    background-color: #fff;
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, .2);
    width: 100%;
    max-height: 200px;
    overflow: auto;
    left: 0;
    top: 48px;
    z-index: 30;
}

.select .select-option {
    height: 44px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 14px;
    cursor: pointer;
    color: #333;
    position: relative;
}

.select .select-option:hover {
    background-color: #F5F5F5;
}

/* 常用表格 */
.table {
    border-spacing: 0;
    border-collapse: collapse;
    width: 100%;
    overflow: auto;
}

.table th, .table td {
    height: 60px;
    text-align: left;
    padding-left: 10px;
    /*line-height: 60px;*/
}

.table th:first-child, .table td:first-child,
.table th:last-child, .table td:last-child {
    text-align: center;
    padding-left: 0;
}

.table td {
    border: 1px solid #FCEEEE;
}

.table_title {
    background-color: #FBF3F3;
}

.table td .btn_text {
    margin: 0 3px;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.table-container .table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.table .fixed-right {
    position: sticky;
    right: 0;
    z-index: 2;
    box-shadow: inset 1px 0 0 0 #CCCCCC;
}

.table-container .table td{
    overflow: hidden;
    text-overflow: ellipsis;
}

.table th.fixed-right {
    background-color: #FBF3F3;
}

.table td.fixed-right {
    background-color: #ffffff;
}

.table th.w90 {
    width: 90px;
}

.table th.w120 {
    width: 120px;
}

.table th.w180 {
    width: 180px;
}

.table th.w300 {
    width: 300px;
}

th.num {
    width: 60px;
}

th.operate {
    min-width: 100px;
}

.btn_text {
    color: #1479C5;
    font-size: 14px;
    cursor: pointer;
}


.ml10 {
    margin-left: 10px;
}

.mr10 {
    margin-right: 10px;
}

.btn-light {
    background: none;
    border: 1px solid #982D30;
    color: #982D30;
}

.icon_back {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-left: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    margin-right: 8px;
    cursor: pointer;
}

/* 提示框样式 */
.toast {
    position: fixed;
    z-index: 999;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: #fff;
    background-color: rgba(0, 0, 0, .8);
    text-align: center;
    line-height: 30px;
    min-height: 30px;
    display: none;
}

/* 数字输入框 */
input[type=number] {
    width: 80px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #666;
    border-radius: 4px;
    padding: 10px;
}