body {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    background-color: #f2f2f2;
}



.newskin {
    display: flex;
    gap: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #fff;
    margin: 10px;
    box-sizing: border-box;
    border-radius: 20px;
}

.appname::after {
    position: absolute;
    content: "v2.2 beta";
    font-size: 13px;
    background-color: #cbf3ff;
    padding: 3px 5px 3px 5px;
    border-radius: 10px;
    margin-top: -20px;
    margin-left: -30px;
    font-weight: normal;
}


.loading {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-color: #fff;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 20px;
    z-index: 9999;
    top:0;
}


#loadtemplate,
#save,#cropperbutton{
    width: 60%;
    font-size: 16px;
    padding: 10px;
    border-radius: 50px;
    background-color: #cbf3ff;
    font-weight: bold;

}


#cropperbutton{
    position: absolute;
    bottom: 10%;
}

#skinpreview {
    position: fixed;
    text-align: center;
    width: 90%;
    aspect-ratio: 1080/900;
    height: auto;
    flex-direction: column;
    justify-content: center;
    background-color: #f2f2f2;
    border-radius: 10px;
    margin-bottom: 10px;
    color: black;
    z-index: 99;
    top: 0px;

}

#skinpreview2 {
    text-align: center;
    width: 100%;
    aspect-ratio: 1080/900;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f2f2f2;
    border-radius: 10px;
    margin-bottom: 10px;
    color: black;
}

#skinpreview3 {
    text-align: center;
    width: 100%;
    aspect-ratio: 1080/900;
    height: auto;
    flex-direction: column;
    justify-content: center;
    background-color: #f2f2f2;
    border-radius: 10px;
    margin-bottom: 10px;
    color: black;
}

#skinnamepre {
    color: blue;
}

#tishi {
    width: 80%;
    font-size: 16px;
    padding: 10px;
    border-radius: 50px;

}


#main {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 20px;
    margin: 10px;
}

.title {
    font-weight: bold;
}


select,
#skincolor,
#skinname {
    width: 60%;
    height: 25px;
    padding: 0px;
    border-radius: 10px;
    border: 1px solid #999;
    padding-left: 5px;
}

.keymasktype{
    display: none;
}

#keymasktypeselect{
    width: fit-content;
}

#coloriframe {
    display: none;
    width: 100%;
    height: 250px;
    overflow: scroll;
    padding: 5px;
    border: solid 1px #ccc;
    border-radius: 10px;
    margin: 10px;
    box-sizing: border-box;
}

#closecoloriframe {
    position: absolute;
    right: 20px;
    margin-top: -20px;
    padding: 5px;
    border-radius: 10px;
    font-weight: bold;
    background-color: #fff;
    z-index: 0;
}

#fontsizeratiodiv,
#skinalphadiv {
    width: 60%;
    display: flex;
}

#fontsizeratio,
#themealpha {
    flex: 1;
}

.fontfilediv {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;

}



.fontfile,
.soundfile {
    width: 100%;
    height: 25px;
    padding: 0px;
    border-radius: 10px;
    border: 1px solid #999;
    padding-left: 5px;
}

#soundfile {
    margin-top: 5px;
    margin-bottom: 5px;
}

#jingjian {
    display: none;
    font-size: 14px;
    font-weight: bold;
}

.bldzf {
    font-size: 14px;
}

#subfont {
    display: none;
}

#subfonttext {
    width: 100%;
    height: 80px;
}

.widgetselect,
.animselect,
.xiaolanselect,.tiezhiselect,
.soundselect {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#pfw,
#ai,#tiezhi,
#diysound {
    font-size: 14px;
    display: none;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

#diysound {
    flex-direction: column;
    align-items: flex-start;
    padding: 5px;
    box-sizing: border-box;
}

.widgetselect select,
.animselect select,
.xiaolanselect select,.tiezhiselect select,
.soundselect select {
    width: 100%;
}


#pfwpreview,
#aipreview,#tiezhipreview{
    width: 48px;
    height: 48px;
    border: 1px solid #999;
    padding: 5px;
    border-radius: 10px;
    background: url("../res/img/tm.png") repeat;
    background-size: 10px;

}



.scale {
    font-size: 12px;
    line-height: 1.5;
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
}


.kggz {
    font-size: 12px;
    line-height: 1.5;
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
}

.keys,
.info,
.saveskin,
.advanced {
    width: 100%;
}

.saveskin {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}


#save {
    margin-bottom: 20px;

}


#jiaocheng {
    /* width: 30%; */
    height: 30px;
    border-radius: 15px;

}


.file,
.pfwfile,
.aifile,.tiezhifile,
#setpfw {
    display: none;
}

.key {
    background: url("../res/img/tm.png") repeat;
    background-size: 10px;
    width: 48px;
    height: 48px;
    border: 1px solid #999;
    padding: 5px;
    border-radius: 10px;
}

.aj,
.font,
.skincolor,
.skinname,
.selectlayout,
.selectsound,
.selectanim,
.selectwidget,
.jiami,
.sizeratio,
.skinalpha,
.daxiaoxie,
.selectxiaolan,.selecttiezhi {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f2f2f2;
    border-radius: 20px;
}


#skinscolors {
    position: absolute;
    display: flex;
    gap: 10px;
    right: 50px;
    margin-top: -60px;
    background-color: #fff;
    padding: 5px;
    border-radius: 10px;
}

