@import "./base/index.scss";
@import "./dc/index.scss";
@import "./icon/index.scss";
@import "./tool/index.scss";
@import "./element-ui/element-ui.scss";
@import "./login.scss";

@font-face {
    font-family: Roboto-Bold;
    src: url(./font/Roboto-Bold.ttf);
}

.pageContainer {
    color: #fff;
    width: 100%;

    .mt-15 {
        margin-top: 15px;
    }

    .flex {
        display: flex;
        align-items: center;
    }

    .justify-between {
        justify-content: space-between;
    }

    .justify-center {
        justify-content: center;
    }


    .left-container,
    .right-container {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
        width: 320px;
        height: 100%;
        pointer-events: auto;
        background: rgba(28, 115, 195, 0.05);

        &>div {
            display: flex;
            flex-direction: column;
            flex-shrink: 0;

            .title-box {
                position: relative;
                height: 38px;
                line-height: 38px;
                background: url(/bigScreen/images/title-box.png) no-repeat center / 100% 100%;

                .title {
                    margin-left: 10px;
                    text-align: left;
                    font-size: 18px;
                    font-family: Alibaba PuHuiTi;
                    font-weight: bold;
                    font-style: italic;
                    color: transparent;
                    text-shadow: 0px 2px 8px rgba(5, 28, 55, 0.42);
                    background-image: linear-gradient(180deg,
                            rgba(14, 197, 236, 0.36) 5%,
                            rgba(49, 190, 255, 0.36) 20%,
                            rgba(255, 255, 255, 1) 40%);
                    -webkit-background-clip: text;
                    -webkit-text-fill-color: transparen;
                }

                .title-sub {
                    position: absolute;
                    right: 10px;
                    bottom: 4px;
                    line-height: 1;
                }
            }

            .content-box {
                flex: 1;
            }
        }

        .chart-box {
            // background:  rgba(42,64,120,0.68);
        }
    }

    .common-empty {
        padding-top: 46px;
        display: flex;
        justify-content: center;
    }

    .left-container {
        left: 0;

        .one {
            height: 200px;
            position: relative;

            .all-text-box {
                position: relative;
                height: calc(100% - 48px);

                .common-text {
                    font-size: 12px;
                    font-family: Alibaba PuHuiTi;
                    // font-style: italic;
                    color: #f6f9fe;
                    height: 100%;

                    .text-content {
                        overflow-y: scroll;
                        height: 100%;

                        p:first-child {
                            // white-space: nowrap;
                        }
                    }
                }
            }
        }

        .two {
            flex: 1;

            .yesnotshow .title {
                color: #d4e8f8;
            }
        }

        // .three {
        //     flex: 1;
        // }
    }

    .right-container {
        right: 0;

        .one {
            height: 200px;
            position: relative;
            z-index: 1;
        }

        .two {
            height: 280px;
        }

        .three {
            height: 250px;
        }

        .four {
            flex: 1;
        }
    }

    .content-data {
        padding-left: 18px;

        &>.common-text {
            margin-right: 8px;
        }

        .data-item {
            height: 26px;
            line-height: 26px;
            background: #124a7d;
            border: 1px solid #0d5672;
            border-radius: 6px;
            padding: 0 15px;
            margin-right: 12px;
            display: flex;
            align-items: center;
            cursor: pointer;

            .num {
                margin-left: 5px;
                height: 14px;
                line-height: 14px;
                padding: 0 6px 0 2px;
                text-align: center;
                background: #ed1414;
                border-radius: 7px;
                display: inline-block;
                font-size: 12px;
                font-weight: 400;
                font-style: italic;
                color: #f6f9fe;
            }

            &.active {
                background: #1b66b6;
                border: 1px solid #27d4fc;
            }
        }
    }

    .more-text {
        color: #3bcaff;
        cursor: pointer;
    }

    .scroll-table {
        font-family: Alibaba PuHuiTi;
        font-weight: 400;
        font-style: italic;
        color: #afbed8;

        .scroll-table-head {
            height: 38px;
            font-size: 14px;
            border-bottom: 2px solid #6187e4;
            background: rgba(42, 64, 120, 0.68);

            div {
                flex: 1;
                text-align: center;
            }

            div:nth-child(1) {
                max-width: 40px;
            }
        }

        .scroll-table-body {
            overflow: hidden;
            // height: 400px;
            margin-top: 10px;
        }

        .scroll-item {
            margin-top: 5px;
            height: 38px;
            border: 1px solid rgba(36, 57, 110, 1);
            background: rgba(36, 57, 110, 0.34);

            div {
                text-align: center;
                flex: 1;
                color: #d4e8f8;
                font-size: 14px;
            }

            div:nth-child(1) {
                max-width: 40px;
            }

            div:nth-child(2) {
                max-width: 100px;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                overflow: hidden;
                text-overflow: ellipsis;
                -webkit-line-clamp: 2;
                /* 控制显示的行数 */
                line-height: 1.5;
                /* 设置行高，以免内容重叠 */
                max-height: 3em;
            }
        }

        .type-img {
            margin-left: 5px;
        }
    }

    .carousel-box {
        position: relative;

        .el-carousel__container {
            height: 142px;
        }

        .card-item {
            height: 142px;
            width: 122px;
            border: 1px solid rgba(110, 135, 197, 0.32);
            background: rgba(36, 57, 110, 0.34);
            line-height: 1;
            padding: 10px 0 0 0;
            text-align: left;
            text-indent: 10px;

            .type-img {
                margin-left: 5px;
                position: relative;
                top: 3px;
            }

            &>div:nth-of-type(2) {
                margin-top: 10px;

                & .num {
                    font-size: 20px;
                    font-family: Roboto-Bold;
                    font-weight: bold;
                }
            }

            &>div:nth-of-type(3) {
                margin-top: 8px;
                color: #f7101a;
            }

            &>div:nth-of-type(4) {
                margin-top: 12px;
            }

            &>div:nth-of-type(5) {
                margin-top: 5px;
            }
        }

        .justify-between {
            padding: 0 10px;
        }

        .btn-item {
            width: 40px;
            height: 40px;
            cursor: pointer;
        }

        .btn-left {
            background-image: url(/bigScreen/images/ctrl-left.png);
        }

        .btn-right {
            margin-left: 3px;
            transform: rotate(180deg);
        }
    }

    .big-num {
        margin: 10px 0;
        line-height: 1;

        .num-num {
            margin-left: 10px;
            font-size: 48px;
            font-family: Roboto-Bold;
            font-weight: bold;
        }

        .num-text {
            margin-left: 10px;
        }
    }

    .big-section {
        flex: 1;

        .big-num {
            padding-left: 30px;
        }

        .section-text {
            height: 22px;
            line-height: 22px;
            text-align: right;
        }

        .time {
            margin-top: 5px;
            color: #b5c5d4;
        }
    }

    .video-box {
        padding: 5px 12px 0;

        .el-image {
            height: 185px;
            width: 100%;
        }

        video {
            width: 100%;
            height: 185px;
            background-color: #333;
        }
    }



    .all-text {
        color: #d4e8f8;
        padding: 12px 18px 0 18px;
        line-height: 26px;
        text-indent: 32px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
    }

    .detail-box {
        padding: 12px;

        .el-image {
            height: 180px;
            width: 100%;
        }

        .all-text {
            -webkit-line-clamp: 3;
            text-indent: 0;
        }
    }

    .device-box {
        padding: 15px 8px 0;
        align-items: flex-start;

        .device-item {
            width: 110px;
            height: 113px;
            text-align: center;
            background-image: url(/bigScreen/images/device_01.png);
            background-size: 100% 100%;
            padding-top: 20px;

            &:nth-of-type(2) {
                background-image: url(/bigScreen/images/device_02.png);

                .item-title {
                    color: #aed6ff;
                }

                .item-num {
                    background: linear-gradient(to bottom, #fff9c5 10%, #ffd24d 100%);
                    -webkit-background-clip: text;
                    -webkit-text-fill-color: transparent;
                }
            }
        }

        .item-title {
            color: #44c1ef;
            line-height: 1;
            text-shadow: 1px 2px 0px rgba(17, 20, 22, 0.22);
            font-size: 16px;
            font-weight: bold;
        }

        .item-num {
            margin-top: 5px;
            font-size: 28px;
            font-family: Roboto-Bold;
            font-weight: bold;
            font-style: italic;
            color: #edfbff;
            background: linear-gradient(to bottom, #8ceaff 10%, rgba(255, 255, 255, 1) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
    }

    .warning-box {
        padding: 0 5px;

        img {
            width: 101px;
            height: 90px;
        }

        .warning-item {
            flex: 1;
        }

        .item-title {
            width: 100px;
            line-height: 32px;
            text-indent: 32px;
            position: relative;
            left: -28px;
            color: #fff;
            font-size: 18px;
            background-image: url(/bigScreen/images/warnbg_01.png);
            background-repeat: no-repeat;
            background-position: left bottom;
            background-size: 100px 18px;
        }

        .item-num {
            height: 31.5px;
            width: 84px;
            margin-top: 5px;
            font-size: 28px;
            font-family: Roboto-Bold;
            font-weight: bold;
            font-style: italic;
            background-image: url(/bigScreen/images/warnbg_02.png);
            background-size: cover;

            span {
                width: 100%;
                background: linear-gradient(to right, #76b2ec 30%, rgba(255, 255, 255, 1) 100%);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
            }
        }

        .el-carousel__indicators--horizontal {
            bottom: 5px;
        }

        .el-carousel__button {
            height: 4px;
            border-radius: 2px;
            width: 40px;
        }
    }

    .rain-monitor-box {
        padding: 12px 15px;

        .item-title {
            text-indent: 15px;
            position: relative;
            line-height: 20px;
            font-size: 20px;
            text-shadow: 0px 2px 8px rgba(5, 28, 55, 0.42);
            background: linear-gradient(to bottom, rgba(14, 197, 236, 0.6) 0%, #effcfe 20%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;

            &::before {
                content: "";
                position: absolute;
                left: 0;
                top: 1px;
                width: 4px;
                height: 18px;
                background-image: url(/bigScreen/images/rain-title.png);
            }
        }

        .info-item {
            padding-left: 20px;
            font-size: 16px;
            color: #bfd3e5;
            margin-top: 20px;
        }

        .box-bottom {
            margin-top: 20px;
        }

        .monitor-tab-section {
            .info-item {
                margin-top: 18px;
            }
        }

        &>.justify-between {
            align-items: flex-start;
        }

        .tab-item {
            font-size: 16px;
            color: #bfd3e5;
            cursor: pointer;
            background: rgba(55, 75, 123, 0.36);

            &:first-of-type {
                margin-right: 20px;
            }
        }
    }

    .base-tab {
        height: 50px;
        padding: 9px 0 9px 32px;

        .tab-item {
            background: rgba(29, 81, 157, 0.4);
            border: 1px solid #1e98c7;
            text-align: center;
            width: 118px;
            height: 100%;
            line-height: 30px;
            font-size: 15px;
            font-family: AlibabaPuHuiTi;
            font-weight: 400;
            color: #a6cdff;
            margin-right: 3px;
            cursor: pointer;

            &.active {
                background-image: url(/bigScreen/images/warnbg_01.png);
                background-size: 100% 100%;
            }
        }
    }
}

.page-logout {
    position: absolute;
    top: 25px;
    right: 50px;
    z-index: 99;
    width: 20px;
    height: 20px;
    background-image: url(/bigScreen/images/logout.png);
    background-size: cover;
    cursor: pointer;
}

.page-search {
    position: absolute;
    left: 380px;
    z-index: 99;
    top: 70px;

    .el-input {
        height: 38px;
        width: 280px;
    }

    .el-input__inner {
        padding-right: 30px;
        font-size: 16px;
        font-weight: 400;
        color: #bfd3e5;
        border: 1px solid #4081cb;
        border-radius: 4px;
        background: rgba(135, 158, 199, 0.3);
        box-shadow: inset 0px 3px 7px 0px rgba(42, 138, 236, 0.95);
    }

    .page-search-value-box {
        position: absolute;
        width: 100%;
        height: 200px;
        left: 0;
        top: 40px;
        background: rgba(135, 158, 199, 0.3);
        border-radius: 2px;
        overflow-y: scroll;

        ul>li {
            color: #ffffff;
            cursor: pointer;
            height: 20px;
            line-height: 20px;
            padding-left: 10px;
        }

        ul>li:hover {
            background-color: #0e1a35;
        }
    }

    .page-search-value-box::-webkit-scrollbar {
        display: none;
    }
}

.page-select {
    left: 788px;

    .el-input {
        width: 120px;
    }
}

.select-popup {
    border: 1px solid #4081cb;
    background: rgba(0, 0, 0, 1);
    box-shadow: inset 0px 3px 7px 0px rgba(42, 138, 236, 0.95);

    .el-cascader-menu {
        color: #fff;
    }

    .el-cascader-node:not(.is-disabled):focus,
    .el-cascader-node:not(.is-disabled):hover {
        background: rgba(42, 138, 236, 0.35);
    }

    .el-cascader-node.in-active-path,
    .el-cascader-node.is-active,
    .el-cascader-node.is-selectable.in-checked-path {
        background: rgba(42, 138, 236, 0.35);
    }
}

.page-full {
    top: auto;
    bottom: 55px;
    width: 80px;
    height: 30px;
    background: rgba(135, 158, 199, 0.2);
    border-radius: 6px;
    font-size: 16px;
    color: #bfd3e5;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    line-height: 1;

    .el-icon-rank {
        font-size: 20px;
        margin-right: 5px;
    }
}

.page-mode {
    top: auto;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;

    &>div {
        background-image: url(/bigScreen/images/mode-tab.png);
        background-size: cover;
        width: 150px;
        height: 50px;
        font-size: 16px;
        text-align: center;
        font-weight: bold;
        color: #bfd3e5;
        line-height: 32px;
        padding-top: 12px;
        font-style: italic;
        cursor: pointer;

        &:first-of-type {
            margin-right: -20px;
        }

        &.active {
            color: #f6fcff;
            background-image: url(/bigScreen/images/mode-tab-ac.png);
        }
    }
}

.page-map {
    position: absolute;
    z-index: 99;
    bottom: 30px;
    right: 488px;
    width: 100px;
    max-height: 220px;
    background: rgba(135, 158, 199, 0.2);
    border-radius: 6px;
    padding: 10px;

    &>div {
        position: relative;
        height: 60px;
        background: #879ec7;
        border-radius: 6px;
        overflow: hidden;
        margin-bottom: 10px;
        cursor: pointer;

        &.on {
            border: 1px solid #3bcaff;

            span {
                background: rgba(59, 202, 255, 0.5);
            }
        }

        img {
            width: 100%;
            height: 100%;
        }

        span {
            padding: 0px 8px;
            position: absolute;
            right: 0;
            bottom: 0;
            z-index: 1;
            font-size: 14px;
            font-family: Alibaba PuHuiTi;
            font-weight: 400;
            color: #ffffff;
            background: rgba(13, 43, 84, 0.5);
            border-radius: 6px 0px 6px 0px;
        }

        &:last-of-type {
            margin-bottom: 0;
        }
    }
}

.page-map.map-list {
    bottom: 120px;
}

.page-section {
    left: auto;
    right: 488px;
    width: 160px;

    .el-collapse-item__header {
        height: 40px;
        background: rgba(135, 158, 199, 0.1);
        border: 0;
        padding-left: 10px;
        font-size: 18px;
        color: rgba(191, 211, 229, 0.7);

        &.is-active {
            box-shadow: inset 0px 0px 5px 0px rgba(73, 180, 255, 1);
            background: rgba(13, 43, 84, 0.76);
        }
    }

    .title-wrap {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .el-checkbox__label {
        display: flex;
        align-items: center;
    }

    .title-img {
        height: 18px;
        width: 18px;
        flex-shrink: 0;
        margin-right: 5px;
    }

    .el-collapse-item__arrow {
        color: rgba(199, 219, 245, 0.88);

        &::before {
            content: "\e790";
        }
    }

    .el-collapse-item__arrow.is-active {
        color: #2cb7ff;

        &::before {
            content: "\e792";
        }
    }

    .el-collapse-item__wrap {
        background: rgba(135, 158, 199, 0.3);
        border: 0;
    }

    .el-collapse-item__content {
        padding-bottom: 0;
    }

    .check-item {
        padding-left: 10px;
        height: 40px;
        font-weight: 500;

        font-size: 18px;
        display: flex;
        align-items: center;

        .el-checkbox__label {
            color: rgba(191, 211, 229, 0.7);
        }

        .is-checked {
            .el-checkbox__label {
                color: #3bcaff;
            }
        }
    }
}

.page-back {
    min-width: 182px;
    height: 50px;
    background-image: url(/bigScreen/images/back-bg.png);
    background-size: cover;
    display: flex;
    align-items: center;
    cursor: pointer;

    img {
        height: 100%;
    }

    div {
        font-size: 26px;
        color: #bfd3e5;
    }
}