/* -------------------------------輪播共用------------------------------- */
.slick-center {
    opacity: 1 !important;
}

.slick-list {
    padding: 0 !important;
    margin: 0;
}

.slick-slide img {
    width: 100%;
}

.slick-dotted.slick-slider {
    margin: 0;
}

.slick-dots li.slick-active button:before {
    color: #B50528;
    opacity: 1;
}

.slick-prev:before {
    content: '\f104';
    font-family: 'Font Awesome 5 Free';
}

.slick-next:before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
}
/* -------------------------------end 輪播共用------------------------------- */

/* KV */

.kv-images {
    position: relative;
    width: 100%;
    /* height: 600px; */
    padding-bottom: 41.6vw;
    margin: 0;
}

.kv-images a {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    width: 100%;
    height: 100%;
    outline: none;
}
.kv-images a .banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
}

.kv-images a .banner.P {
    display: block;
    background-size: cover;
    background-position: top center;
}

.kv-images a .banner.M {
    display: none;
    background-position: center;
    background-size: cover;
}

.kv .kv-slick .slick-prev,
.kv .kv-slick .slick-next {
    width: 32px;
    height: 0;
    top: 40%;
}

.kv .kv-slick .slick-prev {
    left: 40px;
    z-index: 1;
}

.kv .kv-slick .slick-next {
    right: 40px;
}

    .kv .kv-slick .slick-prev:before,
    .kv .kv-slick .slick-next:before {
        color: #fff;
        font-size: 64px;
        font-weight: 900;
        opacity: 1;
    }

.kv .kv-slick .slick-dots {
    bottom: 20px;
}

    .kv .kv-slick .slick-dots li.slick-active button:before {
        color: #B50528;
    }

    .kv .kv-slick .slick-dots li button:before {
        color: #fff;
        opacity: 1;
    }
/* end KV */


/* -------------------------------新到商品------------------------------- */
.new-arrvial {
    padding-bottom: 40px;
}

    .new-arrvial .title_ch:before {
        content: url('../images/icon_new.png');
        display: block;
    }
