﻿:root {
    --banner-h: 66vh;
    --radius-br: clamp(120px,12vw,320px);
    /* Swiper 分頁點 */
    --pg-dot: 10px;
    --pg-active-w: 42px;
    --pg-gap: 8px;
    --pg-active: #9896D4;
    --pg-border: #c7c7c7;
    --header-h: 90px;
    --esg-radius: 24px;
    --esg-max-w: 1200px;
    /*--esg-nav-bg: #9c8ee9;*/
    --esg-nav-size: 44px;
    --esg-dot: 10px;
    --esg-dot-active-w: 28px;
    --esg-dot-color: #C7C7C7;
    --esg-dot-active: #9896D4;
    --friends-max-w: 1200px;
    --gap: 28px; /* 卡片間距 */
    --card-radius: 16px;
    --card-bg: #fff;
    --surface: #edeff5; /* 背景色（需求） */
    --dot: 10px;
    --dot-gap: 10px;
    --dot-color: #c7c7c7;
    --dot-active: #9896d4;
    --thumb-radius: 14px;
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial
}

body {
    background: #f5f6f8
}

/* ===== Banner（右下角弧形） ===== */
.banner {
    height: calc(100vh - var(--header-h)) !important;
    background: transparent !important;
    border-radius: 0 0 var(--radius-br) 0 !important;
    overflow: hidden !important
}

    .banner .swiper, .banner .swiper-wrapper, .banner .swiper-slide {
        height: 100% !important
    }

#hero {
    position: relative
}

/* 影像/影片鋪滿 */
.media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* YouTube cover */
.yt-box {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent
}


    .yt-box iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        border: 0;
        background: transparent;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


.yt-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 2
}

    .yt-overlay img {
        width: 108px;
        height: 108px;
        display: block
    }

    .yt-overlay.hide {
        display: none !important
    }

/* ===== Swiper 分頁點（白圈 + 活動長條） ===== */
#hero .swiper-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px !important;
    display: flex;
    gap: var(--pg-gap);
    align-items: center;
    justify-content: center;
    z-index: 30;
    pointer-events: auto;
    height: 30px
}

    #hero .swiper-pagination, #hero .swiper-pagination.swiper-pagination-lock {
        display: flex !important
    }

.swiper-pagination-bullet:only-child {
    display: flex !important
}

#hero .swiper-pagination-bullet {
    width: var(--pg-dot);
    height: var(--pg-dot);
    margin: 0 !important;
    background: #c7c7c7;
    border: 2px solid var(--pg-border);
    opacity: 1;
    border-radius: 50%;
    transition: width .25s ease, background-color .2s ease, border-color .2s ease
}

#hero .swiper-pagination-bullet-active {
    width: var(--pg-active-w);
    height: var(--pg-dot);
    background: var(--pg-active);
    border-color: transparent;
    border-radius: 999px
}

.swiper-button-prev, .swiper-button-next {
    color: #fff;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,.25);
    border-radius: 50%
}

    .swiper-button-prev:after, .swiper-button-next:after {
        font-size: 18px
    }

/* === Cookie Overlay === */
.cookie-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: end center;
    padding: 20px;
    background: rgba(0,0,0,.45);
    z-index: 9999
}

    .cookie-overlay.hidden {
        display: none
    }

.cookie-card {
    width: min(960px,calc(100% - 32px));
    background: #fff;
    color: #222;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.15);
    overflow: hidden
}

.cookie-body {
    padding: 22px 24px 0
}

    .cookie-body h3 {
        margin: 0 0 10px;
        font-size: 20px;
        font-weight: 800
    }

    .cookie-body p {
        margin: 0;
        line-height: 1.7
    }

    .cookie-body a {
        color: #9896D4;
        text-decoration: underline
    }

.cookie-actions {
    padding: 16px 24px 22px;
    display: flex;
    justify-content: center;
    gap: 12px
}

.btn-primary {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 10px 22px;
    border-radius: 999px;
    background: #9896D4;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .02em;
    transition: transform .06s ease, filter .2s ease
}

    .btn-primary:hover {
        filter: brightness(1.05)
    }

    .btn-primary:active {
        transform: translateY(1px)
    }

/* 分類條 */
.category-bar {
    position: relative;
    z-index: 5;
    margin-top: -15px
}

.category-card {
    width: 90%;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,.1);
    padding: 18px 22px
}

