.imgcai-l{
    width: 15rem;
    float: left;
}

.layui-upload-drag{
    display: block;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.layui-upload-drag span{
    font-size: 0.5rem;
}

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

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

.imgcai-l>div:last-child{
    margin-bottom: 0;
}

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

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

.suobuts button{
    padding: 0.35rem 0;
    width: calc(calc(100% / 3) - 0.3rem);
    text-align: center;
    border: 0;
    background-color: #009688;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
}

.zhuanbuts{
    display: flex;
    justify-content: space-between;
    margin-bottom: 0rem !important;
    flex-wrap: wrap;
    padding: 0.2rem 0 0.2rem 0;
    padding-bottom: 0;
}

.zhuanbuts button{
    padding: 0.35rem 0;
    width: calc(50% - 0.25rem);
    text-align: center;
    border: 0;
    background-color: #3498db;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.zhuanbuts button:nth-child(3){
    margin-bottom: 0rem;
}

.zhuanbuts button:nth-child(4){
    margin-bottom: 0rem;
}

.caijianbili{
    display: flex;
    justify-content: space-between;
    margin-bottom: 0rem !important;
    flex-wrap: wrap;
    padding: 0 0 0.2rem 0;
    padding-bottom: 0;
}

.caijianbili button{
    padding: 0.35rem 0;
    width: calc(50% - 0.25rem);
    text-align: center;
    border: 0;
    background-color: #3498db;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.caijianbili button.act{
    background-color: #795548;
}

.caijianbili button:nth-child(7){
    margin-bottom: 0rem;
}

.caijianbili button:nth-child(8){
    margin-bottom: 0rem;
}

.difsize{
    display: flex;
    justify-content: space-between;
}

.difsize>div{
    width: calc(50% - 0.25rem);
}

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

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

.difsizebut{
    display: flex;
    justify-content: space-between;
    margin-bottom: 0rem !important;
    flex-wrap: wrap;
    padding: 0.5rem 0 0.2rem 0;
    padding-bottom: 0;
}

.difsizebut button{
    padding: 0.35rem 0;
    width: calc(50% - 0.25rem);
    text-align: center;
    border: 0;
    background-color: #3498db;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
}

.difsizebut button:nth-child(2){
    background-color: #607D8B;
}

.cairesbut{
    display: flex;
    justify-content: space-between;
    margin-bottom: 0rem !important;
    flex-wrap: wrap;
    padding: 0.5rem 0 0.2rem 0;
    padding-bottom: 0;
}

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

.cairesbut button:nth-child(2){
    background-color: #FF9800;
}

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

.dfichangyong button{
    padding: 0.35rem 0;
    width: calc(50% - 0.25rem);
    text-align: center;
    border: 1px solid #eee;
    background-color: #fff;
    color: #666;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 0.25rem;
}

.night .dfichangyong button{
    background-color: #444;
    border: 1px solid #444;
    color: #fff;
}

.dfichangyong button:nth-child(9){
    margin-bottom: 0;
}

.dfichangyong button:nth-child(10){
    margin-bottom: 0;
}

.imgcai-l select{
    height: 1.6rem;
    line-height: 1.6rem;
    padding-left: 0.5rem;
    border: 1px solid #eee;
    width: 100%;
    color: rgba(0, 0, 0, .85);
}

.night .imgcai-l select {
    background-color: #181a1b;
    border: 1px solid #444;
    color: #eee;
}

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

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

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

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

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

.imgcai-r>div>h3.twoh3{
    margin-top: -0.25rem;
}

.crop-container {
    width: 100%;
    height: 22.3rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
}

#imagePreview {
    max-width: 100%;
    max-height: 20rem;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    padding: 0 0.5rem;
    background-color: #fff;
}

.night .preview-container{
    background-color: #232627;
}

.preview-box {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 0.75rem 0.5rem;
}

.preview-title {
    font-size: 0.7rem;
    color: #7f8c8d;
    margin-bottom: 0.75rem;
    height: 0.7rem;
    line-height: 0.7rem;
}

.preview-img {
    width: 100%;
    height: 7rem;
    padding: 0.5rem 0;
    background-color: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.preview-img * {
    position: relative;
    z-index: 5;
}

.preisdiv{
    position: absolute;
    left: 0;
    top:0;
    width: 100%;
    height: 100%;
}

.night .preisdiv{
    background-color: #000;
    opacity: .5;
}

.night .preview-img {
    background-color: #444;
}

.preview-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.size-display {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.4rem;
    border-radius: 6px;
    font-size: 0.6rem;
    z-index: 100;
    font-family: monospace;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#previewCircle{
    border-radius: 100%;
}

.jianqieresimgdiv{
    background-color: #fff;
    text-align: center;
    padding: 0.5rem;
}

.night .jianqieresimgdiv{
    background-color: #444;
}

.result-image {
    max-width: 100%;
    max-height: 15rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    display: block;
    margin: auto;
}

.cropperresbutdiv{
    padding: 0.5rem;
    margin-bottom: 0;
    border-radius: 4px;
    background-color: #fff;
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
}

.night .cropperresbutdiv{
    background-color: #232627;
}

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

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

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

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

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

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