/* ============================================================
   BRAND PORTFOLIO — 品牌矩阵正式样式
   设计规范：1440px 画布 / 1200px 容器 / 12 列栅格 / 响应式
   仅 brands.html 引用，独立 ?v 版本控制。
   ============================================================ */

/* ---------- Hero 区：1920×700 画布 ---------- */
.page-hero--brands {
  min-height: 700px;
  display: flex;
  align-items: center;
  padding-block: 120px 110px;
}
.page-hero--brands .page-hero__inner {
  max-width: 840px;
}
.page-hero--brands h1 {
  font-family: var(--font-display);
  font-weight: 700;
  /* 收小字号：保证「四大自主品牌 + LIVEPRO」「覆盖全球美妆市场」两行在 560px 文字列内完整成行 */
  font-size: clamp(2.1rem, 3.1vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.page-hero--brands p {
  margin-top: 18px;
  font-size: var(--fs-lg);
  color: var(--slate);
  max-width: 640px;
  line-height: 1.7;
}

/* ---------- Hero 左侧亮场蒙版（2026-09-10）：左 20%~30% 干净区，文字落位左侧 ---------- */
.page-hero--brands .zone__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.90) 24%,
    rgba(255, 255, 255, 0.55) 42%,
    rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}
.page-hero--brands .page-hero__inner {
  max-width: 560px;
  /* 覆盖 .container 的 margin auto：文字列靠左落位（左缘对齐站点栅格），不居中 */
  margin-left: max(0px, calc((100% - 1200px) / 2));
  margin-right: auto;
}
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
@media (max-width: 760px) {
  .page-hero--brands .page-hero__inner { max-width: 100%; margin-left: 0; }
  /* 移动端改为上下渐变：文字区在上方保持干净，底部让图透出 */
  .page-hero--brands .zone__bg::after {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.82) 40%,
      rgba(255, 255, 255, 0) 75%);
  }
}

/* ---------- 品牌矩阵主板块 ---------- */
.bp-section {
  position: relative;
  padding: 28px 0 120px;
  background: var(--cream);
}
.bp-section .container {
  max-width: 1560px;
}

/* ============================================
   品牌矩阵 · 异形控制台容器（扩大版）
   顶部 SVG 固定高度画 Tab+肩部，主体独立填充，
   容器高度随内容自适应，图片框 720x720
   ============================================ */
.bp-morph {
  position: relative;
  filter: drop-shadow(0 20px 60px rgba(30, 30, 40, 0.06));
}

/* SVG 顶部异形：固定 104px（Tab 凸起 + 肩部 + 主容器上沿直线），只横向拉伸；
   注意 SVG 下沿必须与 .bp-morph-body 上沿（top:104）精确衔接，避免 104px 区域双重半透明叠加导致亮条 */
.bp-morph-bg {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 104px;
  z-index: 0;
  pointer-events: none;
}

/* 主容器主体：从肩部连接线（y=104）向下延伸，底部大圆角 */
.bp-morph-body {
  position: absolute;
  top: 104px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 0 0 28px 28px;
  z-index: 0;
  pointer-events: none;
}

/* 内容层：透明，覆盖在 SVG + 主体之上 */
.bp-morph-content {
  position: relative;
  z-index: 1;
  padding: 0 32px 38px;
  display: flex;
  flex-direction: column;
}

/* ---------- 品牌吸顶胶囊导航（复刻 about.html ab-subnav 格式：sticky + 毛玻璃 + pill 高亮） ---------- */
.bp-subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bp-subnav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  flex-wrap: wrap;
}
.bp-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #5E6371;
  background: #fff;
  border: 1px solid #E8E5DF;
  padding: 9px 22px;
  border-radius: 9999px;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.bp-link:hover {
  color: #DA1884;
  border-color: #DA1884;
  transform: translateY(-1px);
}
.bp-link.is-active {
  background: #DA1884;
  border-color: #DA1884;
  color: #fff;
  box-shadow: 0 6px 20px rgba(218, 24, 132, 0.22);
}
/* 移动端：不换行，横向一行可滑动（隐藏滚动条） */
@media (max-width: 760px) {
  .bp-subnav__inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 12px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .bp-subnav__inner::-webkit-scrollbar { display: none; }
  .bp-link { padding: 8px 18px; font-size: 0.9rem; }
}

/* ---------- 核心展示区：全量品牌区块（交替布局） ---------- */
.bp-blocks {
  display: flex;
  flex-direction: column;
}
.bp-block {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 52px 0;
  scroll-margin-top: 92px;
}
.bp-block + .bp-block {
  border-top: 1px solid var(--line);
}
.bp-block--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 720px);
}
/* 必须显式锁定 grid-row:1 —— 否则反向布局下 grid 自动放置光标
   不会回退填充，文案会被挤到图片下方的第二行（错位） */
