/* Business Solutions 页 */

.home-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 576px) {
  .home-wrap {
    padding: 0 16px;
  }
}

.bs-solution {
  padding: 48px 0 56px;
  background: var(--color-bg, #fff);
}

.bs-solution__title {
  margin: 0 0 28px;
  font-size: clamp(32px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary, #0b51c8);
}

/* ---------- 分类 Tab ---------- */

.bs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #d8dde3;
}

.bs-tabs__btn {
  display: inline-block;
  text-decoration: none;
  position: relative;
  margin: 0 0 -1px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #6b7785;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.bs-tabs__btn:hover {
  color: var(--color-primary, #0b51c8);
}

.bs-tabs__btn.is-active {
  z-index: 1;
  color: var(--color-primary, #0b51c8);
  font-weight: 600;
  background: #fff;
  border-color: #d8dde3;
}

.bs-tabs__btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---------- 卡片网格 ---------- */

.bs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 28px;
}

.bs-card {
  display: none;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: 0 1px 4px rgba(30, 42, 56, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.bs-card.is-visible {
  display: block;
}

.bs-card:hover {
  box-shadow: 0 6px 20px rgba(30, 42, 56, 0.1);
  transform: translateY(-2px);
}

.bs-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.bs-card__media {
  position: relative;
  overflow: hidden;
  background: #e8eaed;
}

.bs-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.bs-card:hover .bs-card__media img {
  transform: scale(1.03);
}

.bs-card__date {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: #4a5560;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 4px;
}

.bs-card__body {
  padding: 22px 24px 26px;
  background: #f3f4f6;
}

.bs-card__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-heading, #1e2a38);
  transition: color 0.2s ease;
}

.bs-card__link:hover .bs-card__title {
  color: var(--color-primary, #0b51c8);
}

.bs-card__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #6b7785;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bs-empty {
  display: none;
  grid-column: 1 / -1;
  padding: 48px 16px;
  font-size: 16px;
  text-align: center;
  color: #6b7785;
}

.bs-empty.is-visible {
  display: block;
}

/* ---------- 分页 ---------- */

.bs-pagination {
  margin-top: 48px;
  text-align: center;
}

.bs-pagination .product-pagination__list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bs-pagination .product-pagination__link,
.bs-pagination .product-pagination__current,
.bs-pagination .product-pagination__next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  font-size: 15px;
  line-height: 1;
  color: #4a5560;
}

.bs-pagination .product-pagination__current {
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
}

.bs-pagination .product-pagination__link:hover {
  color: var(--color-primary);
}

.bs-pagination .product-pagination__next {
  min-width: auto;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--color-border, #e8ecf0);
}

.bs-pagination .product-pagination__next:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

@media (max-width: 992px) {
  .bs-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .bs-tabs__btn {
    flex-shrink: 0;
  }
}

@media (max-width: 992px) {
  .bs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .bs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .bs-solution {
    padding: 36px 0 56px;
  }

  .bs-solution__title {
    margin-bottom: 20px;
  }

  .bs-tabs {
    margin-bottom: 28px;
  }

  .bs-tabs__btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  .bs-card__body {
    padding: 18px 16px 22px;
  }

  .bs-card__title {
    font-size: 18px;
  }

  .bs-card__desc {
    font-size: 14px;
  }

  .bs-pagination {
    margin-top: 32px;
  }
}

/* ---------- GLOBAL BRANDS 流动轮播 ---------- */

.bs-brands {
  padding: 0 0 88px;
  background: var(--color-bg, #fff);
}

.bs-brands__header {
  margin-bottom: 40px;
  text-align: center;
}

.bs-brands__title {
  margin: 0 0 20px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-heading, #1e2a38);
}

.bs-brands__desc {
  max-width: 720px;
  margin: 0 auto 8px;
  font-size: 15px;
  line-height: 1.65;
  color: #5c6773;
}

.bs-brands__desc:last-of-type {
  margin-bottom: 0;
}

.bs-brands__track-outer {
  width: 100%;
  overflow: hidden;
}

.bs-brands__swiper {
  width: 100%;
  overflow: hidden;
}

.bs-brands__swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

.bs-brands__swiper .swiper-slide {
  width: 280px;
  height: auto;
}

.bs-brands__item {
  margin: 0;
}

.bs-brands__item img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  background: #e8eaed;
}

.bs-brands__caption {
  margin: 12px 0 0;
  padding: 0 4px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  color: var(--color-heading, #1e2a38);
}

@media (max-width: 576px) {
  .bs-brands {
    padding-bottom: 64px;
  }

  .bs-brands__header {
    margin-bottom: 28px;
  }

  .bs-brands__desc {
    font-size: 14px;
  }

  .bs-brands__swiper .swiper-slide {
    width: 240px;
  }

  .bs-brands__item img {
    height: 168px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bs-card,
  .bs-card__media img {
    transition: none;
  }

  .bs-card:hover {
    transform: none;
  }

  .bs-brands__swiper .swiper-wrapper {
    transition-timing-function: ease !important;
  }
}
