


// 表单输入框样式
.formInput {
    :global(.ant-input) {
        color: #333333 !important;
        font-size: 12px !important;
    }
    
    :global(.ant-select-selector) {
        color: #333333 !important;
        font-size: 12px !important;
    }
    
    :global(.ant-picker-input input) {
        color: #333333 !important;
        font-size: 12px !important;
    }
}


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

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

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

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

                .blockItem {
                    flex: 1;
                    height: 100%;
                    display: flex;
                    // background: linear-gradient(170.5deg, #F5F7FF 6.87%, #FFFFFF 47.65%);
                    border-radius: 4px;
                    // border: 2px solid #FFFFFF;

                    // 块1 - 蓝色渐变 + SVG背景
                    &.block1 {
                        background: 
                            url('@/assets/business_envinformation/background1.svg'),

                            linear-gradient(180deg, #DBEBFF 0%, #DBEBFF 12.5%, rgba(255, 255, 255, 0.700824) 56%, rgba(255, 255, 255, 0.01) 100%),
                            linear-gradient(0deg, #FFFFFF, #FFFFFF);
                            // linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2));
                        background-size: 100% 100%;
                        background-repeat: no-repeat;
                        background-position: center;
                    }

                    // 块2 - 黄色渐变
                    &.block2 {
                        background: 
                            url('@/assets/business_envinformation/background2.svg'),
                            linear-gradient(180deg, #FFFEDB 0%, #F5FFDB 19.23%, #FFFFFF 55.77%, #FFFFFF 100%);
                        background-size: 100% 100%;
                        background-repeat: no-repeat;
                        background-position: center;
                    }

                    // 块3 - 绿色渐变
                    &.block3 {
                        background: 
                            url('@/assets/business_envinformation/background3.svg'),
                            linear-gradient(180deg, #8CFFCD 0%, #C0FFE4 12.5%, #FFFFFF 56%, #FFFFFF 100%);
                        background-size: 100% 100%;
                        background-repeat: no-repeat;
                        background-position: center;
                    }

                    // 块4 - 青色渐变
                    &.block4 {
                        background: 
                            url('@/assets/business_envinformation/background4.svg'),
                            linear-gradient(180deg, #C5FFFC 0%, #C0FFFC 12.5%, #FFFFFF 56%, #FFFFFF 100%);
                        background-size: 100% 100%;
                        background-repeat: no-repeat;
                        background-position: center;
                    }

                    // 块5 - 红色渐变
                    &.block5 {
                        background: 
                            url('@/assets/business_envinformation/background5.svg'),
                            linear-gradient(180deg, #FFD2D2 0%, #FFD9D9 12.5%, #FFFFFF 56%, #FFFFFF 100%);
                        background-size: 100% 100%;
                        background-repeat: no-repeat;
                        background-position: center;
                    }

                    // 块6 - 紫色渐变
                    &.block6 {
                        background: 
                            url('@/assets/business_envinformation/background6.svg'),
                            linear-gradient(180deg, #F2D7FF 0%, #F4DDFF 12.5%, #FFFFFF 56%, #FFFFFF 100%);
                        background-size: 100% 100%;
                        background-repeat: no-repeat;
                        background-position: center;
                    }

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

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

                        .blockNumber {
                            font-family: PingFang SC;
                            font-weight: 700;
                            font-size: 24px;
                            color: #333333;
                            line-height: 1.2;
                            
                            // 特定数字颜色
                            &.number258 {
                                color: #0080FF;
                            }
                            
                            &.number58 {
                                color: #EFB700;
                            }
                            
                            &.number51 {
                                color: #00DA86;
                            }
                            
                            &.number28 {
                                color: #00DA86;
                            }
                            
                            &.number50 {
                                color: #FD0404;
                            }
                            
                            &.number58Second {
                                color: #A318E4;
                            }
                        }

                        .blockTime {
                            font-family: PingFang SC;
                            font-weight: 400;
                            font-size: 10px;
                            color: #999999;
                            line-height: 1.2;
                        }

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

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

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

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

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


    // 第三个div - 占满剩余位置
    .RcontainerBottom {
        flex: 1; // 占满剩余空间
        display: flex;
        flex-direction: column;
        background-color: #fff;
        padding: 15px;

        .sectionContent {
            height: 100%;
            display: flex;
            flex-direction: column;
            gap: 15px;

            // 第一行 - 表单控件
            .formRow {
                display: flex;
                align-items: center;
                gap: 15px;
                flex-shrink: 0;

                .addButton {
                    display: flex;
                    align-items: center;
                    gap: 4px;
                    height: 28px;
                    border: 1px solid #00D48A;
                    border-radius: 2px;
                    color: #fff;
                    font-weight: 400;
                    font-size: 12px;
                    padding: 0 10px;
                    background: #00D48A;
                    cursor: pointer;
                    transition: all 0.2s ease;

                    &:hover {
                        background-color: #00B875;
                        border-color: #00B875;
                    }

                    .buttonIcon {
                        font-size: 16px;
                        font-weight: bold;
                    }
                }

                .rightControls {
                    display: flex;
                    align-items: center;
                    gap: 15px;
                    margin-left: auto;

                    .filterLabel {
                        font-size: 13px;
                        color: #333333;
                        white-space: nowrap;
                    }

                    // Select组件样式
                    :global(.ant-select) {
                        font-size: 12px;
                        height: 28px !important;
                    }
                    
                    :global(.ant-select .ant-select-selector) {
                        height: 28px !important;
                        font-size: 12px;
                        border-radius: 2px !important;
                        display: flex !important;
                        align-items: center !important;
                        padding: 0 11px !important;
                    }
                    
                    :global(.ant-select .ant-select-selection-item) {
                        line-height: 1.5714285714285714;
                        font-size: 12px;
                    }
                    
                    :global(.ant-select .ant-select-selection-placeholder) {
                        line-height: 1.5714285714285714;
                        font-size: 12px;
                        color: #00000040 !important;
                    }

                    .searchInput {
                        width: 150px;
                        height: 28px;
                        border: 1px solid #d9d9d9;
                        border-radius: 2px;
                        padding: 0 12px;
                        font-size: 12px;

                        &:focus {
                            border-color: #2E4CD4;
                            outline: none;
                        }

                        &::placeholder {
                            color: #00000040;
                        }
                    }

                    .queryButton, .resetButton {
                        height: 28px;
                        border: 1px solid #d9d9d9;
                        border-radius: 4px;
                        padding: 0 16px;
                        font-size: 12px;
                        cursor: pointer;
                        transition: all 0.2s ease;

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

                    .queryButton {
                        background-color: #00D48A;
                        color: #fff;
                        border-color: #00D48A;

                        &:hover {
                            background-color: #00B875;
                            border-color: #00B875;
                            color: #fff;
                        }
                    }

                    .resetButton {
                        background-color: #fff;
                        color: #666;

                        &:hover {
                            background-color: #f5f5f5;
                        }
                    }
                }
            }

            // 第二行 - 表格
            .tableSection {
                flex: 1;
                display: flex;
                flex-direction: column;
                overflow: hidden;

                :global {
                    .ant-spin-nested-loading {
                        flex: 1;
                        display: flex;
                        flex-direction: column;
                        overflow: hidden;

                        .ant-spin-container {
                            flex: 1;
                            display: flex;
                            flex-direction: column;
                            overflow: hidden;

                            .ant-table-wrapper {
                                flex: 1;
                                display: flex;
                                flex-direction: column;
                                overflow: hidden;

                                .ant-table {
                                    flex: 1;
                                    overflow: auto;
                                }

                                .ant-table-pagination {
                                    flex-shrink: 0;
                                    margin: 16px 0 0 0;
                                    padding: 0;
                                }
                            }
                        }
                    }

                    .ant-table {
                        font-size: 12px;

                        .ant-table-thead > tr > th {
                            background-color: #fafafa;
                            font-weight: 400;
                            color: #000000D9;
                            border-right: none;
                            text-align: center;
                        }

                        .ant-table-tbody > tr > td {
                            border-right: none;
                            color: #000000D9;
                            font-weight: 400;
                            text-align: center;
                        }

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

                        a {
                            color: #1890ff;
                            text-decoration: none;

                            &:hover {
                                color: #40a9ff;
                            }
                        }
                    }

                    .ant-pagination {
                        text-align: right;
                    }
                }
            }
        }
    }
}

// 操作按钮图标样式
.eye-icon {
    width: 20px;
    height: 12.5px;
    position: relative;
    display: inline-block;
    
    &::before {
        content: '';
        position: absolute;
        width: 20px;
        height: 12.5px;
        border: 2px solid #86F278;
        border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
        top: 0;
        left: 0;
        transform: rotate(-180deg);
        opacity: 1;
    }
    
    &::after {
        content: '';
        position: absolute;
        width: 6px;
        height: 6px;
        background-color: #86F278;
        border-radius: 50%;
        top: 3.5px;
        left: 7px;
        transform: rotate(-180deg);
    }
}

.edit-icon {
    width: 16px;
    height: 16px;
    position: relative;
    display: inline-block;
    
    &::before {
        content: '';
        position: absolute;
        width: 12px;
        height: 2px;
        background-color: #1890ff;
        top: 3px;
        left: 2px;
        transform: rotate(45deg);
    }
    
    &::after {
        content: '';
        position: absolute;
        width: 2px;
        height: 12px;
        background-color: #1890ff;
        top: 2px;
        left: 7px;
        transform: rotate(45deg);
    }
}

.delete-icon {
    width: 16px;
    height: 16px;
    position: relative;
    display: inline-block;
    
    &::before {
        content: '';
        position: absolute;
        width: 12px;
        height: 2px;
        background-color: #ff4d4f;
        top: 7px;
        left: 2px;
        transform: rotate(45deg);
    }
    
    &::after {
        content: '';
        position: absolute;
        width: 12px;
        height: 2px;
        background-color: #ff4d4f;
        top: 7px;
        left: 2px;
        transform: rotate(-45deg);
    }
}