/* =================================
   评论专用样式（无背景色）
   ================================= */

.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.comments-title {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    margin-bottom: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-body {
    position: relative;
}

.comment-author {
    margin-bottom: 10px;
}

.comment-author .avatar {
    float: left;
    margin-right: 15px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.comment-author .fn {
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.comment-author .fn:hover {
    color: #d83127;
}

.comment-author .says {
    color: #666;
    margin-left: 5px;
}

.comment-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
    clear: left;
}

.comment-meta a {
    color: #999;
    text-decoration: none;
}

.comment-meta a:hover {
    color: #d83127;
}

.comment-awaiting-moderation {
    color: #d83127;
    font-style: italic;
}

.comment-content {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    clear: both;
}

.comment-content p {
    margin-bottom: 15px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    text-align: right;
}

.comment-reply-link {
    color: #d83127;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #d83127;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background-color: #d83127;
    color: #fff;
    text-decoration: none;
}

.comment-navigation {
    margin: 30px 0;
    text-align: center;
}

.comment-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.comment-navigation a {
    color: #d83127;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid #d83127;
    border-radius: 3px;
}

.comment-navigation a:hover {
    background-color: #d83127;
    color: #fff;
}

.no-comments {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 0;
}

/* 评论表单样式 */
.comment-respond {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.comment-reply-title {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
}

.comment-form {
    margin: 20px 0;
}

.comment-form p {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.required {
    color: #d83127;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: #d83127;
    outline: none;
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form .form-submit {
    margin-top: 20px;
}

.comment-form .submit {
    background-color: #d83127;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.comment-form .submit:hover {
    background-color: #c02920;
}

/* 嵌套评论缩进 */
.children {
    list-style: none;
    margin-left: 30px;
    padding-left: 0;
}

.children .comment-item {
    border-left: 2px solid #f0f0f0;
    padding-left: 20px;
}

/* WordPress评论表单样式 */
.wp-comment-form {
    margin: 20px 0;
}

.wp-comment-form .form-group {
    margin-bottom: 15px;
}

.wp-comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.wp-comment-form input[type="text"],
.wp-comment-form input[type="email"],
.wp-comment-form input[type="tel"],
.wp-comment-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wp-comment-form .btn {
    background-color: #d83127;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.wp-comment-form .btn:hover {
    background-color: #c72e1f;
}

/* WordPress最新评论小工具样式覆盖（无背景色） */
.wp-block-latest-comments {
    background: none !important;
    background-color: transparent !important;
}

.wp-block-latest-comments__comment {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.wp-block-latest-comments__comment-meta {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 5px 0 !important;
}

.wp-block-latest-comments__comment-author {
    background: none !important;
    background-color: transparent !important;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: bold !important;
}

.wp-block-latest-comments__comment-author:hover {
    color: #d83127 !important;
    background: none !important;
    background-color: transparent !important;
}

.wp-block-latest-comments__comment-link {
    background: none !important;
    background-color: transparent !important;
    color: #666 !important;
    text-decoration: none !important;
}

.wp-block-latest-comments__comment-link:hover {
    color: #d83127 !important;
    background: none !important;
    background-color: transparent !important;
}

.wp-block-latest-comments__comment-excerpt {
    background: none !important;
    background-color: transparent !important;
    color: #666 !important;
    margin: 5px 0 !important;
    padding: 0 !important;
}

.wp-block-latest-comments__comment-date {
    background: none !important;
    background-color: transparent !important;
    color: #999 !important;
    font-size: 12px !important;
}

/* 确保所有评论相关元素都没有背景色 */
.comment,
.comment-list,
.comment-content,
.comment-meta,
.comment-author,
.comment-body,
.comment-respond,
.comment-form,
.comments-area,
.wp-block-latest-comments *,
[class*="comment"],
[class*="wp-block-latest-comments"] {
    background: none !important;
    background-color: transparent !important;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .comment-author .avatar {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }
    
    .children {
        margin-left: 15px;
    }
    
    .children .comment-item {
        padding-left: 15px;
    }
    
    .comment-navigation .nav-links {
        flex-direction: column;
        gap: 10px;
    }
} 