﻿.robot-avatar:after {
    position: absolute;
    top: 1px;
    left: 0px;
    z-index: -1;
    content: "";
    width: 58px;
    height: 58px;
    background: url(/images/robot_red_border.png) no-repeat;
    background-size: 100%;
    margin-left:4px
}

.robot-avatar__border {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(/images/robot_border.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    animation: breathe-border 1s linear infinite;
    margin-left: 4px
}

.robot-avatar__img {
    width: 58px;
    height: 58px;
    margin-left: 4px;
    border-radius: 50%;
}

    .robot-avatar__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        animation: breathe-img 1s linear infinite;
    }

.robot-avatar__text {
    position: relative;
    margin-top: -16px;
    width: 67px;
    height: 23px;
    background-color: #e5301f;
    border-radius: 4px;
    line-height: 23px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    box-shadow: 0 30px 50px 0 rgba(76,89,141,.06);
    font-family: Microsoft YaHei;
}

@keyframes breathe-border {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    25% {
        transform: scale(1.1);
        opacity: .8;
    }

    50% {
        transform: scale(1.3);
        opacity: .5;
    }

    75% {
        opacity: .3;
    }

    100% {
        opacity: 0;
    }
}

@keyframes breathe-img {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(.9);
    }

    50% {
        transform: scale(.8);
    }

    75% {
        transform: scale(.9);
    }

    100% {
        transform: scale(1);
    }
}
