/* 评论区域样式 */
.comments-section {
    background: var(--color-bg-secondary);
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
}

.comments-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.comments-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: 1rem;
}

.comments-section p {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.comment-form-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    font-family: inherit;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 103, 0, 0.1);
}

.comment-form-actions {
    margin-top: 15px;
    text-align: right;
}

.login-prompt {
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.login-prompt a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.comments-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 20px;
}

.comment-avatar {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

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

.comment-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.comment-time {
    font-size: 0.9rem;
    color: #000000;
}

.comment-content p {
    text-align: left;
    margin-bottom: 15px;
    color: #000000;
}

.comment-item.hot-comment {
    border-left: 4px solid var(--color-primary);
    padding-left: 15px;
    background-color: white;
}

.hot-comment-badge {
    display: inline-block;
    background-color: white;
    color: #000000;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 8px;
    border: 1px solid var(--color-primary);
}

.reply-form {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.reply-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    margin-bottom: 10px;
    font-family: inherit;
}

.reply-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.replies-container {
    margin-top: 15px;
    margin-left: 20px;
    border-left: 2px solid #eee;
    padding-left: 15px;
}

.reply-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.reply-avatar {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.reply-content {
    flex: 1;
}

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

.reply-header h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.reply-time {
    font-size: 0.8rem;
    color: #000000;
}

.reply-content p {
    font-size: 0.9rem;
    color: #000000;
    margin: 0;
}

.delete-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

.delete-reply-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.delete-reply-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

.reply-actions {
    margin-top: 5px;
    display: flex;
    justify-content: flex-end;
}

.comment-actions {
    display: flex;
    gap: 10px;
}

.like-btn {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

@media (max-width: 768px) {
    .comments-section {
        padding: 60px 0;
    }
    
    .comments-section h2 {
        font-size: 2rem;
    }
    
    .comment-item {
        flex-direction: column;
        padding: 20px;
    }
    
    .comment-avatar {
        font-size: 2rem;
        align-self: flex-start;
    }
}
