/**
 * 私人订制页 — 暗色 Hero · 流程/服务卡片 · 产品跑马灯画廊
 */

/* ---------- 暗色全屏 Hero ---------- */
body[data-page="bespoke"] .bespoke-hero {
  position: relative;
  min-height: min(calc(100vh - var(--nav-height)), 720px);
  min-height: min(calc(100dvh - var(--nav-height)), 720px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  overflow: hidden;
  background: #12100d;
}

body[data-page="bespoke"] .bespoke-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* 首图铺底，切换间隙也不露黑 */
  background-color: #1a1612;
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

body[data-page="bespoke"] .bespoke-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  /* 略快的淡出，且仅淡出上一张，避免半透明叠加变暗 */
  transition: opacity 0.9s ease;
  pointer-events: none;
  background: #1a1612;
}

body[data-page="bespoke"] .bespoke-hero-slide.is-active {
  opacity: 1;
}

body[data-page="bespoke"] .bespoke-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1);
}

/* 当前帧轻微推镜，增强轮播动感 */
body[data-page="bespoke"] .bespoke-hero-slide.is-active img {
  animation: bespoke-hero-kenburns var(--hero-slide-duration, 4.5s) ease-out forwards;
}

@keyframes bespoke-hero-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="bespoke"] .bespoke-hero-slide {
    transition: none;
  }

  body[data-page="bespoke"] .bespoke-hero-slide.is-active img {
    animation: none;
    transform: scale(1);
  }
}

body[data-page="bespoke"] .bespoke-hero-scrim {
  position: absolute;
  inset: 0;
  /* 中部留亮展示产品图，底部加深与信任条衔接 */
  background: linear-gradient(
    180deg,
    rgba(10, 8, 6, 0.28) 0%,
    rgba(10, 8, 6, 0.08) 42%,
    rgba(10, 8, 6, 0.22) 72%,
    rgba(10, 8, 6, 0.62) 100%
  );
  pointer-events: none;
  z-index: 1;
}

body[data-page="bespoke"] .bespoke-hero-scrim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 35%, rgba(212, 175, 55, 0.1) 0%, transparent 72%);
  pointer-events: none;
}

/* 底部信任三柱横条（全宽暗色底 + 金色标签） */
body[data-page="bespoke"] .bespoke-hero-pillars-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(180deg, rgba(12, 10, 8, 0.55) 0%, rgba(12, 10, 8, 0.88) 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.32);
  backdrop-filter: blur(6px);
}

body[data-page="bespoke"] .bespoke-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 1.4rem 1.25rem 1.5rem;
  list-style: none;
}

body[data-page="bespoke"] .bespoke-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  padding: 0 1rem;
  border-right: 1px solid rgba(212, 175, 55, 0.24);
}

body[data-page="bespoke"] .bespoke-pillar:last-child {
  border-right: none;
}

body[data-page="bespoke"] .bespoke-pillar-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(212, 175, 55, 0.96);
}

body[data-page="bespoke"] .bespoke-pillar-value {
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.45;
}

/* ---------- 订制流程 ---------- */
body[data-page="bespoke"] .bespoke-process {
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}

body[data-page="bespoke"] .bespoke-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

body[data-page="bespoke"] .bespoke-step-card {
  padding: 1.85rem 1.4rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-top: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fafaf8 100%);
  box-shadow: 0 8px 28px rgba(26, 26, 26, 0.05);
  text-align: center;
}

body[data-page="bespoke"] .bespoke-step-num {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-gold-dark);
}

body[data-page="bespoke"] .bespoke-step-title {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

body[data-page="bespoke"] .bespoke-step-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--color-text-muted);
  text-align: left;
}

/* ---------- 订制服务 ---------- */
body[data-page="bespoke"] .bespoke-services {
  padding-top: 3rem;
  padding-bottom: 3.25rem;
}

body[data-page="bespoke"] .bespoke-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 0.5rem;
}

body[data-page="bespoke"] .bespoke-service-card {
  padding: 1.55rem 1.4rem;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f6f2 100%);
  box-shadow: 0 6px 24px rgba(26, 26, 26, 0.04);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

body[data-page="bespoke"] .bespoke-service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.42);
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.08);
}

body[data-page="bespoke"] .bespoke-service-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-gold-dark);
}

body[data-page="bespoke"] .bespoke-service-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: #4a4a4a;
}

