/* ========== io-forum 富文本编辑器样式 ========== */

.ioforum-editor-wrapper {
    border: 1px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s;
}
.ioforum-editor-wrapper:focus-within {
    border-color: #f1404b;
}

/* 工具栏 */
.ioforum-editor-wrapper .ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 12px;
    background: #fafbfc;
}

/* 编辑区 */
.ioforum-editor-wrapper .ql-container.ql-snow {
    border: none;
    font-size: 14px;
    font-family: inherit;
}

/* 编辑区内容 */
.ioforum-editor-wrapper .ql-editor {
    min-height: 180px;
    padding: 14px 16px;
    line-height: 1.7;
    color: #1f2329;
}
.ioforum-editor-wrapper .ql-editor.ql-blank::before {
    color: #b0b6bf;
    font-style: normal;
    left: 16px;
}

/* 工具栏按钮 hover 用主题色 */
.ioforum-editor-wrapper .ql-snow .ql-toolbar button:hover,
.ioforum-editor-wrapper .ql-snow .ql-toolbar button.ql-active {
    color: #f1404b;
}
.ioforum-editor-wrapper .ql-snow .ql-toolbar button:hover .ql-stroke,
.ioforum-editor-wrapper .ql-snow .ql-toolbar button.ql-active .ql-stroke {
    stroke: #f1404b;
}
.ioforum-editor-wrapper .ql-snow .ql-toolbar button:hover .ql-fill,
.ioforum-editor-wrapper .ql-snow .ql-toolbar button.ql-active .ql-fill {
    fill: #f1404b;
}

/* 移动端工具栏紧凑 */
@media (max-width: 767px) {
    .ioforum-editor-wrapper .ql-toolbar.ql-snow {
        padding: 6px 8px;
    }
    .ioforum-editor-wrapper .ql-editor {
        min-height: 140px;
        padding: 12px 14px;
    }
}

/* 详情页正文里，让 Quill 输出的 HTML 正常显示 */
.ioforum-topic-content blockquote {
    border-left: 3px solid #f1404b;
    padding-left: 12px;
    margin: 12px 0;
    color: #555;
}
.ioforum-topic-content ul,
.ioforum-topic-content ol {
    padding-left: 24px;
    margin: 10px 0;
}
.ioforum-topic-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
/* 回复任意楼 按钮 */
.ioforum-quote-btn:hover {
    background: #f0f0f0 !important;
    color: #f1404b !important;
}