body {
    --card_border: #f6f6f6;
    --gray: #ccc;
    --gray2: #e4e4e4;
    --red: #ff5722;
    --orange: #ffb800;
    --green: #009688;
    --cyan: #2f4056;
    --blue: #1e9fff;
    --black: #393d49;
}

/* 修改element-ui的颜色为主题色 strt */
.el-pagination.is-background .el-pager li:not(.disabled).active{
    background-color: var(--mainColor);
}
/* 修改element-ui的颜色为主题色 end */


/*修改默认空间颜色为主题色*/

.layui-form-radio:hover *,
.layui-form-radioed,
.layui-form-radioed>i {
    color: var(--mainColor);
}

.layui-form-select dl dd.layui-this {
    background-color: var(--mainColor);
    color: #fff;
}


/* .layui-btn {
    background-color: var(--mainColor);
} */

.layui-btn-primary {
    background: 0 0;
}

#LAY_app_body {
    z-index: 998;
}

/* 导航栏主题色 */
.layui-nav-theme{
    background-color: var(--menuColor) !important;
}
.layui-nav-theme .layui-this:after, .layui-nav-bar{
    background-color: var(--selectedColor) !important;
}

/* .layui-nav-theme{
    background-color: #fff !important;
}
.layui-nav-theme .layui-nav-item a:hover, .layui-nav-theme .layui-this a{
    color: #333;
}

.layui-nav-theme .layui-nav-item a{
    color: #333;
} */

/* 按钮主题色 */

.layui-color {
    color: var(--mainColor);
}

.layui-bg-color {
    background-color: var(--mainColor);
    color: #fff;
}

.layui-laypage-em {
    background-color: var(--mainColor) !important;
}

.layui-red {
    color: #ff5722;
}

.layui-orange {
    color: #ffb800;
}

.layui-green {
    color: #009688;
}

.layui-cyan {
    color: #2f4056;
}

.layui-blue {
    color: #1e9fff;
}

.layui-black {
    color: #393d49;
}

.layui-gray {
    color: #eeeeee;
}


/* 功能性部分 */


/* 让容器内的图片高度和宽度等于容器的宽度 */

.img-block {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
}


/* 隐藏Vue未编译的Mustache知道实例准备完毕 */

[v-cloak] {
    display: none;
}


/* 徽章自动使用主题颜色 */

.layui-bg-auto {
    background-color: var(--mainColor);
}


/* 单行文字超出部分显示省略号 */

.out-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
}


/* 鼠标手形 */

.mouse-hand {
    cursor: pointer;
}


/* 宽度 */

.width100 {
    width: 100px !important;
}

.width200 {
    width: 200px !important;
}

.width300 {
    width: 300px !important;
}

.width400 {
    width: 400px !important;
}

.width500 {
    width: 500px !important;
}

.width600 {
    width: 600px !important;
}

.width700 {
    width: 700px !important;
}

.width800 {
    width: 800px !important;
}

.width900 {
    width: 900px !important;
}

.width1000 {
    width: 1000px !important;
}

.padding10 {
    padding: 10px !important;
}

.padding20 {
    padding: 20px !important;
}

.padding30 {
    padding: 30px !important;
}

.margin10 {
    margin: 10px !important;
}

.margin20 {
    margin: 20px !important;
}

.margin-left-5 {
    margin-left: 5px !important;
}

.margin-left-20 {
    margin-left: 20px !important;
}

