/*====================================
# 共同設定
==================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-size: 18px;
  line-height: 1.8;
  color: #212121;
  font-family: "Roboto", "Noto Sans TC", Arial, "微軟正黑體", "新細明體", Helvetica, sans-serif;
}

:root {
  --main: #489b6e;
  --green: #68adde;
  --green2: #0f9099;
  --green3: #5cc066;
  --yellow: #e1ea87;
  --bg: #e9fef5;
}

::selection {
  color: #ffffff;
  background-color: #f48067;
}

section {
  padding: 4rem 1.5rem;
}

/*====================================
# 中英自動空格
==================================== */
html.han-la hanla:after {
  content: " ";
  display: inline;
  font-family: Arial;
  font-size: 0.8em;
}

html.han-la code hanla,
html.han-la pre hanla,
html.han-la kbd hanla,
html.han-la samp hanla {
  display: none;
}

html.han-la ol > hanla,
html.han-la ul > hanla {
  display: none;
}

/*====================================
# 共用樣式
==================================== */

.main-title {
  position: relative;
  display: inline-block;
  font-size: 2.7rem;
  margin: 1rem 0 3rem;
  color: #212121;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.3rem;
  z-index: 99;
}

.main-title::after {
  position: absolute;
  top: -42px;
  left: 0;
  content: "";
  width: 100%;
  display: block;
  height: 40px;
  background-image: url(../img/titleicon.svg);
  background-position: top;
  background-repeat: no-repeat;
  z-index: 0;
}

@media (max-width: 576px) {
  .main-title {
    font-size: 2rem;
  }
}

.btn-main {
  position: relative;
  font-size: 20px;
  font-weight: 500;
  padding: 1rem 2rem;
  display: block;
  border-radius: 6em;
  transition: all 0.2s;
  color: #fff;
  background-color: #f37420;
  max-width: 300px;
  margin: 2rem auto;
  text-align: center;
  box-shadow: 0 4px 12px #35534350;
}

.btn-main:hover {
  letter-spacing: 3px;
  background-color: hsl(32, 98%, 62%);
  color: hsl(0, 0%, 100%);
  box-shadow: rgb(249 157 27) 0px 7px 29px 0px;
  text-decoration: none;
}

.btn-main:active {
  letter-spacing: 3px;
  background-color: hsl(32, 98%, 62%);
  color: hsl(0, 0%, 100%);
  box-shadow: rgb(249 157 27) 0px 0px 0px 0px;
  transform: translateY(10px);
  transition: 100ms;
}

.btn-back {
  display: inline-block;
  color: #666;
  transition: 0.2s;
  position: relative;
  margin-bottom: 30px;
  margin: 0 10px 30px;
}

.btn-back a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.btn-back:hover {
  color: #64c080;
  text-decoration: none;
}

/*  google的icon */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 24;
  transform: translateY(5px);
}

/* ====================================================
# navbar-index "首頁限定"滾動變化設定
====================================================*/

.navbar-index {
  transition-duration: 1s;
  background-color: transparent;
  box-shadow: none;
}

.navbar-index .main .nav-link {
  padding: 20px 15px;
  color: #fff;
}

.navbar-index .nav-lang.active span {
  color: #fff;
  border-color: #fff;
}

/* .navbar-index .navbar-brand img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(186deg) brightness(102%) contrast(104%);
  } */

.navbar-index .nav-signup {
  background: none;
  border: 1px solid #fff;
}

@media (max-width: 1200px) {
  .navbar-index .main {
    background-color: var(--main);
  }
}

@media (max-width: 991px) {
  .navbar-index {
    background-color: var(--main);
  }
}

/* =======================================
# sec-top
========================================= */
.sec-top {
  position: relative;
  background-color: #cbfbe6;
}

