/* 强制显示菜单栏 */
.tox-menubar {
    display: flex !important;
    background-color: #f8f9fa !important;
    padding: 4px 8px !important;
    border-bottom: 1px solid #dee2e6 !important;
}

/* 修复菜单项样式 */
.tox-menubar button {
    color: #212529 !important;
    font-weight: normal !important;
    padding: 4px 8px !important;
}

.tox-menubar button:hover {
    background-color: #e9ecef !important;
}

.mce-visualblocks * {
    outline: 1px dashed #ccc !important;
}

.wagtail-tinymce-wrapper {
    position: relative;
    min-height: 150px;
}

.wagtail-tinymce-editor {
    visibility: hidden; /* 初始隐藏，JS控制显示 */
}

.wagtail-tinymce-fallback {
    padding: 20px;
    background: #f8f8f8;
    border: 1px dashed #ccc;
    text-align: center;
    color: #666;
}

/* 覆盖Wagtail默认样式 */
[data-wagtail-editor="tinymce"] + .Draftail-Editor {
    display: none !important;
}