
.iot-mind {
    position: relative;
    width: 100%;
    height: 300px;
    background-color: #F7F8FB;
    border: 1px solid #EBEEF5;
    border-radius: 2px;
    overflow: hidden;
}

.iot-mind.is-fullscreen {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    height: unset;
    width: unset;
    z-index: 5000;
    margin-top: 0;
}

.iot-mind-node {
    cursor: pointer;
}

.iot-mind-node.click-disabled {
    cursor: default;
}

.iot-mind-node .iot-mind-state.online {
    fill: url(#online);
}

.iot-mind-node .iot-mind-state.offline {
    fill: url(#offline);
}

.iot-mind-node .iot-mind-state.unknown {
    fill: url(#unknown);
}

.iot-mind-node .iot-mind-state.none {
    fill: #9D9D9D;
}

.iot-mind-node .iot-mind-net {
    display: inline-block;
    font-size: 12px;
    margin-top: -2px;
    -webkit-transform: scale(0.9);
    -moz-transform: scale(0.9);
    -ms-transform: scale(0.9);
    -o-transform: scale(0.9);
    transform: scale(0.9);
}

.iot-mind-node .iot-mind-name {
    font-size: 12px;
}

.iot-mind-node .iot-mind-name.online {
    fill: #409EFF;
}

.iot-mind-node .iot-mind-name.offline {
    fill: #D0021B;
}

.iot-mind-node .iot-mind-name.unknown {
    fill: #E76F25;
}

.iot-mind-node .iot-mind-name.none {
    fill: #7A7A7A;
}

.iot-mind-node.click-disabled .iot-mind-name.none {
    fill: #7A7A7A;
    text-decoration: unset;
}

.iot-mind-node .iot-mind-html-box {
    display: inline-block;
    font-size: 14px;
    height: 100%;
    width: 100%;
    text-align: center;
    line-height: 36px;
    color: white;
}

.iot-mind-node .iot-mind-html-box.mini {
    line-height: 20px;
}

.iot-mind-node .iot-mind-mark {
    display: none;

    animation: flow;
    -moz-animation: flow; /* Firefox */
    -webkit-animation: flow; /* Safari 和 Chrome */
    -o-animation: flow; /* Opera */

    -webkit-animation-duration: 500ms;
    -moz-animation-duration: 500ms;
    -o-animation-duration: 500ms;
    animation-duration: 500ms;

    animation-iteration-count: infinite;
    -webkit-animation-iteration-count: infinite;
    -moz-animation-iteration-count: infinite;
    -o-animation-iteration-count: infinite;

    animation-direction: normal;
    -webkit-animation-direction: normal;
    -moz-animation-direction: normal;
    -o-animation-direction: normal;

    animation-timing-function: linear;
    -webkit-animation-timing-function: linear;
    -moz-animation-timing-function: linear;
    -o-animation-timing-function: linear;
}

.iot-mind-node .iot-mind-mark.show {
    display: inherit;
}

.iot-mind-node:hover .iot-mind-effect {
    fill: rgba(0, 0, 0, 0.05);
}

.iot-mind-node:active .iot-mind-effect {
    fill: rgba(0, 0, 0, 0.1);
}

@keyframes mark-animation {
    from {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-moz-keyframes mark-animation /* Firefox */
{
    from {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes mark-animation /* Safari 和 Chrome */
{
    from {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-o-keyframes mark-animation /* Opera */
{
    from {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes flow {
    0% {
        stroke-dashoffset: 8px;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@-webkit-keyframes flow {
    0% {
        stroke-dashoffset: 8px;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes flow {
    0% {
        stroke-dashoffset: 8px;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@-webkit-keyframes flow {
    0% {
        stroke-dashoffset: 8px;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.iot-mind-node .iot-mind-popup {
    width: auto;
    height: auto;
    min-width: 120px;
    position: absolute;
    left: -35px;
    top: -80px;
    background-color: white;
    box-shadow: 0px 3px 15px 0px rgba(69, 90, 100, 0.25);
    border-radius: 4px;
    display: none;
    padding: 12px;
}

.iot-mind-node:hover .iot-mind-popup {
    display: block;
}

.iot-mind-node .iot-mind-popup .iot-mind-popup-header {
    text-align: left;
    font-size: 14px;
    color: #303133;
    width: 100%;
    line-height: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iot-mind-node .iot-mind-popup .iot-mind-popup-header .el-tag {
    margin-right: 8px;
    text-indent: 0;
    vertical-align: middle;
    font-size: 12px;
}

.iot-mind-node .iot-mind-popup .iot-mind-popup-content {
    text-align: left;
    font-size: 12px;
    color: #909399;
    width: 100%;
    margin-top: 2px;
    line-height: 16px;
    overflow: hidden;
    white-space: nowrap;
}

.iot-mind-node .iot-mind-popup .iot-mind-arrow {
    position: absolute;
    left: 45px;
    bottom: -5px;
    height: 8px;
    width: 8px;
    border-top: 8px solid white;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

.iot-mind-legend {
    position: absolute;
    height: 36px;
    line-height: 36px;
    font-size: 0;
    bottom: 0;
    right: 0;
}

.iot-mind-legend .iot-mind-legend-item {
    display: inline-block;
    margin-right: 14px;
    height: 100%;
    width: auto;
}

.iot-mind-legend .iot-mind-legend-item .iot-mind-legend-circle {
    display: inline-block;
    width: 10px;
    height: 10px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 16px;
    border: none;
    font-size: 12px;
}

.iot-mind-legend .iot-mind-legend-item .iot-mind-legend-circle.online {
    background: linear-gradient(141deg, rgba(128, 195, 243, 1) 0%, rgba(74, 144, 226, 1) 100%);
}

.iot-mind-legend .iot-mind-legend-item .iot-mind-legend-circle.offline {
    background: linear-gradient(150deg, rgba(238, 107, 132, 1) 0%, rgba(217, 57, 77, 1) 100%);
}

.iot-mind-legend .iot-mind-legend-item .iot-mind-legend-circle.unknown {
    background: linear-gradient(150deg, rgba(238, 166, 107, 1) 0%, rgba(217, 116, 57, 1) 100%);
}

.iot-mind-legend .iot-mind-legend-item .iot-mind-legend-circle.mark {
    width: 20px;
    height: 20px;
    border-radius: 20px;

    border: 2px solid rgba(176, 176, 176, 1);
    border-style: dashed;
    background-color: transparent;

    animation: mark-animation;
    -moz-animation: mark-animation; /* Firefox */
    -webkit-animation: mark-animation; /* Safari 和 Chrome */
    -o-animation: mark-animation; /* Opera */

    -webkit-animation-duration: 5s;
    -moz-animation-duration: 5s;
    -o-animation-duration: 5s;
    animation-duration: 5s;

    animation-iteration-count: infinite;
    -webkit-animation-iteration-count: infinite;
    -moz-animation-iteration-count: infinite;
    -o-animation-iteration-count: infinite;

    animation-direction: normal;
    -webkit-animation-direction: normal;
    -moz-animation-direction: normal;
    -o-animation-direction: normal;

    animation-timing-function: linear;
    -webkit-animation-timing-function: linear;
    -moz-animation-timing-function: linear;
    -o-animation-timing-function: linear;
}

.iot-mind-legend .iot-mind-legend-item .iot-mind-legend-desc {
    display: inline-block;
    height: 16px;
    line-height: 16px;
    font-size: 12px;
    color: #7A7A7A;
    vertical-align: middle;
}

.iot-mind-menu {
    position: absolute;
    height: 24px;
    font-size: 0;
    top: 11px;
    right: 11px;
}

.iot-mind-menu .iot-mind-menu-item {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 24px;
    margin-left: 2px;
    line-height: 24px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
}

.iot-mind-menu .iot-mind-menu-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.iot-mind-menu .iot-mind-menu-item:active {
    background: rgba(0, 0, 0, 0.08);
}