/* 全局重置樣式 */
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%;
}

body {
  line-height: 1;
  font-family: 'GenSenRounded', sans-serif;
  overflow-x: hidden;
  min-height: 100%;
  margin: 0;
  padding-top: 72px;
}

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;
}

/* 全局重置樣式 完畢*/


/*----------------------------康和期貨LOGO/累積積點查詢/開戶----------------------------*/
.grey-container {
  /* ...你原有的樣式... */
  background: linear-gradient(to left, #c4a066, #c4a066, #ffffff);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  /* 移除 padding: 4px 0; */
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 將 padding 移到這裡，並設定 transition */
  padding: 16px 36px; 
  position: relative;
  transition: padding 0.3s ease-in-out; /* 關鍵！讓 padding 變化有 0.3 秒的動畫 */
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
  transition: height 0.3s ease-in-out; /* 關鍵！讓 logo 高度變化有 0.3 秒的動畫 */
}

.grey-container.navbar-scrolled .navbar {
  padding: 8px 36px; /* 上下 padding 變小 */
}

.grey-container.navbar-scrolled .logo img {
  height: 30px; /* Logo 高度變小 */
}




@media (max-width: 320px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 10px;
    position: relative;
  }
}

@media (max-width: 500px) {
  .logo img {
    height: 30px;
    width: auto;
    display: block;
  }
}

@media (max-width: 320px) {
  .logo img {
    height: 25px;
    width: auto;
    display: block;
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-links li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 200;
  transition: color 0.2s;
}

.nav-links li a:hover {
  color: #000000;
}

/* menu toggle styling */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  margin-right: 12px;
  z-index: 1000;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: 0.3s;
}

/* 漢堡變 X 動畫 */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 16px 24px;
    z-index: 999;
    width: 100vw;
    box-sizing: border-box;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    margin-bottom: 0px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 22px;
  }

  .nav-links li:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .nav-links li a {
    display: block;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    font-weight: 200;
    word-break: break-word;
  }

  .menu-toggle {
    display: flex;
  }
}

/*----------------------------康和揪你吃美食開跑車區域----------------------------*/
.container01 {
  position: relative;

  max-width: 1920px;
  margin: 0 auto;
}

/* 讓 <picture> 內的 <img> 100% 撐滿容器，確保圖片可適應 */
.container01 picture img {
  width: 100%;
  height: auto;
  display: block;
}

/* 康和揪你吃美食開跑車 */
.container01-2 {
  position: absolute;
  top: 2.2%;
  left: 8%;
  width: 38%;
  height: auto;
  z-index: 30;
  visibility: hidden;
}

/* 活動日期 */
.container01-2-Small {
  position: absolute;
  top: 16%;
  left: 15%;
  width: 27%;
  height: auto;
  visibility: hidden;
  z-index: 20;
}

@keyframes pulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}

.container01-2-Small.animate__animated.animate__bounceIn {
  /* bounceIn 跑 1 秒, 接著 pulse 無限循環 */
  animation: bounceIn 1s both 0.5s, pulse 1.5s ease-in-out 1.5s infinite alternate;
}

.container01-2.animate__animated,
.container01-2-Small.animate__animated {
  visibility: visible;
}

/* 牛排圖 */
.container01 .container01-2-go {
  position: absolute;
  top: 5%;
  left: 90%;
  width: 8.3%;
  z-index: 20;
  height: auto;
  opacity: 0;
  transform: scale(0);
  animation: jackInAndFade 1s ease-in-out 1s forwards, shakeAnimation 1.2s infinite ease-in-out 1.5s;
}

@media (max-width: 540px) {
  .container01 .container01-2-go {
    position: absolute;
    top: 4.5%;
    left: 89%;
    width: 7.5%;
    height: auto;
    opacity: 0;
    transform: scale(0);
    animation: jackInAndFade 1s ease-in-out 1s forwards, shakeAnimation 1.2s infinite ease-in-out 1.5s;
  }
}