.margin30 {
    margin: 30px !important;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-right {
    display: flex;
    justify-content: flex-end;
}

.flex-space-between {
    display: flex;
    justify-content: space-between;
}

.flex-items-center {
    display: flex;
    align-items: center;
}

.flex-start {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}


/* 自定义弹窗颜色 */

.layui-layer-hei>.layui-layer-title {
    color: #fff;
    background-color: #20222a;
    /* background-color: var(--mainColor); */
}

.layui-layer-hei>.layui-layer-btn>.layui-layer-btn0 {
    color: #fff;
    background-color: #20222a;
    border-color: #000;
    /* background-color: var(--mainColor); */
    /* border-color: var(--mainColor); */
}


/* 弹窗皮肤 layui-layer-theme 自动跟随主题色 */

.layui-layer-theme>.layui-layer-title {
    color: #fff;
    background-color: var(--mainColor);
}

.layui-layer-theme>.layui-layer-btn>.layui-layer-btn0 {
    color: #fff;
    background-color: var(--mainColor);
    border-color: var(--mainColor);
}

.layui-layer-theme>.layui-layer-setwin>.layui-layer-close1 {
    background: url(../icon/close.png);
    background-repeat: round;
    width: 12px;
    height: 12px;
}


/* input输入框下方的解释性文字 */

.help-block {
    margin-top: 5px;
    margin-left: 130px;
    color: #98999a;
}

.help-block a {
    color: #65CEA7;
}


/* 上传图片的图片预览 */

.upload-preview-container {
    margin-left: 130px;
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.img-preview {
    width: 150px;
    max-height: 300px;
    padding: 5px;
    border: 1px solid #ccc;
}

.img-preview:first-child {
    margin-left: 0;
}

.img-preview:last-child {
    margin-right: 0;
}

.img-preview-close {
    margin: 0 5px;
    width: 20px;
    height: auto;
    cursor: pointer;
}

.multiple-img-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 5px 0;
}

.img-block>img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* input禁止输入 */

input[disabled] {
    cursor: not-allowed;
    background-color: #eee;
    opacity: 1;
}

.layui-form-label {
    width: 100px;
}

.layui-input-block {
    margin-left: 130px;
}


/* 顶部导航栏用户身份 */

.layui-nav-child>.top-nav-dd {
    width: 100%;
}

.layui-nav-child>.top-nav-dd>a {
    display: flex;
    justify-content: center;
}


/* 图片上传  */

.chooseimgboard {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1800;
}

.chooseimgboard>div {
    background: #fff;
    width: 890px;
    height: 600px;
}

.chooseimgboardtitle {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgb(119, 207, 167);
    color: #fff;
}

.chooseimgboardbuttonbox {
    padding: 10px 20px;
    display: flex;
    flex-flow: row-reverse;
    border: 1px solid #ddd
}

.imgbox {
    display: flex;
    padding: 6px;
    height: 350px;
    border: 1px solid #ddd;
    flex-wrap: wrap;
}

.uploadimgbox {
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
    margin: 6px;
    position: relative;
}

.uploadimgbox>img {
    max-width: 100%;
    max-height: 100%;
}

.imgactive {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    width: 100%;
    height: 100%;
}

.imgdelete{
    position: absolute;
    background-color:  var(--mainColor);
    width: 25px;
    height: 25px;
    right:0px;
    bottom:0px;
    display: none;
    line-height:25px;
}

.uploadimgbox:hover .imgdelete { display: block; } 
.uploadimgbox:hover{border:1px solid  var(--mainColor)}
.pagebox {
    display: flex;
    padding: 6px;
    justify-content: flex-end
}

.pages {
    padding: 2px 8px;
    margin-right: 8px;
    border-radius: 4px;
    background-color: #ccc;
    color: #333;
    cursor: pointer;
    min-width: 14px;
    text-align: center;
}

.pagesactive {
    background-color: #009688;
    color: #fff;
}

.buttonbox {
    display: flex;
    justify-content: center;
}


/*
 悬浮提交按钮
*/

.fixed-button {
    position: fixed;
    bottom: 10%;
    left: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.fixed-button button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--mainColor);
    color: #fff;
    border: 0;
    font-size: 15px;
    box-shadow: 0px 0px 4px 2px #a2a2a2;
    cursor: pointer;
}

.fixed-button button:hover {
    width: 50px;
    height: 50px;
}

.fixed-button button:active {
    width: 45px;
    height: 45px;
}

.hide-this {
    display: none;
}

.unit-tip {
    background-color: rgb(238, 238, 238);
    color: rgb(152, 153, 154);
    width: auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.unit-tip .layui-form-switch {
    margin-top: 0;
}


/* 状态设置类多个div的间隔样式 */

.mult-div-block .layui-input-block {
    margin-bottom: 10px;
}


/* element-ui 表格 */

.el-table__row .cell,
.el-table__header .cell {
    text-align: center;
}


/* 可以在输入后后面使用用于提示 */

.tip-span .right-span {
    position: absolute;
    right: 10px;
    top: 8px;
    background: #d2d2d2;
    color: #fff;
    padding: 0px 6px;
    border-radius: 8px;
    line-height: 22px;
    -webkit-user-select: none;
}

.help-block .red-span {
    color: red;
}

.forbid-edit {
    background: rgb(240, 240, 240);
}

/* bodyout弹窗 */
.layui-layer-content #bodyOut {
    position: unset;
    left: unset;
}