@charset "utf-8";
@import url('reset.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;600;700&display=swap');

body{
  background-color: #0c102b;
  font-family: 'Noto Sans TC', sans-serif;
}

.container{
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

/* header */
header{
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
}
#nav{
  width: 100%;
  display: flex;
  justify-content: right;
}
#nav.active{
  background: rgba(0, 0, 0, .9);
}
#nav li{
  margin-right: 30px;
  position: relative;
}
#nav li a{
  color: #fff;
  font-size: 16px;
  padding: 20px 0;
  display: inline-block;
}
#nav li .submenu{
  width: 150px;
  background: rgba(0, 0, 0, .9);
  position: absolute;
  left: 50%;
  top: 100%;
  margin-left: -75px;
  padding: 0 20px;
  box-sizing: border-box;
  transition: all .3s;
  opacity: 0;
  visibility: hidden;
}
#nav li .submenu a{
  text-align: center;
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
}
#nav li .submenu a:last-child{
  border: none;
}
#nav li:hover .submenu{
  opacity: 1;
  visibility: visible;
}

/* logo */
#logo{
  width: 120px;
  height: 24px;
  background: url('../images/logo.gif') center / 100% auto no-repeat;
  text-indent: -9999px;  
  opacity: 0;
  visibility: hidden;
  position: absolute;
  left: 30px;
  top: 50%;
  margin-top: -12px;
  transition: all .3s;
}
#logo.active{
  opacity: 1;
  visibility: visible;
}

/* banner */
#banner{
  position: relative;
}
#banner::after{
  content: "";
  width: 100%;
  padding-bottom: 5%;
  background: url('../images/top-banner-after.png') bottom /100% 100% no-repeat;
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}
#banner .bw-logo{
  width: 70px;
  height: 40px;
  background: url('../images/logo-s.png')top / 100% auto no-repeat;
  text-indent: -9999px;
  display: block;
  position: absolute;
  top: 15px;
  left: 30px;
  z-index: 999;
}
#banner .bw-logo.active{
  z-index: 990;
}
#banner .banner-slide .owl-dots{
  width: 100%;
  display: flex;
  justify-content: right;
  position: absolute;
  left: 0;
  bottom: 8.5%;
  padding-right: 5%;
  box-sizing: border-box;
  z-index: 999;
}
#banner .banner-slide .owl-dots button{
  width: 20px;
  height: 20px;
  background: none;
  border: none;
}
#banner .banner-slide .owl-dots button span{
  width: 10px;
  height: 10px;
  background: #fff;
  display: block;
  margin: 0 auto;
}

#banner .banner-slide .main-banner{
  position: relative;
}
#banner .banner-slide .main-banner .video{
  width: 100%;
  height: auto;
  position: absolute;
  top: -2.2%;
  left: 0;
  z-index: 1;
  opacity: 1;
}
#banner .banner-slide .main-banner h1{
  width: calc(1170 / 1920 * 100%);
  height: calc(285 / 1170 * 100%);
  text-indent: -9999px;
  display: flex;
  flex-direction: row;
  position: absolute;
  top: 25.3%;
  left: 8.15%;
  z-index: 2;
}
#banner .banner-slide .main-banner h1 .t1{
  width: calc(306 / 1170 * 100%);
  height: 75%;
  background: url('../images/text-2.png') top / 100% auto no-repeat;
  display: block;
  position: relative;
}
#banner .banner-slide .main-banner h1 .t1::before{
  content: "";
  width: 100%;
  height: 100%;
  background: url('../images/text-2.gif') center / 100% auto no-repeat;
  display: block;
  position: absolute;
  top: 3px;
  left: 0;
  opacity: .85;
}
#banner .banner-slide .main-banner h1 .t2{
  width: calc(906 / 1170 * 100%);
  height: 65%;
  background: url('../images/text-3.png') top / 100% auto no-repeat;
  display: block;
  position: relative;
  left: -4%;
  top: 40%;
}
#banner .banner-slide .main-banner h1 .t2::before{
  content: "";
  width: 100%;
  height: 100%;
  background: url('../images/text-3.gif') center / 100% auto no-repeat;
  display: block;
  position: absolute;
  top: 2px;
  left: 1px;
  opacity: .85;
}
#banner .banner-slide .main-banner h1::before{
  content: "";
  width: 13%;
  padding-top: 13%;
  background: url('../images/shine.png') center / 100% auto no-repeat;
  display: block;
  position: absolute;
  top: 55.5%;
  left: 73%;
  z-index: 2;
  animation: shine 2s linear infinite alternate;
  animation-delay: 2.5s;
  opacity: 0;
}
#banner .banner-slide .main-banner h1::after{
  content: "";
  width: 8%;
  padding-top: 8%;
  background: url('../images/shine.png') center / 100% auto no-repeat;
  display: block;
  position: absolute;
  top: -11.5%;
  left: 20%;
  z-index: 2;
  animation: shine 2s linear infinite alternate;
  animation-delay: 1.5s;
  opacity: 0;
}
@keyframes shine {
  from{
    transform: scale(1,1);
    opacity: 0;
  }
  to{
    transform: scale(2,2);
    opacity: 1;
  }
}

