Bit0r

graph TD
    %% 定义样式类
    classDef level5 fill:#d4edda,stroke:#155724,stroke-width:2px,color:#155724;
    classDef level4 fill:#e2e3e5,stroke:#383d41,stroke-width:2px,color:#383d41;
    classDef level3 fill:#fff3cd,stroke:#856404,stroke-width:2px,color:#856404;
    classDef level2 fill:#ffeeba,stroke:#856404,stroke-width:2px,color:#856404;
    classDef level1 fill:#f8d7da,stroke:#721c24,stroke-width:2px,color:#721c24;

    %% 金字塔结构
    subgraph Pyramid ["🏛️ DEX 与跨链技术安全金字塔 (The Grand Unified Security Pyramid)"]
        direction BT

        %% Level 5: 塔尖
        L5["🏆 Level 5: 绝对去信任层 (The Apex)<br/>核心: P2P, 物理隔离, 只信自己<br/>--------------------------------<br/>★ P2P 原子交换: BasicsSwap (隐私+XMR)<br/>★ 闪电网络 P2P: Robotsats (HODL Invoice)<br/>★ 主网多签 P2P: Bisq (2-of-2 Multisig)<br/>★ 主网多签 P2P: Haveno (2-of-3 Multisig)"]:::level5

        %% Level 4
        L4["🛡️ Level 4: 数学验证层 (Math Trust)<br/>核心: 零知识证明, 轻客户端, 信数学<br/>--------------------------------<br/>★ ZK 桥: Polyhedra, Succinct<br/>★ 轻客户端: IBC (Cosmos)"]:::level4

        %% Level 3
        L3["⚖️ Level 3: 经济博弈层 (Economic Trust)<br/>核心: 质押罚没, 博弈论, 信钱<br/>--------------------------------<br/>★ MPC/TSS: ThorChain (原生资产)<br/>★ 乐观验证: Nomad, Hop<br/>★ 重质押/AVS: Hyperlane"]:::level3

        %% Level 2
        L2["🤝 Level 2: 混合/意图层 (Hybrid / Intents)<br/>核心: 结果导向, 官方信用<br/>--------------------------------<br/>★ 意图驱动: UniswapX, CowSwap<br/>★ 官方销毁铸造: Circle CCTP"]:::level2

        %% Level 1
        L1["⚠️ Level 1: 外部验证层 (External Trust)<br/>核心: 多签, 信人品<br/>--------------------------------<br/>★ 外部验证桥: Multichain (已凉), Wormhole<br/>(单点故障风险高)"]:::level1

        %% 连接关系(从下往上支撑,或者表示层级关系)
        L1 --> L2
        L2 --> L3
        L3 --> L4
        L4 --> L5
    end

    %% 侧边说明 (可选,Mermaid有时候渲染侧边比较乱,这里直接包含在节点里了)