/* =========================================================
   merged.css (FINAL LOCKED) - TFMI Activity Landing (BS5)
   ========================================================= */
/* -----------------------------
  0) Theme Tokens
----------------------------- */ :root {
  --c-text: #2b2b2b; /* Dark Text (unchanged) */
  --c-muted: rgba(0, 0, 0, .55);
  /* Festive Colors Inspired by the Image */
  --c-brand: #e70010; /* Red, symbolizing good fortune (from the background) */
  --c-brand-dark: #9f0010; /* A deeper red for darker tones */
  --c-nav: #f4a300; /* Gold accents for navigation and highlights */
  --c-nav-hover: #ffbc42; /* Lighter gold for hover effect */
  --c-accent: #f8e1b0; /* Soft beige/golden accent from the floral elements */
  --c-accent-dark: #e09b65; /* Darker gold accent for depth */
  --c-line: #b0b20d; /* Soft green for lines and highlights from foliage */
  --c-warm: #fed8b8; /* Light beige/off-white for background, inspired by the image */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --pill: 999px;
  --shadow-sm: 0 10px 22px rgba(0, 0, 0, .10);
  --shadow-md: 0 16px 36px rgba(0, 0, 0, .12);
  --header-space-desktop: 65px;
  --header-space-mobile: 54px;
}
/* -----------------------------
  1) Base / Background (✅ 統一背景)
----------------------------- */
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--c-warm);
}
body {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, "微軟正黑體", sans-serif;
  -webkit-text-size-adjust: 100%;
  font-size: 18px;
  line-height: 1.5;
  color: var(--c-text);
  background:
    radial-gradient(1200px 320px at 50% -120px, rgba(255, 255, 255, .70), rgba(255, 255, 255, 0) 58%), linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%), var(--c-warm);
  /* Add repeating pattern of cloud elements */
  background-image:
    url('../images/bg.png'); /* Path to the uploaded cloud image */
  background-repeat: repeat; /* Repeat the image across the entire background */
  background-position: top left;
  background-size: 300px 305px; /* Adjust size of the cloud pattern */
  background-attachment: fixed; /* Keep the background fixed when scrolling */
}
@media (max-width:991px) {
  body {
    font-size: 16px;
  }
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
.text-muted {
  color: var(--c-muted) !important;
}
.font-308e92 {
  color: var(--c-brand) !important;
}
.font-e35959 {
  color: #E35959 !important;
}
/* ✅ header fixed 後，body 讓出空間 */
body.headerSpace {
  padding-top: var(--header-space-desktop);
}
@media (max-width:991px) {
  body.headerSpace {
    padding-top: var(--header-space-mobile);
  }
}
/* -----------------------------
  2) Header / Navbar (✅ 強制置頂)
----------------------------- */
header.header {
  min-height: 55px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
  position: relative;
  z-index: 2000;
}
header.header.fixed-top {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}
/* 上緣細條 */
header.header::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to top, #3A362F 0%, var(--c-brand) 100%);
}
.navbar-light .navbar-nav .nav-link {
  color: var(--c-nav);
  font-weight: 800;
  padding: .8rem 1rem;
  border-radius: 12px;
  transition: background .18s ease, transform .08s ease, color .18s ease;
}
.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus {
  color: var(--c-nav-hover);
  background: rgba(220, 55, 35, .08);
  transform: translateY(-1px);
}
/* -----------------------------
  3) KV / Banner spacing
----------------------------- */
.kv-bg {
  margin: 5px 0 18px 0;
  padding: 0;
}
@media (max-width:991px) {
  .kv-bg {
	margin-top: 5px;
    margin-bottom: 12px;
  }
}
.kv-bg .kv-bg_item{
    height:300px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}
@media(max-width:991px) {
    .kv-bg .kv-bg_item{
        height:auto;
    }
	 }
