@charset "UTF-8";
/* 消息 */
@keyframes post_shake {
    0%,to {
        transform: translateZ(0);
    }

    10%,30%,50% {
        transform: translate3d(-5px,0,0);
    }

    70%,90% {
        transform: translate3d(0,0,0);
    }

    20%,40%,60%,80% {
        transform: translate3d(5px,0,0);
    }
}
/* nav header */
.nav-item.usernotice.current > .nav-link > .unread {
    display: inline-block!important;
}

/* postlist*/
.postlist > .post.current .avatar-3{
    animation: post_shake 3s ease infinite;    
} 

/* bootstrap + */
.text-small {
    font-size: 12px
}

.btn-small {
    padding: 0 0.1rem;
    font-size: 0.75rem
}

/* my-notice */
.noticelist > .notice {    
    padding: 0.7rem 0
}

.noticelist > .notice:not(:last-child) {
    border-bottom: 1px solid var(--gray-200);
}

.noticelist > .notice .message {
    color: var(--gray)
}

.noticelist > .notice .message a {    
    color: var(--gray)
}

.noticelist > .notice.isread i.icon-circle {
    display: none;
}

/* 系统名称和时间共用字号，避免手机端通用 username 样式将名称放大。 */
.noticelist > .notice .notice-meta .notice-system-name {
    font-size: 11px;
}

.noticelist > .notice .notice-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.noticelist > .notice .notice-meta-system {
    flex-shrink: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.noticelist > .notice .notice-meta-row {
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 4px;
}

.noticelist > .notice .notice-meta-actions {
    margin-left: auto;
}

.noticelist > .notice .notice-state-icons {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 4px;
    vertical-align: middle;
}

.noticelist > .notice .notice-state-icons img {
    display: inline-block;
    width: auto;
    height: 12px;
    margin: 0;
    border: 0;
    vertical-align: middle;
}

.noticelist > .notice .notice-state-icons .icon-circle::before {
    content: none;
}

.noticelist > .notice .message .comment-info {
    display: inline;
    color: var(--gray-500)
}

.noticelist > .notice .message .quote-comment {
    margin-top: .25rem;
    color: var(--dark);
    display: block;
    position: relative;
    padding: 6px 9px 6px;
    border: 1px solid #e9e4d7;
    white-space: normal;
    word-break: break-all;
    word-wrap: break-word;
    zoom: 1;
}
.noticelist > .notice .message .reply-comment {
    position: relative;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
    background-color: var(--gray-200)
}
.noticelist > .notice .message .single-comment a,.noticelist > .notice .message .reply-comment a {
    color: var(--dark)
}

.noticelist > .notice .message .reply-comment:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    top: 0;
    left: 50px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--gray-200);
    -webkit-transform-origin: 0 0;
    -webkit-transform: rotate(135deg);
    transform-origin: 0 0;
    transform: rotate(135deg);
}

/* TG 贴纸使用静态快照，限制尺寸避免占据整块聊天区域。 */
.pm-message-img[src*="huux_tg_sticker=1"] {
    width: auto;
    height: auto;
    max-width: 160px;
    max-height: 160px;
    object-fit: contain;
}

/* QQ 收藏表情/图片表情：小图不放大，大图最多显示为 200px 宽。 */
.pm-message-img[src*="huux_qq_expression=1"] {
    width: auto !important;
    height: auto !important;
    max-width: 200px !important;
    object-fit: contain;
}
