/* ==========================================================================
   layout.css
   reset, global layout and reusable components
   ========================================================================== */

:root {
  /* 品牌主色調設定，未來換色只需改這裡 */
  --primary-orange: #ff7c50;
  --primary-blue: #0e44bf;
  --primary-cyan: #1cbbc5;
  --primary-green: #03c9a8;
  --bg-dark: #1a2235;
}

/* ==========================================================================
   1. RESET & BASE (基礎標籤重置)
   ========================================================================== */
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: inherit;
  font-size: 100%;
  vertical-align: baseline;
}

html {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

ul.list-style-auto {
  list-style: auto;
  padding-left: 20px;
}

ul.list-style-auto li {
  padding-top: 5px;
  padding-bottom: 5px;
}

ul.list-style-auto li:last-child {
  padding-bottom: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption, th, td {
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}

q, blockquote {
  quotes: none;
}

q:before, q:after, blockquote:before, blockquote:after {
  content: "";
  content: none;
}

a img, img {
  border: none;
  display: block;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section, summary {
  display: block;
}

/* ==========================================================================
   2. GLOBAL ANIMATIONS (全域動畫定義)
   ========================================================================== */
@keyframes bg {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes train {
  0% {
    margin-left: 100%;
  }

  100% {
    margin-left: -466px;
  }
}

@keyframes car-left {
  0% {
    margin-left: -5%;
  }

  100% {
    margin-left: 100%;
  }
}

@keyframes car-right {
  0% {
    margin-left: 100%;
  }

  100% {
    margin-left: -5%;
  }
}

@keyframes airplane {
  0% {
    margin-left: 0%;
    margin-top: 40%;
  }

  100% {
    margin-left: 100%;
    margin-top: 0%;
  }
}

@keyframes camera {
  0% {
    margin-left: 100%;
    margin-top: 0%;
  }

  8% {
    margin-left: 80%;
    margin-top: 5%;
  }

  16% {
    margin-left: 65%;
    margin-top: 3%;
  }

  24% {
    margin-left: 50%;
    margin-top: 7%;
  }

  36% {
    margin-left: 38%;
    margin-top: 5%;
  }

  42% {
    margin-left: 23%;
    margin-top: 2%;
  }

  46% {
    margin-left: 13%;
    margin-top: 5%;
  }

  50% {
    margin-left: 0%;
    margin-top: 8%;
  }

  58% {
    margin-left: 18%;
    margin-top: 7%;
  }

  62% {
    margin-left: 35%;
    margin-top: 4%;
  }

  72% {
    margin-left: 50%;
    margin-top: 2%;
  }

  80% {
    margin-left: 62%;
    margin-top: 5%;
  }

  88% {
    margin-left: 75%;
    margin-top: 2%;
  }

  94% {
    margin-left: 88%;
    margin-top: 4%;
  }

  100% {
    margin-left: 100%;
    margin-top: 0%;
  }
}

@keyframes cloud {
  0%, 100% {
    left: 1%;
  }

  50% {
    left: 2%;
  }
}

@keyframes map-left {
  0%, 100% {
    bottom: 35%;
  }

  50% {
    bottom: 38%;
  }
}

@keyframes map-left-1700 {
  0%, 100% {
    bottom: 32%;
  }

  50% {
    bottom: 35%;
  }
}

@keyframes map-left-1024 {
  0%, 100% {
    bottom: 29%;
  }

  50% {
    bottom: 33%;
  }
}

@keyframes map-right {
  0%, 100% {
    bottom: 32%;
  }

  50% {
    bottom: 35%;
  }
}

@keyframes map-right-1700 {
  0%, 100% {
    bottom: 29%;
  }

  50% {
    bottom: 33%;
  }
}

@keyframes map-right-1024 {
  0%, 100% {
    bottom: 26%;
  }

  50% {
    bottom: 29%;
  }
}

@keyframes car {
  0% {
    margin-left: -443px;
  }

  100% {
    margin-left: 100%;
  }
}

@keyframes earth {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes goon {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-webkit-keyframes iconshake {
  0% {
    margin-top: 40px;
  }

  33% {
    margin-top: 30px;
  }

  66% {
    margin-top: 40px;
  }

  100% {
    margin-top: 30px;
  }
}

@keyframes iconshake {
  0% {
    margin-top: 40px;
  }

  33% {
    margin-top: 30px;
  }

  66% {
    margin-top: 40px;
  }

  100% {
    margin-top: 30px;
  }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes jump {
  0%, 100% {
    transform: translateY(-6px);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes click01 {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }

  20%, 99% {
    opacity: 1;
  }

  30% {
    transform: translateY(0px);
  }

  100% {
    opacity: 0;
  }
}

@keyframes click02 {
  0%, 100% {
    opacity: 0;
  }

  20%, 99% {
    opacity: 1;
  }
}

@keyframes click03 {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  10%, 99% {
    opacity: 1;
  }

  80% {
    transform: scale(1);
  }

  100% {
    opacity: 0;
  }
}

@keyframes blink1 {
  0%, 19% {
    opacity: 0;
  }

  20%, 100% {
    opacity: 1;
  }
}

@keyframes blink2 {
  0%, 39% {
    opacity: 0;
  }

  40%, 100% {
    opacity: 1;
  }
}

@keyframes blink3 {
  0%, 59% {
    opacity: 0;
  }

  60%, 100% {
    opacity: 1;
  }
}

@keyframes blink4 {
  0%, 79% {
    opacity: 0;
  }

  80%, 100% {
    opacity: 1;
  }
}

@keyframes bounceInDown {
  0% {
    opacity: 0;
    transform: translateY(-2000px);
  }

  60% {
    opacity: 1;
    transform: translateY(30px);
  }

  80% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  0% {
    transform: translate3d(-100%, 0, 0);
    visibility: visible;
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInRight {
  0% {
    transform: translate3d(100%, 0, 0);
    visibility: visible;
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* 共用動畫類別 */
.anisec .animate {
  transition: all 0.8s;
  opacity: 0;
}

.anisec .animate.show {
  opacity: 1;
}

.anisec .animate.show.inifite {
  transition: all 1s;
  animation: goon 1.5s infinite;
}

.anisec .animate.fadeInUp.show {
  animation: fadeInUp 0.5s;
}

/* ==========================================================================
   3. BASE LAYOUT & TYPOGRAPHY (字體與基礎排版)
   ========================================================================== */
html, body {
  width: 100%;
  height: 100%;
  min-width: 320px;
}

html *, html *:before, html *:after {
  font-size: 16px;
  color: #000;
  font-family: "Inter", "Noto Sans TC", "Microsoft JhengHei", "Apple LiGothic Medium", "PMingLiU", sans-serif;
  line-height: 1.4;
  box-sizing: border-box;
  /* Global Box Sizing */
}

a {
  text-decoration: none;
  transition: 0.5s;
}

#wrap {
  position: relative;
  transition: 0.5s;
  overflow: hidden;
}

#gotop {
  position: fixed;
  bottom: 75px;
  right: 20px;
  z-index: 99;
  display: none;
}

#gotop:hover {
  opacity: 0.8;
}

#gotop img {
  width: 40px;
}

iframe[name="google_conversion_frame"] {
  display: none;
}

.fancybox-wrap {
  width: 80% !important;
  max-width: 900px;
}

.fancybox-inner {
  width: 100% !important;
}

/* ==========================================================================
   4. NAVIGATION MENU (導覽列與選單)
   ========================================================================== */
#smenu {
  display: block;
  position: fixed;
  z-index: 1000;
  top: 10px;
  right: 10px;
  padding: 14px 10px;
  transform: rotate(0deg);
  transition: 0.5s;
}

#smenu figure {
  background-color: #fff;
  width: 30px;
  height: 2px;
  margin: 7.5px 0;
  display: block;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
}

#smenu:before, #smenu:after {
  background-color: #fff;
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  transition: transform 0.5s;
}

.active #smenu {
  transform: rotate(180deg);
  background-color: #ffffff;
  border-radius: 100px;
}

.active #smenu figure {
  background-color: transparent;
  box-shadow: none;
}

.active #smenu:before {
  background-color: var(--primary-orange);
  box-shadow: none;
  transform: translateY(10px) rotate(45deg);
}

.active #smenu:after {
  background-color: var(--primary-orange);
  box-shadow: none;
  transform: translateY(-10px) rotate(135deg);
}

nav {
  position: fixed;
  z-index: 999;
  background: #1e86c8;
  top: -100%;
  transition: 0.5s;
  width: 100%;
  height: 100%;
  overflow-y: hidden;
}

.active nav {
  top: 0;
}

nav #mainmenu, section>div.con {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

nav #mainmenu:after, section>div.con:after {
  content: " ";
  display: block;
  clear: both;
}

