
@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.4rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
.h2-title span {
    display: block;
    font-size: 1.6rem;
    font-weight: normal;
}



/*========================================================
                        cookies
=========================================================*/

#cookies-box {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 9999999;
    background-color: #ededed;
    border: 1px solid #adadad;
    padding: 25px;
    width: 300px;
    line-height: 24px;
	font-size: 0.9rem;
/*	display: none;*/
}
#cookies-box .cookies-btn {
    text-align: center;
    margin-top: 10px;
}

#cookies-box .cookies-btn a {
    display: inline-block;
    width: 100%;
    background-color: #222;
    color: #fff;
    padding: 5px 30px;
    text-decoration: none;
}
#cookies-box .cookies-btna:hover {
    background-color: #333;
}


/*========================================================
                   關於宇海 & 最新訊息
=========================================================*/

.aboutUs {
    background: url(../img/index/about-bg.jpg) no-repeat right top; 
    background-size: cover;
    padding: 40px;
    color: #fff;
}
.aboutUs h2 {
    font-weight: bold;
    margin: 0;  
}
.aboutUs h3 {
    margin: -4px 0 20px 0;
    font-size: 1.4rem;
}
.aboutUs-btn {
    margin-top: 10px;
    text-align: right;
}
.aboutUs-btn a {
    font-weight: bold;
    color: #ffc61a;
}
.aboutUs-btn a:hover {
    color: #fff;
}

.news {
    background: url(../img/index/news-bg.png) no-repeat left top; 
    background-size: cover;
    padding: 40px;
    color: #000;  
}
.news h2 {
    font-weight: bold;
    margin: 0;  
}
.news h3 {
    margin: -4px 0 20px 0;
    font-size: 1.4rem;
}
.news ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.news ul li {
    position: relative;
    padding-top: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ddd;
}
.news ul li a {
    color: #000;
}
.news ul li a:hover {
    color: #e16500;
}
.news ul li time {
    display: block;
    background-color: #e16500;
    color: #fff;
    padding: 2px 10px;
    width: 110px;
}
.news-btn {
    margin-top: 10px;
    text-align: right;
}
.news-btn a {
    font-weight: bold;
    color: #cf0000;
}
.news-btn a:hover {
    color: #043590;
}



/*  尺寸設定 */
@media (max-width: 991px) {
    .aboutUs h2, .news h2 {
        font-size: 2.4rem;
        text-align: center;
    }
    .aboutUs h3, .news h3 {
        font-size: 1.6rem;
        text-align: center;
    }
}
@media (min-width: 479px) {
    .news ul li time {
        display: block;
        width: 110px;
    }
}
@media (min-width: 640px) {
    .aboutUs {
        padding: 60px;
    }
    .news {
        padding: 60px;  
    }
    .news ul li {
        padding-left: 120px;
    }
    .news ul li time {
        position: absolute;
        left: 0;
        top: 12px;
        z-index: 1;
    }
}
@media (min-width: 992px) {
    .aboutUs {
        padding: 40px 60px;
    }
    .news {
        position: relative;
        margin-top: -160px;
        padding: 80px 60px 20px 60px;  
    }
}
@media (min-width: 1200px) {
    .aboutUs {
        padding: 60px 60px;
    }
    .news {
        padding: 80px 60px 50px 60px;  
    }
}
@media (min-width: 1600px) {
    .aboutUs {
        padding: 100px 100px;
    }
    .news {
        padding: 80px 100px 50px 100px;  
    }
}


/*========================================================
                        商品目錄
=========================================================*/

.products {
    padding-top: 60px;
    padding-bottom: 60px;
}
.products .products-item {
    position: relative;
    background-position: center center;
    background-size: cover;
    margin-bottom: 30px;
    height: 300px;
}
.products .products-item h3 {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    color: #fff;
	text-shadow: 2px 2px 1px #000;
}
.products .products-item a {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: #fff;
    text-align: center;
    color: #fff;
    opacity: 0;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}
