/* 评论区统一样式设计 - 简约现代风格 */
:root {
    --main-color: #4a89dc;
    --light-color: rgba(74, 137, 220, 0.08);
    --hover-color: rgba(74, 137, 220, 0.15);
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
    --bg-light: #f8f9fa;
    --bg-white: #fff;
    --border-color: #eaeaea;
    --border-radius: 6px;
    --box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    --spacing: 15px;
}

/* 页面布局优化 - 只保留评论区相关样式 */
.blog-comments-section {
    margin-top: 20px;
}

/* 评论区容器 */
.blog-simple-comments {
    max-width: 900px;
    margin: 40px auto 30px;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 评论区标题 */
.comments-header {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--main-color);
    display: inline-block;
}

/* 评论区副标题 */
.comments-subheader {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* 评论表单 */
.comment-form {
    margin-bottom: 30px;
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
}

/* 评论表单布局 */
.comment-form-wrapper {
    display: flex;
    align-items: flex-start;
}

.comment-form-content {
    flex-grow: 1;
    margin-left: var(--spacing);
}

/* 评论输入框 */
.comment-form textarea, .inline-reply-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    background-color: var(--bg-light);
    transition: all 0.2s;
}

.comment-form textarea:focus, .inline-reply-textarea:focus {
    outline: none;
    border-color: var(--main-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 2px rgba(74, 137, 220, 0.1);
}

/* 评论工具栏 */
.comment-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.comment-tools {
    display: flex;
    gap: 12px;
}

.tool-icon {
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all 0.2s;
    padding: 4px 8px;
    border-radius: 4px;
}

.tool-icon:hover {
    color: var(--main-color);
    background-color: var(--light-color);
}

/* 按钮样式统一 */
.comment-btn, .send-inline-reply {
    padding: 8px 16px;
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.comment-btn i, .send-inline-reply i {
    margin-left: 6px;
}

.comment-btn:hover, .send-inline-reply:hover {
    background-color: #3b78c7;
    transform: translateY(-1px);
}

.cancel-inline-reply {
    padding: 8px 16px;
    background-color: #f1f1f1;
    color: var(--text-secondary);
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-inline-reply:hover {
    background-color: #e0e0e0;
}

/* 评论列表头部 */
.comments-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.comments-count {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.comments-sort {
    font-size: 13px;
    color: var(--text-secondary);
}

.comments-sort select {
    margin-left: 5px;
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

/* 评论列表 */
.comments-list {
    margin-top: 15px;
}

/* 评论项 */
.comment-item {
    padding: 18px;
    margin-bottom: 15px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    display: flex;
    position: relative;
    transition: all 0.2s;
}

.comment-item:hover {
    background-color: #f2f4f7;
}

/* 评论头像 */
.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

/* 评论内容容器 */
.comment-content-wrapper {
    flex: 1;
}

/* 评论元数据 */
.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* 评论作者 */
.comment-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

/* 评论日期 */
.comment-date {
    font-size: 12px;
    color: var(--text-light);
}

/* 评论内容 */
.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* 评论操作 */
.comment-actions {
    display: flex;
    gap: 12px;
}

.comment-like, 
.comment-reply-btn,
.toggle-replies {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.comment-like i, 
.comment-reply-btn i,
.toggle-replies i {
    margin-right: 4px;
    font-size: 14px;
}

.comment-like:hover, 
.comment-reply-btn:hover,
.toggle-replies:hover {
    color: var(--main-color);
    background-color: var(--light-color);
}

/* 点赞高亮状态 */
.comment-like.liked {
    color: var(--main-color);
}

/* 回复区域 */
.comment-replies {
    margin-top: 10px;
    margin-left: 25px;
    border-left: 2px solid var(--border-color);
    padding-left: 15px;
}

/* 回复评论样式 */
.comment-item.reply {
    padding: 12px 15px;
    margin-bottom: 10px;
    background-color: rgba(74, 137, 220, 0.03);
}

.comment-item.reply .comment-avatar {
    width: 30px;
    height: 30px;
}

.comment-item.reply .comment-content {
    font-size: 13px;
}

/* 内联回复表单 */
.inline-reply-form {
    margin-top: 8px;
    margin-bottom: 10px;
    background-color: white;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    overflow: hidden;
}

.inline-reply-textarea {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: none;
    resize: vertical;
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.inline-reply-textarea:focus {
    outline: none;
}

.inline-reply-actions {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eaeaea;
    padding: 6px;
    background-color: #f9f9f9;
}

/* 发送按钮 */
.send-inline-reply {
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.send-inline-reply:hover {
    background-color: #3b78c7;
}

/* 取消按钮 */
.cancel-inline-reply {
    background-color: #f1f1f1;
    color: #666;
    border: none;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 12px;
    cursor: pointer;
}

.cancel-inline-reply:hover {
    background-color: #e5e5e5;
}

/* 无评论提示 */
.no-comments {
    text-align: center;
    padding: 30px 0;
    color: var(--text-light);
    font-style: italic;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    font-size: 14px;
}

/* 登录提示 */
.login-to-comment {
    text-align: center;
    padding: 20px;
    margin-bottom: 25px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

.login-to-comment p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.login-to-comment a {
    color: var(--main-color);
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
    transition: all 0.2s;
}

.login-to-comment a:hover {
    text-decoration: underline;
}

/* 错误提示 */
.alert-error {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    background-color: #ffebee;
    color: #d32f2f;
    border-left: 3px solid #d32f2f;
    font-size: 14px;
}

/* 评论高亮样式 */
.comment-highlight {
    animation: highlight-pulse 1.5s ease-in-out;
}

@keyframes highlight-pulse {
    0% { background-color: var(--light-color); }
    50% { background-color: var(--hover-color); }
    100% { background-color: var(--light-color); }
}

/* 响应式样式 */
@media (max-width: 768px) {
    .blog-simple-comments {
        padding: 15px;
    }
    
    .comment-form-wrapper {
        flex-direction: column;
    }
    
    .comment-form-content {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .comment-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-tools {
        margin-bottom: 10px;
    }
    
    .comment-btn {
        width: 100%;
        justify-content: center;
    }
} 