/* 進場動畫 */
@keyframes jackInAndFade {
  0% {
    transform: scale(0.3) rotate(-10deg);
    opacity: 0;
  }

  50% {
    transform: scale(1.1) rotate(5deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* 搖晃動畫 */
@keyframes shakeAnimation {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-3deg);
  }

  50% {
    transform: rotate(3deg);
  }

  75% {
    transform: rotate(-3deg);
  }
}

/* 愛快羅密歐的車 */
.container01 .container01-3 {
  display: none;
  opacity: 0;
  position: absolute;
  top: 9.7%;
  left: 40%;
  width: 50%;
  height: auto;
  z-index: 10;
}

@media (max-width: 540px) {
  .container01 .container01-3 {
    display: none;
    opacity: 0;
    position: absolute;
    top: 9.749%;
    left: 45%;
    width: 45%;
    height: auto;
    z-index: 2;
  }
}






/* --- 春節加碼與配件 (你的原始設定) --- */
.spring-festival-group {
  position: absolute;
  top: 78%;
  left: 33%;
  width: 38%;
  height: auto;
  z-index: 10;
  transition: transform 0.5s ease-out;
}

@media (max-width: 540px) {
  .spring-festival-group {
    top: 83%;
    left: 27%;
    width: 48%;
  }
}

.spring-festival-group .container01-4 {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes windChimeSwing {
  from {
    transform: rotate(5deg);
  }

  to {
    transform: rotate(-5deg);
  }
}

.spring-festival-group .container01-5 {
  position: absolute;
  top: 12%;
  right: 7%;
  width: 11%;
  height: auto;
  animation: windChimeSwing 2s ease-in-out infinite alternate;
  transform-origin: top center;
}

/* --- 光芒特效整合修正 --- */

/* 金元寶: 定位現在由這個容器 DIV 控制 */
.spring-festival-group .container01-5-1 {
  position: absolute;
  top: 15%;
  right: 76%;
  width: 18%;
  height: auto;
}

/* 金元寶的圖片本身: 讓它填滿容器 */
.spring-festival-group .container01-5-1 img {
  width: 100%;
  position: relative;
  /* 建立堆疊層級 */
  z-index: 2;
  /* 確保圖片在光芒之上 */
}

/* 金元寶的光芒: 從容器的 ::before 產生 */
.spring-festival-group .container01-5-1::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250%;
  height: 250%;
  background-image: url('../img/png檔案/光芒.png');
  /* <<< 請確認光芒圖片路徑 */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
  /* 確保光芒在圖片後面 */
  animation: rays-shimmer 4s infinite linear;
  filter: brightness(1.5) hue-rotate(30deg) drop-shadow(0 0 10px gold);
}

/* 紅包袋: 定位現在由這個容器 DIV 控制 */
.spring-festival-group .container01-5-2 {
  position: absolute;
  top: 19%;
  right: 17%;
  width: 11%;
  height: auto;
}

/* 紅包袋的圖片本身: 讓它填滿容器 */
.spring-festival-group .container01-5-2 img {
  width: 100%;
  position: relative;
  z-index: 2;
}

/* 紅包袋的光芒: 從容器的 ::before 產生 */
.spring-festival-group .container01-5-2::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250%;
  height: 250%;
  background-image: url('../img/png檔案/光芒.png');
  /* <<< 請確認光芒圖片路徑 */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
  animation: rays-shimmer 4s infinite linear;
  filter: brightness(1.2) hue-rotate(-20deg) saturate(2) drop-shadow(0 0 15px gold);
}

/* 共用的光線旋轉動畫 */
@keyframes rays-shimmer {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.95);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.05);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(0.95);
    opacity: 0.5;
  }
}





/* 點點成金木板 */
.container01 .container01-8 {
  position: absolute;
  top: 30%;
  left: 6.5%;
  width: 90%;
  height: auto;
}

