.container {
    display: flex;
    gap: 16px;
    padding: 16px;
    background-color: #fff;
    min-height: 520px;

    .leftPanel {
        flex: 0 0 320px;
        background: #e9f3ef;
        border-radius: 2px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(21, 32, 66, 0.04);
    }

    .rightPanel {
        flex: 1;
        background: #fff;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(21, 32, 66, 0.04);
        display: flex;
        flex-direction: column;
    }

    .blockHeader {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;

        .titleIcon {
            width: 3px;
            height: 16px;
            border-radius: 2px;
            background: rgba(0, 102, 101, 1);
            display: inline-block;
        }

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

    .filters {
        display: flex;
        gap: 12px;
        margin-bottom: 16px;

        .filterSelect {
            width: 100%;

            :global(.ant-select-selector) {
                border: 1px solid rgba(45, 158, 157, 1);
                border-radius: 2px;
            }

            :global(.ant-select-focused .ant-select-selector) {
                border-color: rgba(45, 158, 157, 1) !important;
                box-shadow: 0 0 0 2px rgba(45, 158, 157, 0.2) !important;
            }

            :global(.ant-select:hover .ant-select-selector) {
                border-color: rgba(45, 158, 157, 1) !important;
            }
        }
    }

    .treeWrapper {
        flex: 1;
        overflow: hidden;

        .tree {
            background-color: transparent;

            :global(.ant-tree-switcher) {
                display: flex;
                align-items: center !important;
            }

            // 整体层级竖线颜色
            :global(.ant-tree-indent-unit:before) {
                border-inline-end: 1px solid rgba(0, 102, 101, 1) !important;
            }

            // 叶子节点前的连线颜色（横线 + 竖线）
            :global(.ant-tree-switcher-leaf-line:after) {
                border-bottom: 1px solid rgba(0, 102, 101, 1) !important;
            }

            :global(.ant-tree-switcher-leaf-line:before) {
                border-inline-end: 1px solid rgba(0, 102, 101, 1) !important;
            }

            :global(.ant-tree-checkbox-inner) {
                // background-color: transparent;
                border: 1px solid rgba(0, 102, 101, 1);
                border-radius: 4px;

                &:hover {
                    background-color: rgba(0, 102, 101, 1);
                    border: 1px solid rgba(0, 102, 101, 1);
                border-radius: 4px;
                }

                &:after {
                    background-color: transparent !important;

                }
            }

            // 选中（勾选）状态：保持与 hover 一致
            :global(.ant-tree-checkbox-checked .ant-tree-checkbox-inner),
            :global(.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner) {
                background-color: rgba(0, 102, 101, 1) !important;
                border-color: rgba(0, 102, 101, 1) !important;
                border-radius: 4px;
            }

            :global(.ant-tree) {
                background-color: transparent;
            }

            :global(.ant-tree-treenode) {
                padding: 2px 0;
            }

            :global(.ant-tree-node-content-wrapper) {
                padding: 2px 4px;
                border-radius: 4px;
                transition: background 0.2s ease;

                &:hover {
                    background: rgba(196, 225, 214, 0.3);
                }
            }

            :global(.ant-tree-node-selected) {
                background: rgba(190, 215, 210, 1) !important;
            }
        }
    }

    .infoGrid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-top: 8px;

        .infoCard {
            background: #f8fafc;
            border-radius: 12px;
            padding: 16px;
            border: 1px solid #e4e9f2;
            min-height: 220px;

            .cardTitle {
                font-size: 15px;
                font-weight: 500;
                color: rgba(0, 0, 0, 1);
                margin-bottom: 12px;
            }

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

                .itemRow {
                    display: flex;
                    gap: 12px;
                    align-items: flex-start;
                    font-size: 13px;
                    color: #4f5e6f;

                    .itemLabel {
                        width: 90px;
                        color: #7d8a99;
                    }

                    .itemValue {
                        flex: 1;
                        color: rgba(0, 0, 0, 1);
                        font-weight: 400;

                        .tagList {
                            display: flex;
                            flex-wrap: wrap;
                            gap: 8px;

                            .tag {
                                display: inline-flex;
                                align-items: center;
                                padding: 2px 10px;
                                border-radius: 999px;
                                background: #F0F7F7;
                                color: #333333;
                                font-size: 12px;
                                font-weight:400;
                            }
                        }
                    }
                }
            }
        }
    }
}

.treeNodeTitle {
    display: inline-flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    position: relative;
    padding-right: 40px;
    margin-right: 80px;


    // 子元素：文本
.nodeText {
    flex: 1;
        color: rgba(0, 0, 0, 1);
    font-weight: 400;
    font-size: 12px;
}

    // 子元素：右侧标签
.nodeTag {
        // min-width: 48px;
    text-align: center;
        padding: 0px 6px;
        border-radius: 2px;
    font-size: 11px;
        font-weight: 400;
    position: absolute;
    right: 0;
    margin-right: 0;

        // 工厂、罐区、测点、储罐使用指定背景色
    &.tag-depot {
            background: rgba(196, 225, 214, 1);
            color: rgba(0, 0, 0, 1);
    }

    &.tag-area {
            background: rgba(196, 225, 214, 1);
            color: rgba(0, 0, 0, 1);
    }

        &.tag-sensor {
            background: rgba(196, 225, 214, 1);
            color: rgba(0, 0, 0, 1);
    }

    &.tag-tank {
            background: rgba(196, 225, 214, 1);
            color: rgba(0, 0, 0, 1);
        }

        // 其他类型：罐组、设备等
        &.tag-group {
            background: rgba(196, 225, 214, 1);
            color: rgba(0, 0, 0, 1);
    }

    &.tag-device {
            background: rgba(196, 225, 214, 1);
            color: rgba(0, 0, 0, 1);
    }
    }
}

// @media (max-width: 1400px) {
//     .container {
//         flex-direction: column;

//         .leftPanel {
//             flex: none;
//             width: 100%;
//         }

//         .infoGrid {
//             grid-template-columns: 1fr;
//         }
//     }
// }
