.text-columns-with-image-section {
  overflow-x: clip;
  isolation: isolate;
  position: relative;

  --section-mobile-padding: 20px;
  --card-group-padding: 20px;
  --card-group-gap: 32px;

  background-color: rgb(var(--color-background));
}
.text-columns-with-image--full-width {
  width: 100%;
}
.text-columns-with-image__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.text-columns-with-image__heading-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  word-break: normal;
  white-space: nowrap;
  -webkit-box-orient: vertical;
  flex: 1;
}
.text-columns-with-image__heading-link {
  display: flex;
  column-gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: var(--body1-font-size);
  color: rgb(var(--color-text));
  text-align: var(--card-group-content-align);
}
.text-columns-with-image__heading-link-text {
  display: inline-flex;
}
@media (max-width: 959px) {
  .text-columns-with-image__heading-link-text {
    display: none;
  }
}
.text-columns-with-image__heading-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}
.text-columns-with-image__card-group-scroll {
  padding-top: 32px;
  inset-inline-start: auto;
  width: auto;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .text-columns-with-image__card-2,
  .text-columns-with-image__card-4 {
    transform: translateY(6rem);
  }
}
.text-columns-with-image__card-group {
  display: grid;
  grid-auto-columns: calc(
    100vw - (var(--section-mobile-padding) * 2 + var(--card-group-gap) + 24px)
  );
  grid-auto-flow: column;
  gap: var(--card-group-gap);
}
@media (max-width: 959px) {
  .text-columns-with-image__card-group-scroll {
    width: 100%;
    margin: 0;
  }
  /* 移动端单列：宽度跟随容器，卡片最宽 300px 并水平居中 */
  .text-columns-with-image__card-group {
    width: 100%;
    margin: 0;
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 300px);
    justify-content: center;
  }
  .text-columns-with-image__card {
    width: 100%;
  }
  .text-columns-with-image__card-title {
    justify-content: center;
  }
}
@media (min-width: 960px) {
  .text-columns-with-image__card-group {
    grid-template-columns: repeat(var(--desktop-columns), 1fr);
    grid-auto-columns: auto;
    grid-auto-flow: row dense;
    padding: 0;
    transform: none;
  }
}
.text-columns-with-image__card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 300px;
  text-align: var(--card-group-content-align);
}
.text-columns-with-image__card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  order: 1;
}
.text-columns-with-image__card-image img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--card-group-image-aspect-ratio);
  object-fit: cover;
  border-radius: var(--card-group-image-border-radius);
}
.text-columns-with-image__card-image .empty-image-class {
  display: block;
  width: 100%;
  height: 100%;
  background-color: rgb(var(--color-image-background));
}
.text-columns-with-image__card-title {
  display: flex;
  align-items: center;
  order: 2;
}
.text-columns-with-image__card-title-index {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: rgb(var(--color-button-secondary-text));
  background-color: rgba(var(--color-button-secondary-background));
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  margin-right: 6px;
}
.text-columns-with-image__card-text {
  order: 3;
}
.text-columns-with-image__card-link {
  display: flex;
  align-items: center;
  order: 4;
}
.text-columns-with-image__card-link .button--link {
  column-gap: 4px;
  text-decoration: none !important;
}
.text-columns-with-image__card-link-icon {
  display: inline-flex;
}
.text-columns-with-image__card-link-icon > svg {
  width: 10px;
  height: 10px;
}
.text-columns-with-image__card-link-icon > svg path {
  stroke: rgb(var(--color-text));
}
