﻿/* ChristmasDay26 主题配置
 * 在 public.css 之后引入。
 * 图片前缀：https://resource.xp-pen.com/img/active_list/ChristmasDay26
 */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --bg-img: url("https://resource.xp-pen.com/img/active_list/ChristmasDay26/bg1.jpg");
  --bg-img2: url("https://resource.xp-pen.com/img/active_list/ChristmasDay26/bg2.jpg");
  --bg-color: #8d121c;
  --bg-color2: #0d3b32;

  --color-white: #fff;
  --color-black: #1a140c;
  --color-dark: #1a140c;
  --color-red: #ed0200;
  --color-light-gray: #fdf4ce;

  --color-text1: #f8e7c4;
  --color-textH1: #750915;
  --color-textH1-bg: #F5BF75;
  --color-textH1-span: #c4963c;
  --color-textH2: #e1c08b;
  --color-textH2-from: #fff6d4;
  --color-textH2-bg: transparent;

  --color-navbg: #f6d7a6;
  --nav-active-bg: #fff8ee;
  --nav-text: #2b1608;
  --nav-active-color: #2b1608;

  --coutdown-title: #fdf4ce;
  --coutdown-number: #1a140c;
  --coutdown-number-bg: #fdf4ce;

  --coupon-title: #9d0004;
  --color-coupon: #fff8ee;
  --coupon-p1: #9d0004;
  --coupon-p2: #9d0004;
  --coupon-p3: #fff;
  --coupon-p3-bg: #1f7a45;
  --coupon-bd: #c81018;
  --coupon-img-display: block;

  --NY-title: #1a140c;
  --sell-text: #1a140c;
  --buy-btn: #000;
  --buy-btn-bg: #fff;
  --buy-btn-hover: #ed0200;
  --more-btn: #e1c08b;
  --more-btn-text: #000000;
  --more-btn-border: transparent;

  --free-title: #fdf4ce;
  --title-bg: #9d0004;
  --bullet: #cfcfcf;
  --bullet-ring: #333333;
  --title-transform: translate(-50%, -50%);
}

#module,
#module .module_bg {
  background-color: var(--bg-color);
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

#module .module_bg {
  position: relative;
}

#module .module_bg.module_bg_2 {
  background-color: var(--bg-color2);
  background-image: var(--bg-img2);
}

#module .module_bg::before,
#module .module_bg::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 0;
  width: 220px;
  height: 520px;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

#module .module_bg::before {
  left: 0;
  background-image: url("https://resource.xp-pen.com/img/active_list/ChristmasDay26/bg_L.png");
}

#module .module_bg::after {
  right: 0;
  background-image: url("https://resource.xp-pen.com/img/active_list/ChristmasDay26/bg_R.png");
}

#module .module_inner,
#module .Ch2020_countdown {
  position: relative;
  z-index: 1;
}

/* 头图文案：驯鹿 + 胶囊标题 + 金色折扣 */
#module .module_banner_text {
  width: 32vw;
  left: 6vw;
  top: 50% !important;
  transform: translateY(-50%) !important;
  text-align: center;
}

#module .module_banner .Wb_textH1::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% - 1.15vw);
  z-index: 2;
  width: 18.75vw;
  aspect-ratio: 478 / 146;
  transform: translateX(-50%);
  pointer-events: none;
  background: url("https://resource.xp-pen.com/img/active_list/ChristmasDay26/fenix.png") center / 100% 100% no-repeat;
}

#module .banner-info-item,
#module .banner-info-item-bg {
  text-align: center;
}

#module .Wb_text1,
#module .Wb_text2,
#module .Wb_text_ship {
  font-size: 1.45vw !important;
  color: var(--color-text1) !important;
  -webkit-text-fill-color: var(--color-text1) !important;
  -webkit-text-stroke: 0;
  paint-order: normal;
  font-weight: 600;
  font-style: normal !important;
  letter-spacing: 0.02em;
  text-shadow: none;
  filter: none;
  border: none;
  background: none;
  margin-bottom: 1.3021vw;
  text-align: center;
}

#module .Wb_text2 {
  display: block;
  padding-bottom: 0;
}

#module .Wb_text_ship {
  margin-top: 0.45vw;
  font-size: 0.95vw !important;
}

