﻿@media (min-width: 1200px) {
    .container {
        max-width: 1002px !important;
    }

        .container.swiper-container {
            max-width: 970px !important;
        }
}

@media (min-width: 1900px) {
    .container {
        max-width: 1002px;
    }
}

.container,
.container-fluid {
    padding-left: 16px;
    padding-right: 16px;
}

.row {
    margin-right: -16px;
    margin-left: -16px;
}

.col,
.col-1,
.col-10,
.col-11,
.col-12,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-auto,
.col-lg,
.col-lg-1,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-auto,
.col-md,
.col-md-1,
.col-md-10,
.col-md-11,
.col-md-12,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-auto,
.col-sm,
.col-sm-1,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-auto,
.col-xl,
.col-xl-1,
.col-xl-10,
.col-xl-11,
.col-xl-12,
.col-xl-2,
.col-xl-3,
.col-xl-4,
.col-xl-5,
.col-xl-6,
.col-xl-7,
.col-xl-8,
.col-xl-9,
.col-xl-auto {
    padding-left: 16px;
    padding-right: 16px;
}

html,
body {
    font-family: "Noto Sans TC", "黑體-繁", "Apple LiGothic Medium", PingFang, "微軟正黑體", "Microsoft JhengHei", "WenQuanYi Zen Hei", "helvetica", Arial, sans-serif, 'Font Awesome 5 Free', "Font Awesome 5 Brands";
    line-height: 1.75;
}

body {
    font-size: 16px;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    background: #f8fcff;
    color: #000;
    /*padding-bottom: 60px;*/
}

@media (min-width: 576px) {
    body {
        padding-bottom: 0;
    }
}

hr.hr-blue {
    border-top: 1px solid rgba(60,96,247,0.1);
}

