/* =====================================================================
   SHEENEFFECT · 英雄区双图轮播 v2 —— 参考 ourbella ob-campaign-banners 设计
   - 宽幅全屏横幅（对称贴边）
   - 双图 crossfade + ken-burns 自动滚动
   - 底部内容条：offers 卡片 + 圆角胶囊 CTA + 金色强调（对齐 ourbella 配色）
   - 暗色压底让底部文字可读，顶部留白看图
   追加到 style.css 末尾（覆盖旧 v1 定义，便于回滚：删本段 + 备份）
   ===================================================================== */

/* ---------- 轮播容器：relative 文档流（撑开 main 高度、不堆叠），负 margin 抵消 main 左右 padding 铺满渲染区贴边 ---------- */
/* main.container.replica-main 是 .container(width:calc(100%-32px)+居中) 且 main.container 有左右 padding(桌面52/平板16/移动0)。
   轮播 relative 留文档流（reel 排其下方不堆叠）；用负 margin 抵消 main 左右 padding，使轮播铺满 main 的 padding-box(渲染区)左右贴边，
   无 100vw 滚动条白条、无 absolute 塌陷堆叠 */
.hero-carousel {
  position: relative;
  overflow: hidden;
  height: clamp(420px, 52vh, 560px);
  background: #2a0a12;
  /* 铺满渲染区左右贴边：负 margin 抵消 main 的两层缩进
     = .container width:calc(100%-32px) 居中留的左右各16px  +  main.container 的左右 padding(桌面52/平板16/移动0)
     桌面: 16+52=68px / 平板: 16+16=32px / 移动: 0(移动 main padding 0 且 .container 仍 16px) */
  margin-left: -68px;
  margin-right: -68px;
  padding: 0 52px;
  z-index: 0;
}
@media (max-width: 900px) {
  .hero-carousel { margin-left: -32px; margin-right: -32px; padding: 0 16px; }
}
@media (max-width: 767px) {
  /* 移动：.container 仍 width:calc(100%-32px) 左右各16px，main padding 0 → 负 margin 16px */
  .hero-carousel { margin-left: -16px; margin-right: -16px; padding: 0; }
}
/* brand-hero 紧贴轮播下方 */
.hero-carousel + .brand-hero { margin-top: 0; }
/* ---------- 双图：crossfade + 轻微 ken-burns ---------- */
/* cover + 居中焦点：容器高度收紧到接近 16:9(图片比例), 产品视觉居中、裁切最小 */
.hero-carousel__slides { position: absolute; inset: 0; z-index: 0; }
.hero-carousel__slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.1s cubic-bezier(.4,0,.2,1), transform 8s linear;
}
.hero-carousel__slide:nth-child(1) { object-position: 50% 40%; }
.hero-carousel__slide:nth-child(2) { object-position: 50% 40%; }
.hero-carousel__slide.is-active { opacity: 1; transform: scale(1.0); }
/* 顶部微暗 + 底部重暗：保证底部内容条文字可读，图主体仍清晰 */
.hero-carousel__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(42,10,18,.28) 0%, rgba(42,10,18,0) 26%, rgba(42,10,18,0) 52%, rgba(42,10,18,.78) 100%);
}

