/* ============ Timeline Category 预告时间轴组件 ============ */
.act_tc {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- 标题区 ---- */
.act_tc_head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 12px;
  background: #ECF2FD;
  border-radius: 4px;
}

.act_tc_head_tit {
  color: #2B2B2B;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.3px;
  text-align: center;
}

/* 标题首字母红色 */
.act_tc_head_tit::first-letter {
  color: #DC2F2F;
}

.act_tc_head_sub {
  color: #2B2B2B;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.18px;
  text-align: center;
}

.act_tc_in {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- 时间轴 ---- */
.act_tc_timeline {
  padding: 32px;
  background: #F9FAFC;
  border-radius: 8px;
}

.act_tc_track_wrap {
  overflow: hidden;
  height: 20px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
}

.act_tc_nodes_wrap {
  position: relative;
  overflow: hidden;
}

.act_tc_track {
  position: relative;
  display: flex;
  width: 100%;
  height: 12px;
  border-radius: 2px;
  background: #E5E6EB;
}

.act_tc_track:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #EF6868 0%, #BC1212 100%);
  z-index: 1;
}

.act_tc_track_item {
  position: relative;
  flex: 1;
  height: 12px;
  background: transparent;
}

.act_tc_dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2B2B2B;
  transform: translate(-8px, -8px);
  z-index: 2;
  box-sizing: border-box;
}

/* 已结束节点圆点 */
.act_tc_track_item.ended .act_tc_dot {
  background: #5F6166;
}

/* 进行中节点圆点 */
.act_tc_track_item.now .act_tc_dot {
  width: 20px;
  height: 20px;
  background: #FB8200;
  border: 4px solid #FEC43F;
  transform: translate(-10px, -10px);
}

/* ---- 节点卡（PC 横向等分） ---- */
.act_tc_nodes {
  display: flex;
  gap: 32px;
}

.act_tc_node {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  height: auto;
  padding: 24px;
  background: #ECF2FD;
  border-radius: 8px;
  box-sizing: border-box;
  cursor: pointer;
}

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

.act_tc_node_date {
  color: #363636;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.4px;
}

.act_tc_node_tit {
  color: #363636;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.4px;
}

.act_tc_node_intro {
  color: #363636;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

/* 节点标签 三态 */
.act_tc_node_tag>span {
  display: none;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.135px;
}

.act_tc_node_tag>span img {
  width: 20px !important;
  height: 20px;
}

.act_tc_tag_ended {
  background: #E5E6EB;
  color: #5F6166;
}

.act_tc_tag_now {
  background: #DC2F2F;
  color: #fff;
}

.act_tc_tag_coming {
  background: #E5E6EB;
  color: #5F6166;
}

/* 默认(未判定)展示 Coming Soon；JS 判定后切换 */
.act_tc_node .act_tc_tag_coming {
  display: flex;
}

.act_tc_node.ended .act_tc_tag_ended,
.act_tc_node.now .act_tc_tag_now,
.act_tc_node.notstart .act_tc_tag_coming {
  display: flex;
}

.act_tc_node.ended .act_tc_tag_now,
.act_tc_node.ended .act_tc_tag_coming,
.act_tc_node.now .act_tc_tag_ended,
.act_tc_node.now .act_tc_tag_coming,
.act_tc_node.notstart .act_tc_tag_ended,
.act_tc_node.notstart .act_tc_tag_now {
  display: none;
}

/* ---- 内容池 ---- */
/* 内容池不设左右 padding，让卡片滑动区天然贴左右边缘；
   标题区单独加左内边距，避免文案贴边 */
.act_tc_pools {
 background: #ECF2FD;
 border-radius: 8px;
}
.act_tc_pool {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  border-radius: 8px;
}

/* 默认只展示第一个内容池，其余隐藏，避免 JS 初始化前全展开造成 CLS */
.act_tc_pool ~ .act_tc_pool {
  display: none;
}

.act_tc_pool_head {
  flex-shrink: 0;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 24px;
}

.act_tc_pool_tit {
  color: #2B2B2B;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.21px;
}

.act_tc_pool_intro {
  color: #2B2B2B;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

.act_tc_cards_wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: hidden;
}

.act_tc_cards {
  display: flex;
}

.act_tc_card {
  width: 296px;
  flex-shrink: 0;
  height: auto;
  box-sizing: border-box;
  padding: 16px;
  background: #fff;
  border: 1px solid #F2F3F5;
  border-radius: 4px;
  box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.act_tc_card_img {
  display: block;
  position: relative;
  height: 176px;
  margin-bottom: 16px;
  border-radius: 4px;
  overflow: hidden;
}

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

.act_tc_card_mask {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 120px;
  height: 32px;
  padding: 0 8px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(43, 43, 43, 0.8);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  z-index: 2;
}

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

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

.act_tc_card_promo {
  color: #DC2F2F;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.act_tc_card_cta span {
  color: #2B2B2B;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: underline;
}

/* 卡片状态：coming soon —— 图片不压暗，只显示 Coming Soon 标签 */
.act_tc_card.coming .act_tc_card_mask {
  display: flex;
}

/* 卡片状态：ended 图片压暗（不置灰） */
.act_tc_card.ended .act_tc_card_img:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.3);
}

.act_tc_card.ended .act_tc_card_mask {
  display: flex;
}

/* ended 态：优惠文字由红变黑 */
.act_tc_card.ended .act_tc_card_promo {
  color: #2B2B2B !important;
}