nav #mainmenu {
  padding: 10px;
  max-width: 500px;
  margin: 52px auto 20px auto;
  width: 75%;
}

nav #mainmenu li a {
  display: block;
  font-size: clamp(1.5rem, 3vw, 28px);
  color: #fff;
  position: relative;
  margin: 10px;
  text-align: center;
}

nav #mainmenu li a.active,
nav #mainmenu li:hover a {
  color: #fbfe00;
}

nav ul.social {
  display: table;
  margin: auto;
  width: 120px;
}

nav ul.social li.fbshare, nav ul.social li.line {
  display: inline-block;
  width: 48%;
  text-align: center;
  vertical-align: middle;
}

nav ul.social li.line img {
  margin: 0 auto 0 16px;
}

/* ==========================================================================
   5. COMMON COMPONENTS (共用區塊與組件)
   ========================================================================== */
section {
  position: relative;
  z-index: 1;
  background: #fff;
  overflow: hidden;
}

section>div.con {
  z-index: 1;
  padding-right: 15px;
  padding-left: 15px;
}

h2.title {
  font-size: clamp(2.2rem, 9vw, 56px);
  font-weight: 600;
  text-align: center;
  color: #ffffff;
  position: relative;
  display: table;
  margin: auto;
  font-family: PingFang TC, sans-serif;
  letter-spacing: 2px;
}

