/* 全屏模式下，隐藏页面滚动条 */
body.fullscreen-mode {
    overflow: hidden;
}

.jstb_fullscreen {
    background-image: url(../images/arrow_out.png);
    background-size: 13px 13px;
}

/* 编辑器容器全屏化 */
.jstEditor.fullscreen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 10000;
    padding: 0; /* 取消原先的 padding，交给 toolbar 控制 */
}

/* 工具栏固定在顶部 */
div.jstTabs.tabs.fullscreen button.jstb_fullscreen {
    background-image: url(../images/cancel.png);
    background-size: 16px 16px;
}

div.jstTabs.tabs.fullscreen {
/* .jstElements.fullscreen { */
    width: 100%;
    position: fixed!important;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;                 /* 工具栏高度 */
    z-index: 10001;
    opacity: 1;                   /* 始终显示 */
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 5px 10px;
}


/* 全屏时编辑区 textarea */
.jstEditor.fullscreen textarea {
    position: absolute;
    top: 40px;                     /* 下移给 toolbar 留空间 */
    left: 0;
    right: 0;
    bottom: 0;
    height: auto !important;
    width: 100% !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    padding: 20px !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    resize: none !important;
}

/* 响应式设计（移动端） */
@media screen and (max-width: 768px) {
    .jstEditor.fullscreen textarea {
        padding: 10px !important;
        font-size: 14px !important;
    }
    .jstElements.fullscreen {
        height: 36px;
        padding: 4px 8px;
    }
}

