/* ===== Brand Showcase — Multi-column brand items ===== */

.brand-showcase-section {
  position: relative;
  width: 100%;
  background-color: transparent;
  color: rgb(var(--color-foreground));
}

/* 顶部 50px 白色区域 */
.brand-showcase__top-spacer {
  width: 100%;
  height: 50px;
  background-color: #ffffff;
}

.brand-showcase__top-spacer .page-width {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-showcase__top-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #B6ABA2;
  line-height: 1;
}

/* 背景颜色块（非全屏，而是从顶部50px下方开始，高度由内容撑开） */
.brand-showcase__background {
  width: 100%;
  background-color: #F6F3EF;
  padding: 60px 0;
}

.brand-showcase-section .page-width {
  max-width: var(--page-width, 1200px);
  margin: 0 auto;
  padding: 0 20px;
}

/* 标题 */
.brand-showcase__header {
  text-align: center;
  margin-bottom: 60px;
  margin-top: -75px;
}

.brand-showcase__heading {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: rgb(var(--color-foreground));
  margin: 0;
}

/* 网格布局 */
.brand-showcase__grid {
  display: grid;
  grid-template-columns: repeat(var(--bs-desktop-columns), 1fr);
  gap: var(--bs-item-gap, 30px);
  width: 100%;
}

/* 平板：2列 */
@media (max-width: 959px) {
  .brand-showcase__grid {
    grid-template-columns: repeat(var(--bs-tablet-columns), 1fr);
    gap: calc(var(--bs-item-gap, 30px) * 0.8);
  }

  .brand-showcase__heading {
    font-size: 32px;
  }

  .brand-showcase__background {
    padding: 40px 0;
  }
}

/* 移动端：1列 */
@media (max-width: 599px) {
  .brand-showcase__grid {
    grid-template-columns: repeat(var(--bs-mobile-columns), 1fr);
    gap: calc(var(--bs-item-gap, 30px) * 0.6);
  }

  .brand-showcase__heading {
    font-size: 28px;
  }

  .brand-showcase__header {
    margin-bottom: 30px;
  }

  .brand-showcase__background {
    padding: 30px 0;
  }
}

/* ===== Brand Item ===== */

.brand-showcase__item {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
  will-change: transform;
}

.brand-showcase__item:hover {
  transform: translateY(-40px);
}

.brand-showcase__item-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* 大图容器 */
.brand-showcase__item-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: var(--bs-item-image-aspect-ratio, 3/4);
  overflow: hidden;
  background-color: rgba(var(--color-foreground), 0.04);
}

.brand-showcase__item-image,
.brand-showcase__item-image img,
.brand-showcase__item-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-showcase__item-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--color-foreground), 0.3);
  background-color: rgba(var(--color-foreground), 0.05);
}

/* logo 小图（位于大图下方，非叠加） */
.brand-showcase__item-logo {
  width: 145px;
  max-width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding-top: 24px;
  overflow: hidden;
}

.brand-showcase__item-logo-img,
.brand-showcase__item-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* 文字描述 */
.brand-showcase__item-content {
  padding: 12px 0 0 0;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-showcase__item-description {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(var(--color-foreground), 0.7);
  margin: 0;
  max-width: 320px;
}

@media (max-width: 959px) {
  .brand-showcase__item:hover {
    transform: translateY(-20px);
  }

  .brand-showcase__item-logo {
    height: 70px;
    padding-top: 18px;
  }
}

@media (max-width: 599px) {
  .brand-showcase__item:hover {
    transform: translateY(-12px);
  }

  .brand-showcase__item-logo {
    height: 60px;
    padding-top: 14px;
  }

  .brand-showcase__item-content {
    padding-top: 8px;
  }
}
