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


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

.h2-title {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    position: relative;
    color: #000;
    margin-bottom: 10px;
}
.h2-title + p {
    border-top: 1px solid #adadad;
    text-align: center;
    padding-top: 6px;
    color: #000;
    font-weight: bold;
    
}


/*========================================================
                         訊息中心
=========================================================*/

.news {
	padding-top: 60px;
    padding-bottom: 60px;
}
.news > div {
	box-shadow: 1px 1px 5px #adadad;
    padding: 20px 20px 0 20px;
    background-color: #fff;
    border-bottom: 10px solid #315d9f;
}
.news img {
    width: 100%;
    vertical-align: bottom;
}
.news-item {
    position: relative;
    padding: 20px;
}
.news-item-img {
    position: relative;
    margin: 0;
    display: block;
    width: 100%;
    text-decoration: none;
    color: #fff;
    background-color: #f0f4f8;
    overflow: hidden;
    border: 6px solid #fff;
    transition: all .3s
}
.news-item-img:hover {
    color: #fff;
    border-color: #315d9f;
}
.news-item-img:hover .news-item-mask {
    opacity: 1;
    visibility: visible
}
.news-item-img:hover .news-item-mask::after {
    height: 100%
}
.news-item-img img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover
}
.news-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: 1rem;
    font-weight: 700;
    transition: all .3s
}
.news-item-mask::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 50px;
    width: 100%;
    background-color: rgba(0, 0, 0, .3);
    transform: translateY(-50%);
    transition: all .3s
}
.news-item-mask span {
    position: relative;
    display: block;
    z-index: 2;
    padding: 5px 30px;
}
.news-item-info {
    position: relative;
    top: -50px;
    z-index: 4;
    background-color: #fff;
    width: 86%;
    text-align: left;
    padding: 20px 30px;
}
.news-item-info h3 {
    color: #0d375e;
    font-weight: bold;
    font-size: 1.3rem;
}
.news-item-info p {
    color: #4e4e4e;
    font-size: 0.8rem;
    line-height: 24px;
}
.news-item-btn {
    margin-top: 10px;
}
.news-item-btn a {
    display: inline-block;
    color: #111;
    border: 1px solid #111;
    padding: 2px 25px 2px 25px;
}
.news-item-btn a:hover {
    color: #fff;
    background-color: #315d9f;
    border-color: #315d9f;
}

@media (min-width: 992px) {
    .news {
        padding-bottom: 0;
        position: relative;
        top: -140px;
        z-index: 10;
    }
    .news > div {
        padding: 50px 50px 0 50px;
    }
}

/*========================================================
                         相關資訊
=========================================================*/

.bg-2 {
    background: url("../img/index/bg-2.jpg") repeat left top;
    border-top: 1px solid #dedede;
    border-bottom: 1px solid #dedede;
    position: relative;
    top: -40px;
    z-index: 4;
}

.info {
	padding-top: 80px;
    padding-bottom: 40px;
}
.info h2 {
	border-left: 7px solid #315d9f;
    font-size: 1.6rem;
    font-weight: bold;
    padding-left: 10px;
    margin-left: 10px;
    margin-bottom: 10px;
}
.info ul  {
	list-style: none;
    margin: 0;
    padding: 20px 20px 30px;
    width: 100%;
    background-color: rgba(255,255,255,0.8);
    border-top: 8px solid #315d9f;
    min-height: 240px;
}
.info ul li a {
    background: url("../img/index/info-icon.png") no-repeat left 10px;
    display: block;
    color: #000;
	border-bottom: 1px solid #acacac;
    padding: 5px 5px 5px 30px;
}
.info ul li a:hover {
    color: #fff;
	background-color: #1366b3;
}

.info .common {
    border-bottom: 8px solid #315d9f;
    padding: 30px;
    margin-bottom: 60px;
}

.service-info {
    background: url("../img/index/service-bg.jpg") no-repeat center center;
    background-size: cover;
}
.tool-info {
    background: url("../img/index/tool-bg.jpg") no-repeat center center;
    background-size: cover;
}

/* 尺寸設定 */
@media (min-width: 768px) {
    .info ul  {
        padding: 30px 30px 40px;
        width: 70%;
        min-height: 346px;
    }
    .info .common {
        padding: 50px;
    }
}
@media (min-width: 992px) {
    .info ul  {
        width: 100%;
    }
}
@media (min-width: 1600px) {
    .info ul  {
        width: 60%;
    }
}


/*========================================================
                        優選案例
=========================================================*/

.case {
    padding-top: 20px;
    padding-bottom: 60px;
}
.case h2 {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    position: relative;
    color: #000;
}
.case h2 + p {
    text-align: center;
    color: #000;
    font-weight: bold;
    
}

/* 框架 */
.case-item {
	margin-left: auto;
	margin-right: auto;
	text-align: left;
	transform: translateY(0);
	transition: .3s ease-out transform;
    box-shadow: 0px 0px 5px #adadad;
    margin-bottom: 30px;
}
.case-item:hover {
	transform: translateY(-5px);
}
.case-item + .case-item {
	margin-top: 35px;
}
.case-item-img img {
	object-fit: cover;   
    object-position: center center;
    height: 80% !important;
}

/* 內容 */
.case-item-info {
	padding: 0 20px 20px 20px;
	background-color: #fff;
    border: 1px solid #ddd;
	transition: .3s ease-out box-shadow;
}
.case-item-info > div {
	margin-top: 0;
	padding-top: 20px;
	border-top: 1px solid rgba(127, 127, 127, 0.2);
}
.case-item-info h4 {
    font-weight: bold;
    border-left: 5px solid #315d9f;
    padding-left: 5px;
}
.case-item-info p {
    margin: 0;
    line-height: 28px;
}


/* 了解更多 */
.case .case-item-more {
    margin-top: 10px;
    text-align: left;
}
.case .case-item-more a {
    font-weight: bold;
    background-color: #315d9f;
    color: #fff;
    padding: 5px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
}
.case .case-item-more a:hover {
    background-color: #315ca1;
}

@media (min-width: 640px) {
	.case-item {
		display: flex;
		max-width: 1170px;
	}
	.case-item-img {
		display: flex;
		width: 200px;
		flex-shrink: 0;
	}
	.case-item-img img {
		object-fit: cover;
		width: 100%;
		height: 100% !important;
	}
    .case-item-info {
        width: calc(100% - 200px);
        border-left: none;
    }
    .case-item-info > div {
        width: 100%;
    }
}
@media (min-width: 992px) {
	.case-item-info {
		min-height: 235px;
	}
}
@media (min-width: 1600px) {
	.case-item-img {
		width: 270px;
	}
	.case-item-info {
		display: flex;
		padding: 20px 20px 20px 0;
        width: calc(100% - 270px);
        min-height: 223px;
	}
	.case-item-info > div {
        padding: 10px 30px 0 40px;
		margin: 0;
		border-top: 0;
		border-left: 1px solid rgba(127, 127, 127, 0.2);
	}
	.case-item + .case-item {
		margin-top: 50px;
	}
}


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

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(49, 92, 161, 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);
}

