/* 评论区域容器样式 */
.comment-section {
    margin-top: 0;
    padding-top: 20px;
    width: 100%;
}

.comment-container {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* 工具评论样式 */
.tool-comment-list {
    width: 100%;
    margin: 0;
    padding: 0;
}

.tool-comment-item {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.tool-comment-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.comment-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    overflow: hidden;
    border: 1px solid #eee;
}

.comment-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comment-username {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.comment-time {
    font-size: 12px;
    color: #999;
}

.comment-content {
    font-size: 14px; line-height: 1.6; color: #555; padding: 12px; border-radius: 6px; background: #f8f9fa; margin-bottom: 12px; word-wrap: break-word;
}

.comment-reply {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    position: relative;
}

.comment-reply:before {
    content: "管理员回复：";
    color: #007bff;
    font-weight: 500;
}

.comment-reply-time {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #999;
    text-align: right;
}

/* 评论分页样式 */
.comment-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.pagination-btn {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.pagination-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.pagination-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 13px;
    color: #666;
    margin: 0 8px;
}

/* 评论数量显示 */
.comment-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 16px;
    border: 1px solid #eee;
}

.comment-count span {
    color: #007bff;
    font-weight: 600;
}

/* 暗黑模式下的工具评论样式 */
body.dark-mode .tool-comment-item {
    background: #2a2a2a;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

body.dark-mode .tool-comment-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

body.dark-mode .comment-avatar {
    background: #333;
    border-color: rgba(255,255,255,0.1);
    color: #ddd;
}

body.dark-mode .comment-username {
    color: #ddd;
}

body.dark-mode .comment-time {
    color: #888;
}

body.dark-mode .comment-content {
    color: #ccc;
    border-bottom-color: rgba(255,255,255,0.05);
}

body.dark-mode .comment-reply {
    background: #242424;
    color: #ccc;
}

body.dark-mode .comment-reply:before {
    color: #a78bfa;
}

body.dark-mode .comment-reply-time {
    color: #888;
}

body.dark-mode .comment-pagination {
    background: #2a2a2a;
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .pagination-btn {
    background: #242424;
    border-color: rgba(255,255,255,0.1);
    color: #ccc;
}

body.dark-mode .pagination-btn:hover:not(:disabled) {
    background: #333;
    border-color: #a78bfa;
    color: #a78bfa;
}

body.dark-mode .pagination-btn.active {
    background: #a78bfa;
    border-color: #a78bfa;
    color: #111;
}

body.dark-mode .pagination-info {
    color: #ccc;
}

body.dark-mode .comment-count {
    background: #242424;
    border-color: rgba(255,255,255,0.1);
    color: #ccc;
}

body.dark-mode .comment-count span {
    color: #a78bfa;
}

/* 评论表单样式 */
#tool_comment_form {
    margin-bottom: 20px;
}

#tool_comment_content {
    resize: vertical;
    min-height: 80px;
}

.additional-fields {
    transition: all 0.3s ease;
}

.captcha-input {
    width: 100px;
}

.captcha-img {
    margin-left: 10px;
}