.files-wrapper{
    margin: 20px 0;
    min-height: 640px;
    background: #fff;
    padding: 20px;
}

.files-tab{
    padding: 10px 0;
    font-size: 16px;
    line-height: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.files-tab .tab-item{
    background-color: #f5f6f7;
    color: #666;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: bolder;
}
.files-tab .tab-item-active{
    background-image: linear-gradient(140deg, #8542ff, #4677ff);
    color: #fff;
}

.files-content{
    padding-top: 20px;
}

.files-content .tab-panel{
    min-height: 500px;
}

.files-content .tab-panel .panel-item-wrapper{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.files-content .tab-panel .panel-item{
    width: calc(25% - 15px);
}

.files-content .tab-panel .panel-item .img-wrapper{
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    background-color: rgba(0,0,0,0.7);
}

.files-content .tab-panel .panel-item .img-wrapper .img{
    width: 100%;
    aspect-ratio: 5/3;
    height: auto;
    object-fit: cover;
    vertical-align: middle;
}
.files-content .tab-panel .panel-item .img-wrapper .icon{
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%,-50%);
    width: 60px;
    height: 60px;
    vertical-align: middle;
}
.files-content .tab-panel .panel-item .img-wrapper .img-info{
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    color: #fff;
    padding: 0 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.files-content .tab-panel .panel-item .img-wrapper .img-name{
    font-size: 17px;
    font-weight: bolder
}
.files-content .tab-panel .panel-item .img-wrapper .img-desc{
    padding-top: 8px;
    font-size: 16px;
}
.files-content .tab-panel .panel-item .name{
    padding-top: 8px;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.files-content .tab-panel .panel-item .desc{
    font-size: 15px;
    color: #999;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.files-video-dialog{
    line-height: 0;
    padding-bottom: 5px;
    width: 800px;
}

.files-video-dialog .video{
    width: 100%;
}

@media screen and (min-width: 768px) {
    .files-tab .tab-item{
        cursor: pointer;
    }
    .files-content .tab-panel .panel-item{
        cursor: pointer;
    }
}

@media screen and (max-width: 768px) {
    .files-wrapper{
        margin: 0;
        padding: 10px 15px;
    }



    .files-content{
        padding-top: 10px;
    }

    .files-content .tab-panel{
        min-height: 500px;
    }

    .files-content .tab-panel .panel-item-wrapper{
        gap: 15px;
    }

    .files-content .tab-panel .panel-item{
        width: 100%;
    }

    .files-content .tab-panel .panel-item .img-wrapper{
        position: relative;
        overflow: hidden;
        border-radius: 5px;
        background-color: rgba(0,0,0,0.7);
    }

    .files-content .tab-panel .panel-item .img-wrapper .img-name{
        font-size: 16px;
    }
    .files-content .tab-panel .panel-item .img-wrapper .img-desc{
        padding-top: 8px;
    }

    .files-video-dialog{
        line-height: 0;
        padding-bottom: 5px;
        width: 100%;
    }
}