#banner img{
  width: 100%;
  height: auto;
}
#banner .banner-slide .main-banner .logo{
  width: calc(304 / 1920 * 100vw);
  height: 5.8%;
  text-indent: -9999px;
  display: block;
  position: absolute;
  left: 5.7%;
  bottom: 9.6%;
  opacity: 1;
  transition: all .3s;
  z-index: 9;
}
#banner .banner-slide .main-banner .logo::before{
  content: "";
  width: 100%;
  height: 100%;
  background: url('../images/logo-t.png') top / 100% auto no-repeat;
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
}
#banner .banner-slide .main-banner .logo::after{
  content: "";
  width: 100%;
  height: 100%;
  background: url('../images/logo-loading.gif') top / 100% auto no-repeat;
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
}
#banner .banner-slide .main-banner .logo.hidden{
  opacity: 0;
}


/* main content */
.main{
  background: url('../images/bg.jpg') top / 100% auto repeat-y;
  position: relative;
}
.main .title{
  color: #fff;
  font-size: 32px;
  font-weight: 500;
  line-height: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.main .title::before{
  content: "";
  width: 38px;
  height: 24px;
  background: url('../images/loading.gif') center / 100% auto no-repeat;
  display: block;
  margin-right: 5px;
}
.main .title span{
  margin-bottom: 4px;
}
.main .title .new{
  background: url('../images/arrow-bl.svg') left / 10px 20px no-repeat;
  font-size: 18px;
  padding-left: 15px;
  margin-left: 10px;
}

/* 文章 */
#article .tab{
  display: flex;
  margin-bottom: 10px;
}
#article .tab a{
  width: 120px;
  height: 45px;
  background: #029ba5;
  color: #fff;
  font-size: 14px;
  border: 1px solid #d0f2ff;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  box-shadow: 2px 2px 0px 0px rgba(255, 221, 208, 0);
  transition: all .3s;
}
#article .tab a:hover{
  background: #d65258;
  border-color: #ffddd0;
  box-shadow: 2px 2px 0px 0px rgba(255, 221, 208, 1);
}
.article .list{
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}
.article .list li{
  width: 25%;
  box-sizing: border-box;
  margin: 10px 0;
}
.article .list li a{
  padding: 0 10px;
  display: block;
  position: relative;
}
.article .list li .tag{
  width: 90px;
  height: 25px;
  background: #029ba5;
  color: #fff;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
}
.article .list li .img{
  width: 100%;
  height: 0;
  padding-top: 56.5%;
  position: relative;
  overflow: hidden;
}
.article .list li .img img{
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
}
.article .list li h2{
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: 400;
  line-height: 22px;
  padding: 10px 0;
}
#article .list li:nth-child(1),
#article .list li:nth-child(2){
  width: 50%;
}
#article .list li:nth-child(1) a,
#article .list li:nth-child(2) a{
  background: #fff;
  border: 1px solid #fff;
  padding: 0;
  margin: 0 10px;
}
#article .list li:nth-child(1) h2,
#article .list li:nth-child(2) h2{
  color: #0c102b;
  font-size: 20px;
  font-weight: 500;
  padding: 10px 15px;
}

