.pisell-lowcode-error-card {
  position: relative;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;

  &:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  // 关闭按钮
  &-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border: none;
    font-size: 16px;
    color: #999;
    transition: all 0.2s ease;

    &:hover {
      color: #333;
    }
  }

  // 头部区域
  &-header {
    margin-bottom: 12px;
  }

  &-level {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: bold;
    font-size: 14px;
  }

  &-level-text {
    padding: 2px 8px;
    border-radius: 12px;
  }

  &-device {
    display: inline-flex;
    align-items: center;
  }

  // 内容区域
  &-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  &-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  &-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
  }

  &-value {
    font-size: 12px;
    color: #333;
    font-weight: 600;
  }

  &-description {
    display: flex;
    gap: 4px;
  }

  &-message {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
  }

  &-solution {
    display: flex;
    gap: 4px;
  }

  &-solution-text {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
  }

  // 错误级别样式
  &.fatal {
    border-left-color: #cf1322;
  }

  &.critical {
    border-left-color: #d4380d;
  }

  &.normal {
    border-left-color: #0958d9;
  }

  &.info {
    border-left-color: #389e0d;
  }
}

// 响应式设计
@media (max-width: 768px) {
  .pisell-lowcode-error-card {
    padding: 12px;
    margin-bottom: 8px;

    &-info-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
    }

    &-description,
    &-solution {
      flex-direction: column;
    }
  }
}