.chip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px
}

    .chip-list li {
        margin: 0;
        padding: 0
    }

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #d9d9e3;
    background: #fff;
    color: #222;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    font-size: 24px
}

    .chip:hover {
        background: #9896d4;
        color: #fff
    }

    .chip:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(107,98,255,.25)
    }

    .chip.active {
        border-color: #6b62ff;
        background: #9896d4;
        color: #fff;
        box-shadow: inset 0 0 0 2px rgba(107,98,255,.18)
    }

.vod-carousel {
    position: relative;
    margin-bottom: 29px;
}
/* 區塊標題 */
.keynote-wrap {
    width: 90%;
    padding: 18px 0px 8px;
    /*background: #f3f4f6;*/
    margin: 0 auto;
    margin-bottom: 25px;
}

.keynote-title {
    margin: 0 0 12px;
    font-size: 2em;
    font-weight: 800;
    color: #222222
}

/* Keynote 卡片 */
.keynote-card {
    position: relative;
    display: flex;
    align-items: stretch;
    border-radius: 18px;
    overflow: hidden;
    background-image: url("../../images/Group316.png");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: cover;
    max-height: 35vw;
}

.kn-media {
    position: relative;
    overflow: hidden;
    width: 70%
}

.kn-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease, filter .35s ease;
    padding-bottom: 7px
}

.kn-media:hover .kn-poster {
    transform: scale(1.02);
    filter: brightness(.92);
    padding-bottom: 13px
}

.kn-media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 7px;
    height: 38%;
    background: linear-gradient(0deg,rgba(0,0,0,.62) 0%,rgba(0,0,0,.45) 35%,rgba(0,0,0,.12) 65%,rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity .25s ease;
    padding-bottom: 14px
}

.kn-media:hover::after {
    opacity: 1
}

.kn-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 2;
    cursor: pointer;
    outline: none;
    opacity: 0;
    transform: scale(.92);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    padding-bottom: 7px
}

    .kn-play img {
        width: 12vmin;
        height: 12vmin;
        display: block;
        filter: drop-shadow(0 1vmin 2.6vmin rgba(0,0,0,.35));
        transition: transform .25s ease
    }

.kn-media:hover .kn-play {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto
}

    .kn-media:hover .kn-play img {
        transform: scale(1.05)
    }

.kn-play::after {
    content: "";
    position: absolute;
    width: 14vmin;
    height: 14vmin;
    border-radius: 50%;
    background: radial-gradient(rgba(255,255,255,.28),rgba(255,255,255,0) 60%);
    opacity: 0;
    animation: none
}

.kn-media:hover .kn-play::after {
    opacity: 1;
    animation: knPulse 1.8s ease-out infinite
}

@keyframes knPulse {
    0% {
        transform: scale(1);
        opacity: .55
    }

    65% {
        transform: scale(1.35);
        opacity: .05
    }

    100% {
        transform: scale(1.35);
        opacity: 0
    }
}

.kn-caption, .kn-duration {
    z-index: 3;
    position: absolute
}

.kn-caption {
    left: 16px;
    bottom: 12px;
    color: #fff;
    font-size: 14px;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,.45)
}

.kn-name {
    font-weight: 700;
    margin-bottom: 4px
}

.kn-role {
    opacity: .95
}

.kn-duration {
    right: 16px;
    bottom: 1em;
    padding: 4px 8px;
    background: #0F63B6;
    color: #fff;
    font-size: 13px;
    line-height: 1
}

.kn-side {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 28px 26px;
    color: #fff;
    z-index: 1;
    width: 30%
}

.kn-eyebrow {
    color: #ececff;
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 10px
}

