/**
 * Copyright (C) 2017 Wasabeef
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@charset "UTF-8";
body, ul, ol, li, p, h1, h2, h3, h4, h5, h6, form, fieldset, table, td, img, div {
    margin: 0;
    padding: 0;
    border: 0;
}

ul, ol {
    list-style-type: none;
}

select, input, img, select {
    vertical-align: middle;
}

a {
    text-decoration: none;
}

* {
    font-family: "PingFang SC", Helvetica, Arial, "Hiragino Sans GB", "Microsoft Yahei", STHeiTi, sans-serif;
    cursor: pointer;
}

* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

* {
    max-width: 100%;
}

html {
    height: 100%;
}

body {
    display: table;
    table-layout: fixed;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

#mytextarea {
    min-height: 100%;
    border: none;
    padding-bottom: 100px;
    color: #3e3e3e;
    line-height: 1.6;
}

.mce-edit-focus {
    outline: none !important;
}

.lazy {
    background-color: #F7F7F7;
    background-image: url('../images/loading_ch.png');
    background-size: 76px auto;
    background-repeat: no-repeat;
    background-position: center;
}

/*头部*/
.up_line {
    overflow: hidden;
    margin-bottom: 30px;
}

.up_line input {
    height: 55px;
    line-height: 55px;
    font-size: 28px;
    color: #333333;
    outline: none;
    border: 1px solid rgba(229, 229, 229, 1);
    border-left: none;
    border-right: none;
    width: 100%;
}

.up_line ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
}

.up_line ul::-webkit-scrollbar {
    height: 0;
    width: 0;
    color: transparent;
}

.up_line ul li.active {
    background: rgba(75, 141, 255, 0.05);
    border: 1px solid rgba(75, 141, 255, 1);
    color: #4B8DFF;
}

.up_line ul li {
    white-space: nowrap;
    padding: 0px 9px;
    margin: 19px 0;
    height: 27px;
    line-height: 27px;
    border: 1px solid #CCCCCC;
    border-radius: 38px;
    font-family: PingFang SC;
    font-weight: 400;
    color: rgba(34, 34, 34, 1);
    margin-right: 10px;
    font-size: 12px;
}

.up_line input::-webkit-input-placeholder {
    color: #BBBBBB;
}

.up_line input::-moz-placeholder {
    color: #BBBBBB;
}

.up_line input:-ms-input-placeholder {
    color: #BBBBBB;
}

/*end*/
#editor {
    outline: 0px solid transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 100%;
    padding-bottom: 100px !important;
}

#editor[placeholder]:empty:not(:focus):before {
    content: attr(placeholder);
    opacity: .5;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.closeImg {
    text-align: center;
    top: 15px;
    right: 10px;
    position: absolute;
    z-index: 999;
    width: 31px;
    height: 31px;
    background: url("../images/delete.png") no-repeat center;
    background-size: 21px;
}

.qf_image_container {
    margin: 15px auto;
    font-size: 0;
    position: relative;
    display: inline-block;
    width: 100%;
}

#tinymce {
    padding-top: 40px;
}

.qf_image_container.mb {
    margin-bottom: 41px;
}


.qf_img_operate span.addnote {
    width: 60px;
}

.qf_image.borderline {
    border: none !important;
}

.qf_image.borderline > img, .qf_image.big.borderline > img {
    border: 2px solid #4B8DFF !important;
    box-sizing: border-box;
}

.mce-content-body [data-mce-selected=inline-boundary] {
    background-color: transparent;
}

.borderline {
    border: 2px solid #4B8DFF !important;
    width: calc(100% - 4px);
}


.qf_img_operate {
    position: absolute;
    top: -47px;
    left: 50%;
    margin-left: -100px;
    background: rgba(0, 0, 0, 0.72);
    border-radius: 4px;
    width: 200px;
    font-size: 0;
    text-align: center;
    z-index: 9999;
    display: flex;
    height: 38px;
    align-items: center;
}

.qf_img_operate.operateB {
    width: 132px;
    bottom: -47px;
}

.qf_img_operate.operateBottom {
    bottom: -47px;
    top: auto;
}

.qf_img_operate.operateLeft:before {
    left: 20px;
}

.qf_img_operate.operateRight:before {
    left: auto;
    right: 20px;
}

.qf_img_operate.operateBottom:before {
    top: -10px;
    border-bottom: 10px solid rgba(0, 0, 0, 0.72);
    border-top: 0;
}

.qf_img_operate:before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    margin-left: -5px;
    transform: translateX(-20%);
    width: 0;
    height: 0;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-top: 10px solid rgba(0, 0, 0, 0.72);
}

