.write .site-header-in{
    position: relative;
}
.write .site .site-header-in{
    transform:none
}
.write .header{
    z-index: initial;
}
.write-thumb{
    min-height: 300px;
    position: relative;
}
/* #trix-toolbar{
   position: relative;
   z-index: 999; 
} */
.write-thumb label{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color:rgba(26,26,26,.2);
    position: absolute;
    width:100%;
    height:100%;
    left:0;
    top:0;
    cursor: pointer;
    flex-flow: column;
}
#b2-editor-box .tox button.tox-tbtn:hover::before, .tox-split-button:hover::before{
    z-index: 999;
}
.write-thumb label p{
    position: absolute;
    opacity: 0;
    visibility: hidden;
    margin-top:0px;
    transition: all .2s;
    font-size: 14px;
}
.write-thumb label:hover p{
    opacity: 1;
    visibility: visible;
    margin-top: 58px;
    transition: all .2s;
}
.write-thumb img{
    width:100%;
    display: block;
}
.write-textarea{
    border:0;
    font-size: 27px;
    padding: 8px 10px;
    resize:none;
    display: block;
    min-height:30px;
    overflow:hidden
}
.trix-button-row{
    border-bottom:1px solid #ebebeb
}
.write-title{
    color:initial
}
.write-bottom{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding:20px;
    margin-top:20px;
    border-top:1px solid #f3f3f3
}
.write-select-row-top{
    border-top:1px solid #ebebeb;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}
.cat-picked span{
    font-size: 12px;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: inset 0 0 9px rgba(204,204,204,.39);
    margin-right:5px;
}
.cat-picked span:hover {
    box-shadow: inset 0 0 9px rgba(204,204,204,.69);
}
.write-select-row-top select{
    border: 1px solid #ebebeb;
    border-radius: 3px;
    color:#555;
    font-size: 13px;
}
.cat-picked{
    flex-grow: 1;
    padding:10px
}
.write-select-row-top textarea{
    flex-grow: 1;
    border-bottom:1px solid #efefef
}
.write-select-row-top .write-select-title{
    border-right: 1px solid #ebebeb;
    width: 54px;
    font-size: 12px;
    color:#AAAEB3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right:10px
}
.write-select-row-top .write-select-box{
    padding:10px
}
.write-select-row-top .title-label{
    padding:18px 10px
}
.write-page .box{
    border:0;
    position: relative;
}
.trix-dialog--file{
    display: flex;
}
.trix-dialog--file > .dialogs-row{
    width:50%;
    display: flex;
    align-items: center;
    margin-bottom:10px
}
.trix-dialog--file > .dialogs-row label{
    width:50px;
    text-align: right;
    color:#AAAEB3
}
.trix-dialog--file > .dialogs-row input{
    flex-grow: 1;
}
.trix-dialog--file .dialogs-row:nth-child(3),.trix-dialog--file .dialogs-row:nth-child(1){
    padding-right:20px
}
.trix-dialog--file .dialogs-row:nth-child(2),.trix-dialog--file .dialogs-row:nth-child(4){
    padding-left:20px
}
.dialogs-button{
    text-align:right;
    width:100%
}
.trix-dialog--video .dialogs-row{
    width:100%;
    display: flex;
    align-items: center;
}
trix-toolbar .trix-dialog--video .trix-dialog__link-fields{
    flex-flow: column;
}
.modal.trix-active{
    display: flex!important;
    align-items: center;
    opacity: 1!important;
    visibility: visible!important;
	transform: perspective(1px) scale(1.0);
	transition: visibility 0s linear 0s, opacity 0.15s 0s, transform 0.15s;
}
.trix-dialog__link-fields{
    background-color: white;
    width: 22rem;
    padding: 20px;
    margin: 0 auto;
    position: relative;
    border-radius: 6px;
}
.trix-dialog-title{
    margin-top: 40px;
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: center;
    margin-bottom:24px
}
.trix-dialog-input-box + .trix-dialog-input-box{
    margin-top:20px
}
.trix-dialog-input{
    display: flex;
    align-items: center;
    border:1px solid #ebebeb;
    border-radius: 3px;
}
.trix-dialog-input label{
    font-size: 12px;
    color:#AAAEB3;
    margin-right:10px
}
.dialog-desc{
    font-size: 12px!important;
    margin-top:4px;
    text-align: right;
    color:#ccc;
    white-space:normal; 
    margin-bottom:0!important
}
.editor-images-list{
    display: flex;
    flex-flow: wrap;
    overflow-y: auto;
    max-height: 366px;
}
.editor-images-list li{
    width:25%;
    border:1px solid #fff;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
}
.image-upload-box{
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ebebeb;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
}
.image-table{
    display: flex;
    margin-bottom: 30px;
    margin-top: -10px;
    justify-content: center;
}
.image-table > div{
    margin-left:10px;
    font-size: 12px;
    padding:5px 10px;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    position: relative;
}
.image-table > div.picked::before{
    content:'';
    width:5px;
    height:5px;
    background: red;
    position: absolute;
    top:28px;
    border-radius: 100%;
}
.image-upload-box svg{
    fill:#ebebeb
}
.image-upload-box > div{
    margin:30px 0
}
.image-upload-box:hover{
    border-color:#8590a6
}
.image-upload-box:hover svg{
    fill:#8590a6
}
.image-nav{
    padding:10px 20px;
    display: flex;
    justify-content: space-between;
}
.editor-file-none{
    padding:40px 0;
    text-align: center;
    font-size: 13px;
    color:#AAAEB3
}
.editor-images-list li.picked::after{
    content: '✓';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #f44336;
    color: #fff;
    top: 5px;
    right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    border: 1px solid #fff;
}
.editor-image{
    height:0;
    padding-top:100%;
    position: relative;
    background-color: #f5f5f5;
}
.editor-image img{
    position: absolute;
    height:100%;
    width:100%;
    top:0;
    left:0
}
.editor-image span{
    position: absolute;
    width:100%;
    height:100%;
    left:0;
    top:0;
    background-color: #ccc!important;
    box-sizing: border-box;
}
.write-reset-thumb{
    background: rgba(26,26,26,.75);
    border-radius: 4px 0 0 0;
    color:#fff;
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0 0 0 10px;
}
.write-reset-thumb .text{
    padding:10px;
    color:#fff;
    display: initial;
    position: initial;
    line-height: 1;
}
.thumb-upload-loading{
    position: absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
    background: rgba(0, 0, 0, 0.59);
    display: flex;
    justify-content: center;
    align-items: center;
}
.thumb-upload-loading .b2-loading:after{
    background-size: 31px;
}

.write-select-row-title{
    display: flex;
    flex-flow: nowrap;
    align-items: center;
    border:1px dashed #ebebeb;
    margin: 0 20px;
    background: #fafafa;
    padding:10px;
    justify-content: space-between;
    font-size: 14px;
    color:#AAAEB3;
    margin-bottom:-1px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.write-role-settings{
    margin:0 20px;
    border:1px dashed #ebebeb;
    background: #fff;
    padding:10px;
    margin-bottom:-1px
}
.write-role-settings p{
    font-size: 12px;
    color:#AAAEB3;
    margin-bottom:10px
}
.write-role-select select{
    margin-bottom:10px;
    border: 1px solid #eee;
    border-radius: 3px;
}
.write-role-settings-right p{
    margin-bottom:3px
}
.write-normal-lv{
    margin-bottom:10px
}
.write-normal-lv label{
    margin-right:10px;
    cursor: pointer;
    font-size: 13px;
}
.write-tags{
    display: flex;
    flex-flow: wrap;
    align-items: center;
}
.write-tags .b2-tag2{
    margin-right:10px;
    font-size: 22px;
    line-height: 1;
}
.write-tags input{
    border:0;
    flex-grow: 1;
    border-bottom: 1px solid #f3f3f3;
}
.write-tags .cat-picked{
    padding:0;
    flex-grow: 0;
}
.write-textarea-box textarea{
    width: 100%;
    padding: 10px;
    display:block;
    min-height: 80px;
    resize: none;
    background: #fafafa;
}
.write-custom input[type="text"]{
    width:100%;
    padding:10px;
    background: #fafafa;
}
.write-custom label{
    margin-right:10px;
    font-size: 13px;
}
.write-custom textarea{
    width:100%;
    min-height: 100px;
    padding:10px;
    background: #fafafa;
}
trix-toolbar .trix-button-row{
    background: #fff;
}
.write-loading{
    display: flex;
    min-height: 200px;
    align-items: center;
    justify-content: center;
    flex-flow: column;
}
.allow-write{
    position: absolute;
    background: #ffffffe8;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    color: red;
    padding-top: 200px;
}
/*tinymce编辑器*/
.tox-toolbar__group:last-child{
    float: right; 
    flex: 1;
    justify-content: flex-end;
}
.tox-toolbar__group:last-child::after{
    display: none;
}
.tox .tox-toolbar, .tox .tox-toolbar__overflow, .tox .tox-toolbar__primary{
    border-bottom: 1px solid #efefef;
}
.tox-tinymce{
    border:none!important
}
.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){
    border:none!important
}
.tox:not([dir=rtl]) .tox-toolbar__group:first-of-type::before{
    display: none;
}
.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type):before{
    height: 21px;
    width: 1px;
    background-color: #efefef;
    content: '';
    margin-right: 7px;
}
.tox .tox-tbtn{
    color:#76839b!important
}
.tox .tox-tbtn:hover{
    background: #f6f6f6!important;
    border:1px solid #ebebeb!important;
    color:#76839b!important
}
.tox .tox-tbtn--enabled, .tox .tox-tbtn--enabled:hover{
    background:none!important
}
#b2-editor-box .tox .tox-tbtn svg{
    fill: #8590a6;
}
#b2-editor-box .tox .tox-tbtn{
    height:30px;
    width:30px;
    position: relative;
    overflow: inherit
}
#b2-editor-box .tox-split-button__chevron{
    width:16px!important
}
#mytextarea{
    width:100%;
    min-height: 400px;
    border:0;
    padding:20px;
    font-size: 0;
}
#b2-editor-box .tox button.tox-tbtn:hover::before,.tox-split-button:hover::before{
    content: attr(aria-label);
    position: absolute;
    top: 40px;
    background: #484848;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
    white-space: nowrap;
}
#b2-editor-box .tox-tbtn--active::before{
    display: none;
}
#b2-editor-box .tox .tox-pop__dialog .tox-tbtn:hover{
    border:0!important
}
#b2-editor-box .tox button.tox-tbtn:hover::after,.tox-split-button:hover::after{
    position: absolute;
    top:36px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent #484848 transparent;
    content:''
}
#b2-editor-box .tox .tox-split-button{
    margin-right:5px
}
.tox-tinymce{
    overflow: inherit!important;
}
.trix-button-group{
    display: flex;
    justify-content: flex-end;
    margin-top:30px
}
.trix-button-group button{
    margin-left:10px
}
.trix-dialog-input textarea{
    padding:10px;
    border:0;
    width:100%;
    min-height:200px
}
.tox .tox-dialog-wrap__backdrop{
    background-color:rgba(0,0,0,.5)!important
}
.tox .tox-dialog{
    border:0!important;
    border-radius: 0!important;
}
.tox .tox-form__group{
    margin-bottom:10px!important
}
#b2-editor-box .tox .tox-tbtn--select{
    width:auto
}
#b2-editor-box .tox .tox-tbtn:hover{
    border:0!important
}
#b2-editor-box .tox .tox-split-button:hover{
    background-color: #fafafa;
    box-shadow: none!important;
}
#b2-editor-box .tox .tox-tbtn svg{
    fill: #8590a6;
}
.trix-dialog-input input{
    border:0;
    padding:10px
}
.trix-dialog-input{
    padding:0 10px
}
.trix-dialog-input.input-textarea{
    padding:0
}
.trix-dialog-video-box ul{
    display: flex;
    flex-flow: wrap;
}
.trix-dialog-video-box li{
    width:50%
}
.trix-dialog-video-box .editor-image{
    padding-top:60%;
    position: relative;
}
.trix-dialog-video-box video{
    position: absolute;
    left:0;
    top:0;
    width:100%;
    height:100%;
    object-fit: cover;
}
#b2-editor-box .tox.tox-tinymce--toolbar-sticky-on .tox-editor-header{
    background-color: #fff;
}
#b2-editor-box .tox .tox-dialog--width-lg{
    height:auto!important
}
#b2-editor-box .tox .tox-toolbar{
    background:#f9f9f9;
    position: relative;
    z-index: 3;
}
#b2-editor-box .tox .tox-toolbar + .tox-toolbar{
    background:#fcfcfc;
    position: relative;
    z-index: 2;
}
.tox-form__group select{
    background: none;
}
.write-name {
    display: flex;
    border-bottom:1px solid #ebebeb;
    align-items: center;
    padding-left:20px
}
.write-name-item{
    border: 1px solid #ffffff;
    border-bottom:0;
    font-size: 12px;
    font-weight: bold;
    padding:10px;
    height:34px;
    border-radius: 5px 5px 0 0;
    background: #fff;
    position: relative;
    margin-right:10px;
    cursor: pointer;
    max-width: 120px;
    display: flex;
}
.write-name-item span{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
}
.write-name-item.picked{
    border: 1px solid #ebebeb;
    border-bottom:0;
    margin-bottom:-2px;
}
.write-name .b2-add-circle-line1{
    font-size: 22px;
}
.write-icon-add{
    padding:0 10px;
    cursor: pointer;
    opacity: .8;
    font-weight: normal;
}
.write-icon-add:hover{
    background-color: #f5f6f7;
    border-radius: 5px;
}
.write-name-item b{
    background-color: #efefef;
    border-radius: 100%;
    width:16px;
    height:16px;
    text-align: center;
    line-height: 16px;
    margin-left:5px
}
.write-name-item b i{
    font-size: 14px;
}
.wdownload-thumb button{
    background:none;
    height:50px;
    width:50px;
    color:inherit;
    padding:0;
    text-align: center;
    line-height: 50px;
    border:1px dashed #484848
}
.wdownload-setting-box{
    margin-top:20px;
}
.wdownload-setting-box > div + div{
    margin-top:10px
}
.wdownload-thumb img{
    height:50px;
    width:50px;
    border-radius: 5px;
    cursor: pointer;
}
.wdownload-roles{
    display: flex;
    gap: 10px;
    margin-top:10px
}
.dzy-content + .dzy-content{
    margin-top:10px
}
.write-custom .wdownload-roles input{
    width:100%;
    padding:6px
}
.write-custom .wdownload-roles button{
    background: #00000014;
    color: inherit;
    border: 0;
}
.wdownload-rights{
    min-height:40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 12px;
    gap: 10px;
    flex-wrap: wrap;
}
.wdownload-rights span{
    background: #e4f1e4;
    height:30px;
    padding:0 10px;
    line-height: 30px;
    border-radius: 5px;
    position: relative;
}
.wdownload-rights span .close{
    position: absolute;
    top:-5px;
    right:-5px;
    background-color: #000;
    border-radius: 100%;
    width: 15px;
    height: 15px;
    text-align: center;
    line-height: 15px;
    color:#fff;
    font-size: 11px;
    font-weight: normal;
    cursor: pointer;
}
.wdownload-rights b{
    font-weight: normal;
}
.wdownload-rights-desc{
    display: flex;
    align-items: center;
    justify-content: center;
    height:100%;
    font-size: 12px;
    opacity: .7;
    width:100%
}
.wdownload-setting-box > div{
    border-bottom: 1px solid #efefef;
    padding-bottom: 20px;
}
.dzy-header,.dzy-content{
    display: flex;
    gap:10px
}
.dzy-header input,.dzy-content input{
    padding:5px!important
}
.dzy-header{
    font-size: 12px;
    margin-bottom:10px
}
.dzy-platform{
    width:20%
}
.dzy-link{
    width:30%
}
.dzy-tq{
    width:20%
}
.dzy-jy{
    width:30%;
    display: flex;
    gap:10px
}
.dzy-jy button{
    padding:5px 10px;
    background: #00000014;
    color: inherit;
    border: 0;
}
.dzy-add{
    text-align: center;
    margin-top:10px
}
.dzy-add button{
    width:100%;
    background: #00000014;
    color: inherit;
    border: 0;
}
/*移动端样式*/
@media screen and (max-width:720px){
    .tox .b2-library-box>div{
        width:33.333333%
    }
    .tox .tox-toolbar--scrolling{
        flex-wrap: wrap!important;
    }
    .tox .tox-dialog--width-lg{
        height:auto!important
    }
    .tox .tox-dialog--width-md .tox-dialog__body-content{
        margin:-3px
    }
    .tox.tox-tinymce-aux .tox-toolbar__overflow{
        background-color: #fff!important;
    }
    #trix-toolbar{
        height:74px
    }
    .write-thumb{
        min-height: 160px;
    }
    .write-select-row-top .write-select-title{
        display: none;
    }
    .write-select-row-top select{
        max-width: 88px;
        font-size: 12px;
    }
    .cat-picked span{
        margin-bottom:5px
    }
    .cat-picked{
        padding:10px 10px 5px
    }
    .trix-button-row > span{
        border-bottom:1px solid #ebebeb;
        flex-grow: 1;
        margin-bottom:-1px
    }

    .write-select-row-title{
        margin:0 10px
    }
    .write-role-settings{
        margin:0 10px
    }
    .write-bottom{
        padding:10px;
        justify-content: flex-end;
    }
}