/* 富文本编辑器样式 */
.rich-editor-container {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    margin: 10px 0;
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
}

.editor-btn {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor-btn:hover {
    background: #f3f4f6;
    border-color: #d4af37;
}

.editor-btn:active {
    background: #e5e7eb;
}

.editor-select {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    min-width: 90px;
    height: 36px;
}

.editor-select:hover {
    border-color: #d4af37;
}

.editor-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.editor-separator {
    width: 1px;
    height: 28px;
    background: #d1d5db;
    margin: 0 6px;
}

.rich-editor-content {
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #1f2937;
    outline: none;
}

.rich-editor-content:focus {
    background: #fefefe;
}

/* 编辑器内容样式 */
.rich-editor-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
}

.rich-editor-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.rich-editor-content ul,
.rich-editor-content ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

.rich-editor-content li {
    margin: 5px 0;
}

.rich-editor-content h1, 
.rich-editor-content h2, 
.rich-editor-content h3 {
    margin: 15px 0 10px 0;
    font-weight: 600;
}

.rich-editor-content h1 {
    font-size: 2em;
}

.rich-editor-content h2 {
    font-size: 1.5em;
}

.rich-editor-content h3 {
    font-size: 1.25em;
}

.rich-editor-content p {
    margin: 8px 0;
}

.rich-editor-content blockquote {
    border-left: 4px solid #d4af37;
    padding-left: 15px;
    margin: 15px 0;
    color: #6b7280;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .rich-editor-toolbar {
        padding: 10px;
        gap: 4px;
    }
    
    .editor-btn {
        min-width: 32px;
        height: 32px;
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .editor-select {
        min-width: 75px;
        height: 32px;
        font-size: 13px;
        padding: 6px 8px;
    }
    
    .editor-separator {
        height: 24px;
        margin: 0 4px;
    }
    
    .rich-editor-content {
        min-height: 150px;
        padding: 12px;
    }
}

