<div class="comment-section">
    {% for comment in comments.approved %}
      <div class="comment{% if comment.parent %} child-comment ml-4{% endif %}">
        <div class="comment-author">{{ comment.user.username }}</div>
        <div class="comment-content">{{ comment.content }}</div>
        <div class="comment-actions">
          <button class="reply-btn" data-comment-id="{{ comment.id }}">
            回复
          </button>
        </div>
        
        {# 递归显示子评论 #}
        {% if comment.replies.all %}
          {% include "comments/_comment_list.html" with comments=comment.replies.all %}
        {% endif %}
      </div>
    {% endfor %}
  </div>