.mce-preview-object[data-mce-selected="2"] .mce-shim {
    display: block !important;
}

.qf_img_operate .tabsize {
    vertical-align: middle;
    width: 46px;
    height: 38px;
    background: url("../images/preview_icon1.png") center center no-repeat;
    background-size: 16px 16px;
}

.qf_img_operate .tabsize:first-child {
    background: url("../images/preview_icon1.png") center center no-repeat;
    background-size: 16px 16px;
}

.qf_img_operate .tabsize.con:first-child {
    background: url("../images/preview_icon1_con.png") center center no-repeat;
    background-size: 16px 16px;
}

.qf_img_operate .tabsize:nth-child(2) {
    background: url("../images/preview_icon2.png") center center no-repeat;
    background-size: 16px 16px;
}

.qf_img_operate .tabsize.con:nth-child(2) {
    background: url("../images/preview_icon2_con.png") center center no-repeat;
    background-size: 16px 16px;
}

.qf_img_operate .editLink {
    margin-left: 17px;
}

.qf_img_operate span, .operate .editLink {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 38px;
    height: 38px;
    vertical-align: middle;
    width: 50px;
}

.qf_w50 .closeImg {
    right: calc(25% + 8px);
    top: 10px;
}

.qf_w50 {
    min-height: 0 !important;
}

.qf_w100 .closeImg {
    right: 10px;
}

.qf_img_operate span:nth-child(3) {
    position: relative;
}

.qf_img_operate span:nth-child(4) {
    position: relative;
}

.qf_img_operate span:nth-child(5) {
    position: relative;
}

.qf_img_operate span:nth-child(3):before {
    content: '';
    position: absolute;
    width: 1px;
    background: #fff;
    font-size: 0;
    height: 20px;
    top: 9px;
    left: 0;
}

.qf_img_operate span:nth-child(4):before {
    content: '';
    position: absolute;
    width: 1px;
    background: #fff;
    font-size: 0;
    height: 20px;
    top: 9px;
    left: 0;
}

.qf_img_operate span:nth-child(5):before {
    content: '';
    position: absolute;
    width: 1px;
    background: #fff;
    font-size: 0;
    height: 20px;
    top: 9px;
    left: 0;
}

.qf_img_operate span:last-child {
    position: relative;
}

.qf_img_operate span:last-child:before {
    content: '';
    position: absolute;
    width: 1px;
    background: #fff;
    font-size: 0;
    height: 20px;
    top: 9px;
    left: 0;
}

.notes {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: auto;
    z-index: 9;
}

.notes .bg {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.notes .notes_modal {
    width: 266px;
    padding-top: 17px;
    overflow: hidden;
    border-radius: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.notes .notes_modal .modal_bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 140%;
    height: 140%;

    z-index: -1;
}

.notes .notes_modal .modal_bg:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 140%;
    height: 120%;
    filter: blur(40px);
    background: rgba(255, 255, 255, 1);
    z-index: -1;
    margin: -10% -20%;
}

.notes .notes_modal:after {
    content: '';
}

.notes .notes_modal .title {
    text-align: center;
    color: #000000;
    font-size: 16px;
    font-weight: bold;
    line-height: 22px;
}

.notes .notes_modal .note {
    padding: 7px 6px 7px 7px;
    outline: none;
    width: 222px;
    margin: 17px auto 0 auto;
    display: block;
    border-radius: 7px;
    font-size: 12px;
}

.notes .notes_modal input::-webkit-input-placeholder {
    color: #CCCCCC;
    font-size: 12px;
}

.notes .notes_modal .btns {
    position: relative;
    font-size: 0;
    margin-top: 12px;
}

.notes .notes_modal .btns:after {
    position: absolute;
    content: "";
    width: 100%;
    left: 0;
    top: 0;
    height: 1px;
    background-color: rgba(60, 60, 67, 0.29);
    -webkit-transform: scale(1, .5);
    transform: scale(1, .5);
    -webkit-transform-origin: center top;
    transform-origin: center top;
}

.notes .notes_modal .btn {
    color: #007AFF;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 50%;
    text-align: center;
    height: 42px;
    line-height: 42px;
}

.notes .notes_modal .btn:first-child:before {
    position: absolute;
    content: "";
    height: 100%;
    right: 0;
    top: 0;
    width: 1px;
    background-color: rgba(60, 60, 67, 0.29);
    -webkit-transform: scale(.5, 1);
    transform: scale(.5, 1);
    -webkit-transform-origin: right center;
    transform-origin: right center;
}

.note_txt {
    color: #999999;
    font-size: 12px;
    margin: 12px auto;
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
}

.quotehead {
    padding-left: 8px;
    position: relative;
    color: #666666 !important;
    font-size: 15px;
}

