* {
  min-height: 0vw;
  /* Safari clamp問題解法 */
}

/*--------------------------------------------------------
# 主色調
-------------------------------------------------------- */
:root {
  scroll-padding-top: 3rem;
  --main-color: #ffb035;
  --second: #02441d;
  --lightY: #ffff00;
  --night: #151515;
}

/*--------------------------------------------------------
# 共同設定
-------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  font-size: 18px;
  line-height: 1.8;
  color: var(--night);
  font-family: 'Roboto', 'Noto Sans TC', Arial, '微軟正黑體', '新細明體', Helvetica, sans-serif;
}

strong {
  font-weight: 800;
}

section {
  padding: 3.5em 0 2em;
}

::selection {
  background-color: #ffdbac;
}

a {
  color: rgb(0, 129, 250);
  transition: all .2s ease;
}

a:hover {
  text-decoration: none;
  color: #0649db;
}

p {
  font-size: 18px;
  margin-bottom: 25px;
}

.main-title,
.second-title {
  font-size: 2.4rem;
  font-weight: 700;
  padding-bottom: 2rem;
  color: var(--second);
  position: relative;
  z-index: 1;
}

.main-title::before,
.second-title::before {
  content: '';
  background-image: url(../img/deco.png);
  position: absolute;
  top: -15px;
  left: -50px;
  width: 100px;
  height: 100px;
  z-index: 0;
}

.second-title::before {
  background-image: url(../img/deco2.png);
  width: 70px;
  height: 70px;
  top: -2px;
  left: -40px;
}

@media (max-width:991px) {
  .main-title {
    font-size: 2rem;
  }

  .second-title::before {
    top: -2px;
    left: -30px;
  }
}
.top-title{
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--second);
  margin-bottom: 2rem;
}
.btn-main {
  text-align: center;
}

.btn-main a {
  position: relative;
  display: inline-block;
  padding: 8px 60px 9px;
  border-radius: 6em;
  border: 2px solid var(--night);
  text-align: center;
  font-weight: 500;
  font-size: 1.8rem;
  margin: 4rem auto;
  color: var(--night);
  letter-spacing: .05em;
  transition: all .2s ease;
}

.btn-main a i {
  color: var(--night);
  display: inline-block;
  transition: all .2s ease;
  transform: translateX(0);
}

.btn-main a:hover {
  background-color: var(--night);
  color: #fff;
}

.btn-main a:hover i {
  color: #fff;
  transform: translateX(10px);
}

/* --------------------------------------------------------
    scrollbar
-------------------------------------------------------- */
::-webkit-scrollbar {
  width: 15px;
  background-color: #E8F3F1;
}

::-webkit-scrollbar-track {
  border-radius: 3px;
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background-color: var(--main-color);
  border: 1px solid #C8FCEA;
}



/*--------------------------------------------------------
# sec-foreword
-------------------------------------------------------- */
.sec-foreword {
  padding-bottom: 50px;
  position: relative;
  overflow: hidden;
  background: url(../img/page2.png) no-repeat 100% fixed;
}

.sec-foreword::before {
  position: absolute;
  bottom: -80px;
  left: 0;
  content: '';
  background: url(../img/loop.png) repeat-x;
  background-size: 1725px 144px;
  width: 100%;
  height: 144px;
  margin: 0 calc(50% - 50vw);
  padding: 0 calc(50vw - 50%);
  overflow-x: hidden;
  z-index: -1;
  animation: loop-slide 14s linear infinite;
  -webkit-animation: loop-slide 14s linear infinite;
}
.sec-foreword p{
  font-size: 21px;
}
.sec-foreword p strong {
  background-size: 100% 80%;
  background-repeat: no-repeat;
  background-image: linear-gradient(to top, #b8dad5 50%, rgba(0, 0, 0, 0) 50.1%);
  background-position: left 0 bottom 0;
  margin: 5px;
}


@keyframes loop-slide {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 1725px 0;
  }
}

/*--------------------------------------------------------
# sec-info
-------------------------------------------------------- */
.sec-info {
  position: relative;
  overflow: hidden;
  background: url(../img/info.jpg) no-repeat 100% fixed;
}

.sec-info .second-title,
.sec-info h4,
.sec-info p {
  color: #fff;
}

.sec-info .second-title::before {
  background-image: url(../img/deco3.png);
}

.sec-info span {
  color: var(--lightY);
}

.info-list h4 {
  position: relative;
}

.info-list h4::before {
  content: '';
  width: 4px;
  height: 30px;
  position: absolute;
  top: 0;
  left: -20px;
  background-color: var(--lightY);
}

