/**
 * +--------------------------------------------------------
 * | 版权所有 2024 oiuAdmin，并保留所有权利
 * | 这不是一个自由软件！禁止任何形式的拷贝、修改、发布
 * +--------------------------------------------------------
 * | Author : Xulaozu <oNiu>
 * | Email  : xulaozu@foxmail.com
 * +--------------------------------------------------------
 */

@import 'theme.less';

@vs: '7';

* {
    margin: 0;
    padding: 0;
    list-style: none;
    outline: 0;
    box-sizing: border-box;
    &::-webkit-scrollbar {
        width: 6px;
        height: 6px;
        border-radius: 3px;
    }
    &::-webkit-scrollbar-thumb {
        border-radius: 3px;
        background: var(--scroll);
    }
    &::-webkit-scrollbar-track {
        background: transparent;
    }
}

body {
    width: 100%;
    cursor: default;
    font-style: normal;
    font-size: 15px;
    transition: all 0.3s ease; // 添加过渡效果
    background: var(--background);
}
body, input, textarea, select, .btn {
    color: var(--color);
    font-family: Arial, Microsoft YaHei, sans-serif; // color: #555;
    // font-family:  Microsoft YaHei, '黑体';
    // font-weight: bold;
}
a.lnk, a[href], a[src], .cp {
    color: var(--link);
    text-decoration: none;
    &:hover {
        color: var(--link-hover);
        text-decoration: none;
    }
}
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
    color: var(--place);
}
input::-moz-placeholder, textarea::-moz-placeholder {
    color: var(--place);
}
input:-moz-placeholder, textarea::-moz-placeholder {
    color: var(--place);
}
input:-ms-input-placeholder, textarea::-ms-input-placeholder {
    color: var(--place);
}
i {
    font-style: normal;
}
mark {
    background: transparent;
    color: var(--color);
    opacity: 0.4;
}
.maxh700 {
    max-height: 700px;
}
.maxBody {
    width: 100%;
    max-width: 100%;
    margin: auto;
    display: flex;
    text-align: left;
    position: relative;
}
.body {
    width: 100%;
    overflow: auto;
    margin-top: 20px;
}
header {
    width: 100%;
    height: 60px;
    display: flex;
    text-align: left;
    position: relative;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    padding-right: 30px;
    z-index: 2;
    .logo {
        display: flex;
        align-items: center;
        height: 40px;
        padding: 15px 10px 0 30px;
        line-height: 20px;
        width: 220px;
        font-size: 20px;
        font-weight: bold;
        img {
            height: 30px;
            margin-right: 10px;
            border-radius: 3px;
        }
    }
    .menu {
        height: 28px;
        overflow: hidden;
        width: calc(~"100% - 300px");
        margin: 15px 15px 15px 0;
        li {
            float: left;
            width: auto;
            height: 28px;
            display: inline-block;
            padding: 3px 8px;
            border-radius: 5px;
            margin-right: 15px;
            a {
                color: var(--color);
                display: flex;
                align-items: center;
                position: relative;
                text-decoration: none;
                line-height: 22px;
                font-size: 15px;
                .icon {
                    float: left;
                    margin-right: 2px;
                }
                .iconx {
                    float: left;
                    width: 22px;
                    height: 20px;
                    margin-right: 2px;
                }
            }
            &:hover {
                background: var(--header-menu-hover);
                a {
                    color: var(--link);
                }
            }
            &.active {
                background: var(--link-hover-bgc);
                a {
                    color: var(--link);
                }
            }
        }
    }
    .right {
        top: 12px;
        right: 20px;
        height: 35px;
        .theme {
            width: 35px;
            height: 35px;
            line-height: 35px;
            margin-right: 10px;
            overflow: hidden;
            .icon {
                width: 100%;
                height: 100%;
                border-radius: 50%;
                text-align: center;
                line-height: 35px;
                display: inline-block;
                font-size: 25px;
                &:hover {
                    cursor: pointer;
                    background-color: var(--link-hover-bgc1);
                }
            }
        }
        .admin {
            width: 35px;
            height: 35px;
            cursor: pointer;
            display: inline-block;
            &:hover {
                .ico {
                    background-color: var(--link-hover);
                }
            }
            .ico {
                width: 100%;
                height: 100%;
                border-radius: 50%;
                text-align: center;
                line-height: 35px;
                display: inline-block;
                background-color: var(--link);
                .icon {
                    color: var(--background);
                    font-size: 20px;
                }
            }
            line-height: 25px;
            display: inline-block;
            position: relative;
            font-size: 14px;
            ul {
                top: 45px;
                right: -10px;
                position: absolute;
                width: 100%;
                min-width: 200px;
                display: none;
                .jt {
                    top: -10px;
                    right: 5px;
                    position: absolute;
                    transform: translateX(-50%);
                    content: '';
                    width: 0;
                    height: 0;
                    border-left: 10px solid transparent;
                    border-right: 10px solid transparent;
                    border-bottom: 10px solid var(--input-border);
                    &:before {
                        content: "";
                        position: absolute;
                        top: 4px;
                        left: -6px;
                        width: 12px;
                        height: 12px;
                        background-color: var(--background);
                        transform: rotate(45deg);
                    }
                }
            }
            .box {
                width: 100%;
                background: var(--background);
                border-radius: 10px;
                border: var(--input-border) 1px solid;
                padding: 20px 10px;
                position: relative;
                font-size: 14px;
                box-shadow: var(--shadow-box);
                a {
                    height: auto;
                    line-height: 1.5em;
                    display: block;
                    padding: 10px;
                    text-align: center;
                    color: var(--color);
                    margin-bottom: 1px;
                    border-radius: 5px;
                    &:hover {
                        background: var(--link-hover-bgc);
                    }
                }
            }
        }
    }
}
.sider {
    padding: 45px 20px 20px;
    margin-top: -60px;
    width: 220px;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    dl {
        padding: 5px 0;
        height: 20px;
        text-align: center;
        border-bottom: var(--border-color) 1px solid;
        margin-bottom: 30px;
        margin-top: 10px;
        opacity: 0.5;
        a {
            display: inline-block;
            background: var(--background);
            height: 20px;
            line-height: 20px;
            margin-top: 5px;
            padding: 0 20px;
            border: var(--place) 1px solid;
            border-radius: 10px;
            font-size: 12px;
        }
    }
    ul {
        li {
            width: 100%;
            margin-bottom: 5px;
            .jt {
                top: 15px;
                right: 10px;
                font-size: 10px;
                transition-duration: 0.3s;
                transform: rotate(-90deg);
                color: var(--shadow-border);
            }
            a {
                color: var(--color);
                display: block;
                position: relative;
                text-decoration: none;
                padding: 12px 10px;
                border-radius: 5px;
                line-height: 22px;
                text-align: left;
                .ico {
                    display: inline-block;
                    float: left;
                    width: 30px;
                    height: 22px;
                }
                .iconx {
                    display: inline-block;
                    float: left;
                    width: 30px;
                    height: 22px;
                }
                &:hover {
                    color: var(--link);
                    background: var(--header-menu-hover);
                }
            }
            &>a {
                margin-bottom: 5px;
            }
            &.active {
                &>a {
                    background: var(--link-hover-bgc);
                }
                &.none {
                    &>a {
                        background: transparent;
                    }
                }
            }
            ul {
                li {
                    a {
                        padding-left: 30px;
                    }
                }
            }
        }
        li.show {
            .jt {
                transform: rotate(0);
            }
        }
    }
}
.body_right_body {
    width: calc(~"100% - 235px");
    height: calc(~"100vh - 75px");
    background: var(--body-right-bgc);
    padding: 10px 0 10px 10px;
    border-radius: 10px;
    overflow: auto;
    font-size: 14px;
}
.body_right {
    position: relative;
    width: 100%;
    height: calc(~"100vh - 95px");
    padding-right: 10px;
    border-radius: 10px;
    overflow: auto;
}
.underline {
    border-bottom: #ddd 1px solid;
}
.topline {
    border-top: #ddd 1px solid;
}
.body_title {
    padding: 10px 15px;
    background-color: var(--background);
    border-radius: 10px;
    border: var(--border-color) 1px solid;
    margin-bottom: 10px;
    dt {
        font-size: 17px;
        line-height: 30px;
        display: inline-block;
        margin-left: 10px;
        font-weight: bold;
    }
    .btn {
        margin-left: 5px;
    }
    .form-item {
        line-height: 30px;
        cite {
            font-style: normal;
        }
        input {
            height: 30px;
            line-height: 30px;
            &.btn {
                height: 30px;
                line-height: 30px;
            }
        }
    }
}
[data-sts] {
    width: 40px;
    height: 22px;
    line-height: 22px;
    overflow: hidden;
    display: inline-block;
    border-radius: 12px;
    position: relative;
    cursor: default;
    vertical-align: middle;
    &:before {
        content: ' ';
        top: 2px;
        width: 18px;
        height: 18px;
        line-height: 18px;
        position: absolute;
        border-radius: 12px;
        font-size: 12px;
        text-align: center;
        display: inline-block;
        background-color: var(--background);
        transition-duration: 0.3s;
    }
    i {
        display: none;
    }
    &[data-text] {
        width: 60px;
        height: 24px;
        border: var(--switch) 1px solid;
        background-color: transparent;
        &[data-switch] {
            cursor: pointer;
            &:hover {
                border-color: var(--link);
            }
        }
        i {
            top: 0;
            position: absolute;
            line-height: 23px;
            font-size: 12px;
        }
        &[data-sts="1"] {
            border-color: #999;
            &:before {
                background-color: #ccc;
            }
            i:nth-child(1) {
                display: block;
                position: absolute;
                left: 9px;
            }
        }
        &[data-sts="0"] {
            &:before {
                background-color: var(--switch);
            }
            i:nth-child(2) {
                display: block;
                right: 9px;
            }
        }
    }
}
[data-val], [data-switch] {
    cursor: pointer;
}
[data-sts="0"] {
    background-color: var(--switch);
    &:hover {
        background-color: var(--switch-hover);
    }
    &:before {
        left: 2px;
    }
}
[data-sts="1"] {
    background-color: var(--link);
    &:hover {
        background-color: var(--link-hover-bgc2);
    }
    &:before {
        right: 2px;
    }
}
.layout-sider {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 6;
    display: none;
    .layout-mod {
        width: 100vw;
        height: 100vh;
        background-color: var(--mod-bgc);
        position: absolute;
        top: 0;
        right: 0;
    }
    .layout-window {
        width: auto;
        height: 100vh;
        display: none;
        overflow-x: hidden;
        overflow-y: auto;
        background-color: var(--background);
        position: absolute;
        top: 0;
        right: -100vw;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
    }
    .expboxs {
        border-radius: 5px;
        overflow: hidden;
        border: var(--shadow-border) 1px solid;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        margin: 30px;
        .line {
            width: 100%;
            text-align: center;
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            justify-content: space-evenly;
            align-items: center;
            border-bottom: var(--shadow-border) 1px solid;
            .cols {
                width: 60px;
                height: 90px;
                line-height: 1em;
                position: relative;
                border-right: var(--shadow-border) 1px solid;
                &:last-child {
                    border-right: none;
                }
                .no {
                    top: 5px;
                    left: 5px;
                    position: absolute;
                    font-size: 13px;
                    opacity: 0.8;
                }
                .num {
                    line-height: 90px;
                    font-size: 20px;
                }
            }
            &:last-child {
                border-bottom: none;
            }
        }
    }
}
.body_form {
    padding: 10px 15px;
    background-color: var(--background);
    border-radius: 10px;
    border: var(--border-color) 1px solid;
}