.quotehead:before {
    content: '';
    width: 4px;
    background: #E5E5E5;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.qf_insert_video .mce-shim {
    position: absolute;
    width: 55px;
    height: 55px;
    background: url("../images/preview_icon5.png") center center no-repeat;
    background-size: 55px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

.qf_insert_video {
    background-color: black;
    margin: 12px auto;
    margin-left: 0px;
    margin-right: 0px;
    position: relative;
}

.qf_insert_video video {
    max-width: calc(100% - 6px) !important;
}

.loading {
    text-align: center;
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    height: 70%;
    display: none;
}

.circle {
    margin: 5px;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: inline-block;
    transform: scale(0);
    animation: bulge 2s infinite ease-in-out;
    color: #fff;
}

.circle::after {
    position: absolute;
    display: inline-block;
    content: '';
    height: 100%;
    width: 100%;
    border-radius: 50%;
    background-color: inherit;
    top: 0;
    left: 0;
    z-index: -1;
    transform: scale(1);
    animation: blow 2s infinite ease-in-out;
}

.circle:nth-child(1) {
    background-color: #4695B8;
    animation-delay: 0s;
}

.circle:nth-child(2) {
    background-color: #67A142;
    animation-delay: .25s;
}

.circle:nth-child(3) {
    background-color: #8FC0A7;
    animation-delay: .50s;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.4;
}

table {
    border-collapse: collapse
}

table td, table th {
    border: 1px solid #ccc;
    padding: .4rem
}


hr {
    border-color: #E5E5E5;
    border-style: solid;
    border-width: 1px 0 0 0
}

code {
    background-color: #e8e8e8;
    border-radius: 3px;
    padding: .1rem .2rem
}

.mce-preview-object {
    border: none;
}

.mce-content-body:not([dir=rtl]) blockquote {
    border-left: 2px solid #ccc;
    margin-left: 14px;
    padding-left: 8px;
}

.mce-content-body[dir=rtl] blockquote {
    border-right: 2px solid #ccc;
    margin-right: 14px;
    padding-right: 8px;
}

.mce-content-body [contentEditable=false][data-mce-selected] {
    outline: none;
}

.mce-content-body img[data-mce-selected], .mce-content-body table[data-mce-selected] {
    outline: none;
}


#mytextarea hr {
    width: 80%;
    margin: 15px auto;
}

#mytextarea hr {
    width: 80%;
    margin: 15px auto;
}

@keyframes bulge {
    50% {
        transform: scale(1);
    }
}


@keyframes blow {
    25% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.5;
    }
    90% {
        opacity: 0;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/*需要挪到帖子里面的样式*/

.qf_insert_link {
    color: #507DAF;
    font-size: 16px;
    background: url("../images/preview_icon4.png") left center no-repeat;
    background-size: 20px 20px;
    padding-left: 22px;
    background-color: transparent !important;
}

.qf_at {
    color: #507DAF;
    font-size: 16px;
}


.preview_article hr {
    width: 80%;
    margin: 15px auto;
}

.preview_article hr {
    width: 80%;
    margin: 15px auto;
}

.preview_article:not([dir=rtl]) blockquote {
    margin: 0;
    border-left: 2px solid #ccc;
    margin-left: 14px;
    padding-left: 8px;
}

.preview_article[dir=rtl] blockquote {
    margin: 0;
    border-right: 2px solid #ccc;
    margin-right: 14px;
    padding-right: 8px;
}

.tox-tinymce {
    border: none !important;
}

.qf_insert_video {
}

.myorderlistclass {
    padding-left: 20px;
    margin: 10px;
    list-style: decimal;
}

.myorderlistitemclass {
    list-style: decimal;
}

.myunlistclass {
    padding-left: 20px;
    margin: 10px;
    list-style: initial;
}

.myunlistitemclass {
    list-style: initial;
}

.qf_image {
    text-align: center;
    margin: 20px auto !important;
}

.qf_image img {
    display: block;
    max-width: calc(100% - 4px);
    margin: 0 auto;
    height: auto;
}

.qf_image.small img {
    width: calc(50% - 2px);
}

.qf_image {
    border: 0px solid #4B8DFF;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    display: block;
    background-image: url('../images/loading_ch.png');
    background-size: 76px auto;
    background-repeat: no-repeat;
    background-position: center;
}

.qf_image span.qf_image_mark {
    color: #999999;
    display: inline-block;
    padding: 0px 10px;
    font-size: 12px;
    text-align: center;
    background: #fff;
    line-height: 24px;
}

.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before {
    color: rgba(204, 204, 204, 1);
    font-size: 16px;
    font-weight: 400;
}
