@first-bgColor: #141414;
@second-bgColor: #1b1b1b;
@third-bgColor: #222222;
@borderColor: #424242;
@primary-textColor: #fff; //�ı�����ɫ
@second-textColor: #a5a5a5; //�ı�������ɫ
@primary-fontSize: 14px;
@second-fontSize: 15px;

.teach-content {
    width: 100%;
    height: 100%;

    &-top {
        width: 100%;
        height: 50px;
        border-bottom: 1px solid @borderColor;
        padding: 0px 15px;
    }

    &-main {
        width: 100%;
    }
}
.content-file-filter {
    height: 50px;
    padding: 0px 15px;
    border-bottom: 1px solid #303030;

    span {
        color: white;
    }

    .tab-active {
        color: @primary-textColor;
        font-size: 15px;
        font-weight: 800;
    }

    .tab-active::before {
        transition: transform 0.3s ease-in-out;
        transform: scaleX(1);
        transform-origin: bottom left;
    }
}
.key-word-search {
    width: 240px;
    margin-right: 20px;
}
.teach-content-top {
    .tab-box {
        display: inline-block;
        width: 25%;
        padding-left: 25px;

        span {
            margin-right: 30px;
            color: @second-textColor;
            font-size: @primary-fontSize;
            font-weight: bold;
            padding: 5px 0;
            cursor: pointer;
            line-height: 50px;
            position: relative;

            &::before {
                content: '';
                position: absolute;
                left: 0;
                bottom: 0;
                width: 100%;
                height: 2px;
                background-color: white;
                transform-origin: bottom right;
                transform: scaleX(0);
            }
        }

        .tab-active {
            color: @primary-textColor;
            font-size: 16px;
            transition: font-size 0.1s ease-in-out;
        }

        .tab-active::before {
            transition: transform 0.3s ease-in-out;
            transform: scaleX(1);
            transform-origin: bottom left;
        }
    }

    .upload-box {
        display: inline-block;
        text-align: right;
        padding-right: 25px;
        float: right;
        color: white;
        line-height: 50px;
        cursor: pointer;

        &:hover {
            color: aqua;
        }

        span {
            margin-left: 10px;
        }
    }
}

