/* ── 品牌页面布局 ── */
.pw-brands-page {
  background: #0d0d0d;
  padding: 4rem 1.5rem 5rem;
  min-height: 60vh;
}

.pw-brands-page__container {
  max-width: 1200px;
  margin: 0 auto;
}

.pw-brands-page__title {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 2.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.pw-brands-page__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pw-brands-page__empty {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  text-align: center;
  padding: 3rem 0;
}

/* ── 品牌卡片基础 ── */
.pw-brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none;
  background-image: var(--pw-brand-bg);
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 暗色遮罩层 */
.pw-brand-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.05) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
  transition: background 0.3s ease;
  z-index: 1;
}

.pw-brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.pw-brand-card:hover::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

/* ── 品牌名称：左上角 ── */
.pw-brand-card__name {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  padding: 0.6rem 0.8rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

@media (max-width: 63.9375rem) {
  .pw-brand-card__name {
    font-size: 1.2rem;
  }
}

/* ── 产品数量：底部居中 ── */
.pw-brand-card__count {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 0.4rem 0.9rem 0.7rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
}

/* ── Shop Now 卡片 ── */
.pw-brand-card--shop-now {
  justify-content: center;
  align-items: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #111;
  border: 1px solid rgba(197, 160, 89, 0.35);
}

.pw-brand-card--shop-now::before {
  background: rgba(0, 0, 0, 0.55);
}

.pw-brand-card--shop-now:hover {
  border-color: #c5a059;
  background-color: #161616;
}

.pw-brand-card--shop-now:hover::before {
  background: rgba(0, 0, 0, 0.45);
}

.pw-brand-card__shop-now-label {
  align-self: center;
  padding: 0;
  font-size: 1.6rem;
  color: #c5a059;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  transition: color 0.2s ease;
}

.pw-brand-card--shop-now:hover .pw-brand-card__shop-now-label {
  color: #d4b06a;
}

.pw-brand-card__shop-now-arrow {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-bottom: 0.8rem;
  color: #c5a059;
  transition: color 0.2s ease, transform 0.2s ease;
}

.pw-brand-card--shop-now:hover .pw-brand-card__shop-now-arrow {
  color: #d4b06a;
  transform: translateX(4px);
}

.pw-brand-card__shop-now-arrow svg {
  width: 1.6rem;
  height: 1.6rem;
  stroke: currentColor;
}

/* ── 响应式 ── */
@media (max-width: 900px) {
  .pw-brands-page__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .pw-brands-page {
    padding: 2.5rem 1rem 3rem;
  }

  .pw-brands-page__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .pw-brand-card__shop-now-label {
    font-size: 1.3rem;
  }
}
