/* 全局重置樣式 */
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;
}

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;
}
/* 全局重置樣式 完畢*/




/*SGX背景圖*/
.bg-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-image: url("../img/jpg檔案/SGX-background-image.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/*左上角logo*/
.top-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2000;
  display: block;
}

.top-logo img {
  width: clamp(140px, 15vw, 280px);
  height: auto;
  display: block;
}

/* 手機微調 */
@media (max-width: 600px) {
  .top-logo {
    top: 15px;
    left: 15px;
  }

  .top-logo img {
    width: 90px;
  }
}



/* --- 外層容器設定 --- */
.bg-wrapper {
  position: relative;
  width: 100%;
  height: auto; 
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- 核心：固定比例容器 --- */
.aspect-ratio-box {
  position: relative;
  width: 100%;
  max-width: 1920px;
  aspect-ratio: 16 / 9;
}

/* 期寶行李跟陽傘 */
.floating-img {
  position: absolute;
  top: 60%;
  left: 24%;
  transform: translate(-50%, -50%) scale(0);
  width: 22%;
  height: auto;
  animation: popIn 0.6s ease-out 0.5s forwards;
  z-index: 10;
}

.floating-img-02 {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 27%;
  height: auto;
  animation: popIn 0.6s ease-out 0.9s forwards;
  z-index: 10;
}

/* 累積1500口 */
.floating-group-06 {
  position: absolute;
  top: 24%;
  left: 46.5%;
  transform: translate(-50%, -50%) scale(0);
  width: 36%;
  height: auto;
  animation: popIn 0.6s ease-out 0.9s forwards;
  z-index: 10;
}

.floating-img-06 {
  width: 100%;
  height: auto;
  display: block;
}

/* 就送來回機票 */
.floating-group-07 {
  position: absolute;
  top: 50%;
  left: 80%;
  transform: translate(-50%, -50%) scale(0);
  width: 32%;
  height: auto;
  animation: popIn 0.6s ease-out 0.9s forwards;
  z-index: 10;
}

.floating-img-07 {
  width: 100%;
  height: auto;
  display: block;
}

/* 飛機 */
.plane-container {
  position: absolute;
  top: 14%;
  left: 80%;
  width: 32%;
  transform: translate(-50%, -50%) scale(0);
  animation: popIn 0.6s ease-out 1.2s forwards;
  z-index: 20;
}

.floating-img-04 {
  width: 100%;
  height: auto;
  display: block;
  animation: planeFloat 5s ease-in-out 1.8s infinite;
}

/* --- 特效與動畫 --- */
.spotlight-effect {
  position: absolute;
  pointer-events: none;
  animation: brightPulse 2s ease-in-out infinite alternate;
}

.spotlight-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: white;
  box-shadow:
    0 0 10px 5px rgb(255, 255, 255),
    0 0 25px 15px rgba(255, 255, 255, 0.681),
    0 0 50px 30px rgba(255, 255, 255, 0.647);
}

.spotlight-1 { top: 39%; left: 6%; width: 5px; height: 5px; animation-delay: 0s; z-index: 25; }
.spotlight-2 { top: 73%; left: 40%; width: 5px; height: 5px; animation-delay: 0.5s; z-index: 25; }
.spotlight-3 { top: 30%; left: 96%; width: 5px; height: 5px; animation-delay: 0.8s; z-index: 25; }
.spotlight-4 { top: 50%; left: 21%; width: 4px; height: 4px; animation-delay: 0.2s; z-index: 25; }
.spotlight-5 { top: 75%; left: 75%; width: 3px; height: 3px; animation-delay: 1s; z-index: 25; }

.speed-line {
  position: absolute;
  right: -5%;
  height: 2px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95), transparent);
  filter: blur(1px);
  mix-blend-mode: screen;
  z-index: 30;
}