h2.title div.year {
  font-size: clamp(3.5rem, 9vw, 90px);
}

h2.title>span {
  display: inline-block;
  font-size: clamp(2rem, 9vw, 64px);
  font-weight: 600;
}

h2.title:after {
  display: block;
  content: "";
  position: absolute;
  width: 60px;
  height: 5px;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

#forum h2 {
  text-align: center;
}

#forum h2.title {
  font-family: PingFang TC, sans-serif;
  font-weight: 500;
  color: #ffffff;
  font-size: clamp(2.2rem, 9vw, 56px);
  line-height: 1.4;
}

#forum .title::after {
  display: none;
}

.btns {
  text-align: center;
}

.btns li {
  margin: 10px;
}

.btns li.icon a:after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url(../images/video-arrow.png) center center no-repeat;
  border-radius: 50%;
  margin-left: 10px;
  margin-top: 5px;
  transition: all 0.5s;
}

.btns li.icon.more {
  margin-top: 2rem;
}

.btns li.icon.more a:after {
  background: url(../images/btn-Ｍore.png) center center no-repeat;
  background-size: contain;
}

.btns a {
  display: block;
  background: #007da4;
  color: #ffffff;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 30px);
  border-radius: 90px;
  width: 250px;
  padding: 15px 0;
  font-weight: 500;
  letter-spacing: 2px;
}

.btns a:hover {
  background: #00617f;
}

.btns.yellowBtn a {
  background-color: var(--primary-orange) !important;
  color: #ffffff !important;
}

.btns.yellowBtn a:hover {
  background-color: var(--primary-blue) !important;
  color: #ffffff !important;
}

.btns.greenBtn a {
  background-color: #a6ff97 !important;
  color: #3e69cf !important;
}

.btns.greenBtn a:hover {
  background-color: #2c51a4 !important;
  color: #a6ff97 !important;
}

.mores.show .btns li.icon a:after {
  transform: rotate(180deg);
}

#survey {
  overflow: hidden;
}

#survey .title b {
  font-weight: 500;
  margin-top: 1.35rem;
}

#survey .btns a {
  color: #ffffff;
  background: #007da4;
}

.active .fadeinup {
  opacity: 0;
}

.active .fadeinup.active {
  animation: fadeInUp 1s forwards;
}

.fadeinup {
  opacity: 0;
}

.boxcon h4.title {
  display: table;
  background-color: var(--primary-orange);
  color: #ffffff;
  text-align: center;
  font-size: clamp(2rem, 4vw, 36px);
  padding: 6px 50px;
  font-weight: 600;
  margin: 20px auto 30px auto;
  border-radius: 50px;
  letter-spacing: 2px;
}

ul.tabs {
  width: 100%;
  display: inline-block;
  margin-bottom: 10px;
  border-bottom: var(--primary-orange) 2px solid;
}

ul.tabs li {
  display: inline-block;
  width: auto !important;
  margin: 0 !important;
}

ul.tabs li.active a {
  background: var(--primary-orange);
  color: #ffffff;
  letter-spacing: 2px;
}

ul.tabs li a {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 8px 20px;
  margin: 0 auto;
  color: var(--primary-orange);
  background-color: #e9f5ff;
  font-size: clamp(1.125rem, 2.5vw, 24px);
  border-radius: 8px 8px 0 0;
  font-weight: 600;
}

.tab_container {
  padding-bottom: 50px;
}

.tab_container .tab_content {
  max-width: 1000px;
  padding: 10px;
}

.sectt {
  font-size: clamp(1.125rem, 2.6vw, 24px);
  font-weight: bold;
  display: table;
  margin: 35px auto 25px auto;
  color: #ffffff;
}

.rwdvideo {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
  border: 13px solid var(--primary-cyan);
}

.rwdvideo iframe, .rwdvideo object, .rwdvideo embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}