
/* ============================================================
   FPV 促销模块 - CSS
   用法:将本文件内容粘贴到后台「自定义代码」应用的 CSS 区域
   说明:所有选择器均以 .fpv- 前缀隔离,不影响主题其他模块;
        容器宽度与站内其他模块统一为 1492px
============================================================ */

.fpv-promo {
  max-width: 1492px;
  width:92%;
  margin: 0 auto;
  box-sizing: border-box;
}

.fpv-promo *,
.fpv-promo *::before,
.fpv-promo *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- 网格布局:左2大 + 右2列各叠2小 ---------- */
.fpv-promo__grid {
  display: grid;
 grid-template-columns: repeat(4,1fr);
  grid-auto-rows: 180px;
  gap: 12px;
}

.fpv-panel--big {
  grid-row: span 2; /* 大图占两行,高度约 472px */
}

/* ---------- 面板与幻灯片基础 ---------- */
.fpv-panel {
  border-radius: 8px;
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #141517;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.fpv-slide {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
}

/* 背景图层:独立于内容,可单独缩放 */
.fpv-slide__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .7s ease;
  will-change: transform;
}

.fpv-slide:hover .fpv-slide__img {
  transform: scale(1.07); /* 悬停轻微放大 */
}

/* 底部压暗渐变,保证文字可读性 */
.fpv-slide__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,.06) 0%, rgba(10,10,12,.2) 45%, rgba(10,10,12,.8) 100%);
  transition: opacity .4s ease;
}

/* ---------- 文字内容 ---------- */
.fpv-slide__content {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 22px;
  z-index: 2;
}

.fpv-panel__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .5px;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.fpv-panel--big .fpv-panel__title {
  font-size: 32px;
}

.fpv-panel__desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
  max-width: 340px;
}

/* 左下角品牌标识:橙色六边形 + Store */
.fpv-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.fpv-brand__hex {
  width: 22px;
  height: 22px;
  flex: none;
  background: #ff6a00;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
}

/* 右下角悬停箭头 */
.fpv-arrow {
  position: absolute;
  right: 22px;
  bottom: 24px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .35s ease, transform .35s ease, background-color .35s ease;
}

.fpv-slide:hover .fpv-arrow {
  opacity: 1;
  transform: translateX(0);
}

.fpv-slide:hover .fpv-arrow:hover {
  background: #ff6a00;
  border-color: #ff6a00;
}

/* ---------- DAILY DEALS 倾斜白条 ---------- */
.fpv-tag {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) rotate(-6deg);
  background: #fff;
  color: #1c2333;
  padding: 9px 24px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}

/* ---------- 轮播(大图 1) ---------- */
.fpv-slider {
  position: relative;
}

.fpv-slider__track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.65,.05,.36,1);
}

.fpv-slider__track .fpv-slide {
  flex: 0 0 100%;
}

.fpv-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.fpv-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}

.fpv-dot.is-active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.2);
}

/* ---------- 响应式:平板(2 列) ---------- */
@media (max-width: 991px) {
  .fpv-promo__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
}

/* ---------- 响应式:手机(单列堆叠) ---------- */
@media (max-width: 640px) {
  /*.fpv-promo {
    padding: 0 12px;
  }*/

  .fpv-promo__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 10px;
  }

  .fpv-panel {
    aspect-ratio: 16 / 9; /* 小图统一 16:9 */
  }

  .fpv-panel--big {
    grid-row: auto;
    aspect-ratio: 4 / 3; /* 大图 4:3 */
  }

  .fpv-panel__title {
    font-size: 20px;
  }

  .fpv-panel--big .fpv-panel__title {
    font-size: 26px;
  }

  .fpv-slide__content {
    left: 18px;
    right: 18px;
    bottom: 16px;
  }

  .fpv-arrow {
    display: none; /* 移动端隐藏悬停箭头 */
  }
}

/* 左上角角标:New Products */
.fpv-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  background: #ff6a00;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  padding: 7px 14px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

