$newBlue: #638EE4;
.psychological-container{
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #fff;
    .tab-bar{
        width: 100%;
        position: relative;
        .date-tab-con {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            background: #F6F6F6;
            border: 1px solid #E0E0E0;
            .date-tab-list {
                display: flex;
                justify-content: space-around;
                align-items: center;
                color: #fff;
                flex: 1;
                height: 24px;
                padding: 10px 0;
                .date-tab-item {
                    position: relative;
                    padding: 0 10px;
                    color: #6D6D6D;
                    font-size: 18px;
                    @include center();
                    img {
                        height: 25px;
                        width: 25px;
                        padding: 0 8px;
                    }
                    .more {
                        width: 10px;
                        height: 6px;
                    }
                    &.active::after {
                        content: '';
                        width: 44px;
                        position: absolute;
                        right: 25%;
                        bottom:  -10px;
                        box-sizing: border-box;
                        border-bottom: 4px solid #638EE4;
                    }
                    &.active {
                        color: #638EE4;
                    }
                    &.notClick {
                        background-color: $border_color;
                        color: #fff;
                        border: 1px solid #fff;
                    }
                }
                .date-tab-item:nth-child(3) {
                    border-right: 1px solid #E0E0E0;
                }
                /* .date-tab-item:first-child {
                    border-top-left-radius: 15px;
                    border-bottom-left-radius: 15px;
                }
                .date-tab-item:last-child {
                    border-top-right-radius: 15px;
                    border-bottom-right-radius: 15px;
                } */
            }
        }
    }
    .psy-tab-bar {
        height: 30px;
        position: relative;
        margin: 5px 0;
        padding: 0 10px;
        .psy-tab-con {
            background-color: #EEEEEE;
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
            border-bottom-left-radius: 20px;
            border-bottom-right-radius: 20px;
            .psy-tab-list {
                display: flex;
                justify-content: space-around;
                align-items: center;
                color: #fff;
                height: 30px;
                width: 100%;
                /* background-color: red; */
                .psy-tab-item {
                    position: relative;
                    padding: 0 10px;
                    color: #6D6D6D;
                    height: 100%;
                    width: 100%;
                    font-size: 14px;
                    border-radius: 20px;
                    @include center();
                    &.active {
                        color: #FFFFFF;
                        background-color: #189B3BFF;
                    }
                }
            }
        }
    }
    .main {
        position: relative;
        height: calc(100vh - 110px);
        overflow-y: scroll;
        overflow-x: hidden;
        .top {
            flex: 1;
            .title {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 0px 16px 10px 13px;
                font-size: 18px;
                .title-left {
                    font-weight: bold;
                    .van-icon {
                        margin-left: 5px;
                        font-size: 18px;
                    }
                }

                .title-right{
                  display: flex;

                  .title-right-button{
                    color: #638EE4;
                    font-size: 16px;
                    border: 1px solid #638EE4;
                    padding: 2px 10px;
                    margin-right: 5px;

                    &:last-child{
                      margin-right: 0;
                    }
                  }
                }
            }
            .monitoring-count {
                text-align: left;
                padding: 3px 14px;
                line-height: 20px;
                p {
                    font-size: 12px;
                    color: #8B8B8B;
                }
            }
            .pie-chart-con {
                flex: 1;
                padding: 5px 0 10px 0;
                display: flex;
                justify-content: space-between;
                align-items: flex-start;
                .pie-chart-left {
                    position: relative;
                    height: 150px;
                    padding-left: 15px;
                    width: 35%;
                    @include center();
                    #pieChart {
                        height: 106px;
                        width: 106px;
                    }
                    #pieChartDay {
                        height: 106px;
                        width: 106px;
                    }
                }
                .pie-chart-right {
                    height: 150px;
                    width: 65%;
                    padding-right: 20px;
                    @include center();
                    .list {
                        flex-direction: column;
                        .item {
                            width: 100%;
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
                            font-size: 12px;
                            padding: 9px 0;
                            .item-left {
                                display: flex;
                                justify-content: flex-start;
                                align-items: center;
                                padding-right: 10px;
                                .circle {
                                    height: 12px;
                                    width: 12px;
                                    margin: 0 4px;
                                }
                                span {
                                    font-size: 12px;
                                }
                                .text {
                                    color: #000;
                                    font-size: 12px;
                                }
                            }
                            .item-right {
                                display: flex;
                                justify-content: center;
                                align-items: center;
                            }
                        }
                    }
                }
            }
            .statistics {
                position: relative;
                padding: 0px 14px 5px 14px;
                .list {
                    flex: 1;
                    width: 100%;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    font-size: 16px;
                    .item {
                        @include center();
                        width: 58px;
                        /* height: px2rem(136); */
                        flex-direction: column;
                        .top {
                            font-size: 12px;
                        }
                        .middle {
                            font-size: 24px;
                            font-weight: bold;
                            padding: 5px;
                        }
                        .bottom {
                            font-size: 9px
                        }
                    }
                }
            }
        }
        .line {
            position: relative;
            height: 11px;
            background-color: $lineGray;
        }
        .bottom {
           flex: 1;
            .echart-container {
                height: 250px;
                background-color:#fff;
                padding: 0 5px;
                .echart {
                    height: 250px;
                    padding: 0 5px;
                }
            }
            .line-gray {
                height: 11px;
                width: 100%;
                background-color: $lineGray;
                margin-top: 10px;
            }
            .result {
                .result-con {
                    height: 100%;
                    background-color: #fff;
                    border-radius: 10px;
                    &.reminder {
                        padding: 0 16px 20px 16px;
                    }
                    .title {
                        display: flex;
                        justify-content: flex-start;
                        align-items: flex-start;
                        flex-direction: column;
                        margin-bottom: 10px;
                        span {
                            font-size: 18px;
                            font-weight: bold;
                        }
                        .font-28 {
                            font-weight: 400;
                            font-size: 13px;
                            color: #8B8B8B;
                            text-align: left;
                        }
                        .title-no-data {
                            padding: 34px 0 13px 15px;
                        }
                        p {
                            font-size: 12px;
                            color: $newBlue;
                        }
                        .title-emo {
                            font-size: 24px;
                            padding: 14px 0 21px 0;
                            text-align: left;
                        }
                        .no-data {
                            height: 250px;
                            width: 100%;
                            @include center();
                            flex-direction: column;
                            img {
                                height: 110px;
                                width: 175px;
                            }
                            p {
                                color: #999;
                                font-size: 12px;
                                padding: 20px 0 65px 0;
                            }
                        }
                    }
                    .title-text {
                        padding: 34px 0 13px 15px;
                    }
                    .title-reminder {
                        padding: 34px 0 0 0;
                    }
                    .friendly-reminder, .warm-reminder {
                        display: flex;
                        justify-content: flex-start;
                        align-items: flex-start;
                        flex-direction: column;
                        margin-bottom: 10px;
                        background-color: #F2F2F2;
                        padding: 20px 19px 19px 14px;
                        p {
                            font-weight: bold;
                            text-align: left;
                            padding-bottom: 11px;
                            font-size: 15px;
                        }
                        span {
                            text-align: left;
                            font-size: 12px;
                        }
                    }
                    .mood-list {
                        display: grid;
                        grid-template-columns: repeat(2, 1fr); //定义了一个 2x2 的网格布
                        grid-template-rows: repeat(2, 1fr);
                        gap: 21px;
                        //width: 100%;
                        padding: 0 44px 20px 37px;
                        .item {
                            width: 137px;
                            height: 94px;
                            /* padding: px2rem(47) px2rem(57) px2rem(49) px2rem(57); */
                            background-color: #F2F6FF;
                            @include center();
                            flex-direction: column;
                            p {
                                font-size: 14px;
                                padding: 0;
                                color: #666666;
                                .day {
                                    padding: 5px;
                                    font-size: 28px;
                                }
                                .day-text {
                                    font-size: 12px
                                }
                            }
                        }
                    }
                    .mood-list-no-data {
                        height: 250px;
                        width: 100%;
                        .no-data {
                            @include center();
                            flex-direction: column;
                            img {
                                height: 110px;
                                width: 175px;
                            }
                            p {
                                color: #999;
                                font-size: 12px;
                                padding: 20px 0 65px 0;
                            }
                        }
                    }
                }
            }
        }
        &.report {
            position: relative;
            height: calc(100vh - 150px);
            overflow: scroll;
            background-color: #f5f5f5;
            .content {
                position: relative;
                .list {
                    position: relative;

                    .item {
                        display: flex;
                        justify-content: space-between;
                        align-items: flex-end;
                        padding: 34px 15px;
                        background-color: #fff;
                        margin-bottom: 11px;
                        .left {
                            display: flex;
                            justify-content: flex-start;
                            align-items: flex-start;
                            img {
                                height: 25px;
                                width: 25px;
                            }
                            .middle {
                                .title,
                                .overall,
                                .trend {
                                    display: flex;
                                    justify-content: flex-start;
                                    align-items: center;
                                    padding-left: 13px;
                                    span,
                                    p {
                                        font-size: 18px;
                                        font-family: Source Han Sans CN;
                                        font-weight: 400;
                                        color: #8d8d8d;
                                        line-height: 30px;
                                    }
                                }
                                .title {
                                    span {
                                        padding-right: 20px;
                                    }
                                    p {
                                        color: #282828;
                                    }
                                }
                                .overall {
                                    display: flex;
                                    justify-content: flex-start;
                                    align-items: flex-start;
                                    width: 100%;
                                    
                                    .left {
                                        flex-direction: column;
                                        p {
                                            padding-left: 20px;
                                            font-weight: bold;
                                        }
                                    }
                                    .right {
                                        img {
                                            height: 15px;
                                            width: 9px;
                                        }
                                    }
                                }
                                .trend {
                                    align-items: flex-start;
                                    text-align: left;
                                }
                            }
                        }
                        .right {
                            img {
                                width: 9px;
                                height: 15px;
                            }
                        }
                    }
                    &.no-data {
                        height: calc(100vh - 100px);
                        width: 100%;
                        @include center();
                        flex-direction: column;
                        img {
                            height: 110px;
                            width: 175px;
                        }
                        p {
                            color: #999;
                            font-size: 16px;
                            padding: 20px 0 65px 0;
                        }
                    }
                }
            }
        }
    }

    .title {
        font-size: 16px;
    }
    .van-popup {
        flex: 1;
        max-height: 600px;
        width: 100%;
        background-color: $background;
    }
    .popup {
       /*  height: 100%;
        width: 100%; */
        background-color: $background;
        padding: 20px;
        .item {
            flex: 1;
            padding: 10px;
            margin: 15px 0;
            text-align: left;
            font-size: 14px;
            background-color: #fff;
            border-radius: 10px;
            p {
                margin: 5px 0;
            }
            h5 {
               margin: 5px 0;
               font-size: 16px;
            }
            &.first {
                padding-top: 0;
            }
            &.science-tips {
                .tips {
                    width: 60px;
                    height: 20px;
                    color: #fff;
                    @include center();
                    background-color: red;
                    border-top-left-radius: 20px;
                    border-top-right-radius: 15px;
                    border-bottom-right-radius: 15px;
                }
            }
        }
        .van-button {
            height: 40px;
            background-color: $newBlue;
            color: #fff;
            border-radius: 20px;
        }
    }
}