.line1 { top: 20%; width: 40%; animation: flyLine 1s linear infinite; }
.line2 { top: 45%; width: 30%; animation: flyLine 1.2s linear infinite 0.3s; }
.line3 { top: 70%; width: 50%; animation: flyLine 0.8s linear infinite 0.1s; }

/* Keyframes */
@keyframes brightPulse {
  0%, 100% { transform: scale(0.4); opacity: 0.2; }
  50% { transform: scale(1); opacity: 1; }
}

@keyframes planeFloat {
  0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
  20% { transform: translate(-8px, -6px) rotate(-1.5deg); }
  40% { transform: translate(5px, 4px) rotate(1deg); }
  60% { transform: translate(-4px, -3px) rotate(-0.8deg); }
  80% { transform: translate(6px, 5px) rotate(1.2deg); }
}

@keyframes popIn {
  to { transform: translate(-50%, -50%) scale(1); }
}

@keyframes flyLine {
  0% { transform: translateX(0) rotate(-12deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(-200%) rotate(-12deg); opacity: 0; }
}

@media (max-width: 768px) {
  .aspect-ratio-box {
    aspect-ratio: 4 / 5; 
  }
  
  .floating-group-06 {
    width: 65%;
    top: 19%;
    left: 38%;
  }

  .floating-img {
    width: 35%;
    top: 50%;
    left: 32%;
  }

  .floating-img-02 {
    width: 40%;
    top: 50%;
    left: 70%;
  }

  .floating-group-07 {
    width: 55%;
    top: 73%;
    left: 65%;
  }

  .plane-container {
    width: 40%;
    top: 8%;
    left: 75%;
  }
}






/* --- 機票館整體區塊 --- */
.awards-section {
  display: block;
  width: 100%;
  max-width: 1920px;
  height: 700px;
  margin: 0 auto;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  z-index: 1;

  /* 底層背景圖*/
  background-image: url('../img/jpg檔案/cook022.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;

  image-rendering: -webkit-optimize-contrast;
}

/* --- 上方按鈕區  --- */
.top-space {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  position: relative;
  z-index: 20;
}

.coke-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 500px;
  z-index: 30;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.coke-container:hover {
  transform: scale(1.1);
}

/* --- 平滑輪播區 (400px) --- */
.slider-wrapper {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.slider-track {
  display: flex;
  width: 300%;
  height: 100%;
  animation: smoothSlide 8s infinite;
}

.slide {
  width: calc(100% / 3);
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
}

/* --- 平滑滑動動畫定義 --- */
@keyframes smoothSlide {

  /* 0-35% 停在第一張 */
  0%,
  35% {
    transform: translateX(0);
  }

  /* 45-85% 平滑滑到第二張 */
  45%,
  85% {
    transform: translateX(calc(-100% / 3));
  }

  /* 95-100% 平滑滑回第一張 */
  95%,
  100% {
    transform: translateX(calc(-200% / 3));
  }
}

/* --- 按鈕動畫 --- */
.floating-img-09 {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(0);
  animation: cokePopIn 0.6s ease-out 0.5s forwards, cokeFloat 5s ease-in-out 1.1s infinite;
}

@keyframes cokePopIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

@keyframes cokeFloat {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(-5px, -8px) rotate(-2deg);
  }

  66% {
    transform: translate(5px, 5px) rotate(2deg);
  }
}

/* --- 自適應 --- */
@media (max-width: 768px) {
  .awards-section {
    height: auto;
    min-height: 600px;
  }

  .top-space {
    height: 200px;
  }

  .slider-wrapper {
    height: 400px;
  }

  .slide img {
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .coke-container {
    width: 200px;
  }
}



/* --- 原有 footer 樣式 --- */
footer {
  position: relative;
  background: linear-gradient(to top, #c4a066, #ceb489, #d8c19b) !important;
  color: #ffffff !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: #351900d0 !important;
  display: block !important;
}

footer .notice-content {
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: #401e00a1 !important;
  text-align: justify !important;
  font-weight: medium !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;
  }
}











/* 彈跳動畫 */
@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);
  }
}