@import "variables.less";
// @import "navigation.less";
@import "buttons.less";
@import "input.less";
@import "navigation.less";

.pointer {
    cursor: pointer;
}

////////////////////////////
/// 页面主题样式
///////////////////////////
.wrapper-content {
    padding: 0;
    padding-bottom: 44px;
    cursor: default;
    min-height: calc(~"100vh - 104px");

    .card {
        .card-title {
            height: 62px;
            line-height: 62px;
            background: #fff;
            margin: 0 -15px;
            overflow: hidden;
            justify-content: space-between;
            align-items: center;

            h3 {
                margin: 0;
                padding-left: 20px;
                font-size: 14px;
                font-weight: normal;
                color: @black;

                a {
                    color: @black;
                }

                i {
                    margin: 0 10px;
                }
            }

            >a {
                margin-right: 20px;
                font-size: 14px;
            }
        }

        .card-body {
            .ibox {
                background-color: #fff;
                margin-top: 15px;

                .ibox-title {
                    border-top: 0;
                    min-height: 45px;
                    border-bottom: 1px solid #e7eaec;
                    width: 96%;
                    margin: 0 auto;
                    position: relative;
                    padding: 0;
                    align-items: center;

                    h3 {
                        margin: 0;
                        font-size: 18px;
                        line-height: 45px;
                        color: @black;
                        font-weight: 500;
                        padding-left: 10px;

                        span {
                            font-size: 14px;
                            color: #4c4c4c;
                            margin-left: 30px;
                            font-weight: 400;
                        }
                    }

                    &:before {
                        content: '';
                        display: block;
                        width: 5px;
                        height: 15px;
                        background: @lazur;
                        position: absolute;
                        left: 0;
                        top: 15px;
                    }
                }

                .ibox-content {

                    //////////////
                    // 一排tab的样式
                    //////////////
                    .settFlag {
                        border-bottom: 1px solid #aaa;
                        margin-bottom: 40px;
                        height: 34px;

                        >span {
                            font-size: 18px;
                            padding: 0 5px;
                            display: inline-block;
                            height: 35px;

                            label {
                                cursor: pointer;
                                margin-bottom: 0;
                                height: 26px;
                                line-height: 22px;
                                position: relative;
                                display: inline-block;
                                width: auto;
                                text-align: center;
                                vertical-align: middle;
                                font-size: 16px;
                                font-weight: 500;

                                >span {
                                    position: absolute;
                                    margin-top: -8px;
                                    margin-left: 4px;
                                    padding: 2px 5px;
                                }

                                input {
                                    display: none !important;
                                }

                                &:focus {
                                    outline: none;
                                }
                            }

                            &.active {
                                color: @lazur  !important;
                                border-bottom: 3px solid @lazur;
                            }

                            +span {
                                margin-left: 25px;
                            }

                            &:focus {
                                outline: none;
                            }
                        }
                    }

                    //////////////////
                    // tab下面表格的样式
                    //////////////////
                    .table-responsive {
                        overflow: inherit;
                    }

                    .table-striped {
                        >thead {
                            tr {
                                background-color: #f2f2f2;

                                th {
                                    text-align: center;
                                    vertical-align: middle;
                                    padding: 8px 3px;
                                }
                            }
                        }

                        >tbody>tr {
                            border-bottom: 1px solid #e7eaec;

                            &:hover:nth-child(n+2) {
                                background-color: #F5F5F5;
                            }

                            th,
                            td {
                                text-align: center;
                                vertical-align: middle;
                            }

                            .next-table-cell-wrapper {
                                margin: -8px 0;
                                padding: 8px 0;
                                position: relative;
                            }

                            .popus-copy {
                                position: absolute;
                                word-break: break-all;
                                left: 0;
                                top: 0;
                                z-index: 2;
                                width: 100%;
                                height: auto;
                                padding: 10px;
                                background: #fff;
                                text-align: center;
                                line-height: 20px;
                                border-radius: 5px;
                                box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
                                display: none;
                                opacity: 0;
                                transform: translate(0%, -100%);

                                button {
                                    border: 0;
                                    float: right;
                                    background: #fff;
                                    text-decoration: underline;
                                }

                                button:hover {
                                    color: @lazur;
                                }
                            }

                            .popus-copy:before {
                                content: '';
                                display: block;
                                position: absolute;
                                left: 0;
                                bottom: 0;
                                right: 0;
                                top: 0;
                                z-index: 2;
                                margin: auto;
                                margin-bottom: 0px;
                                width: 20px;
                                height: 10px;
                                background: #fff;
                            }

                            .popus-copy:after {
                                content: '';
                                display: block;
                                position: absolute;
                                left: 0;
                                bottom: 0;
                                right: 0;
                                top: 0;
                                margin: auto;
                                margin-bottom: -5px;
                                transform: rotate(45deg);
                                width: 10px;
                                height: 10px;
                                box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
                                background: #fff;
                            }

                            .popus-copy.hover {
                                display: block;
                                opacity: 1;
                            }

                            ul.operate-btn {
                                width: 108px;
                                margin: 0 auto;
                                display: flex;
                                flex-flow: row nowrap;
                                justify-content: space-between;

                                li {
                                    font-size: 13px; // font-family: "PingFang";
                                    font-weight: normal;
                                    color: rgb(60, 60, 60); //text-decoration: underline;
                                    line-height: 1;
                                    display: block;
                                    margin-bottom: 8px;
                                    cursor: pointer;
                                    margin: 0 5px;
                                    word-break: keep-all;
                                    /* 不换行 */
                                    white-space: nowrap;
                                    /* 不换行 */
                                    //overflow: hidden; /* 内容超出宽度时隐藏超出部分的内容 */
                                    //text-overflow: ellipsis; /* 当对象内文本溢出时显示省略标记(...) ；需与overflow:hidden;一起使用。*/
                                }
                            }

                            ul.mall {
                                justify-content: center;
                            }
                        }
                    }


                    section {
                        .secondary-title {
                            position: relative;
                            font-size: 14px;

                            h5 {
                                font-size: 16px;
                                padding-left: 10px;
                            }

                            &:before {
                                content: '';
                                display: block;
                                width: 5px;
                                height: 15px;
                                background: @lazur;
                                position: absolute;
                                left: 0;
                                top: 5px;
                            }

                            .describe {
                                padding-left: 15px;
                                margin-left: 20px;
                                font-size: 12px;
                                color: #3c3c3c;
                            }
                        }
                    }
                }

                .ibox-foot {
                    overflow: hidden;
                    position: relative;

                    >.show-num {
                        margin: 20px 0;
                        height: 27px;
                        line-height: 27px;
                        padding-right: 10px;

                        select {
                            border: 1px solid #ddd;
                            border-radius: 0;
                            width: 70px;
                            padding-left: 5px;
                            background-color: transparent;
                            outline: none;
                            text-align: left;
                        }
                    }
                }
            }
        }

        .card-foot {
            overflow: hidden;
            text-align: center;
            padding-bottom: 60px;
            float: right;

            button {
                letter-spacing: 10px;

                &:nth-child(2) {
                    margin-left: 30px;
                }
            }
        }
    }
}