/* ---------- 产品跑马灯画廊：暗色编辑带 + 金色装饰 ---------- */
body[data-page="bespoke"] .bespoke-gallery {
  position: relative;
  padding-top: 0;
  padding-bottom: 3.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, #14110e 0%, #1a1612 38%, #12100d 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

/* 顶部与浅色服务区自然过渡 */
body[data-page="bespoke"] .bespoke-gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  background: linear-gradient(180deg, rgba(250, 248, 244, 0.92) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

body[data-page="bespoke"] .bespoke-gallery-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 55% at 50% 0%, rgba(212, 175, 55, 0.14) 0%, transparent 68%),
    radial-gradient(ellipse 40% 30% at 12% 85%, rgba(212, 175, 55, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 88% 85%, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body[data-page="bespoke"] .bespoke-gallery-stage {
  position: relative;
  z-index: 1;
  padding-top: 3.25rem;
  padding-bottom: 0.25rem;
}

body[data-page="bespoke"] .bespoke-gallery-header {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

body[data-page="bespoke"] .bespoke-gallery-eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: rgba(212, 175, 55, 0.92);
  text-transform: uppercase;
}

body[data-page="bespoke"] .bespoke-gallery-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 3vw, 1.75rem);
  margin-bottom: 0.85rem;
}

body[data-page="bespoke"] .bespoke-gallery-rule {
  flex: 1 1 4.5rem;
  max-width: 7.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.75), transparent);
}

body[data-page="bespoke"] .bespoke-gallery-title {
  margin: 0;
  flex: 0 1 auto;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.9vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.97);
}

body[data-page="bespoke"] .bespoke-gallery-subtitle {
  margin: 0 auto;
  max-width: 34rem;
  font-size: clamp(0.88rem, 1.7vw, 0.96rem);
  line-height: 1.85;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
}

body[data-page="bespoke"] .bespoke-gallery-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  margin: 1.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.5vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.78);
}

body[data-page="bespoke"] .bespoke-gallery-brands-sep {
  user-select: none;
}

body[data-page="bespoke"] .bespoke-gallery-marquee {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  padding: 0.35rem 0 0.5rem;
  overflow: hidden;
  contain: inline-size;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

body[data-page="bespoke"] .bespoke-gallery-marquee::before {
  content: '';
  display: block;
  width: min(92%, 56rem);
  height: 1px;
  margin: 0 auto 1.35rem;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.45), transparent);
}

body[data-page="bespoke"] .bespoke-gallery-track {
  display: flex;
  width: max-content;
  animation: bespoke-marquee var(--marquee-duration, 68s) linear infinite;
}

body[data-page="bespoke"] .bespoke-gallery-track:hover {
  animation-play-state: paused;
}

body[data-page="bespoke"] .bespoke-gallery-strip {
  display: flex;
  flex-shrink: 0;
  gap: 1.15rem;
  padding-right: 1.15rem;
}

body[data-page="bespoke"] .bespoke-gallery-strip img {
  width: 210px;
  height: 262px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: #1e1a16;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  flex-shrink: 0;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body[data-page="bespoke"] .bespoke-gallery-strip img:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(212, 175, 55, 0.12);
}

@keyframes bespoke-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 联系区（转化收尾） ---------- */
body[data-page="bespoke"] .bespoke-contact {
  padding-top: 3rem;
  padding-bottom: 3.75rem;
  text-align: center;
}

body[data-page="bespoke"] .bespoke-contact-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.88);
}

body[data-page="bespoke"] .bespoke-contact .section-title {
  font-size: clamp(1.45rem, 2.5vw, 1.72rem);
}

body[data-page="bespoke"] .bespoke-contact .section-subtitle {
  margin-bottom: 1.5rem;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

body[data-page="bespoke"] .bespoke-contact .contact-box {
  max-width: 36rem;
  margin: 1.75rem auto 0;
}

body[data-page="bespoke"] .bespoke-contact-more {
  margin: 1.5rem 0 0;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

body[data-page="bespoke"] .bespoke-contact-more a {
  color: rgba(245, 230, 184, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

body[data-page="bespoke"] .bespoke-contact-more a:hover {
  color: #fff;
  border-bottom-color: rgba(212, 175, 55, 0.75);
}


@media (max-width: 1024px) {
  body[data-page="bespoke"] .bespoke-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  body[data-page="bespoke"] .bespoke-hero {
    min-height: min(calc(100svh - var(--nav-height)), 620px);
  }

  body[data-page="bespoke"] .bespoke-pillars {
    padding: 1.15rem 0.75rem 1.25rem;
  }

  body[data-page="bespoke"] .bespoke-pillar {
    padding: 0 0.5rem;
  }

  body[data-page="bespoke"] .bespoke-pillar-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  body[data-page="bespoke"] .bespoke-pillar-value {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }

  body[data-page="bespoke"] .bespoke-service-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="bespoke"] .bespoke-gallery-stage {
    padding-top: 2.5rem;
  }

  body[data-page="bespoke"] .bespoke-gallery-title-wrap {
    flex-direction: column;
    gap: 0.65rem;
  }

  body[data-page="bespoke"] .bespoke-gallery-rule {
    width: min(72%, 14rem);
    max-width: none;
    flex: none;
  }

  body[data-page="bespoke"] .bespoke-gallery-brands {
    letter-spacing: 0.14em;
    gap: 0.3rem 0.4rem;
  }

  body[data-page="bespoke"] .bespoke-gallery-strip img {
    width: 160px;
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="bespoke"] .bespoke-gallery-track {
    animation: none;
  }
}
