/*! 艺连网络投票系统 · 富文本编辑器样式 */
.re-wrap {
    --re-border: #363637;
    --re-bg: #14171b;
    --re-toolbar-bg: #1d2124;
    --re-text: #e5eaf3;
    --re-muted: #9aa3b2;
    --re-primary: #4a5dff;
    --re-hover: #262b31;
    border: 1px solid var(--re-border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--re-bg);
    color: var(--re-text);
    font-size: 14px;
}
.re-wrap.re-light {
    --re-border: #e2e6ee;
    --re-bg: #fff;
    --re-toolbar-bg: #f7f8fb;
    --re-text: #23262e;
    --re-muted: #8a92a3;
    --re-primary: #ff4d4f;
    --re-hover: #eef1f7;
}
.re-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: var(--re-toolbar-bg);
    border-bottom: 1px solid var(--re-border);
}
.re-group {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-right: 6px;
    border-right: 1px solid var(--re-border);
}
.re-group:last-child { border-right: 0; padding-right: 0; }
.re-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    color: var(--re-text);
    font-size: 13px;
    line-height: 26px;
    cursor: pointer;
    white-space: nowrap;
}
.re-btn:hover { background: var(--re-hover); }
.re-btn:active { border-color: var(--re-primary); }
.re-select {
    height: 28px;
    padding: 0 6px;
    border-radius: 3px;
    border: 1px solid var(--re-border);
    background: var(--re-bg);
    color: var(--re-text);
    font-size: 13px;
}
.re-body { position: relative; }
.re-editor {
    min-height: 320px;
    max-height: 620px;
    overflow-y: auto;
    padding: 14px 16px;
    outline: none;
    line-height: 1.85;
    word-break: break-word;
}
.re-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--re-muted);
}
.re-source {
    width: 100%;
    min-height: 320px;
    padding: 14px 16px;
    border: 0;
    outline: none;
    resize: vertical;
    background: var(--re-bg);
    color: var(--re-text);
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.7;
}
.re-editor h1 { font-size: 24px; margin: 16px 0 10px; }
.re-editor h2 { font-size: 20px; margin: 16px 0 10px; }
.re-editor h3 { font-size: 17px; margin: 14px 0 8px; }
.re-editor h4 { font-size: 15px; margin: 12px 0 8px; }
.re-editor p { margin: 0 0 10px; }
.re-editor ul, .re-editor ol { margin: 0 0 10px; padding-left: 22px; }
.re-editor blockquote {
    margin: 0 0 12px;
    padding: 8px 14px;
    border-left: 3px solid var(--re-primary);
    background: rgba(74, 93, 255, .07);
    color: var(--re-text);
}
.re-wrap.re-light .re-editor blockquote { background: #f4f6ff; }
.re-editor pre {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 4px;
    background: #0f1216;
    color: #d7e2ff;
    overflow-x: auto;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 13px;
}
.re-wrap.re-light .re-editor pre { background: #f4f6fb; color: #2b3550; }
.re-editor img { max-width: 100%; height: auto; border-radius: 4px; }
.re-editor hr { border: 0; border-top: 1px dashed var(--re-border); margin: 16px 0; }
.re-editor table { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.re-editor th, .re-editor td { border: 1px solid var(--re-border); padding: 6px 8px; }
.re-editor a { color: var(--re-primary); }
.re-status {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    border-top: 1px solid var(--re-border);
    background: var(--re-toolbar-bg);
    color: var(--re-muted);
    font-size: 12px;
}
.re-wrap.is-uploading::after {
    content: "图片上传中…";
    position: absolute;
    right: 14px;
    bottom: 44px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: 12px;
}
.re-wrap.is-full {
    position: fixed;
    inset: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}
.re-wrap.is-full .re-body { flex: 1; overflow: hidden; display: flex; }
.re-wrap.is-full .re-editor, .re-wrap.is-full .re-source { flex: 1; max-height: none; }
