/* 驱动中国CMS 正文编辑器外观与扩展按钮 */

/* 编辑区排版观感(编辑即所见) */
.fi-fo-rich-editor trix-editor {
    min-height: 320px;
    padding: 14px 16px;
    font-size: 15.5px;
    line-height: 1.85;
    color: #2d3748;
}
.fi-fo-rich-editor .trix-content p { margin: 0 0 0.9em; }
.fi-fo-rich-editor .trix-content h2 { font-size: 20px; font-weight: 700; color: #0e1f47; margin: 1.2em 0 0.6em; }
.fi-fo-rich-editor .trix-content h3 { font-size: 17px; font-weight: 700; color: #0e1f47; margin: 1em 0 0.5em; }
.fi-fo-rich-editor .trix-content img { max-width: 100%; border-radius: 8px; }
.fi-fo-rich-editor .trix-content blockquote {
    border-left: 3px solid #cbd5e1; background: #f6f8fc; padding: 6px 14px; color: #52627a; margin: 0.9em 0; border-radius: 0 6px 6px 0;
}
.fi-fo-rich-editor .trix-content pre {
    background: #0f172a; color: #e2e8f0; padding: 12px 14px; border-radius: 8px; font-size: 13.5px; overflow-x: auto;
}
.fi-fo-rich-editor .trix-content a { color: #2563eb; text-decoration: underline; }

/* 扩展按钮 */
.qudong-tb-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 8px;
    margin: 0 1px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
}
.qudong-tb-btn:hover { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
.qudong-tb-sep { width: 1px; height: 16px; background: #e2e8f0; margin: 0 6px; align-self: center; display: inline-block; }

/* 轻提示 */
.qd-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    background: #0f172a;
    color: #fff;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    z-index: 99999;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    max-width: 86vw;
    text-align: center;
    pointer-events: none;
}

/* 图片附件上传后不显示文件名/尺寸 caption(只显示图片本身) */
.fi-fo-rich-editor .attachment--preview .attachment__caption,
.fi-fo-rich-editor .attachment--preview figcaption.attachment__caption,
.fi-fo-rich-editor .attachment--preview .attachment__name {
    display: none !important;
}