#module .module_banner .Wb_textH1 {
  font-family: "Montserrat", sans-serif !important;
  font-weight: bold !important;
  font-style: normal;
  position: relative;
  z-index: 1;
  display: inline-block !important;
  width: auto !important;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 2.15vw !important;
  line-height: 1.3 !important;
  letter-spacing: 0.01em;
  margin: 4vw auto 0.9vw !important;
  padding: 1.35vw 1.6vw 0.45vw !important;
  color: var(--color-textH1) !important;
  -webkit-text-fill-color: var(--color-textH1) !important;
  background: var(--color-textH1-bg) !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  border-radius: 999px;
  text-shadow: none !important;
  filter: none !important;
}

#module .Wb_textH2,
#module .Wb_textH2 span,
#module .Wb_textH2 .Wb_textH2_p1 {
  background: linear-gradient(180deg, var(--color-textH2-from) 0%, var(--color-textH2) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: var(--color-textH2) !important;
  font-weight: 800 !important;
  font-size: 3vw !important;
  line-height: 1.15;
  padding: 0 !important;
  margin: 0;
  border-radius: 0;
  text-shadow: none;
  vertical-align: baseline;
}

#module .Wb_textH2 {
  display: inline-block;
}

#module .banner-info-item-bg {
  margin: 0 0 0.6vw;
}

/* 导航 */
#module .module_nav {
  gap: 0;
  background: var(--color-navbg);
}

#module .module_nav .nav-list {
  color: var(--nav-text);
  font-weight: 700;
  background: transparent;
}

#module .module_nav .nav-list.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-color);
}

/* 倒计时 */
#module #Ch2020_countdown_2 .Ch2020_cd_title {
  color: var(--coutdown-title);
  font-weight: 600;
  letter-spacing: 0.04em;
}

#module #Ch2020_countdown_2 .Ch2020_seperator {
  color: var(--coutdown-title);
}

#module #Ch2020_countdown_2 span {
  background: var(--coutdown-number-bg);
  color: var(--coutdown-number);
  border-radius: 8px;
  font-weight: 700;
}

/* 分区标题：奶油标题条 + 深红文案 */

#module .module_title_bg img {
  max-width: 100%;
}

#module .module_title_bg .module_title {
  color: var(--title-bg);
}

#module .module_title span {
  margin-top: 0;
}

#module .NY_big .NY_big_tag {
  font-weight: bold;
}

/* 购买按钮：红底白字，hover #ED0200 */

#module .NY_buy_btn a:hover {
  background: var(--buy-btn-hover);
  border-color: var(--buy-btn-hover);
  color: #fff;
}

/* 查看更多 */
#module .NY_More a {
  background: linear-gradient(188deg, var(--color-light-gray), var(--more-btn));
  border-radius: 32px;
  border: none;
  font-weight: bold;
  font-size: 24px;
  color: var(--more-btn-text);
}

#module .NY_More a:hover {
  filter: brightness(1.05);
  color: var(--more-btn-text);
}

/* 优惠券标题 */
#module .xmas_coupon_head {
  text-align: center;
  margin: 1.469vw 0 1.703vw;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2.0833vw;
}

#module .module_coupon_bg{
  margin-bottom: var(--spacing-xxl);
}

#module .xmas_coupon_head img {
  width: 3.438vw;
  height: auto;
}

#module .xmas_coupon_head p {
  margin: 0;
  font-weight: bold;
  font-size: 1.85vw;
  line-height: 1.3;
  color: var(--free-title);
}

#module .module_coupon .module_coupon_item::before,
#module .module_coupon .module_coupon_item::after {
  display: none;
}

#module .module_coupon .module_coupon_item {
  border: none;
  border-radius: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}

#module .module_free .module_free_p,
#module .module_free p {
  color: var(--free-title);
}

@media screen and (max-width: 1460px) {
  :root {
    --spacing-6xl: 3vw;
  }
}

@media screen and (max-width: 1200px) {

  #module .NY_More a {
    font-size: 20px;
  }

  #module .xmas_coupon_head p {
    font-size: 2.167vw;
  }

  #module .module_bg::before,
  #module .module_bg::after {
    width: 140px;
    height: 340px;
  }
}