@media (max-width: 540px) {
  .container01 .container01-8 {
    top: 34%;
    left: 4%;
    width: 92%;
  }
}

/* Logo */
.container01 .container01-20 {
  position: absolute;
  top: 1.2%;
  left: 22.7%;
  width: 22%;
  height: auto;
}

/* 2. 定義兩種動畫 */
/* 主要光暈的呼吸/輕微移動動畫 */
/* 2. 定義圓點閃爍的動畫 */
@keyframes brightPulse {

  0%,
  100% {
    transform: scale(0.4);
    opacity: 0.2;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 3. 聚光燈容器 (負責定位和動畫) */
.spotlight-effect {
  position: absolute;
  pointer-events: none;
  animation: brightPulse 2s ease-in-out infinite alternate;
}

/* 4. 使用 ::after 偽元素製作高亮度的圓點光暈 */
.spotlight-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  border-radius: 50%;
  /* 確保是圓形 */

  /* 關鍵！用純白背景加上多層次的 box-shadow 創造高亮效果 */
  background-color: white;
  /* 中心最亮的實心點 */
  box-shadow:
    /* 第1層: 緊貼的白色光暈 */
    0 0 10px 5px rgba(255, 255, 255, 1),
    /* 第2層: 中等的淡黃色光暈 */
    0 0 25px 15px rgba(255, 255, 220, 0.7),
    /* 第3層: 最外圍、最柔和的擴散光暈 */
    0 0 50px 30px rgba(255, 255, 220, 0.4);
}


/* 5. 每個聚光燈的獨立位置和大小 */
/* 這裡的 width/height 是控制中心白點的大小，光暈會向外擴散 */
.spotlight-1 {
  top: 12.5%;
  left: 44%;
  width: 7px;
  /* 調整光點的大小 */
  height: 7px;
  animation-delay: 0s;
}

.spotlight-2 {
  top: 18.5%;
  left: 30%;
  width: 7px;
  height: 7px;
  animation-delay: -0.7s;
}

.spotlight-3 {
  top: 4.6%;
  left: 48%;
  width: 7px;
  height: 7px;
  animation-delay: -1.2s;
}

.spotlight-3-1 {
  top: 2.7%;
  left: 35%;
  width: 7px;
  height: 7px;
  animation-delay: -0.7s;
}

.spotlight-4 {
  top: 1.2%;
  left: 55.3%;
  width: 7px;
  height: 7px;
  animation-delay: -0.4s;
}

.spotlight-5 {
  top: 6%;
  left: 14%;
  width: 7px;
  height: 7px;
  animation-delay: -0.9s;
}

.spotlight-6 {
  top: 13.7%;
  left: 14%;
  width: 7px;
  height: 7px;
  animation-delay: -1.6s;
}

.spotlight-7 {
  top: 12%;
  left: 14%;
  width: 7px;
  height: 7px;
  animation-delay: -1.1s;
}

/*----------------------------活動二----------------------------*/
.container03 {
  position: relative;
  background-color: #fcfaf7;
  width: 100%;
  min-height: 50vh;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: local;
  padding: 40px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}


.container03 img {
  max-width: 80%;
  height: auto;
}

@media (max-width: 840px) {
  .container03 img {
    max-width: 100%;
    height: auto;
  }
}


.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16/9;
  margin: 0 auto;
}


.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/*----------------------------股票期貨五大特色_背景----------------------------*/
.container04 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: 20px;
  background: url('../img/jpg檔案/森林背景圖.jpg') no-repeat center top / cover;
}


/*
@media (max-width: 768px) {
  .container03 {
    padding: 20px 10px;
  }
  
  .video-container {
    max-width: 100%;
  }
}
*/
/*----------------------------股票期貨五大特色_內文----------------------------*/
.container04-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1920px;
  padding-top: 220px;
}

.container04-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1920px;
}