.teach-content-main {
    /*height: ~"calc(100% - 50px)";*/
    height: 100%;

    .content-type-list {
        width: 200px;
        border-right: 1px solid @borderColor;
        height: 100%;
        float: left;
        position: relative;

        .space-box {
            width: 95%;
            margin: auto;
            margin-top: 20px;

            p {
                color: @primary-textColor;
                margin-top: 5px;
                font-size: 12px;
            }

            .percent-box {
                width: 100%;
                height: 10px;
                border-radius: 5px;
                background: white;
                overflow: hidden;

                .percent-item-span {
                    height: 10px;
                    vertical-align: super;
                    display: inline-block;
                }
            }

            .percent-detail-box {
                width: 100%;

                .text-dot {
                    width: 8px;
                    height: 8px;
                    border-radius: 50%;
                    display: inline-block;
                    margin-right: 10px;
                }

                .text-type {
                }

                .text-size {
                    float: right;
                    margin-right: 5px;
                }
            }

            .storage-full {
                background-color: red;
            }

            .storage-data {
                background-color: #F8C006;
            }

            .storage-image {
                background-color: #45C84A;
            }

            .storage-video {
                background-color: #8E2BDD;
            }

            .storage-audio {
                background-color: #E1027B;
            }

            .storage-doc {
                background-color: #03C0C2;
            }

            .storage-res {
                background-color: #1FFCC5;
            }

            .storage-other {
                background-color: #E87B22;
            }
        }

        .content-type-item {
            width: 100%;
            height: 80px;
            line-height: 80px;
            text-align: center;
            border-bottom: 1px solid @borderColor;
            cursor: pointer;
            z-index: 1;
            position: relative;
            color: white;
            outline: none;

            &::before {
                content: '';
                z-index: -1;
                position: absolute;
                top: 0;
                bottom: 0;
                left: 0;
                right: 0;
                background-color: #404040;
                transform-origin: center right;
                transform: scaleX(0);
            }

            span {
                color: white;
                font-size: 16px;
                font-weight: 500;
                /*letter-spacing: 5px;*/
                margin-left: 18px;
            }
        }

        .content-type-item-active::before {
            transform-origin: center left;
            transform: scaleX(1);
            transition: transform 0.15s ease-in;
        }
    }

    .content-file-list-box {
        width: ~'calc(100% - 200px)';
        float: right;
        height: 100%;
        position: relative;


        .content-file-list {
            height: ~"calc(100% - 50px)";
            padding: 15px 30px;
            overflow-y: auto;
            background-image: linear-gradient(to bottom right, #282828, #505050);

            &::-webkit-scrollbar { /*������������ʽ*/
                width: 10px; /*�߿��ֱ��Ӧ�����������ĳߴ�*/
                height: 1px;
            }

            &::-webkit-scrollbar-thumb { /*����������С����*/
                -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
                background: rgb(124,124,124);
            }

            &::-webkit-scrollbar-track { /*������������*/
                -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
                background: rgba(68,68,68,.5);
            }
        }
    }
}

.list-item {
    cursor: pointer;
    width: 100%;
    height: 140px;
    border: 1px solid @borderColor;
    background: #505050;
    margin-bottom: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px 30px;
    position: relative;
    border-radius: 5px;

    &:hover {
        box-shadow: 0 26px 40px -24px rgb(0,0,0);
        transform: translateY(-6px);
        transition: all .2s ease 0s;
        background: #606060;
        z-index: 999;
    }

    &:hover .file-info p {
        color: aqua;
    }

    &:hover .file-info .file-detail-info span {
        color: white;
    }

    .file-info {
        margin-left: 35px;

        p {
            font-size: 24px;
            color: white;
        }

        .file-detail-info {
            margin-top: 10px;

            span {
                color: #DDDDDD;
                font-size: 16px;
                margin-right: 30px;
            }
        }
    }

    .file-action {
        position: absolute;
        right: 50px;
    }
}

.card-item {
    width: 285px;
    height: fit-content;
    max-height: 200px;
    overflow: hidden;
    position: relative;
    margin: auto;
    margin-top: 15px;
    display: inline-block;
    margin: 10px 12px;
    border-radius: 5px;

    &:hover::before {
        transition: background .5s;
    }

    &:hover {
        transform: translateY(-6px);
        transition: all .2s ease 0s;
    }

    &::before {
        content: "";
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0px;
        top: 0px;
        display: block;
    }
}
.file-name {
    font-size: 14px;
    color: #eeeeee;
    height: fit-content;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    padding: 0px 5px;
    text-align: left;
    word-break: break-all;
    position: absolute;
    width: 100%;
    z-index: 9999;
}
.img-mask {
    position: absolute;
    bottom: 7px;
    left: 7px;
    right: 7px;
    top: 7px;
    opacity: 0;
    background: rgba(20, 20, 20, 0.6);
}

.img-box {
    .item-tools {
        position: absolute;
        bottom: 0px;
        left: 0px;
        right: 0px;
        position: absolute;
        z-index: 9999;
        padding-left: 10px;
        padding: 4px;
        text-align: left;
    }

    &:hover .img-mask {
        opacity: 1;
        transition: opacity 0.2s;
    }

    &:hover .item-tools {
        opacity: 1;
        transition: opacity 0.2s;
    }
}
.item-tools{
    opacity:0;
}
.btn-dropdown-menu {
    display: inline-block;
    height: 40px;
    width: 40px;
    margin-left: 12px;
    vertical-align: middle;
    line-height: 40px;
    background-color: #AAAAAA;
    border-radius: 0px 4px 4px 0px;

    &:hover {
        background: #999999;
    }
}

.file-show-type {
    float: right;
    margin-top: 13px;
    margin-right: 30px;
}

.file-icon {
    display: inline-block;
    // vertical-align: sub;
    img {
        display: inline-block;
        margin-right: 10px;
        vertical-align: text-top;
        border-radius: 2px;
    }
}
.image-viewer {
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    text-align: center;
    /*display: flex;
    justify-content: center;
    align-items: center;*/
    padding:50px;
    padding-top:8%;
    .close-icon {
        position: absolute;
        right: -16px;
        top: -16px;
        font-size: 24px;
        color: black;
        cursor: pointer;
        border-radius:50px;
        background:white;
        padding:2px;
    }
}
.card-box {
    width: 100%;
    height: 100%;
}

.page-wrap {
    width: 100%;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.toggle-btn-icon {
    font-size: 16px;
}

.action-btn-wrap {
    margin-right: 30px;
    cursor: pointer;
    color: white;
    float: right;
    line-height: 50px;
    user-select: none;
}

.action-btn-wrap-disabled {
    cursor: not-allowed;
    color: @second-textColor !important;

    &:hover {
        color: @second-textColor !important;
    }
}
.binding-point{
    color:white;
}

.rename-action-icon{
    display: inline-block;
    margin-left: 10px;
    cursor: pointer;
}

.pd-filter-wrap{
    color: #a5a5a5;
    float: left;
    margin-left: 10px;
    margin-top: 15px;
}
.content-filter-wrap{
    position: absolute;
    left: 120px;
    display: flex;
    margin-top: 12px;
}