.tongda_case_list {
  padding: var(--section-padding) 0;
  background: #fff;
}

.tongda_case_list_grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 7.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tongda_case_list_card {
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  background: transparent;
  border-radius: 1.25rem;
  transition: box-shadow 0.3s ease;
}

.tongda_case_list_card:hover {
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
}

.tongda_case_list_card_link {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.tongda_case_list_media {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fafafa;
  border-bottom-left-radius: 1.25rem;
  border-bottom-right-radius: 1.25rem;
}

.tongda_case_list_image {
  display: block;
  width: 80%;
  object-fit: contain;
  transition: transform 0.3s;
}

.tongda_case_list_card:hover .tongda_case_list_image {
  transform: scale(1.05);
}

.tongda_case_list_title {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1.375rem;
  color: #fff;
  background: var(--color-primary, #cf1b10);
  font-family: var(--font-family);
  font-size: var(--font-size-24);
  font-weight: var(--font-weight-md);
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
}

.tongda_case_list_title::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 1.25rem;
  background: var(--color-primary, #cf1b10);
  content: '';
}

.tongda_case_list_title_text {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media screen and (max-width: 1024px) {
  .tongda_case_list_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 3rem;
  }

  .tongda_case_list_card,
  .tongda_case_list_media {
    border-radius: 1rem;
  }

  .tongda_case_list_title {
    padding: 1rem;
  }

  .tongda_case_list_title::before {
    height: 1rem;
  }
}
