/* 多级评论样式 */
.comment {
    border-left: 3px solid #007bff;
    transition: all 0.3s ease;
}

.comment:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comment-author {
    font-weight: bold;
    color: #495057;
}

.comment-content {
    line-height: 1.6;
}

/* 回复评论样式 */
.replies {
    position: relative;
}

.reply {
    transition: all 0.3s ease;
}

.reply:hover {
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.reply-author {
    font-weight: 600;
    color: #6c757d;
}

.reply-content {
    line-height: 1.5;
    font-size: 0.95em;
}

/* 回复按钮样式 */
.reply-btn {
    font-size: 0.8em;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s ease;
}

.reply-btn:hover {
    transform: translateY(-1px);
}

/* 评论表单动画 */
.comment-form {
    transition: all 0.3s ease;
}

.comment-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* 取消回复按钮 */
#cancel-reply {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 评论层级指示线 */
.replies::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #007bff, transparent);
}