.clearfix:after {
    content: '';
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

/************************* recommend_pc *************************/
.recommend_pc,
.recommend_pc * {
    margin: 0px;
    padding: 0px;
    font-family: "Noto Sans TC", "Microsoft JhengHei UI", "Microsoft JhengHei", sans-serif; 
	box-sizing: border-box;
    text-decoration: none;
}

.recommend_pc {
    background-color: rgba(0, 0, 0, 0.9);
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-size: cover;
    width: 100%;
    height: calc(100% - 30px);
    position: relative;
    /*display: none;*/
}

/* 影音piece */
.recommend_pc .part_list {
    width: calc(100% - 40px);
    display: flex;
    flex-wrap: wrap;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.recommend_pc .part_list .piece {
    width: calc((100% - 18px) / 4);
    margin-left: 6px;
    margin-bottom: 6px;
    overflow: hidden;
    position: relative;
}

.recommend_pc .part_list .piece::after {
    content: "";
    display: block;
    padding-bottom: calc((9 / 16) * 100%);
}

.recommend_pc .part_list .piece::before {
    content: "";
    display: block;
    width: 0%;
    height: 2px;
    background-color: #ea4e16;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 5;
    transition: width 0.5s linear;
}

.recommend_pc .part_list .piece:nth-child(4n+1) {
    margin-left: 0px;
}

.recommend_pc .part_list .piece:nth-last-child(1),
.recommend_pc .part_list .piece:nth-last-child(2),
.recommend_pc .part_list .piece:nth-last-child(3),
.recommend_pc .part_list .piece:nth-last-child(4) {
    margin-bottom: 0px;
}

.recommend_pc .part_list .piece a.pic {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
}

.recommend_pc .part_list .piece a.pic img {
    width: 100%;
    height: 100%;
    object-fit:contain;
    position: absolute;
    top: -9999px;
    right: -9999px;
    bottom: -9999px;
    left: -9999px;
    margin: auto;
    transition: all 0.5s linear;
}

.recommend_pc .part_list .piece .overlap {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3) url(images/icon_loading.svg) center 50% no-repeat; background-size: auto 30%;
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 4;
    display: none;
}

/*768px*/
@media only screen and (max-width:768px) {
    .recommend_pc .part_list .piece .overlap {
        background-position: center 35%;
    }
}

.recommend_pc .part_list .piece .overlap .btn_cancel {
    font-size: 11px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    text-shadow: 0px 0px 5px rgba(30, 30, 30, 0.9);
    pointer-events: auto;
    cursor: pointer;
    padding: 2px 5px;
    background-color: rgb(0, 0, 0, 0.8);
    position: absolute;
    left: 50%;
    bottom: 15%;
    transform: translateX(-50%);
}

.recommend_pc .part_list .piece h2 {
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 40%, rgba(0, 0, 0, 0) 100%);
    font-size: 14px;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.9);
    padding: 5px 10px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 4;
    display: none;
}

.recommend_pc .part_list .piece h2 a {
    /*以下截字*/
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /*最多幾行*/
}

.recommend_pc .part_list .piece h2 a:link,
.recommend_pc .part_list .piece h2 a:visited {
    color: #fff;
    text-decoration: none;
}

.recommend_pc .part_list .piece h2 a:hover,
.recommend_pc .part_list .piece h2 a:active {}

.recommend_pc .part_list .piece:hover a.pic img {
    width: 105%;
    height: 105%;
}

.recommend_pc .part_list .piece:hover h2 {
    display: block;
    font-weight: 500;
}

.recommend_pc .part_list .piece:hover::before {
    width: 100%;
}

.recommend_pc .part_list .piece.style_1::before {
    display: none;
}

.recommend_pc .part_list .piece .piece_video {
    width: 100%;
    height: 100%;
    z-index: 2;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    position: absolute;
    display: block;
}

/************************* recommend_mobile *************************/
.recommend_mobile,
.recommend_mobile * {
    margin: 0px;
    padding: 0px;
    font-family: "Noto Sans TC", "Microsoft JhengHei UI", "Microsoft JhengHei", sans-serif;
    box-sizing: border-box;
    text-decoration: none;
}

.recommend_mobile {
    background-color: #000;
    font-size: 12px;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: calc(100% - 30px);    
    padding: 7% 0;  
}

.recommend_mobile .run{
    opacity: 0.1;
}

/* init */
.recommend_mobile.init .run{
    opacity: 1;
}

.recommend_mobile .run .owl-controls .owl-nav {
    margin-top: 0px;
    /*歸零*/
}

.recommend_mobile .run .piece {
    margin: 0 3%;
    position: relative;
}

.recommend_mobile .run .piece::before {
    content: "";
    display: block;
    width: 0%;
    height: 2px;
    background-color: #ea4e16;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    transition: width 0.5s linear, opacity 0.1s 2s linear;
}

.recommend_mobile .run .piece .overlap {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2) url(images/icon_loading.svg) center 15% no-repeat; background-size: auto 30%;    
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
}

.recommend_mobile .run .piece .overlap .btn_cancel {
    font-size: 0.6em;
    font-weight: 500;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    text-shadow: 0px 0px 5px rgba(30, 30, 30, 0.9);
    pointer-events: auto;
    cursor: pointer;
    padding: 2px 5px;
    background-color: rgb(0, 0, 0, 0.8);
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translateX(-50%);
}



.recommend_mobile .run .piece > h2 {
    width: 100%;
    height: 3.5em;
    font-size: 0.8em;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0) 100%);
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.9);
    padding: 0px 8px;
    overflow: hidden;
    position: absolute;
    left: 0px;
    bottom: 0px;
}

.recommend_mobile .run .piece > h2 > a {
    display: block;
    font-weight: 500;
    line-height: 1.2;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9), -1px -1px 5px rgba(0, 0, 0, 0.9), 1px 1px 5px rgba(0, 0, 0, 0.9);
    transform: translateY(200%);
    transition: 0.5s ease-in-out;
    /*以下截字*/
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /*最多幾行*/
}

.recommend_mobile .run .piece > h2 > a:link,
.recommend_mobile .run .piece > h2 > a:visited {
    color: #fff;
    text-decoration: none;
}

.recommend_mobile .run .owl-item.active.center .piece > h2 a {
    transform: translateY(0%);
}

.recommend_mobile .run .owl-item.active.center .piece::before {
    width: 100%;
    opacity: 0;
}

/*414px*/
@media only screen and (min-width:414px) {
    .recommend_mobile {
        font-size: 18px;
    }

    .recommend_mobile .run .owl-item.active.center .piece > h2 a {
        transform: translateY(40%);
    }
}

/*768px*/
@media only screen and (min-width:768px) {
    .recommend_mobile {
        font-size: 24px;
    }
}