.bp-block .bp-image {
  grid-column: 1;
  grid-row: 1;
  height: 720px;
}
.bp-block .bp-content {
  grid-column: 2;
  grid-row: 1;
}
.bp-block--reverse .bp-image {
  grid-column: 2;
  grid-row: 1;
}
.bp-block--reverse .bp-content {
  grid-column: 1;
  grid-row: 1;
}

/* 左侧大图区：720x720 正方形（1440px 视口下给文案留出足够宽度） */
.bp-image {
  grid-column: 1;
  position: relative;
  width: 100%;
  height: 800px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--cream);
}
.bp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease-out);
}
.bp-image:hover img {
  transform: scale(1.04);
}

/* 右侧文案区 */
.bp-content {
  grid-column: 2;
}
.bp-brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.bp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.bp-tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #d91670;
  background: #fbe5ee;
  border: 1px solid rgba(217, 22, 112, 0.22);
}
.bp-tag--outline {
  background: transparent;
  color: #d91670;
  border-color: rgba(217, 22, 112, 0.22);
}
.bp-desc {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.9;
  color: #62646a;
}
.bp-markets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.bp-market {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  background: var(--cream);
  border: 1px solid var(--line);
}
.bp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.bp-actions .btn {
  height: 48px;
  padding: 0 28px;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 600;
}

/* ---------- 响应式：平板 ---------- */
@media (max-width: 1200px) {
  .bp-section .container {
    max-width: 1024px;
  }
  .bp-block {
    grid-template-columns: 520px minmax(0, 1fr);
    gap: 36px;
  }
  .bp-block--reverse {
    grid-template-columns: minmax(0, 1fr) 520px;
  }
  .bp-block .bp-image {
    height: 520px;
  }
}

@media (max-width: 1024px) {
  .bp-section {
    padding: 20px 0 96px;
  }
  .bp-morph-content {
    padding: 0 30px 32px;
  }
  .bp-block {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .bp-block--reverse {
    grid-template-columns: 1fr 1fr;
  }
  .bp-block .bp-image {
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
  }
  .bp-content {
    grid-column: 2;
  }
  .bp-block--reverse .bp-content {
    grid-column: 1;
  }
  .bp-block--reverse .bp-image {
    grid-column: 2;
  }
}

/* ---------- 响应式：手机 ≤768px ---------- */
@media (max-width: 768px) {
  .page-hero--brands {
    min-height: auto;
    /* 2026-09-15 收紧：64/40 -> 26/24 + 内容间距压缩，目标 390×844 实测 ≤ 520px */
    padding-block: 26px 24px;
  }
  .page-hero--brands h1 { font-size: 1.8rem; }
  .page-hero--brands p { margin-top: 12px; font-size: 0.92rem; line-height: 1.65; }
  .page-hero--brands .page-hero__actions { margin-top: 16px; gap: 10px; }
  .page-hero--brands .page-hero__actions .btn { padding: 11px 20px; font-size: 0.85rem; }
  .page-hero--brands .page-hero__meta { margin-top: 14px; gap: 8px; }
  .page-hero--brands .page-hero__meta span { padding: 4px 10px; font-size: 0.68rem; }

  .bp-section {
    padding: 16px 0 60px;
  }
  .bp-section .container {
    padding-inline: 20px;
  }

  /* 简化异形：隐藏 SVG 与主体层，改用普通圆角玻璃容器 */
  .bp-morph {
    min-height: 0;
  }
  .bp-morph-bg,
  .bp-morph-body {
    display: none;
  }
  .bp-morph-content {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 24px 20px 28px;
    min-height: 0;
    box-shadow: 0 16px 44px rgba(30, 30, 40, 0.06);
    overflow: hidden;
  }
  /* 单栏上下流：图 → 品牌名 → 描述 → 标签 → CTA */
  .bp-block {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
    scroll-margin-top: 80px;
  }
  .bp-block--reverse {
    grid-template-columns: 1fr;
  }
  /* 单栏：必须重置 grid-row，否则图与文案会被锁在同一行重叠 */
  .bp-block .bp-image {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    height: auto;
  }
  .bp-block .bp-content {
    grid-column: 1 / -1;
    grid-row: auto;
    padding-left: 0;
  }
  .bp-block--reverse .bp-image,
  .bp-block--reverse .bp-content {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .bp-brand-title {
    font-size: 30px;
    line-height: 1.25;
  }
  .bp-tags {
    margin-top: 16px;
  }
  .bp-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 18px;
  }
  .bp-actions {
    margin-top: 24px;
  }
  .bp-actions .btn {
    flex: 1 1 45%;
    min-width: 140px;
  }
}

/* ---------- 页面底部导航： brands 专用，缩减过度空白 ---------- */
.section.bg-cream {
  padding-block: var(--s-6) var(--s-8);
}
.page-foot {
  margin-top: 0;
  padding-top: var(--s-6);
}