/* -----------------------------
  4) Sections (✅ 全透明 + 一段一段 + 只留線)
----------------------------- */
.section-bg, .section-bg2, section.section-border {
  background: transparent !important;
}
.section-padding {
  padding-top: 28px;
  padding-bottom: 28px;
}
@media (max-width:991px) {
  .section-padding {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
/* ✅ 分隔線只留線，確保沒有小點 */
section.section-border {
  position: relative;
  border-bottom: 0 !important;
  padding-bottom: 56px;
  margin-bottom: 56px;
}
@media (max-width:991px) {
  section.section-border {
    padding-bottom: 42px;
    margin-bottom: 42px;
  }
}
@media (max-width:575px) {
  section.section-border {
    padding-bottom: 32px;
    margin-bottom: 32px;
  }
}
/* 任何 before 全關掉（避免圓點殘留） */
section.section-border::before {
  content: none !important;
  display: none !important;
}
/* ✅ 只保留線 */
section.section-border::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 32px));
  height: 1px;
  background: linear-gradient(90deg, rgba(221, 51, 36, 0) 0%, rgba(221, 51, 36, .32) 20%, rgba(221, 51, 36, .55) 50%, rgba(221, 51, 36, .32) 80%, rgba(221, 51, 36, 0) 100%);
  opacity: .9;
  pointer-events: none;
}
/* 最後一段不要線 */
section.section-border:last-of-type {
  margin-bottom: 0;
  padding-bottom: 28px;
}
section.section-border:last-of-type::after {
  content: none !important;
  display: none !important;
}
/* -----------------------------
  6) Buttons (CTA)
----------------------------- */
.activity-main-btn, .activity-main-btn.more-btn, .js-noticebox1-close, .js-noticebox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 30px;
  border-radius: 999px;
  border: 0;
  color: #fff !important;
  font-weight: 900;
  letter-spacing: .4px;
  text-decoration: none !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)), linear-gradient(180deg, #ff5a50, #e52c2c);
  box-shadow:
    0 14px 26px rgba(240, 64, 58, .26), inset 0 0 0 1px rgba(255, 255, 255, .24);
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, box-shadow .18s ease, filter .18s ease;
  position: relative;
  overflow: hidden;
}
.activity-main-btn:hover, .activity-main-btn.more-btn:hover, .js-noticebox1-close:hover, .js-noticebox-close:hover {
  filter: brightness(1.02);
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px rgba(240, 64, 58, .32), inset 0 0 0 1px rgba(255, 255, 255, .26);
}
.activity-main-btn:active, .activity-main-btn.more-btn:active, .js-noticebox1-close:active, .js-noticebox-close:active {
  transform: translateY(1px);
}
/* -----------------------------
  7) traFix (✅ 2 行直排)
----------------------------- */
.traFix {
  position: fixed;
  right: 12px;
  bottom: 220px;
  z-index: 1200;
  width: 64px;
  height: 164px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0)), linear-gradient(180deg, #ff5a92, #ff2d73);
  box-shadow: 0 16px 34px rgba(255, 76, 126, .28);
  display: flex;
  align-items: center;
  justify-content: center;
}
.traFix span {
  color: #fff;
  font-weight: 800;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  column-count: 2;
  column-gap: 8px;
  height: 120px;
  line-height: 1.1;
  text-align: center;
}
/* -----------------------------
  8) Pills（取代 inline li + ◆）
----------------------------- */
.pill-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
  font-weight: 700;
  color: rgba(0, 0, 0, .82);
}
.pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--c-line);
  box-shadow: 0 0 0 6px rgba(221, 51, 36, .10);
}
/* -----------------------------
  9) warn-note（所有「注意事項：」警示）
----------------------------- */
.warn-note {
  display: block;
  position: relative;
  margin: 10px 0 12px;
  padding: 10px 12px 10px 40px;
  border-radius: 14px;
  border: 1px solid rgba(240, 64, 58, .22);
  background: rgba(240, 64, 58, .08);
  color: rgba(0, 0, 0, .78) !important;
  font-weight: 600;
  line-height: 1.85;
}
.warn-note::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  bottom: 10px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6a61, #e52c2c);
  box-shadow: 0 10px 18px rgba(240, 64, 58, .18);
}
/* ✅ 自動把包含「注意事項：」的 small 也變 warn-note */
small.warn-note {
  font-size: 0.95em;
}
/* -----------------------------
  10) Noticebox (✅ 點卡片展開 / 內文關閉收合)
----------------------------- */
.noticebox1__listbox,.noticebox__listbox {
  position: relative;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .10);
  padding: 18px;
}
.noticebox1__listbox.is-collapsed,.noticebox__listbox.is-collapsed {
  max-height: 220px;
  overflow: hidden;
  cursor: pointer;
}
.noticebox1__listbox.is-collapsed::after,.noticebox__listbox.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 86px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  pointer-events: none;
}
.noticebox1__listbox.is-open,.noticebox__listbox.is-open {
  max-height: none;
  overflow: visible;
  cursor: default;
}
/* 關閉按鈕置中容器 */
.noticebox1__action, .noticebox__action,.noticebox__action, .noticebox__action {
  display: flex;
  justify-content:center;
  margin-top: 18px;
}
/* -----------------------------
  11) Pag6 注意事項（✅ badge/子 badge/pill/字體一致/隱藏第25點）
----------------------------- */
#pag6 .noticebox1__listbox {
  padding: 18px 16px;
}
/* 第一層 ol -> 圓形 badge（不顯示數字） */
#pag6 .noticebox1__listbox > ol {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}
#pag6 .noticebox1__listbox > ol > li {
  position: relative;
  padding-left: 42px;
  margin: 14px 0;
  line-height: 1.9;
  font-size: 1em; /* ✅ li 字體跟內文一致 */
  font-weight: 500;
}
#pag6 .noticebox1__listbox > ol > li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: .5em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff6a61, #e52c2c);
  box-shadow: 0 6px 12px rgba(240, 64, 58, .35), inset 0 0 0 2px rgba(255, 255, 255, .65);
}
/* 子層 ol -> 小圓點 badge */
#pag6 .noticebox1__listbox ol ol {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 6px;
}
#pag6 .noticebox1__listbox ol ol > li {
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
  line-height: 1.85;
}
#pag6 .noticebox1__listbox ol ol > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-brand);
  box-shadow: 0 0 0 4px rgba(48, 142, 146, .18);
}
/* 小節標題 pill（ul 裡單行標題） */
#pag6 .noticebox1__listbox > ol li > ul {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 8px;
}
#pag6 .noticebox1__listbox > ol li > ul > li {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600; /* ✅ 跟內文一致 */
  font-size: 1em;
  line-height: 1.5;
  color: rgba(0, 0, 0, .78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .70), rgba(255, 255, 255, .20)), linear-gradient(180deg, rgba(48, 142, 146, .14), rgba(48, 142, 146, .06));
  border: 1px solid rgba(48, 142, 146, .20);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .06);
}
/* ✅ 移除「蒐集目的前的紅點」：強制不要用 ul li::before 那顆點 */
#pag6 .noticebox1__listbox > ol li > ul > li::before {
  content: none !important;
  display: none !important;
}
/* text-indent 的段落改左線縮排 */
#pag6 .noticebox1__listbox p[style*="text-indent"] {
  text-indent: 0 !important;
  padding-left: 14px;
  border-left: 3px solid rgba(0, 0, 0, .06);
  margin: 6px 0;
}
/* 內縮段落 */
.notice-indent {
  padding-left: 1.75em;
  color: rgba(0, 0, 0, .78);
  line-height: 1.7;
}
@media (max-width:767px) {
  .notice-indent {
    padding-left: 1.25em;
  }
}
#pag6 h3 {
  font-size: 20px;
  font-weight: 700;
}
/* -----------------------------
  12) Footer (✅ 美化)
----------------------------- */
.footer {
  position: relative;
  padding: 26px 0;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)), linear-gradient(180deg, var(--c-brand), var(--c-brand-dark));
  box-shadow: 0 -18px 44px rgba(0, 0, 0, .18);
  margin-top: 24px;
}
.footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 32px));
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .22) 20%, rgba(255, 255, 255, .35) 50%, rgba(255, 255, 255, .22) 80%, rgba(255, 255, 255, 0) 100%);
  opacity: .85;
}
.footer-info {
  color: rgba(255, 255, 255, .92);
}
.footer-info p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.common-line {
  display: flex;
  align-items: center; /* 確保所有元素垂直對齊 */
  justify-content: center; /* 保證元素在水平上居中 */
  gap: 10px; /* 設置 i 和 abbr 之間的間距 */
}
.common-line i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-line);
  box-shadow: 0 0 0 4px rgba(221, 51, 36, .10);
}
.common-line abbr {
  font-weight: 900;
  font-size: 26px; /* 你可以根據需要調整字體大小 */
}
.common-line_left {
  margin-right: 10px; /* 調整左邊圓點與文字的間距 */
}
.common-line_right {
  margin-left: 10px; /* 調整右邊圓點與文字的間距 */
}
/* =========================================
   Campaign Tabs 美化（BS5）
   作用範圍：#campaignTabs
========================================= */
#campaignTabs {
  border-bottom: 0; /* 取消預設 tabs 底線 */
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .40);
}
#campaignTabs .nav-item {
  padding: 0;
}
#campaignTabs .nav-link {
  border: 0 !important; /* 拿掉 BS tab 的框線 */
  margin: 0 !important;
  border-radius: 999px !important;
  padding: 12px 14px;
  font-weight: 900;
  letter-spacing: .3px;
  color: rgba(0, 0, 0, .70);
  background: rgba(255, 255, 255, .78);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .06), 0 10px 18px rgba(0, 0, 0, .06);
  transition: transform .12s ease, filter .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}
