﻿ 
 .cms-main-banner-img:before {content:"";position: absolute; z-index: 9; bottom: 0; width: 100%; height: 160px;  background:url("../images/index/banner-before.png") no-repeat left top;}
.cms-main-banner-txt em{color: #000;}
.cms-main-banner-txt h1{color: #000;}
 @media (max-width: 991.98px) {
.cms-main-content{background: none;}
.cms-main-banner-img:before {display: none;}
 }


 /*-------------------*/
/***** 最新消息列表只有一筆 *****/
/*------------------*/
.cms-news-top{width: 100%; margin:0 auto; padding: 30px 15px; display: flex; flex-wrap: wrap; position: relative; }
.cms-news-top figure { width: 30%; padding: 10px; background: #fff; box-shadow: 0px 6px 8px rgba(0,0,0,.5); }
.cms-news-top figcaption { width:70%; padding:30px;}
#cms-main .cms-news-top figcaption h3 a{ width: 100%; margin-bottom: 10px; font-size:2.15rem; font-weight:400; line-height: 1.5; color:#ff743e; overflow: hidden;  text-overflow: ellipsis;  display: -webkit-box;  -webkit-line-clamp: 2;  -webkit-box-orient: vertical;   }
#cms-main .cms-news-top figcaption p { width: 100%; font-size: 0.95rem;color:#6c757d; overflow: hidden;  text-overflow: ellipsis;  display: -webkit-box;  -webkit-line-clamp: 3;  -webkit-box-orient: vertical;   }

 @media (max-width: 767.98px) {
.cms-news-top figure { width: 100%;  }
.cms-news-top figcaption { width:100%; margin-left:0; margin-top: 15px;}
}
/*-------------------*/
/***** 最新消息輪播 *****/
/*------------------*/
.cms-main-news-list { width: 100%; margin:0 auto;  padding-bottom: 30px; position: relative; list-style: none; display: flex; flex-wrap: wrap; }
.cms-main-news-list li { width: calc(100% / 3 - 10px); margin: 10px 5px; padding: 15px 0px;align-items: center;  transition: all 0.4s ease-in-out;  -webkit-transition: all 0.4s ease-in-out;  -moz-transition: all 0.4s ease-in-out;  }
.cms-main-news-list li a{  display: flex; flex-wrap: wrap;  }
 .cms-main-news-list li:nth-child(3n){margin-right: 0px;}
.cms-main-news-list .cms-item { width:100%; height: 100%; margin-bottom: 0px; position: relative; overflow: hidden; vertical-align: bottom;   }
.cms-main-news-list .cms-item figure {position: relative; background:#ff8a00;}
.cms-main-news-list .cms-item:hover figure img{ opacity: 1; background:#ff8a00; }
.cms-main-news-list .cms-item:hover figure:before{background: none; transition: all 0.4s ease-in-out;  -webkit-transition: all 0.4s ease-in-out;  -moz-transition: all 0.4s ease-in-out;}
.cms-main-news-list .cms-item:hover figcaption{display: none; }

.cms-main-news-list .cms-item figure:before {  display: block; content: '';  width: 100%; height: 100%; position: absolute; left: 0; top: 0; background:#fef1d9;  }
.cms-main-news-list .cms-item figcaption { z-index: 1; position: absolute; width: 100%; left: 0; top: 0;  }
.cms-main-news-list .cms-item figcaption::before { content: '';position: absolute; z-index: 9; display: block;clear: both;width: 90%; height:90%;    border: solid 1px #ff8a00; }
.cms-main-news-list .cms-item figcaption { min-width:330px;  width: 100%; height:100%; margin: auto; padding:15px 30px; display: flex; flex-wrap: wrap;  justify-content: center; align-content: center; align-items: center; color: #434343;text-align: left;  }
#cms-main .cms-main-news-list .cms-item figcaption h3{ width: 100%; margin-bottom: 10px; font-size:1.15rem; font-weight:700; line-height: 1.6; color:#ff743e; overflow: hidden;  text-overflow: ellipsis;  display: -webkit-box;  -webkit-line-clamp: 2;  -webkit-box-orient: vertical;   }
#cms-main .cms-main-news-list .cms-item figcaption p { width: 100%; font-size: 0.95rem;line-height:1.35rem;   color:#6c757d; overflow: hidden;  text-overflow: ellipsis;  display: -webkit-box;  -webkit-line-clamp: 3;  -webkit-box-orient: vertical;   }
.cms-date{ font-size:0.875rem;  color: #654b4c; }
#cms-main .cms-main-news-list .cms-item figcaption:hover h3,#cms-main .cms-main-news-list .cms-item figcaption:hover p,.cms-main-news-list .cms-item figcaption:hover .cms-date{ color: #fff;}
.cms-main-news-list .slick-dots {  bottom:20px;}
.cms-main-news-list .slick-next { right:0px; }
 @media (max-width:1024px) {
.cms-main-news-list li { width: calc(100% / 2 - 10px);  }
.cms-main-news-list li:nth-child(3n){margin-right: auto;}
.cms-main-news-list li:nth-child(2n){margin-right: 0px;}
#cms-main .cms-main-news-list .cms-item figcaption p {  -webkit-line-clamp: 3;  }
}
 @media (max-width: 767.98px) {
.cms-main-news-list li { width: calc(100% - 10px);  }
.cms-main-news-list li:nth-child(3n){margin-right: auto;}
.cms-main-news-list li:nth-child(2n){margin-right: auto;}
#cms-main .cms-main-news-list .cms-item figcaption p {  -webkit-line-clamp: 3;  }
}
 

/*  詳細頁樣式*/
.cms-main-post{width: 100%;margin: 30px auto; padding:50px 0px;    line-height: 2rem; display: flex; flex-wrap: wrap; justify-content: center; word-break: break-all; }
.cms-main-post-head{width: 100%;margin: 30px auto 15px auto;  display: flex; flex-wrap: wrap; justify-content: center; word-break: break-all;  border-bottom: solid 1px rgba(0,0,0,.2);}
.cms-main-post-time{ width:10%;display: flex; flex-wrap: wrap;   justify-content: center; align-content: center; align-items: center;  }
.cms-main-post-head-txt{ width: 85%;padding:10px; }
.cms-main-post-head-txt h1{  color:#0d386d;   }
 #cms-main .cms-main-post p{line-height: 2rem; margin: 5px 0px; }
.cms-main-post h3{margin:15px 0;text-align: left; font-size: 1.75rem; font-weight:400; }
 .cms-main-post-time time{  color:#0d386d; font-size: 0.875rem; font-weight:400;  font-family:'Nunito', "sans-serif"; }
.cms-main-post-time time b{ font-size: 0.875rem;  font-weight: 700; font-style: italic;  font-family:'Nunito', "sans-serif"; }
.cms-main-post-info {width: 100%; max-width: 1100px; margin:0px 15px; display: flex; flex-wrap: wrap;    }
.cms-main-post-info .tag { display: flex; flex-wrap: wrap; flex-direction: row; width: 70%; 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 .cms-main-post-info .tag a{ width: auto;  color:#fff; background:#bdb7b4;   margin:4px; padding:5px; font-size:0.875rem; border-radius: 3px;  }
 #cms-main .cms-main-post-info .tag a:hover{color:#fff; background: #afbabf;  }
.cms-main-post-info .cms-social-icons{ width: 96%;  margin: 0px auto; display: flex;  flex-wrap: wrap; justify-content: flex-start; font-size:0.875rem;  }
.cms-main-post-info .cms-social-icons li a:hover{ transform: scale(1.1); opacity:1;  }
.cms-main-post-info .cms-social-icons li{display: flex; width: auto; color: #0d386d;}
.cms-main-post-info .cms-social-icons li a{color: #0d386d!important;}
.cms-main-post-pagination{ padding: 0; margin:60px auto 20px auto; display: flex; width:80%; }
.cms-main-post-pagination h2 {  font-size: 1.125rem; font-weight: 400;  color: #000000;}
.cms-main-post-pagination>div { cursor: pointer; width: 100%; position: relative;  display: flex;  flex-wrap: wrap;  align-items: center;}
.cms-main-post-pagination .cms-prev { padding-right: 12px; } 
.cms-prev h2 { margin-left: 24px; margin-right: 12px;}
.cms-prev .cms-btn {  margin-left: auto;}
.cms-prev .cms-btn:before {  order: 1;}
.cms-prev .cms-btn:after {  border-width: 5px 5px 5px 0;}
.cms-prev:hover h2,.cms-next:hover h2{  color:#0d386d;}
.cms-next { padding-left: 12px; justify-content: flex-end;}
.cms-next h2 { margin-left: 12px;  margin-right: 24px;}
.cms-next .cms-btn { order: 0; margin-right: auto;}
.cms-next h2 { order: 1;}
.cms-next .cms-main-post-time {order: 2;}
.cms-btn { cursor: pointer; width: 35px;  height: 20px; position: relative; display: flex; align-items: center;}
.cms-btn:before { content: ''; width: 30px; height: 1px; background-color: #31315e; display: block;}
.cms-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:#0d386d!important; font-weight: 700; border: solid 1px #0d386d;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:#0d386d!important;}
.cms-btn-back:before,.cms-btn-back::after{  content: ''; width: 30px; height:1px; background:#0d386d;-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:#ec651e!important; }
.cms-btn-back:hover { color:#ec651e!important; border: solid 1px #ec651e;}
.cms-btn-back:hover:before{ background:#ec651e; -moz-transform: translateX(20%); -ms-transform: translateX(20%); -webkit-transform: translateX(20%); transform: translateX(20%);  }
.cms-btn-back:hover:after{ background:#ec651e;-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; }
 }
 @media (max-width: 991.98px) {
.cms-main-post-head{  flex-direction:column;}
.cms-main-post-head .cms-main-post-head-txt{ width: 100%; padding: 0px; }
.cms-main-post-head .cms-main-post-time,.cms-main-post-info .tag,.cms-main-post-info .cms-social-icons{ width:100%; justify-content: flex-start; }
}
@media (max-width: 767.98px) {
.cms-main-post .cms-blog-category {position: relative; padding: 2px 5px;top:auto;}
.cms-main-post-head-txt h1 {font-size: 1.25rem;}
.cms-main-post-pagination h2 {display: none;}
}
