/*
 * Like Girl 5.2.0 前台编辑版 v5.2.9 文章评论样式
 * 文章页专用：评论列表 + 选择男女主发表评论
 */

.comments-card {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(208, 206, 206, 0.6);
    border-radius: 1rem;
    padding: 1.8rem 2rem;
    box-shadow: 0 8px 12px #ebedf0;
}

/* 文章页的悬浮“记一篇”移到左下，避免挡住评论提交按钮 */
.fe-fab-page {
    right: auto;
    left: 1.4rem;
}

/* 固定顶部导航存在时，锚点定位留出空间 */
#comments,
[id^="comment-"] {
    scroll-margin-top: 5.5rem;
}

.comments-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: .8rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.comments-head h3 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 2rem;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    color: #333;
}

.comments-head span {
    color: #a1a1a1;
    font-size: .9rem;
}

.comment-notice {
    padding: .6rem .9rem;
    margin-bottom: 1rem;
    border-radius: .5rem;
    font-size: .95rem;
}

.comment-notice.is-ok {
    background: #eef8ee;
    color: #3d7a3d;
}

.comment-notice.is-err {
    background: #fff2f2;
    color: #b34a4a;
}

.comments-empty {
    text-align: center;
    color: #a1a1a1;
    padding: 2rem 0;
    font-size: .95rem;
}

.comment-item {
    display: flex;
    gap: .9rem;
    margin: 1.2rem 0;
}

.comment-avatar {
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: .35rem;
}

.comment-meta b {
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem;
    color: #333;
}

.comment-meta time {
    font-size: .78rem;
    color: #aaa;
}

.comment-del {
    margin-left: auto;
}

.comment-del button {
    border: 0;
    background: none;
    padding: .1rem .2rem;
    color: #c77777;
    font-size: .78rem;
    cursor: pointer;
}

.comment-text {
    padding: .65rem .9rem;
    background: #f7f7f7;
    border-radius: .5rem .9rem .9rem .9rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    word-break: break-word;
}

.comment-item.is-boy .comment-text {
    background: #eef5ff;
}

.comment-item.is-girl .comment-text {
    background: #fff2f6;
}

.comment-item.is-boy .comment-avatar {
    border-color: #e2efff;
}

.comment-item.is-girl .comment-avatar {
    border-color: #ffe3ec;
}

.comment-truncated {
    text-align: center;
    color: #aaa;
    font-size: .8rem;
    margin: .5rem 0 1rem;
}

.comment-form {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid #eee;
}

.comment-form-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .7rem;
}

.comment-form-head label {
    font-size: .9rem;
    color: #666;
}

.comment-form select,
.comment-form textarea {
    font-family: inherit;
    font-size: 1rem;
    color: #333;
    background: #fafafa;
    border: 1px solid #e2e2e2;
    border-radius: .6rem;
    outline: none;
}

.comment-form select {
    padding: .45rem .7rem;
}

.comment-form textarea {
    display: block;
    width: 100%;
    min-height: 96px;
    box-sizing: border-box;
    padding: .8rem .9rem;
    line-height: 1.7;
    resize: vertical;
}

.comment-form select:focus,
.comment-form textarea:focus {
    border-color: #b9b9b9;
    background: #fff;
}

.comment-form-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .6rem;
}

.comment-form-foot span {
    color: #aaa;
    font-size: .78rem;
}

.comment-form-foot button {
    border: 0;
    border-radius: 2rem;
    padding: .55rem 1.4rem;
    background: #222;
    color: #fff;
    font-family: inherit;
    font-size: .95rem;
    cursor: pointer;
}

.comment-form-foot button:hover {
    opacity: .8;
}

.comment-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

@media (max-width: 600px) {
    .comments-card {
        padding: 1.2rem 1rem;
        border-radius: .8rem;
    }

    .comment-avatar {
        width: 2.4rem;
        height: 2.4rem;
    }

    .comment-item {
        gap: .65rem;
    }

    .comment-text {
        padding: .55rem .75rem;
        font-size: .95rem;
    }

    .comment-form-foot button {
        padding: .5rem 1.2rem;
    }

    .fe-fab-page {
        left: 1rem;
    }
}