/* 影片 */
#video{
  margin-top: 30px;
  position: relative;
}
#video .video-slide .owl-nav{
  text-align: right;
}
#video .video-slide .owl-nav button{
  width: 30px;
  height: 30px;
  background-color: inherit;
  background-position: center;
  background-size: 10px auto;
  background-repeat: no-repeat;
  border: none;
}
#video .video-slide .owl-nav .owl-prev{
  background-image: url('../images/arrow-l.svg');
}
#video .video-slide .owl-nav .owl-next{
  background-image: url('../images/arrow-r.svg');
}
#video .video-slide .owl-nav button span{
  opacity: 0;
}
.video .img{
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  position: relative;
  overflow: hidden;
}
.video .img::after{
  content: "";
  width: 45px;
  height: 45px;
  background: url('../images/icon-play.png') center / 100% auto no-repeat;
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  z-index: 1;
}
.video .img img{
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
}
.video h2{
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: 400;
  line-height: 22px;
  padding: 10px 0;
}

.video .video-list{
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}
.video .video-list li{
  width: calc(100% / 3);
  box-sizing: border-box;
  padding: 10px;
}

.reels{
  padding: 30px 0;
}
.reels .list{
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}
.reels .list li{
  width: 25%;
  box-sizing: border-box;
  margin: 10px 0;
}
.reels .list li a{
  padding: 0 10px;
  display: block;
  position: relative;
}
.reels .list li h2{
  height: 58px;
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: 400;
  line-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  box-sizing:border-box;

  padding: 10px 0;
}
.reels .list li .img img{
  width: 100%;
  height: auto;
}

/* bottom banner */
#bt_banner{
  margin-top: 50px;
}
#bt_banner a{
  display: block;
  margin-bottom: 20px;
}
#bt_banner a img{
  width: 100%;
  height: auto;
  display: block;
}

/* 主辦/協辦單位 */
#bottom{
  padding: 50px 0;
}
#bottom .list .item{
  margin-bottom: 20px;
}
#bottom .list .item p{
  color: #fff;
  font-size: 14px;
  text-align: center;
}
#bottom .list .item .logo-img{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
#bottom .list .item .logo-img img{
  max-width: 200px;
  max-height: 45px;
  display: block;
  margin: 10px 5px;
}

/* footer */
footer{
  background: #1240bc;
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 10px 2.5%;
}


/* RWD */
@media screen and (max-width:768px){
  #banner .banner-slide .main-banner h1 .t1::before{
    top: 2px;
  }
  #banner .banner-slide .main-banner h1 .t2::before{
    top: 1px;
    left: 1px;
  }
}
@media screen and (max-width:767px){ 
  #logo{
    width: 100px;
    left: 20px;
  }
  #nav li{
    margin-right: 20px;
  }
  #nav li a{
    font-size: 14px;
    padding: 15px 0;
  }
  #nav li .submenu{
    background: rgba(0, 0, 0, .9);
  }
  #banner .bw-logo{
    width: 50px;
    height: 30px;
    left: 20px;
  }
  #article .list li:nth-child(1),
  #article .list li:nth-child(2),
  .article .list li{
    width: 100%;
  }
  #article .list li:nth-child(1) a,
  #article .list li:nth-child(2) a{
    background: none;
    border: none;
  }
  #article .list li:nth-child(1) h2,
  #article .list li:nth-child(2) h2{
    color: #fff;
    font-size: 16px;
    padding: 10px 0;
  }
  .video .video-list li,
  .reels .list li{
    width: 50%;
  }
}
@media screen and (max-width:480px){
  #logo{
    left: 10px;
  }
  #nav li{
    margin-right: 13px;
  }
  #nav li a{
    font-size: 13px;
  }
  .main .title{
    font-size: 24px;
  }
  #banner .bw-logo{
    width: 40px;
    height: 23px;
    top: 10px;
    left: 13px;
  }
  #banner .banner-slide .main-banner h1 .t1::before{
    top: 1px;
  }
  #banner .banner-slide .main-banner h1 .t2::before{
    top: 1px;
    left: 0;
  }
  #article .tab{
    margin-left: -2.5px;
    margin-right: -2.5px;
  }
  #article .tab a{
    width: 25%;
    height: 35px;
    font-size: 12px;
    margin: 0 2.5px;
  }
  #video::after{
    display: none;
  }
  .video .video-list li{
    width: 100%;
  }
  #bt_banner{
    margin-top: 30px;
  }
  #bottom{
    padding: 30px 0;
  }
  #bottom .list .item{
    justify-content: left;
  }
}