/* ---- 卡片切换箭头 ---- */
.act_tc_card_prev,
.act_tc_card_next {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 60px;
  height: 60px;
  margin-top: -30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(249, 250, 252, 0.8);
  cursor: pointer;
}

.act_tc_card_prev {
  left: 0;
}

.act_tc_card_next {
  right: 24px;
}

.act_tc_card_prev img,
.act_tc_card_next img {
  width: auto !important;
  height: 22px;
}

.act_tc_card_prev img {
  transform: scaleX(-1);
}

.act_tc_card_prev.swiper-button-disabled,
.act_tc_card_next.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}

/* ---- 时间轴节点切换箭头（节点超过4个时出现） ---- */
.act_tc_node_prev,
.act_tc_node_next {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.act_tc_node_prev {
  left: -8px;
}

.act_tc_node_next {
  right: -8px;
}

.act_tc_node_prev img,
.act_tc_node_next img {
  width: auto !important;
  height: 16px;
}

.act_tc_node_prev img {
  transform: scaleX(-1);
}

.act_tc_node_prev.swiper-button-disabled,
.act_tc_node_next.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}

/* ============ H5 ============ */
@media only screen and (max-width: 767px) {
  .act_tc {
    gap: 16px;
  }

  .act_tc_head {
    padding: 16px 12px;
  }

  .act_tc_head_tit {
    font-size: 18px;
  }

  .act_tc_head_sub {
    font-size: 14px;
  }

  .act_tc_in {
    gap: 16px;
  }

  /* H5 时间轴：竖向滚动 */
  .act_tc_timeline {
    display: flex;
    max-height: 300px;
    padding: 16px 16px 16px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 4px;
  }

  .act_tc_timeline::-webkit-scrollbar {
    width: 5px;
  }

  .act_tc_timeline::-webkit-scrollbar-thumb {
    background: rgba(217, 217, 217, 1);
    border-radius: 4px;
  }

  /* 轨道列：宽度容纳圆点(20px)，不裁切 */
  .act_tc_track_wrap {
    width: 20px;
    height: auto;
    margin-bottom: 0;
    margin-right: 12px;
    overflow: visible;
    display: block;
    flex-shrink: 0;
  }

  .act_tc_track {
    position: relative;
    width: 8px;
    height: 100%;
    margin: 0 auto;
    display: block;
    border-radius: 2px;
    background: #E5E6EB;
    overflow: visible;
  }

  .act_tc_track:before {
    width: 100%;
    background: linear-gradient(180deg, #EF6868 0%, #BC1212 100%);
  }

  .act_tc_track_item {
    width: 8px;
    height: auto;
    margin-bottom: 8px;
    overflow: visible;
  }

  .act_tc_track_item:last-child {
    margin-bottom: 0;
  }

  .act_tc_dot {
    left: 50%;
    top: 50%;
    transform: translate(-8px, -8px);
  }

  .act_tc_track_item.now .act_tc_dot {
    transform: translate(-10px, -10px);
  }

  .act_tc_nodes_wrap {
    flex: 1;
    min-width: 0;
    overflow: visible;
  }

  .act_tc_nodes {
    display: block;
  }

  .act_tc_node {
    padding: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
    gap: 12px;
  }

  .act_tc_node:last-child {
    margin-bottom: 0;
  }

  .act_tc_node_main {
    gap: 8px;
  }

  .act_tc_node_date {
    font-size: 14px;
    font-weight: 600;
  }

  .act_tc_node_tit {
    font-size: 14px;
    font-weight: 600;
  }

  .act_tc_node_intro {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.09px;
  }

  .act_tc_node_tag>span {
    height: 32px;
    padding: 0 8px;
    gap: 8px;
    font-size: 14px;
  }

  .act_tc_node_tag>span img {
    width: 12px !important;
    height: 12px;
  }

  .act_tc_card_img img {
    border-radius: 4px 4px 0 0;
  }

  /* H5 内容池：竖向。左右 padding 去掉让卡片贴边，标题区单独加左右内边距 */
  .act_tc_pools {
    border-radius: 4px;
  }
  .act_tc_pool {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 0;
    border-radius: 4px;
  }

  .act_tc_pool_head {
    width: auto;
    gap: 4px;
    padding: 0 12px;
  }

  .act_tc_pool_tit {
    font-size: 18px;
    letter-spacing: 0.135px;
  }

  .act_tc_pool_intro {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.105px;
  }

  .act_tc_cards_wrap {
    width: auto;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 12px;
  }

  .act_tc_card {
    width: 146px;
    border: 0;
    padding: 0;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.05);
  }

  .act_tc_card_link {
    padding: 0;
  }

  .act_tc_card_img {
    height: 88px;
    margin-bottom: 0;
    border-radius: 4px 4px 0 0;
  }

  .act_tc_card_info {
    padding: 12px;
    gap: 4px;
    border-top: 0;
    border-radius: 0 0 4px 4px;
  }

  .act_tc_card_name {
    font-size: 16px;
  }

  .act_tc_card_promo {
    font-size: 14px;
  }

  .act_tc_card_cta span {
    font-size: 12px;
  }

  /* H5 ended 态优惠文字保持红色（与 PC 不同） */
  .act_tc_card.ended .act_tc_card_promo {
    color: #DC2F2F !important;
  }

  .act_tc_card_mask {
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    top: auto;
    width: auto;
    min-width: 88px;
    height: 32px;
  }

  .act_tc_card_prev,
  .act_tc_card_next {
    display: none !important;
  }
}