/* ---------- 底部内容条：默认隐藏（图1 已内嵌完整文案），仅 slide2(圣诞) 时淡入显示，避免叠加打架 ---------- */
.hero-carousel__text {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 clamp(20px, 5vw, 72px) clamp(22px, 4vh, 44px);
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: clamp(18px, 4vw, 56px); align-items: end;
  opacity: 0; visibility: hidden; transition: opacity .6s ease .15s, visibility 0s .6s;
}
.hero-carousel.is-slide2 .hero-carousel__text { opacity: 1; visibility: visible; transition: opacity .6s ease .1s, visibility 0s; }
.hero-carousel__heading {
  margin: 0; font-family: Georgia, "Palatino Linotype", "Didot", serif;
  font-weight: 800; line-height: .96; letter-spacing: -.03em;
  color: #fff7ec; text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.hero-carousel__heading span:first-child {
  display: block; font-size: clamp(34px, 3.4vw, 60px); text-transform: none;
}
.hero-carousel__heading .hero-carousel__heading-accent {
  display: block; color: #f4d598; font-size: clamp(28px, 2.8vw, 50px);
  letter-spacing: -.05em; text-shadow: 0 2px 12px rgba(244,213,152,.28);
}
.hero-carousel__subtitle {
  margin: 12px 0 0; font-family: Georgia, "Palatino Linotype", serif; font-style: italic;
  font-size: clamp(18px, 1.7vw, 25px); line-height: 1.3; color: #f4d598;
}
/* offers 卡片（ourbella 风格：金色描边深酒红底） */
.hero-carousel__offers {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px; width: min(100%, 340px); justify-self: end;
}
.hero-carousel__offers li {
  display: grid; grid-template-columns: minmax(0,1fr) 92px; align-items: center;
  border: 1px solid #c8a675; border-radius: 8px; padding: 10px 12px;
  background: rgba(85,20,43,.72); color: #fff7ea;
  backdrop-filter: blur(4px);
}
.hero-carousel__offers .hero-carousel__offer-rate {
  font-size: clamp(16px, 1.4vw, 22px); font-weight: 700;
}
.hero-carousel__offers .hero-carousel__offer-threshold {
  text-align: center; font-size: .74em; font-weight: 700; letter-spacing: .045em;
  border-left: 1px solid #c8a675; padding: 4px 0 4px 12px; color: #f6daaa;
}
/* 圆角胶囊 CTA（ourbella 玫红/金） */
.hero-carousel__cta {
  grid-column: 1 / -1; margin-top: 4px;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.hero-carousel__cta a, .hero-carousel__cta .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 26px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: all .3s cubic-bezier(.3,1,.3,1);
}
.hero-carousel__cta .btn--solid {
  background: #8f2046; color: #fff; border: 1px solid #8f2046;
}
.hero-carousel__cta .btn--solid:hover { background: #c94f7c; border-color: #c94f7c; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(143,32,70,.4); }
.hero-carousel__cta .btn--ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,247,236,.55);
}
.hero-carousel__cta .btn--ghost:hover { background: rgba(255,247,236,.14); border-color: #fff7ec; transform: translateY(-2px); }

/* ---------- 控制：底部右移圆点 + 箭头 ---------- */
.hero-carousel__dots {
  position: absolute; right: clamp(20px,5vw,72px); bottom: 14px; z-index: 3;
  display: flex; gap: 8px;
}
.hero-carousel__dot {
  width: 30px; height: 4px; border-radius: 2px; border: none;
  background: rgba(255,247,236,.4); cursor: pointer; transition: all .3s; padding: 0;
}
.hero-carousel__dot.is-active { background: #f4d598; width: 46px; }
.hero-carousel__arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,247,236,.4); background: rgba(42,10,18,.4);
  backdrop-filter: blur(6px); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .3s cubic-bezier(.3,1,.3,1);
}
.hero-carousel__arrow svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 1.6; fill: none; }
.hero-carousel__arrow--prev { left: clamp(16px,3vw,40px); }
.hero-carousel__arrow--next { right: clamp(16px,3vw,40px); }
.hero-carousel__arrow:hover { background: #8f2046; border-color: #8f2046; }

/* ---------- 覆盖 v1 的隐藏/居中冲突（确保 v2 生效） ---------- */
.hero-carousel__text { display: grid !important; }
.hero-carousel__overlay { display: block !important; }
.hero-carousel__title, .hero-carousel__sub, .hero-carousel__cta { display: block !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-carousel__text {
    grid-template-columns: 1fr; gap: 16px; align-items: start;
    padding-bottom: clamp(70px, 9vh, 96px); /* 给底部圆点/箭头留空间 */
  }
  .hero-carousel__offers { width: 100%; justify-self: start; max-width: 320px; }
  .hero-carousel__cta { grid-column: 1; }
}
@media (max-width: 767px) {
  .hero-carousel { min-height: 480px; height: 480px; }
  .hero-carousel__heading span:first-child { font-size: clamp(30px, 8.4vw, 40px); }
  .hero-carousel__heading .hero-carousel__heading-accent { font-size: clamp(26px, 7vw, 34px); }
  .hero-carousel__subtitle { font-size: 17px; }
  .hero-carousel__arrow { width: 44px; height: 44px; }
  .hero-carousel__arrow--prev { left: 10px; }
  .hero-carousel__arrow--next { right: 10px; }
  .hero-carousel__dots { right: 10px; }
}