.kn-headline {
    font-weight: 800;
    font-size: 1.875em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.kn-nav {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    /*gap: .8rem;*/ z-index: 4;
    pointer-events: auto;
}
/*
.kn-arrow {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60%;
    cursor: pointer;
    outline: none;
}*/

.kn-sep {
    width: 4px;
    height: 44px;
    margin: 0 .8rem;
    background: #9896D4;
    border-radius: 2px
}

.kn-arrow:hover {
    filter: brightness(1.08)
}

.kn-arrow:active {
    transform: translateY(.2vw)
}


.kn-prev {
    background-image: url("../../images/arrow_left.png")
}

.kn-next {
    background-image: url("../../images/arrow_right.png")
}

.kn-arrow.kn-prev.is-disabled {
    background-image: url("../../images/arrow_left_dis.png")
}

.kn-arrow.kn-next.is-disabled {
    background-image: url("../../images/arrow_right_dis.png")
}

    /* ===== VOD 區 ===== */
.vod-sec {
    background: url("../../images/Group315.png");
    background-repeat: round;
}

.vod-inner {
    width: 92%;
    margin: 0 auto;
    position: relative
}

/* Tabs（6 色循環） */
.vod-tabs {
    display: flex;
    gap: 12px;
    padding: 16px 12px 10px;
    overflow-x: auto; /* 允許橫向滑動 */
    -webkit-overflow-scrolling: touch; /* 手機滑動更順暢 */
    justify-content: center;
}

    .vod-tabs::-webkit-scrollbar {
        display: none; /* 可選：隱藏捲軸 */
    }
.vod-tab {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 0 14px;
    color: #CBCBCB;
    border-bottom: 6px solid #CBCBCB;
    cursor: pointer;
    user-select: none; 
    width: 30vw !important;
}

    .vod-tab .label {
        font-weight: 800;
        letter-spacing: .02em;
        font-size: clamp(16px,2.2vw,22px);
        color: #222222;
    }

.vod-icon.-mask {
    width: 99px;
    height: 10vw;
    background: currentColor;
    -webkit-mask: var(--icon) no-repeat center/contain;
    mask: var(--icon) no-repeat center/contain
}

.vod-tab:hover:nth-child(6n+1), .vod-tab:hover:nth-child(6n+1) .label, .vod-tab.is-active:nth-child(6n+1), .vod-tab.is-active:nth-child(6n+1) .label {
    color: #82B3D2;
    border-bottom-color: #82B3D2
}

.vod-tab:hover:nth-child(6n+2), .vod-tab:hover:nth-child(6n+2) .label, .vod-tab.is-active:nth-child(6n+2), .vod-tab.is-active:nth-child(6n+2) .label {
    color: #8EA4D3;
    border-bottom-color: #8EA4D3
}

.vod-tab:hover:nth-child(6n+3), .vod-tab:hover:nth-child(6n+3) .label, .vod-tab.is-active:nth-child(6n+3), .vod-tab.is-active:nth-child(6n+3) .label {
    color: #B28ACA;
    border-bottom-color: #B28ACA
}

.vod-tab:hover:nth-child(6n+4), .vod-tab:hover:nth-child(6n+4) .label, .vod-tab.is-active:nth-child(6n+4), .vod-tab.is-active:nth-child(6n+4) .label {
    color: #9896D4;
    border-bottom-color: #9896D4
}

.vod-tab:hover:nth-child(6n+5), .vod-tab:hover:nth-child(6n+5) .label, .vod-tab.is-active:nth-child(6n+5), .vod-tab.is-active:nth-child(6n+5) .label {
    color: #D5A1A8;
    border-bottom-color: #D5A1A8
}

.vod-tab:hover:nth-child(6n+6), .vod-tab:hover:nth-child(6n+6) .label, .vod-tab.is-active:nth-child(6n+6), .vod-tab.is-active:nth-child(6n+6) .label {
    color: #BC90C1;
    border-bottom-color: #BC90C1
}

/* VOD Swiper */
.vod-swiper {
    padding: 2px 8px 8px
}

.vod-card {
    scroll-snap-align: unset
}

.vod-thumb {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #000
}

    .vod-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .5s ease, filter .35s ease
    }

    .vod-thumb::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 38%;
        background: linear-gradient(0deg,rgba(0,0,0,.62) 0%,rgba(0,0,0,.45) 35%,rgba(0,0,0,.12) 65%,rgba(0,0,0,0) 100%);
        pointer-events: none;
        z-index: 1;
        opacity: 0;
        transition: opacity .25s ease
    }

.vod-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 2;
    cursor: pointer;
    outline: none;
    opacity: 0;
    transform: scale(.92);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none
}

    .vod-play img {
        width: 12vmin;
        height: 12vmin;
        display: block;
        filter: drop-shadow(0 1vmin 2.6vmin rgba(0,0,0,.35))
    }

    .vod-play::after {
        content: "";
        position: absolute;
        width: 14vmin;
        height: 14vmin;
        border-radius: 50%;
        background: radial-gradient(rgba(255,255,255,.28),rgba(255,255,255,0) 60%);
        opacity: 0;
        animation: none
    }

.vod-thumb:hover img, .vod-thumb:focus-within img {
    transform: scale(1.02);
    filter: brightness(.92)
}