/* Hover */
#campaignTabs .nav-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .06), 0 16px 26px rgba(0, 0, 0, .10);
}
/* Active（主視覺） */
#campaignTabs .nav-link.active {
  color: #fff !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)), linear-gradient(180deg, var(--c-brand), var(--c-brand-dark));
  box-shadow:
    0 18px 34px rgba(245,195, 146, .28), inset 0 0 0 1px rgba(255, 255, 255, .24);
  transform: translateY(-1px);
}
#campaignTabs .nav-link:focus-visible {
  outline: 3px solid rgba(48, 142, 146, .35);
  outline-offset: 2px;
}
#campaignTabsContent {
  padding-top: 10px;
}
/* 手機調整 */
@media (max-width: 575px) {
  #campaignTabs {
    border-radius: 18px;
    padding: 8px;
    gap: 8px;
  }
  #campaignTabs .nav-link {
    padding: 10px 10px;
    font-size: 15px;
  }
}
/* ===== Tab 內文整體節奏 ===== */
.campaign-pane{
  padding: 6px 2px 2px;
}

.campaign-pane .hero-img{
  border-radius: 16px !important;
  box-shadow: 0 16px 30px rgba(0,0,0,.10);
}

.campaign-pane .info-block{
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 16px 16px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.50),
    0 10px 18px rgba(0,0,0,.06);
}

