/* ========================================== */
/* 全局 Box-sizing 與溢出防護（解決右側被切掉的關鍵） */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 全局重置樣式 */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

/* 引入自訂字體 */
@font-face {
  font-family: 'GenSenRounded';
  src: url('./fonts/GenSenRounded2TW-B.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'GenSenRounded';
  src: url('./fonts/GenSenRounded2TW-EL.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'GenSenRounded';
  src: url('./fonts/GenSenRounded2TW-H.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'GenSenRounded';
  src: url('./fonts/GenSenRounded2TW-L.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'GenSenRounded';
  src: url('./fonts/GenSenRounded2TW-M.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'GenSenRounded';
  src: url('./fonts/GenSenRounded2TW-R.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

/* 設定全局字體與高度 */
html {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  line-height: 1;
  font-family: 'GenSenRounded', sans-serif;
  min-height: 100%;
  width: 100%;
  margin: 0;
  overflow-x: hidden;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 設定標題字重 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'GenSenRounded', sans-serif;
  font-weight: 700;
}

/* 內文預設字重 */
p {
  font-weight: 200;
}

/* 全局重置樣式 完畢*/


.top-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 9999;
}

.header-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    height: 32px;
    width: auto;
    display: block;
    max-width: 100%;
    transition: height 0.2s ease;
}

/* 💡 新增：雙按鈕群組容器 */
.header-btn-group {
    display: flex;
    gap: 8px; /* 兩個按鈕之間的間距 */
    align-items: center;
}

.btn-query {
    display: inline-block;
    background-color: #d9232e;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap; /* 防止文字斷行 */
    flex-shrink: 0; /* 防止被擠壓變形 */
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-query:hover {
    background-color: #b81c25;
}

.btn-query:active {
    transform: scale(0.98);
}

/* 💡 手機版響應式微調（防止螢幕太窄時塞不下） */
@media (max-width: 768px) {
    .header-container {
        padding: 8px 10px;
    }
    .header-logo {
        height: 26px; /* 手機版 Logo 稍微縮小 */
    }
    .header-btn-group {
        gap: 5px;
    }
    .btn-query {
        font-size: 11px;
        padding: 5px 8px;
    }
}
/* header end */
/* --------------------------------------------------------------------------------*/
/* 主視覺背景：維持 1920x1080 等比例縮放 */
.hero-bg {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1080;
  background-color: #fff8f0;
  z-index: 1;
}

/* 旋轉圓圈 */
.rotating-circle {
  position: absolute;
  top: 33%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: auto;
  animation: rotateCircle 20s linear infinite;
  pointer-events: none;
}

/* 主視覺內容：內建於 hero-bg 內，與背景等比例縮放 */
.hero-content {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72%;
  /* 鎖定寬度比例，隨視窗縮放自動放大縮小 */
  max-width: 1200px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 視窗小於或等於 550px 時 */
@media (max-width: 550px) {
  .hero-content {
    width: 60%;
    top: 41%;
  }

  .hero-tagline {
    font-size: 15px;
    margin-top: 1%;
    margin-bottom: 1%;
  }

  .hero-date-badge {
    font-size: 11px;
    padding: 0.3em 0.9em;
    margin-bottom: 1.5%;
  }

  .hero-btn {
    font-size: 12px;
    padding: 0.5em 0.3em;
  }
}

/* 視窗小於或等於 440px 時 (如 iPhone Pro Max 直式) */
@media (max-width: 440px) {
  .hero-content {
    width: 55%;
    top: 40%;
  }

  .hero-tagline {
    font-size: 13px;
    letter-spacing: 1px;
    margin-top: 0.8%;
    margin-bottom: 0.8%;
  }

  .hero-date-badge {
    font-size: 10px;
    padding: 0.25em 0.8em;
    margin-bottom: 1.2%;
  }

  .hero-btn {
    font-size: 11px;
    padding: 0.45em 0.25em;
  }
}

/* 視窗小於或等於 360px 時 (針對更窄的小螢幕手機) */
@media (max-width: 360px) {
  .hero-content {
    width: 55%;
    top: 40%;
  }

  .hero-tagline {
    font-size: 11px;
  }

  .hero-date-badge {
    font-size: 9px;
    padding: 0.2em 0.6em;
  }

  .hero-btn {
    font-size: 9px;
    padding: 0.35em 0.2em;
  }
}


/* 對話框副標題 */
.sub-title-img {
  width: 32%;
  height: auto;
  align-self: flex-start;
  margin-left: 4%;
  margin-bottom: -3%;
  z-index: 2;
}

/* 主標題 */
.main-title-img {
  width: 100%;
  height: auto;
  display: block;
  z-index: 1;
}

/* 解鎖你的雙重好禮 */
.hero-tagline {
  font-size: clamp(14px, 2.1vw, 38px);
  font-weight: 1200;
  color: #3b0d8a;
  letter-spacing: 2px;
  margin-top: 1.5%;
  margin-bottom: 1.5%;
}

.hero-tagline .highlight {
  background: linear-gradient(90deg, #7c4dff 0%, #3b0d8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 活動期間膠囊標籤 */
.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35em 1.1em;
  border: 1px solid #f29b82;
  border-radius: 50px;
  background-color: rgba(255, 248, 240, 0.95);
  color: #d9381e;
  font-size: clamp(10px, 1.1vw, 18px);
  font-weight: 400;
  margin-bottom: 2.2%;
  white-space: nowrap;
}

/*小紅點閃爍動畫（像警示燈一樣）*/
.date-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #d9381e;
  box-shadow: 0 0 0 3px rgba(217, 56, 30, 0.25);
  flex-shrink: 0;
  animation: blinkWarning 1.2s ease-in-out infinite;
}

@keyframes blinkWarning {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(217, 56, 30, 0.6);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.25);
    box-shadow: 0 0 0 6px rgba(217, 56, 30, 0);
  }
}

/* 按鈕群組 */
.hero-btn-group {
  display: flex;
  justify-content: center;
  gap: 2.5%;
  width: 85%;
  max-width: 600px;
}

.hero-btn {
  flex: 1;
  min-width: 0;
  padding: 0.55em 0.4em;
  border-radius: 8px;
  font-size: clamp(10px, 1.1vw, 16px);
  font-weight: 200;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 紅色按鈕：滑鼠滑過與點擊時變成更深的暗紅色 */
.btn-red {
  background-color: #de351b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(222, 53, 27, 0.35);
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-red:hover {
  background-color: #a20ebc;
  /* 滑鼠滑過時更暗紅 */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(98, 0, 113, 0.4);
}

.btn-red:active {
  background-color: #680779;
  /* 點擊時再深一點 */
  transform: scale(0.98) translateY(0);
}

/* 白色按鈕：滑鼠滑過與點擊時文字變成淺藍色 */
.btn-white {
  background-color: #ffffff;
  color: #2c3e50;
  border: 1px solid #d0d7de;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.btn-white:hover {
  color: #1e88e5;
  /* 滑鼠滑過時文字變成好看的淺藍色（Material Blue） */
  border-color: #90caf9;
  /* 框線也可以微微帶一點淺藍 */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.15);
}

.btn-white:active {
  color: #1565c0;
  /* 點擊時更深一點的藍 */
  background-color: #f5f9ff;
  /* 點擊時微幅帶點極淡的藍底，手感更好 */
  transform: scale(0.98) translateY(0);
}

/* 波浪分隔區塊：疊在 hero-bg 下方銜接 */
.wave-divider {
  position: relative;
  width: 100%;
  z-index: 25;
  margin-top: 12%;
  margin-bottom: 2%;
  pointer-events: none;
}

.wave-divider img {
  width: 100%;
  height: auto;
  display: block;
}

/*旋轉背景圓圈*/
.rotating-circle {
  position: absolute;
  top: 33%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  /* 可依實際需求調整大小（例如 50% 或具體 px） */
  height: auto;
  animation: rotateCircle 20s linear infinite;
  /* 20秒轉一圈，可自行調整秒數 */
}

/* 原生 CSS 旋轉動畫定義 */
@keyframes rotateCircle {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/*波浪分隔區塊*/
.wave-divider {
  position: relative;
  width: 100%;
  z-index: 10;
  /* 權重高於 hero-bg 與 content-bg 的 z-index: 1 */
  margin-top: -12%;
  /* 往上拉，蓋住 hero-bg 底部（可依波浪弧度微調百分比） */
  margin-bottom: -5%;
  /* 往下壓，與白色 content-bg 無縫銜接（可微調百分比） */
  pointer-events: none;
  /* 避免透明區域擋到下方按鈕或文字的點擊 */
}

.wave-divider img {
  width: 100%;
  height: auto;
  display: block;
  /* 消除圖片底部預設的微小空隙 */
}

/*--------------------------------------------------------------------------------*/
/* 放大鏡互動特效容器 */
.magnifier-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  overflow: hidden;
  pointer-events: none;
  /* 讓滑鼠事件完美穿透，不干擾底下按鈕 */
}

/* 圖層共用設定 */
.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 底層：預設全部模糊 */
.blurred-layer {
  filter: blur(8px);
  opacity: 0.85;
}

/* 上層：透過 clip-path 圓圈遮罩顯示清晰畫面 */
.clear-layer {
  clip-path: circle(0px at -100px -100px);
  transition: clip-path 0.05s ease-out;
}

/* 放大鏡本體圖示（調整尺寸與對齊點） */
.magnifier-lens {
  position: absolute;
  width: 140px;
  /* 可依視覺調整放大鏡整體大小 */
  height: auto;
  /* 這裡透過 margin 讓滑鼠游標剛好落在放大鏡的鏡片中心或手柄交界處，可自由微調 */
  transform: translate(-35%, -35%);
  pointer-events: none;
  z-index: 20;
  display: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
  will-change: transform, left, top;
}

/* 各裝飾物件的自適應位置設定 */
.deco-item {
  position: absolute;
  height: auto;
}

.coin-1 {
  width: 15%;
  top: 10%;
  left: 4%;
}

.piggy {
  width: 18%;
  top: 50%;
  left: 2%;
}

.coin-2 {
  width: 8%;
  top: 68%;
  left: 70%;
}

.k-line {
  width: 10%;
  top: 12%;
  right: 6%;
}

/* --------------------------------------------------------------------------------*/
/* 康和雙重股期豪禮 區塊樣式 */
.content-bg {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  padding: 90px 20px 80px;
  z-index: 1;
}

.event-section-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 標題區 */
.section-header {
  text-align: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 1000;
  color: #2b0b6e;
  /* 呼應主視覺的深紫主色調 */
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: #555555;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* 活動卡片包裝區 */
.event-cards-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  /* 兩張橫幅之間的間距 */
  align-items: center;
}

.event-card {
  cursor: pointer;
  display: block;
  width: 100%;
  max-width: 900px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(43, 11, 110, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  transition: transform 0.3s ease;
}

/* 滑鼠hover時的微浮動與陰影加深特效 */
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(43, 11, 110, 0.18);
}

.event-card:hover img {
  transform: scale(1.01);
}

/* RWD 手機版微調 */
@media (max-width: 768px) {
  .content-bg {
    padding: 40px 15px 60px;
  }
}

/* 純文字彈跳視窗 (Modal) 樣式 */
.text-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: none; /* 預設隱藏 */
    justify-content: center;
    align-items: center;
    z-index: 999999 !important; /* 💡 拉到絕對最上層，不被任何區塊蓋住 */
    padding: 20px;
    box-sizing: border-box;
}

.text-modal-overlay.show {
    display: flex !important;
}

.text-modal-box {
    position: relative;
    background-color: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 650px;
    padding: 40px 30px 30px 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.text-modal-header-title {
    color: #2b0b6e;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.text-modal-desc {
    color: #333333;
    font-size: 15px;
    line-height: 1.8;
    max-height: 60vh;
    overflow-y: auto;
    text-align: left;
    white-space: pre-line;
}

.text-modal-close {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 32px;
    color: #666666;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    z-index: 10;
}

.text-modal-close:hover {
    color: #2b0b6e;
}

/* --------------------------------------------------------------------------------*/
/* 交易軟體全新三大功能 區塊樣式 */
.features-section {
  position: relative;
  width: 100%;
  background-color: #faf6f0;
  padding: 60px 20px 80px;
  z-index: 1;
}

.features-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 10px;
}

.feature-card {
  display: flex;
  background: #ffffff;
  border-radius: 20px;
  padding: 35px;
  gap: 35px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(43, 11, 110, 0.06);
  border: 1px solid #f0e6dc;
}

.feature-card.reverse {
  flex-direction: row-reverse;
}

.feature-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-tag {
  display: inline-block;
  background-color: #fef2f2;
  color: #d9381e;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  align-self: flex-start;
}

/* 標籤顏色區分 */
.feature-tag.red-tag {
  background-color: #fef2f2;
  color: #d9381e;
}

.feature-tag.orange-tag {
  background-color: #fff7ed;
  color: #c2410c;
}

.feature-heading {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  color: #2b0b6e;
  line-height: 1.4;
}

.feature-desc {
  font-size: clamp(14px, 1.5vw, 16px);
  color: #555555;
  line-height: 1.6;
}

.feature-img-box {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.feature-img-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* 功能一的雙小框 (極速微觀 / 毫秒刷新) */
.feature-sub-boxes {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.sub-box {
  flex: 1;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sub-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.sub-text {
  font-size: 12px;
  color: #64748b;
}

/* --------------------------------------------------------------------------------*/
/* 功能二的提示黃橘色框 (趨勢斜線下單) */
.feature-tip-box {
  background-color: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 8px;
}

.tip-title {
  font-size: 14px;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------------*/
/* 寶箱與黃色文字區塊的組合容器 (實現寶箱壓在黃色區塊左側的效果) */
.treasure-banner-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 20px;
  width: 100%;
}

/* 黃色背景文字區塊 (左側預留內距，讓寶箱可以跨界覆蓋) */
.treasure-text-box {
  flex: 1;
  background-color: #fffbeb;
  border: 1.5px solid #fef3c7;
  border-radius: 14px;
  padding: 16px 20px 16px 100px;
  /* 左側留出 75px 空間給寶箱覆蓋 */
  box-shadow: 0 4px 15px rgba(254, 243, 199, 0.4);
  display: flex;
  align-items: center;
  cursor: pointer;
  /* 整個黃色區塊點擊也能開啟寶箱 */
}

/* 讓文字在右側保持一行顯示 */
.tip-content {
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 700;
  color: #b45309;
  white-space: nowrap;
  /* 確保文字不換行 */
  display: flex;
  align-items: center;
  gap: 8px;
}

.tip-content span {
  color: #f59e0b;
  font-size: 16px;
}

/* --------------------------------------------------------------------------------*/
/* 壓在黃色區塊左側的寶箱按鈕與炫彩金光發光特效 */
.treasure-box-trigger {
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  background: transparent;
  padding: 0;
  border: none;
  transition: transform 0.2s ease;
}

.treasure-box-trigger:hover {
  transform: translateY(-50%) scale(1.06);
}

.treasure-container {
  position: relative;
  width: 82px;
  animation: floatBox 2.5s ease-in-out infinite;
}

.treasure-img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* 寶箱開口處的外層金光大範圍擴散特效 */
.treasure-glow {
  position: absolute;
  top: 26%;
  left: 8%;
  width: 84%;
  height: 38%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 200, 0.95) 0%, rgba(255, 215, 0, 0.85) 40%, rgba(255, 140, 0, 0.5) 70%, rgba(255, 215, 0, 0) 100%);
  border-radius: 50%;
  z-index: 1;
  filter: blur(5px);
  pointer-events: none;
  box-shadow: 0 0 22px 8px rgba(255, 215, 0, 0.85), 0 0 45px 16px rgba(255, 165, 0, 0.5);
  animation: pulseGlow 1.6s ease-in-out infinite;
}

/* 寶箱開口處的內層核心白金爆發光束 */
.treasure-core-beam {
  position: absolute;
  top: 32%;
  left: 20%;
  width: 60%;
  height: 25%;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 230, 120, 0.9) 50%, rgba(255, 215, 0, 0) 80%);
  border-radius: 50%;
  z-index: 3;
  filter: blur(2px);
  pointer-events: none;
  animation: coreFlash 1s ease-in-out infinite alternate;
}

/* 寶箱上下浮動動畫 */
@keyframes floatBox {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* 外層金光呼吸燈動畫 */
@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.92);
    box-shadow: 0 0 15px 5px rgba(255, 215, 0, 0.6), 0 0 30px 10px rgba(255, 165, 0, 0.3);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 0 30px 12px rgba(255, 223, 0, 1), 0 0 60px 22px rgba(255, 165, 0, 0.7);
  }
}

/* 內層核心閃爍動畫 */
@keyframes coreFlash {
  0% {
    transform: scale(0.85);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* 💡 手機版自適應微調 */
@media (max-width: 480px) {
  .treasure-text-box {
    padding: 14px 15px 14px 65px;
  }

  .tip-content {
    font-size: 12px;
  }

  .treasure-container {
    width: 68px;
  }
}

/* --------------------------------------------------------------------------------*/
/* 彈跳視窗 (Modal) 樣式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  /* 預設隱藏 */
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 20px;
  box-sizing: border-box;
}

/* 當加上 .show 時顯示 */
.modal-overlay.show {
  display: flex !important;
}

.modal-content {
  position: relative;
  background-color: #160a2b;
  border: 2px solid #ffd700;
  border-radius: 16px;
  width: 100%;
  max-width: 850px;
  padding: 35px 20px 20px 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
  animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-title {
  color: #ffd700;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 200;
  margin-bottom: 15px;
  text-align: center;
  letter-spacing: 1px;
}

.modal-img-box {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.modal-img-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* 右上方打叉關閉按鈕 */
.close-btn {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 32px;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1;
  z-index: 10;
}

.close-btn:hover {
  color: #ffd700;
  transform: scale(1.15) rotate(90deg);
}

@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------------*/
/* 功能三的勾選清單項目 */
.feature-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.check-item {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

/* --------------------------------------------------------------------------------*/
/* 手機版 RWD 樣式：讓所有 feature-card 在手機上改為上下堆疊（圖片在文字下方） */
@media (max-width: 768px) {

  .feature-card,
  .feature-card.reverse {
    flex-direction: column-reverse !important;
    /* 💡 關鍵：讓圖片（img-box）排在文字（info）下方 */
    align-items: stretch;
    padding: 20px;
    gap: 20px;
  }

  .feature-img-box {
    width: 100%;
    margin-top: 10px;
  }
}
















/* --- 原有 footer 樣式 --- */
footer {
  position: relative;
  background: linear-gradient(135deg, rgba(137, 124, 199, 0.5), rgba(255, 155, 189, 0.5)) !important;
  color: #000000 !important;
  padding: 20px !important;
  text-align: center !important;
  font-size: 12px;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
}

.footer-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 0;
  flex-wrap: wrap;
}

.footer-logo {
  width: 280px;
  height: auto;
  padding-right: 10px;
  max-width: 100%;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-icon {
  width: 34px;
  height: 34px;
  margin-right: 5px;
  vertical-align: middle;
}

/* --- 強制修正：注意事項區塊 --- */
footer .custom-notice-box {
  background-color: rgba(255, 255, 255, 0.15) !important;
  /* 淡淡底色 */
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  /* 白色半透明邊框 */
  border-radius: 12px !important;
  /* 導圓角 */
  padding: 20px !important;
  /* 內距 */
  margin: 25px auto !important;
  /* 上下間距一致 */
  width: 92% !important;
  max-width: 1200px !important;
  box-sizing: border-box !important;
  display: block !important;
  /* 確保是區塊 */
}

footer .notice-title {
  font-size: 24px !important;
  font-weight: medium !important;
  margin-bottom: 10px !important;
  color: #550789 !important;
  display: block !important;
}

footer .notice-content {
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: #000000a1 !important;
  text-align: justify !important;
  font-weight: 200 !important;
}

.highlight-text {
  color: #9200b3 !important;
  font-weight: 200 !important;
}

.warning-text {
  color: #ff0000 !important;
  font-weight: medium !important;
}

/* --- 原有 footer_p 修正 --- */
.footer_p {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 25px !important;
}

/* 響應式優化 */
@media (max-width: 768px) {
  footer .custom-notice-box {
    width: 95% !important;
    padding: 15px !important;
  }
}

/* --------------------------------------------------------------------------------*/
/* 懸停在視窗右邊 */
.fixed-right-container {
  position: fixed;
  right: 15px;
  top: 55%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fixed-right-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 124px;
  /* 💡 稍微加大寬度 */
  height: 52px;
  /* 💡 稍微加大高度 */
  padding: 0 6px;
  background-color: #f25c05;
  color: #ffffff;
  font-size: 13px;
  /* 💡 稍微調大字體 */
  font-weight: 200;
  white-space: nowrap;
  /* 強制單行 */
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(242, 92, 5, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.fixed-right-btn:hover {
  background-color: #e05202;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(242, 92, 5, 0.5);
  color: #ffffff;
}

.fixed-right-btn:active {
  transform: scale(0.97);
}

/* 手機版放大與調整位置 */
@media (max-width: 768px) {
  .fixed-right-container {
    right: 10px !important;
    top: 80% !important;
  }

  .fixed-right-btn {
    width: 108px !important;
    /* 💡 手機版跟著微調放大 */
    height: 46px !important;
    /* 💡 手機版跟著微調放大 */
    font-size: 12px !important;
    /* 💡 手機版字體微調 */
  }
}

/* 懸停在視窗右邊-結束 */




















/*動畫*/
@keyframes scaleAnimation {
  0% {
    transform: scale(1);
    /* 初始大小 */
  }

  50% {
    transform: scale(1.1);
    /* 放大 10% */
  }

  100% {
    transform: scale(1);
    /* 縮回原始大小 */
  }
}

/* 彈跳動畫 */
@keyframes popIn {
  0% {
    transform: translate(-50%, -50%) scale(0);
  }

  60% {
    transform: translate(-50%, -50%) scale(1.1);
  }

  80% {
    transform: translate(-50%, -50%) scale(0.95);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}