/* 评论 */
.commentxy {
    width: 100%;
    height: 100%;
    /* margin-top: 25px;
    padding: 20px; */
    background-color: #fff;
}

.commentxy .flex-comment {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

/* 用户头像 */
.commentxy .flex-comment .avatar-box a {
    width: 40px;
    height: 40px; 
    border-radius: 50%;
    overflow: hidden;
    display: block;
}

.commentxy .flex-comment .avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 用户上传的图片 */
.flex-imgaes {
    width: 100%;
    padding-left: 12px;
    display: flex;
    gap: 9px;
    /* height: 50px; */
}

.flex-imgaes .image-preview-box {
    width: 64px;
    height: 64px;
    position: relative;
    border-radius: 3px;
    overflow: hidden;
}

.flex-imgaes .image-preview-box .btn-end {
    position: absolute;
    top: 1px;
    right: 1px;
    padding: 4px;
    border-radius: 50%;
    width: 16px;
    transition: all .2s;
    height: 16px;
    line-height: 6px;
    cursor: pointer;
    font-size: 11px;
    color: var(--white);
    background-color: #8a919f9a;
}

.flex-imgaes .image-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 评论输入组 */
.commentxy .flex-comment .content {
    width: 100%;
}

.commentxy .flex-comment .content {
    background-color: #f2f3f570;
    transition: all 0.3s;
    border-radius: 6px;
    overflow: hidden;
}

.commentxy .flex-comment .content .min-body {
    display: flex;
    flex-direction: column;
}

.commentxy .flex-comment .content:hover {
    background-color: #ebebed;
}

/* 点击放大 输入框*/
.focused {
    border: 1px solid var(--logo);
    background-color: var(--white) !important;
}

.empty:before {
    content: attr(placeholder);
    position: absolute;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    color: #8a919f;
}

.focused .dig.rich-input {
    position: relative;
    min-height: 150px !important;
    max-height: 300px !important;
}



.commentxy .flex-comment .content .min-body .rich-input {
    position: relative;
    padding: 8px 12px;
    width: 100%;
    color: #1f67c5;
    outline: none;
    border: none;
    box-sizing: border-box;
    line-height: 28px;
    background-color: transparent;
    font-size: 16px;
    min-height: 44px;
    max-height: 100px;
    overflow: auto;

    flex: 1;
    max-height: none;
}

.commentxy .flex-comment .content .min-body .emji-flex {
    height: 48px;
    padding: 0 12px 0 6px;
    display: flex;
    align-items: center;
}

.hover-color:hover {
    color: var(--logo) !important;
}

.commentxy .flex-comment .content .min-body .emji-flex li {
    font-size: 20px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    color: var(--size);
}

.text-count-limit,
.color-ff {
    color: var(--size);
}

.commentxy .submit-btn {
    border-radius: 4px;
    background: var(--logo);
    height: 32px;
    flex-shrink: 0;
    color: var(--white);
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 60px;
    border: none;
    cursor: pointer;
    margin-left: 9px;
}

.submit-btn.hover-op {
    cursor: not-allowed;
    opacity: .5;
}

/* 评论内容显示部分style */

.comment-list-header {
    margin-top: 25px;
    gap: 15px;
    align-items: center;
}



.comment-list-header span {
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    display: inline-block;
    color: var(--size);
    font-weight: 400;
    cursor: pointer;
    border-radius: 2px;
    padding: 3px 4px;
}

.comment-list-header span.avt {
    color: var(--logo);
}

.comment-list-wrapper .comment-card {
    gap: 10px;
    margin-top: 25px;
}

.comment-list-wrapper .comment-card .comm-box {
    gap: 10px;
    /* align-items: center; */
    margin-bottom: 25px;
}

.comment-avatar a {
    width: 40px;
    display: block;
    height: 40px;
    /* background-color: #1e80ff; */
    border-radius: 50%;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-header {
    /* font-size: 14px; */
    font-weight: 400;
    width: 100%;
}

.comment-content-short,
.content-se {
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    padding: 10px 0;
    word-break: break-word;
}

/* 评论图片 */
.comment-image {
    position: relative;
    border-radius: 4px;
    display: inline-block;
    width: 120px;
    height: 120px;
    margin-right: 12px;
    border: 1px solid var(--gray-border);
    overflow: hidden;
    cursor: zoom-in;
}

.comment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-header .name a {
    color: var(--size);
    display: block;
}

.comment-header .name a {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-transition: color .2s ease;
    transition: color .2s ease;
    white-space: nowrap;
}

.comment-header .author-tag {
    background: rgba(41, 151, 247, 0.1);
    color: #2997f7;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    border-radius: 2px;
    width: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    flex-shrink: 0;
}

.comment-header .author-intro {
    color: var(--size);
}

/* 多更 */
.comment-header .comment-action {
    align-items: center;
    justify-content: space-between;
    color: var(--size);
    font-size: 13px;
}

.comment-header .comment-action .flex-op {
    display: flex;
    gap: 16px;
    align-items: center;
}

.comment-header .comment-action .flex-op .align {
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
}

.comment-header .comment-action .flex-op .align:hover {
    color: var(--logo);
}

/* 更多按钮 */
/* 更多按钮容器，必须相对定位 */
.comment-header .comment-action .more-btn {
    position: relative;
    cursor: pointer;
}

/* 菜单容器：默认隐藏，绝对定位在按钮下方 */
.comment-header .comment-action .more-btn .more-menu {
    display: none;
    position: absolute;
    top: 100%;
    /* 贴在按钮底部 */
    right: 0;
    /* 右对齐（可根据需要调整） */
    margin-top: 8px;
    /* 与按钮的间隙，留给小三角和桥接层 */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    padding: 6px 0;
    z-index: 1000;
    white-space: nowrap;
    animation: menuFade 0.2s ease;
}

/* 小三角（指向按钮）- 朝上 */
.comment-header .comment-action .more-btn .more-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    /* 贴在菜单顶部外侧 */
    right: 12px;
    /* 与按钮三个点的位置对齐（可微调） */
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    /* 朝上的三角 */
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.03));
    z-index: 2;
}