hr {
    margin-top: 10px;
    margin-bottom: 10px;
    border-top: 1px solid #e8e8e8;
}
ul {
    list-style: none;
    padding: 0;
}
.btn {
    font-weight: 400;
    display: inline-block;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn.btn-talkmore,
.btn.loadmore {
    margin-top: -10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-color: rgba(60,96,247,0.1);
    background-color: #fff;
    color: #007bff;
   
}

    .btn.btn-talkmore:hover,
    .btn.loadmore:hover {
        color: #fff;
        background-color: #007bff;
        border-color: #007bff;
    }

    .btn.btn-talkmore:active,
    .btn.loadmore:active {
        color: #fff;
        background-color: #007bff;
        border-color: #007bff;
    }

.mb-15 {
    margin-bottom: 15px !important;
}
.mt-30 {
    margin-top: 30px !important;
}

.news-list.video-list ul li a .img:after {
    content: "▶";
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    font-family: monospace;
    border-radius: 100%;
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    padding-left: 4px;
    padding-bottom: 4px;
    width: 50px;
    height: 50px;
    z-index: 2;
    opacity: 0.9;
}

@media (min-width: 992px) {
    .news-list.video-list ul li a .img:after {
        transform: translate(-50%, -50%) scale(1);
    }
}

.title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.heading .underline {
    border-bottom: 2px solid #e8e8e8;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
}

    .heading .underline h1,
    .heading .underline h2,
    .heading .underline h3,
    .heading .underline h4,
    .heading .underline h5 {
        display: inline-block;
        font-size: 1.4rem;
        font-weight: bold;
        margin: 0;
        color: #000;
        position: relative;
    }

        .heading .underline h1:before,
        .heading .underline h2:before,
        .heading .underline h3:before,
        .heading .underline h4:before,
        .heading .underline h5:before {
            content: "";
            width: 100%;
            display: block;
            height: 1px;
            border-bottom: 2px solid #0040e9;
            position: absolute;
            bottom: -12px;
        }

a.underline,
a.link {
    display: inline-block;
    position: relative;
}

    a.underline h4:after,
    a.link h4:after {
        content: "";
        background: #ec264b;
        display: block;
        width: 0;
        height: 2px;
        position: absolute;
        bottom: -12px;
        left: 50%;
        transition: 0.3s all;
        transform: translateX(-50%);
        transform-origin: center;
        z-index: 0;
    }

    a.underline:hover h4:after,
    a.link:hover h4:after {
        width: 100%;
    }

    a.underline:after,
    a.link:after {
        background: #ec264b;
    }
/*---------------------
新聞 - 列表
---------------------*/
.news-list {
    position: relative;
}

    .news-list .heading {
        display: block;
        position: relative;
        text-align: center;
    }

        .news-list .heading a.link {
            white-space: nowrap;
        }

    .news-list > ul {
        list-style: none;
        padding: 0;
        counter-reset: tag-counter;
    }

        .news-list > ul > li {
            position: relative;
            padding-bottom: 32px;
        }

            .news-list > ul > li > ul.tag {
                padding: 0;
                padding-bottom: 16px;
                margin-top: 0;
                margin-bottom: 0 !important;
                border-bottom-right-radius: 0;
                border-bottom-left-radius: 0;
            }

                .news-list > ul > li > ul.tag li a {
                    color: #0040e9 !important;
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    padding: 4px 10px 4px 4px;
                    border-radius: 20px;
                }

                    .news-list > ul > li > ul.tag li a:before {
                        content: counter(tag-counter);
                        counter-increment: tag-counter;
                        display: flex;
                        background: #0040e9;
                        color: #fff;
                        border-radius: 100%;
                        height: 26px;
                        width: 26px;
                        align-items: center;
                        justify-content: center;
                        margin-right: 10px;
                        font-weight: bold;
                    }

            .news-list > ul > li > a {
                background: #fff;
                display: flex;
                position: relative;
                border-radius: 4px;
                box-shadow: 0 6px 20px rgba(60,96,247,0.1);
                overflow: hidden;
                transition: all 0.3s;
            }

                .news-list > ul > li > a:hover {
                    transform: scale(1.02);
                }

                .news-list > ul > li > a .img {
                    width: 40%;
                    margin-bottom: 0;
                    position: relative;
                    transition: all 0.3s;
                }

                    .news-list > ul > li > a .img:before {
                        content: "";
                        display: block;
                        padding-bottom: 56.25%;
                        width: 100%;
                    }

                    .news-list > ul > li > a .img img {
                        object-fit: cover;
                        width: 100%;
                        height: 100%;
                        position: absolute;
                        top: 0;
                        object-fit: cover;
                        object-position: center;
                        transition: 0.3s all;
                    }

                .news-list > ul > li > a .content {
                    padding: 4px 10px;
                    width: 60%;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    position: relative;
                }

                    .news-list > ul > li > a .content .cate {
                        display: inline-block;
                        font-size: 0.875rem;
                        color: #0040e9;
                        padding: 4px 8px;
                        border-radius: 4px;
                        position: absolute;
                        left: 2px;
                        bottom: 0;
                        opacity: 1;
                        transition: 0.3s all;
                    }

                    .news-list > ul > li > a .content .title {
                        color: #000;
                        font-size: 1.1rem;
                        transform: translateY(0);
                        transform-origin: bottom;
                        transition: 0.3s all;
                        margin-bottom: 0;
                        min-height: 3rem;
                        line-height: 1.4;
                    }

                    .news-list > ul > li > a .content .time {
                        color: #63717f;
                        font-family: "Montserrat";
                        font-size: 0.75rem;
                        margin: 0;
                        padding: 0;
                        text-align: right;
                        width: 100%;
                    }

@media (min-width: 576px) {
    .news-list {
        position: relative;
    }

        .news-list .heading {
            position: relative;
            margin-bottom: 32px;
        }

        .news-list .liveheading {
            margin-bottom: 20px;
        }

        .news-list .heading + .row {
            margin-top: -16px;
        }

            .news-list .heading a.link {
                white-space: nowrap;
            }

        .news-list > ul {
            list-style: none;
            padding: 0;
        }

            .news-list > ul > li > a {
                display: block;
                position: relative;
                border-radius: 4px;
                box-shadow: 0 6px 20px rgba(60,96,247,0.1);
                overflow: hidden;
                transition: all 0.3s;
            }

                .news-list > ul > li > a:before {
                    content: "";
                    background: linear-gradient(to right, #3c60f7, #00d7ff);
                    display: block;
                    width: 100%;
                    height: 2px;
                    position: absolute;
                    bottom: 0;
                    opacity: 1;
                    transition: 0.3s all;
                }

                .news-list > ul > li > a .img {
                    background: transparent !important;
                    width: 100%;
                    margin-bottom: 0;
                    position: relative;
                    transition: all 0.3s;
                }

                    .news-list > ul > li > a .img img {
                        transform: scale(1);
                        transform-origin: top center;
                    }

                .news-list > ul > li > a .content {
                    padding: 10px 20px;
                    width: 100%;
                }

                    .news-list > ul > li > a .content .cate {
                        left: 12px;
                        bottom: 6px;
                    }

                    .news-list > ul > li > a .content .title {
                        font-size: 1.1rem;
                        transform: translateY(0);
                        transform-origin: bottom;
                        transition: 0.3s all;
                        order: 1;
                    }

                    .news-list > ul > li > a .content .time {
                        left: 0;
                        font-family: "Montserrat";
                        margin: 0;
                        padding: 0;
                        text-align: right;
                        width: 100%;
                        font-size: 0.9rem;
                        margin-top: 5px;
                        order: 2;
                    }

                .news-list > ul > li > a:hover {
                    z-index: 2;
                }

                    .news-list > ul > li > a:hover .img img {
                        filter: brightness(30%);
                        opacity: 1;
                        transform: scale(1.3);
                    }

                    .news-list > ul > li > a:hover .cate {
                        opacity: 1;
                    }

                    .news-list > ul > li > a:hover .content .title {
                        transform: translateY(-60%);
                    }

                    .news-list > ul > li > a:hover .content .time:before {
                        opacity: 0;
                    }

        .news-list .heading ul.tag li a {
            border-width: 1px;
            font-weight: normal;
        }

        .news-list > ul > li > a {
            background: #fff;
        }

            .news-list > ul > li > a .img img:before {
                content: "";
                display: block;
                width: 100%;
                height: 100%;
                position: absolute;
                z-index: 99;
            }

            .news-list > ul > li > a .content .title {
                color: #000;
            }

            .news-list > ul > li > a .content .time {
                color: #63717f;
            }

                .news-list > ul > li > a .content .time:before {
                    background: linear-gradient(to right, #3c60f7, #00d7ff);
                }

            .news-list > ul > li > a:hover {
                box-shadow: 0 6px 20px rgba(60,96,247,0.1);
            }

                .news-list > ul > li > a:hover .content .title {
                    color: #fff;
                }
}
/*---------------------
麵包屑
---------------------*/
#crumbs.container {
    text-align: left;
    padding: 0 10px;
}

#crumbs ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

    #crumbs ul li {
        display: inline-table;
        margin-right: 0;
        position: relative;
    }

        #crumbs ul li a {
            display: block;
            background: rgba(255,255,255,0);
            height: 40px;
            text-align: center;
            padding: 0 10px 0;
            position: relative;
            margin: 0;
            font-size: 0.9em;
            text-decoration: none;
            color: #63717f;
            line-height: 40px;
            position: relative;
            transition: all 0.3s ease;
            overflow: hidden;
            white-space: nowrap;
            /*text-overflow: ellipsis;*/
            max-width: 120px;
        }

            #crumbs ul li a:hover {
                color: #000;
                background: rgba(255,255,255,0.4);
            }

                #crumbs ul li a:hover:after {
                    color: #63717f;
                    right: -15px;
                }

            #crumbs ul li a.active {
                background: none;
                cursor: default;
            }

        #crumbs ul li:after {
            content: "";
            color: #63717f;
            border-left: 1px solid #63717f;
            position: absolute;
            right: -10px;
            top: 9px;
            width: 10px;
            height: 20px;
            transition: all 0.3s ease;
        }

            #crumbs ul li:after i {
                font-size: 1.6em;
                line-height: 30px;
            }

        #crumbs ul li:last-child:after {
            display: none;
        }
