/* 解决方案卡片样式 */

/* 解决方案列表：卡片（边框 #eee、圆角 8px、间距 16px） */
.g-solutions-list {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  padding: 0;
  background: transparent;
  padding-bottom: 48px;
  display: flex;
  justify-content: center;
}

.g-solutions-list__items {
  display: flex;
  flex-wrap: wrap;

  align-items: flex-start;
  width: 100%;
}

.g-solutions-list__pagination {
  width: 100%;
  flex-basis: 100%;
}

.g-solution-card {
  display: block;
  box-sizing: border-box;
  min-width: 0;
  flex: 0 1 100%;
  max-width: 100%;
  background: transparent;
  border-radius: 12px;
  transition: box-shadow 0.5s ease;
}

.g-solution-card:hover,
.g-solution-card:focus-within {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.g-solution-card__media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
}

.g-solution-card__image-wrap {
  position: relative;
  padding-top: max(calc(100% * 8 / 6), 200px);
  background: #f0f0f0;
}

.g-solution-card__image-link {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  box-sizing: border-box;
}

.g-solution-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  object-position: center;
  display: block;
}

.g-solution-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 20px;
  background: #ffffff;
  transition: padding 0.5s ease;
}

.g-solution-card__title {
  margin: 0;
  font-family: 'Exo', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.35;
  color: #1a1a1a;
  transition: color 0.25s ease;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: break-word;
}

.g-solution-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.g-solution-card__btn {
  width: fit-content;
  align-self: flex-start;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  padding: 0 22px;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  font-family: 'Exo', sans-serif;
  font-size: 14px;
  line-height: 1.2;
  color: #fff;
  background: #f5a200;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    max-height 0.32s ease,
    opacity 0.28s ease,
    margin-top 0.28s ease,
    padding 0.28s ease,
    visibility 0.28s ease,
    background 0.2s ease;
}

.g-solution-card__btn img {
  width: 14px;
  height: 14px;
}

@media (max-width: 1236px) {
  .g-solution-card__btn {
    display: none !important;
  }
}

.g-solution-card:hover .g-solution-card__btn,
.g-solution-card:focus-within .g-solution-card__btn {
  margin-top: 12px;
  padding: 10px 22px;
  max-height: 51.20px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.g-solution-card__btn:hover {
  background: #e88d0b;
  color: #fff;
}

.g-solution-card__btn:focus-visible {
  outline: 2px solid #f5a200;
  outline-offset: 2px;
}

/* 中屏双列 */
@media (min-width: 768px) and (max-width: 1199.98px) {
 

  .g-solution-card {
    flex: 0 1 calc((100% - 16px) / 2);
    max-width: 326px;
    aspect-ratio: 320 / 394;
  }

  .g-solution-card__image-wrap {
    padding-top: max(calc(100% * 8 / 6), 220px);
  }

  .g-solution-card__body {
    background: #fff;
  }

  .g-solution-card__title {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 16px;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .g-solution-card {
    flex: 0 1 calc((100% - 32px) / 3);
    max-width: 326px;
  }
}

@media (min-width: 1400px) {
  .g-solution-card {
    flex: 0 1 calc((100% - 48px) / 4);
    max-width: 326px;
  }
}

@media (max-wid12pxh: 767px) {
  .g-solutions-list__items {
    gap: 0;
  }

  .g-solution-card,
  .g-solution-card__media {
    border-radius: 10p  x  ;
  }

  html:not([lang="cn"]) .g-solution-card {
  
   height: calc((100vw - 32px) * 394 / 326); /* 兜底 */
    aspect-ratio: 326 / 394;
  }
}

@media (max-width: 767px) and (hover: none) and (pointer: coarse) {
  .g-solution-card__body {
    background: #fff;
  }

  html:not([lang="cn"]) .g-solution-card__body {
    background: #ffffff;
    padding:12px 12px;
  }
}