////////////////////////////
/// 文字交互效果
///////////////////////////
.interact-normal {
    .pointer;
    color: @black  !important;
    font-size: 14px;
    font-weight: normal;

    &:hover {
        color: @lazur  !important;
    }
}

.interact-expand {
    .pointer;
    color: @lazur  !important;
    font-size: 14px;
    font-weight: normal;
    display: inline-block;

    &:hover {
        // font-size: 15px;
        transform: scale(1.1);
    }
}

span.interact-expand {
    display: inline-block;
}

.interact-link {
    .pointer;
    font-size: 14px;
    color: @lazur  !important;
    text-decoration: underline;

    &:hover {
        transform: scale(1.1);
        text-decoration: underline;
    }
}

a.interact-link {
    display: inline-block;
}

////////////////////////////
/// 图片上传模块
///////////////////////////
.upload-pic-block {
    >.upload-pic-container {
        >.btn-upload {
            position: relative;
            width: auto;
            height: 34px;
            text-align: center;
            cursor: pointer;
            padding: 0;
            line-height: 34px;

            .upload-file {
                position: absolute;
                left: 0;
                width: 100%;
                height: 100%;
                opacity: 0;
                z-index: 10;
                cursor: pointer;
            }

            .upload-file[disabled] {
                cursor: not-allowed;
            }

            button {
                position: absolute;
                z-index: 5;
                color: #fff;
                background-color: #2cc5c6;
                border: 1px solid #2cc5c6;
            }

            p.mask {
                position: absolute;
                top: 0;
                height: 34px;
                z-index: 10;
                line-height: 24px;
                width: 100%;
                display: none;

                span {
                    position: absolute;
                    max-width: 160px;
                    transform: translateX(-50%); // left: 50%;
                    color: #fff;
                }

                a {
                    position: absolute;
                    right: 10px;
                }
            }
        }

        >.gallery {
            display: none;
            width: 100%;

            >.onePic {
                width: 100%;
                margin-top: 15px;
                position: relative;
                height: calc(~"14.3163vw - 31.5px");
                background-color: #f1f1f1;

                .btn-close {
                    position: absolute;
                    top: 50%;
                    right: 5%;
                    transform: translateY(-50%);
                    width: 20px;
                    height: 20px;
                    color: #2cc5c6;
                    cursor: pointer;
                }

                >a {
                    padding: 10px 20px;
                    position: absolute;
                    width: 70%;
                    height: 70%;
                    top: 15%;
                    left: 10%;
                    background-color: #fff;
                    border: 1px solid #ccc;

                    >img {
                        display: block;
                        position: absolute;
                        left: 50%;
                        top: 50%;
                        transform: translate(-50%, -50%);
                        max-width: 100%;
                        display: block;
                        border: none;
                    }
                }
            }
        }
    }
}

