.drag-active {
    background: #F2F2F2; // 拖上去时稍微改变下背景色
}
.textarea-container {position: relative;}

.toolbar-btn {
    margin: 3px 4px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: none;
    background-color: white;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #495057;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

.toolbar-btn:active {
    transform: scale(0.95);
}

/* 颜色选择器样式 */
#colorPicker {
    position: absolute;
    top: 100%;
    left: -50px;
    margin-top: 8px;
    padding: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 9999;
    min-width: 200px;
}

#colorPicker.show {
    display: block;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(8, 24px);
    gap: 4px;
}

.color-item {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #eee;
    transition: transform 0.1s ease;
}

.color-item:hover {
    transform: scale(1.1);
}

/* 快速回复面板 - 精准定位版 */
#quickReplyPanel {
    position: fixed; /* 改为固定定位，避免父元素影响 */
    top: 0;
    left: 0;
    width: 250px;
    padding: 8px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 9999;
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    animation: fadeIn 0.2s ease;
}

#quickReplyPanel.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-reply-item {
    padding: 10px 16px;
    color: #495057;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.95rem;
    border-bottom: 1px solid #f8f9fa;
}

.quick-reply-item:last-child {
    border-bottom: none;
}

.quick-reply-item:hover {
    background-color: #e9f5ff;
    color: #1976d2;
}

.editor-content {
    padding: 1rem;
}

/* 响应式适配 */
@media (max-width: 600px) {
    .toolbar-btn {
        width: 25px;
        height: 25px;
    }

    .color-grid {
        grid-template-columns: repeat(6, 24px);
    }

    #quickReplyPanel {
        width: 200px;
    }
}

/*表情样式*/
#facePanel {
    position: absolute;
    top: 100%;
    left: -40px;
    min-width: 220px;
    margin-top: 8px;
    padding: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 9999;
}
#facePanel.show {
    display: block;
}
#faceList {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.face-item {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: none;
    background-color: white;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #495057;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}
.face-item:active {
    transform: scale(0.95);
}