.case-showcase {
  background: #ffffff;
  padding: 20px 16px;
  margin: 16px 0;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  
  &:first-child {
    margin-top: 0;
  }
  
  &:last-child {
    margin-bottom: 32px;
  }

  &__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  &__title {
    &-text {
      display: block;
      font-size: 18px;
      font-weight: 600;
      color: #1e293b;
      margin-bottom: 4px;
    }
  }

  &__subtitle {
    font-size: 14px;
    color: #64748b;
    display: block;
  }

  &__view-all {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 20px;
    
    &-text {
      font-size: 13px;
      color: #64748b;
      margin-right: 4px;
    }

    &:active {
      background: #f1f5f9;
    }
  }

  &__scroll {
    white-space: nowrap;
  }

  &__item {
    display: inline-block;
    width: 280px;
    margin-right: 16px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    
    &:last-child {
      margin-right: 0;
    }

    &:active {
      transform: scale(0.98);
      transition: transform 0.1s;
    }
  }

  &__image-container {
    position: relative;
    height: 160px;
    overflow: hidden;
  }

  &__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  &__tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(59, 130, 246, 0.9);
    padding: 4px 10px;
    border-radius: 12px;
    
    &-text {
      font-size: 12px;
      color: #ffffff;
      font-weight: 500;
    }
  }

  &__content {
    padding: 16px;
  }

  &__item-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
  }

  &__item-desc {
    display: block;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
  }
}

// 响应式适配
@media (max-width: 375px) {
  .case-showcase {
    padding: 16px 12px;
    margin: 12px 0;

    &__item {
      width: 240px;
      margin-right: 12px;
    }

    &__image-container {
      height: 140px;
    }
  }
}