.campaign-pane h3.h5{
  font-weight: 900;
  letter-spacing: .3px;
}

.campaign-pane p{
  color: rgba(0,0,0,.78);
  line-height: 1.7;
}

.campaign-pane ul.list-unstyled{
  margin-top: 10px;
}
.campaign-pane ul.list-unstyled > li{
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.05);
}
.campaign-pane ul.list-unstyled > li + li{
  margin-top: 10px;
}

.campaign-pane ul.list-unstyled > li .text-danger{
  font-weight: 900;
}

.campaign-pane .small.text-muted{
  margin-top: 4px;
  line-height: 1.5;
}

/* 抽獎時間 / 小段落的置中資訊：做成 pill */
.campaign-pane .draw-date,
.campaign-pane p.text-center.mb-2{
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(48,142,146,.10);
  color: rgba(0,0,0,.78);
  border: 1px solid rgba(48,142,146,.18);
}

/* 按鈕區：更整齊的格線感 */
.campaign-pane .row.g-3:has(.activity-main-btn),
.campaign-pane .row.g-3:has(.btn){
  margin-top: 4px;
}

/* 讓 disabled button 看起來像同系列 */
.campaign-pane .btn.btn-secondary[disabled]{
  border-radius: 12px;
  opacity: .65;
}

/* 內容區跟 tab 本體更融合（可選） */
#campaignTabsContent{
  padding-top: 12px;
}

/* 手機：留白更剛好 */
@media (max-width: 575px){
  .campaign-pane .info-block{
    padding: 14px 14px;
    border-radius: 14px;
  }
  .campaign-pane .hero-img{
    border-radius: 14px !important;
  }
  .campaign-pane ul.list-unstyled > li{
    padding: 10px 10px;
  }
}
/* Back to top button */
.back-to-top{
  position: fixed;
  right: 14px;
  bottom: 110px; /* 依你右側浮動物件位置調整 */
  z-index: 996;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)), linear-gradient(180deg, #ff5a50, #e52c2c);
  box-shadow:
    0 14px 26px rgba(240, 64, 58, .26), inset 0 0 0 1px rgba(255, 255, 255, .24);
  color: #fff;
  font-size: 22px;
  line-height: 48px;
  text-align: center;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.back-to-top.is-show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover {
  filter: brightness(0.95);
}

.back-to-top:focus{
  outline: 2px solid rgba(48, 142, 146, .35);
  outline-offset: 3px;
}
/* ===================== 表格樣式美化 ===================== */
.table-custom {
  border-collapse: collapse;
  width: 100%;
}

.table-custom th, .table-custom td {
  padding: 15px;
  text-align: center;
  border: 1px solid #ddd;
}

.table-custom th {
background:
   linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)), linear-gradient(180deg, #f8e1b0, #e09b65);
  color: #fff;
  font-weight: bold;
}

.table-custom td {
  background-color: #f9f9f9;
}

.table-custom td ul li {
  list-style: none;
}

/* 加強表格邊框與間距 */
.table-custom td, .table-custom th {
  border: 1px solid #ddd;
  padding: 12px;
}

/* 表格內文字居中 */
.text-center {
  text-align: center;
}

/* ===================== 文字樣式 ===================== */
.ogword {
  color: var(--c-accent-dark);
  font-weight: bold;
  font-size:26px;
}

.ogword2 {
  color: #FF4C7E;
  font-weight: bold;
}

/* ===================== 按鈕樣式 ===================== */
.activity-main-btn {
  background-color: var(--c-accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
}

.activity-main-btn:hover {
  background-color: var(--c-accent);
}

ul.giftlist {
	list-style: none;
	font-size: 16px;
	opacity: 1; 
	color: red;
}
