/* 评论区样式 */
.comments-section {
    width: 100%;
    padding: 50px 0;
    background: #fff;
}

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

.comments-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #2c3e50;
}

/* 评论表单 */
.comment-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.comment-form h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form .btn-submit {
    padding: 12px 30px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.comment-form .btn-submit:hover {
    background-color: #0052a3;
}

/* 评论列表 */
.comments-list {
    margin-top: 30px;
}

.comment-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-header .author {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.comment-header .date {
    font-size: 13px;
    color: #95a5a6;
}

.comment-content {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

/* 回复评论 */
.comment-replies {
    margin-top: 15px;
    margin-left: 40px;
    padding-left: 20px;
    border-left: 3px solid #e0e0e0;
}

.comment-item.reply {
    background: #f8f9fa;
    border-color: #d0d0d0;
}

/* 无评论状态 */
.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
    font-size: 15px;
}

/* 验证码样式 */
.captcha-wrapper { display: flex; align-items: center; gap: 12px; background: #f0f4f8; padding: 12px 15px; border-radius: 6px; border: 1px solid #e0e0e0; }
.captcha-question { font-size: 18px; font-weight: 600; color: #2c3e50; min-width: 110px; font-family: 'Courier New', monospace; }
.captcha-wrapper input { flex: 1; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; min-width: 150px; max-width: 200px; }
.captcha-wrapper input:focus { border-color: #0066cc; outline: none; }
.captcha-refresh { width: 40px; height: 40px; border: none; background: #0066cc; color: #fff; border-radius: 4px; font-size: 20px; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.captcha-refresh:hover { background: #0052a3; transform: rotate(180deg); }

/* 响应式 */
@media (max-width: 768px) {
    .comment-form {
        padding: 20px;
    }

    .comment-replies {
        margin-left: 20px;
        padding-left: 15px;
    }
    .captcha-wrapper { flex-wrap: wrap; }
    .captcha-question { min-width: auto; }
}
