.realtimeContainer {
    padding: 8px 6px 0px 6px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;

    // 第一个div - 高度20%
    .realtimeContainerTop {
        height: 16%;
        // background-color: #fff;
        border-radius: 4px;
        display: flex;
        flex-direction: column;

        .realtimeSectionContent {
            height: 100%;
            display: flex;
            flex-direction: column;
            // padding: 15px;

            .realtimeBlocksContainer {
                flex: 1;
                display: flex;
                gap: 10px;
                height: 100%;

                .realtimeBlockItem {
                    flex: 1;
                    height: 100%;
                    display: flex;
                    background: url('@/assets/business_basic/background_re.svg') no-repeat center center;
                    border-radius: 4px;
                    border: 2px solid #FFFFFF;

                    .realtimeBlockLeft {
                        width: 60%;
                        height: 100%;
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        padding: 15px;
                        padding-left: 20px;
                        gap: 8px;

                        .realtimeBlockTitle {
                            font-family: PingFang SC;
                            font-weight: 400;
                            font-size: 12px;
                            color: #333333;
                            line-height: 1.2;
                        }

                        .realtimeBlockNumber {
                            font-family: PingFang SC;
                            font-weight: 700;
                            font-size: 24px;
                            color: #333333;
                            line-height: 1.2;
                        }

                        .realtimeBlockChange {
                            font-family: PingFang SC;
                            font-weight: 400;
                            font-size: 12px;
                            color: #1269FF;
                            line-height: 1.2;
                            display: flex;
                            align-items: center;
                            gap: 4px;

                            .realtimeArrow {
                                font-size: 14px;
                                font-weight: bold;
                            }

                            .realtimeCheckIcon {
                                font-size: 16px;
                                color: #1269FF;
                            }
                        }
                    }

                    .realtimeBlockRight {
                        flex: 1;
                        height: 100%;
                        background-color: transparent;
                        border-radius: 0 4px 4px 0;
                        display: flex;
                        align-items: center;
                        justify-content: center;

                        .realtimeBlockImage {
                            // width: 80%;      
                            height: 65%;
                            // height: 80%;
                            object-fit: contain;
                            margin-right: -5px;
                        }
                    }
                }
            }
        }
    }

    // 第二个div - 高度39%
    .realtimeContainerMiddle {
        height: 33%;
        border-radius: 4px;
        display: flex;
        flex-direction: column;

        .realtimeSectionContent {
            height: 100%;
            display: flex;
            display: flex;
            gap: 10px;
            height: 100%;

            .realtimeMiddleBlock1 {
                width: 25%;
                height: 100%;
                background: #fff;
                border: 2px solid #fff;
                position: relative;
                padding: 0px 10px 10px 2px;
                font-family: PingFang SC;
                font-size: 14px;
                color: #333333;

                .realtimeBlock1Header {
                    position: absolute;
                    top: 5px;
                    left: 10px;
                    right: 10px;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    z-index: 10;

                    .realtimeBlock1Title {
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        font-weight: 500;
                        font-size: 14px;
                        color: #333333;

                        .realtimeTitleIcon {
                            width: 3px;
                            height: 14px;
                            background-color: #2E4CD4;
                        }
                    }

           
                }

                .realtimeDeviceStatusChart {
                    position: absolute;
                    top: 35px;
                    left: 10px;
                    right: 10px;
                    bottom: 10px;
                    z-index: 10;
                }
            }

            .realtimeMiddleBlock12 {
                width: 30%;
                height: 100%;
                background-color: #fff;
                display: flex;
                flex-direction: column;

                .parameterTitle {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    padding: 5px 10px 10px 10px;
                    font-size: 14px;
                    font-weight: 500;
                    color: #333;

                    .realtimeTitleIcon {
                        width: 3px;
                        height: 14px;
                        background-color: #2E4CD4;
                    }
                }


                .parameterGridContainer {
                    display: flex;
                    flex-direction: column;
                    gap: 10px;
                    margin: 0 10px 10px 10px;
                    height: 100%; // 减去title高度和margin

                    .parameterRow {
                        display: flex;
                        gap: 10px;
                        flex: 1;

                        .parameterBlock1 {
                            flex: 1 1 50%;
                            background-color: #FFF5E9;
                            border: 1px solid #ECEDFC;
                            border-radius: 2px;
                            position: relative;
                            display: flex;
                            flex-direction: column;
                            justify-content: center;
                            padding: 10px;

                            .warningBadge {
                                position: absolute;
                                top: 0;
                                right: 0;
                                width: 35px;
                                height: 20px;
                                background-color: #FF8800;
                                border-radius: 2px;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                font-size: 12px;
                                color: #fff;
                                font-weight: 420;
                            }

                            .blockContent {
                                display: flex;
                                flex-direction: column;
                                gap: 5px;
                                margin-left: 5px;
                                font-family: PingFang SC;

                                .parameterName {
                                    font-size: 10px;
                                    color: #666666;
                                    font-weight: 400;
                                }

                                .parameterValue {
                                    font-size: 16px;
                                    color: #333333;
                                    font-weight: 500;
                                }

                                .parameterRange {
                                    font-size: 10px;
                                    color: #666666;
                                    font-weight: 400;
                                }
                            }
                        }

                        .parameterBlock2 {
                            flex: 1 1 50%;
                            background-color: #F3FFF6;
                            border: 1px solid #ECEDFC;
                            border-radius: 2px;
                            position: relative;
                            display: flex;
                            flex-direction: column;
                            justify-content: center;
                            padding: 10px;

                            .warningBadge {
                                position: absolute;
                                top: 0;
                                right: 0;
                                width: 35px;
                                height: 20px;
                                background-color: #44BB5F;
                                border-radius: 2px;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                font-size: 12px;
                                color: #fff;
                                font-weight: 420;
                            }

                            .blockContent {
                                display: flex;
                                flex-direction: column;
                                gap: 5px;
                                margin-left: 5px;
                                font-family: PingFang SC;

                                .parameterName {
                                    font-size: 10px;
                                    color: #666666;
                                    font-weight: 400;
                                }

                                .parameterValue {
                                    font-size: 16px;
                                    color: #333333;
                                    font-weight: 500;
                                }

                                .parameterRange {
                                    font-size: 10px;
                                    color: #666666;
                                    font-weight: 400;
                                }
                            }
                        }

                        .parameterBlock3 {
                            flex: 1;
                            background-color: #F3FFF6;
                            border: 1px solid #ECEDFC;
                            border-radius: 2px;
                            position: relative;
                            display: flex;
                            flex-direction: column;
                            justify-content: center;
                            padding: 10px;

                            .warningBadge {
                                position: absolute;
                                top: 0;
                                right: 0;
                                width: 35px;
                                height: 20px;
                                background-color: #44BB5F;
                                border-radius: 2px;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                font-size: 12px;
                                color: #fff;
                                font-weight: 420;
                            }

                            .blockContent {
                                display: flex;
                                flex-direction: column;
                                gap: 5px;
                                margin-left: 5px;
                                font-family: PingFang SC;

                                .parameterName {
                                    font-size: 10px;
                                    color: #666666;
                                    font-weight: 400;
                                }

                                .parameterValue {
                                    font-size: 16px;
                                    color: #333333;
                                    font-weight: 500;
                                }

                                .parameterRange {
                                    font-size: 10px;
                                    color: #666666;
                                    font-weight: 400;
                                }
                            }
                        }

                        .parameterBlock4 {
                            flex: 1;
                            background-color: #FFF2F1;
                            border: 1px solid #ECEDFC;
                            border-radius: 2px;
                            position: relative;
                            display: flex;
                            flex-direction: column;
                            justify-content: center;
                            padding: 10px;

                            .warningBadge {
                                position: absolute;
                                top: 0;
                                right: 0;
                                width: 35px;
                                height: 20px;
                                background-color: #FF2526;
                                border-radius: 2px;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                font-size: 12px;
                                color: #fff;
                                font-weight: 400;
                            }

                            .blockContent {
                                display: flex;
                                flex-direction: column;
                                gap: 5px;
                                margin-left: 5px;

                                .parameterName {
                                    font-size: 10px;
                                    color: #666666;
                                    font-weight: 400;
                                }

                                .parameterValue {
                                    font-size: 16px;
                                    color: #333333;
                                    font-weight: 500;
                                }

                                .parameterRange {
                                    font-size: 10px;
                                    color: #666666;
                                    font-weight: 400;
                                }
                            }
                        }
                    }
                }
            }

            .realtimeMiddleBlock2 {
                flex: 1;
                height: 100%;
                background-color: #fff;
                display: flex;
                flex-direction: column;
                font-family: PingFang SC;
                font-size: 14px;
                color: #333333;
                padding: 5px 10px 5px 10px;

                .realtimeMiddleBlock2Title {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    // margin-bottom: 10px;


                    .realtimeTitleIcon {
                        width: 3px;
                        height: 14px;
                        background-color: #2E4CD4;
                    }

                    .realtimeTitleLeft {
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        font-weight: 500;
                        font-size: 14px;
                        color: #333333;

                    }
                }

                .realtimeMiddleBlock2Chart {
                    width: 100%;
                    height: 100%;
                    // min-height: 200px;
                }
            }

        }
    }

    // 第三个div - 高度不超过45%
    .realtimeContainerBottom {
        height: 45%; // 限制高度不超过45%
        max-height: 45%; // 确保最大高度不超过45%
        display: flex;
        flex-direction: column;

        .realtimeSectionContent {
            display: flex;
            flex-direction: row;
            gap: 10px;
            padding: 0;

            .realtimeLeftBlock {
                width: 28%;
                flex-shrink: 0;
                height: 100%;
                background: #fff;
                // background-size: cover;
                padding: 0;
                display: flex;
                flex-direction: column;
                gap: 10px;
                padding: 15px;

                .realtimeLeftBlockTitle {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    font-family: PingFang SC;
                    font-weight: 500;
                    font-size: 14px;
                    color: #333333;
                    margin-bottom: 10px;

                    .realtimeTitleIcon {
                        width: 3px;
                        height: 16px;
                        background-color: #2E4CD4;
                    }
                }

                .realtimeDevelopmentContainer {
                    width: 100%;
                    height: 100%;
                    display: flex;
                    flex-direction: column;
                    gap: 8px;

                    .realtimeDevelopmentBlock1 {
                        flex: 1;
                        background-color: #F1F7FF;
                        border-radius: 4px;
                        padding: 15px 20px;
                        display: flex;
                        align-items: center;
                        width: 100%;
                    }

                    .realtimeDevelopmentBlockA {
                        flex: 1;
                        background-color: #FFF0EF;
                        border-radius: 4px;
                        padding: 15px 20px;
                        display: flex;
                        align-items: center;
                        width: 100%;

                        .realtimeLeftContent {
                            flex: 1;
                            display: flex;
                            flex-direction: column;
                            gap: 8px;
                            min-width: 0;

                            .realtimeMainText {
                                color: #333333;
                                font-size: 14px;
                                font-weight: 500;
                                font-family: PingFang SC;
                                width: 100%;
                                max-width: 500px;
                            }

                            .realtimeSubText {
                                color: #666666;
                                font-size: 12px;
                                font-weight: 400;
                                font-family: PingFang SC;
                                width: 100%;
                                max-width: 400px;
                            }
                        }

                    }

                    .realtimeDevelopmentBlockB {
                        flex: 1;
                        background-color: #FFF3DA;
                        border-radius: 4px;
                        padding: 15px 20px;
                        display: flex;
                        align-items: center;
                        width: 100%;

                        .realtimeLeftContent {
                            flex: 1;
                            display: flex;
                            flex-direction: column;
                            gap: 8px;
                            min-width: 0;

                            .realtimeMainText {
                                color: #333333;
                                font-size: 14px;
                                font-weight: 500;
                                font-family: PingFang SC;
                                width: 100%;
                                max-width: 500px;
                            }

                            .realtimeSubText {
                                color: #666666;
                                font-size: 12px;
                                font-weight: 400;
                                font-family: PingFang SC;
                                width: 100%;
                                max-width: 400px;
                            }
                        }

                    }

                    .realtimeDevelopmentBlockC {
                        flex: 1;
                        background-color: #FFF0EF;
                        border-radius: 4px;
                        padding: 15px 20px;
                        display: flex;
                        align-items: center;
                        width: 100%;

                        .realtimeLeftContent {
                            flex: 1;
                            display: flex;
                            flex-direction: column;
                            gap: 8px;
                            min-width: 0;

                            .realtimeMainText {
                                color: #333333;
                                font-size: 14px;
                                font-weight: 500;
                                font-family: PingFang SC;
                                width: 100%;
                                max-width: 500px;
                            }

                            .realtimeSubText {
                                color: #666666;
                                font-size: 12px;
                                font-weight: 400;
                                font-family: PingFang SC;
                                width: 100%;
                                max-width: 400px;
                            }
                        }

                    }

                    .realtimeDevelopmentBlockD {
                        flex: 1;
                        background-color: #FFF3DA;
                        border-radius: 4px;
                        padding: 15px 20px;
                        display: flex;
                        align-items: center;
                        width: 100%;

                        .realtimeLeftContent {
                            flex: 1;
                            display: flex;
                            flex-direction: column;
                            gap: 8px;
                            min-width: 0;

                            .realtimeMainText {
                                color: #333333;
                                font-size: 14px;
                                font-weight: 500;
                                font-family: PingFang SC;
                                width: 100%;
                                max-width: 500px;
                            }

                            .realtimeSubText {
                                color: #666666;
                                font-size: 12px;
                                font-weight: 400;
                                font-family: PingFang SC;
                                width: 100%;
                                max-width: 400px;
                            }
                        }

                    }
                }
            }

            .realtimeRightBlock {
                width: calc(100% - 28% - 10px);
                height: 100%;
                background-color: #fff;
                padding: 0;
                display: flex;
                flex-direction: column;

                .realtimeTableHeader {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 8px 15px 5px 15px;

                    .realtimeTableTitle {
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        font-family: PingFang SC;
                        font-weight: 500;
                        font-size: 14px;
                        color: #333333;

                        .realtimeTitleIcon {
                            width: 3px;
                            height: 16px;
                            background-color: #2E4CD4;
                        }
                    }

                    .realtimeTableActions {
                        display: flex;
                        gap: 8px;
                        margin-top: 5px;

                        .realtimeActionButton {
                            display: flex;
                            align-items: center;
                            gap: 4px;
                            height: 28px;
                            border: 1px solid #DFE4F6;
                            border-radius: 2px;
                            color: #2E4CD4;
                            font-weight: 400;
                            font-size: 12px;
                            padding: 0px 8px;
                            background: transparent;
                            cursor: pointer;
                            transition: all 0.2s ease;

                            &:hover {
                                background-color: #f0f2ff;
                                border-color: #2E4CD4;
                            }

                            &:active {
                                background-color: #e6ebff;
                            }

                            .realtimeButtonIcon {
                                font-size: 14px;
                                font-weight: bold;
                            }
                        }
                    }
                }

                .realtimeTableContainer {
                    flex: 1;
                    overflow: hidden;
                    margin: 10px 15px 0 15px; // 上边距10px，左右边距15px

                    :global(.ant-table) {
                        font-size: 12px;
                    }

                    :global(.ant-table-thead > tr > th) {
                        background-color: #f5f5fa;
                        font-weight: 500;
                        font-size: 14px;
                        color: #333333;
                        border-bottom: 1px solid #f0f0f0;
                        padding: 8px 12px;
                        text-align: center;
                    }

                    :global(.ant-table-tbody > tr > td) {
                        padding: 8px 12px;
                        border-bottom: 1px solid #f0f0f0;
                        text-align: center;
                        color: #666666;
                    }

                    :global(.ant-table-tbody > tr:hover > td) {
                        background-color: #f5f5f5;
                    }

                    :global(.ant-pagination) {
                        margin-top: 16px;
                        text-align: right;
                    }
                }
            }
        }
    }
}