/* 透明桥接层：覆盖按钮与菜单之间的间隙（8px） */
.comment-header .comment-action .more-btn .more-menu::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    /* 贴在菜单顶部外侧 */
    height: 8px;
    /* 与 margin-top 等宽，覆盖间隙 */
    background: transparent;
    z-index: 1;
}

/* 菜单项样式 */
.comment-header .comment-action .more-btn .more-menu .menu-item {
    padding: 8px 16px;
    font-size: 14px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-header .comment-action .more-btn .more-menu .menu-item:hover {
    background-color: rgba(0, 114, 255, 0.05);
    color: var(--logo);
}

/* 显示菜单：鼠标悬停在按钮或菜单上时显示 */
.comment-header .comment-action .more-btn:hover .more-menu,
.comment-header .comment-action .more-btn .more-menu:hover {
    display: block;
}

/* 入场动画 */
@keyframes menuFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
        /* 菜单从下往上出现，更自然 */
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 回复缩小头像 */
.Reply .comment-avatar a {
    width: 32px;
    height: 32px;
}

/* 加载更多评论按钮 */
.fetch-more-comment {
    border: none;
    width: 100%;
    margin-top: 12px;
    border-radius: 4px;
    gap: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--size);
    font-size: 15px;
    height: 52px;
    cursor: pointer;
    background: var(--gray-light);
    font-weight: 500;
    transition: all .2s;
}

/* end */

/* 评论点赞后的样式 */
.liked {
    color: var(--logo);
}

/* 剩余评论 */
.fetch-more-comment {
    border: none;
    width: 100%;
    margin-top: 12px;
    border-radius: 4px;
    gap: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--size);
    font-size: 15px;
    height: 52px;
    cursor: pointer;
    background: var(--gray-light);
    font-weight: 500;
    transition: all .2s;
}

/* 分割线 |*/
.divider {
    display: inline-block;
    width: 1px;
    height: 13px;
    background: var(--gray-border);
    margin: 0 3px;
}


/* 回复评论框 */
/* ========== 回复框容器 ========== */
.reply-box {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 16px;
    margin: 12px 0;
    z-index: 10;
}

/* ========== 输入框区域 ========== */
.reply-box .reply-text {
    min-height: 80px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: #f9fafb;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    width: 100%;
    resize: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #1f2937;
}
 
/* 占位符样式（contenteditable 元素需要伪类处理） */
.reply-box .reply-text[placeholder]:empty:before {
    content: attr(placeholder);
    color: #9ca3af;
    pointer-events: none;
}

/* ========== 图片预览区 ========== */
.reply-box .reply-preview {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 预览图片项（与原有逻辑兼容，不新增类） */
.reply-box .reply-preview .image-preview-box {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f1f5f9;
}

.reply-box .reply-preview img {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    display: block;
}

.reply-box .reply-preview .btn-end {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    transition: transform 0.1s;
}

/* ========== 工具栏 ========== */
.reply-box .emji-flex {
    display: flex;
    align-items: center;
    margin-top: 16px;
    gap: 8px;
}

/* 工具栏按钮基础样式（图片、表情） */
.reply-box .image-btn-reply,
.reply-box .emoji-btn-reply {
    cursor: pointer;
    padding: 6px;
    color: #6b7280;
    border: none;
    background: transparent;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    position: relative;
}

.reply-box .image-btn-reply:hover,
.reply-box .emoji-btn-reply:hover {
    background-color: #f3f4f6;
    color: #3b82f6;
}

.reply-box .image-btn-reply i,
.reply-box .emoji-btn-reply i {
    font-size: 16px;
}

/* 字数统计 */
.reply-box .text-count-wrapper {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 400;
    margin-right: 12px;
}

.reply-box .reply-count-real {
    color: #6b7280;
    font-weight: 500;
}

/* 取消按钮 */
.reply-box .cancel-reply-btn {
    padding: 8px 16px;
    background-color: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    height: 36px;
}

.reply-box .cancel-reply-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
}

/* 提交回复按钮 */
.reply-box .submit-reply-btn {
border-radius: 4px;
    background: var(--logo);
    height: 32px;
    flex-shrink: 0;
    color: var(--white);
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 60px;
    border: none;
    cursor: pointer;
    margin-left: 9px;
}

.reply-box .submit-reply-btn:hover {
    background-color: #1d4ed8; 
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.2);
}

.reply-box .submit-reply-btn:active {
    transform: translateY(0);
}

.reply-box .submit-reply-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}