.imgres-l{
    width: 20rem;
    float: left;
}

.imgres-l>div{
    padding: 0.5rem;
    border: 1px solid #e8e8fd;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

.night .imgres-l>div{
    border:1px solid #444;
}

.imgres-l>div>span{
    display: block;
    margin-bottom: 0.5rem;
}

.imgres-l>div input {
    height: 1.8rem;
    line-height: 1.8rem;
    width: 100%;
    border: 1px solid #e8e8fd;
    padding-left: 0.5rem;
    color: rgba(0, 0, 0, .85);
}

.imgres-l>div>div.kuangao{
    border: 1px solid #e8e8fd;
    height: 1.8rem;
    line-height: 1.8rem;
    padding-left: 0.5rem;
    position: relative;
}

.night .imgres-l>div>div.kuangao{
    border: 1px solid #444;
}

/******************************/

.imgres-r{
    width: calc(100% - 20rem);
    padding-left: 0.75rem;
    float: right;
}

.imgres-r>div{
    background-color: #f6f7fa;
    padding: 1rem;
    border-radius: 3px;
}

.night .imgres-r>div {
    background-color: #181a1b;
}

.imgres-r>div>h3{
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    margin-top: -0.5rem;
}

.imgres-r>div>div.canvasdemos{
    background-color: #fff;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    padding: 0.5rem;
    text-align: center;
    height: 13.9rem;
    position: relative;
}

.night .imgres-r>div>div.canvasdemos {
    background-color: #242627;
}

.canvademotip{
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-direction: column;
}

.canvademotip i{
    display: block;
    font-size: 2rem;
    color: #7f8c8d;
}

.canvademotip p{
    display: block;
    color: #7f8c8d;
    margin-top: 1rem;
}

.imgres-r>div canvas{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.imginfos{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
    background-color: #fff;
    padding: 0.5rem;
    border-radius: 6px;
}

.night .imginfos {
    background-color: #242627;
}

.imginfos>div{
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
}

.night .imginfos>div{
    background-color: #333;
}

.imginfos>div>div:nth-child(1){
    font-weight: 600;
    color: #3498db;
    margin-bottom: 8px;
    font-size: 0.6rem;
}

.imginfos>div>div:nth-child(2){
    font-size: 0.6rem;
    word-wrap: break-word;
}

.imgsizebut{
    display: flex;
    justify-content: space-between;
    margin-bottom: 0rem !important;
}

.imgsizebut button{
    padding: 0.5rem 0;
    width: calc(50% - 0.25rem);
    text-align: center;
    border: 0;
    background-color: #607D8B;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
}

.imgsizebut button:nth-child(1){
    background-color: #3498db;
}

@media screen and (max-width: 1230px){
    .imgres-l {
        width: 50%;
        float: left;
    }

    .imgres-r {
        width: 50%;
        padding-left: 0.75rem;
        float: right;
    }
}

@media screen and (max-width: 980px){
    .imgres-l {
        width: 100%;
        float: left;
    }

    .imgres-r {
        width: 100%;
        padding-left: 0;
        float: right;
        margin-top: 0.75rem;
    }
}

@media screen and (max-width: 480px){
    .imgres-r>div {
        padding: 1rem 0.5rem 0.5rem 0.5rem;
    }
}

@media screen and (max-width: 400px){
    .imginfos {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}