@font-face {
    font-family: 'Unifont';
    src: url(../Fonts/unifont.ttf) format('truetype');
}

.satu, .dua{
    width: 100%;
    text-align: center;
    position: relative;
    float: left;
}

#jw_classic{
    background: #cdcdcd;
    /* border: 2px solid black; */
    /* 预览随视口变化；导出时会强制固定宽度，避免手机 25% 把对话框压扁 */
    width: 25%;
    min-width: 300px;
    max-width: calc(100vw - 16px);
    /* margin-left: 25%; */
    margin-top: 5%;
    /* 外框浮雕：固定 px 分边颜色，导出不依赖 em/outset/shadow */
    box-sizing: border-box;
    border-style: solid;
    border-width: 2px;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-right-color: #000000;
    border-bottom-color: #000000;
    box-shadow: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%); /* 向左回退自身宽度的50% */
}

#jw_classic>div{
    margin: 0.2em;
}

#title{
    background: #0000cc;
    color: white;
    /* 固定 px，避免字体未加载时标题栏/关闭钮尺寸漂移 */
    font-size: 12px;
    padding: 3px 3px 3px 4px;
    height: 22px;
    line-height: 16px;
    box-sizing: border-box;
    overflow: hidden;
}

.btn{
    float:right;
    margin: 1px 1px 0 0;
}

/* 标题栏右侧固定关闭钮：高对比分边框；× 在钮面内光学居中 */
.btn div{
    box-sizing: border-box;
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    color: black;
    border-style: solid;
    border-width: 2px;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-right-color: #000000;
    border-bottom-color: #000000;
    box-shadow: none;
    padding: 0 0 1px 0;
}

#box{
    /* background: white; */
    color:black;
    padding: 0.2em 0.2em 0.3em;
}

#chooseImage {
    display: none;
}

button,
.file-input-trigger {
    /* 去掉系统原生按钮外观，否则远端 html2canvas 常丢掉自定义浮雕边框 */
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Unifont, DotGothic16;
    font-size: 13px;
    line-height: 1;
    padding: 3px 6px 4px;
    border-style: solid;
    border-width: 2px;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-right-color: #808080;
    border-bottom-color: #808080;
    box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #404040;
    background-color: #cdcdcd;
    outline: none;
    color: #000;
    cursor: pointer;
}

#buttonTable {
    position: relative;
    left: 50%;
    transform: translateX(-50%); /* 向左回退自身宽度的50%*/
}

/* HEISEI-VHS：跟随 Classic 控件风格，默认折叠 */
.vhs-panel {
    margin: 0.5em auto;
    max-width: 28em;
    text-align: left;
    font-size: 0.8em;
}
.vhs-enable-row {
    text-align: center;
    margin-bottom: 0.4em;
}
.vhs-panel-body {
    display: none;
    border-style: solid;
    border-width: 2px;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-right-color: #808080;
    border-bottom-color: #808080;
    background: #cdcdcd;
    padding: 0.5em 0.6em;
    max-height: 22em;
    overflow-y: auto;
    box-sizing: border-box;
}
.vhs-panel-on .vhs-panel-body {
    display: block;
}
.vhs-hint {
    font-size: 0.85em;
    margin-bottom: 0.4em;
    color: #333;
}
.vhs-ctrl-row {
    display: flex;
    align-items: center;
    gap: 0.35em;
    margin: 0.25em 0;
}
.vhs-ctrl-name {
    flex: 0 0 7.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vhs-ctrl-row input[type="range"] {
    flex: 1 1 auto;
    min-width: 0;
}
.vhs-ctrl-row input[type="number"] {
    width: 4em;
    box-sizing: border-box;
}
.vhs-tools {
    margin-top: 0.5em;
    text-align: center;
}
.vhs-tools button {
    margin: 0.15em;
}
.vhs-tools label {
    display: inline-block;
    margin-right: 0.6em;
}
.vhs-canvas {
    max-width: 100%;
}