/**
 * 评论表单样式修复
 * Comments Form Style Fix
 */

/* 评论区域容器 */
.comments-area {
    margin-top: 50px;
    margin-bottom: 50px;
}

/* 评论回复标题 */
.comment-respond {
    background: #f8f9fa;
    padding: 40px 35px 50px;
    border-radius: 8px;
    margin-top: 30px;
}

.comment-reply-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0a0e1a;
    line-height: 1.2;
}

/* 评论表单说明文字 */
.comment-notes,
.comment-form-comment label,
.comment-form p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.comment-notes {
    margin-bottom: 20px;
}

/* 必填标记 */
.required {
    color: #ff6b2c;
    font-weight: bold;
}

/* 评论表单字段组 */
.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-cookies-consent {
    margin-bottom: 20px;
}

/* 标签样式 */
.comment-form label {
    display: block;
    font-weight: 500;
    font-size: 15px;
    color: #0a0e1a;
    margin-bottom: 8px;
}

/* 输入框和文本域通用样式 */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e1e4e7;
    border-radius: 50px;
    font-size: 15px;
    color: #0a0e1a;
    background: #fff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #ff6b2c;
    box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.1);
}

/* 文本域特殊样式 */
.comment-form textarea {
    min-height: 150px;
    max-height: 300px;
    border-radius: 20px;
    padding: 15px 20px;
    resize: vertical;
}

/* 占位符样式 */
.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: #999;
    font-size: 14px;
}

/* 复选框容器 */
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.comment-form-cookies-consent label {
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
    font-weight: 400;
    font-size: 14px;
    color: #666;
}

/* 提交按钮 */
.comment-form .form-submit {
    margin-top: 25px;
    margin-bottom: 0;
}

.comment-form input[type="submit"],
.comment-form .submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.comment-form input[type="submit"]:hover,
.comment-form .submit:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 评论列表样式 */
.comments-wrap {
    margin-top: 40px;
}

.comments-wrap-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #0a0e1a;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

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

/* 子评论缩进 */
.comment-list .children {
    list-style: none;
    padding-left: 50px;
    margin-top: 20px;
}

@media (max-width: 767px) {
    .comment-list .children {
        padding-left: 20px;
    }
}

/* 评论内容 */
.comment-body {
    display: flex;
    gap: 20px;
}

.comment-author {
    flex-shrink: 0;
}

.comment-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    margin-bottom: 10px;
}

.comment-author-name {
    font-weight: 600;
    font-size: 16px;
    color: #0a0e1a;
    margin-right: 10px;
}

.comment-date {
    font-size: 13px;
    color: #999;
}

.comment-text p {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.6;
}

.reply {
    margin-top: 10px;
}

.comment-reply-link {
    display: inline-block;
    padding: 6px 15px;
    background: #f4ebf4;
    color: #ff6b2c;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background: #ff6b2c;
    color: #fff;
}

/* 响应式优化 */
@media (max-width: 767px) {
    .comment-respond {
        padding: 30px 20px;
    }
    
    .comment-reply-title {
        font-size: 24px;
    }
    
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .comment-form textarea {
        min-height: 120px;
    }
    
    .comment-body {
        flex-direction: column;
        gap: 15px;
    }
    
    .comment-author img {
        width: 50px;
        height: 50px;
    }
}

/* 加载状态 */
.comment-form.submitting {
    opacity: 0.6;
    pointer-events: none;
}

/* 错误提示 */
.comment-form .error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

/* 成功提示 */
.comment-form .success {
    color: #28a745;
    font-size: 14px;
    padding: 10px 15px;
    background: #d4edda;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* 无评论提示 */
.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 15px;
}

/* 评论分页 */
.comment-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-navigation a {
    padding: 8px 20px;
    background: #f8f9fa;
    color: #0a0e1a;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.comment-navigation a:hover {
    background: #ff6b2c;
    color: #fff;
}

/* 等待审核提示 */
.comment-awaiting-moderation {
    display: inline-block;
    padding: 5px 12px;
    background: #fff3cd;
    color: #856404;
    border-radius: 5px;
    font-size: 12px;
    margin-top: 10px;
}
