/* Shengwang Solution List Component Styles */

.shengwang-solution-list {
  padding: 80px 0;
  background: linear-gradient(180deg, #F9F9F9 0%, #F5F5F5 100%);
}

/* Container max-width 1360px */
@media screen and (min-width: 1600px) {
  .shengwang-solution-list .container {
    max-width: 1360px;
  }
}
.shengwang-solution-list .swiper-wrapper{
  width: 0;
}
/* Header Section */
.shengwang-solution-list .header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 1058px;
  margin-left: auto;
  margin-right: auto;
}

.shengwang-solution-list .title {
  font-family: var(--title-font-family);
  font-size: var(--shengwang-inner-title);
  font-weight: 500;
  line-height: 1.22;
  text-transform: capitalize;
  color: #000000;
  margin: 0 0 10px 0;
}

.shengwang-solution-list .description {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01875em;
  color: #666666;
  text-align: center;
  margin: 0;
}

/* Category Navigation */
.shengwang-solution-list .nav-wrapper {
  max-width: 100%;
  width: fit-content;
  overflow-y: auto;
  border-radius: 37px;
  border: 2px solid #EBEBEB;
  background: #F8F8F8;
  display: flex;
  margin: 0 auto 20px;
  padding: 12px;
}

.shengwang-solution-list .nav-wrapper::-webkit-scrollbar {
  display: none;
}

.shengwang-solution-list .nav {
  width: max-content;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.shengwang-solution-list .nav-item {
  padding: 10px 24px;
  border-radius: 24px;
  color: #000000;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: capitalize;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.shengwang-solution-list .nav-item.active,
.shengwang-solution-list .nav-item:hover {
  background: var(--color-primary);
  color: #FFFFFF;
}

/* Case List - 3x3 Grid Layout */
.shengwang-solution-list .case-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 20px;
  margin-top: 20px;
}

/* Case Item - Default (vertical layout) */
.shengwang-solution-list .case-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Case Item 1 - Left column, spans 3 rows */
.shengwang-solution-list .case-item:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 4;
  gap: 20px;
}

/* Case Item 2 - Middle column, spans 2 rows */
.shengwang-solution-list .case-item:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  width: 100%;
  gap: 18px;
}

/* Case Item 3 - Right column, spans 2 rows */
.shengwang-solution-list .case-item:nth-child(3) {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  gap: 18px;
}

/* Case Item 4 - Bottom row, spans 2 columns (middle + right), horizontal layout */
.shengwang-solution-list .case-item:nth-child(4) {
  grid-column: 2 / 4;
  grid-row: 3 / 4;
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}

.shengwang-solution-list .case-item:nth-child(4) .image-container {
  flex: 1;
}

.shengwang-solution-list .case-item:nth-child(4) .content {
  /* flex: 0 0 526px; */
  width: 58.4%;
}

/* Image Container */
.shengwang-solution-list .image-container {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #F9F9F9;
}

/* Item 1 - Tall image (spans 3 rows) */
.shengwang-solution-list .case-item:nth-child(1) .image-container {
  /* height: 100%; */
  aspect-ratio:437 / 493;
  /* min-height: 500px; */
}

/* Items 2 & 3 - Medium height images (span 2 rows) */
.shengwang-solution-list .case-item:nth-child(2) .image-container,
.shengwang-solution-list .case-item:nth-child(3) .image-container {
  aspect-ratio: 437 / 291;
}

/* Item 4 - Wide horizontal image */
.shengwang-solution-list .case-item:nth-child(4) .image-container {
  aspect-ratio: 349/204;
}

.shengwang-solution-list .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Swiper Carousel */
.shengwang-solution-list .swiper {
  position: relative;
  width: 100%;
  height: 100%;
}

.shengwang-solution-list .swiper-slide {
  width: 100%;
  height: 100%;
}

.shengwang-solution-list .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Swiper Pagination */
.shengwang-solution-list .swiper-pagination {
  position: absolute;
  bottom: 16px !important;
  left: 50% !important;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 10;
}

.shengwang-solution-list .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D9D9D9;
  cursor: pointer;
  transition: background 0.3s ease;
  opacity: 1;
}

.shengwang-solution-list .swiper-pagination-bullet-active {
  background: #C2B7B0;
}

/* Content */
.shengwang-solution-list .content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shengwang-solution-list .content-title {
  font-family: var(--title-font-family);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: capitalize;
  color: #000000;
  margin: 0;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1; /* 这里是超出几行省略 */
  overflow: hidden;
}

.shengwang-solution-list .content-desc {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: capitalize;
  color: #666666;
  margin: 0;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; /* 这里是超出几行省略 */
  overflow: hidden;
}

/* View More Button */
.shengwang-solution-list .button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.shengwang-solution-list .view-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 38px;
  border-radius: 18px;
  border: 2px solid var(--color-primary);
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  /* width: 297px; */
  height: 72px;
}
.shengwang-solution-list .view-more-btn .iconfont{
  font-size:18px;
  color:var(--color-primary);
}
.shengwang-solution-list .view-more-btn span {
  font-family: var(--title-font-family);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.038em;
  color: var(--color-primary);
  transition: color 0.3s ease;
}

