.pageWrapper {
    padding: 0;
    margin: 10px 0px 0px 5px;
    min-height: 100%;
    display: flex;
    flex-direction: column;

    // 第一行：交接提醒
    .alertBar {
        padding: 8px 20px;
        background-color: #FFF3CD;
        border: 2px solid #FFECB2;
        border-radius: 2px;
        color: #8C6C0B;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 450;
        margin-bottom: 10px;
    }

    // 第二行：主内容区域
    .mainContent {
        flex: 1;
        display: flex;
        gap: 15px;
        padding: 0;
        margin: 0;
        background: transparent;
        min-height: 0;

        // A块：左侧区域
        .leftArea {
            width: 68%;
            display: flex;
            flex-direction: column;
            gap: 15px;

            // a块：统计数据
            .statsBlock {
                height: 100px;
                // background-color: pink;
                display: flex;
                justify-content: space-between;
                align-items: center;

                .statItem {
                    height: 100%;
                    width: 32%;
                    display: flex;
                    align-items: center;
                    gap: 15px;
                    border: solid #FFFFFF;
                    border-width: 2px 2px 0px 2px;
                    background: linear-gradient(170.5deg, #F5F7FF 10%, #FFFFFF 60%);


                    .statContent {
                        display: flex;
                        flex-direction: column;
                        gap: 10px;
                        margin-left: 20px;
                        flex: 1;

                        .statLabel {
                            font-size: 14px;
                            color: #333;
                            white-space: nowrap;
                        }

                        .statValue {
                            font-size: 28px;
                            font-weight: bold;
                            font-family: 'Fette-Mittelschrift';
                            color: #333;
                        }
                    }
                }
            }

            // b块：交接班流程
            .flowBlock {
                height: 180px;
                background: url("@/assets/business_Emergency/bgDrill1.svg") no-repeat center center;
                background-size: cover;
                padding: 8px 10px 0px 10px;
                display: flex;
                flex-direction: column;

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

                    &::before {
                        content: '';
                        width: 3px;
                        height: 18px;
                        background-color: #2E4CD4;
                    }
                }

                .flowContent {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    border-top-left-radius: 8px;
                    border-top-right-radius: 8px;
                    background: linear-gradient(360deg, rgba(255, 255, 255, 0.7) 0%, rgba(208, 225, 255, 0.7) 100%);
                    border: 1px solid;
                    border-image-source: linear-gradient(0deg, #FFFFFF 29.33%, rgba(255, 255, 255, 0.6) 51.92%, rgba(211, 229, 255, 0.2) 77.4%, rgba(211, 229, 255, 0.3) 100%);
                    justify-content: center;
                    // flex: 1;
                    padding: 10px 10px;
                
                    // 自定义 antd Steps 样式
                    :global {
                        .ant-steps {
                            margin-left: 10px;
                            
                        }

                        .ant-steps-item-container{
                            width: 150px;
                        }

                        .ant-steps-item-content {
                            margin-top: 0px !important;
                            margin-left: 2px;
                        }

                        .ant-steps-item-title {
                            font-size: 13px !important;
                            font-weight: 500 !important;
                            color: #333 !important;
                            height: 28px;
                            margin-top: 0px !important;
                            padding: 0 !important;
                            margin-bottom: 0px !important;
                        }

                        .ant-steps-item-description {
                            margin-top: 0px !important;
                          
                            padding: 0 !important;
                            margin-bottom: 0px !important;
                            width: 132px !important;
                            font-size: 12px !important;
                            color: #666 !important;
                            line-height: 1.2 !important;
                        }

                        // 控制步骤之间的连接线
                        .ant-steps-item-tail {
                            padding: 5px 0 !important; // 控制连接线的垂直位置
                        }

                        // .ant-steps-item-tail::after {
                        //     background-color: #B5C6DF !important;  // 连接线颜色
                        //     height: 1px !important;  // 连接线长度
                        //     width: 160px !important;  // 连接线粗细
                        // }

                        // 背景图片作为连接线
                        .ant-steps-item-tail::after {
                            background-image: url('@/assets/business_Emergency/iconDuty6.svg') !important;
                            background-size: contain !important;
                            background-repeat: no-repeat !important;
                            background-position: center !important;
                            background-color: transparent;
                            width: 190px !important;
                            height: 12px !important;
                        }
                    }
                }
            }

            // c块：最近交接班记录（自适应高度）
            .tableBlock {
                background: #fff;
                padding: 8px 10px 10px 10px;
                display: flex;
                flex-direction: column;

                .tableHeader {
                    margin-bottom: 10px;

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

                        &::before {
                            content: '';
                            width: 3px;
                            height: 18px;
                            background-color: #2E4CD4;
                        }
                    }
                }

                .statusSuccess {
                    display: inline-block;
                    padding: 2px 12px;
                    background: #D8F7DE;
                    color: #44BB5F;
                    border-radius: 2px;
                    font-size: 12px;
                }

                .statusWarning {
                    display: inline-block;
                    padding: 2px 12px;
                    background: #FFF3E9;
                    color: #FF8800;
                    border-radius: 2px;
                    font-size: 12px;
                }

                .linkBtn {
                    padding: 0;
                    font-size: 13px;
                    color: #2E4CD4;
                }

                :global {
                    .ant-table-thead>tr>th {
                        background: #F5F5FA;
                        font-weight: 500;
                        color: #333;
                        font-size: 13px;
                        text-align: center;
                        padding: 12px 8px;
                        border-radius: 2px;
                    }

                    .ant-table-tbody>tr>td {
                        color: #666;
                        font-size: 13px;
                        text-align: center;
                        padding: 12px 8px;
                    }

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

                    .ant-pagination {
                        margin-top: 15px;
                        text-align: right;
                    }
                }
            }
        }

        // B块：右侧区域
        .rightArea {
            flex: 1;
            display: flex;
            flex-direction: column;

            .formBlock {
                background: #fff;
                padding: 15px 15px 15px 15px;
                flex: 1;
                display: flex;
                flex-direction: column;
            

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

                    &::before {
                        content: '';
                        width: 3px;
                        height: 18px;
                        background-color: #2E4CD4;
                    }
                }

                .formRow {
                    display: flex;
                    gap: 15px;
                    margin-bottom: 15px;

                    .formItem {
                        flex: 1;
                        display: flex;
                        flex-direction: column;
                        gap: 8px;

                        .formLabel {
                            font-size: 13px;
                            color: #333;
                            font-weight: 450;
                        }

                        .formInput {
                            width: 100%;
                            border-radius: 2px;

                            :global {
                                .ant-select-selector {
                                    border-radius: 2px !important;
                                }
                            }
                        }
                    }
                }

                .formFullRow {
                    margin-bottom: 15px;

                    .formLabel {
                        font-size: 13px;
                        color: #333;
                        font-weight: 450;
                        display: block;
                        margin-bottom: 8px;
                    }

                    .eventList {
                        // background: #F5F7FA; 
                        border: 1px solid #DDDEE6;
                        padding: 12px;
                        border-radius: 2px;

                        .eventItem {
                            font-size: 13px;
                            color: #333;
                            line-height: 1.8;
                            margin-bottom: 5px;

                            &:last-child {
                                margin-bottom: 0;
                            }
                        }
                    }

                    .taskList {
                        display: flex;
                        flex-direction: column;
                        gap: 10px;
                        margin-top: 15px;

                        .taskCheckbox {
                            font-size: 13px;
                            color: #333333;
                        }
                    }
                }

                .formActions {
                    display: flex;
                    justify-content: flex-end;
                    gap: 15px;
                    margin-top: 30px;

                    .btnDefault {
                        border-radius: 4px;
                        padding: 6px 15px;
                        display: flex;
                        align-items: center;
                        border: 1px solid #B6BBD9;
                    }

                    .btnPrimary {
                        background-color: #2E4CD4;
                        border-color: #2E4CD4;
                        border-radius: 4px;
                        padding: 6px 15px;
                        display: flex;
                        align-items: center;

                        &:hover {
                            background-color: #1e3bb8;
                            border-color: #1e3bb8;
                        }
                    }
                }
            }
        }
    }
}