@charset "UTF-8";

/* theme deep blue #11377e */
/* montain back #24264c */
/* high light yellow #ffde4d */
/* pink link #ff61dd */
/* footer bg blue #2286C2 */



/* layout */
html {
  scroll-behavior: smooth;
}

body {
  font-size: 18px;
  line-height: 1.8em;
  color: #333333;
  font-family: 'Noto Sans TC', 'Noto Sans', 'Roboto', Arial, "Microsoft JhengHei", '新細明體', Helvetica, sans-serif;
  font-weight: 400;
}

::selection {
  background-color: #9BFDEA;
  color: #121212;
}

h1,
h2 {
  font-weight: 600;
}

h4,
h5 {
  font-weight: 400;
}

strong {
  font-weight: 700;
}

p {
  line-height: 1.6;
  letter-spacing: 0.05rem;
}

p:last-child {
  margin-bottom: 0px;
}


a {
  transition: all 0.3s ease;
  color: var(--theme500);
}

a:focus,
a:hover {
  color: var(--theme700);
  text-decoration: none;
}

section {
  position: relative;
  padding: 4rem 1.5rem;
}

/* layout */




/* 共用 utilities */

.gotop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  line-height: 45px;
  text-align: center;
  display: block;
  background-color: #ffffff;
  border: 2px solid;
  border-radius: 50%;
  opacity: 0.6;
  z-index: 999;
  transition: all 0.3s ease;
}

.gotop:hover {
  opacity: 1;
}