.shengwang-solution-list .arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.shengwang-solution-list .view-more-btn:hover {
  background: var(--color-primary);
}

.shengwang-solution-list .view-more-btn:hover span {
  color: #FFFFFF;
}

.shengwang-solution-list .view-more-btn:hover .iconfont {
  color:#fff;
}

/* Responsive Styles */
@media screen and (max-width: 1600px) {
  .shengwang-solution-list .view-more-btn span{
    font-size: 20px;
  }
  .shengwang-solution-list .view-more-btn{
    padding:22px 32px;
  }
}
@media screen and (max-width: 1400px) {
  .shengwang-solution-list .case-item:nth-child(1) .image-container {
    /* min-height: 400px; */
  }
  
  .shengwang-solution-list .case-item:nth-child(4) .content {
    flex: 0 0 400px;
    width: 400px;
  }
  .shengwang-solution-list .content-title{
    font-size:24px;
  }
}

@media screen and (max-width: 1200px) {
  .shengwang-solution-list .image-container{
    border-radius: 16px;
  }
  .shengwang-solution-list .case-item:nth-child(1) .image-container {
    /* min-height: 350px; */
  }
  .shengwang-solution-list .case-list{
    gap:15px;
  }
  .shengwang-solution-list .case-item:nth-child(4) .content {
    flex: 0 0 350px;
    width: 350px;
  }
  .shengwang-solution-list .content-title{
    font-size:22px;
  }
  .shengwang-solution-list .content-desc{
    font-size:14px
  }
}

@media screen and (max-width: 992px) {
  .shengwang-solution-list {
    padding: 50px 0;
  }
  .shengwang-solution-list .button-wrapper{
    margin-top:30px
  }
  .shengwang-solution-list .content-title{
    font-size:20px;
  }
  .shengwang-solution-list .header {
    margin-bottom: 30px;
  }

  .shengwang-solution-list .description {
    font-size: 14px;
  }
  .shengwang-solution-list .case-list{
    gap:10px;
  }
  .shengwang-solution-list .nav-wrapper {
    padding: 6px 10px;
    border-radius: 30px;
    margin-bottom: 20px;
  }

  .shengwang-solution-list .nav-item {
    padding: 6px 16px;
    font-size: 14px;
  }

  /* Change to single column layout */
  .shengwang-solution-list .case-list {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }

  /* Reset all items to default grid position */
  .shengwang-solution-list .case-item:nth-child(1),
  .shengwang-solution-list .case-item:nth-child(2),
  .shengwang-solution-list .case-item:nth-child(3),
  .shengwang-solution-list .case-item:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  /* Item 1: reset height */
  .shengwang-solution-list .case-item:nth-child(1) .image-container {
    height: auto;
    min-height: auto;
    aspect-ratio: 437 / 236;
  }

  /* Item 4: change to column layout */
  .shengwang-solution-list .case-item:nth-child(4) {
    flex-direction: column;
    gap: 18px;
  }

  .shengwang-solution-list .case-item:nth-child(4) .image-container {
    flex: none;
    width: 100%;
    aspect-ratio: 437 / 236;
  }

  .shengwang-solution-list .case-item:nth-child(4) .content {
    flex: none;
    width: 100%;
  }

  .shengwang-solution-list .content-title {
    font-size: 22px;
  }

  .shengwang-solution-list .content-desc {
    font-size: 14px;
  }

  .shengwang-solution-list .view-more-btn {
    padding: 18px 30px;
    width: auto;
    height: auto;
  }

  .shengwang-solution-list .view-more-btn span {
    font-size: 18px;
  }
}

@media screen and (max-width: 576px) {
  .shengwang-solution-list {
    padding: 30px 0;
  }
  .shengwang-solution-list .content-title{
    font-size:16px;
  }
  .shengwang-solution-list .header {
    margin-bottom: 20px;
  }

  .shengwang-solution-list .description {
    font-size: 12px;
  }
  .shengwang-solution-list .content-desc{
    font-size:12px
  }
  .shengwang-solution-list .nav-item {
    padding: 6px 12px;
    font-size: 12px;
  }

  .shengwang-solution-list .case-list {
    gap: 16px;
  }

  .shengwang-solution-list .case-item {
    gap: 12px;
  }

  .shengwang-solution-list .case-item:nth-child(1) {
    gap: 12px;
  }

  .shengwang-solution-list .case-item:nth-child(4) {
    gap: 12px;
  }

  .shengwang-solution-list .content-title {
    font-size: 18px;
  }

  .shengwang-solution-list .content-desc {
    font-size: 12px;
  }

  .shengwang-solution-list .view-more-btn {
    padding: 14px 24px;
  }

  .shengwang-solution-list .view-more-btn span {
    font-size: 16px;
  }

  .shengwang-solution-list .arrow-icon {
    width: 14px;
    height: 14px;
  }

  .shengwang-solution-list .swiper-pagination {
    bottom: 12px;
    gap: 3px;
  }

  .shengwang-solution-list .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
  }
}