/* 评论区@用户（B66B美化插件） */

.zbb6-comment-at-box {
    position: relative;
}

/* 评论框顶部提示语 */
.zbb6-comment-at-tipline {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 7px 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted-2-color);
    background: rgba(240, 68, 148, 0.05);
    background: color-mix(in srgb, var(--focus-color) 6%, transparent);
    border-radius: var(--mini-radius);
}

.zbb6-comment-at-tipline .fa {
    margin-right: 6px;
    color: var(--focus-color);
}

/* 弹层标题和关闭按钮 */
.zbb6-comment-at-head {
    display: none;
}

.zbb6-comment-at-close {
    display: block;
    padding: 0 4px;
    font-size: 22px;
    line-height: 1;
    color: var(--muted-2-color);
}

.zbb6-comment-at-close:hover {
    color: var(--focus-color);
}

.zbb6-comment-at-panel {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 30;
    max-width: 100%;
    overflow: hidden;
    background: var(--main-bg-color);
    border: 1px solid var(--main-border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--main-shadow);
}

/* 移动端浮在输入框附近，不用遮罩，位置由 JS 计算并避开软键盘 */
.zbb6-comment-at-panel.zbb6-comment-at-mobile {
    position: fixed;
    z-index: 1090;
    max-width: none;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.zbb6-comment-at-panel.zbb6-comment-at-mobile .zbb6-comment-at-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 14px;
    border-bottom: 1px solid var(--main-border-color);
}

.zbb6-comment-at-list {
    max-height: 300px;
    overflow-y: auto;
}

.zbb6-comment-at-item {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--main-border-color);
}

.zbb6-comment-at-item:last-child {
    border-bottom: 0;
}

.zbb6-comment-at-item.active,
.zbb6-comment-at-item:hover {
    background: var(--main-border-color);
}

.zbb6-comment-at-item .avatar {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.zbb6-comment-at-info {
    min-width: 0;
    line-height: 1.4;
}

.zbb6-comment-at-name {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zbb6-comment-at-login {
    overflow: hidden;
    font-size: 12px;
    color: var(--muted-2-color);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zbb6-comment-at-tip {
    padding: 8px 14px;
    font-size: 12px;
    color: var(--muted-2-color);
    border-top: 1px dashed var(--main-border-color);
}

.zbb6-comment-at-empty {
    padding: 24px 14px;
    font-size: 13px;
    color: var(--muted-2-color);
    text-align: center;
}

/* 评论内容里已@的用户 */
a.zbb6-comment-at {
    margin: 0 1px;
    font-weight: 500;
    color: var(--focus-color);
}

a.zbb6-comment-at:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .zbb6-comment-at-list {
        max-height: 220px;
        -webkit-overflow-scrolling: touch;
    }

    .zbb6-comment-at-item {
        padding: 11px 14px;
    }

    .zbb6-comment-at-item .avatar {
        width: 38px;
        height: 38px;
    }

    .zbb6-comment-at-tip {
        display: none;
    }
}