section {
    padding: 20px 10px 15px 10px;
    border: 1px solid var(--border-color);
    background: var(--background);
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
}
.filter {
    .form-item {
        margin: 5px 10px;
        cite {
            line-height: 30px;
            text-align: right;
            font-style: normal;
        }
    }
    input.text, select.text {
        height: 30px;
        line-height: 18px;
    }
    .filter_submit {
        margin: 5px 5px 5px 10px;
    }
    .filterBtns {
        margin: 5px 0px;
    }
    .filter_title {
        width: 100%;
        display: table;
        text-align: left;
        font-size: 16px;
        line-height: 30px;
        margin-bottom: 10px;
    }
    .filter_filter {
        float: right;
        display: inline-block;
        &.form-item {
            margin: 0;
            font-size: 13px;
        }
        cite {
            line-height: 30px;
            text-align: right;
            font-style: normal;
        }
        input.text, select.text {
            height: 30px;
            line-height: 18px;
        }
        input.btn {
            float: right;
            height: 30px;
            line-height: 18px;
            margin-left: 5px;
        }
    }
}


.pages_body_index_index {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--login-bgc);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-image: var(--login-btn-bgc);
    // background-image: url(/oniu/images/bg/bg.jpg);
    .login {
        top: 50%;
        left: 50%;
        position: fixed;
        margin: auto;
        width: 900px;
        text-align: left;
        transform: translate(-50%, -50%);
        &:before {
            width: 500px;
            height: 350px;
            content: '';
            display: inline-block;
            background-repeat: no-repeat;
            background-position: left bottom;
            background-image: url(/oniu/images/bg/store_login.png);
            background-size: contain;
            opacity: 0.7;
        }
        .forms {
            width: 350px;
            dl {
                font-size: 25px;
                color: var(--background);
                i {
                    font-size: 20px;
                }
            }
            ul {
                margin-top: 30px;
                li {
                    margin-bottom: 15px;
                    cite {
                        display: none;
                    }
                    .text {
                        width: 100%;
                        height: 46px;
                        line-height: 30px;
                        padding: 8px 25px;
                        color: var(--color);
                        font-size: 18px;
                        border-radius: 23px;
                        border: none;
                        background: var(--login-input-bgc);
                        &:hover {
                            background: var(--login-input-bgc-hover);
                        }
                        &::-webkit-input-placeholder {
                            font-size: 18px;
                            color: var(--login-input-place);
                        }
                        &::-moz-placeholder {
                            font-size: 18px;
                            color: var(--login-input-place);
                        }
                        &:-moz-placeholder {
                            font-size: 18px;
                            color: var(--login-input-place);
                        }
                        &:-ms-input-placeholder {
                            font-size: 18px;
                            color: var(--login-input-place);
                        }
                    }
                    #captcha {
                        width: 120px;
                        vertical-align: middle;
                    }
                    .captcha {
                        width: 120px;
                        height: 40px;
                        vertical-align: middle;
                        border-radius: 23px 0 0 23px;
                        background: var(--login-input-bgc);
                        opacity: 0.7;
                    }
                    .sms {
                        float: right;
                        width: 55px;
                        height: 40px;
                        font-size: 12px;
                        line-height: 15px;
                        text-align: center;
                        padding: 6px 0 0;
                        display: inline-block;
                        border-radius: 0 23px 23px 0;
                        color: var(--login-input-place);
                        background: var(--login-input-bgc);
                        &:hover {
                            color: var(--table-th);
                            text-decoration: underline;
                        }
                    }
                }
                .form-end {
                    border-style: none;
                }
                .btn {
                    width: 100%;
                    height: 40px;
                    text-align: center;
                    font-size: 18px;
                    border: none;
                    border-radius: 20px;
                    background: var(--login-btn-bgc);
                }
            }
        }
    }
}

@import 'layout.less?r=@{vs}';
@import 'form.less?r=@{vs}';
@import 'upload.less?r=@{vs}';
@import 'list.less?r=@{vs}';

@media screen and (max-width: 800px) {
    @import 'mobilex800.less?r=@{vs}';
}

@media screen and (max-width: 650px) {
    @import 'mobilex650.less?r=@{vs}';
}