.products .products-item a:hover {
    opacity: 0.2;
}
.products .products-item:after {
    font-family: 'Font Awesome 5 free';
    content: "\f002";
    font-weight: 900;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 9;
    color: #fff;
    font-size: 3rem;
    opacity: 0;
}
.products .products-item:hover:after {
    opacity: 1;
}


/*  尺寸設定 */
@media (min-width: 992px) {
    .products {
        padding-top: 0;
    }
    .products .products-item {
        height: 210px;
    }
    .products .col-lg-3 .col-lg-12 .products-item {
        height: 450px;
    }
}
@media (min-width: 1200px) {
    .products .products-item {
        height: 255px;
    }
    .products .col-lg-3 .col-lg-12 .products-item {
        height: 540px;
    }
}
@media (min-width: 1600px) {
    .products .products-item {
        height: 355px;
    }
    .products .col-lg-3 .col-lg-12 .products-item {
        height: 740px;
    }
}



/*========================================================
                     關於我們
=========================================================*/

.advantage {
    overflow: hidden;    
}
.advantage-info {
    color: #fff;
    padding: 10%;
    background-color: rgba(4,59,93,0.85);
}
.advantage-img {
    background: url(../img/index/advantage-bg.jpg) no-repeat center center; 
    background-size: cover;
}
.advantage-info img {
    width: 100%;
    vertical-align: bottom;
}
.advantage-info-btn a {
    display: inline-block;
    padding: 5px 30px;
    color: #fff;
    border: 1px solid #fff;
}
.advantage-info-btn a:hover {
    background-color: #fff;
    color: #000;
}

/*  尺寸設定 */
@media (min-width: 992px) {
    .advantage-info {
        padding: 15% 10% 15% 20%;
    }
    .advantage-info:after {
        content: '';
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 600px 0 0 200px;
        border-color: transparent transparent transparent rgba(4,59,93,0.85);
        position : absolute;
        top: 0;
        right: -185px;
        z-index: 9;

    }
}
@media (min-width: 1200px) {
    .advantage-info {
        padding: 20% 15% 20% 25%;
    }
}

/*========================================================
                         商品推薦
=========================================================*/

.recommend {	
    background: url(../img/index/recommend-bg.jpg) no-repeat center center; 
    background-size: cover;
	padding-top: 60px;
    padding-bottom: 60px;
}
.recommend h2 {
    color: #fff;
}
.recommend img {
    width: 100%;
    vertical-align: bottom;
}
.recommend .slider {
    border: 10px solid #c0c0c0;
}
.recommend-item {
    border: 5px solid #c0c0c0;
    background-color: #fff;
    position: relative;
    padding: 30px;
}
.recommend-item-img {
    position: relative;
    margin: 0;
    display: block;
    width: 100%;
    text-decoration: none;
    color: #fff;
    background-color: #f0f4f8;
    overflow: hidden
}
.recommend-item-img:hover {
    color: #fff
}
.recommend-item-img:hover .recommend-item-mask {
    opacity: 1;
    visibility: visible
}
.recommend-item-img:hover .recommend-item-mask::after {
    height: 100%
}
.recommend-item-img img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover
}
.recommend-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
}
.recommend-item-mask::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 50px;
    width: 100%;
    background-color: rgba(0, 0, 0, .5);
    transform: translateY(-50%);
    transition: all .3s
}
.recommend-item-mask span {
    position: relative;
    display: block;
    z-index: 2;
    padding: 5px 30px;
}
.recommend-item-info {
    text-align: left;
    padding: 20px 0 0 0;
}
.recommend-item-info h3 {
    font-weight: bold;
    font-size: 1.3rem;
    margin: 10px 0 20px 0;
}
.recommend-item-info .price  {
    font-weight: bold;
    color: #c31e1e;
    font-size: 1.2rem;
    margin: 0;
}
.recommend-btn {
    margin-top: 60px;
    text-align: center;
}
.recommend-btn a {
    display: inline-block;
    color: #fff;
    padding: 5px 0;
    font-size: 1.2rem;
}
.recommend-btn a i {
    display: inline-block;
    margin: 0 10px;
}
.recommend-btn a:hover {
    color: #fff;
    background-color: #0870c9;
}


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

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;
}