.btn-mian {
  margin-top: 2.5rem;
  background-image: linear-gradient(144deg, #874FBC, #81A3FF 50%, #6DFACD);
  border: 0;
  border-radius: 25px;
  box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
  box-sizing: border-box;
  color: #FFFFFF;
  display: flex;
  justify-content: center;
  line-height: 2rem;
  font-size: 25px;
  padding: 3px;
  transition: all .3s;
}

.btn-mian:active,
.btn-mian:hover {
  outline: 0;
}

.btn-mian span {
  text-align: center;
  background-color: rgb(5, 6, 45);
  padding: 16px 24px;
  border-radius: 25px;
  width: 100%;
  height: 100%;
  transition: 300ms;
}

.btn-mian:hover span {
  background: none;
}

.btn-mian:active {
  transform: scale(0.9);
}

/* 說明 */
.sec_info {
  background-color: #efefef;
}

.sec_info h4 label {
  font-weight: 600;
}

.highlight {
  color: #FA7F59;
}

.badge-info{
  background-color: #FF794F;
  font-size: 18px;
  letter-spacing: 0.05rem;
  padding: 5px 10px;
  border-radius: 20px;
  margin-right: 5px;
}

.subtitle h4 {
  display: inline-block;
  color: #fff;
  background-color: #23a3f0;
  padding: 5px 10px;
  margin-top: 20px;
}

.heading-info {
  position: relative;
  padding: .5em .7em .4em;
  border-bottom: 3px solid #23a3f0;
  color: #23a3f0;
  margin-bottom: 2rem;
}

.heading-info::before,
.heading-info::after {
  position: absolute;
  left: 30px;
  bottom: -15px;
  width: 30px;
  height: 15px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: '';
}

.heading-info::before {
  background-color: #23a3f0;
}

.heading-info::after {
  bottom: -11px;
  background-color: #efefef;
}

.info-date {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ec3563;
}

.info-img {
  margin-right: 15px;
  width: 80px;
  height: 80px;
}

.info-txt strong{
  font-size: 20px;
}



/*  */
.slogan {
  background-color: #30d6ff;
  background: linear-gradient(90deg, #0328CB 0%, #2b95ff 50%,#0328CB 100%);
  background-size: 1000% 100%;
  color: #FFE98F;
  text-align: center;
  padding: 1rem;
  animation: background 180s linear infinite;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.28) 0px 8px 16px -8px;
}
.slogan h1{
  text-shadow: 0 5px 5px #25278b50;
  display: inline-block;
  padding: 0.8rem 3rem;
}

@keyframes background {
  0%{background-position:0% 50%}
  100%{background-position:1000% 50%}
}


/* kv */
.kv img {
  width: 100%;
}

@media (max-width: 1500px) {
  .kv {
    margin-top: 60px;
  }
}

@media (max-width: 991px) {
  .kv {
    margin-top: 0;
  }
}


/* sec_foreword */
.sec_foreword p{
  text-align: center;
  line-height: 1.6;
}
.sec_foreword span{
  color: #0e50e2;
  font-size: 22px;
  font-weight: 600;
}
.tabs {
  float: none;
  list-style: none;
  position: relative;
  text-align: left;
  color: #fff;
  margin: 1rem 0 26rem;
}

.tabs li {
  float: left;
  display: block;
}

.tabs input[type="radio"] {
  position: absolute;
  top: 0;
  left: -9999px;
}

.tabs label {
  display: block;
  margin-right: 6px;
  padding: 14px 21px;
  border-radius: 10px 10px 0 0;
  font-size: 20px;
  font-weight: normal;
  text-transform: uppercase;
  background: #30d6ff;
  cursor: pointer;
  position: relative;
  top: 4px;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.tabs label:hover {
  background: #90b4ce;
}

.tabs .tab-content {
  z-index: 2;
  display: none;
  overflow: hidden;
  width: 100%;
  font-size: 17px;
  line-height: 25px;
  padding: 25px;
  position: absolute;
  top: 62px;
  left: 0;
  background: #0f56d9;
  border-radius: 0 10px 10px 10px;
}

.tabs [id^="tab"]:checked+label {
  top: 0;
  padding-top: 17px;
  background: #0f56d9;
  color: #ffd803;
}

.tabs [id^="tab"]:checked~[id^="tab-content"] {
  display: block;
}

.tabs strong {
  font-size: 22px;
}

@media (max-width:1200px) {
  .tabs {
    margin-bottom: 35rem;
  }
}

@media (max-width:550px) {
  .tabs {
    margin-bottom: 40rem;
  }
}


/* 主題 */
.gift-box strong{
  font-size: 24px;
  vertical-align: middle;
}
.gift-box .gift-dec{
  background-color: #fff;
  padding: 15px;
  margin: 10px;
  border-radius: 10px;
}

.section-topic {
  background-image: url(../img/bg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

.topic-group {
  padding: 20px;
  background-color: rgba(247, 248, 255, 1);
  border-radius: 10px;
  border: 2px #ffe98f solid;
}

.topic-link {
  text-align: left;
}

.topic-link .img {
  max-width: 50px;
}

.topic-name {
  padding: 10px;
  display: inline-block;
  font-size: 20px;
  text-align: left;
  font-weight: 600;
}

.topic-txt {
  font-size: 16px;
  text-align: justify;
  padding: 18px;
  /* border-top: 1px dashed #2cb67d; */
  color: #333;
  background-color: #ffffff;
  margin: 1rem 0 2.5rem;
}

.partner-txt {
  font-size: 15px;
  text-align: right;
  color: #999;
}

.partner-txt img {
  width: 160px;
}

/* 解鎖成就 */
.sec_ironman {
  background-color: #def3ff;
}

.sec_ironman h3 {
  color: #0f56d9;
  border-bottom: 3px solid #30d6ff;
  display: inline-block;
  padding: 5px;
  margin: 1rem 0 2rem;
}

.icon-img {
  width: 60px;
}

.book-item {
  position: relative;
  padding: 10px;
  overflow: hidden;
}

.book-item a {
  color: #555;
}

.book-item a:hover,
.book-item a:focus {
  color: #0065b0;
}

.book-imgbox {
  text-align: center;
  border: 1px solid #e5e5e5;
  background-color: #fff;
  padding: 10px;
  transform: scale(1);
}

.book-imgbox img {
  width: 100%;
  max-width: 150px;
  transition: 0.3s ease;
}

.book-imgbox:hover img,
.book-imgbox:focus img {
  transform: scale(1.1);
}

.book-txtbox .badge-award {
  padding: 0;
  margin: 0.3rem 0;
  font-size: 16px;
}

.book-head {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.book-author {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #555;
  line-height: 1.3;
  word-break: break-word;
}

.book-item .badge-type {
  background-color: #0065b0;
  color: #fff;
  padding: 2px 10px 3px;
  text-align: center;
  font-weight: 300;
  position: absolute;
  top: 20px;
}

.book-txtbox .badge-award {
  padding: 0;
  margin: 0.3rem 0;
  font-size: 16px;
}

.badge-award img {
  width: 24px;
  vertical-align: bottom;
}

@media (max-width: 767px) {

  .book-item {
    height: 400px;
  }
}

.card-webinar,
.card-webinar .card-content {
  background-color: #ffffff;
}

.card-webinar {
  border-top: 4px solid #74d3ff !important;
  margin: 10px 0px;
  transition: 0.3s;
}

.card-webinar.card-webinar:hover {
  transform: translateY(-2px);
}

.card-webinar .card-thumbnail figure {
  height: 0;
  position: relative;
  overflow: hidden;
  padding-bottom: calc(56.25% / 1);
  background: #000000;
}

.card-webinar .card {
  color: #333;
  border: 1px solid #1b283680;
  overflow: hidden;
  transform: translateY(0px);
  box-shadow: 0 0 0 transparent;
  transition: transform .2s ease-in-out;
  will-change: transform, box-shadow;
}

.card-content {
  padding: 15px;
  background-color: #fff;
}

.card-title {
  font-size: 17px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  position: relative;
  word-wrap: break-word;
  height: 2.5rem;
  /* white-space: nowrap; */
  transition: transform .2s ease-in-out;
  margin-top: 0rem;
}

time.timebox {
  color: #004b9e;
  letter-spacing: 0.2px;
  font-size: 0px;
}

.timebox .year,
.timebox .date,
.timebox .during {
  font-size: 0.9rem;
}

.status .st-unstarted {
  color: #58abff;
}

.card-webinar .badge {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  background-color: #008fd1;
}

.btn-more {
  color: #fff;
  font-size: 22px;
  background-color: #1899D6;
  padding: 0.7rem 2rem;
  border-radius: 25px;
  letter-spacing: 0.02rem;
  margin: 20px 0;
}

.btn-more:hover {
  color: #fff;
  background-color: #004b9e;
  letter-spacing: 0.2rem;
}


/* 鐵人賽回顧 */
.section-calc {
  color: #000;
  background-color: #def3ff;
  background-image: url(../img/bg2.png);
  background-repeat: no-repeat;
  background-position: bottom;
  overflow: hidden;
}

.calc-txtbox .title-calc {
  font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 60px;
  text-align: center;
}

.calc-txtbox .title-calc small {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #ffde4d;
  font-size: 42px;
  font-weight: 800;
  -webkit-text-stroke: 1px #000;
  text-shadow: 2px 2px 0px #000;
  position: relative;
  margin-left: 1rem;
  z-index: 1;
}

.calc-txtbox .title-calc small::before {
  content: '';
  background-color: #000;
  width: 110%;
  height: 10px;
  border-radius: 10px;
  position: absolute;
  bottom: 0px;
  left: -5%;
  z-index: -1;
}

.calc-numbox {
  text-align: center;
  padding: 20px;
}

.calc-num-badge {
  background-color: #000;
  color: #fff;
  padding: 3px 20px 2px;
  display: inline-block;
}

.calc-num {
  color: #ffde4d;
  font-size: 42px;
  font-family: 'Noto Sans', Arial;
  font-weight: 900;
  margin-top: 15px;
  -webkit-text-stroke: 2px #000;
}

.calc-num small {
  color: #000;
  letter-spacing: -2px;
  font-size: 50%;
  -webkit-text-stroke-width: 0px;
}

@media (max-width:767px) {
  .calc-txtbox .title-calc {
    font-size: 50px;
  }

  .calc-txtbox .title-calc small {
    font-size: 38px;
    margin-left: 0.5rem
  }
}

.carousel-hitory-box {
  position: relative;
}

.carousel-hitory {
  padding-bottom: 50px;
}

.carousel-hitory .swiper-slide img {
  width: 100%;
}


.carousel-hitory .swiper-pagination .swiper-pagination-bullet {
  width: 15px;
  height: 15px;
}

/* 單位 */
.section-partners {
  padding: 5% 0 8%;
}

.title-partners {
  margin: 20px 0;
}

.subtitle-partners {
  margin: 20px 0;
}

.subtitle-partners::before {
  content: '';
  background-color: #30d6ff;
  width: 10px;
  height: 10px;
  display: inline-block;
  vertical-align: middle;
}

.partners-box {
  background-color: #fff;
  padding: 10px 20px;
}

.partners-box img {
  width: 100%;
}

/* 右下角得獎頁面 */
.top-up {
    position: fixed; /* 固定位置 */
    bottom: 20px; /* 距離下方 20px */
    right: 20px; /* 距離右側 20px */
    z-index: 9999; /* 確保在最上層 */
}

.top-up img {
  max-width: 200px; /* 設定圖片最大寬度（可依需求調整） */
  cursor: pointer; /* 滑鼠移過時顯示為點擊狀態 */
}