@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url(../Fonts/harmonyos_sans_sc_regular.ttf) format('truetype');
}

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

/* .satu{
    position: relative;
} */

#jw_aero{
    /* background: rgba(171,205,249,0.5); */
    background: linear-gradient(0deg, rgba(139,173,217,0.5) 0%, rgba(75,109,153,0.5) 49%, rgba(107,141,185,0.5) 51%, rgba(171,205,249,0.5) 100%) padding-box;
    /* background-clip: padding-box; */
    /* background: rgba(255,255,255,0.25); */
    /* border: 2px solid black; */
    /* 预览随视口变化；导出时会强制固定宽度，避免手机 25% 把对话框压扁 */
    width: 25%;
    min-width: 300px;
    max-width: calc(100vw - 16px);
    /* margin-left: 25%; */
    margin-top: 5%;
    /* 固定 px 边框/圆角，避免 em+字体回退导致本地/远端导出窗框不一致 */
    box-sizing: border-box;
    border: 3px solid rgba(171,205,249,0.25);
    border-radius: 8px;
    /*父元素position: relative时，保持水平垂直居中*/
    position: relative;
    left: 50%;
    transform: translateX(-50%); /* 向左回退自身宽度的50% */
    /* Simulate an outset effect using shadows */
    /* box-shadow:
        0 0.15em 0.15em rgba(0,0,0,0.3),
        0 -0.15em 0.15em rgba(255,255,255,0.9); */
}

#jw_aero>div{
    margin: 0 5px 5px;
}

#title{
    /* background: #0000cc; */
    color: black;
    /* 固定 px；高度需盖住 22px 圆形钮，禁止裁切下沿 */
    font-size: 13px;
    padding: 4px 3px;
    height: 30px;
    line-height: 22px;
    box-sizing: border-box;
    overflow: visible;
}

#top-toolbar{
    background: linear-gradient(0deg, rgba(245,245,245,1) 0%, rgba(225,225,225,1) 49%, rgba(235,235,235,1) 51%,  rgba(255,255,255,1) 100%);
    height: 1.4em;
    line-height: 1.4em;
    text-align: left;
    overflow: visible;
    /* white-space: nowrap; 防止换行 */
    /* width: 100%; 确保宽度为100%; */
    /* font-size: 0; */
    /* margin-top: 0.3em; */
    /* border-radius: 0.25em; */
    /* border-radius: 0.25em; */
}

#imgs{
    text-align: center;
    padding: 1.5%;
    background-color: rgba(255,255,255,0.75);
    /* margin-bottom: 0.3em; */
    /* border-radius: 0.25em; */
}


.btn{
    margin: 0 2px;
}

.btn div{
    margin: 0 2px 0;
    float:right;
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #cdcdcd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1;
    /* 字形视觉中心偏下：略垫底把 -/+/× 抬到圆点正中 */
    padding: 0 0 2px 0;
    color: white;
    border: 3px solid white;
}

#box{
    /* background: white; */
    color:black;
    padding: 0 3px 0;
}

#chooseImage {
    display: none;
}

/* .file-input-trigger {
    padding: 2px d5px;
    border-radius: 1em;
    border: 0.2em solid white;
    background: linear-gradient(0deg, rgba(167,217,245,1) 0%, rgba(188,229,252,1) 49%, rgba(217,240,252,1) 49%, rgba(234,246,253,1) 100%);
    font-size: 0.8em;
    outline: none;
    color: #000;
    cursor: pointer;
} */


button,
.file-input-trigger,
#box button,
#box .new_btn,
.new_btn {
    /* 去掉系统原生按钮外观，否则远端 html2canvas 常丢掉自定义白边/圆角渐变 */
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* 水平对称；底边多垫一点把字形/emoji 光学抬到正中 */
    padding: 0 10px 3px;
    min-height: 24px;
    border-radius: 8px;
    border: 3px solid white;
    background: linear-gradient(0deg, rgba(245,245,245,1) 0%, rgba(225,225,225,1) 49%, rgba(235,235,235,1) 51%,  rgba(255,255,255,1) 100%);
    font-family: 'Segoe UI', 'HarmonyOS Sans SC', sans-serif;
    font-size: 13px;
    line-height: 1;
    outline: none;
    color: #000;
    cursor: pointer;
}

#top-toolbar span{
    padding: 0;
    margin: 0;
    font-size: 0.8em;
    display: inline;
    /* border: 1px solid red; 显示边界  */
    /* background-color: yellow; /* 显示区域 */
    /* margin-left: 0 !important;*/
    margin-right: 0 !important;
    padding: 0 !important;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

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

/* HEISEI-VHS：跟随 Aero 控件风格，默认折叠 */
.vhs-panel {
    margin: 0.5em auto;
    max-width: 28em;
    text-align: left;
    font-size: 0.8em;
    font-family: Segoe UI, 'HarmonyOS Sans SC';
}
.vhs-enable-row {
    text-align: center;
    margin-bottom: 0.4em;
}
.vhs-panel-body {
    display: none;
    border: 0.15em solid white;
    border-radius: 0.5em;
    background: linear-gradient(0deg, rgba(245,245,245,1) 0%, rgba(225,225,225,1) 49%, rgba(235,235,235,1) 51%, rgba(255,255,255,1) 100%);
    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%;
}

/* .file-input-trigger {
    padding: 2px 5px;
    border-radius: 1em;
    border: 0.2em solid white;
    background: linear-gradient(0deg, rgba(167,217,245,1) 0%, rgba(188,229,252,1) 49%, rgba(217,240,252,1) 49%, rgba(234,246,253,1)100%);
} */