.preview {
    background: #f6f7fa;
    padding: 0.75rem;          /* 保留四周内边距 */
    margin-bottom: 0.75rem;
    border-radius: 3px;
    overflow-x: auto;          /* 横向滚动条 */
    white-space: nowrap;       /* 子元素不换行 */
    text-align: center;        /* 水平居中内部 .wrap */
}

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

.wrap {
    transform-origin: center center;
    transition: transform 0.2s;
    display: inline-block;
}

#paper {
    position: relative;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.layerwifi {
    position: absolute;
}

#bgImgLayer {
    z-index: 1;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

#rectLayer {
    z-index: 2;
}

#lineLayer {
    z-index: 3;
}

#qrLayer {
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qrLayer canvas {
    width: 100% !important;
    height: 100% !important;
}

#logoLayer {
    z-index: 5; 
}

#nameLayer,
#passLayer {
    z-index: 5;
    white-space: nowrap;
}

.txt-val {
    padding: 0 2px;
    opacity: 0.8;
    font-weight: normal;
    border-bottom: 1px solid currentColor;
}

#iconLayer {
    z-index: 6;
}

#iconBox {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid transparent;
    background-color: transparent;
}

.layui-icon-delete{
    font-size: 1rem;
    color: #666666;
}

.biaotidiv {
    padding: 0.5rem;
}

.biaotidiv>div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.biaotidiv>div .layui-form-item {
    margin-bottom: 0;
}

.layui-tab-content {
    padding: 0;
}

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

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

.upfiles {
    width: calc(100% - 38px);
    float: left;
    border: 1px solid #eee;
    height: 38px;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    color: #bbb;
}

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

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

@media screen and (max-width: 1424px){
    .biaotidiv>div {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 1065px){
    .biaotidiv>div {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width: 886px){
    .biaotidiv>div {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 770px){
    .biaotidiv>div {
        grid-template-columns: repeat(1, 1fr);
    }
}