.vod-thumb:hover::after, .vod-thumb:focus-within::after {
    opacity: 1
}

.vod-thumb:hover .vod-play, .vod-thumb:focus-within .vod-play {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto
}

    .vod-thumb:hover .vod-play::after, .vod-thumb:focus-within .vod-play::after {
        opacity: 1;
        animation: vodPulse 1.8s ease-out infinite
    }

@keyframes vodPulse {
    0% {
        transform: scale(1);
        opacity: .55
    }

    65% {
        transform: scale(1.35);
        opacity: .05
    }

    100% {
        transform: scale(1.35);
        opacity: 0
    }
}

.vod-time {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    font-size: 12px;
    color: #fff;
    background: #1976d2;
    z-index: 3
}

.vod-title {
    margin: 10px 2px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1b1f3b;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.vod-nav {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff center/18px no-repeat;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    cursor: pointer;
    user-select: none
}

.vod-prev {
    left: -6px;
    background-image: url("../../images/arrow_left.png");
    z-index: 2;
}

.vod-next {
    right: -6px;
    background-image: url("../../images/arrow_right.png");
    z-index: 2;
}

.vod-nav.is-disabled {
    opacity: .35;
    pointer-events: none
}

.vod-more {
    position: relative;
    /* right: .5vw; */
    display: flex;
    /* align-items: end; */
    justify-content: right;
    /* text-align: right; */
    gap: .6em;
    padding: .6em 1em;
    color: #111;
    text-decoration: none;
    font-size: 24px;
}

    .vod-more .text {
        font-weight: 800
    }

    .vod-more .icon {
        width: 1.2em;
        height: 1.2em;
        background: #9896D4;
        flex: 0 0 auto;
        -webkit-mask: url("../../images/arrow_next.svg") no-repeat center/contain;
        mask: url("../../images/arrow_next.svg") no-repeat center/contain
    }

/* ========= 影音貨架 ========= */
.shelf .shelf_mobile {

    width: 90%;
    margin: 24px auto 8px;
    color: #1b1f3b;
}
/* 改為 flex 兩欄 */
.shelf-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    --gap: 18px;
    gap: var(--gap)
}

.shelf-col {
    flex: 1 1 100%;
    min-width: 0
}

.footer-head {
    background: var(--surface);
}

@media (min-width: 1025px) {
    .shelf-col {
        flex: 0 1 calc((100% - var(--gap)) / 2)
    }
}

.shelf-hero {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    max-height: clamp(180px, 70vw, 420px);
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}

    .shelf-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block
    }

.shelf-title {
    font-size: 1.75em !important
}

.shelf-time {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: #0F63B6;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    z-index: 3;
}

@supports not (aspect-ratio: 1 / 1) {
    .shelf-hero {
        position: relative;
        height: auto;
        max-height: none
    }

        .shelf-hero::before {
            content: "";
            display: block;
            padding-top: 56.25%
        }

        .shelf-hero img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover
        }
}

.shelf-row {
    margin-top: 18px
}

.shelf-swiper {
    padding: 2px 0 10px
}

.shelf-card {
    scroll-snap-align: unset
}

.shelf-caption {
    margin: 10px 2px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1b1f3b;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
	min-height : 58px;
}

.shelf-thumb {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--thumb-radius);
    overflow: hidden;
    background: #000
}

    .shelf-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .5s ease, filter .35s ease
    }

    .shelf-thumb::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 38%;
        background: linear-gradient(0deg,rgba(0,0,0,.62) 0%,rgba(0,0,0,.45) 35%,rgba(0,0,0,.12) 65%,rgba(0,0,0,0) 100%);
        pointer-events: none;
        z-index: 1;
        opacity: 0;
        transition: opacity .25s ease
    }

.shelf-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 2;
    opacity: 0;
    transform: scale(.92);
    transition: opacity .25s ease, transform .25s ease
}

    .shelf-play img {
        /*width: 56px;
        height: 56px;*/ 
        display: block;
        filter: drop-shadow(0 10px 24px rgba(0,0,0,.35));
        width: clamp(48px, 10vw, 88px);
        height: clamp(48px, 10vw, 88px);
    }

    .shelf-play::after {
        content: "";
        position: absolute;
        width: 72px;
        height: 72px;
        border-radius: 50%;
        background: radial-gradient(rgba(255,255,255,.28),rgba(255,255,255,0) 60%);
        opacity: 0;
        animation: none
    }

