﻿[v-cloak] {
    display: none;
}

div {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}
/* kehu51-editor */
.select-popover {
    max-height: 310px;
    overflow: auto;
}
.editor-select-ul {
    margin: 0;
    padding: 0;
}
.editor-select-li {
    margin: 0;
    padding: 0;
    list-style: none;
}
    .editor-select-li button.kehu51-editor-edittool-button {
        border: none;
        background-color: transparent;
        color: #606266;
        text-align: left;
        padding: 10px 0 10px 10px;
        width: 100%;
        cursor: pointer;
    }
        .editor-select-li button.kehu51-editor-edittool-button:hover {
            background-color: #F5F7FA;
        }
.edittool {
    line-height: 28px;
    background: #FFFFFF;
    padding: 2px;
    display: flex;
    flex-wrap: wrap;
}
.edittool .editortool-active { background: #FFFFFF }
.edittool .edit-color { vertical-align: bottom; outline: none; }
.edittool .edit-color .el-color-picker__trigger {
    border:none;
    border-color: #DCDFE6;
    height: 28px;
    width: 28px;
}
    .edittool > button.kehu51-editor-edittool-button:hover {
        background: #FFFFFF;
    }
.edittool > div > .inner-div{cursor:pointer; border-radius:3px;}
.edittool > div > .inner-div:hover { background: #FFFFFF; }
.edittool .ai-icon-div { cursor: pointer; border-radius: 3px; }
.edittool .ai-icon-div:hover { background: #FFFFFF; }
    .edittool > div > .el-upload > button.kehu51-editor-edittool-button:hover {
        background: #FFFFFF;
    }
    .edittool .el-popover__reference-wrapper > button.kehu51-editor-edittool-button:hover {
        background: #FFFFFF;
    }
.edittool .edit-color:hover { background: #FFFFFF; }
.edittool .el-color-picker--small { height: 28px; }

.el-color-text { position: absolute; top: 6px; left: 13.07px; pointer-events: none; color: #606266;}
.el-color-picker__icon{display:none;}
.el-color-picker__empty{display:none;}
.el-color-picker__color{height:4px; border:none; width:14px; margin:15px 0 1px 7px; }

.edittool .el-popover__reference-wrapper > button.kehu51-editor-edittool-button, .edittool > button.kehu51-editor-edittool-button, .edittool > div > .el-upload > button.kehu51-editor-edittool-button {
    margin-left: 0 !important;
    font-size: 14px;
    padding: 7px 10px;
    min-width: 36px;
    vertical-align: bottom;
    background-color: transparent;
    color: #606266 !important;
    border: none !important;
}


.editprecss {
    line-height: normal;
    margin-top: 10px;
    overflow: auto;
    padding: 0 10px 10px 10px;
    outline: none;
    font-size: 14px;
    position: relative;
    word-break: break-word;
    word-wrap: break-word;
    white-space: pre-wrap;
}
    .editprecss:empty::before {
        content: attr(placeholder);
        color: rgb(204, 204, 204);
        cursor:text;
    }


.editprecss video { max-width: 100%;}
/* .editprecss::-webkit-scrollbar { width: 0; height: 0px; }
.editprecss{ scrollbar-width: none; } */
/* 显示滚动条的css */
.editprecss { scrollbar-width: 6x; }
.editprecss::-webkit-scrollbar {
    width: 6px; height: 0px;
}

.line { height: 2px; background-color: #606266; border-radius:1px; width:16px;}

.editprecss::-webkit-scrollbar-track {
    background: rgba(240, 240, 240, 0.3);
}
.editprecss::-webkit-scrollbar-thumb {
    background: rgba(154,154,154,.3);
    border-radius: 3px;
}

pre::-webkit-scrollbar { width: 6px; height: 6px; }
pre:hover { scrollbar-width: 6x; }
pre:hover::-webkit-scrollbar-track { background: rgba(240, 240, 240, 0.3); }
pre:hover::-webkit-scrollbar-thumb { background: rgba(154,154,154,.3); border-radius: 3px; }
pre::-webkit-scrollbar-corner { background: rgba(154,154,154,.3); }

.editor-link{
    color: #409EFF;
    text-decoration: none;
}
.editprecss .editor-link:hover{
    cursor: pointer;
    position: relative;
    background-color: #eeeeee;
}
.editprecss .editor-link:hover:after{
    position: absolute;
    content: "可点击编辑";
    font-size: 12px;
    padding:10px;
    width: 70px;
    top: 0px;
    right: -85px;
    width: auto;
    border:1px solid #cccccc;
    border-radius: 6px;
    background-color:#ffffff;
}
.f-s-0{font-size: 0;}

/*拖拽三角*/
.dragdiv { 
position: absolute;
right: 1px; bottom: 1px;
border:4px solid #999999;
border-top-color: transparent;
border-left-color: transparent;
cursor: ns-resize; }
/*拖拽三角*/

/*关联业务*/
.business-border{
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    flex-wrap: wrap;
}
.business-item {
    border: 1px solid #DCDFE6; 
    display:flex;
    align-items:center;
    width:unset;
    padding: 0 5px;
    border-radius:6px;
    margin: 5px;
    position:relative;
    min-height:32px;
}
.business-text{cursor:pointer;}
.business-text:hover { text-decoration: underline; }
.business-icon { display: flex; align-items: center; justify-content: center; height: 22px; width: 22px; background-color: #409EFF; border-radius: 4px; margin: 0 5px 0 0; }
.file-icon{
    height:16px;
    margin:0 5px 0 0;
}
.file-icon >img{vertical-align:top;}
.business-close{
    display: flex;
    align-items:center;
    justify-content:center;
    position:absolute;
    height:16px;
    width:16px;
    border-radius:50%;
    background-color:#909399;
    top:-8px;
    cursor:pointer;
    right:-8px;
}
.business-close:hover { background-color:#AAAAAA }
.business-close >i{font-size:12px;}
/*关联业务*/

/* video */
.kehu51-edior-select-popover{padding: 0;}
.kehu51-editor-video-tabs{display: flex; background: #f4f5f8; font-size: 12px;}
.kehu51-editor-video-tabs > div{display: flex; align-items: center; padding: 8px 10px; cursor: pointer;}
.kehu51-editor-video-tabs > div.select{background: #fff; border-radius: 6px 6px 0 0}
.kehu51-editor-video-tabs img{ height: 14px; width: 14px; margin-right: 5px}
.kehu51-editor-video-tips-pop{background: #F4F5F8; box-shadow: 0 1px 4px 2px rgba(0,0,0,0.13)}
.kehu51-editor-video-frame{width: 600px;height: 350px;}
.kehu51-editor-alicloud-video{width: 600px;height: 350px; cursor: pointer;}
/* video */

/* email */
.link-div { max-width: 400px; background-color: #F2F3F7; border-radius:6px; padding:8px; font-size:15px;}
.link-show-title { font-size: 14px; color: #303133; margin: 0 0 5px 0; }
.link-show-description { color: #909399; position:relative;line-height:1.4em;height:2.8em;overflow:hidden; }
.link-show-div{background-color: #fff; padding:10px; cursor:pointer; border-radius:6px; margin-top:10px;}
.link-show-div > div { display: flex; font-size: 13px; }
.link-show-div > div > img{ height:36px; margin-left:10px;}
.link-show-description:after { background: linear-gradient(to right, rgba(255, 255, 255, 0), #FFFFFF 50%) repeat scroll 0 0 rgba(0, 0, 0, 0); bottom: 0; content: "..."; padding: 0 5px 1px 30px; position: absolute; right: 0; }
.link-text-show { color: #1684FC; display: inline-block; cursor:pointer; }
.link-text-show > img { height: 20px; vertical-align: top; margin-right: 5px; }


.link-text { color: #1684FC !important; display: inline-block; position: relative; background-color: #F2F3F7; border-radius: 4px; text-decoration: none; cursor: pointer; }
.link-text > img{vertical-align:top; margin-top:0.07em; margin-right:5px; height:1.2em;}
/* email */
/* kehu51-editor */
/* kehu51-editor-set-dialog */
/*.el-dialog__wrapper { display: flex; align-items: center; justify-content: center }*/
#kehu51EditorSelectDialog .el-dialog{height: 90%; margin: 0; border-radius: 8px; display: flex; flex-direction: column;}
#kehu51EditorSelectDialog .el-dialog__header{border-bottom: 1px solid #DCDFE6}
#kehu51EditorSelectDialog .el-dialog__body{flex:1; padding: 0; overflow: hidden;}
.editor-footer{border-top: 1px solid #DCDFE6; padding: 10px; text-align: center;}
.editor-footer .el-button{width: 120px;}
.poster-div{float: left; border-radius: 6px; height: 334px; border: 1px solid transparent; padding: 10px; overflow: hidden; width: 20%; display: flex; flex-direction: column; align-items: center; cursor: pointer;}
.poster-div:hover{border: 1px solid lightgray; box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04) }
/* kehu51-editor-set-dialog */

.kehu51-editor-video {
    width: 500px;
    max-width:100%;
}

.kehu51-editor-detail {
    font-size: 14px;
}

.editor-imagelist{overflow:hidden;}
.editor-imagelist-item { float: left; margin: 5px; border-radius: 6px; overflow: hidden; position: relative; width: 90px; height: 90px; }
/* 缩略图容器：遮罩/工具条相对此层定位，避免被 popover 等兄弟节点撑开 */
.editor-imagelist-thumb-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; }
.editor-imagelist-item img { display: block; vertical-align: top; height: 100%; width: 100%; cursor: pointer; object-fit: cover; }
.editor-imagelist-tool { display: none; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #00000088; align-items: center; justify-content: center; z-index: 2; }
.editor-imagelist-tool> i {color:#ffffff; font-size:18px; margin:0 5px; cursor:pointer;}
.editor-imagelist-item:hover .editor-imagelist-tool { display: flex; }
.editor-imagelist-item:hover img { height: 88px; width: 88px; margin: 1px; }

.editor-imagelist-item .editor-video-bg { position: absolute; height: 100%; width: 100%; top: 0; left: 0; background-color: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; pointer-events:none; }
.editor-imagelist-item .editor-video-bg .triangle { fill: #aaa; stroke-width: 6px; stroke: #aaa; }

/* 图片列表上传中/失败遮罩：半透明灰层盖住缩略图 */
.editor-imagelist-item .editor-imagelist-upload-mask {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.7);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1.3;
    z-index: 3;
    text-align: center;
    box-sizing: border-box;
    padding: 4px;
    margin: 0;
}
/* 上传中圆形进度条（SVG） */
.editor-imagelist-upload-progress {
    display: block;
}
.editor-imagelist-upload-progress circle:last-of-type {
    transition: stroke-dashoffset 0.18s ease;
}
.editor-imagelist-item .editor-imagelist-upload-mask.editor-imagelist-upload-fail {
    cursor: pointer;
    color: #F56C6C;
    background: #000000;
}
.editor-imagelist-item .editor-imagelist-upload-mask.editor-imagelist-upload-fail span {
    color: #F56C6C;
}
.editor-imagelist-item .editor-imagelist-upload-mask.editor-imagelist-upload-fail .el-icon-refresh-right {
    color: #F56C6C;
}
/* 失败态右上角关闭按钮保持白色，便于辨认 */
.editor-imagelist-item .editor-imagelist-upload-mask.editor-imagelist-upload-fail .editor-imagelist-upload-cancel {
    color: #ffffff;
}
/* 图文混排正文内上传占位遮罩（复用列表圆形进度样式） */
.editor-inline-upload-wrap {
    position: relative !important;
}
.editor-inline-upload-wrap .editor-inline-upload-mask {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(128, 128, 128, 0.7);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1.3;
    z-index: 3;
    text-align: center;
    box-sizing: border-box;
    padding: 4px;
    margin: 0;
}
.editor-inline-upload-wrap .editor-inline-upload-mask.editor-inline-upload-fail {
    cursor: pointer;
    color: #F56C6C;
    background: #000000;
}
.editor-inline-upload-wrap .editor-inline-upload-mask.editor-inline-upload-fail span {
    color: #F56C6C;
}
.editor-inline-upload-wrap .editor-inline-upload-mask.editor-inline-upload-fail .el-icon-refresh-right {
    color: #F56C6C;
}
.editor-inline-upload-wrap .editor-inline-upload-mask.editor-inline-upload-fail .editor-imagelist-upload-cancel {
    color: #ffffff;
}

.editor-imagelist-upload-cancel {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 14px;
    cursor: pointer;
    padding: 2px;
}
.editor-imagelist-upload-cancel:hover {
    color: #f56c6c;
}

/* 跟进等小尺寸编辑器里的图片列表，遮罩跟随缩略图尺寸 */
.editor-edit-container .editor-imagelist-item {
    width: 40px;
    height: 40px;
}

.editor_theme2 { padding-bottom: 0 !important; display: flex !important; flex-direction: column !important; height: auto !important; }
.editor_theme2 .edittool { background-color: transparent; }
.editor_theme2 .edittool-outdiv { position: relative; bottom: auto; width: 100%; order: 10; flex-shrink: 0; }
.editor_theme2 .editprecss { flex: none !important; width: 100%; }
.editor_theme2 .text-count { bottom: 5px; position: absolute; z-index: 1; right: 10px; }
.editor_theme2 .text-count-custom { bottom: 40px; }
.dragdiv { z-index: 11; }
    .editor_theme2 .edittool .el-popover__reference-wrapper > button.kehu51-editor-edittool-button, .edittool > button.kehu51-editor-edittool-button, .edittool > div > .el-upload > button.kehu51-editor-edittool-button {
        min-width: 23px;
        padding: 7px 5px;
    }
    .editor_theme2 .edittool .el-popover__reference-wrapper > button.kehu51-editor-edittool-button, .edittool > button.kehu51-editor-edittool-button, .edittool > div > .el-upload > button.kehu51-editor-edittool-button {
        min-width: 23px;
        padding: 7px 5px;
    }

    .editor_theme2 .edittool > button.kehu51-editor-edittool-button:hover {
        background: #EEEEEE;
    }
    .editor_theme2 .edittool > button.kehu51-editor-edittool-button:hover {
        background: #EEEEEE;
    }
    .edittool-custom-right  .kehu51-editor-edittool-button {
        height: 28px;
        width: 28px;
        border-radius: 4px;
        margin: 0 !important;
        line-height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .edittool-custom-right  .kehu51-editor-edittool-button:hover {
        background: #EEEEEE;
    }
.editor_theme2 .edittool > div > .inner-div:hover { background: #EEEEEE; }
.editor_theme2 .edittool .ai-icon-div:hover { background: #EEEEEE; }
    .editor_theme2 .edittool > div > .el-upload > button.kehu51-editor-edittool-button:hover {
        background: #EEEEEE;
    }
    .editor_theme2 .edittool .el-popover__reference-wrapper > button.kehu51-editor-edittool-button:hover {
        background: #EEEEEE;
    }
.editor_theme2 .edittool .edit-color:hover { background: #EEEEEE; }
.editor_theme2 .edittool .editortool-active { background: #EEEEEE }
.editpre {
    word-break: break-word;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.editpre-old {
    white-space: pre-wrap;
}

/* kehu51-editor-new-view：isaicreate 为 true 时——外层不裁切，角标可负 top 伸出；圆角背景在内层 surface */
.kehu51-editor-ai-create-wrap {
    position: relative;
    margin-top: 16px;
    margin-bottom: 4px;
    box-sizing: border-box;
    overflow: visible;
    z-index: 0;
    max-width: 900px;
}
.kehu51-editor-ai-create-surface {
    position: relative;
    z-index: 0;
    padding: 8px 12px 10px 12px;
    background-color: #F5F3FF;
    border: 1px solid #E9E5F4;
    border-radius: 14px;
    box-sizing: border-box;
    overflow: hidden;
}
.kehu51-editor-ai-create-badge {
    position: absolute;
    top: -11px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    /* 角标内 SVG 为 absolute+left:5px，左侧留出占位避免与文案重叠 */
    padding: 0 12px 0 24px;
    font-size: 12px;
    line-height: 26px;
    color: #6D28D9;
    background-color: #fff;
    border: 1px solid #C4B5FD;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(109, 40, 217, 0.08);
}
.kehu51-editor-ai-create-badge-icon {
    flex-shrink: 0;
}
.kehu51-editor-ai-create-watermark {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 100px;
    height: 100px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.1;
}
.kehu51-editor-ai-create-watermark svg {
    width: 100%;
    height: 100%;
}
.kehu51-editor-detail .kehu51-editor-ai-create-body {
    position: relative;
    z-index: 1;
    line-height: 26px !important;
    font-size: 14px;
}
/* 与跟进/任务详情里对 .editpre 的字色规则对齐优先级，保证 AI 卡片内正文为深灰 */
.kehu51-editor-ai-create-wrap .kehu51-editor-ai-create-body {
    color: #303133 !important;
}

.kehu51-edior-ai-popover { padding: 0; background: linear-gradient(to right,#FDEAF3,#E1F4FC); }
.kehu51-edior-ai-inner { height: 300px; width: 500px; padding: 20px; background-color:transparent; display: flex; flex-direction: column; }
.kehu51-edior-ai-inner > span { align-self: flex-end; cursor:pointer; color:#1684FC;}

.edittool .template-btn{padding: 3px 5px !important;}
.edittool .template-btn > span{display: flex; align-items: center;}
.template-popover{padding: 0; min-width: 120px;}
.line-css{height: 1px; background-color:#D3DCE6; width: 100%;}
/* 工具栏按钮组之间的竖向分隔线 */
.edittool .line-css-v {
    width: 2px;
    height: 16px;
    background-color: #DCDFE6;
    margin: 0 6px;
    align-self: center;
    flex-shrink: 0;
}
.template-popover .editor-select-li button.kehu51-editor-edittool-button {padding: 10px;}
.editor-img-outdiv{width: 100%; margin: 0;}

.kehu51-editor-wiki-link{cursor: pointer; color: #409EFF !important; text-decoration: none !important;}

.test_div{
    position: absolute;
    height: 20px;
    width: 20px;
    border: 1px solid red;
}
.aiimgidentifierbtn {
    min-width: 170px !important;
    padding: 6px !important;
    display: inline-flex;
    justify-content: center;
    border-color: #DCDFE6;
}
    .aiimgidentifierbtn:hover {
        background: #ECF5FF;
        border-color: #409EFF;
        color: #FFF;
    }

    .aiimgidentifierbtn .aispan {
        color: #606266;
    }
    .aiimgidentifierbtn .aibtn {
        display: inline-flex;
        flex-direction: row;
        line-height: 18px;
        color: #BC86CD;
    }
    .aiimgidentifierbtn img {
        height: 16px;
    }
    .aiimgidentifierbtn .popper__arrow {
        border-right-color: #DCDFE6 !important;
    }
.kehu51-editor .text-count {
    position: absolute;
    bottom: 5px;
    right: 10px;
    color: #999;
    font-size: 12px;
    line-height: 1;
    pointer-events: none;
}
.kehu51-editor .text-count-custom{
    bottom:40px;
}

/* ============================================================================
 * Kehu51 富文本编辑器 v2 - Notion 风格样式
 * 作用: 仅在 kehu51-editor-new-v2 组件使用; 通过组件 mounted 时自动注入
 * 设计原则: 全部选择器以 .kehu51-notion- 开头, 避免污染既有 editor.css
 * ============================================================================ */

/* ---------- 外层包裹 ---------- */
.kehu51-notion-wrap {
    /* 包裹层提供定位上下文给浮层使用 */
    position: relative;
}
    .kehu51-notion-wrap .kehu51-notion-editor {
        max-width: 1920px;
        margin: 0 auto;
    }

/* ---------- 编辑区主体 ---------- */
.kehu51-notion-editor {
    /* 给左侧浮动 +/⋮⋮ 留出空间 */
    padding: 30px 24px 200px 48px;
    outline: none;
    line-height: 1.7;
    overflow-wrap: anywhere;
    /* 编辑时不显示蓝色 outline */
    -webkit-user-select: text;
    user-select: text;
}

/* v2 用块级 data-placeholder, 关闭 editor.css 根级 placeholder 避免与正文叠显 */
.kehu51-notion-editor.editprecss::before {
    content: none !important;
}

/* 每个块的通用样式(对齐 NotionTest .editor-block) */
.kehu51-notion-editor > .kehu51-notion-editor-block {
    position: relative;
    display: flex;
    gap: 8px;
    margin: 3px 0;
    padding: 2px 4px;
    border-radius: 6px;
    transition: background-color 0.12s ease;
}

/* 左侧 + 按钮悬停热区(对齐 NotionTest .editor-block::before) */
.kehu51-notion-editor > .kehu51-notion-editor-block::before {
    content: "";
    position: absolute;
    left: -42px;
    top: 0;
    width: 42px;
    height: 100%;
}

.kehu51-notion-editor > .kehu51-notion-editor-block:hover {
    background: #f7f8fa;
}

/* 块左侧 + / 拖动手柄(对齐 NotionTest .block-add / .block-handle) */
.kehu51-notion-block-add,
.kehu51-notion-block-handle {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0;
}

.kehu51-notion-block-handle {
    position: absolute;
    left: -58px;
    top: 5px;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    color: #9aa1aa;
    opacity: 0;
    font-size: 12px;
    line-height: 24px;
}

.kehu51-notion-block-add {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    color: #7b8490;
    font-size: 18px;
    line-height: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease, background-color 0.1s ease;
}

.kehu51-notion-block-add:hover {
    background: #eceff3;
    color: #252b33;
}

.kehu51-notion-editor > .kehu51-notion-editor-block:hover .kehu51-notion-block-add,
.kehu51-notion-editor > .kehu51-notion-editor-block:focus-within .kehu51-notion-block-add {
    opacity: 1;
    pointer-events: auto;
}

.kehu51-notion-editor > .kehu51-notion-editor-block:hover .kehu51-notion-block-handle {
    opacity: 1;
}

.kehu51-notion-block-handle:hover {
    background: #eceff3;
    color: #4c525a;
}

/* 块内可编辑区(对齐 NotionTest .block-content) */
.kehu51-notion-editor .kehu51-notion-block-content {
    display: block;
    width: 100%;
    min-height: 1em;
    padding: 3px 4px;
    outline: none;
    line-height: 1.75;
    white-space: pre-wrap;
}

/* 空块占位(对齐 NotionTest .block-content:empty::before) */
.kehu51-notion-editor .kehu51-notion-block-content:empty::before {
    content: attr(data-placeholder);
    color: #a9afb7;
    pointer-events: none;
}

/* ---------- 标题块 ---------- */
.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="heading-1"] .kehu51-notion-block-content {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 23px;
    padding: 0 4px;
}

.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="heading-2"] .kehu51-notion-block-content {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 23px;
    padding: 0 4px;
}

.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="heading-3"] .kehu51-notion-block-content {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    margin-top: 23px;
    padding: 0 4px;;
}

.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="heading-4"] .kehu51-notion-block-content {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    margin-top: 23px;
    padding: 0 4px;
}

.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="heading-5"] .kehu51-notion-block-content {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin-top: 23px;
    padding: 0 4px;
}

.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="heading-6"] .kehu51-notion-block-content {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    margin-top: 23px;
    padding: 0 4px;
    color: #4b5563;
}

/* ---------- 引用块 ---------- */
.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="quote"] {
    border-left: 3px solid #aeb6c2;
    padding-left: 14px;
    color: #4b5563;
    margin: 4px 0;
}

/* ---------- 提示块(callout) ---------- */
.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="callout"] {
    position: relative;
    padding: 10px 14px;
    border-radius: 6px;
    margin: 4px 0;
    background: var(--callout-bg, #eff6ff);
    border: 1px solid var(--callout-border, #bfdbfe);
}

.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="callout"]:hover {
    background: var(--callout-bg, #eff6ff);
}

.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="callout"] .kehu51-notion-block-content {
    white-space: pre-wrap;
}

/* 提示块颜色按钮: 放在提示块下方 */
.kehu51-notion-callout-color-button {
    position: absolute;
    left: 0;
    top: auto;
    bottom: -34px;
    display: grid;
    width: 30px;
    height: 28px;
    place-items: center;
    border: 1px solid #dfe3e8;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.94);
    color: #59616c;
    cursor: pointer;
    opacity: 0;
    box-shadow: 0 8px 18px rgba(31, 35, 40, 0.12);
    transition: opacity 0.12s ease, transform 0.12s ease;
    transform: translateY(-2px);
    padding: 0;
    z-index: 2;
}

.kehu51-notion-callout-color-button svg {
    width: 17px;
    height: 17px;
}

.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="callout"]:hover .kehu51-notion-callout-color-button,
.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="callout"]:focus-within .kehu51-notion-callout-color-button,
.kehu51-notion-callout-color-button:hover {
    opacity: 1;
    transform: translateY(0);
}

.kehu51-notion-callout-color-button:hover {
    border-color: #c9ced6;
    background: #fff;
}

/* ---------- 代码块 ---------- */
.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="code"] {
    background: #f3f4f6;
    padding: 12px 14px;
    border-radius: 6px;
}

.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="code"] .kehu51-notion-block-content {
    font-family: 'Cascadia Code', Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.65;
    color: #24292f;
    white-space: pre-wrap;
    overflow-x: auto;
}

/* ---------- 分隔线(对齐 NotionTest .block-divider) ---------- */
.kehu51-notion-editor > .kehu51-notion-editor-block.kehu51-notion-block-divider,
.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="divider"] {
    display: flex;
    align-items: center;
    height: 80px;
    padding: 2px 4px;
}

.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="divider"]:hover {
    background: transparent;
}

.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="divider"] .kehu51-notion-block-content {
    width: 100%;
    min-height: 1px;
    height: 1px;
    padding: 0;
    line-height: 0;
    white-space: nowrap;
    background: #dfe3e8;
    border: none;
    outline: none;
}

/* 分隔线不显示空块 placeholder */
.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="divider"] .kehu51-notion-block-content:empty::before {
    content: none;
}

/* ---------- 待办块 ---------- */
.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="todo"] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.kehu51-notion-editor .kehu51-notion-todo-check {
    flex: 0 0 auto;
    margin-top: 6px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #303133;
}

.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="todo"] .kehu51-notion-block-content {
    flex: 1 1 auto;
}

/* 待办勾选完成态(对齐 NotionTest .block-todo.is-done .block-content) */
.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="todo"].is-done .kehu51-notion-block-content {
    color: #8a919b;
    text-decoration: line-through;
}

/* ---------- 项目符号块 ---------- */
.kehu51-notion-editor > [data-block-type="bullet-list"] {
    margin: 4px 0;
    padding-left: 22px;
}

.kehu51-notion-editor > [data-block-type="bullet-list"] > li {
    margin: 2px 0;
}

/* ---------- Notion 浮层容器（挂 body，不拦截底层点击） ---------- */
.kehu51-notion-float-menus {
    position: fixed;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    z-index: 1000;
    pointer-events: auto;
}
.kehu51-notion-float-menus .kehu51-notion-slash-menu,
.kehu51-notion-float-menus .kehu51-notion-color-menu {
    pointer-events: auto;
}

/* ---------- / 命令菜单 ---------- */
.kehu51-notion-slash-menu {
    position: fixed;
    z-index: 1001;
    width: 320px;
    max-height: 360px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(31, 35, 40, 0.12);
    padding: 6px;
    font-size: 13px;
}

.kehu51-notion-slash-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #303133;
}

.kehu51-notion-slash-item.is-selected,
.kehu51-notion-slash-item:hover {
    background: #eef4ff;
    color: #2f6fed;
}

.kehu51-notion-slash-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e1e5eb;
    border-radius: 6px;
    background: #ffffff;
    color: #59616c;
    font-weight: 700;
    font-size: 14px;
}

.kehu51-notion-slash-body {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
}

.kehu51-notion-slash-title {
    font-weight: 600;
    color: inherit;
}

.kehu51-notion-slash-desc {
    margin-top: 2px;
    color: #909399;
    font-size: 12px;
}

/* ---------- callout 颜色面板 ---------- */
.kehu51-notion-color-menu {
    position: fixed;
    z-index: 1002;
    width: 260px;
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(31, 35, 40, 0.12);
    padding: 8px;
}

.kehu51-notion-color-row {
    padding: 6px 4px;
}

.kehu51-notion-color-title {
    display: block;
    margin-bottom: 6px;
    color: #737b86;
    font-size: 12px;
}

.kehu51-notion-swatch-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.kehu51-notion-swatch {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 1px solid #d8dde5;
    border-radius: 4px;
    cursor: pointer;
    transition: box-shadow 0.1s ease, border-color 0.1s ease;
}

.kehu51-notion-swatch:hover {
    border-color: #303133;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px #303133;
}

.kehu51-notion-color-clear {
    width: calc(100% - 8px);
    margin: 6px 4px 4px;
    padding: 6px 10px;
    border: 1px solid #dfe3e8;
    border-radius: 5px;
    background: #ffffff;
    color: #59616c;
    cursor: pointer;
    font-size: 12px;
}

.kehu51-notion-color-clear:hover {
    background: #f5f7fa;
    border-color: #c9ced6;
}

/* ============================================================================
 * kehu51-editor-new-view 只读展示（v2 getHTML 持久化的语义标签 + data-block-type）
 * 说明: 正文在 .editpre 内 v-html 注入，选择器需命中 .editpre 子节点，不能复用 editor-block 规则
 * ============================================================================ */

/* view 容器：去掉编辑态左侧 + 按钮留白 */
.kehu51-editor-detail.kehu51-notion-editor {
    padding: 0;
    line-height: 1.7;
    overflow-wrap: anywhere;
    font-size: 14px;
}

.kehu51-editor-detail.kehu51-notion-editor .editpre {
    margin: 0;
}

/* 段落（含图片/视频等块级内容时导出为 div，样式与 p 一致） */
.kehu51-editor-detail.kehu51-notion-editor .editpre > p[data-block-type="paragraph"],
.kehu51-editor-detail.kehu51-notion-editor .editpre > div[data-block-type="paragraph"] {
    margin: 3px 0;
    min-height: 1.75em;
}

/* 标题 */
.kehu51-editor-detail.kehu51-notion-editor .editpre > h1[data-block-type="heading-1"] {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    padding-top: 25px;
    margin: 3px 0;
    min-height: 1.35em;
}

.kehu51-editor-detail.kehu51-notion-editor .editpre > h2[data-block-type="heading-2"] {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    padding-top: 25px;
    margin: 3px 0;
    min-height: 1.4em;
}

.kehu51-editor-detail.kehu51-notion-editor .editpre > h3[data-block-type="heading-3"] {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    padding-top: 25px;
    margin: 3px 0;
    min-height: 1.45em;
}

.kehu51-editor-detail.kehu51-notion-editor .editpre > h4[data-block-type="heading-4"] {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    padding-top: 25px;
    margin: 3px 0;
    min-height: 1.45em;
}

.kehu51-editor-detail.kehu51-notion-editor .editpre > h5[data-block-type="heading-5"] {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    padding-top: 25px;
    margin: 3px 0;
    min-height: 1.5em;
}

.kehu51-editor-detail.kehu51-notion-editor .editpre > h6[data-block-type="heading-6"] {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    padding-top: 25px;
    margin: 3px 0;
    min-height: 1.5em;
    color: #4b5563;
}

/* 引用 */
.kehu51-editor-detail.kehu51-notion-editor .editpre > blockquote[data-block-type="quote"] {
    border-left: 3px solid #aeb6c2;
    border-radius: 6px;
    color: #4b5563;
    padding: 9px 0;
    padding-left: 14px;
    margin: 4px 0;
    min-height: 1.75em;
}

/* 提示块：背景色以 getHTML 写入的 inline style 为准，此处只补布局 */
.kehu51-editor-detail.kehu51-notion-editor .editpre > aside[data-block-type="callout"] {
    display: block;
    margin: 4px 0;
    padding: 13px 18px;
    line-height: 1.75;
    min-height: 1.75em ;
}

/* 代码 */
.kehu51-editor-detail.kehu51-notion-editor .editpre > pre[data-block-type="code"] {
    background: #f3f4f6;
    padding: 15px 18px;
    border-radius: 6px;
    margin: 3px 0;
    font-family: 'Cascadia Code', Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.65;
    color: #24292f;
    white-space: pre-wrap;
    overflow-x: auto;
    min-height: 1.65em;
}

/* 分隔线 */
.kehu51-editor-detail.kehu51-notion-editor .editpre > hr[data-block-type="divider"] {
    border: none;
    height: 1px;
    margin: 40px 0;
    background: #dfe3e8;
}

/* 待办 */
.kehu51-editor-detail.kehu51-notion-editor .editpre > p[data-block-type="todo"] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 3px 0;
    padding: 5px 0;
    min-height: 1.75em;
}

.kehu51-editor-detail.kehu51-notion-editor .editpre .kehu51-notion-todo-check {
    flex: 0 0 auto;
    margin-top: 5px;
    width: 16px;
    height: 16px;
    pointer-events: none;
    accent-color: #303133;
}

.kehu51-editor-detail.kehu51-notion-editor .editpre > p[data-block-type="todo"].is-done {
    color: #8a919b;
    text-decoration: line-through;
}


.kehu51-editor-new-v2 .kehu51-editor {padding-bottom: 0 !important; display: flex !important; flex-direction: column !important; height: auto !important; }
.kehu51-editor-new-v2 .kehu51-editor .editprecss {flex: none !important; width: 100%; }
.kehu51-editor-new-v2 .edittool-outdiv {padding: 10px 0; border-bottom: 1px solid #EEEEEE;}
/* 撤销/重做按钮：可用时与工具栏图标同色 */
.kehu51-editor-new-v2 .kehu51-editor-histbtn {
    color: #909399;
}
/* 撤销/重做按钮：禁用态置灰，禁止点击光标 */
.kehu51-editor-new-v2 .kehu51-editor-histbtn.is-disabled,
.kehu51-editor-new-v2 .kehu51-editor-histbtn.is-disabled:hover,
.kehu51-editor-new-v2 .kehu51-editor-histbtn.is-disabled:focus {
    color: #C0C4CC;
    opacity: .6;
    cursor: not-allowed;
    background: transparent;
}

/* 图片/本地与阿里云视频：选中缩放（右、下、右下角；最大宽 100% 块内容区） */
.kehu51-notion-editor .kehu51-editor-media-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
    line-height: 0;
}
.kehu51-notion-editor .kehu51-editor-media-wrap img,
.kehu51-notion-editor .kehu51-editor-media-wrap video.kehu51-editor-video,
.kehu51-notion-editor .kehu51-editor-media-wrap video.kehu51-editor-alicloud-video {
    display: block;
    max-width: 100%;
    max-height: 100%;
}
.kehu51-notion-editor .kehu51-editor-media-wrap.is-selected,
.kehu51-notion-editor iframe.kehu51-editor-video-frame.is-selected {
    outline: 2px solid #409EFF;
    outline-offset: 1px;
}
.kehu51-notion-editor .kehu51-editor-media-handle {
    display: none;
    position: absolute;
    z-index: 2;
    background: #409EFF;
    border: 1px solid #fff;
    box-sizing: border-box;
}
.kehu51-notion-editor .kehu51-editor-media-wrap.is-selected .kehu51-editor-media-handle {
    display: block;
}
.kehu51-notion-editor .kehu51-editor-media-handle-r {
    right: -4px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    cursor: e-resize;
}
.kehu51-notion-editor .kehu51-editor-media-handle-b {
    left: 50%;
    bottom: -4px;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    cursor: s-resize;
}
.kehu51-notion-editor .kehu51-editor-media-handle-br {
    right: -4px;
    bottom: -4px;
    width: 10px;
    height: 10px;
    cursor: se-resize;
    border-radius: 2px;
}

/* =========================================================
 * 超链接(选区浮动工具条 / 已设链接的只读预览卡 / 设置框) 样式
 * 注意: 这三个浮层会在 mounted 时被挂到 document.body,
 *       所以选择器使用全局类名, 不依赖父级 .kehu51-editor-* 上下文
 * ========================================================= */

/* 选区浮动工具条 ----------------------------------------- */
.kehu51-editor-sel-link-toolbar {
    position: fixed;
    z-index: 999999;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 4px 6px;
    display: flex;
    align-items: center;
    user-select: none;
}
.kehu51-editor-sel-link-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #303133;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}
.kehu51-editor-sel-link-btn:hover {
    background: #f5f7fa;
    color: #409EFF;
}
.kehu51-editor-sel-link-btn i {
    font-size: 16px;
}

/* 粘贴格式选择浮条 --------------------------------------- */
.kehu51-editor-paste-format-bar {
    position: fixed;
    z-index: 999999;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 4px 6px;
    display: flex;
    align-items: center;
    gap: 2px;
    user-select: none;
}

/* 标题块 hover 提示(纯 CSS, 在块左上角上方显示当前标题级别) ---- */
.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type^="heading-"]:hover::after {
    position: absolute;
    left: 0;
    bottom: 100%;
    margin-bottom: 4px;
    padding: 3px 8px;
    background: #303133;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1099;
}
/* 各级标题对应的提示文字 */
.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="heading-1"]:hover::after { content: "一级标题"; }
.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="heading-2"]:hover::after { content: "二级标题"; }
.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="heading-3"]:hover::after { content: "三级标题"; }
.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="heading-4"]:hover::after { content: "四级标题"; }
.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="heading-5"]:hover::after { content: "五级标题"; }
.kehu51-notion-editor > .kehu51-notion-editor-block[data-block-type="heading-6"]:hover::after { content: "六级标题"; }

/* 已有超链接的只读预览卡 -------------------------------- */
.kehu51-editor-link-preview {
    position: fixed;
    z-index: 1100;
    width: 320px;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    padding: 10px 12px;
    font-size: 13px;
    color: #303133;
}
.kehu51-editor-link-preview-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.kehu51-editor-link-preview-tag {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 3px;
    color: #fff;
    line-height: 1.5;
}
.kehu51-editor-link-preview-tag.tag-web { background: #409EFF; }
.kehu51-editor-link-preview-tag.tag-doc { background: #67C23A; }
.kehu51-editor-link-preview-tag.tag-section { background: #E6A23C; }
.kehu51-editor-link-preview-text {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.kehu51-editor-link-preview-desc {
    margin-top: 4px;
    color: #606266;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kehu51-editor-link-preview-actions {
    margin-top: 6px;
    text-align: right;
    border-top: 1px dashed #ebeef5;
    padding-top: 4px;
}
.kehu51-editor-link-preview-actions .el-button {
    padding: 2px 6px;
}

/* 超链接设置框 ----------------------------------------- */
.kehu51-editor-link-dialog {
    position: fixed;
    z-index: 1200;
    width: 380px;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    padding: 14px 14px 10px 14px;
    font-size: 13px;
}
.kehu51-editor-link-dialog-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.kehu51-editor-link-dialog-label {
    flex: 0 0 60px;
    color: #606266;
    font-size: 13px;
}
.kehu51-editor-link-dialog-row .el-input {
    flex: 1 1 auto;
}
.kehu51-editor-link-dialog-row .el-input__validateIcon{
    display: none;
}
.kehu51-editor-link-dialog-actions {
    text-align: right;
    margin-top: 6px;
    border-top: 1px solid #ebeef5;
    padding-top: 10px;
}

/* 已设链接的 a 标签样式(编辑态 + 详情态通用) -------------- */
a.kehu51-editor-link {
    color: #409EFF;
    text-decoration: underline;
    cursor: pointer;
    padding: 0 1px;
    border-radius: 2px;
}
a.kehu51-editor-link:hover {
    background: rgba(64, 158, 255, 0.08);
}

/* 详情态: 章节跳转目标高亮闪烁 -------------------------- */
.kehu51-editor-section-highlight {
    animation: kehu51-editor-section-blink 1.2s ease;
}
@keyframes kehu51-editor-section-blink {
    0%   { background: rgba(255, 196, 0, 0); }
    25%  { background: rgba(255, 196, 0, 0.45); }
    100% { background: rgba(255, 196, 0, 0); }
}

/* ============== 自定义取色面板（前景色/背景色复用） ============== */
/* 工具栏触发按钮：上方字母 A + 下方当前色条，保持原 36×28 尺寸 */
.edit-color-trigger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 28px;
    vertical-align: bottom;
    text-decoration: none;
    border-radius: 3px;
    cursor: pointer;
}
.edit-color-trigger:hover { background: #FFFFFF; }
.edit-color-trigger .edit-color-letter { font-size: 14px; line-height: 1; color: #606266; }
.edit-color-trigger .edit-color-bar { display: block; width: 16px; height: 3px; margin-top: 2px; border-radius: 1px; }
/* 背景色按钮：字母 A 加浅黄底，与前景色按钮区分（表示"高亮/填充"） */
.edit-color-trigger .edit-bgcolor-letter { background: #fff3a0; padding: 0 3px; border-radius: 2px; }

/* 面板浮层容器（el-popover） */
.kehu51-color-popover.el-popover { padding: 12px; min-width: 0; width: auto; }
/* 面板主体 */
.kehu51-color-panel { width: 240px; user-select: none; }
/* 顶部取色区：饱和度方块 + 色相条 */
.kehu51-color-panel-top { display: flex; height: 140px; margin-bottom: 10px; }
/* 饱和度/明度方块（底色为当前色相纯色） */
.kehu51-color-panel-saturation { position: relative; flex: 1; border-radius: 4px; overflow: hidden; cursor: crosshair; }
/* 横向：白 -> 透明（饱和度） */
.kehu51-color-panel-sat-white { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: linear-gradient(to right, #fff, rgba(255,255,255,0)); }
/* 纵向：黑 -> 透明（明度） */
.kehu51-color-panel-sat-black { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: linear-gradient(to top, #000, rgba(0,0,0,0)); }
/* 方块指针 */
.kehu51-color-panel-cursor { position: absolute; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 1px 1px rgba(0,0,0,.35); transform: translate(-50%, -50%); pointer-events: none; }
/* 色相条 */
.kehu51-color-panel-hue { position: relative; width: 12px; margin-left: 10px; border-radius: 4px; cursor: pointer; background: linear-gradient(to bottom, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); }
/* 色相条滑块 */
.kehu51-color-panel-hue-thumb { position: absolute; left: -2px; right: -2px; height: 4px; background: #fff; border: 1px solid rgba(0,0,0,.3); border-radius: 2px; transform: translateY(-50%); pointer-events: none; }
/* hex 输入行 */
.kehu51-color-panel-hexrow { display: flex; align-items: center; margin-bottom: 10px; }
.kehu51-color-panel-preview { width: 24px; height: 24px; border-radius: 4px; border: 1px solid #dcdfe6; margin-right: 8px; flex-shrink: 0; }
.kehu51-color-panel-hexinput { flex: 1; width: 0; height: 24px; line-height: 24px; padding: 0 6px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 12px; color: #606266; outline: none; }
.kehu51-color-panel-hexinput:focus { border-color: #409eff; }
.kehu51-color-panel-ok { flex-shrink: 0; height: 26px; margin-left: 8px; padding: 0 12px; border: none; border-radius: 4px; background: #409eff; color: #fff; font-size: 12px; cursor: pointer; }
.kehu51-color-panel-ok:hover { background: #66b1ff; }
/* 色块分区 */
.kehu51-color-panel-section { margin-top: 8px; }
.kehu51-color-panel-label { font-size: 12px; color: #909399; margin-bottom: 6px; }
.kehu51-color-panel-swatches { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.kehu51-color-panel-swatch { height: 18px; border-radius: 2px; border: 1px solid rgba(0,0,0,.1); cursor: pointer; box-sizing: border-box; transition: transform .1s; }
.kehu51-color-panel-swatch:hover { transform: scale(1.12); box-shadow: 0 0 0 1px #409eff; }
.kehu51-color-panel-empty { font-size: 12px; color: #c0c4cc; }

/* 富文本编辑器开启 @ 时避免裁切 */
.kehu51-editor.kehu51-editor-has-at {
    overflow: visible !important;
}
.kehu51-notion-wrap .kehu51-comment-at {
    overflow: visible !important;
}

/* @人员组件样式（全部收敛在 .kehu51-comment-at 下） */
.kehu51-comment-at {
    position: relative;
    overflow: visible;
}
.kehu51-comment-at .kehu51-comment-at-showtext {
    color: #409eff;
    cursor: default;
}
/* 富文本查看态：@人员可点击查看用户信息 */
.kehu51-editor-detail .kehu51-comment-at-showtext,
.kehu51-editor-detail .editpre .kehu51-comment-at-showtext {
    color: #409eff;
    cursor: pointer;
}
.kehu51-comment-at .kehu51-comment-at-atwho-panel {
    position: absolute;
    z-index: 10050;
}
.kehu51-comment-at .atwho-view {
    position: absolute;
    bottom: 0;
    left: -0.8em;
    cursor: default;
    background-color: rgba(255, 255, 255, 0.94);
    width: 200px;
    max-height: 200px;
    overflow-y: auto;
    color: #000;
    border-radius: 6px;
    box-shadow: 0 0 10px 0 rgba(101, 111, 122, 0.5);
    z-index: 11110;
}
.kehu51-comment-at .atwho-ul {
    list-style: none;
    max-height: 250px;
    padding: 0;
    margin: 0;
}
.kehu51-comment-at .kehu51-comment-at-atwho-li {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 27px;
    padding: 0 4px;
    white-space: nowrap;
}
.kehu51-comment-at .kehu51-comment-at-atwho-li span {
    overflow: hidden;
    text-overflow: ellipsis;
}
.kehu51-comment-at .kehu51-comment-at-atwho-cur {
    background: #5bb8ff;
    color: #fff;
}
.kehu51-comment-at .atwho-view::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}
.kehu51-comment-at .atwho-view::-webkit-scrollbar-track {
    background-color: #f5f5f5;
}
.kehu51-comment-at .atwho-view::-webkit-scrollbar-thumb {
    min-height: 36px;
    border: 2px solid transparent;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    background-clip: padding-box;
    border-radius: 7px;
    background-color: #c4c4c4;
}
