.layui-colorpicker{
    padding: 0.25rem 0.25rem 0.25rem 0.25rem;
    border-radius: 0;
    border-left: 0;
}
.night .layui-colorpicker{
    border: 1px solid #444;
    border-left: 0;
    background-color: #181a1b;
}
.colorselect{
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    display: inline-block !important;
    float: left;
    clear: none !important;
}
.color_inp{
    width: calc(100% - 1.9rem);
    float: left;
}

textarea{
    resize: none !important;
}

.night .color_inp{
    border:0;
}

.layfmb0 .layui-form-item {
    margin-bottom: 0rem;
}

.fontfamilydiv .layui-form-select {
    width: calc(100% - 38px);
    float: left;
}

.fontfamicowenhao{
    font-size: 0.7rem;
    position: absolute;
    left: 0.1rem;
    top: 0.1rem;
    cursor: pointer;
    color: #05b672;
    font-weight: bold;
}

.addfont{
    width: 38px;
    height: 38px;
    line-height: 38px;
    float: left;
    text-align: center;
    border: 1px solid #eee;
    border-left: 0;
    cursor: pointer;
    position: relative;
}

.night .addfont{
    border: 1px solid #444;
    border-left: 0;
}

.addfont i{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6rem;
    color: #aaa;
}

.divlist{
    border: 1px solid #eeeeee;
    padding: 0.25rem;
    margin-top: 0.75rem;
    border-radius: 3px 3px 0 0;
}

.night .divlist{
    border: 1px solid #444;
}

.divlist>div{
    width: calc(100% / 2);
    float: left;
    padding: 0.25rem;
}


.divbuts{
    padding: 0.5rem;
    border: 1px solid #eee;
    border-top: 0;
    border-radius: 0 0 3px 3px;
}

.night .divbuts{
    border:1px solid #444;
    border-top:0;
}

.divbuts button{
    padding: 0.4rem 1rem;
    text-align: center;
    border: 0;
    background-color: #607D8B;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
}

.divbuts button:nth-child(1) {
    background-color: #009688;
}

.divbuts button:nth-child(2) {
    background-color: #795548;
}

@media screen and (max-width: 390px){
    .divbuts button:nth-child(1){
        width: calc(50% - 0.25rem);
        float: left;
    }
    .divbuts button:nth-child(2){
        width: calc(50% - 0.25rem);
        float: right;
    }
    .divbuts button:nth-child(3){
        width: 100%;
        margin-top: 0.5rem;
    }
}

.resdivs{
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    background-color: #f6f7fa;
    display: none;
}

.night .resdivs{
    background-color: #181a1b;
}

.reshead{
    background-color: #f6f7fa;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8e8fd;
    margin-bottom: 1rem;
}

.night .reshead{
    background-color: #181a1b;
    border-bottom: 1px solid #444;
}

.reshead p.title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.night .reshead p.title{
    color: #aaa;
}

.reshead p.datatitle {
    font-size: 0.7rem;
    color: #7f8c8d;
}

.reshead span {
    background-color: #9b59b6;
    color: white;
    padding: 0.3rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    display: inline-block;
}

.reshead span.dowimgs {
    background-color: #2196F3;
}

.printbgcolor{
    display: none;
}

.rescent{
    margin: 0.5rem;
    padding: 0.5rem;
    background-color: #ffffff;
    overflow: auto;
}

.resprint{
    padding: 5mm 0mm;
    width: 939px;
    margin: auto;
    background-color: #fff;
}

.resprinthead{
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #bbb;
    position: relative;
}

#qrcoders {
    position: absolute;
    right: 0;
    top: 0%;
    width: 70px;
    height: 70px;
}

.resprinthead-title{
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5mm;
    text-align: center;
    color: #34495e;
}

.resprinthead-info{
    font-size: 14px;
    color: #666;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 8px;
}

.resprinthead-info span{
    
}

.reszhuti{

}

.reszhuti>div{
    display: flex;
    flex-direction: row;
    list-style: none;
    flex-wrap: wrap;
}

.reszhuti>div>div{
    height: 80px;
    justify-content: center;
    width: 80px;
    background: url(img/tian_1.svg) 0% 0% / cover;
    margin: 1mm 0px 1mm -2px;
    text-align: center;
    /*padding-top: 11px;*/
    padding-top: 0 !important;
}

.reszhuti>div>div:first-child{
    margin-left: 0px;
}

#upfont{
    padding: 0.5rem;
    display: none;
}

#upfont .upfontlists{
    border: 1px solid #FF9800;
    background-color: #fef5e8;
    margin-top: 0.75rem;
    border-radius: 3px;
    padding: 0.5rem 0;
}

.night #upfont .upfontlists{
    border: 1px solid #444;
    background: #181a1b;
}

#upfont .upfontlists p{
    line-height: 1rem;
    padding-left: 0.5rem;
    color: #ff9800;
    font-size: 0.5rem;
}

.night #upfont .upfontlists p{
    color: #aaa;
}



@media screen and (max-width: 767px){
    .divlist>div {
        width: 100%;
    } 
}

@media screen and (max-width: 500px){
    .reshead{
        display: block;
    }
    .reshead div.clear{
        margin-top: 0.5rem;
    }
}

@media print {
    /* 隐藏不需要打印的元素 */
    html * {
        visibility: hidden;
    }

    iframe{
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
    }
    
    ins{
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
    }

    .left-nav{
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
    }

    .mpgs,.footer,.headada,.gonggao_alert,.search,.headbutdiv,.headerbut>span,.user_alert,.tool_nav_but,.tool_nav{
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
    }

    .tuiart{
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
    }

    .fnavs{
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
    }
    
    .head_div{
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
    }

    .google-auto-placed {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
    }

    .stoolsads{
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
    }

    .toolbar{
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
    }

    .tuitool{
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
    }
    
    /* 重置body样式 */
    body {
        background-color: white !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .printbgcolor{
        visibility: visible;
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: -1;
        background-color: #ffffff;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .main {
        width: 100%;
        margin-top: 0;
    }

    .center {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .resprint, .resprint * {
        visibility: visible;
    }

    @page {
        size: auto;
        margin: 0mm 0mm 0
    }

    .resprint {
        position: absolute;
        left: 0;
        top: 0;
        min-height: auto !important;
        max-height: none !important;
        margin: 0 auto !important;
        overflow: visible !important;
        background-color: #fff;
        width: calc(939px + 32mm);
        padding-left: 16mm;
        padding-right: 16mm;
        z-index: 99999;
        box-decoration-break: clone;
    }

    .page-sheet {
        break-after: page; /* 这一行是关键 */
        page-break-after: always; /* 兼容旧浏览器 */
    }

    .reszhuti>div>div,.reszhuti>div{
        display: flex !important;
    }

    .resprinthead {
        page-break-inside: avoid;
    }

    .reszhuti {
        page-break-inside: auto;
    }

    .reszhuti>div{
        page-break-inside: avoid;
    }
}
