    /* 原有样式保持不变 */
#editor-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 150px;
    position: relative; /* 新增：为编辑器容器添加相对定位 */
}
#toolbar-container {
    border-bottom: 1px solid #eee;
    padding: 5px;
    background: #f8f9fa;
    position: relative; /* 新增：为工具栏添加相对定位 */
}
#editor-content {
    padding: 10px;
    min-height: 250px;
    line-height: 1.5;
}
#editor-container .w-e-bar {
    display: flex !important;
}
.w-e-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}
/* 修改后的表情面板样式 */
#custom-emotion-panel {
    display: none;
    position: absolute;
    z-index: 10000;
    width: 352px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
#custom-emotion-panel > div {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}
#custom-emotion-panel > div > div {
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    text-align: center;
    transition: all 0.2s;
}
#custom-emotion-panel > div > div:hover {
    background-color: #f0f0f0;
}
#custom-emotion-panel img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    pointer-events: none;
}

.comment-emotion {
    width: 24px !important;
    height: 24px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 2px !important;
}

#custom-emotion-panel img:hover {
    transform: scale(1.1);
    transition: transform 0.2s;
}

/* 基础样式 */
.comment-content {
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.6;
    font-family: inherit;
    border: none !important;  /* 确保无边框 */
    padding: 0 !important;    /* 去除内边距 */
    margin: 0 !important;     /* 去除外边距 */
    background: transparent !important; /* 透明背景 */
}

/* 去除回复区域的左边框 */
.replies {
    border-left: none !important;
}

/* 去除评论项的外边框 */
.comment-item, .reply-item {
    border: none !important;
    box-shadow: none !important;
}

/* 表情图片 */
.comment-content img.comment-emotion {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 2px;
}

/* 格式样式 */
.comment-content strong, 
.comment-content b {
    font-weight: bold;
}
.comment-content em, 
.comment-content i {
    font-style: italic;
}
.comment-content u {
    text-decoration: underline;
}
.comment-content p {
    margin: 0.5em 0;
}

.w-e-hover-bar {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}


/* 评论提示消息样式 */

.comment-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.comment-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.comment-toast.success {
    background-color: #28a745;
}

.comment-toast.error {
    background-color: #dc3545;
}

.comment-toast .toast-content {
    display: flex;
    align-items: center;
}

.comment-toast .toast-content i {
    margin-right: 10px;
    font-size: 1.2em;
}



.is-invalid {
    border-color: #dc3545 !important;
}

#captcha-error {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
    display: none;
}

#captcha-error.show {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}