/* 自定义头像 */
.ykj .portrait,
.ykj .portrait-icon {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
    position: relative;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    background-size: contain;
}

.ykj .portrait {
    text-align: center;
    color: #FFFFFF;
    font-size: 12px;
    overflow: hidden;
}

.ykj .ykj-digest-bar .portrait {
    line-height: 40px;
}

.ykj .ykj-message-bar .portrait {
    line-height: 30px;
}

.ykj .portrait img,
.ykj .portrait-icon img {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -50% 0 0 -50%;
}

.ykj .portrait-icon * {
    box-sizing: border-box;
}

.ykj .portrait-icon::before,
.ykj .portrait-icon::after {
    content: '';
    position: absolute;
    background: #fff;
    transform: scale(.5);
    -webkit-transform: scale(.5);
    -ms-transform: scale(.5);
    z-index: 10;
}

.ykj .portrait-icon::before {
    top: -50%;
    right: 19px;
    width: 2px;
    height: 200%;
}

.ykj .portrait-icon::after {
    left: -50%;
    top: 19px;
    height: 2px;
    width: 200%;
}

.ykj .portrait-icon span {
    font-size: 12px;
    width: 20px;
    height: 20px;
    float: left;
    overflow: hidden;
    position: relative;
}

.ykj .portrait-icon span i {
    width: 20px;
    height: 20px;
    text-align: center;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    display: inline-block;
    top: 10px;
    transform: scale(.8);
    -webkit-transform: scale(.8);
    -ms-transform: scale(.8);
    position: relative;
}

.ykj .portrait-icon span:nth-child(1) {
    background-color: #fa4f52;
}

.ykj .portrait-icon span:nth-child(2) {
    background-color: #29b6f6;
}

.ykj .portrait-icon span:nth-child(3) {
    background-color: #81c634;
}

.ykj .portrait-icon span:nth-child(4) {
    background-color: #fbddaa;
}


/* 两个 */

.ykj .portrait-icon.double::after {
    display: none;
}

.ykj .portrait-icon.double span {
    height: 40px;
}
.ykj .portrait-icon.double span img{
    margin: -100% 0 0 -100%;
}

.ykj .portrait-icon.double span i {
    transform: scale(1);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
}


/* 三个 */

.ykj .portrait-icon.three::after {
    left: 0;
}

.ykj .portrait-icon.three span:nth-child(1) {
    height: 40px;
}

.ykj .portrait-icon.three span:nth-child(1) img{
    margin: -100% 0 0 -100%;
}    

.ykj .portrait-icon.three span:nth-child(1) i {
    transform: scale(1);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
}

.ykj .portrait-icon.three span:nth-child(2) i {
    left: -2px;
    top: 2px;
}

.ykj .portrait-icon.three span:nth-child(3) i {
    left: -2px;
    top: 0px;
}


/* 四个 */

.ykj .portrait-icon.fouth span {
    height: 20px;
}

.ykj .portrait-icon.fouth span:nth-child(1) i {
    left: 2px;
    top: 2px;
}

.ykj .portrait-icon.fouth span:nth-child(2) i {
    left: -2px;
    top: 2px;
}

.ykj .portrait-icon.fouth span:nth-child(3) {
    background-color: #f39801;
}

.ykj .portrait-icon.fouth span:nth-child(3) i {
    left: 2px;
    top: 0px;
}

.ykj .portrait-icon.fouth span:nth-child(4) {
    background-color: #81c634;
}

.ykj .portrait-icon.fouth span:nth-child(4) i {
    left: -2px;
    top: 0px;
}