<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
  <ribbon startFromScratch="false">
    <tabs>
      <tab id="xgMagicBox" label="学工魔盒">

        <group id="grpMain" label="常用操作">
          <button id="btnSidebar" label="打开面板" size="large" onAction="toggleSidebar" imageMso="ControlLayoutStacked" />
          <button id="btnSmartFormat" label="一键排版" size="large" onAction="smartFormatDocument" imageMso="AutoFormat" />
          <button id="btnClean" label="清除MD格式" size="normal" onAction="cleanText" imageMso="ClearFormatting" />
          <button id="btnFixNum" label="编号修正" size="normal" onAction="fixNumbering" imageMso="Numbering" />
        </group>

        <group id="grpWrite" label="AI写作">
          <button id="btnNotice" label="通知生成" size="large" onAction="genNotice" imageMso="MailMerge" />
          <button id="btnDoc" label="公文起草" size="large" onAction="genDoc" imageMso="FileNew" />
          <button id="btnComment" label="学生评语" size="normal" onAction="genComment" imageMso="ReviewComment" />
          <button id="btnDeed" label="先进事迹" size="normal" onAction="genDeed" imageMso="Award" />
          <button id="btnSpeech" label="讲话稿" size="normal" onAction="genSpeech" imageMso="Microphone" />
          <button id="btnHost" label="主持稿" size="normal" onAction="genHost" imageMso="PresentationCreate" />
        </group>

        <group id="grpMeeting" label="会议活动">
          <button id="btnSignIn" label="签到表" size="large" onAction="genSignIn" imageMso="Checklist" />
          <button id="btnMinutes" label="会议纪要" size="normal" onAction="genMinutes" imageMso="MeetingWorkspace" />
          <button id="btnThreeMeet" label="三会一课" size="normal" onAction="genThreeMeet" imageMso="Schedule" />
          <button id="btnTalk" label="谈话记录" size="normal" onAction="genTalk" imageMso="ReviewShowChanges" />
        </group>

        <group id="grpDesensitize" label="信息脱敏">
          <button id="btnSmartDesen" label="智能全量脱敏" size="large" onAction="smartDesensitizeAll" imageMso="ProtectDocument" />
          <button id="btnDesensitize" label="人名脱敏" size="normal" onAction="desensitize" imageMso="Hide" />
          <button id="btnDesenPhone" label="电话脱敏" size="normal" onAction="desensitizePhone" imageMso="Phone" />
          <button id="btnDesenId" label="身份证脱敏" size="normal" onAction="desensitizeId" imageMso="IDCard" />
        </group>

        <group id="grpCheck" label="校对审核">
          <button id="btnWrongWords" label="易错词检测" size="normal" onAction="checkWrongWords" imageMso="Spelling" />
          <button id="btnFormal" label="规范用语" size="normal" onAction="checkFormal" imageMso="TrackChanges" />
          <button id="btnSensitive" label="敏感词红线" size="normal" onAction="checkSensitive" imageMso="ReviewPane" />
          <button id="btnFormatCheck" label="格式规范" size="normal" onAction="formatCheck" imageMso="StyleChange" />
        </group>

        <group id="grpAI" label="AI分析">
          <button id="btnAbstract" label="文档摘要" size="normal" onAction="genAbstract" imageMso="TableOfContents" />
          <button id="btnOutline" label="大纲提取" size="normal" onAction="extractOutline" imageMso="OutlineView" />
          <button id="btnPolish" label="学术润色" size="normal" onAction="academicPolish" imageMso="Research" />
          <button id="btnRewrite" label="多策略改写" size="normal" onAction="rewrite" imageMso="Replace" />
          <button id="btnLogic" label="逻辑诊断" size="normal" onAction="logicCheck" imageMso="DiagramHierarchy" />
        </group>

      </tab>
    </tabs>
  </ribbon>
</customUI>