.shelf-thumb:hover img {
    transform: scale(1.02);
    filter: brightness(.92)
}

.shelf-thumb:hover::after {
    opacity: 1
}

.shelf-thumb:hover .shelf-play {
    opacity: 1;
    transform: scale(1)
}

    .shelf-thumb:hover .shelf-play::after {
        opacity: 1;
        animation: shelfPulse 1.8s ease-out infinite
    }

@keyframes shelfPulse {
    0% {
        transform: scale(1);
        opacity: .55
    }

    65% {
        transform: scale(1.35);
        opacity: .05
    }

    100% {
        transform: scale(1.35);
        opacity: 0
    }
}

/* Dots：全部圓點 #9896d4，active 放大 */
.shelf-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--dot-gap);
    padding: 8px 0 0
}

.shelf-dot {
    width: var(--dot);
    height: var(--dot);
    border-radius: 50%;
    background: var(--dot-color);
    opacity: .55;
    transition: transform .22s ease, opacity .22s ease
}

    .shelf-dot.is-active {
        background: var(--dot-active);
        opacity: 1
    }

/* ===== ESG（主視覺區） ===== */
.esg-wrap {
    padding: 24px 0 36px;
    width: 90%;
    margin: 0 auto;
}

.esg {
    max-width: 105em;
    max-height: 665em;
    margin: 0 auto;
    position: relative
}

    .esg .swiper {
        border-radius: var(--esg-radius);
        overflow: hidden;
        background: #fff;
        border: 1px solid #CBCBCB;
        border-radius: 20px;
        opacity: 1;
    }
    /* 固定比例 & RWD 高度（可調） */
    .esg .swiper-slide {
        aspect-ratio: 16 / 6.5;
        height: clamp(220px, 34vw, 520px)
    }

    .esg .slide-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block
    }

/* 導覽箭頭（img 版 + hover 互換） */
.esg-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: var(--esg-nav-size);
    height: var(--esg-nav-size);
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(156,142,233,.35);
    cursor: pointer;
    z-index: 5;
    transition: background .25s ease;
    color: #9896D4 !important;
}

    .esg-nav img {
        width: 40%;
        height: auto;
        display: block;
        /* 紫色箭頭 */
        filter: invert(42%) sepia(20%) saturate(800%) hue-rotate(210deg) brightness(90%) contrast(85%);
        transition: filter .25s ease;
    }

    .esg-nav:hover {
        background: #9896D4;
        color: #ffffff !important;
    }

        .esg-nav:hover img {
            filter: brightness(0) invert(1);
        }
/* 白箭頭 */
.esg-prev {
    left: -22px;
}

.esg-next {
    right: -22px;
}

/* 分頁點：灰→紫，active 拉長像膠囊 */
.esg-wrap .swiper-pagination {
    position: relative;
    bottom: 0px !important
}

.esg-wrap .swiper-pagination-bullet {
    width: var(--esg-dot);
    height: var(--esg-dot);
    background: var(--esg-dot-color);
    opacity: .8;
    transition: width .25s ease, background-color .2s ease, opacity .2s ease;
    border-radius: 999px;
}

.esg-wrap .swiper-pagination-bullet-active {
    width: var(--esg-dot-active-w);
    background: var(--esg-dot-active);
    opacity: 1
}

/* Friends */
.friends-wrap {
    background: var(--surface);
    padding: 22px 0 0
}

.friends-inner {
    width: min(var(--friends-max-w), 92vw);
    margin: 0 auto
}

.friends-title {
    margin: 0 0 16px;
    text-align: center;
    font-size: 1.75em;
    color: #333;
    letter-spacing: .06em
}

/* Grid：桌機最多 7 欄 */
.links-grid {
    --cell: 7.5em;
    display: grid;
    grid-template-columns: repeat(auto-fit, var(--cell));
    justify-content: center;
    gap: var(--gap);
}

.link-card {
    display: grid;
    place-items: center;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid #CBCBCB;
    aspect-ratio: 1 / 1;
    text-decoration: none;
}

    .link-card img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block
    }

.mobile_catebar {
    display: none;
}

/* ===== 共用 RWD ===== */
@media (max-width: 1024px) {
    .links-grid {
        grid-template-columns: repeat(auto-fit, var(--cell));
        justify-items: center
    }
    /*
        .links-grid > :not(:first-child) {
            display: none
        }*/

    .vod-nav {
        top: 37%;
    }
    .banner {
        height: 50vw !important
    }
}

