/* cs-image-upload 样式 */
.cs-image-upload {
    display: inline-block;
    vertical-align: top;
}

.cs-image-upload__trigger {
    width: 148px;
    height: 148px;
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #fbfdff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s;
}

.cs-image-upload__trigger:hover {
    border-color: #409EFF;
}

.cs-image-upload__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cs-image-upload__icon {
    font-size: 28px;
    color: #8c939d;
}

.cs-image-upload__preview {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-image-upload__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cs-image-upload__mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity .2s;
}

.cs-image-upload__trigger:hover .cs-image-upload__mask {
    opacity: 1;
}

.cs-image-upload__loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #409EFF;
}

.cs-image-upload__disabled img {
    width: 148px;
    height: 148px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}
