.weilan-service-custom-table {
  /* padding: 3.75rem 0; */
  /* background-color: #fff; */
  position: relative;
  z-index: 5;
  padding-bottom: 7.5rem;
}

.weilan-table-title {
  font-size: var(--font-size-h3);
  text-transform: capitalize;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 140%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 6.25rem;
  background: linear-gradient(180deg, #0b62c1 0%, #54dbcc 100%);
}

.weilan-table-wrapper {
  overflow-x: auto;
  margin: 0 auto;
}

.weilan-custom-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.weilan-custom-table tbody tr {
  transition: background-color 0.3s ease;
  border-bottom: #fff 1px solid;
}

.weilan-custom-table tbody tr:last-child {
  border-bottom: none;
}

.weilan-custom-table tbody td {
  line-height: 166.67%;
  vertical-align: top;
}

.weilan-custom-table tbody td.row-label {
  font-weight: 600;
  line-height: 150%;
  color: #333;
  width: 100%;
  font-size: var(--font-size-h4);
  background: #f0f0f0;
  padding: 2.5rem 2.5rem 2.1875rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.weilan-custom-table tbody td.row-content {
  color: #333;
  padding: 2.5rem 2.5rem 2.1875rem 2.5rem;
  width: 100%;
}

/* 图片列表样式 */
.imgs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.imgs-container.item-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.imgs-container.item-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.img-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6875rem;
}

.img-item.item-3,
.img-item.item-4 {
  width: 100%;
  min-width: 0px;
}

.img-item.item-3 img {
  aspect-ratio: 373 / 265;
  max-width: 23.3125rem;
  max-height: 16.5625rem;
  flex-shrink: 0;
}

.img-item.item-4 img {
  aspect-ratio: 280 / 180;
  max-width: 17.5rem;
  max-height: 16.5625rem;
  flex-shrink: 0;
}

.img-item img {
  width: 100%;
  object-fit: cover;
}

.table-row {
  display: grid;
  grid-template-columns: 21.5625rem 1fr;
  background-color: #fff;
}
.table-row-one.table-row {
  grid-template-columns: 1fr;
  background-color: #f5f5f5;
}

.table-row-one.table-row .row-content .tags-container,
.table-row-one.table-row .row-content .imgs-container {
  justify-content: center;
}

.table-row:nth-of-type(2n) {
  background-color: #f5f5f5;
}

.img-title {
  font-size: var(--font-size-lg);
  color: #333;
  text-align: center;
  font-weight: 400;
  line-height: 166.67%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  display: block;
}

/* 标签列表样式 */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.tag-item {
  display: inline-block;
  padding: 0px 0.9375rem;
  background-color: var(--color-second);
  color: #fff;
  font-size: var(--font-size-lg);
  border-radius: 20px;
  line-height: 166%;
  white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .table-row {
    grid-template-columns: 30% 1fr;
  }

  .weilan-custom-table tbody td.row-label {
    padding: 1rem;
  }

  .weilan-custom-table tbody td.row-content {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .imgs-container.item-3,
  .imgs-container.item-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .table-row {
    grid-template-columns: 1fr;
  }
}