.top-box {
  padding: 3rem 4rem 1rem;
  border-radius: 2rem;
  background-color: hsla(164, 100%, 83%, 1);
  background-image: radial-gradient(at 0% 0%, hsla(167, 62%, 83%, 0.71) 0px, transparent 50%), radial-gradient(at 52% 50%, hsla(60, 39%, 81%, 0.64) 0px, transparent 50%), radial-gradient(at 100% 100%, hsla(200, 96%, 79%, 0.64) 0px, transparent 50%);
  box-shadow: rgba(136, 165, 191, 0.48) 6px 2px 16px 0px, rgba(255, 255, 255, 0.8) -6px -2px 16px 0px;
}

.top-box span {
  color: #f37420;
  font-weight: 600;
}

.top-txt {
  background-color: #e9fbed;
  margin-bottom: 15px;
  padding: 1rem 2.5rem;
  border-radius: 20px;
  margin: 1rem 1rem 2.2rem;
}

.top-txt h4 {
  color: #f48067;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.top-txt p {
  margin: 0;
}

@media (max-width: 576px) {
  .top-box {
    padding: 20px;
  }
  .top-txt {
    padding: 20px 30px;
  }
}

.sec-top2 {
  background: #fff7cc;
  background: -webkit-linear-gradient(54deg, #fff7cc 0%, #d8fce9 100%);
  background: linear-gradient(54deg, #fff7cc 0%, #d8fce9 100%);
}

.sec-top2 h4 {
  color: #007190;
  font-size: 1.8rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.sec-top2 p {
  font-size: 1.2rem;
}

.sec-top2 h5 {
  font-size: 1.4rem;
}

@media (max-width: 576px) {
  .sec-top2 h5 {
    margin-top: 2rem;
  }
}

/* =======================================
# sec-event 活動資訊
========================================= */
.sec-event {
  position: relative;
  background-color: #cbfbe6;
  overflow: hidden;
}

.event-box {
  position: relative;
  padding: 1rem 2rem;
  background-color: #ffffff99;
  border-radius: 30px;
  backdrop-filter: blur(15px);
  -webkit-box-shadow: 0 0 16px #60ced1;
  box-shadow: 0 0 16px #60ced1;
  margin-bottom: 2rem;
  z-index: 10;
}

@media (max-width: 580px) {
  .event-box {
    border-radius: 20px;
    padding: 2rem 2rem 1.2rem;
  }
}

.event-box a {
  text-decoration: none;
  color: #ff4b81;
  transition: 0.2s ease;
  position: relative;
  display: inline-block;
}

.event-box a::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: var(--green);
  height: 2px;
  transition: transform 0.3s ease;
  transform: scaleX(0);
  transform-origin: bottom right;
}

.event-box a:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  max-width: 100%;
}

.track {
  white-space: nowrap;
  will-change: transform;
  animation: marquee 32s linear infinite;
  height: 240px;
  font-size: 150px;
  font-weight: 400;
  color: #ffffff;
  opacity: 0.6;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =======================================
# .sec-sp 講者陣容
========================================= */
.sec-sp {
  background-color: var(--bg);
}

.sec-sp h4,
.sec-sp p {
  text-align: center;
}

.sec-sp h4 {
  color: #3a4b40;
}

.sp-title p {
  font-size: 16px;
  line-height: 1.2;
  color: #467e58;
}

/* spbox */
.spbox * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.35s ease-in-out;
  transition: all 0.35s ease-in-out;
}

.spbox {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid #5b9f8f;
  background-color: #489b6e;
}

.spbox img {
  max-width: 100%;
  vertical-align: top;
}

.spbox a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.spbox:hover img,
.spbox.hover img {
  opacity: 0.4;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

.spbox p {
  position: absolute;
  top: 55%;
  left: 50%;
  font-size: 16px;
  color: #ffffff;
  -webkit-transform: translate(-50%, -50%) scale(0);
  transform: translate(-50%, -50%) scale(0);
  transition: all 300ms 0ms cubic-bezier(0.6, -0.28, 0.735, 0.045);
}

.spbox:hover p,
.spbox.hover p {
  -webkit-transform: translate(-50%, -50%) scale(1);
  transform: translate(-50%, -50%) scale(1);
  transition: all 300ms 100ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content h2 {
  color: #41493b;
}

.modal-content h5 {
  color: #a4ae9d;
  font-weight: 400;
}

.modal-txt p {
  margin-bottom: 0;
  text-align: left;
}

/* ========== 關掉按鈕 ========== */
.modal-header span {
  font-size: 30px;
}

.modal-header span::before {
  content: "CLOSE";
  font-size: 18px;
  position: absolute;
  top: 23px;
  right: 40px;
  font-weight: 600;
  color: var(--green3);
}

/* =======================================
# sec-suit
========================================= */
.sec-suit {
  background-color: var(--green3);
  position: relative;
  background-image: url("../img/bg01.jpg");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.suit-box {
  background-color: #fff;
  margin-bottom: 1rem;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 4px 12px #35534350;
  transition: all 0.3s ease-in;
}

.suit-box:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 16px #35534350;
}

.suit-box p {
  margin-bottom: 0;
}

.sec-suit h5 {
  font-size: 23px;
  line-height: 1.2;
  text-align: center;
  color: #007190;
}

.suit-card {
  color: #ffffff;
  background-color: #007190;
  border-radius: 100px;
  color: #fff;
  padding: 2rem 3rem;
  margin-top: 2rem;
}

.s-title {
  text-align: center;
}

@media (max-width: 576px) {
  .suit-card {
    border-radius: 50px;
    padding: 2rem;
  }
}

/* =======================================
# sec-gift 活動好禮
========================================= */
.sec-gift {
  position: relative;
  z-index: 1;
  background-color: #96d1aa;
  background-image: url(../img/bg-deco.png);
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: contain;
}

.gift-bg {
  border-radius: 30px;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-backdrop-filter: blur(33.6px);
  backdrop-filter: blur(33.6px);
}

.gift-box {
  margin-bottom: 1rem;
}

.gift-img {
  max-width: 300px;
  position: relative;
  overflow: hidden;
  display: block;
  margin: 0 auto;
}

.gift-img img {
  width: 100%;
}

.gift-box h5 {
  text-align: center;
  margin-top: 1.5rem;
  padding: 5px 20px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 1px;
}

.gift-box p {
  margin-top: 30px;
}

.sec-gift span {
  background-size: 100% 80%;
  background-repeat: no-repeat;
  background-image: linear-gradient(to top, #ffdd00 50%, rgba(0, 0, 0, 0) 50.1%);
  background-position: left 0 bottom 0;
}

/* =======================================
# sec-insight 領航觀點
========================================= */
.sec-insight {
  position: relative;
  background-color: var(--bg);
}

.insight-box {
  position: relative;
  background-color: #ffffff;
  border: 1px solid var(--main);
  padding: 1rem;
  min-height: 296px;
  transition: all 0.3s ease-in-out;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
}
.insight-txt a {
  display: none;
}

.insight-box a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.insight-box:hover {
  box-shadow: 5px 5px 0 #e1ea87;
  transform: translateY(-3px);
}

.insight-pic {
  width: 100%;
  overflow: hidden;
  margin-bottom: 15px;
}

.insight-pic img {
  object-fit: cover;
  width: 100%;
  aspect-ratio: 16/9;
}

.insight-title {
  color: #099197;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  position: relative;
  word-wrap: break-word;
}

.insight-txt {
  color: #212121;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  position: relative;
  word-wrap: break-word;
  height: 5rem;
}

.insight-txt p {
  font-size: 16px;
  line-height: 26px;
}

/*====================================
# sec-partners
==================================== */
/* .sec-partner {
  background-color: #eee;
} */

.level-title {
  text-align: center;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.3rem;
  padding: 50px 0 10px;
}

.pt-img img {
  padding: 0 24px;
  transition: 0.3s ease;
}

.pt-img:hover img {
  transform: scale(1.1);
}

.logo-img {
  position: relative;
  display: block;
  transition: all 0.3s;
}

.logo-img a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* =======================================
# sec-year
========================================= */

.sec-year {
  background: #d8fce9;
  background: -webkit-linear-gradient(54deg, #d8fce9 0%, #fff7cc 100%);
  background: linear-gradient(54deg, #d8fce9 0%, #fff7cc 100%);
}

.sec-year h2 {
  letter-spacing: 0.4rem;
}

.sec-year a {
  font-size: 2.5rem;
  text-decoration: none;
  padding: 0.5rem 2rem;
  font-weight: 500;
  color: var(--main);
}

.sec-year a:hover {
  color: var(--green);
}

@media (max-width: 576px) {
  .sec-year a {
    padding: 20px 15px;
  }
}

/*====================================
# footer
==================================== */

footer {
  background-color: #212121;
  padding: 3rem 0;
  font-size: 16px;
  color: #eeebdc;
}

footer .logo {
  padding-bottom: 20px;
}

footer a {
  color: #eeebdc;
}

footer a:hover {
  color: #6dff91;
  text-decoration: none;
}

.footer-bottom {
  font-size: 15px;
  padding-top: 15px;
  border-top: 1px solid #eeebdc;
}

.footer .logo {
  font-size: 28px;
  font-weight: 500;
  color: #ffffff;
  line-height: 30px;
  text-align: left;
  letter-spacing: 0.2rem;
}

.footer .logo small {
  font-size: 20px;
  letter-spacing: 0;
}

.foot-logo-img {
  vertical-align: text-bottom;
  padding-left: 10px;
}

.f-right {
  text-align: right;
}

.link-area a::after {
  content: "|";
  padding: 0 8px;
  color: #eeebdc;
}

.link-area a:last-child:after {
  display: none;
}

@media (max-width: 576px) {
  .footer,
  .f-right {
    text-align: center;
  }

  .footer .logo {
    font-size: 24px;
    justify-content: center;
  }

  .footer .logo small {
    font-size: 16px;
  }

  .link-area {
    font-size: 15px;
    padding: 0;
    margin-bottom: 1.2rem;
  }

  .f-right {
    margin-bottom: 20px;
  }
}

/* =======================================
# Page Top
========================================= */

/* 連結的形狀 */
#page-top a {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #97acc8;
  border-radius: 20px 0 0 0;
  width: 60px;
  height: 60px;
  line-height: 60px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.6rem;
  transition: all 0.3s;
  opacity: 0.5;
}

#page-top a:hover {
  opacity: 0.85;
}

#page-top a::before {
  content: "";
  display: block;
  height: 15px;
  width: 15px;
  border: solid #ffffff;
  border-width: 3px 3px 0 0;
  transform: rotate(-45deg);
}

/* 位置右下跳出 */
#page-top {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 2;
  /*一開始隱藏*/
  opacity: 0;
  transform: translateY(100px);
}

/*　向上動畫設定　*/

#page-top.UpMove {
  animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*　向下動畫設定　*/

#page-top.DownMove {
  animation: DownAnime 0.5s forwards;
}

@keyframes DownAnime {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 1;
    transform: translateY(100px);
  }
}

@media (max-width: 576px) {
  #page-top {
    bottom: 52px;
  }
}

/* =======================================
# sidebar
========================================= */

#sidebarReg .register {
  color: #212121;
  position: fixed;
  bottom: 12%;
  right: 0;
  writing-mode: vertical-lr;
  font-size: 22px;
  padding: 12px 20px 12px 16px;
  z-index: 99;
  line-height: 1.2;
  letter-spacing: 2px;
  border-radius: 10px 0 0 10px;
  color: #fff;
  background-color: #ff854d;
  box-shadow: 0 5px 10px #1b1b1b20;
}

#sidebarReg .register img {
  width: 10px;
  transform: translateX(-2px);
}

#sidebarReg .register:hover {
  color: #212121;
  background-color: #ffdd00;
}

#sidebarReg .register i {
  font-size: 20px;
  transform: translateX(2px);
}

@media (max-width: 576px) {
  #sidebarReg .register {
    writing-mode: initial;
    bottom: 0;
    left: 0;
    border-radius: 0;
  }
}
