.hengsheng_hot_goods {
  --hengsheng-hot-goods-meta-size: 15px;
  background: var(--bg-color);
}

.hengsheng_hot_goods_header {
  margin-bottom: 60px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hengsheng_hot_goods_title {
  margin: 0;
  color: #26292b;
  font-family: var(--font-family-semi-bold);
  font-size: var(--title-size-h2);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: capitalize;
}

.hengsheng_hot_goods_grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 21px;
  row-gap: 61px;
}

.hengsheng_hot_goods_card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hengsheng_hot_goods_card_media {
  aspect-ratio: 344 / 295;
  background: #f6f6f4;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1200px;
  transform-style: preserve-3d;
  cursor: default;
}

.hengsheng_hot_goods_card_image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  display: block;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.72s ease;
}

.hengsheng_hot_goods_card_image_primary {
  z-index: 2;
  transform: rotateY(0deg);
}

.hengsheng_hot_goods_card_image_hover {
  transform: rotateY(-180deg);
}

.hengsheng_hot_goods_card_media.has-hover-image .hengsheng_hot_goods_card_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hengsheng_hot_goods_card_media.has-hover-image:hover .hengsheng_hot_goods_card_image_primary {
  transform: rotateY(180deg);
}

.hengsheng_hot_goods_card_media.has-hover-image:hover .hengsheng_hot_goods_card_image_hover {
  transform: rotateY(0deg);
}

.hengsheng_hot_goods_card_body {
  flex: 1;
  padding-top: 29px;
  display: flex;
  flex-direction: column;
}

.hengsheng_hot_goods_card_title {
  margin: 0;
  color: var(--title-text-color);
  font-family: var(--font-family-semi-bold);
  font-size: var(--title-size-h3);
  font-weight: 600;
  line-height: 1;
}

.hengsheng_hot_goods_card_title a {
  color: inherit;
  text-decoration: none;
  /* 👇 新加：控制最多 2 行，超出... */
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* 行数 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

}

.hengsheng_hot_goods_card_specs {
  margin: 14px 0 0;
  color: var(--text-color);
  font-family: var(--font-family-semi-bold);
  font-size: var(--hengsheng-hot-goods-meta-size);
  font-weight: 600;
  line-height: 1.47;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}


.hengsheng_hot_goods_action {
  min-height: 48px;
  width: fit-content;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid var(--color-primary);
  border-radius: 30px;
  background: #f6f6f4;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-family-semi-bold);
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
  text-decoration: none;
  justify-content: flex-start;
  overflow: hidden;
  transition: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.hengsheng_hot_goods_action:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  color: var(--color-second);
}

.hengsheng_hot_goods_action_more {
  flex-shrink: 0;
}

.hengsheng_hot_goods_action_more .hengsheng_hot_goods_action_text {
  text-transform: capitalize;
}

.hengsheng_hot_goods_action_detail {
  margin-top: clamp(20px, calc(60 / 1920 * 100vw), 60px);
  padding-left: 18px;
  padding-right: 18px;
  align-self: flex-start;
}

.hengsheng_hot_goods_action_detail .hengsheng_hot_goods_action_text {
  text-transform: uppercase;
}

.hengsheng_hot_goods_action_text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 0 10px 10px;
  white-space: nowrap;
}

.hengsheng_hot_goods_action_icon {
  width: 39px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.28s ease;
}

.hengsheng_hot_goods_action_icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hengsheng_hot_goods_action:hover .hengsheng_hot_goods_action_icon {
  transform: translateX(4px);
}

/* ↓1500px：第1步 */
@media screen and (max-width: 1500px) {

  .hengsheng_hot_goods_header {
    align-items: flex-end;
    margin-bottom: 44px;
  }

  .hengsheng_hot_goods_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 44px;
  }

  .hengsheng_hot_goods_card_body {
    padding-top: 24px;
  }
}

/* ↓1200px：第2步 */
@media screen and (max-width: 1200px) {
  .hengsheng_hot_goods_header {
    margin-bottom: 36px;
    align-items: center;
  }

  .hengsheng_hot_goods_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 36px;
  }

  .hengsheng_hot_goods_action {
    font-size: 16px;
  }

}

/* ↓992px：第3步 */
@media screen and (max-width: 992px) {

  .hengsheng_hot_goods_header {
    margin-bottom: 30px;
  }

  .hengsheng_hot_goods_grid {
    row-gap: 30px;
  }

  .hengsheng_hot_goods_card_body {
    padding-top: 18px;
  }

}

/* ↓768px：第4步 */
@media screen and (max-width: 768px) {
  .hengsheng_hot_goods_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 24px;
  }

  .hengsheng_hot_goods_title {
    max-width: none;
  }
}

/* ↓576px：第5步 */
@media screen and (max-width: 576px) {

  .hengsheng_hot_goods_header {
    margin-bottom: 24px;
    flex-direction: column;
  }

  .hengsheng_hot_goods_grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }
}