#Futures\ Features_p,
.FuturesDifferences p {
  font-weight: bold;
  color: #956134;
  line-height: 36px;
  text-shadow:
    -1px -1px 0 white,
    1px -1px 0 white,
    -1px 1px 0 white,
    1px 1px 0 white;
  font-size: 1.4em;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

.FuturesFeatures_img,
.FuturesDifferences_img {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 1000px;
}

.FuturesFeatures_img>div {
  flex: 1;
  max-width: 18%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.FuturesFeatures_img img {
  width: 100%;
  max-width: 100px;
  height: auto;
}

.FuturesFeatures_img p {
  margin-top: 20px;
  font-size: 16px;
  color: #ffffff;
  white-space: nowrap;
  word-break: break-word;
  text-align: center;
}

.FuturesDifferences_img {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 1000px;
}

.FuturesDifferences_img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .FuturesFeatures_img {
    flex-wrap: wrap;
    justify-content: center;
  }

  .FuturesFeatures_img>div {
    flex: 1 1 45%;
    max-width: 45%;
    margin-top: 20px;
  }

  .FuturesFeatures_img>div:nth-child(1),
  .FuturesFeatures_img>div:nth-child(2),
  .FuturesFeatures_img>div:nth-child(3) {
    flex: 1 1 30%;
  }

  .FuturesFeatures_img>div:nth-child(4),
  .FuturesFeatures_img>div:nth-child(5) {
    flex: 1 1 45%;
  }

  /* 新增間距，讓兩排之間有點距離 */
  .FuturesFeatures_img>div:nth-child(4),
  .FuturesFeatures_img>div:nth-child(5) {
    margin-top: 40px;
  }
}

@media (max-width: 600px) {
  .FuturesDifferences_img {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    /* 垂直間距 */
  }

  .FuturesDifferences_img>div {
    width: 100%;
    max-width: 90%;
    /* 控制圖片最大寬度 */
    display: flex;
    justify-content: center;
  }

  .FuturesDifferences_img img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
}


/* 康和期貨揪您吃美食、開名車活動注意事項 */
.main-title {
  text-align: center;
  font-size: 32px;
  color: #956134;
  text-shadow:
    -1px -1px 0 white,
    1px -1px 0 white,
    -1px 1px 0 white,
    1px 1px 0 white;
  font-weight: bold;
  margin-top: 5px;
  margin-bottom: 1px;
  line-height: 36px;

  padding: 0 16px;
  box-sizing: border-box;
  max-width: 100%;
  word-break: break-word;
}

/*警語*/
.noteblock {
  text-align: left;
  background-color: #ffefdb;
  color: #464646;
  max-width: 860px;
  width: calc(100% - 40px);
  margin: 24px auto;
  padding: 20px;
  border-radius: 20px;
  border: 2px dashed #956134;
  box-sizing: border-box;
}

.noteblock p {
  margin-bottom: 10px;
}

.noteblock .warning {
  color: #c40000;
}


@media (max-width: 890px) {
  .noteblock {
    width: calc(100% - 20px);
    padding: 30px;

  }
}

@media (max-width: 600px) {
  .noteblock {
    font-size: 18px;
    padding: 30px;
  }
}

/* 表格主體樣式 */
.noteblock table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 15px 0;
}

/* 表格儲存格 (th, td) 的通用樣式 */
.noteblock th,
.noteblock td {
  border: 1px solid #c9a66a;
  padding: 10px 12px;
  text-align: center;
  vertical-align: middle;
  word-wrap: break-word;
  word-break: break-all;
}

/* 表格標頭 (th) 的獨立樣式 */
.noteblock th {
  background-color: #fdf8f0;
  font-weight: bold;
}

/* 關鍵！手動設定每一欄的寬度比例 */
.noteblock th:first-child,
.noteblock td:first-child {
  width: 30%;
}

.noteblock th:last-child,
.noteblock td:last-child {
  width: 70%;
}

