/* 全站社交通知卡片（右下角） */

.ntf-host {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 330px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}

.ntf-card {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 34px 12px 13px;
    background: #fff;
    border: 1px solid #e6ecf6;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(20, 35, 65, .16);
    cursor: pointer;
    animation: ntfIn .22s cubic-bezier(.2, .8, .3, 1);
    transition: transform .15s, box-shadow .15s, opacity .18s;
}
.ntf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(20, 35, 65, .2);
}
.ntf-card.out {
    animation: none;
    opacity: 0;
    transform: translateY(8px);
}

.ntf-icon { flex: 0 0 auto; }
.ntf-av {
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}
.ntf-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4c8dff;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}
.ntf-ok .ntf-initial { background: #22c55e; }
.ntf-req .ntf-initial { background: #ff8c1a; }

.ntf-main { flex: 1 1 auto; min-width: 0; }
.ntf-title {
    font-size: 13px;
    font-weight: 600;
    color: #2f3440;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ntf-text {
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #6b7a90;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.ntf-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #a9b3c4;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.ntf-close:hover { background: #f1f4f9; color: #5b667a; }

@keyframes ntfIn {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
    .ntf-host {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
    }
}