#skinscolors div {
    border-radius: 20px;
    /* height: 30px; */
    /* width: 30px; */
    font-size: 14px;
    line-height: 14px;
    padding: 10px;
    background-color: #f2f2f2;

}





.desc {
    font-size: 12px;
}

.footer {
    margin-bottom: 100px;
    margin-top: 20px;
}

.links {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 20px;
}

.links a {
    text-decoration: none;
}

#kggztangchuang {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #00000080;
    top:0;
}

#kggzdiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;

}

#confirmpkggz {
    width: 200px;
    font-size: 16px;
    padding: 10px;
    border-radius: 50px;
    margin-top: 10px;
}

#shuming {
    font-size: 22px;
    width: 200px;
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    word-break: keep-all;
    overflow: hidden;
}

#inputshuming {
    margin-top: 10px;
    height: 30px;
    padding: 5px;
    width: 200px;
    border-radius: 30px;
    border: 1px solid #999;
    box-sizing: border-box;
}

#tanchuang {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #00000080;
    top:0px;
    z-index: 9999;
}


#point9 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;

}

.point9key {
    background: url("../res/img/tm.png") repeat;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    text-align: center;
    border: 0px solid;
    /* border-image-source: url(""); */
    border-image-slice: 32 32 32 32 fill;
    border-image-width: 32px 32px 32px 32px;
    border-image-repeat: stretch;
}

.scalenumber {
    background-color: #fff;
    line-height: 2;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
}

#confirmp9 {
    width: 200px;
    font-size: 16px;
    padding: 10px;
    border-radius: 50px;
    margin-top:5px;
}

 

.dragX {
    position: absolute;
    background: #08ffff10;
    padding: 0;
    width: 10px;
    height: 300px;
    cursor: move;
    border-left: solid 1px #08ffff;

}

.dragXX {
    position: absolute;
    background: #08ffff10;
    padding: 0;
    width: 10px;
    height: 300px;
    cursor: move;
    margin-left: 290px;
    border-left: solid 1px #08ffff;

}

.dragY {
    position: absolute;
    background: #ff00ff10;
    border-top: solid 1px #ff00ff;
    padding: 0;
    width: 300px;
    height: 10px;
    cursor: move;
}

.dragYY {
    position: absolute;
    background: #ff00ff10;
    padding: 0;
    width: 300px;
    height: 10px;
    cursor: move;
    margin-top: 290px;
    border-top: solid 1px #ff00ff;
}



.dialog {
    text-align: justify;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 999;
    background: rgba(0, 0, 0, 0.8);
    overflow: scroll;
    padding: 20% 20pt;
    box-sizing: border-box;
    font-size: 13pt;
    color: #fff;
    line-height: 1.5;
    top:0;

}

.dialog img {
    width: 90%;
    margin-top: 1pt;
    border-radius: 10pt;
}

.dialog .close {
    font-size: 12pt;
    width: 50pt;
    height: 50pt;
    line-height: 50pt;
    border-radius: 50pt;
    background: #cbf3ff;
    color: #000;
    position: fixed;
    right: 10pt;
    bottom: 10%;
    z-index: 9999;
    text-align: center;
}

#keyboard {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 100%;
    box-sizing: border-box;
    font-size: 20px;
    gap: 5px;
    padding: 6px;
    height: 100%;
    z-index: 999;
    border-radius:10px;
    box-shadow: #00000030 0px 10px 10px 0px;
}



#keyboard .flex {
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

#keyboard .icon,
#keyboard .btnkey,
#keyboard .func {
    display: flex;
    justify-content: center;
    align-items: center;
}

#keyboard .xiaolan {
    height: 8.3%;
}

#keyboard .xiaolan img {
    height: 100%;
    float: right;
}

#keyboard .cand {
    height: 14.5%;
    margin-left: -6px;
    margin-right: -6px;
}

#keyboard .icon {
    width: 17%;
    height: 100%;
}

#keyboard .icon img,
#keyboard .func img,
#keyboard .btnkey img {
    max-width: 100%;
    max-height: 100%;
}

#keyboard .space img {
    max-height: 70%;
}

#keyboard .btnkey {
    height: 100%;
    overflow: hidden;
}

#keyboard .func {
    height: 100%;
}


#keyboard .h1 .btnkey {
    width: 10%;
    height: 100%;
}

#keyboard .h2 {
    width: 95%;
}


#keyboard .h2 .btnkey {
    width: 8.5%;
}

#keyboard .h3 .btnkey {
    width: 8.5%;
}

#keyboard .h4 .btnkey {
    width: 8.5%;
}

#keyboard .h4 .space {
    width: 27%;
}

#keyboard .h3 .func {
    width: 13%;
}

#keyboard .h2 #a {
    margin-left: 5%;
}


#keyboard .h4 .func {
    width: 13%;
}

#keyboard .h4 .sign,
#keyboard .h4 .zhen {
    width: 11%;
}

#keyboard .h1,
#keyboard .h2,
#keyboard .h3,
#keyboard .h4 {
    height: 18%;
}

#cropper{
    position: fixed;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0;
    background-color: #00000080;
    z-index: 9999999;
}


/* 横屏时应用的样式 */
@media screen and (orientation: landscape) {
    #main {
        margin: 10px auto;
        width: 40%;
    }

    #skinpreview {
        width: 38%; 
    }

    #closecoloriframe{
        position: relative;
    margin-top: 0px;
    float: right;
}

    }
}