.upload-result-wrapper , .result-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background-image: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin:0 auto 0;
    position: relative;
    z-index: 1;
}
.upload-result-wrapper  .upload-jgg-box{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    background-image: url("../xlr/img/gg-box.png");
    background-size: 100% 100%;
}
.upload-result-wrapper  .upload-jgg-box{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    overflow: hidden;
    background-image: url("../xlr/img/gg-box.png");
}
.upload-result-wrapper .dynamic-grid-box{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
}
.upload-result-wrapper .dynamic-grid-box  .grid-container {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(7, 1fr);
    /* 红色边框 */
    border: 1px solid red;
}
.grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    /*border: 1px solid red; !* 红色格子线 *!*/
}
/* 绿色竖线列 */
.grid-item.col-line {
    border-right: 1px solid green;
}
.one-row{
    border-bottom: 1px solid red;
}
/* 绿色横线行 */
.grid-item.row-line {
    border-top: 1px solid green;
    border-bottom: 1px solid red;
}
/* 数字红色文字 */
.grid-item.num {
    color: red;
}
.grid-item.one-column , .four-column{
    border-right: 1px solid red;
}
.grid-item.four-column , .grid-item.seven-column{
    border-left: 1px solid red;
}
.grid-item.four-row{
    border-bottom: 1px solid red;
}
.upload-result-wrapper  .upload-jgg-box .upload-jgg-img{
    width: 100%;
    height: 100%;
}

.upload-result-wrapper .upload-result-img-box{
    width: 100%;
    height:100%;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
}
.upload-result-wrapper .upload-result-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.upload-box-bottom{
    height: 58px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.upload-box-bottom .compass-box{
    width: 55px;
    height: 58px;
    background-image: url("../xlr/img/compass.png");
    background-size: 100% 100%;
}
.upload-box-bottom .upload-btn{
    width: 80px;
    height: 32px;
    background: #7F4622;
    border-radius: 5px;
    font-size: 12px;
    color: #fff;
    text-align: center;
    line-height: 32px;
}
.save-button{
    width: 280px;
    height: 50px;
    background: url("../xlr/img/save-btn.png");
    background-size: 280px 50px;
    margin:  0 auto;
}
.button{
    width: 280px;
    height: 50px;
    background-image: url("../xlr/img/button.png");
    background-size: 280px 50px;
    margin: 5px auto 0;
    font-size: 16px;
    line-height: 18px;
    color: #FAE8CA;
    letter-spacing: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.save-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.save-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.save-image-content {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 12px 12px 0 0;
    padding: 20px 0;
    z-index: 1;
}

.save-image-item {
    text-align: center;
    padding: 15px;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.save-image-item:last-child {
    border-bottom: none;
    color: #999;
}

.custom-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    max-width: 80%;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    pointer-events: none;
}
.reset-vertical-scale-button{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0 0;
}
.custom-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.reset-create-gg-button{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0 0;
}