.upload-xls-block {
    >.upload-pic-container {
        >.btn-upload {
            position: relative;
            width: 180px;
            height: 34px;
            text-align: center;
            cursor: pointer;
            padding: 0;
            line-height: 30px;

            input {
                position: absolute;
                width: 100%;
                height: 100%;
                opacity: 0;
                z-index: 10;
                cursor: pointer;
            }
        }
    }
}

/*******************************
 *  加载进度样式
 ******************************/

#loading-container {
    transition: all 0.4s;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;

    .loading-mark {
        position: absolute;
        z-index: 1;
        width: 100%;
        height: 100%;
        background-color: rgba(45, 45, 45, 0.3);
    }

    .loading {
        position: absolute;
        width: 140px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        background-color: rgba(33, 33, 33, 0.8);
        color: #fff;
        padding: 15px;
        border-radius: 5px;

        .sk-circle {
            width: 40px;
            height: 40px;
            position: relative;
        }

        .sk-circle .sk-child {
            width: 100%;
            height: 100%;
            position: absolute;
            left: 0;
            top: 0;
        }

        .sk-circle .sk-child:before {
            content: '';
            display: block;
            margin: 0 auto;
            width: 15%;
            height: 15%;
            background-color: white;
            border-radius: 100%;
            animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
        }

        .sk-circle .sk-circle2 {
            transform: rotate(30deg);
        }

        .sk-circle .sk-circle3 {
            transform: rotate(60deg);
        }

        .sk-circle .sk-circle4 {
            transform: rotate(90deg);
        }

        .sk-circle .sk-circle5 {
            transform: rotate(120deg);
        }

        .sk-circle .sk-circle6 {
            transform: rotate(150deg);
        }

        .sk-circle .sk-circle7 {
            transform: rotate(180deg);
        }

        .sk-circle .sk-circle8 {
            transform: rotate(210deg);
        }

        .sk-circle .sk-circle9 {
            transform: rotate(240deg);
        }

        .sk-circle .sk-circle10 {
            transform: rotate(270deg);
        }

        .sk-circle .sk-circle11 {
            transform: rotate(300deg);
        }

        .sk-circle .sk-circle12 {
            transform: rotate(330deg);
        }

        .sk-circle .sk-circle2:before {
            animation-delay: -1.1s;
        }

        .sk-circle .sk-circle3:before {
            animation-delay: -1s;
        }

        .sk-circle .sk-circle4:before {
            animation-delay: -0.9s;
        }

        .sk-circle .sk-circle5:before {
            animation-delay: -0.8s;
        }

        .sk-circle .sk-circle6:before {
            animation-delay: -0.7s;
        }

        .sk-circle .sk-circle7:before {
            animation-delay: -0.6s;
        }

        .sk-circle .sk-circle8:before {
            animation-delay: -0.5s;
        }

        .sk-circle .sk-circle9:before {
            animation-delay: -0.4s;
        }

        .sk-circle .sk-circle10:before {
            animation-delay: -0.3s;
        }

        .sk-circle .sk-circle11:before {
            animation-delay: -0.2s;
        }

        .sk-circle .sk-circle12:before {
            animation-delay: -0.1s;
        }

        @keyframes sk-circleBounceDelay {

            0%,
            100%,
            80% {
                transform: scale(0);
            }

            40% {
                transform: scale(1);
            }
        }

        .loading-text {
            position: absolute;
            right: 15px;
            top: 0;
            font-size: 20px;
            height: 100%;
            line-height: 70px;
        }
    }
}

/*******************************
 *  modal样式
 ******************************/

.modal.in .modal-dialog {
    width: 902px;
    margin-top: 100px;
    box-sizing: border-box;
}

.modal-large.modal.in .modal-dialog {
    width: 1032px;
    margin-top: 150px;
}

.modal-small.modal.in .modal-dialog {
    width: 552px;
    margin-top: 150px;
}

.modal-650.modal.in .modal-dialog {
    width: 650px;
    margin-top: 150px;

    .modal-content {
        border-radius: 15px;
    }
}

.modal-650.modal.fade .modal-dialog {
    width: 650px;
    margin-top: 150px;

    .modal-content {
        border-radius: 15px;
    }
}

.modal-header {
    padding: 15px 0;
}

.modal-body {
    padding: 20px 0;
}

.modal-footer {
    padding: 15px 0;
    border-top: none;
    text-align: center;

    button {
        letter-spacing: 10px;
    }

    button:nth-child(2) {
        margin-left: 25px;
    }
}