/* style.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;

}

html,
body {
  padding: 0;
  height: 100%;
  font-family: "Microsoft JhengHei", "微軟正黑體", arial, sans-serif !important;
  font-size: 16px;
  scroll-behavior: smooth;
  word-wrap: break-word;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1em;
  padding: 1em 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

nav a.active {
  border-bottom: 2px solid #ffd700;
}


img,
svg {
  vertical-align: middle;
  border: none;
  outline: none
}

.container {
  margin: 0 auto;
  max-width: 1380px
}

h1,
h2,
h3,
h4,
h5,
p {
  margin-block-start: 0;
  margin-block-end: 0
}

.page {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
  max-width: 1920px;
  z-index: 1;
  height: auto;
  margin-top: -1px
}

figure {
  margin: 0;
  padding: 0
}


/*-------------------------------*/

.bg-layer {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  width: 1920px;
  height: 100vh;

  background: url('../images/bg.jpg') repeat center top;
  background-size: cover;

  z-index: -1;
}

.viewport-container {
  width: 100vw;
  max-width: 1920px;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

.page-wrapper {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
}

/* 導覽列 */
.navbar {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  color: #000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.navbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  background-color: #fced86;
  height: .5px;
  opacity: 0;
  width: 0;
  transition: .8s ease;
  margin: 0 auto;
}

.navbar.active::after {
  width: 100%;
  opacity: 1;
}


.logo {
  display: block;
  height: 40px;
  margin-right: 10px;
  /* left: 20px; */
}

.logo img {
  height: 100%;
  width: auto;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/*隱藏CLASS*/
.is-hidden {
  display: none !important;
}


/* 電腦版 導覽列 */
.pc-nav {
  display: flex;
  gap: 70px;
  list-style: none;
}

.pc-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: color .3s ease;
}

.pc-nav a:hover {
  color: #fced86;
}

.pc-nav a.active {
  color: #fced86;
}


/*測欄選單樣式*/
.menu-icon {
  position: relative;
  z-index: 900;
  cursor: pointer;
  display: none;
}

.menu-icon img {
  width: 100%;
  max-width: 35px;
  max-height: 35px;
}


.menu-list {
  list-style: none;
}

.menu-list li {
  margin: 0;
  padding: 0 12px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

/* 當側邊選單開啟，隱藏 menu-icon */
.side-menu.active~.navbar .menu-icon {
  display: none;
}


/* 側邊選單區 */
.side-menu {
  position: fixed;
  top: 67px;
  right: 0;
  left: 0;
  color: white;
  transition: color .3s ease-in-out;
  z-index: 999;
  background-color: rgba(0, 0, 0, .4);
  max-height: 0;
  transition: .3s ease;
  overflow: hidden;
}

.side-menu.active {
  max-height: 25vh;
}

/*側欄選單裡面的按鈕樣式*/

.menu-list a {
  position: relative;
  color: white;
  text-decoration: none;
  font-size: 22px;
  padding-left: 22px;
  display: inline-block;
  line-height: 7vh;
  font-weight: bold;
  transition: color .3s ease;
  pointer-events: none;
}


.menu-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 20px;
  background-image: url('../images/menu-icon-off.png');
  background-repeat: no-repeat;
  background-size: contain;
  filter: brightness(0) invert(1);
}

/* 被選中時：黃色 icon + 黃色文字 */
.menu-list a.active {
  color: #fced86;
}

.menu-list a.active::before {
  filter: brightness(0) invert(1) sepia(1) saturate(1000%) hue-rotate(15deg) brightness(1.05);
}


/* 遮罩預設隱藏 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/*-----------------主視覺------------------*/
/*-----------------主視覺------------------*/
.kv {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
}

.kv picture,
.kv img {
  width: 100%;
  display: block;
}

.kv-btn-group {
  display: none;
}

.kv-btn{
  width: 100%;
  max-width: 380px;
  opacity: 0; 
  animation: bounceInUp 0.8s ease forwards;
}

.kv-btn img {
  width: 100%;
  height: auto;
  display: block;
}


@keyframes bounceInUp {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.9);
  }

  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.05);
  }

  80% {
    transform: translateY(5px) scale(0.98);
  }

  100% {
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}

.kv-btn:nth-child(1) {
  animation-delay: 0.3s;
}

.kv-btn:nth-child(2) {
  animation-delay: 0.6s;
}


/* 只在1200px ~ 1920px 出現的QRCODE和GOOGLE表單按鈕 */
.kv-deco {
  display: none;
}

@media (max-width: 2560px) and (min-width: 1201px) {
  .kv-deco {
    display: block;
  }
}


.kv {
  position: relative;
}

.kv-deco {
  position: absolute;
  inset: 0; 
}


/* QR code */
.kv-qrcode {
  position: absolute;
  left: 41%;  
  bottom: 22%; 
  transform: translate(-50%, 50%);
}

