* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-blue: #477DE8;
    --color-orange: #D48625;
}

.font-sm {
    font-size: 12px !important;
}

.font-df {
    font-size: 14px !important;
}

.font-lg {
    font-size: 16px !important;
}

.font-xl {
    font-size: 18px !important;
}

.font-xxl {
    font-size: 28px !important;
}

.font-blue {
    color: var(--color-blue);
}

.font-red {
    color: var(--dark-red);
}

.font-orange {
    color: var(--dark-orange);
}

.font-black {
    color: var(--black);
}

.font-gray {
    color: var(--gray);
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.shadow {
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
}

body {
    font: 14px/1.5 "SourceHanSansSC-regular", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, "Hiragino Sans GB", Arial, sans-serif;
    background-color: #fff;
}

body a {
    color: var(--black);
    text-decoration: none;
    outline: none;
    -webkit-transition: all .4s;
    transition: all .4s
}

body a:hover {
    color: var(--dark-blue);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
}

ul,
ol,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

dl,
dt,
dd {
    list-style: none;
    margin: 0;
    padding: 0;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.flex-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.flex-between-start {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.text-cut {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-cut-3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.text-cut-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mt0 {
    margin-top: 0 !important;
}

.mt10 {
    margin-top: 10px !important;
}

.mb10 {
    margin-bottom: 10px !important;
}

.ml10 {
    margin-left: 10px !important;
}

.mr10 {
    margin-right: 10px !important;
}

.mt20 {
    margin-top: 20px !important;
}

.mt60 {
    margin-top: 60px !important;
}

.mt70 {
    margin-top: 70px !important;
}

.mb20 {
    margin-bottom: 20px !important;
}

.ml20 {
    margin-left: 20px !important;
}

.mr20 {
    margin-right: 20px !important;
}

.pt10 {
    padding-top: 10px;
}

.pb10 {
    padding-bottom: 10px;
}

.pt20 {
    padding-top: 20px;
}

.pb20 {
    padding-bottom: 20px;
}

.bg-white {
    background-color: #fff;
}

.bg-gray {
    background-color: #F8F8F8;
}

.bg-gradient-red {
    background: linear-gradient(90deg, rgba(244, 93, 106, 1) 72%, rgba(253, 154, 114, 1) 95%);
}

.bg-footer {
    background-color: #242947;
}

.show {
    display: block !important;
}

.hidden {
    display: none !important;
}


/* 分页 */

.pages {
    justify-content: center;
    display: flex;
}

.pages a {
    display: block;
    padding: 8px 15px;
    background-color: #F8F8F8;
    text-align: center;
    font-size: 16px;
    margin: 0 6px;
    border-radius: 3px;
    color: #000;
}

.pages a:hover,
.pages a.on {
    background-color: var(--dark-blue);
    color: #fff;
}


/* 如果最后一行是3个元素 */

.flex-fix:last-child:nth-child(4n - 1) {
    margin-right: calc(24% + 4% / 3);
}


/* 如果最后一行是2个元素 */

.flex-fix:last-child:nth-child(4n - 2) {
    margin-right: calc(48% + 8% / 3);
}

.round {
    border-radius: 10px;
}


/* 重写layui的css */

.layui-btn {
    border-radius: 5px;
}

.layui-btn {
    color: #fff;
    background-color: var(--dark-blue);
    border: none;
}

.layui-btn-primary {
    color: var(--dark-blue);
    background-color: #FAFAFB;
    border: 1px solid #D7D7D7;
}

.layui-btn-primary:hover {
    color: #fff;
    background-color: var(--dark-blue);
}

.layui-form-select dl dd.layui-this {
    background-color: var(--dark-blue);
}

.layui-input,
.layui-select,
.layui-textarea {
    border-color: #DCDFE6;
}

.layui-laydate-content .layui-laydate .layui-this {
    background-color: var(--dark-blue) !important;
}

body .diglog-skin {
    .layui-layer-title {
        color: #fff;
        border: none;
        text-align: center;
        color: var(--black);
        font-size: 18px;
        font-weight: bold;
        padding: 0;
        padding-right: 20px;
        padding-left: 20px;
        line-height: 70px;
        height: 70px;
    }
    .layui-layer-btn a {
        background: #333;
        height: 35px;
        line-height: 35px;
        padding: 0 40px;
    }
    .layui-layer-btn .layui-layer-btn0 {
        background-color: var(--dark-blue);
    }
    .layui-layer-btn .layui-layer-btn1 {
        background: #999;
    }
    .layui-layer-setwin {
        top: 25px;
        right: 20px;
    }
}