.info-list p {
  padding-left: 2rem;
}

@media (max-width:991px) {
  .info-list h4::before {
    left: -15px;
  }
}


/*--------------------------------------------------------
# sec-speaker
-------------------------------------------------------- */
/* .sec-speaker h4 {
  color: var(--main-color);
  padding-top: 10px;
  margin-top: 20px;
  border-top: 2px solid #f3f3f3;
} */
.sec-speaker {
  position: relative;
  overflow: hidden;
}

.sec-speaker::after {
  content: '';
  background: url(../img/loop.png) center right no-repeat;
  background-size: contain;
  position: absolute;
  width: 1725px;
  height: 144px;
  bottom: 60px;
  right: calc(50% + 220px);
  z-index: -1;
  animation: speaker-move 5s linear infinite;
  -webkit-animation: speaker-move 5s linear infinite;
}

@keyframes speaker-move {
  0% {
    transform: translateX(0px);
  }

  50% {
    transform: translateX(-20px);
  }
}

.speaker-box {
  padding: 15px;
}
.speaker-inner {
  position: relative;
  transition: all .2s ease-in-out;
}
.flip-box {
  height: 250px;
  perspective: 1000px;
  position: relative;
  transform-style: preserve-3d;
  overflow: hidden;
}

@media (max-width:1200px) {
  .flip-box {
    height: 208px;
  }
}
@media (max-width:991px) {
  .flip-box {
    height: 198px;
  }
}

@media (max-width:767px) {
  .sec-speaker::after {
    top: 60px;
    right: calc(0% - 850px);
    transform: rotate(90deg);
    animation: none;
    -webkit-animation: none;
  }

  .flip-box {
    height: 230px;
  }
}

@media (max-width:575px) {
  .flip-box {
    height: 440px;
  }
}

.speaker-box .box-front {
  transform: none;
  background-color: #151515;
  position: absolute;
  width: 100%;
  transition: all .6s ease-in-out;
}

.speaker-box .box-layer {
  height: 100%;
  width: 100%;
  position: absolute;
  transition: all .6s ease-in-out;
}

.speaker-box .box-front img {
  background-position: center center;
  background-size: cover;
  width: 100%;
  z-index: -1;
}

.speaker-box:focus-visible .box-front,
.speaker-box:hover .box-front {
  transform: translateX(0) translateY(-100%);
}

.speaker-box .layer-overlay {
  text-align: left;
  align-items: stretch;
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  padding: 35px;
  justify-content: flex-end;
  width: 100%;
}

