﻿ /*--分類new-tag --*/
.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;}
.new-tag { display: flex; flex-wrap: wrap; flex-direction: row; top:0px; right: 0px;  width: auto;padding: 0px 10px; font-size: 0.875rem; color: #fff; 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;  position: absolute; }
.new-tag-01{ background:#222;}
.new-tag-02{background:#0582cc;}
.new-tag-03{background:#629e9e;}
 /*--分類小圖示icon--*/
.icon-tag{ display: block; width: 16px; height: 16px;margin-top:5px; margin-right:10px;  background: url("../images/icon/icon-tag.svg") no-repeat left top; }
/*--end分類new-tag --*/
/*-------------------*/
/***** blog *****/
/*------------------*/
.cms-blog-list {width: 100%; max-width: 1400px; margin: 10px auto;  padding:10px; display: flex;  flex-wrap: wrap; position: relative; z-index: 1; }
.cms-blog-list li{ display: flex;  width: calc(100% / 3 - 20px); flex-direction: column;  margin:0px 10px; box-sizing: border-box;  list-style: none;  transition: all 0.5s ease 0s; position: relative; padding:0px 34px;  }
.cms-blog-list  li:nth-child(even){ margin-top: 90px;}
.cms-blog-list li:hover{ }
.cms-blog-list .news-box {position: relative;z-index: 1;  width: 100%; box-sizing: border-box;display: -ms-flexbox; display: flex; flex-wrap: wrap; align-content: center;  margin: 0;  padding:20px 0px; color: #4c4c4c; font-size: 14px; font-weight: 400; line-height: 1.8rem; letter-spacing: 0.5px; }
.cms-blog-list figure { position: relative;width: 100%;  display: flex; overflow: hidden; background-color:#e8e5e3;}
.cms-blog-list figure::before,.cms-blog-list figure::after {  pointer-events: none; transition: all 0.5s ease-in-out;}
.cms-blog-list figure::before { content: ""; position: absolute; left: 8px; top: 8px; z-index: 2; width: calc(100% - 16px); height: calc(100% - 16px); border: 1px solid #fff; transform: scale(0.95); opacity: 0;}
.cms-blog-list figure::after { content: "More"; position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); padding: 7px 43px; font-size: 12px; letter-spacing: 0.06em; color: #000; opacity: 0; border: 1px solid #b7b7b7;}
.cms-blog-list figure img {transition: all 0.5s ease-in-out;}
.cms-blog-list li:hover figure::before { transform: scale(1); opacity: 1; transition-delay: 0.2s;}
.cms-blog-list li:hover  figure::after { top: 50%; opacity: 1; transition-delay: 0.3s;}
.cms-blog-list li:hover figure img { opacity: 0;}
.cms-blog-list h3 {position: relative;width: 100%; height: 80px;  font-size:1.75rem;  line-height: 2.5rem; font-weight:700; letter-spacing: .18em;overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word; }
.cms-blog-list  h3 a{ color:#000!important; }
.cms-blog-list p { width: 100%; height: 76px; font-size: 1rem; line-height: 1.7142857143rem;  letter-spacing: .05em;color:#555; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: break-word;}
.cms-blog-list p a{ color:#000;   }
.cms-blog-list .new-tag { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -ms-flex-wrap: wrap; flex-wrap: wrap; padding-top: 12px;  padding-bottom: 12px; position: relative;}
.cms-blog-list .new-tag a { font-size: 12px; color: #555; letter-spacing: 0.02em;}
.cms-blog-list .new-tag a:hover { color: #df7475;}
.cms-blog-list .new-tag a:not(:last-child)::after { content: "、";}
@media (max-width: 1199.98px) {
.cms-blog-list li{  margin:0px 10px; }
}
@media (max-width:840px) {
.cms-blog-list{margin: 0px; padding: 0px;}   
.cms-blog-list li{ width: calc(100%/ 2 - 10px); padding:10px; margin:30px 5px;   }
}
@media (max-width:768px) {
.cms-blog-list li{ width: calc(100%/ 2 - 10px); padding:10px; margin:10px 5px;   }
}
@media (max-width:767.98px) {
.cms-blog-list li{ width: calc(100%/ 2 - 10px); padding:10px 0px; margin:10px 5px;  }
 .cms-blog-list h3 { height: 54px;  font-size:1rem; line-height: 1.7142857143rem;  }
.cms-blog-list p {  font-size: .9rem; line-height: 1.7142857143rem;  }   
}
/* Sweep To Right */
.hvr-sweep-to-right { cursor: pointer; display: inline-block; position: relative; vertical-align: middle;  -webkit-transform: translateZ(0); transform: translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); -webkit-backface-visibility: hidden; backface-visibility: hidden; -moz-osx-font-smoothing: grayscale; -webkit-transition-property: color; transition-property: color; -webkit-transition-duration: 0.3s; transition-duration: 0.3s;}
.hvr-sweep-to-right:before { content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; bottom: 0; background: #000!important; -webkit-transform: scaleX(0); transform: scaleX(0); -webkit-transform-origin: 0 50%; transform-origin: 0 50%;  -webkit-transition-property: transform; transition-property: transform; -webkit-transition-duration: 0.3s; transition-duration: 0.3s; -webkit-transition-timing-function: ease-out; transition-timing-function: ease-out;}
.hvr-sweep-to-right:hover, .hvr-sweep-to-right:focus, .hvr-sweep-to-right:active { color: #fff!important;}
.hvr-sweep-to-right:hover:before, .hvr-sweep-to-right:focus:before, .hvr-sweep-to-right:active:before { -webkit-transform: scaleX(1); transform: scaleX(1);}

.text-button { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.125rem; cursor: pointer; display: inline-block; color: currentColor;margin-top: 2.1875rem;  padding-left: 2.1875rem; position: relative; transition: padding 0.3s ease}
.text-button::before { content: ''; display: inline-block; position: absolute; left: 0; top: 50%; width: 1.5625rem; height: 0.0625rem; background: currentColor; vertical-align: middle; margin-right: 0.625rem; transition: padding 0.3s ease}
@media (hover: hover) {
.text-button:hover { color: currentColor; padding-left: 2.8125rem  }
.text-button:hover:before { width: 2.1875rem; color: currentColor  }
}

  /*----------------------------------------/
熱門推薦
----------------------------------------*/
.product-cate{ width:100%; height: auto; margin:0px; padding:40px 0px;  position: relative;   }
.product-cate li{width: 100%;  margin:0px auto 5% auto;padding:0px; list-style: none; display: flex;flex-wrap: wrap; justify-content: center; align-items: center; transition: all 0.3s linear 0s;   position: relative; z-index: 0;  }
.product-cate  li .pic { width:70%; height: auto; margin-bottom:0px;  overflow: hidden;   position: relative;z-index: 1; transition: all 0.5s ease 0s; }
.product-cate  figure img { max-width:100%; width:100%; height: auto; object-fit: cover; margin: auto; overflow: hidden; border-radius:0px;  clip-path: polygon(0 9%, 100% 0, 100% 90%, 0% 100%); -webkit-filter:grayscale(0);   transition: all 0.5s ease-in-out;}
.product-cate  figure  {width: 100%; padding-bottom: 66.66%; height: 0; overflow: hidden;   position: relative;  z-index: 1; transition: all 0.5s ease 0s; transition: all 0.5s ease-in-out;}

.product-cate li:hover figure img {/*-webkit-filter:grayscale(1); -webkit-filter:blur(3);*/  transform: scale(1.1);  opacity: 1; } 
.product-cate li .inner{width:40%;height:auto;  padding:40px;  margin: 0 0px 0px -10%;  position: relative; z-index: 4; box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.1);  background: rgba(255,255,255,.5);}
.product-cate li .inner::before{ content: ""; width:calc(100% - 20px); height:calc(100% - 20px); border: solid 2px #fff; position: absolute; left:10px; top:10px;}
.product-cate .inner  h3{position: relative;width: 100%;  margin:0px 0px 30px 0px; font-size: 1.75rem; font-weight:700; color:#222;overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word; word-break: normal;}
.product-cate .inner h4{position: relative;width: 100%;  margin:0px 0px 10px 0px; font-size:1.063rem; line-height: 1.7142857143rem; font-weight:700; color:#222;overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word; word-break: normal;}
 
.product-cate .inner-list{ width: 100%; padding: 0px 0px 0px 20px; margin-bottom: 10px; font-size: 1rem; line-height: 1.75rem; color:#000;  font-weight:600;overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp:4; -webkit-box-orient: vertical; overflow-wrap: break-word; word-break: normal; position: relative;  }
.product-cate .inner-list:hover{ color: #e84a75;}
.product-cate .inner-list a{color:#222;}
.product-cate .inner-list:after{ content: ""; width: 8px; height: 8px; position: absolute; left:0px; top:10px; background: #000; border-radius:99rem; }
.product-cate .btn-area{margin-top: 30px;}
.product-cate li:nth-child(odd) .inner{ padding-left: 80px;  }
.product-cate li:nth-child(1) .inner{ background: rgba(214,233,245,.85); }
.product-cate li:nth-child(2) .inner{ background: rgba(203,207,190,.85); }
.product-cate li:nth-child(3) .inner{ background: rgba(255,216,216,.85); }
.product-cate li:nth-child(4) .inner{ background: rgba(255,255,255,.85); }
.product-cate li:nth-child(even){flex-direction: row-reverse;}
.product-cate li:nth-child(even) .inner{margin: 0 -20% 0px 10%;  padding-right: 80px; }
@media (max-width:820px) {
 .product-cate li .inner{width:50%;  padding:40px 20px;  margin: 0 0px 0px -20%;  }
.product-cate li:nth-child(even) .inner{margin: 0 -20% 0px 0; padding-left: 80px;}
 }

@media (max-width:767.98px) {
.product-cate .inner  h3{  font-size: 1.35rem; }
.product-cate  li .pic { width:100%; height: auto; margin-bottom:0px;  overflow: hidden;   position: relative;z-index: 1; transition: all 0.5s ease 0s; }
 .product-cate li .inner,.product-cate li:nth-child(even) .inner{width:100%;height:auto;  padding:40px;  margin:-10% 0px 0px 0px;  }
    .product-cate li{  margin:0px auto 15% auto;}  
    
}


  
/*  詳細頁樣式*/
.main-post{width: 90%;margin: 0px auto 30px auto; padding:20px 0px;    }
.main-post p a{ color: #000; }
.main-post p a:hover{ color: #a01f35; }
.main-post p{ width: 100%; line-height: 2rem; margin: 5px 0px; word-break: normal; display: block;  }
.main-post h3{margin:15px 0;text-align: left; font-size: 1.75rem; font-weight:400; line-height: 2.5rem;}

.main-post-head{width: 100%;margin:35px 0px; padding-bottom: 15px;  display: flex; flex-wrap: wrap;align-items: center; justify-content: space-between; word-break: break-all;  border-bottom: 1px solid #ebebeb;}
.main-post-head-txt{ width:100%;padding:0px; margin:10px auto 30px auto; position: relative; display: flex; flex-wrap: wrap; align-self: center;  }
.main-post-head-txt h1{ width: 80%; font-size:2rem;   font-weight:700;  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: normal; overflow-wrap: break-word;   }

.main-post-time{ width:auto; margin-right: 25px;  }
.main-post-time time{ margin:0px; padding:5px 0; color:#000; font-size:0.875rem; text-align: center; font-weight:700;   position: relative;   }
.main-post-time time b{ font-weight: 700; font-style: italic; }
.main-post-time span { padding: 0 5px;  }


.main-post-info .main-post-item{ width: 100%;margin: 0px; padding:10px 0px;  display: flex; flex-wrap: wrap;}
.main-post-info .new-tag{ position: relative; display: flex;  align-self: center; margin-right: 25px; font-weight: 700;  }
.main-post-info{ width: 80%;margin:0px; display: flex;  flex-wrap: wrap;justify-content: flex-start;align-items: center; font-size: 1rem;}
.main-post-info .social-icons { width: auto; margin: 0px; padding: 0px; display: flex; flex-wrap: wrap; }
.main-post-info .social-icons li {position: relative; z-index: 1;  display: flex;  align-items: center; justify-content: center;  text-align: center;  width:42px; height: 42px;  margin-left:3px; font-size: 18px; color: #cbcbcb;   border-radius:99rem;  }
.main-post-info .social-icons li i{ color:#cbcbcb; transform: scale(.75); }
.main-post-btn{ width:auto; margin: 0px; padding:0px;  display: flex; justify-content: flex-end;  }

@media (max-width: 991.98px) {
.main-post{ width: 100%; padding:10px 15px; }    
.main-post-head .main-post-head-txt{ width:100%; padding: 0px;  }
.main-post-head-txt h1 { width:100%;  }
 .main-post-head .main-post-btn{width:20%; }
.main-post h3{  font-size:100%; font-weight: 700;  }  


}
@media (max-width: 767.98px) {
 .main-post{  padding:10px 0px; }    

.main-post-head{ margin:0px 0px 35px 0px;  }  
.main-post-head-txt h1 {   font-size: 1.25rem;}
.main-post h2{  font-size:120%; font-weight: 700; line-height: 1.875rem; }     
.main-post-pagination h2 {display: none;}
.main-post-info{ width: 100%;margin-top: 20px;  font-size: 1rem;}
 .main-post-head .main-post-btn{width:100%; }    
}
.main-post-txt {width: 100%; max-width: 1100px; margin:0px 15px; display: flex; flex-wrap: wrap;    }
.main-post-pagination{ padding: 0; margin:60px auto 0px auto; display: flex;justify-content: center; width:100%;   }
.main-post-pagination h2 {  font-size: 1rem; font-weight: 700;  color:#000; position: relative;width: 100%;   line-height: 1.5rem;  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word;}
.main-post-pagination h2:after { display: block; content: ''; width: 0; height:1px;  background:#000; transition: all .3s ease;}
.main-post-pagination h2:hover:after { width: 100%; }
.main-post-pagination > div { cursor: pointer; width:calc(100%/3 ) ; position: relative;  display: flex; flex-wrap: wrap; justify-content: center; align-self: center; transition: all 0.5s;}
.main-post-pagination .prev { padding-right: 12px; } 
.pagination-text{padding-bottom: 3px;font-size: 1rem;font-weight: 700;  color: #888; text-transform: uppercase; transition: all 0.5s; position: relative;width: 100%;   line-height: 1.5rem;  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word;} 
.pagination-text:hover{color: #e84a75;  }
.pagination-text:after { display: block; content: ''; width: 0; height:1px;  background:#e84a75; transition: all .3s ease;}
.pagination-text:hover:after { width: 100%; }
.prev .news-btn {  margin-left: auto;}
.prev .news-btn:before {  order: 1;}
.prev .news-btn:after {  border-width: 5px 5px 5px 0;}
.prev:hover h2,.next:hover h2{ color:#888;}
.next { padding-left: 12px; justify-content: flex-end;}
.next .news-btn { order: 0; margin-right: auto;}
.next h2 { order: 1;}
.next .main-post-time {order: 2;}
.news-btn { cursor: pointer; width: 35px;  height: 20px; position: relative; display: flex; align-items: center;}
.news-btn:before { content: ''; width: 30px; height: 1px; background-color: #31315e; display: block;}
.news-btn:after { content: ''; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 5px; border-color: transparent #31315e; display: block;}

.btn-back { width:100px!important;height: 100px!important; color:#e84a75!important; font-weight: 400;  padding: 10px 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;background-color:transparent; border: solid 1px #232323; border-radius:99rem; }
.btn-back a{color:#232323!important;}

.btn-back:hover a{ color:#fff!important; }
.btn-back:hover { color:#fff!important;  background:#232323;border-color:#232323;  }
@media (max-width: 767.98px) {
.btn-back  { font-size:.875rem; text-align: center; padding:5px 10px;}  
.btn-back:before,.btn-back::after{ display: none; }
}

.box-wrap{width: 100%; margin: 0px auto 55px auto; padding:0px; display: flex; flex-wrap: wrap; position: relative; align-items: center; word-break: keep-all; }
.box-wrap h3{ margin: 40px 0px 20px 0px; font-size: 2.25rem; font-weight: 700; position: relative; z-index: 2;}
.box-wrap p{ margin: 0px 5px!important; font-size: 1.125rem;  line-height: 2.25rem;  position: relative; z-index: 2;}

.box-left{ width: 60%;  }
.box-right{width: 40%;   }
.main-txt{width: 100%; margin:0; padding: 30px 20px 0px 20px;  }
.main-txt p { width: 100%; font-size:1.125rem;   font-size: min(max(3vw, 1rem), 1.125rem);  line-height:1.75rem; font-weight: 400;  padding:5px 0px; margin: 20px 0px;}
.box-card { width:80%;  margin:30px auto; padding:0px; display: block; ;position: relative; }
.list li{word-break: keep-all; }

@media (max-width: 768px) {
.main-txt{ padding: 30px 0px 0px 0px;}
}

@media (max-width: 767.98px) {
.box-left{ width: 100%;}
.box-right{width: 100%;}    
}