@media (max-width: 767px) {
    .banner {
        height: 65vw !important
    }

    .category-card {
        padding: 14px 0px
    }

    .chip-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 6px
    }

    .chip {
        white-space: nowrap
    }

    .keynote-card {
        flex-direction: column;
        max-height: 95vw
    }

        .keynote-card .kn-nav {
            right: 3.5vw;
            bottom: 3.5vw;
        }

    .kn-media {
        width: 100%;
        min-height: 200px
    }

    .kn-side {
        padding: 0px 20px 74px
    }

    /* ESG 箭頭進內縮，避免超出 */
    .esg-prev {
        left: 6px
    }

    .esg-next {
        right: 6px
    }

    /* Friends：卡片縮小，不要滿版 */
    .link-card {
        width: clamp(140px, 60vw, 220px);
        padding: 14px;
        border-radius: 14px
    }

        .link-card img {
            width: 80%
        }

    .friends-title {
        margin-bottom: 12px
    }

    .vod-sec {
        /*background: #e9ecf7 url(../../images/Group297.png) no-repeat;*/
        border-bottom-right-radius: 120px;
    }

/* 行動裝置（無 hover）預設顯示播放鈕與漸層 */
@media (hover:none) {
    .kn-play {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto
    }

    .kn-media::after {
        opacity: 1
    }

    .vod-thumb::after {
        opacity: 1
    }

    .vod-play {
        opacity: 1;
        transform: scale(1)
    }
}
/* 桌機：保留右下角大圓角（如果你是用變數，可沿用；沒有就忽略這段） */
@media (min-width: 1200px) {
    /* 視你的實作放在 banner 或 #hero 上，二選一或兩者都加 */
    .banner,
    #hero {
        border-bottom-right-radius: var(--radius-br, 180px);
        overflow: hidden; /* 確保圓角裁切生效 */
    }
}

/* 手機：縮小 banner 高度，並移除右下角圓角 */
@media (max-width: 767px) {
    /* 1) 控制高度：用 clamp 讓高度隨螢幕寬度縮放，不會過高 */
    #hero {
        height: clamp(180px, 52vw, 420px); /* 可再依喜好調整中段 52vw */
        border-radius: 0; /* 先把容器圓角清掉 */
        overflow: hidden;
    }

    /* 2) 真的只把「右下角」清掉（若桌機有設置） */
    .banner,
    #hero {
        border-bottom-right-radius: 0 !important;
    }

        /* 3) 保證媒體內容完整覆蓋容器 */
        #hero .swiper-slide {
            aspect-ratio: 16 / 9; /* 若你的專案不支援，可刪；會 fallback 用 height */
        }

        #hero .media,
        #hero .yt-box,
        #hero .yt-iframe {
            width: 100%;
            height: 100%;
            object-fit: cover; /* 圖片/影片填滿，不會被擠壓變形 */
            display: block;
        }

        /* 4) 若你的播放覆蓋層按鈕偏大，可順便縮小 */
        #hero .yt-overlay img {
            width: 56px;
            height: 56px;
        }

    .mobile_catebar {
        display: block;
    }

    .category-bar {
        display: none;
    }
}


@media (max-width: 1024px) {

    .shelf-title {
        font-size: 22px !important;
    }

    .shelf-caption {
        font-size: 18px;
    }

    .shelf-hero {
        max-height: unset;
    }

    .vod-more {
        right: 50px;
        /*bottom: 0;*/
        font-size: 18px;
    }

    .keynote-title {
        font-size: 22px;
    }

    .friends-title {
        font-size: 22px;
    }

    .kn-headline {
        font-size: 1.35em;
    }
}

@media (max-width: 768px) {

    .vod-nav {
        top: 31%;
    }

    .kn-headline {
        font-size: 1em;
    }
    .vod-tabs {
        justify-content: flex-start;                
    }
}

@media (max-width: 767px) {
    .kn-side {
        width: 100%;
    }
}


@media (max-width: 430px) {
    .esg-wrap {
        margin-bottom: 30px;
    }

    .esg-nav {
        top: initial;
        bottom: -80px;
        z-index: 30;
    }

    .esg-wrap .swiper-pagination {
        bottom: -26px !important;
    }

    .esg .swiper-slide {
        aspect-ratio: 16 / 6.5;
        height: unset;
    }
}

@media (max-width: 375px) {
    .vod-nav {
        top: 25%;
    }
}
