/* 评论列表样式 */
.comment-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.comment-item {
    border-bottom: 2px solid #edeff1;
    padding: 16px;
    transition: background-color 0.2s ease;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item:hover {
    background-color: #f8f9fa;
}

.comment-content {
    display: flex;
    gap: 12px;
}

.comment-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 40px;
}

.vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #878a8c;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.vote-btn:hover:not(:disabled) {
    background-color: #f6f7f8;
    color: #1c1c1c;
}

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

.comment-vote[data-user-vote="1"] .vote-btn[data-vote-type="1"] {
    color: #ff4500;
    background-color: #fff4f0;
}

.comment-vote[data-user-vote="-1"] .vote-btn[data-vote-type="-1"] {
    color: #7193ff;
    background-color: #f0f3ff;
}

.vote-score {
    font-size: 12px;
    font-weight: 700;
    color: #1c1c1c;
    min-height: 16px;
    display: flex;
    align-items: center;
}

.comment-main {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    font-size: 12px;
    color: #7c7c83;
    margin-bottom: 8px;
    line-height: 1.4;
}

.comment-link {
    color: #0079d3;
    text-decoration: none;
    font-weight: 500;
}

.comment-link:hover {
    color: #004a87;
}

.user-link {
    color: #0079d3;
    text-decoration: none;
    font-weight: 500;
}

.user-link:hover {
    color: #004a87;
}

.comment-text {
    color: #1c1c1c;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
    word-wrap: break-word;
}

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

.comment-action {
    color: #878a8c;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.comment-action:hover {
    background-color: #f6f7f8;
    color: #1c1c1c;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: white;
    border-radius: 8px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.empty-state p {
    font-size: 14px;
    color: #7c7c83;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comment-item {
        padding: 12px;
    }
    
    .comment-content {
        gap: 8px;
    }
    
    .comment-vote {
        min-width: 32px;
    }
    
    .vote-btn {
        font-size: 14px;
        padding: 2px 6px;
    }
    
    .comment-text {
        font-size: 13px;
    }
    
    .empty-state {
        padding: 40px 15px;
    }
}