.kv-qrcode img {
    width: 100%;
    height: auto;

    animation: qr-breathe 2.8s ease-in-out infinite;
    transform-origin: center;
}

@keyframes qr-breathe {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
    100% {
        transform: scale(1);
    }
}


.kv-google-btn {
  position: absolute;
  left: 60%; 
  bottom: 21%;
  transform: translate(-50%, 50%);
}

.kv-google-btn img {
  width: 370px;

  animation: btn-shake 2.3s infinite;
  transform-origin: center;

  transition: 0.1s ease;
}


@keyframes btn-shake {
  0% { transform: translate(0, 0) rotate(0); }

  5% { transform: translate(-2px, 0) rotate(-2deg); }
  10% { transform: translate(2px, 0) rotate(2deg); }
  15% { transform: translate(-2px, 0) rotate(-2deg); }
  20% { transform: translate(2px, 0) rotate(2deg); }

  /* 停住 */
  25% { transform: translate(0, 0) rotate(0); }
  100% { transform: translate(0, 0) rotate(0); }
}

.kv-google-btn:hover img {
  filter: brightness(1.15);
  transform: scale(1.05);
}

@media (max-width: 1600px) and (min-width: 1500px) {
.kv-qrcode {
  left: 42%;  
  bottom: 21%; 
}

.kv-qrcode img {
  max-width: 190px;
  width: 90%;
}

.kv-google-btn {
  left: 59%; 
  bottom: 19%;
}

.kv-google-btn img {
  width: 320px;
}
}

@media (max-width: 1499px) and (min-width: 1200px) {
.kv-qrcode {
  left: 42%;  
  bottom: 21%; 
}

.kv-qrcode img {
  max-width: 190px;
  width: 90%;
}

.kv-google-btn {
  left: 61%; 
  bottom: 20%;
}

.kv-google-btn img {
  width: 320px;
}



}

/* 🔥 1200以下啟用 */
@media (max-width: 1200px) {
.kv-btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: absolute;
    left: 50%;
    bottom: 20%;
    transform: translateX(-50%);
    width: 100%;
  }

  .kv-btn img {
    max-width: 380px;
    width: 100%;
  }
}

@media (max-width: 1000px) {
.kv-btn-group {
    bottom: 18%;
    width: 36%;
    gap: 20px;
  }
}


@media (max-width: 780px) {
.kv-btn-group {
    bottom: 18%;
    width: 100%;
  }

  .kv-btn {
    max-width: 320px;
    width: 38%;
  }  
}

@media (max-width: 700px) {
  .kv-btn-group {
    gap: 20px;
  }

  .kv-btn {
    max-width: 320px;
    width: 38%;
  }
}

@media (max-width: 500px) {
  .kv-btn-group {
    gap: 30px;
  }

  .kv-btn {
    width: 70%;
  }
}

@media (max-width: 375px) {
  .kv-btn-group {
    gap: 20px;
  }

}



/*-----------------活動辦法------------------*/
/*-----------------活動辦法------------------*/

.section-event {
  width: 90%;
  margin: 0 auto;
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section-event {
    width: 100%;
    padding: 50px 0 90px;
  }
}

@media (max-width: 500px) {
  .section-event {
    padding: 50px 0 90px;
  }
}

@media (max-width: 375px) {
  .section-event {
    padding: 35px 0 60px;
  }
}



.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

.event-card {
  position: relative;
  padding: 100px 80px 80px;
  background-image: url('../images/event-bg.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  /* overflow: visible; */
}

/* 標題-活動辦法*/
.event-title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.event-title img {
  min-width: 549px;
  width: 100%;
  display: block;
}

.event-time {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 5% auto;
  padding: 0 3%;
}

.event-time img {
  width: 100%;
  height: auto;
}

.time-label {
  max-width: 180px;
}

.time-date {
  max-width: 500px;
}


.event-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  flex-direction: row;

}