/* 讓表格的奇數行有不同底色，增加易讀性 */
.noteblock tbody tr:nth-child(odd) {
  background-color: #fffbf5;
}

/* 表格主體樣式 (維持不變) */
.noteblock table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 15px 0;
  display: block;
  overflow-x: auto;
}

/* 表格儲存格 (th, td) 的通用樣式 (維持不變) */
.noteblock th,
.noteblock td {
  border: 1px solid #c9a66a;
  padding: 10px 12px;
  text-align: center;
  vertical-align: middle;
  word-wrap: break-word;
}

/* 表格標頭 (th) 的獨立樣式 (維持不變) */
.noteblock th {
  background-color: #fdf8f0;
  font-weight: bold;
}

/* 讓表格的奇數行有不同底色 (維持不變) */
.noteblock tbody tr:nth-child(odd) {
  background-color: #fffbf5;
}

/* 針對第一個表格 (2欄) 的寬度設定 */
.noteblock table:not(:has(th:nth-child(3))) td:first-child,
.noteblock table:not(:has(th:nth-child(3))) th:first-child {
  width: 30%;
}

.noteblock table:not(:has(th:nth-child(3))) td:last-child,
.noteblock table:not(:has(th:nth-child(3))) th:last-child {
  width: 70%;
}


/* 針對第二個表格 (3欄) 的寬度設定 */
.noteblock table:has(th:nth-child(3)) td:nth-child(1),
.noteblock table:has(th:nth-child(3)) th:nth-child(1) {
  width: 35%;
}

.noteblock table:has(th:nth-child(3)) td:nth-child(2),
.noteblock table:has(th:nth-child(3)) th:nth-child(2) {
  width: 35%;
}

.noteblock table:has(th:nth-child(3)) td:nth-child(3),
.noteblock table:has(th:nth-child(3)) th:nth-child(3) {
  width: 30%;
}

/*警語結束*/



/*footer*/
footer {
  position: relative;
  background-color: #e60012;
  color: #ffffff;
  padding: 20px;
  text-align: center;
  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-結束*/


/*懸停在視窗右邊*/
.fixed-right-container {
  position: fixed;
  right: 0;
  top: 70%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fixed-right-element {
  display: flex;
  align-items: center;
  background: linear-gradient(to left, #c4a066, #ceb489, #d8c19b);
  color: #ffffff;
  padding: 30px 15px;
  border-radius: 5px 0 0 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  transition: box-shadow 0.3s ease;
  animation: scaleAnimation 1s infinite;
}

.fixed-right-element:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
  /* 當滑鼠滑過時在底部添加陰影 */
  color: #7f4f21;

}

.fixed-right-element .icon {
  margin-right: 8px;
  width: 24px;
  height: 24px;
}

.fixed-right-element .text08 {
  font-size: 16px;
  font-weight: 400;
}

/*懸停在視窗右邊-結束*/



@keyframes rotateAnimation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 無限滾動動畫 */
@keyframes scrollLeft {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes scaleAnimation {
  0% {
    transform: scale(1);
    /* 初始大小 */
  }

  50% {
    transform: scale(1.1);
    /* 放大 10% */
  }

  100% {
    transform: scale(1);
    /* 縮回原始大小 */
  }
}



body {
  padding-top: 0 !important; 
}

.main-content {
  padding-top: 72px; 
  transition: padding-top 0.3s ease-in-out;
}

.grey-container.navbar-scrolled + .main-content {
  padding-top: 50px; 
}


@media (max-width: 700px) {
  .main-content {
    padding-top: 60px; 
  }

  .grey-container.navbar-scrolled + .main-content {
    padding-top: 45px; 
  }
}


@media (max-width: 320px) {
  .main-content {
    padding-top: 56px; 
  }

  /* 2. 設定 320px 滾動後，「縮小」的上方間距 */
  .grey-container.navbar-scrolled + .main-content {
    padding-top: 42px; 
  }

}