/* 先複製來參考用 */

.single_line_ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.multiple_line_ellipsis {
    overflow: hidden;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.limit_line_2 {
    -webkit-line-clamp: 2;
}
.limit_line_5 {
    -webkit-line-clamp: 5;
}
.limit_line_8 {
    -webkit-line-clamp: 8;
}
.limit_line_10 {
    -webkit-line-clamp: 10;
}

.fill_img, .fill_video {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* 猜你喜歡 */

/* 初始設定 */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

p, h1 {
    margin: 0;
}

hr {
    border: 1px solid #E9E9E9;
    width: 100%;
}

/* 猜你喜歡頁面 */
.avividai_you_like_container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2147483645;
    overflow: auto;
    background-color: #FFF;
}

.close_you_like {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 250;
}
@media (max-width: 767px) {
    .close_you_like {
        top: 6px;
        right: 6px;
    }
    .close_you_like svg {
        width: 25px;
        height: 25px;
    }
}

.you_like_page {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
@media (max-width: 767px) {
    .you_like_page {
        width: 100%;
        gap: 24px;
    }
}
@media (min-width: 768px) and (max-width: 1200px) {
    .you_like_page {
        width: 100%;
    }   
}

.header_you_like {
    display: flex;
    position: relative;
    height: 60px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    position: sticky;
    top: 0;
    background-color: #FFF;
    z-index: 200;
}

.customer_logo {
    width: 67px;
    height: 60px;
    position: absolute;
    left: 0;
    overflow: hidden;
}
.customer_logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.you_like_title p {
    color: #000;
    font-family: Roboto;
    font-size: 26.766px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}
@media (max-width: 767px) {
    .header_you_like {
        height: 36px;
    }
    .customer_logo {
        width: 40px;
        height: 36px;
    }
    .you_like_title p {
        font-size: 16px;
    }
}

.content_you_like {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F3F8F8;
}
.six_unit_item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    z-index: 100;
    background: #FFF;
    padding-bottom: 24px;
}
.content_you_like .six_unit_item:nth-child(3) {
    padding-top: 24px;
}
.six_unit_item:last-child {
    padding-bottom: 0px;
}
.connect_backpanel_area {
    margin-bottom: 250px;
}
@media (max-width: 767px) {
    .connect_backpanel_area {
        margin-bottom: 480px;
    }
    .six_unit_item {
        padding-left: 12px;
        padding-right: 12px;
        gap: 20px;
        padding-bottom: 20px;
    }
    .six_unit_item:nth-child(3) {
        padding-top: 20px;
    }
}
@media (min-width: 768px) and (max-width: 1200px) {
    .connect_backpanel_area {
        margin-bottom: 200px;
    }
}

.first_row, .second_row, .third_row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
@media (max-width: 767px) {
    .first_row, .second_row, .third_row {
        flex-direction: column;
    }
    .three_to_one {
        width: 300px;
        height: 250px;
        gap: 12.5px;
    }
    .three_to_one .ad_unit, .three_to_one .ad_unit a {
        height: 71px;
        flex-direction: row;
        gap: 10px;
    }
    .three_to_one .ad_unit .unit_img {
        width: 125px;
        height: 71px;
    }
}

.doc_unit, .doc_unit a {
    display: flex;
    width: 300px;
    height: 250px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.ad_unit, .ad_unit a {
    display: flex;
    width: 300px;
    height: 250px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1 0 0;
}
.large_doc_unit, .large_doc_unit a {
    display: flex;
    width: 460px;
    height: 345px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}
.doc_unit a, .ad_unit a, .large_doc_unit a {
    text-decoration: none;
}

.unit_img {
    width: 300px;
    height: 170px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}
.unit_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.unit_context {
    display: flex;
    width: 300px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
    gap: 8px;
}

.large_unit_img {
    width: 460px;
    height: 261px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}
.large_unit_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.large_unit_context {
    display: flex;
    width: 460px;
    height: 84px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
    gap: 8px;
}

.from_article p {
    color: var(--Neutral-Black-800, #333);
    font-family: Noto Sans;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
}

.from_date p {
    color: var(--Neutral-Black-600, #666);
    font-family: Noto Sans;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}
.large_from_date p {
    color: var(--Neutral-Black-600, #666);
    font-family: Noto Sans;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.ad_context {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 0 0;
    align-self: stretch;
}
.ad_logo {
    display: flex;
    width: 40px;
    height: 40px;
    /* padding: 10px; */
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #E6256E;
}
.ad_small_logo {
    display: none;
    width: 20px;
    height: 20px;
    /* padding: 5px; */
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: #E6256E;

    font-size: 8px;
}
.ad_logo img, .ad_small_logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ad_info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
    flex: 1;
}
.ad_description p {
    color: var(--Neutral-Black-800, #333);
    font-family: Noto Sans;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
}
.ad_price {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 6px;
    align-self: stretch;
}
.ad_price p {
    flex: 1 0 0;
    align-self: stretch;

    color: var(--Primary-Dark-Blue, #2E3B53);
    font-family: Noto Sans;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}
@media (max-width: 767px) {
    .large_doc_unit, .large_doc_unit a {
        width: 300px;
        height: 250px;
    }
    .large_unit_img {
        width: 300px;
        height: 170px;
    }
    .large_unit_context {
        width: 300px;
    }
    .three_to_one .ad_price {
        justify-content: space-between;
    }
    .three_to_one .ad_logo {
        display: none;
    }
    .three_to_one .ad_small_logo {
        display: flex;
    }
}
@media (min-width: 768px) and (max-width: 1200px) {
    .doc_unit, .doc_unit a, .ad_unit, .ad_unit a {
        width: 240px;
        height: 200px;
    }
    .unit_img {
        width: 240px;
        height: 136px;
    }
    .unit_context {
        width: 240px;
    }
    .large_doc_unit, .large_doc_unit a {
        width: 368px;
        height: 276px;
    }
    .large_unit_img {
        width: 368px;
        height: 209px;
    }
    .large_unit_context {
        width: 368px;
        height: 67px;
    }
}

/* 猜你喜歡置底背版 */
.backpanel_area {
    width: 940px;
    height: 250px;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
}
.backpanel_area img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.backpanel_area .desktop {
    display: block;
}
.backpanel_area .mobile {
    display: none;
}
@media (max-width: 767px) {
    .backpanel_area {
        width: 320px;
        height: 480px;
        transform: translateY(-55%);
    }

    .backpanel_item {
        width: 320px;
        height: 480px;
        background: #FFF;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .backpanel_item .backpanel_img {
        width: 320px;
        height: 320px;
    }
    .backpanel_item .backpanel_context {
        display: flex;
        flex-direction: column;
        padding: 16px;
        gap: 8px;
    }
    .backpanel_title p {
        font-style: normal;
        font-family: 'Note Sans TC';
        line-height: 24px;
        letter-spacing: 1px;
        font-weight: 700;
        font-size: 18px;
    }
    .backpanel_description p {
        font-style: normal;
        font-family: 'Note Sans TC';
        line-height: 24px;
        letter-spacing: 1px;
        font-weight: 400;
        font-size: 15px;
    }
    .backpanel_link {
        background-color: #0089ff;
        border-radius: 40px;
        width: 160px;
        margin: 0 auto;
    }
    .backpanel_link:hover {
        cursor: pointer;
    }
    .backpanel_link p {
        text-align: center;
        color: #FFF;

        font-size: 16px;
        font-family: 'Note Sans TC';
        font-weight: 700;
        line-height: 43px;
        letter-spacing: 4px;
    }

    .backpanel_area .desktop {
        display: none;
    }
    .backpanel_area .mobile {
        display: block;
    }
}
@media (min-width: 768px) and (max-width: 1200px) {
    .backpanel_area {
        width: 760px;
        height: 200px;
    }
}


/* 猜你喜歡置底橫幅 */
.bottom_ad_area {
    display: none;
    width: 640px;
    height: 100px;
    background-color: #FFF;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
}

.close_bottom_ad {
    position: absolute;
    right: 0;
    top: -32px;
}
.close_bottom_ad:hover {
    cursor: pointer;
}

.buttom_ad_img {
    width: 155px;
    flex-shrink: 0;
    overflow: hidden;
}
.buttom_ad_img img {
    object-fit: cover;
    width: 100%;
}

.buttom_ad_context {
    flex: 4;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
}

.buttom_ad_slogan p {
    color: #000;
    font-family: Noto Sans;
    font-size: 31.144px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}
.buttom_ad_description {
    width: 430px;
}
.buttom_ad_description p {
    color: #000;
    font-family: Noto Sans;
    font-size: 19.033px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.bottom_ad_layout {
    display: none;
    width: 640px;
    height: 100px;
}
@media (max-width: 767px) {
    .bottom_ad_layout {
        width: 320px;
        height: 50px;
    }
    .bottom_ad_area {
        width: 320px;
        height: 50px;
    }
    .buttom_ad_img {
        width: 70px;
    }
    .buttom_ad_context {
        gap: 4px;
        padding: 4px;
    }
    .buttom_ad_slogan p {
        font-size: 16.221px;
    }
    .buttom_ad_description {
        width: 220px;
    }
    .buttom_ad_description p {
        font-size: 9.913px;
    }
    .close_bottom_ad {
        top: -20px;
    }
    .close_bottom_ad svg {
        width: 17px;
        height: 17px;
    }
}

/* 猜你喜歡蓋板廣告 */
.you_like_mask {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    background-color: #000;
    opacity: .5;
    width: 100vw;
    height: 100vh;
}

.modal_ad_area {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1010;
    width: 100vw;
    height: 100vh;
}

.modal_ad_frame {
    background-color: #FFF;
    margin: auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}
@media (max-width: 767px) {
    .modal_ad_item {
        width: 320px; 
        height: 480px;
    }
    
    .modal_ad_item {
        width: 320px;
        height: 480px;
        background: #FFF;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .modal_ad_item .modal_ad_img {
        width: 320px;
        height: 320px;
    }
    .modal_ad_item .modal_ad_img img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    .modal_ad_item .modal_ad_context {
        display: flex;
        flex-direction: column;
        padding: 16px;
        gap: 8px;
    }
    .modal_ad_title p {
        font-style: normal;
        font-family: 'Note Sans TC';
        line-height: 24px;
        letter-spacing: 1px;
        font-weight: 700;
        font-size: 18px;
    }
    .modal_ad_description p {
        font-style: normal;
        font-family: 'Note Sans TC';
        line-height: 24px;
        letter-spacing: 1px;
        font-weight: 400;
        font-size: 15px;
    }
    .modal_ad_link {
        background-color: #0089ff;
        border-radius: 40px;
        width: 160px;
        margin: 0 auto;
    }
    .modal_ad_link:hover {
        cursor: pointer;
    }
    .modal_ad_link p {
        text-align: center;
        color: #FFF;

        font-size: 16px;
        font-family: 'Note Sans TC';
        font-weight: 700;
        line-height: 43px;
        letter-spacing: 4px;
    }
}

.close_modal_ad {
    position: absolute;
    top: 6px;
    right: 4px;
}
.close_modal_ad:hover {
    cursor: pointer;
}

/* 回到最上層 */
.back_to_top {
    position: fixed;
    bottom: 10vh;
    right: 8vw;
    z-index: 250;
}
.back_to_top:hover {
    cursor: pointer;
}
.back_to_top svg {
    width: 50px;
    height: 50px;
}
@media (max-width: 767px) {
    .back_to_top {
        right: 10px;
        bottom: 70px;
        z-index: 250;
    }
    .back_to_top svg {
        width: 40px;
        height: 40px;
    }
}
@media (min-width: 768px) and (max-width: 1200px) {
    .back_to_top {
        bottom: 15vh;
        right: 2vw;
    }
}

/* 禾多logo */
.avividai_logo {
    width: 16px;
    height: 16px;
    overflow: hidden;
}
.avividai_logo img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    vertical-align: baseline;
}
.avividai_bottom_logo {
    width: 22px;
    height: 22px;
    overflow: hidden;
    position: absolute;
    bottom: 12px;
    right: 20px;
}
.avividai_bottom_logo img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    vertical-align: super;
}
.avividai_backpanel_logo, .avividai_modal_ad_logo {
    width: 18px;
    height: 18px;
    overflow: hidden;
    position: absolute;
    bottom: 12px;
    right: 12px;
}
.avividai_backpanel_logo img, .avividai_modal_ad_logo img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    vertical-align: baseline;
}
@media (max-width: 767px) {
    .avividai_bottom_logo {
        width: 13px;
        height: 13px;
        bottom: 6px;
        right: 10px;
    }
}