$prefix : 'honor-radar';
@mixin transition() {
    transition: all 0.3s;
}
@keyframes scale-bg {
    from{
        opacity: 0.1;
        transform: scale(0);

    }to{
        opacity: 0.02;
        transform: scale(1);
    }
}
.#{$prefix} {
    position: relative;
    background: url('./radar-bg.png') center no-repeat;
    &-center {
        position: absolute;
        top: 50%;
        left: 50%;
        margin-left: -50px;
        margin-top: -50px;
        padding-bottom: 20px;
        z-index: 1;
        &:hover {
            cursor: pointer;
            z-index: 11 !important;
            .#{$prefix}-center-vs {
                display: inline-block;
            }
            .#{$prefix}-center-footer-main {
                display: none;
            }
        }
        &:hover {
            .#{$prefix}-center-vs {
                display: inline-block;    
            }
            .#{$prefix}-center-footer-name {
                display: inline-block;    
            }
        }
        &-avatar {
            display: inline-block;
            border-radius: 50%;
            box-shadow: 0 0 5px 0 rgba(0, 89, 153, 0.5);
        }
        &-vs {
            display: none;
            position: absolute;
            bottom: 0;
            left: 50%;
            height: 20px;
            width: 40px;
            line-height: 20px;
            margin-left: -20px;
            text-align: center;
            border-radius: 10px;
            background: #0E8CE6;
            color: #fff;
            font-size: 12px;
            &.gray {
                cursor: default;
                color: #fff;
                background-color: #C2CBD1;
                width: 46px;
                margin-left: -23px;
            }
        }
        &-footer {
            width: 100%;
            height: 0px;
            text-align: center;
            margin-top: 7px;
            &-main,&-name {
                display: inline-block;
                height: 20px;
                max-width: 100px;
                line-height: 20px;
                border-radius: 10px;
                background-color: #50E3C2;
                color: #fff;
                font-size: 14px;
                cursor: default;
                padding: 0 5px;
            }
            &-name {
                display: none;
            }
        }
    }
    &-spots {
        position: relative;
        height: 356px;
        width: 356px;
        margin: 40px auto 0;
        z-index: 20;
    }
    &-scale-bg {
        position: absolute;
        top: 50%;
        left: 50%;
        margin-top: -178px;
        margin-left: -178px;
        width: 356px;
        height: 356px;
        background-color: #1687D9;
        border-radius: 50%;
        animation: scale-bg 1.5s infinite;
    }
    &-spot {
        position: absolute;
        padding-bottom: 23px;
        z-index: 1;
        &-tip {
            position: absolute;
            top: -30px;
            width: 100%;
            opacity: 0;
            transition: opacity 0.3s;
            &-inner {
                position: relative;
                left: 50%;
                float: left;
            }
            &-main {
                position: relative;
                right: 50%;
                float: left;
                white-space: nowrap;
                line-height: 22px;
                padding: 0 5px;
                border-radius: 11px;
                background-color: #A6D8FF;
                color: #fff;
            }
            &-footer-arrow {
                position: absolute;
                    bottom: -4px;
                    left: 50%;
                    margin-left: -4px;
                    width: 0;
                    height: 0;
                    border-style: solid;
                    border-width: 4px 4px 0 4px;
                    border-color: #a6d8ff transparent transparent transparent;
            }
            &-name {
                height: 0;
                width: 100%;
                opacity: 0;
                text-align: center;
            }
        }
        &:hover {
            cursor: pointer;
            z-index: 11 !important;
            .#{$prefix}-spot-vs {
                display: inline-block;
            }
            .#{$prefix}-spot {
                &-tip {
                    top: -52px;
                    opacity: 1 !important;
                    &-name {
                        opacity: 1;
                        height: 16px;
                        line-height: 14px
                    }
                    &-main {
                        border-radius: 8px;
                    }
                }
            }
        }
        &-avatar {
            border-radius: 50%;
            display: inline-block;
            box-shadow: 0 2px 10px 0 rgba(71, 139, 197, 0.4);
        }
        &-vs {
            display: none;
            position: absolute;
            bottom: 0px;
            left: 50%;
            line-height: 20px;
            height: 20px;
            width: 46px;
            margin-left: -23px;
            text-align: center;
            border-radius: 10px;
            background: #0E8CE6;
            color: #fff;
            font-size: 12px;
            &.gray {
                cursor: default;
                color: #fff;
                background-color: #C2CBD1;
                margin-left: -23px;
                border-radius: 10px;
            }
        }
    }
}