/* ========== 博客互动区样式 ========== */

/* 文章互动栏 */
.article-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px;
    background: var(--bg);
    border-radius: 12px;
    margin-top: 30px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text);
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn.liked {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.action-btn .icon {
    font-size: 1.2rem;
}

.action-stats {
    margin-left: auto;
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 评论区 */
.comments-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.comments-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
}

.comments-count {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 评论表单 */
.comment-form {
    background: var(--bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.form-row {
    margin-bottom: 15px;
}

.form-row input {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-row input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    resize: vertical;
    font-family: inherit;
    transition: all 0.2s;
}

.form-row textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 评论列表 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
}

.comment-item:hover {
    border-color: #ccc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comment-item.reply {
    margin-left: 40px;
    border-left: 3px solid var(--primary);
}

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

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.author-name {
    font-weight: 600;
    color: var(--text);
}

.author-ip {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: 8px;
}

.comment-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 12px;
}

.reply-btn {
    font-size: 0.85rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.2s;
}

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

/* 空评论状态 */
.no-comments {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.no-comments .icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 响应式 */
@media (max-width: 768px) {
    .article-actions {
        flex-wrap: wrap;
        padding: 15px;
        gap: 15px;
    }
    
    .action-stats {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
    
    .comments-section {
        padding: 25px;
    }
    
    .comment-item.reply {
        margin-left: 15px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