.video-content {
    margin-top: 32px;
    border-radius: 4px;
}

    .video-content iframe {
        border-radius: 4px;
    }

    .video-content .ytChat iframe {
        width: 100% !important;
    }

    .video-content h1 {
        color: #000 !important;
        font-size: 1.4rem !important;
        padding-top: 10px;
    }

    .video-content .desc {
        margin-bottom: 20px;
    }

    .video-content .name {
        font-size: 1.1rem;
        color: #000 !important;
        padding-left: 15px;
    }

    .video-content .num {
        color: #e8e8e8;
        font-size: 0.875rem;
        color: #000 !important;
        padding-left: 15px;
    }

    .video-content .sub {
        border: 1px solid #63717f;
        border-radius: 16px;
        margin-top: 15px;
        padding: 8px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .video-content .sub i {
            color: #ec264b;
            font-size: 1.4rem;
        }

        .video-content .sub span {
            color: #fff;
            font-size: 1rem;
            margin-left: 5px;
        }

        .video-content .sub:hover {
            background: rgba(255,255,255,0.05);
        }
.video-pa-0 {
    margin-left: -16px;
    margin-right: -16px;
    height: 100%;
}

.video-container {
    background: #000;
    position: relative;
    box-shadow: 0px 2px 16px rgba(24,76,238,0.12);
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 32px;
}

    .video-container.index {
        border-radius: 0;
        margin-bottom: 0;
    }

    .video-container #ytblock iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .video-container button {
        position: absolute;
        height: 40px;
        width: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 0;
        border-radius: 100%;
        box-shadow: 0px 2px 16px rgba(24,76,238,0.12);
        z-index: 1000;
        top: -100px;
        background: #fff;
    }

        .video-container button:hover {
            color: #ec264b;
        }

        .video-container button#yt-play,
        .video-container button#yt-stop {
            right: -20px;
        }

        .video-container button#yt-mute {
            left: 60px;
        }

        .video-container button#yt-clone {
            left: 120px;
        }

        .video-container button#yt-play i {
            transform: rotate(90deg);
        }

            .video-container button#yt-play i:before {
                content: "▲";
                transform-origin: center;
            }

    .video-container .stuck {
        position: static;
        top: auto;
        bottom: 0;
        right: 20px;
        width: 50%;
        padding-bottom: 28.125%;
        animation: fade-in-up 0.25s ease forwards;
        z-index: 999;
    }

        .video-container .stuck.is-hidden {
            width: 0;
            height: 0;
        }

            .video-container .stuck.is-hidden iframe#ytplayer {
                display: none;
            }

        .video-container .stuck button {
            top: auto;
            bottom: -20px;
            opacity: 1;
        }

            .video-container .stuck button#yt-play {
                z-index: 2;
            }

            .video-container .stuck button#yt-stop {
                z-index: 1;
            }

        .video-container .stuck iframe {
            box-shadow: 0px 2px 16px rgba(24,76,238,0.12);
        }

