﻿.cms-main-content{background-image: url(../images/index/index-bg-2.svg), linear-gradient(to bottom, #fff 0%, #eae8e8 10%,  #fff 100%); background-position:right -10%,left top; background-size: 100% auto ,100% 50% ; background-repeat: no-repeat,no-repeat;}
 
.new-tag { display: flex; flex-wrap: wrap; flex-direction: row; width: 100%; transition: all 0.3s cubic-bezier(0.37, 0.75, 0.61, 1.05) 0s; overflow: hidden; text-transform: capitalize;  word-break: keep-all; z-index: 9;   }
.new-tag-wrap { display: flex; flex-wrap: wrap; justify-content:center;  flex-direction: row; width: 100%; margin: 20px auto; }
.new-tag-wrap a.new-tag-tcategory{ width:auto;  padding:5px 20px; margin: 2px 8px; font-size:1.063rem; font-weight: 400; text-align: center;border-radius:30px; }
/*.new-tag-tcategory{ width: auto;max-width: 100%; font-size: 14px; font-weight: 400; line-height: 1.57; letter-spacing: normal; position: relative; padding:2px 8px; margin: 2px;  border-radius:5px; color: #fff; background-color:transparent; -webkit-transition: background-color .2s,color .2s,border-color .2s; transition: background-color .2s,color .2s,border-color .2s;}
.new-tag-tcategory:hover{ color: #fff; background:#42acdc;  }
#cms-main a.new-tag-tcategory{ color:#fff;  }
#cms-main a.new-tag-tcategory:hover{ color: #fff; box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
*/.new-tag-01{ background:#184598;}
.new-tag-02{background:#0582cc;}
.new-tag-03{background:#629e9e;}


/*-------------------*/
/***** 最新消息 *****/
/*------------------*/
.cms-news-wrap{ width: 100%; max-width: 1200px; padding:50px 0px; margin:0px auto; display: flex; flex-wrap: wrap; align-content: flex-start; align-items: flex-start; position: relative; z-index: 1;  }
.cms-news-box-left{width: 100%; max-width: 1200px; margin: 40px auto; padding: 20px; display: flex; flex-wrap: wrap; justify-content: center;  }
.cms-news-box-right{width:100%; max-width: 1200px; margin: 40px auto; display: flex; flex-wrap: wrap; justify-content: center;}


@media (max-width: 798px) {
.cms-news-box-left{  margin: 0px auto; padding: 20px; }
.cms-news-box-right{ margin: 0px auto; padding:0px;  }

}


 /*-------------------*/
/***** 消息一筆 *****/
/*------------------*/
.cms-news-top{width: 100%; height: auto; margin:0 0px 30px 0px; padding:0px; display: flex; flex-wrap: wrap; align-content: flex-start; align-items: flex-start; position: relative; background: #f7f7f7;  }
.cms-news-top figure { width:30%;display: flex; padding:0px; background: #fff;  overflow: hidden; -webkit-transition: -webkit-transform .2s;  transition: -webkit-transform .2s; transition: transform .2s; transition: transform .2s, -webkit-transform .2s }
.cms-news-top figure img{ width: 100%; padding:0px; background: #fff;  -webkit-transition: -webkit-transform .2s;  transition: -webkit-transform .2s; transition: transform .2s; transition: transform .2s, -webkit-transform .2s}
.cms-news-top figure:hover img{  -webkit-transform: scale(1.05); transform: scale(1.05);  opacity: .75;}
 .cms-news-top .cms-news-top-inner { width:70%; height: auto; margin:0 auto; padding:0px 30px;  display: flex; flex-wrap: wrap;  flex-direction: column;   }
.cms-news-top .cms-news-top-inner .cms-news-top-inner-box{ width: 100%;  height: auto;  padding:30px 0px;  }
 .cms-news-top .cms-news-top-inner .cms-news-top-date{ width: 100%; height:30px;  padding:30px 0px; display: flex; flex-wrap: wrap; }
 #cms-main .cms-news-top .cms-news-top-inner a .cms-news-top-inner-box h3 { width: 100%; max-width: 80%; font-size: 1.125rem; line-height: 1.875rem;  color:#000;overflow: hidden;  text-overflow: ellipsis;  display: -webkit-box;  -webkit-line-clamp: 6;  -webkit-box-orient: vertical;  }
.cms-news-top .cms-news-top-inner .cms-date{ width: 50%; display: flex;   font-size: 0.875rem; font-weight:700;color:#4b4948;  }
.cms-news-top .cms-news-top-inner .new-tag {width: 50%; height: 30px; display: flex; justify-content: flex-end; }
 #cms-main .cms-news-top .cms-news-top-inner a h3:hover{ color:#e60044;}

@media (max-width: 798px) {
#cms-main .cms-news-top .cms-news-top-inner a .cms-news-top-inner-box h3 { width: 100%;max-width: 100%;font-size: 1rem;  overflow: hidden; text-overflow: ellipsis;  display: -webkit-box;  -webkit-line-clamp: 6; -webkit-box-orient: vertical; word-break: normal;}   
}

 
.new-tag { display: flex; flex-wrap: wrap; flex-direction: row; width: 100%; transition: all 0.3s cubic-bezier(0.37, 0.75, 0.61, 1.05) 0s; overflow: hidden; text-transform: capitalize;  word-break: keep-all;   z-index: 9;   }
#cms-main a.new-tag-tcategory{ color: #669999;  }
.new-tag-tcategory{ width: auto;max-width: 100%; height: auto; font-size: 14px; line-height: 1.5rem; font-weight: 400; letter-spacing: normal; position: relative; padding:0px 8px; margin: 2px; border: solid 1px #669999; border-radius:5px; color:#669999;  -webkit-transition: background-color .2s,color .2s,border-color .2s; transition: background-color .2s,color .2s,border-color .2s;}
/*.new-tag-tcategory:hover{ color: #fff; background:#e60044;  }
#cms-main a.new-tag-tcategory:hover{ color: #fff;  }*/

.cms-main-news-list .cms-news-top-date{ width:20%; height:auto;  padding:10px 0px; display: flex; flex-wrap: wrap; }
.cms-main-news-list .cms-date{  width: auto;   padding: 0px;  height: 40px; color:#4e4c4b; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack:flex-start;  -ms-flex-pack: flex-start;justify-content: flex-start; -webkit-box-align:flex-start; -ms-flex-align: flex-start; align-items: flex-start; opacity: 1; z-index: 9; position: relative;}
.cms-main-news-list .new-tag {width: 50%; height: 30px; display: flex; justify-content: center; }
.cms-main-news-list {width: 100%; padding:10px;  display: flex;  flex-wrap: wrap; position: relative; margin:0px auto;  z-index: 1; }
.cms-main-news-list li{ width: 100%; padding: 0px; list-style: none; margin:0px 30px ; box-sizing: border-box; opacity: 1; transition: all 0.5s ease 0s; background: #fff;  border-bottom: solid 1px #eaeef0}
/*.cms-main-news-list li:hover{ box-shadow: 1px -5px 10px rgba(0,0,0,.1) }*/
.cms-main-news-list figure img { display: block; width: 70%; max-width:100%; height: auto; -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: all 0.3s linear; position: relative;  }
.cms-main-news-list figcaption { box-sizing: border-box; color: #4c4c4c; font-size: 14px; font-weight: 400; line-height: 1.8rem; letter-spacing: 0.5px; padding:0px 20px;}
.cms-main-news-list figcaption .wrap { display: -ms-flexbox; display: flex; flex-wrap: wrap;   width: 100%; margin: 0;   }
.cms-main-news-list figcaption .news-box {position: relative;  width: calc(100% - 30%); box-sizing: border-box;}
.cms-main-news-list figcaption h3 {width: 100%; margin-bottom: 10px; }
.cms-main-news-list figcaption h3 a { position: relative; font-size:1.063rem; line-height: 2rem; font-weight:400; color:#4b4948!important; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word;}
.cms-main-news-list figcaption p { width: 100%; height: 52px; font-size: 1rem; line-height: 1.5rem; color:#404040; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word;}
 

 @media (max-width: 1199.98px) {
.cms-main-news-list li{  margin:0px 10px; }
 }
@media (max-width: 798px) {
.cms-news-wrap{ background-size:50% auto,100% auto ,100% 100%; }
.cms-main-news-list {  padding:10px; margin:0px auto 30px auto;   }
  .cms-main-news-list .new-tag {width: auto;}   
  .cms-main-news-list .cms-news-top-date{ width:100%; justify-content: space-between;   }
  .cms-main-news-list figcaption .news-box { width: 100%;  }
.cms-main-news-list figcaption h3 {  margin: 0px; }
}
/* Underline From Left */
a.hvr-underline-from-left {color: #006f8a;}
.hvr-underline-from-left { display: inline-block; vertical-align: middle; -webkit-transform: perspective(1px) translateZ(0); transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; overflow: hidden;}
.hvr-underline-from-left:before { content: ""; position: absolute; z-index: -1; left: 0; right: 100%; bottom: 0; background: #006f8a; height: 2px; -webkit-transition-property: right; transition-property: right; -webkit-transition-duration: 0.3s; transition-duration: 0.3s; -webkit-transition-timing-function: ease-out; transition-timing-function: ease-out;}
.hvr-underline-from-left:hover:before, .hvr-underline-from-left:focus:before, .hvr-underline-from-left:active:before {right: 0;  }
   
@media (max-width: 767.98px) {
.cms-news-top{width: 100%;  padding: 10px; }   
.cms-news-top figure { width: 100%;  }
.cms-news-top figcaption { width:100%; margin-left:0;  }
.cms-news-top .cms-news-top-inner { width:100%; padding:10px;  }   
.cms-news-top .cms-news-top-inner .cms-news-top-inner-box{padding:0px;}  
#cms-main .cms-news-top .cms-news-top-inner  h3 a{  font-size:1.5rem; margin-bottom: 5px;  }  
#cms-main .cms-news-top .cms-news-top-inner  p {  font-size: 0.875rem; margin-bottom: 15px;  }   
 .cms-main-news-list li{ width:100%; padding: 0; margin:0px auto auto auto;  }
}























/*  詳細頁樣式*/
.cms-main-post-wrap{ padding: 20px; margin-top:50px;  background: #fff; box-shadow: 5px 5px 5px rgba(149,188,222,.1);}

.cms-main-post{width: 90%;margin: 0px 0px 30px 0px; padding:20px 0px 20px 10%;    line-height: 2rem; display: flex; flex-wrap: wrap; justify-content: flex-end; word-break: break-all; }
.cms-main-post-head{width: 100%;margin: 0px 0px 15px 0px;  display: flex; flex-wrap: wrap; justify-content: flex-start; word-break: break-all;  border-bottom: solid 1px rgba(0,0,0,.2);}
.cms-main-post-btn{ width:10%; margin: 0px; padding:0px;  display: flex; flex-wrap: wrap;   justify-content: center; align-content: center; align-items: center; flex-direction: column; }
.cms-main-post-head-txt{ width: 90%;padding:10px 20px; margin: auto; position: relative; }
#cms-main .cms-main-post-head-txt h1{ font-size: 36px; font-weight: 700; letter-spacing: .5px; position: relative; margin-bottom: 20px;  margin-top:20px; color:#016f89;overflow: hidden; line-height:1.35; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word; }
#cms-main .cms-main-post p{ width: 100%; line-height: 2rem; margin: 5px 0px; word-break: normal; display: block; }
.cms-main-post h3{margin:15px 0;text-align: left; font-size: 1.75rem; font-weight:400; line-height: 2.5rem;}
.cms-main-post-time time{ margin: 0; padding: 0; color:#000; font-size: 1.5rem; font-weight:700; display: block;  position: relative;   }
.cms-main-post-time time b{   font-weight: 700; font-style: italic;  display: block;}
.cms-main-post-time span { position: relative; display:  block; padding: 0 15px; height: 30px;}
.cms-main-post-time time span:before {  content: ""; position: absolute; top: 50%; left: calc(50% - 15px); width: 30px; height: 1px; background-color: #000; -webkit-transform: rotate( -45deg ); transform: rotate(-45deg);}

@media (max-width: 991.98px) {
.cms-main-post{ width: 100%; padding:10px 15px; }    
.cms-main-post-head .cms-main-post-head-txt{ width:80%; padding: 0px 10px;  }
.cms-main-post-info .new-tag,.cms-main-post-info .cms-social-icons{ width:100%; justify-content: flex-start; }
.cms-main-post-head .cms-main-post-btn{width:20%; }
.cms-main-post h3{  font-size:100%; font-weight: 700;  }     
}
@media (max-width: 767.98px) {
 .cms-main-post-wrap{ padding: 20px 0px; }
  #cms-main .cms-main-post-head-txt h1 {font-size: 1.25rem;}
    .cms-main-post h2{  font-size:120%; font-weight: 700; line-height: 1.875rem; }     

.cms-main-post-pagination h2 {display: none;}
}

.cms-main-post-txt {width: 100%; max-width: 1100px; margin:0px 15px; display: flex; flex-wrap: wrap;    }
.cms-main-post-pagination{ padding: 0; margin:60px auto 0px auto; display: flex; width:100%; border: solid 1px #d0e0e4; background: rgba(14,105,134,.1); }
.cms-main-post-pagination h2 {  font-size: 1.125rem; font-weight: 400;  color:#6c7280;}
.cms-main-post-pagination > div { cursor: pointer; width:calc(100%/3 ) ; position: relative;  display: flex;  flex-wrap: wrap; justify-content: center; align-items: center;}
.cms-main-post-pagination .cms-prev { padding-right: 12px; } 
.cms-prev h2 { margin-left: 24px; margin-right: 12px;}
.cms-prev .cms-news-btn {  margin-left: auto;}
.cms-prev .cms-news-btn:before {  order: 1;}
.cms-prev .cms-news-btn:after {  border-width: 5px 5px 5px 0;}
.cms-prev:hover h2,.cms-next:hover h2{  color:#d70749;}
.cms-next { padding-left: 12px; justify-content: flex-end;}
.cms-next h2 { margin-left: 12px;  margin-right: 24px;}
.cms-next .cms-news-btn { order: 0; margin-right: auto;}
.cms-next h2 { order: 1;}
.cms-next .cms-main-post-time {order: 2;}
.cms-news-btn { cursor: pointer; width: 35px;  height: 20px; position: relative; display: flex; align-items: center;}
.cms-news-btn:before { content: ''; width: 30px; height: 1px; background-color: #31315e; display: block;}
.cms-news-btn:after { content: ''; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 5px; border-color: transparent #31315e; display: block;}
.cms-btn-back { width:auto; color:#6c7280!important; font-weight: 700; border-left: solid 1px #d0e0e4;border-right: solid 1px #d0e0e4; border-radius:0px;  display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-justify-content:center;  -ms-flex-pack: center; justify-content: center;  -webkit-align-items: center;  -ms-flex-align: center;  align-items: center;  }
.cms-btn-back a{color:#6c7280!important;}
.cms-btn-back:before,.cms-btn-back::after{  content: ''; width: 30px; height:1px; background:#6c7280;-moz-transition: ease 0.3s; -o-transition: ease 0.3s; -webkit-transition: ease 0.3s;  transition: ease 0.3s;  }
.cms-btn-back:before { margin-right: 20px; margin-left: 5px;}
.cms-btn-back:after { margin-left: 20px; margin-right: 5px;}
.cms-btn-back a:hover { color:#d70749!important; }
.cms-btn-back:hover { color:#d70749!important; }
.cms-btn-back:hover:before{ background:#d70749; -moz-transform: translateX(20%); -ms-transform: translateX(20%); -webkit-transform: translateX(20%); transform: translateX(20%);  }
.cms-btn-back:hover:after{ background:#d70749;-moz-transform: translateX(-20%); -ms-transform: translateX(-20%); -webkit-transform: translateX(-20%); transform: translateX(-20%);  }
@media (max-width: 767.98px) {
.cms-btn-back  { font-size:.875rem; padding:5px  10px;}  
.cms-btn-back:before,.cms-btn-back::after{ display: none; }
 }

 #cms-main .editor p { font-size: 18px; font-weight: 400;  line-height: 2; letter-spacing: 1.2px; margin:15px 0; width: 100%;}


.cms-best{ width: 100%; max-width: 1400px; margin:20px auto; padding: 20px 0px;  }
.cms-best .slick-prev{ left:5px;}
.cms-best .slick-next{right: 5px;}
@media (max-width: 767.98px) {
 .cms-best .cms-main-news-list li {  width: 100%;margin:0px 5px; padding:0px; }
 .cms-best .cms-main-news-list figcaption{ padding:0px 10px;}
.cms-best .cms-main-news-list figcaption h3 a {font-size: 1rem; line-height: 1.5rem;}
}