.popoverBox {
  background: #112435;
  color: #f08047;
  max-height: 400px;
  max-width: 500px;
  overflow: auto;
  padding: 12px;
  border-radius: 4px;

  pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    line-height: 1.5;
  }

  &::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  &::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
  }
}

.detailContent {
  .detailItem {
    display: flex;
    margin-bottom: 16px;
    line-height: 1.6;

    .label {
      width: 100px;
      flex-shrink: 0;
      color: #8c8c8c;
    }

    .errorText {
      color: #ff4d4f;
    }
  }

  .detailSection {
    margin-top: 24px;

    h4 {
      margin-bottom: 12px;
      font-size: 14px;
      font-weight: 500;
      color: #262626;
    }

    .codeBlock {
      background: #112435;
      color: #f08047;
      padding: 16px;
      border-radius: 6px;
      max-height: 300px;
      overflow: auto;

      pre {
        margin: 0;
        white-space: pre-wrap;
        word-wrap: break-word;
        font-family: 'Courier New', Courier, monospace;
        font-size: 12px;
        line-height: 1.5;
      }

      &::-webkit-scrollbar {
        width: 6px;
        height: 6px;
      }

      &::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
      }
    }
  }
}

// 暗色模式适配
:global(.ant-layout-content[data-theme='dark']) {
  .detailContent {
    .detailItem {
      .label {
        color: #a6a6a6;
      }
    }

    .detailSection {
      h4 {
        color: #fff;
      }
    }
  }
}