.box-front .layer-overlay {
  background-image: linear-gradient(0deg, #00000099 0%, #00000000 60%);
  justify-content: flex-end;
  padding: 0 20px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.layer-overlay h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}

.layer-overlay p {
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.speaker-box .box-back {
  background-color: #000;
  display: block;
  transform: translateX(0) translateY(100%);
}

.speaker-box:focus-visible .box-back,
.speaker-box:hover .box-back {
  transform: none;
}

.box-back h3 {
  font-size: 1.5rem;
}

.box-back p {
  font-size: 0.8rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  /*行數*/
}

.box-back img {
  width: 23px;
  height: 23px;
  position: absolute;
  bottom: 25px;
  right: 25px;
}

.keynote h3 {
  position: relative;
}

.keynote h3::after {
  content: 'KEYNOTE';
  position: absolute;
  left: 0;
  top: -34px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 8px;
  line-height: 1;
}
@media (max-width:1200px) {
  .box-back h3 {
    font-size: 1rem;
  }
}
@media (max-width:767px) {
  .box-back h3 {
    font-size: 1.5rem;
  }
}
@media (max-width:575px) {
  .layer-overlay h3 {
    font-size: 2.5rem;
  }
  .layer-overlay p {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
}
.speaker-box a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.badge-keynote {
  display: inline-block;
  color: var(--night);
  border: 1px solid var(--night);
  top: 10px;
  left: 0;
  font-size: 15px;
  padding: 0 8px;
  margin: 10px;
}


.modal-content h2 {
  color: #41493B;
}

.modal-content h5 {
  color: #536858;
  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(--second);
}



/*--------------------------------------------------------
# sec-gift
-------------------------------------------------------- */
.sec-gift {
  background-color: #f3f3f3;
  position: relative;
  overflow: hidden;
}

.sec-gift::after {
  content: '';
  background: url(../img/loop-g.png) center right no-repeat;
  background-size: contain;
  position: absolute;
  width: 2834px;
  height: 236px;
  bottom: 10px;
  right: calc(50% - 1600px);
  transform: rotate(130deg);
  z-index: 0;
}


.gift-box {
  position: relative;
  text-align: center;
  z-index: 99;
}

.gift-box p {
  color: var(--night);
  background-color: var(--main-color);
  padding: 10px 20px;
  font-size: 24px;
  border-radius: 50px;
  text-align: center;
  letter-spacing: 3px;
  display: inline-block;
  transform: translateY(30px);
  margin: 0;
}

.sec-gift span {
  display: inline-block;
  margin: 10px 0 50px;
}

.gift-img img {
  width: 100%;
}

@media (max-width:1200px) {
  .gift-box p {
    transform: translateY(26px);
    padding: 5px 20px;
    font-size: 20px;
  }

  .sec-gift span {
    font-size: 17px;
  }
}

@media (max-width:991px) {
  .gift-box p {
    transform: translateY(22px);
    font-size: 18px;
    padding: 3px 10px;
  }
}

@media (max-width:767px) {
  .gift-box p {
    transform: translateY(26px);
    padding: 5px 20px;
    font-size: 20px;
  }
}

@media (max-width:575px) {
  .gift-box p {
    transform: translateY(30px);
    font-size: 24px;
    padding: 10px 20px;
  }
}



/*--------------------------------------------------------
# sec-partners
-------------------------------------------------------- */
.sec-partner {
  background-color: #fff;
}

.sec-partner .partner-title,
.sec-notice .notice-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--night);
}

.partner-area {
  padding: 15px 0;
}

.sec-partner .level-title {
  text-align: center;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.3rem;
  padding: 30px 0 10px;
}

.partner-img {
  position: relative;
  display: block;
  margin-bottom: 10px;
  transition: all .3s ease;
}

.partner-img img {
  background-color: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
  transition: .3s ease;
}

.partner-img:hover img {
  opacity: 0.8;
}

.partner-img a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/*--------------------------------------------------------
# sec-traffic
-------------------------------------------------------- */
.sec-traffic {
  background-color: #fdfce7;
}

.traffic-info p {
  padding-left: 2rem;
}

/*--------------------------------------------------------
# sec-notice
-------------------------------------------------------- */
.sec-notice li {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--night);
}






/*sidebar*/
#sidebarReg .register {
  color: #fff;
  position: fixed;
  bottom: 12%;
  right: 0;
  writing-mode: vertical-lr;
  font-size: 22px;
  padding: 12px 30px 12px 16px;
  z-index: 99;
  line-height: 1.2;
  letter-spacing: 2px;
  background-color: var(--night);
  border-radius: .25rem 0 0 .25rem;
  box-shadow: 0 5px 10px #1b1b1b20;
}

#sidebarReg .register:hover {
  color: var(--night);
  background-color: var(--lightY);
  border-bottom: 1px solid var(--night);
  border-top: 1px solid var(--night);
  border-left: 1px solid var(--night);
}

#sidebarReg .register span {
  margin-bottom: 10px;
  vertical-align: sub;
  display: inline-block;
  text-align: center;
}

#sidebarReg .register i {
  display: inline-block;
  text-align: center;
  font-size: 24px;
  transform: translateX(1px);
}

@media (max-width:991px) {
  #sidebarReg .register {
    font-size: 17px;
    padding: 10px 20px 10px 14px;
  }

  #sidebarReg .register i {
    font-size: 18px;
    transform: translateX(0);
  }
}

@media (max-width:767px) {
  .main-title::before {
    display: flex;
    flex-direction: column;
    vertical-align: bottom;
    justify-content: center;
    margin: auto;
    padding: 0;
  }

  .main-title::after {
    content: none;
  }

}


/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
#gotopBtn {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Fixed/sticky position */
  bottom: 20px;
  /* Place the button at the bottom of the page */
  right: 30px;
  /* Place the button 30px from the right */
  z-index: 99;
  /* Make sure it does not overlap */
  border: none;
  /* Remove borders */
  outline: none;
  /* Remove outline */
  background-color: var(--main-color);
  color: var(--lightY);
  cursor: pointer;
  /* Add a mouse pointer on hover */
  padding: 12px 20px;
  border-radius: 500px;
  font-size: 20px;
  border: 2px solid var(--lightY);
  transition-duration: .3s;
}

#gotopBtn:hover {
  opacity: 0.8;
}

@media (max-width:991px) {
  #gotopBtn {
    padding: 8px 16px;
  }
}

@media (max-width:767px) {
  #gotopBtn {
    padding: 6px 14px;
    right: 20px;
    bottom: 15px;
  }
}

.clamp-2-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;       /* 限制顯示 2 行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}