/* ===== 评论区域样式 ===== */
.comments-area {
    background: white;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 2.5rem;
    margin: 2rem 0;
}

/* ===== 评论标题 ===== */
.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #000;
    position: relative;
}

.comments-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #000;
    border-radius: 1px;
}

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

.comment-list .children {
    list-style: none;
    margin-left: 1.5rem;
}


.comment-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-author .avatar {
    border-radius: 50%;
    border: 2px solid #000;
    transition: transform 0.3s ease;
}

.comment-author .avatar:hover {
    transform: scale(1.05);
}

.comment-author cite.fn {
    font-style: normal;
    font-weight: 600;
    font-size: 0.9rem;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.comment-metadata a {
    font-size: 0.8rem;
    color: #666;
    text-decoration: none;
}

/* ===== 评论内容 ===== */
.comment-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 0.8rem;
}
/* 待审评论的特殊样式 */
.comment-list .comment-awaiting-moderation {
    color: #f59e0b;
}



/* ===== 回复按钮 ===== */
.comment .reply {
    display: flex;
    justify-content: end;
}

.comment-reply-link {
    text-decoration: none;
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 500;
}

.comment-reply-login{
    font-size: 0.9rem;
    text-decoration: none;
    color: #2563eb;
}


/* ===== 评论表单样式 ===== */
.comment-respond {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    border: 2px solid #000;
}

/* 在评论表单中 */
.comment #respond{
    margin-bottom: 2rem;
}

.comment-reply-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-reply-title::before {
    display: none;
}

/* 取消回复链接 */
.comment-reply-title #cancel-comment-reply-link {
    font-size: 0.8rem;
    color: #000;
    text-decoration: none;
    margin-left: auto;
    padding: 0.3rem 0.6rem;
    border: 2px solid #000;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.comment-reply-title #cancel-comment-reply-link:hover {
    background: #000;
    color: white;
}

/* ===== 表单字段样式 ===== */
.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.comment-form .required {
    color: #ef4444;
}

.comment-form .logged-in-as {
    grid-column: 1 / -1;
    font-size: 0.9rem;
    color: #666;
}
.comment-form .logged-in-as a{
    text-decoration: none;
    color: #2563eb;
}
.required-field-message{
    display: block;
    margin-top: 0.5rem;
}
.comment-notes{
    font-size: 0.9rem;
    color: #666;
}
 .must-log-in {
    font-size: 0.9rem;
    color: #666;
}
.must-log-in a{
    text-decoration: none;
    color: #2563eb;
}

.comment-form-comment {
    grid-column: 1 / -1;
}

.comment-form-author,
.comment-form-email{
    display: flex;
    flex-direction: column;
}

.comment-form-url{
    display: none;
}

/* 可选标签样式 */
.comment-form .optional {
    font-weight: 400;
    color: #666;
    font-size: 0.85rem;
}

.comment-form label {
    font-weight: 500;
    color: #000;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    padding: 0.8rem 1rem;
    border: 2px solid #000;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
    resize: vertical;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: none;
    background: #fff;
}

.comment-form textarea {
    min-height: 120px;
    line-height: 1.6;
    width: 100%;
}

.comment-form-cookies-consent{
    grid-column: 1 / -1;
}

/* ===== 提交按钮 ===== */
.form-submit {
    text-align: left;
    margin-top: 0.5rem;
}

.comment-form input[type="submit"] {
    background: #2563eb;
    color: white;
    border: 2px solid #2563eb;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: none;
}

.comment-form input[type="submit"]:active {
    background: #1e40af;
    border-color: #1e40af;
    transform: none;
}

/* ===== 评论关闭提示 ===== */
.no-comments {
    background: transparent;
    color: #000;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    border: 2px solid #000;
    position: relative;
}

.no-comments::before {
    display: none;
}

/* 评论完全关闭时的样式 */
.comments-closed-notice {
    background: transparent;
    color: #000;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    border: 2px solid #000;
}

.comments-closed-notice::before {
    display: none;
}

.comments-closed-notice h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #000;
}

.comments-closed-notice p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
}



/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .comments-area {
        padding: 1.5rem;
        margin: 1rem 0;
        border-radius: 8px;
    }

}

@media (max-width: 480px) {
    .comments-area {
        padding: 1rem;
        border-radius: 6px;
    }

}