graph LR
    %% ======== 样式定义 ========
    classDef actor fill:#fff7e6,stroke:#fa8c16,stroke-width:1px;
    classDef system fill:#f0f5ff,stroke:#2f54eb,stroke-width:1px;
    classDef usecase fill:#ffffff,stroke:#595959,stroke-width:1px,rx:20,ry:20;

    %% ======== 系统边界 ========
    System[招聘试题定制平台]:::system

    %% ======== 参与者（Actors） ========
    HR(招聘企业 HR):::actor
    Candidate(应聘者):::actor
    Admin(平台管理员):::actor

    %% ======== 用例（Use Cases） ========
    UC_ConfigJob(配置岗位需求):::usecase
    UC_ConfigPolicy(配置试题策略):::usecase
    UC_GenerateExam(自动生成试卷):::usecase
    UC_TakeExam(在线答题):::usecase
    UC_ViewResult(查看成绩与统计):::usecase
    UC_Feedback(提交试题反馈):::usecase
    UC_ManageBank(题库管理与题目淘汰):::usecase
    UC_ManageTenant(企业接入与运营配置):::usecase

    %% ======== 系统与用例关系 ========
    System --- UC_ConfigJob
    System --- UC_ConfigPolicy
    System --- UC_GenerateExam
    System --- UC_TakeExam
    System --- UC_ViewResult
    System --- UC_Feedback
    System --- UC_ManageBank
    System --- UC_ManageTenant

    %% ======== Actor 与 Use Case 关系 ========
    HR --- UC_ConfigJob
    HR --- UC_ConfigPolicy
    HR --- UC_ViewResult
    HR --- UC_Feedback

    Candidate --- UC_TakeExam
    Candidate --- UC_ViewResult
    Candidate --- UC_Feedback

    Admin --- UC_ManageBank
    Admin --- UC_ManageTenant