/* 商品輪播 */
.product {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.product-images {
    width: 100%;
    /* max-width: 300px; */
    margin: 0px auto;
    -webkit-transition: transform 0.35s;
    transition: transform 0.35s;
}

.product-title {
    width: 100%;
    /* max-width: 300px; */
    margin: 16px auto 0 auto;
    font-size: 2em;
    line-height: 1.5em;
    color: #707070;
    text-align: center;
}

.product-box {
    cursor: pointer;
}

    .product-box a {
        outline: none;
        display: block;
        position: relative;
    }

    .product-box:hover .product-images {
        box-shadow: 4px 4px 8px 1px rgba(0, 0, 0, 0.1);
        transform: scale(1) translate(-4px, -4px);
    }

    .product-box:hover .product-title {
        color: #B50528;
    }

.product-slick .slick-slide {
    margin: 0 20px;
}

.product-slick .slick-prev:before,
.product-slick .slick-next:before {
    color: #B50528;
    font-size: 40px;
    font-weight: 900;
    opacity: 1;
}

.product-slick .slick-dots {
    position: relative;
    top: 24px;
}
/* end 商品輪播 */

/* -------------------------------最新消息------------------------------- */
.news {
    display: flex;
}

    .news .title {
        width: 80px;
        background-color: #B50528;
        padding: 40px;
    }

    .news .title_ch {
        font-size: 3.2em;
        color: #fff;
        width: 80px;
        margin: 0 auto;
    }

    .news .title_en {
        font-size: 1.6em;
        color: #fff;
        position: relative;
    }

        .news .title_en:before,
        .news .title_en:after {
            content: "";
            padding: 4px;
        }

.news-content {
    width: 100%;
    color: #000;
    background-color: #F7F7F7;
    padding: 24px;
    position: relative;
}

.article {
    display: flex;
    padding: 8px 0;
}

.date {
    margin-right: 16px;
}

.news-title {
    color: #707070;
    font-size: 2em;
}

.news-content .btn {
    position: absolute;
    right: 24px;
    bottom: 24px;
    padding: 8px 16px;
    border: 1px solid rgba(0, 0, 0, 0);
}

.article:hover .news-title {
    color: #B50528;
}

.news-content .btn:hover {
    border: 1px solid #B50528;
    border-radius: 8px;
    padding: 8px 16px;
}

/* -------------------------------美味推薦------------------------------- */
.recipe .title {
    padding-bottom: 40px;
}

.recipe .title_ch:before {
    content: url('../images/icon_recipe.png');
    display: block;
}

/* 產品 */
.recipe-product {
    width: 30%;
}

    .recipe-product .product-images {
        margin: 40px auto 20px auto;
        max-width: 300px;
    }

    .recipe-product .product-title {
        max-width: 300px;
    }
/* 食譜圖片效果 */
.recipe-content {
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

    .recipe-content .recipe-box {
        position: relative;
        width: 70%;
        cursor: pointer;
        color: #fff;
        font-size: 2.4em;
    }

        .recipe-content .recipe-box .recipe-images {
            width: 100%;
            padding-top: 60%;
            background: url('../images/example-food-1.png') top center no-repeat;
            -webkit-background-size: cover;
            background-size: cover;
            margin: 0;
        }

        .recipe-content .recipe-box .recipe-title {
            font-size: 2.4rem;
            max-width: 50%;
            padding: 8px 38px;
            vertical-align: center;
            top: 0;
            -webkit-transition: -webkit-transform 0.5s;
            transition: transform 0.5s;
            -webkit-transform: translate3d(0,20px,0);
            transform: translate3d(0,20px,0);
            background-color: rgba(181, 5, 40, 0.9);
        }

        .recipe-content .recipe-box p {
            font-size: 1.6rem;
        }
/*---------------*/
/***** Marley *****/
/*---------------*/

.effect-marley {
    text-align: left;
}

    .effect-marley .recipe-title,
    .effect-marley p {
        position: absolute;
        left: 0px;
    }

    .effect-marley p {
        bottom: 30px;
        line-height: 1.5;
        -webkit-transform: translate3d(0,100%,0);
        transform: translate3d(0,100%,0);
    }
    .recipe-product.effect-marley:hover {
        background-color: rgba(191, 129, 37, 0.9);
    }
    .effect-marley:hover {
        -webkit-transition: opacity 0.5s, -webkit-transform 0.5s;
        transition: opacity 0.5s, transform 0.5s;
        background-color: rgba(181, 5, 40, 0.9);
    }

        .effect-marley:hover .recipe-images {
            opacity: 0.1;
        }

        .effect-marley:hover .recipe-title {
            bottom: 0;
            -webkit-transform: translate3d(0,280px,0);
            transform: translate3d(0,280px,0);
            background-color: rgba(0, 0, 0, 0);
        }

    .effect-marley p:before {
        position: absolute;
        top: 0;
        left: -5%;
        right: 0;
        width: 100%;
        height: 1px;
        background: #fff;
        content: '';
        -webkit-transform: translate3d(0,40px,0);
        transform: translate3d(0,40px,0);
    }

    .effect-marley p:before,
    .effect-marley p {
        opacity: 0;
        -webkit-transition: opacity 0.5s, -webkit-transform 0.5s;
        transition: opacity 0.5s, transform 0.5s;
    }

.effect-marley:hover p {
    width: 90%;
    padding-top: 8px;
    top: 65%;
    opacity: 1;
}
.effect-marley:hover p:before,
.effect-marley:hover p {
  opacity: 1;
  -webkit-transform: translate3d(5%,0,0);
  transform: translate3d(5%,0,0);
}

    .effect-marley:hover .product-title {
        color: #fff;
    }

    .effect-marley:hover .product-images {
        opacity: 0.1;
    }

/* end 圖片效果 */


/* -------------------------------影音推薦------------------------------- */
.video .title_ch:before {
    content: url('../images/icon_video.png');
    display: block;
}

.video-content {
    margin: 40px 0;
}

.video-box {
    box-shadow: 4px 4px 8px 1px rgba(0, 0, 0, 0.1);
    -webkit-transition: transform 0.35s;
    transition: transform 0.35s;
    margin: 4px;
}

    .video-box:hover {
        box-shadow: 4px 4px 8px 1px rgba(0, 0, 0, 0.3);
        transform: scale(1) translate(-4px, -4px);
    }

.video-title {
    font-size: 2em;
    color: #707070;
    padding: 16px;
    height: 60px;
}

.video-box:hover .video-title {
    color: #B50528;
}
/* 影片輪播 */
.video-slick .slick-slide {
    margin: 8px 24px;
}


.video-img {
    position: relative;
}

.mask {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.3;
}

.video-slick .slick-prev:before,
.video-slick .slick-next:before {
    color: #B50528;
    font-size: 40px;
    font-weight: 900;
    opacity: 1;
}

.video-slick .slick-dots {
    position: relative;
    top: 24px;
}

/* popup video */
.video-box {
    position: relative;
    display: block;
    overflow: hidden;
}

    .video-box .play {
        position: absolute;
        width: 20%;
        padding-top: 20%;
        display: block;
        background: url('../images/train_play.svg');
        background-size: cover;
        top: 40%;
        left: 50%;
        transform: translate(-50%,-50%);
    }

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,.9);
    z-index: 999;
    justify-content: center;
    align-items: center;
    transform: scale(0);
    transition: all .2s;
    transition-timing-function: cubic-bezier(.41,.2,.83,.67);
}

    .popup.on {
        display: flex;
        transform: scale(1);
        transition: all .4s;
        transition-timing-function: cubic-bezier(.19,1.27,.64,1.08);
    }

    .popup .video_block {
        position: relative;
        width: 70vw;
        max-width: 800px;
    }

    .popup .video-title {
        color: #fff;
        padding: 8px 0;
        height: auto;
    }

    .popup .video_block .close {
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: 40px;
        cursor: pointer;
        transform: translate(50%,-100%);
        transition: all .4s;
    }

        .popup .video_block .close:before, .popup .close:after {
            position: absolute;
            content: '';
            width: 80%;
            height: 4px;
            display: block;
            background: #fff;
            top: 50%;
            left: 10%;
            transform: rotate(-45deg);
        }

        .popup .video_block .close:after {
            transform: rotate(45deg);
        }