.event-left {
  flex: 48%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-text {
  font-size: 26px;
  line-height: 1.8;
  font-weight: bold;
}

.event-text .label {
  color: #634dc6;
}

.event-text .text-green {
  color: #0dbd55;
}

.event-btn-inline {
  display: block;
  margin: 10px auto;
  max-width: 280px; /* 比KV小一點比較合理 */
}

.event-btn-inline img {
  width: 100%;
  height: auto;
  display: block;
  transition: 0.3s;
}

.event-btn-inline:hover img {
  transform: scale(1.05);
}


.pc-only {
  display: block;
}

.mb-only {
  display: none;
}

/* 獎品圖 */
.event-gift {
  display: flex;
  justify-content: flex-start
}

.event-gift img {
  width: 100%;
  max-width: 528px;
  min-width: 480px;
  display: block;
}

/* 活動手機示意圖 */
.event-phone {
  display: flex;
  flex: 38%;
  align-self: center;
  justify-content: space-evenly
}

.event-phone img {
  max-width: 400px;
  width: 100%;
  padding: 0 2%;
  display: block;
}

@media (max-width: 1200px) {

  .pc-only {
    display: none;
  }

  .mb-only {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .mb-only img {
    width: 100%;
    height: auto;
    display: block;
  }

}

@media (max-width: 1000px) {
  .container {
    width: 100%;
  }

  .event-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .event-left,
  .event-phone,
  .event-time {
    width: 100%;
    max-width: 600px;
  }

.event-time {
    flex-direction: column;
    gap: 10px;
    margin: 0 auto 2% auto;
  }

  .event-text {
    text-align: left;
  }

  .event-phone {
    justify-content: center;
  }

}

@media (max-width: 768px) {

  .event-card {
    margin: 0 10px 0 16px;
  }

  .event-title img {
    min-width: 500px;
  }

  .event-time img {
    width: 100%;
  }

  .time-label {
    max-width: 120px;
  }

  .time-date {
    max-width: 532px;
  }

  .game-title-bottom img {
    width: 80% !important;
  }

  .event-left {
    width: 100%;
  }

  .event-text {
    font-size: 22px;
    padding: 0 20px;
  }

}

@media (max-width: 639px) {
  .event-title img {
    min-width: 450px;
  }
}

@media (max-width: 586px) {
  .event-title img {
    min-width: 400px;

  }
}

@media (max-width: 510px) {
  .event-title img {
    min-width: 320px;

  }
}

@media (max-width: 480px) {

  .event-card {
    padding: 65px 30px 60px 22px;
  }

  .event-text {
    font-size: 18px;
    padding: 0 10px;
  }

  .event-phone img {
    width: 90%;
  }

}


@media (max-width: 425px) {

  .event-title img {
    min-width: 250px;
  }

}



.event-content-bottom {
  margin-top: -60px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;

  width: 100%;
}


.event-content-bottom img {
  width: 100%;
  height: auto;
  display: block;
}


.game-title img,
.game-screen img,
.game-title-bottom img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}


.game-title {
  margin-bottom: 30px;
}

.game-screen {
  margin-bottom: 30px;
}


@media (max-width: 768px) {

  .event-content-bottom {
    margin-top: 0px;
    margin: 0 auto;
  }


  .game-title {
    margin-bottom: 0px;
  }

  .game-screen {
    margin-bottom: 20%;
  }


  .game-title-bottom {
    position: absolute;
    left: 50%;
    top: 94%;
    transform: translate(-50%, -20%);
    width: 100%;
    max-width: 600px;
    z-index: 5;
  }

}


/*-------------------------------------注意事項----------------------------------------*/
/*-------------------------------------注意事項----------------------------------------*/
.notice-section {
  width: 90%;
  margin: 40px auto 15px;
}

.notice-card {
  padding: 120px 115px 120px;
  background-image: url('../images/notice-bg.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
}

@media screen and (max-width: 490px) {
  
  .notice-card {
    padding: 120px 115px 120px;
    background-image: url('../images/event-bg.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 100%;
  }
}

.notice-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.notice-content ol {
  list-style: decimal;
  padding-left: 20px;
}

.notice-content li {
  font-size: 22px;
  line-height: 1.8;
  font-weight: bold;
  color: #333;
}

.notice-content a {
  color: #634dc6;
  text-decoration: none;
}

.notice-content a:hover {
  color: #f1b542;
}

@media (max-width: 768px) {
  .notice-section {
  width: 100%;
}

  .notice-card {
    padding: 100px 70px 130px;
  }

}

@media (max-width: 480px) {

  .notice-card {
    padding: 80px 70px 100px;
  }

  .notice-content li {
    font-size: 18px;
  }

}

/*-------------------------------------footer----------------------------------------*/
/*-------------------------------------footer----------------------------------------*/
.custom-footer {
  width: 100%;
  max-width: 1920px;
  min-height: 100px;
  background: #f1b542;
  color: #000000;
  padding: 20px 0;
  font-family: sans-serif;
  text-align: center;
  margin: 0 auto;
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}


.footer-logos img {
  height: 40px;
  margin: 0 10px;
  vertical-align: middle;
}

.footer-logos {
  margin-bottom: 12px;
}

.copyright {
  font-size: 13px;
}



@media (min-width: 1921px) {
  body {
    max-width: 1920px;
    margin: 0 auto;
  }
}

@media (max-width: 1200px) {

  .navbar .menu-icon img {
    width: 30px;
    height: 30px;
  }

  .menu-icon {
    display:block;
  }

  /* 隱藏 PC 導覽 */
  .pc-nav {
    display: none;
  }  

}


@media (max-width: 500px) {

  .footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }

  .footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 0 10px;
  }

}