@media (min-width: 576px) {
    .video-pa-0 {
        margin-left: 0;
        margin-right: 0;
    }

    .video-container {
        height: 100%;
    }

        .video-container.index {
            border-radius: 4px;
        }

        .video-container .stuck {
            position: fixed;
            top: auto;
            bottom: 120px;
            right: 25px;
            width: 340px;
            height: 200px;
            padding: 0;
            transform: translateY(100%) translateZ(0px);
            border: 6px solid #fff;
            box-shadow: 0px 2px 16px rgba(24,76,238,0.12);
        }
}


.pagination {
    width: 100%;
    margin: 0 auto;
    padding: 30px 0 40px;
    text-align: center;
    position: relative;
    justify-content: space-around;
}

    .pagination .page-item {
        display: none;
        box-shadow: 0px 2px 16px rgba(24,76,238,0.12);
        border-radius: 40px;
    }

        .pagination .page-item a.page-link,
        .pagination .page-item span.page-link {
            color: #000;
            border: 1px solid rgba(24,76,238,0.12);
            border-right: 0;
            display: flex;
            font-size: 1rem;
            height: 40px;
            transition: all 0.2s ease 0s;
            text-decoration: none;
            align-items: center;
            justify-content: center;
            color: #000;
        }

            .pagination .page-item a.page-link:last-child,
            .pagination .page-item span.page-link:last-child {
                border-right: 1px solid rgba(24,76,238,0.12);
            }

            .pagination .page-item a.page-link:hover,
            .pagination .page-item a.page-link.selected {
                background: #f8fcff;
                color: #000;
            }

        .pagination .page-item.disabled a.page-link {
            color: rgba(0,0,0,0.2);
        }

        .pagination .page-item.active span.page-link {
            color: #0040e9;
            background: #fff;
        }

        .pagination .page-item:first-child,
        .pagination .page-item:last-child {
            display: block;
        }

            .pagination .page-item:first-child a,
            .pagination .page-item:last-child a {
                border-radius: 100%;
                width: 60px;
                height: 60px;
            }

