.pisell-lowcode-log-card {
  position: relative;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 4px;
  border-left: 4px solid #ddd;
  background-color: #fafafa;
  transition: all 0.2s ease;

  &:hover {
    background-color: #f5f5f5;
  }

  // 头部信息
  &-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
  }

  &-time {
    font-weight: 500;
    color: #6b7280;
  }

  &-level {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.05);
  }

  &-device-id {
    color: #6b7280;
    font-weight: bold;
  }

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

  &-service {
    color: #333;
    line-height: 1.4;
    font-weight: 500;
  }

  &-data {
    background-color: #f8f8f8;
    border-radius: 4px;
    padding: 8px;
    
    pre {
      margin: 0;
      font-size: 12px;
      color: #6b7280;
      line-height: 1.3;
      white-space: pre-wrap;
      word-break: break-all;
      font-family: unset;
    }
  }

  // 不同日志级别的样式
  &.debug {
    border-left-color: #666;
    
    .pisell-lowcode-log-card-level {
      background-color: rgba(102, 102, 102, 0.1);
    }
  }

  &.info {
    border-left-color: #1890ff;
    
    .pisell-lowcode-log-card-level {
      background-color: rgba(24, 144, 255, 0.1);
    }
  }

  &.error {
    border-left-color: #ff4d4f;
    background-color: #fff2f0;
    
    .pisell-lowcode-log-card-level {
      background-color: rgba(255, 77, 79, 0.1);
    }
    
    &:hover {
      background-color: #ffebe8;
    }
  }
}

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

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

    &-service {
      font-size: 12px;
    }

    &-data pre {
      font-size: 10px;
    }
  }
}