/* ============ scene_video 场景视频组件 ============ */
.act_sv_in {
  display: flex;
  gap: 20px;
}

/* ================= 左侧 ================= */
.act_sv_left {
  flex: 1;
  min-width: 0;
}

/* 每个场景块（标题+描述+大图），仅 .on 显示 */
/* 标题+描述块：仅 .on 显示 */
.act_sv_head {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.act_sv_head.on {
  display: flex;
}

/* 场景块（仅大图/视频），仅 .on 显示 */
.act_sv_scene {
  display: none;
}

.act_sv_scene.on {
  display: block;
}

.act_sv_tit {
  color: #2B2B2B;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.act_sv_intro {
  color: #2B2B2B;
  font-size: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* 场景大图/视频 */
.act_sv_stage {
  position: relative;
  width: 100%;
  height: 648px;
  background: #ECF2FD;
  border-radius: 4px;
  overflow: hidden;
}

.act_sv_scene_media {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.act_sv_scene_media video,
.act_sv_scene_media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* 播放按钮 */
.act_sv_play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 90px;
  height: 90px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(220, 47, 47, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.act_sv_play svg {
  width: 32px;
  height: auto;
  margin-left: 12px;
}

/* 播放中隐藏播放按钮（hover 时仍可点暂停则显示，交互更友好） */
.act_sv_play.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.act_sv_scene_media:hover .act_sv_play.hide {
  opacity: 1;
  pointer-events: auto;
}

/* 场景切换箭头 */
.act_sv_stage_prev,
.act_sv_stage_next {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(249, 250, 252, 0.8);
  cursor: pointer;
}

.act_sv_stage_prev { left: 10px; }
.act_sv_stage_next { right: 10px; }

.act_sv_stage_prev::after,
.act_sv_stage_next::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 1.8px solid #2B2B2B;
  border-right: 1.8px solid #2B2B2B;
}

/* 左箭头：向左的 chevron，视觉居中（左边距稍大补偿旋转后形状偏移） */
.act_sv_stage_prev::after {
  left: 56%;
  transform: translate(-50%, -50%) rotate(-135deg);
}

/* 右箭头：向右的 chevron */
.act_sv_stage_next::after {
  left: 44%;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* 缩略图：swiper 容器（可拖、无滚动条、与主场景联动） */
.act_sv_thumbs {
  margin-top: 16px;
  overflow: hidden;
}

.act_sv_thumbs_wrap {
  display: flex;
}

/* swiper-slide：固定宽度，slidesPerView:auto 按此排布 */
.act_sv_thumb {
  width: 140px;
  height: 86px;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #ECF2FD center / cover no-repeat;
  cursor: pointer;
}

.act_sv_thumb.on {
  border-color: #DC2F2F;
}

/* ================= 右侧 ================= */
/* 右列 align-items:stretch 跟随左列等高；用 position 给面板一个确定高度基准，
   这样内部 cards_wrap 的 overflow-y:auto 才会在超出时真正触发滚动 */
.act_sv_right {
  position: relative;
  flex-shrink: 0;
  width: 532px;
}

/* 面板绝对占满右列的 stretch 高度，拿到确定高度 */
.act_sv_panel {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
}

.act_sv_panel.on {
  display: flex;
}

/* 商品卡列表：占满剩余高度，超出滚动 */
.act_sv_cards_wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 6px;
  /* Firefox 细滚动条 */
  scrollbar-width: thin;
  scrollbar-color: #D8DADF transparent;
}

/* Webkit 细滚动条（细窄、圆角、浅灰，贴右不抢内容宽） */
.act_sv_cards_wrap::-webkit-scrollbar {
  width: 4px;
}

.act_sv_cards_wrap::-webkit-scrollbar-track {
  background: transparent;
}

.act_sv_cards_wrap::-webkit-scrollbar-thumb {
  background: #D8DADF;
  border-radius: 100px;
}

.act_sv_cards_wrap::-webkit-scrollbar-thumb:hover {
  background: #B5B8BF;
}

.act_sv_cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 商品卡（PC：左图右文） */
.act_sv_card {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 16px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #F2F3F5;
  border-radius: 4px;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.05);
}

.act_sv_card_img {
  position: relative;
  flex-shrink: 0;
  align-self: flex-start;
  width: 160px;
  height: 160px;
  border-radius: 4px;
  overflow: hidden;
}

.act_sv_card_img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.act_sv_card_stock_mask {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  align-items: center;
  justify-content: center;
  background: rgba(43, 43, 43, 0.6);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-transform: capitalize;
}

.act_sv_card[data-stock="0"] .act_sv_card_stock_mask {
  display: flex;
}

/* 右内容：名称顶对齐、价格区、加购单独一行靠右，gap12 */
.act_sv_card_info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 12px;
}

.act_sv_card_name {
  color: #2B2B2B;
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.act_sv_card_name a {
  color: inherit;
  text-decoration: none;
}

/* 价格：容器小字（符号+小数 16px），整数大字用统一封装的 .big-int-part（24px） */
.act_sv_card_price {
  color: #DC2F2F;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.act_sv_card_price .big-int-part {
  font-size: 24px;
}

.act_sv_card_sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.act_sv_card_market {
  color: #5F6166;
  font-size: 14px;
  text-decoration: line-through;
}

.act_sv_card_off {
  color: #5F6166;
  font-size: 14px;
}

.act_sv_card_fav {
  align-self: flex-end;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: #F9FAFC;
  border: 1px solid #F2F3F5;
  border-radius: 100px;
  cursor: pointer;
}

.act_sv_card_fav img {
  width: 20px;
  height: auto;
  display: block;
  border-radius: 0;
}

/* SHOP 按钮（固定底部，不被压缩） */
.act_sv_shop {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  background: #2B2B2B;
  border-radius: 4px;
  cursor: pointer;
}

.act_sv_shop.hide {
  display: none;
}

.act_sv_shop span {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-transform: capitalize;
}

/* ================= 骨架屏（占位防 CLS，尺寸贴近真实布局，数据渲染时整体替换） ================= */
.act_sv_skeleton {
  display: flex;
  gap: 20px;
}

@keyframes act_sv_sk_shine {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.act_sv_sk_left {
  flex: 1;
  min-width: 0;
}

.act_sv_sk_right {
  flex-shrink: 0;
  width: 532px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.act_sv_sk_line,
.act_sv_sk_stage,
.act_sv_sk_thumb,
.act_sv_sk_img,
.act_sv_sk_info,
.act_sv_sk_card {
  background: #EEF0F3;
  background-image: linear-gradient(90deg, #EEF0F3 0px, #F6F7F9 40px, #EEF0F3 80px);
  background-size: 600px 100%;
  border-radius: 4px;
  animation: act_sv_sk_shine 1.3s infinite linear;
}

.act_sv_sk_head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.act_sv_sk_tit {
  width: 60%;
  height: 24px;
}

.act_sv_sk_desc {
  width: 100%;
  height: 14px;
}

.act_sv_sk_desc2 {
  width: 80%;
}

.act_sv_sk_stage {
  width: 100%;
  height: 648px;
}

.act_sv_sk_thumbs {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.act_sv_sk_thumb {
  width: 140px;
  height: 86px;
  display: block;
}

.act_sv_sk_card {
  display: flex;
  gap: 16px;
  padding: 16px;
  box-sizing: border-box;
  border: 1px solid #F2F3F5;
  background: #fff;
  animation: none;
}

.act_sv_sk_img {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  display: block;
}

.act_sv_sk_info {
  flex: 1;
  min-width: 0;
  height: 120px;
  display: block;
}

/* ================= H5 ================= */
@media only screen and (max-width: 767px) {
  .act_sv_in {
    flex-direction: column;
    gap: 12px;
  }

  /* H5 左列顺序：标题描述 -> 缩略图 -> 场景大图 */
  .act_sv_left {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .act_sv_heads {
    order: 0;
  }

  .act_sv_head {
    margin-bottom: 0;
  }

  .act_sv_thumbs {
    order: 1;
    margin-top: 0;
    margin-bottom: 0;
  }

  .act_sv_scene {
    order: 2;
  }

  .act_sv_thumb {
    width: 104px;
    height: 64px;
  }

  .act_sv_stage {
    height: 216px;
    border-radius: 8px;
  }

  .act_sv_stage_prev,
  .act_sv_stage_next {
    width: 32px;
    height: 32px;
  }

  .act_sv_play {
    width: 40px;
    height: 40px;
  }

  .act_sv_play svg {
    width: 16px;
    margin-left: 3px;
  }

  .act_sv_tit {
    font-size: 18px;
  }

  .act_sv_intro {
    font-size: 14px;
  }

  /* H5：右区回归自然高度流式，不撑高不竖向滚动 */
  .act_sv_right {
    width: auto;
    display: block;
    min-height: 0;
  }

  /* H5：面板回到文档流（PC 是 absolute），无背景无内边距（设计稿卡片区透明贴边） */
  .act_sv_panel {
    position: static;
    inset: auto;
    flex: none;
    min-height: 0;
  }

  .act_sv_panel.on {
    display: block;
  }

  /* H5：商品卡横排滑动，不占满高度不竖滚 */
  .act_sv_cards_wrap {
    flex: none;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 12px;
  }

  .act_sv_cards_wrap::-webkit-scrollbar {
    display: none;
  }

  .act_sv_cards {
    flex-direction: row;
    gap: 12px;
    margin-bottom: 12px;
  }

  /* H5 商品卡（竖版：上图下文） */
  .act_sv_card {
    flex-direction: column;
    gap: 8px;
    width: 136px;
    flex-shrink: 0;
    padding: 8px;
    border: 0.5px solid #F2F3F5;
  }

  .act_sv_card_img {
    width: 100%;
    height: 120px;
  }

  .act_sv_card_stock_mask {
    font-size: 16px;
  }

  .act_sv_card_info {
    justify-content: flex-start;
    gap: 4px;
  }

  .act_sv_card_name {
    order: 2;
    color: #181818;
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  /* H5：价格区在商品名上方 */
  .act_sv_card_price_box {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  /* H5 价格：容器 12px（符号+小数），整数 .big-int-part 18px */
  .act_sv_card_price {
    font-size: 12px;
  }

  .act_sv_card_price .big-int-part {
    font-size: 18px;
  }

  .act_sv_card_market,
  .act_sv_card_off {
    font-size: 12px;
  }

  /* H5 收藏按钮浮在图片右下角（设计稿 x:78 y:78 于 120 图内，距右下各 6px） */
  .act_sv_card_fav {
    position: absolute;
    right: 14px;
    top: 86px;
    left: auto;
    z-index: 3;
    width: 36px;
    height: 36px;
    background: rgba(242, 243, 245, 0.9);
    border: 0;
  }

  .act_sv_card_fav img {
    width: 16px;
    height: auto;
  }

  .act_sv_shop {
    height: 40px;
  }

  .act_sv_shop span {
    font-size: 14px;
  }

  /* H5 骨架：竖排（标题描述 -> 缩略图 -> 场景216 -> 商品卡横排） */
  .act_sv_skeleton {
    flex-direction: column;
    gap: 12px;
  }

  .act_sv_sk_left {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .act_sv_sk_head {
    order: 0;
    margin-bottom: 0;
  }

  .act_sv_sk_tit {
    height: 18px;
  }

  .act_sv_sk_thumbs {
    order: 1;
    margin-top: 0;
    gap: 8px;
  }

  .act_sv_sk_thumb {
    width: 104px;
    height: 64px;
  }

  .act_sv_sk_stage {
    order: 2;
    height: 216px;
    border-radius: 8px;
  }

  .act_sv_sk_right {
    width: auto;
    flex-direction: row;
    gap: 12px;
    overflow: hidden;
  }

  .act_sv_sk_card {
    flex-direction: column;
    gap: 8px;
    width: 136px;
    flex-shrink: 0;
    padding: 8px;
  }

  .act_sv_sk_img {
    width: 120px;
    height: 120px;
  }

  .act_sv_sk_info {
    width: 120px;
    height: 40px;
  }
}