@media (min-width: 768px) {
    .pagination {
        justify-content: center;
    }

        .pagination .page-item {
            display: block;
        }

            .pagination .page-item:first-child,
            .pagination .page-item:last-child {
                display: block;
            }

                .pagination .page-item:first-child a,
                .pagination .page-item:last-child a {
                    width: 40px;
                    height: 40px;
                }

                .pagination .page-item:first-child a {
                    border-radius: 8px 0 0 8px;
                }

                .pagination .page-item:last-child a {
                    border-radius: 0 8px 8px 0;
                }
}
/* 外層撐滿視窗 */
.live-wrap {
    /*height: 100vh;*/
    height:420px;
}

    /* row 撐滿高度 */
    .live-wrap > .row {
        height: 100%;
    }

/* 左右欄同高 */
.live-video,
.live-chat {
    height: 100%;
    display: flex;
}

    /* iframe 填滿父層 */
    .live-video iframe {    
        width: 100%;
        height: 100%;
        border: 0;
    }
    .live-chat iframe {
        position: absolute;
        top: 0;
        right: 0;
        width: 95%;
        height: 100%;
        z-index: 10;
        background: #000; /* 避免透明穿底 */
    }
/* 直播影片維持 16:9（Bootstrap 4 相容） */
.live-video {
    align-items: center;
    justify-content: center;
}

    .live-video iframe {
        max-height: 100%;
        aspect-ratio: 16 / 9;
    }

/* 舊瀏覽器（不支援 aspect-ratio）備援 */
@supports not (aspect-ratio: 16 / 9) {
    .live-video iframe {
        height: 100%;
    }
}

.heading {
    display: flex;
    position: relative;
    margin-bottom: 20px;
    align-items: center;
    flex-direction: row;
}

    .heading select.form-control {
        background-color: transparent;
        border: 0;
        position: absolute;
        right: 0;
        max-width: 80px;
        outline: none !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        -webkit-tap-highlight-color: transparent;
    }

        .heading select.form-control:focus {
            background: transparent;
            border: 0;
            outline: none !important;
        }

    .heading .more {
        display: inline-flex;
        color: #fff;
        align-items: center;
        border-radius: 100%;
        right: 0;
        position: absolute;
        width: 40px;
        height: 40px;
    }

        .heading .more:before {
            content: "\f03d";
            font-weight: bold;
            position: absolute;
            color: #ec264b;
            font-size: 2.2rem;
            z-index: -1;
            left: -8px;
        }

    .heading.hd-big {
        font-size: 1.8em;
    }

    .heading.bold {
        font-weight: bold;
    }

    .heading .underline {
        border-bottom: 2px solid #e8e8e8;
        width: 100%;
        padding-top: 10px;
        padding-bottom: 10px;
        text-align: center;
    }

        .heading .underline h1,
        .heading .underline h2,
        .heading .underline h3,
        .heading .underline h4,
        .heading .underline h5 {
            display: inline-block;
            font-size: 1.4rem;
            font-weight: bold;
            margin: 0;
            color: #000;
            position: relative;
        }

            .heading .underline h1:before,
            .heading .underline h2:before,
            .heading .underline h3:before,
            .heading .underline h4:before,
            .heading .underline h5:before {
                content: "";
                width: 100%;
                display: block;
                height: 1px;
                border-bottom: 2px solid #0040e9;
                position: absolute;
                bottom: -12px;
            }
@media (max-width: 991.99px) {
    .live-wrap{
        height:auto;
    }
}