@media screen and (max-width: 480px) {
  #module .module_banner_text {
    width: 88%;
    left: 50% !important;
    top: 7vw !important;
    transform: translateX(-50%) !important;
  }

  #module .module_nav .nav-list {
    flex: 0 0 auto;
  }

  #module .module_banner .Wb_textH1::before {
    width: 48vw;
    bottom: calc(100% - 2.9vw);
  }

  #module .module_banner .Wb_textH1 {
    font-size: 5.4vw !important;
    padding: 3.6vw 4vw 1.6vw !important;
    margin: 16vw auto 2vw !important;
  }

  #module .Wb_textH2,
  #module .Wb_textH2 span,
  #module .Wb_textH2 .Wb_textH2_p1 {
    font-size: 7.4vw !important;
  }

  #module .Wb_text1,
  #module .Wb_text2,
  #module .Wb_text_ship {
    font-size: 4.2vw !important;
  }

  #module .Wb_text_ship {
    font-size: 3vw !important;
  }

  #module #Ch2020_countdown_2 span {
    border-radius: 1.6vw;
  }

  #module .NY_More a {
    font-size: 16px;
    border-radius: 32px;
    padding: 10px 24px;
  }

  #module .xmas_coupon_head img {
    width: 9.333vw;
  }

  #module .xmas_coupon_head p {
    font-size: 4.75vw;
  }

  #module .module_bg::before,
  #module .module_bg::after {
    display: none;
  }
}

/* 优惠券轮播：一排一张 */
#module .swiper-coupon {
  width: 100%;
  margin-top: var(--spacing-60);
  overflow: hidden;
  box-sizing: border-box;
}
#module .swiper-coupon .swiper-slide img {
  width: 100%;
  height: auto;
}
#module .swiper-coupon .swiper-pagination-coupon {
  bottom: 0;
}
#module .swiper-coupon .swiper-pagination-bullet {
  background: var(--bullet);
  opacity: 1;
}
#module .swiper-coupon .swiper-pagination-bullet-active {
  background: var(--color-white);
  box-shadow: 0 0 0 1px var(--bullet-ring);
}
@media screen and (max-width: 480px) {
  #module .swiper-coupon {
    margin: 0 0 20px;
  }
}

/* 市场部活动：左侧对齐 module_inner，右侧铺满 */
#module .swiper-activity {
  --activity-content-width: 54.688vw;
  width: calc(50% + var(--activity-content-width) / 2);
  margin: 0 0 40px calc(50% - var(--activity-content-width) / 2);
  padding-bottom: 36px;
  overflow: hidden;
  box-sizing: border-box;
}
#module .swiper-activity .swiper-slide a {
  display: block;
}
#module .swiper-activity .swiper-slide img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-white);
  box-sizing: border-box;
}
#module .swiper-activity .swiper-pagination-activity {
  bottom: 0;
}
#module .swiper-activity .swiper-pagination-bullet {
  background: var(--bullet);
  opacity: 1;
}
#module .swiper-activity .swiper-pagination-bullet-active {
  background: var(--color-white);
  box-shadow: 0 0 0 1px var(--bullet-ring);
}
@media screen and (max-width: 1460px) {
  #module .swiper-activity {
    --activity-content-width: min(98%, 95.89vw);
  }
}
@media screen and (max-width: 1024px) {
  #module .swiper-activity {
    --activity-content-width: 95%;
  }
}
@media screen and (max-width: 480px) {
  #module .swiper-activity {
    width: 100%;
    margin: 0 0 24px;
    --activity-content-width: 100%;
  }
}

/* Tab 切换 */
#module .tab-group {
  width: 100%;
  margin: 20px 0 10px;
}
#module .tab-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 20px;
  margin-bottom: 24px;
}
#module .tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 28px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px dashed var(--title-bg);
  background: transparent;
  color: var(--free-title);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
#module .tab-button.active {
  background: var(--title-bg);
  color: var(--color-white);
  border-style: solid;
  border-color: var(--title-bg);
}
#module .tab-panels .tab-content {
  display: none;
}
#module .tab-panels .tab-content.active {
  display: block;
}
@media screen and (max-width: 480px) {
  #module .tab-buttons {
    gap: 10px 12px;
  }
  #module .tab-button {
    min-height: 36px;
    padding: 6px 16px;
    font-size: 13px;
  }
}