.popup-video-slick .slick-slide {
    margin: 8px 24px;
}

/*.popup-video-slick .video-box iframe {
    height: 420px;
}*/

.popup-video-slick .video-box .youtubeContain {
    width: 100%;
    background-color: #000;
    height: 420px;
}

.popup-video-slick .slick-prev, .popup-video-slick .slick-next {
    top: 50%;
}

    .popup-video-slick .slick-prev:before,
    .popup-video-slick .slick-next:before {
        color: #B50528;
        font-size: 40px;
        font-weight: 900;
        opacity: 1;
    }

.popup-video-slick .slick-dots {
    position: relative;
    top: 24px;
}


    .popup-video-slick .slick-dots li button:before {
        color: #fff;
        opacity: 1;
    }

    .popup-video-slick .slick-dots li.slick-active button:before {
        color: #B50528;
        opacity: 1;
    }

/* end popup video */

/* end 影片輪播 */

/* $Mobile
--------------------------------------------------------------------------------------*/
@media screen and (max-width: 1025px) {
    .kv {
        margin-top: 64px;
    }
    .kv-images {
        width: 100%;
        /* height: 145vw; */
        padding-bottom: 144.6vw;
        margin: 0;
    }
    .kv-images a .banner.P {
        display: none;
    }

    .kv-images a .banner.M {
        display: block;
    }

    .kv .kv-slick .slick-dots {
        bottom: 24px;
    }

    /* -------------------------------新到商品------------------------------- */
    .new-arrvial {
        padding-bottom: 24px 0;
    }

    .product {
        padding: 40px 0;
    }

    .product-title {
        max-width: 300px;
    }

    .product-images {
        max-width: 300px;
    }

    .product-slick .slick-prev {
        left: 16px;
    }

    .product-slick .slick-next {
        right: 16px;
    }

    .product-slick .slick-dots {
        top: 12px;
    }


    /* -------------------------------最新消息------------------------------- */
    .news {
        display: block;
        padding: 0;
    }

        .news .title {
            width: 100%;
            padding: 16px 0;
        }

        .news .title_ch {
            width: 100%;
            font-size: 2.6em;
        }

        .news .title_en {
            font-size: 1.4em;
        }

    .news-content {
        width: 100%;
        padding: 16px 0 100px 0;
    }

        .news-content .article {
            display: flex;
            flex-wrap: wrap;
            padding: 8px 16px;
        }

    .news-title {
        width: 100%;
    }

    .news-content .btn {
        bottom: 16%;
        right: 50%;
        transform: translate(50%,50%);
    }


    /* -------------------------------美味推薦------------------------------- */
    .recipe {
        padding: 40px 0;
    }

    .recipe-content .recipe-box {
        width: 100%;
        order: 1;
    }

    .recipe-content .recipe-product {
        width: 100%;
        order: 2;
        padding: 0 0 24px 0;
    }

    .recipe-content .recipe-box .recipe-images {
        padding-top: 120%;
        -webkit-background-size: cover;
        background-size: cover;
    }

    .recipe-content .recipe-box .recipe-title {
        max-width: 84%;
        font-size: 2rem;
    }
    .effect-marley:hover {
        background-color: rgba(181, 5, 40, 0);
    }
    .effect-marley:hover .recipe-images{
        opacity: 1;
    }
    .effect-marley:hover .recipe-title{
        transform: translate3d(0,20px,0);
        padding: 8px 38px;
        background-color: rgba(181, 5, 40, 0.9);
        height: 28px;
    }
    .effect-marley:hover p:before,
    .effect-marley:hover p{
        opacity: 0;
    }


    /* -------------------------------影音推薦------------------------------- */

    .video-content {
        padding: 0;
    }

    .video-slick .slick-slide {
        margin: 8px 30px;
    }

    .video-slick .slick-prev {
        left: 0;
    }

    .video-slick .slick-next {
        right: 0;
    }

    .videot-slick .slick-dots {
        top: 12px;
    }

    .popup-video-slick .video-box iframe {
        height: 200px;
    }

    .popup .video_block {
        width: 80vw;
    }

    .video-title {
        height: 80px;
    }

    .popup-video-slick .slick-slide {
        margin: 0;
    }

    .popup .video_block .close {
        transform: translate(80%,-130%);
    }

    .popup-video-slick .slick-next {
        right: -30px;
    }

    .popup-video-slick .slick-prev {
        left: -30px;
    }
}
