
@import url("../fonts/flaticon/flaticon.css");
@import url("../css/all.min.css");
@import url("revise.css");
@import url("header.css");
@import url("footer.css");
@import url("banner.css");


/*========================================================
                      	 標題設定
=========================================================*/

.h2-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    position: relative;
    color: #000;
}
.h2-title:after {
    content: '';
    display: block;
    position: relative;
	left: 50%;
	transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #eb2d41;
    margin-top: 6px;
}
.h2-title+p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/*========================================================
                     最新消息 & 影片介紹
=========================================================*/

.section-1 {
    background: url("../images/index/section-bg1.jpg") no-repeat left top / cover;
    padding: 60px 5% 40px;
    color: #fff;
}
.section-1 h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background-color: #e30a14;
    margin-top: 6px;
    margin-bottom: 20px;
}
.section-1 [class*="col-"] {
    margin-bottom: 40px;
}
.section-1 .more {
    text-align: left;
}
.section-1 .more a {
    display: inline-block;
    background-color: #b91017;
    color: #fff;
    padding: 5px 30px;
}
.section-1 .more a:hover {
    background-color: #1f2b61;
}

.news-info h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}
.news-info ul {
    list-style: none;
    margin: 0 0 40px 0;
    padding: 0;
}
.news-info ul li {
    border-bottom: 1px dashed #fff;
}
.news-info ul li a {
    display: block;
    color: #fff;
    padding: 7px;
    margin-top: 5px;
}
.news-info ul li a time {
    margin-right: 10px;
}


.about-wrap img {
    width: 100%;
    vertical-align: bottom;
}


@media (min-width: 768px) {
    .section-1 {
        padding: 80px 5% 60px;
    }
    .about-wrap ul li {
        padding: 20px 10px 20px 40px;
        font-size: 1.2rem;   
    }
}

@media (min-width: 1200px) {
    .news-wrap {
        padding-right: 5rem;
        position: relative;
    }
    .news-wrap:after {
        content: '';
        position: absolute;
        display: block;
        top: 0;
        right: -17px;
        width: 20px;
        height: 100%;
        z-index: 5;
        border-right: 2px dashed #fff;
    }
    .about-wrap {
        padding-left: 5rem;
    }
    .about-wrap .more {
        text-align: right;  
    }
}


/*========================================================
                      	 產品介紹
=========================================================*/

.products-wrap {
    background: url("../images/index/products-bg.jpg") no-repeat top center / cover;
	padding-top: 60px;
    padding-bottom: 60px;
    padding-left: 7%;
    padding-right: 7%;
}
.products-wrap img {
    width: 100%;
    vertical-align: bottom;
}
.products-item {
    position: relative;
    margin: 0 20px;
}
.products-item h3 {
    font-weight: bold;
    color: #00659e;
    font-size: 1.4rem;
}


.products-item-img {
    position: relative;
    margin: 0;
    display: block;
    width: 100%;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
}
.products-item-img:hover {
    color: #fff
}
.products-item-img:hover .products-item-mask {
    opacity: 1;
    visibility: visible
}
.products-item-img:hover .products-item-mask::after {
    height: 100%
}
.products-item-img img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover
}
.products-item-mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: .625rem 1rem;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all .3s
}
.products-item-mask::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 50px;
    width: 100%;
    background-color: rgba(0, 101, 158, .7);
    transform: translateY(-50%);
    transition: all .3s
}
.products-item-mask span {
    position: relative;
    display: block;
    z-index: 2;
    padding: 5px 30px;
}

.products-btn {
    text-align: center;
}
.products-btn a {
    color: #111;
    display: inline-block;
    padding: 5px 40px;
    margin-top: 40px;
    background-color: #fff;
    border: 1px solid #000;
}
.products-btn a:hover {
    background-color: #1f2b61;
    color: #fff;
    border-color: #1f2b61;
}
@media (min-width: 768px) {
	.products-item h3 {
		height: 53px;
	}
}
@media (min-width: 992px) {
    .products-wrap {	
        padding-bottom: 80px;
    }
}
@media (min-width: 1200px) {
	.products-item h3 {
		height: 77px;
	}
}
@media (min-width: 1400px) {
	.products-item h3 {
		height: 53px;
	}
}


/*========================================================
                      	 加工服務
=========================================================*/

.service-wrap {
    background: url("../images/index/service-bg.jpg") no-repeat top center / cover;
	padding-top: 60px;
    padding-bottom: 60px;
    padding-left: 7%;
    padding-right: 7%;
}
.service-wrap img {
    width: 100%;
    vertical-align: bottom;
}
.service-item {
    background: url("../images/index/service-bg2.jpg") no-repeat bottom center / cover;
    padding: 20px 10% 40px;
    position: relative;
    margin-bottom: 40px;
}
.service-item h3 {
    text-align: center;
    padding: 10px;
    color: #fff;
    background-color: #115d96;
    margin: 0;
}
.service-item img {
    width: 100%;
    vertical-align: bottom;
    border: 7px solid #fff;
}
.service-item p {
    margin-top: 20px;
    color: #fff;
}

.service-btn {
    text-align: center;
}
.service-btn a {
    color: #fff;
    display: inline-block;
    padding: 5px 40px;
    margin-top: 20px;
    background-color: #b91017;
}
.service-btn a:hover {
    background-color: #1f2b61;
}

@media (min-width: 768px) {
    .service-wrap h2+p {
        margin-bottom: 100px;
    }
    .service-item {
        background: url("../images/index/service-bg2.jpg") no-repeat bottom center / contain;
        padding: 0 10%;
        position: relative;
        top: 0;
        margin: 0 30px;
    }
    .service-item > div {
        position: relative;
        top: -40px;
        z-index: 3;
    }
    .service-item p {
        margin-top: 40px;
    }
}
@media (min-width: 768px) and (max-width: 1199px){
    .service-item > div {
        margin-bottom: 100px;
    }
}

@media (min-width: 1200px) {
    .service-item {
        padding: 0 10%;
        margin: 0 0px;
    }
}

@media (min-width: 1600px) {
    .service-item {
        padding: 0 10%;
        margin: 0 30px;
    }
}



/*========================================================
                         圖片效果
=========================================================*/

a.figure {
	display: block;
	position: relative;
	}
a.figure:before,a.figure:after {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 10;
    content: '';
    display: inline-block;
    opacity: 0;
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    transition: .3s; 
}
a.figure:before {
    background: #fff;
}
a.figure:after {
    background: url(../images/magnifier.png) no-repeat center center;
}
a.figure:hover:before, a.figure:hover:after {
    -webkit-transform: scale(1);
    transform: scale(1);
}
a.figure:hover:before {
    opacity: 0.15;
}
a.figure:hover:after {
    opacity: 1;
}


.picture-effect {
	position: relative;
	overflow: hidden;
	z-index: 1;
}
.picture-effect img {
	transform: scale(1);
	transition: .3s ease-out all;
}
.picture-effect a {
	display: block;
	position: relative;
}
.picture-effect a:before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: rgba(12, 56, 98, 0.4);
	pointer-events: none;
	z-index: 1;
	opacity: 0;
	transition: .3s ease-out all;
}
.picture-effect a:hover:before {
	opacity: 1;
}
.picture-effect a:hover img {
	transform: scale(1.1);
}

.carousel-control-prev, .carousel-control-next{
	z-index: 9999!important;
}
