body,
html {
    overflow-x: hidden;
    /* 隱藏水平滾動條 */
    overflow-y: auto;
    /* 垂直滾動可以，但避免意外滾動 */
}

.modal-dialog {
    max-width: 800px;
    /* 大螢幕最大寬度 */
    width: 90%;
    /* 小螢幕自動縮放 */
    margin: 1rem auto;
    /* 上下間距 + 水平置中 */
}

.modal-body img {
    width: 100%;
    max-width: 1000px;
    /* 大螢幕放大上限 */
    height: auto;
    display: block;
    margin: 0 auto;
    /* 置中 */
}

/* swiper 必備 */
.swiper-wrapper {
    display: flex !important;
    height: auto !important;
}

.swiper-slide {
    flex-shrink: 0;
    display: flex;

}

@media (max-width: 768px) {
    .swiper-slide {
        width: 100% !important;
    }

    .tiktok-embed {
        pointer-events: none;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

/* 滾進畫面時顯示 */
.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* 延遲效果，可依需要調整 */
.fade-delay-1 {
    transition-delay: 0.1s;
}

.fade-delay-2 {
    transition-delay: 0.3s;
}

.fade-delay-3 {
    transition-delay: 0.5s;
}

.fade-delay-4 {
    transition-delay: 0.7s;
}

.fade-delay-5 {
    transition-delay: 0.9s;
}

.fade-delay-6 {
    transition-delay: 1.2s;
}

.fade-delay-7 {
    transition-delay: 1.4s;
}

.container {
    overflow: visible !important;
}

/* 隱藏的說明區塊 */
.service-desc {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 10px;
    transition: all 0.4s ease;
}

/* 展開時 */
.service-card.active .service-desc {
    max-height: 200px;
    opacity: 1;
    margin-top: 10px;
    padding: 10px;
    border-top: 1px solid #eaeaea;
}

/* 卡片 hover 微浮動 */
.service-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.08);
}

.service-toggle {
    background-color: #ffffff;
    border-radius: 12px;
    transition: all 0.3s ease;
    transform: translateY(0);
}

/* Hover 效果（可選）*/
.service-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* 點擊後（Active）立體效果 */
.service-toggle.active {
    background: linear-gradient(145deg, #ff0000, #ffe9be);
    /* 淺粉兩層 → 有材質感 */
    box-shadow:
        0 8px 20px rgba(255, 50, 50, 0.25),
        /* 周圍柔光 */
        inset 0 2px 4px rgba(255, 255, 255, 0.6),
        /* 上方亮面 */
        inset 0 -3px 5px rgba(0, 0, 0, 0.08);
    /* 下方陰影（3D 的關鍵） */
    transform: translateY(-6px) scale(1.02);
    /* 浮起 + 微放大 */
}

.service-full-desc {
    transform: translateY(-20px);
    /* 初始向上偏移 */
    opacity: 0;
    /* 初始透明 */
    padding: 0 20px;
    /* 初始 padding 為 0 */
    background: #ffffff;
    /* 白底 */
    border-bottom: 4px solid #ff0000;
    /* 左側藍色條 */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* 輕微立體感 */
    transition: transform 0.4s ease, opacity 0.4s ease, padding 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333333;
}

.service-full-desc.show {
    transform: translateY(0);
    /* 滑到原位 */
    opacity: 1;
    /* 完全顯示 */
    padding: 20px;
    /* 展開內邊距 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    /* 展開更立體 */
}

.btn-linepay {
    background-color: #08bf5b;
    border: none;
    color: #fff;
    padding: 10px 8px;
    transition: all 0.5s;
}

.btn-linepay:hover {
    background-color: #08bf5b;
    color: #fff;
}

/* 指示手樣式：斜上指，輕微彈動 */
.click-hand {
    position: absolute;
    right: 15px;
    top: 60%;
    font-size: 28px;
    cursor: pointer;
    transform: rotate(-25deg);
    /* 斜向右上 */
    animation: hand-tip 1.2s infinite alternate ease-in-out;
}

/* 彈動動畫：上下輕微浮動 */
@keyframes hand-tip {
    0% {
        transform: rotate(-25deg) translateY(0) translateX(0);
    }

    50% {
        transform: rotate(-25deg) translateY(-4px) translateX(-2px);
    }

    100% {
        transform: rotate(-25deg) translateY(0) translateX(0);
    }
}

/* 點擊展開說明後隱藏手 */
.service-toggle.active .click-hand {
    display: none;
}


.hero {
    height: 50vh;
    position: relative;
    overflow: hidden;
}

/* 初始：縮成 0 + 淡出 */
.hero-img {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateX(-50%) scale(0);
    opacity: 0;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 1s ease-out;
    z-index: 1;
    /* 放在文字下面 */
}

/* 出現動畫 */
.hero.show .hero-img {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* HERO 文字 */
/* HERO 文字 */
.hero-text {
    position: absolute;
    top: 90%;
    /* 垂直置中 */
    left: 80%;
    transform: translate(150%, -50%);
    /* 初始往右偏移 */
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: transform 1s ease-out 1.2s,
        /* 1.2s 延遲，等圖片動畫完成 */
        opacity 1s ease-out 1.2s;
    z-index: 2;
    /* 文字在圖片上層 */
}

/* 出現動畫 */
.hero.show .hero-text {
    transform: translate(-50%, -50%);
    /* 回到中央位置 */
    opacity: 1;
}



.book-inner {
    position: relative;
    transition: transform 0.8s ease-in-out;
    transform-style: preserve-3d;
    cursor: pointer;
}

.book-card:hover .book-inner {
    transform: rotateY(15deg);
}


/* 初始隱藏 + 位移 */
.book-slide-left,
.book-slide-right {
    opacity: 0;
    transition: all 2s ease-out;
}

/* 左邊飛進來 */
.book-slide-left {
    transform: translateX(-50px);
}

/* 右邊飛進來 */
.book-slide-right {
    transform: translateX(50px);
}

@media (max-width: 576px) {
    .book-slide-left {
        transform: translateX(-20px);
    }

    .book-slide-right {
        transform: translateX(20px);
    }
}


/* 顯示時回到原位 */
.book-show {
    opacity: 1;
    transform: translateX(0);
}

/* 持續閃亮 + 慢速掃光 */
.book-show .card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    /* 固定住 */
    width: 70%;
    height: 100%;
    background: linear-gradient(115deg,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0.35),
            rgba(255, 255, 255, 0));
    transform: skewX(-20deg) translateX(-200%);
    animation: shine 3.5s ease-in-out infinite;
    pointer-events: none;
    border-radius: 15px;
}


/* 光澤循環動畫 */
@keyframes shine {
    0% {
        transform: skewX(-20deg) translateX(-200%);
        opacity: 0.2;
    }

    40% {
        opacity: 0.5;
    }

    50% {
        transform: skewX(-20deg) translateX(120%);
        opacity: 0.8;
    }

    60% {
        opacity: 0.4;
    }

    100% {
        transform: skewX(-20deg) translateX(-200%);
        opacity: 0.2;
    }
}

/* 輪播 */
#dir-carousel,
#hor-carousel {
    padding-bottom: 50px;
}

/* Swiper 幻燈片影片 */
#dir-carousel .swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#dir-carousel .swiper-slide {
    height: auto;
}

.swiper-pagination {
    bottom: 30px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgb(254, 44, 85);
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background-color: rgb(254, 44, 85);
    width: 12px;
    opacity: 1;
}

/* .swiper-button-next {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0 0 27 44'%3E%3Cpath%20d='M27,22L27,22L5,44l-2.1-2.1L22.8,22L2.9,2.1L5,0L27,22L27,22z'%20fill='%23FE2C55'/%3E%3C/svg%3E");
}

.swiper-button-prev {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0 0 27 44'%3E%3Cpath%20d='M0,22L22,0l2.1,2.1L4.2,22l19.9,19.9L22,44L0,22L0,22L0,22z'%20fill='%23FE2C55'/%3E%3C/svg%3E");
} */

.swiper-slide iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* .tiktok-embed {
    pointer-events: none;
}

iframe {
    pointer-events: none;
} */

video {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
}

/*-------------------------------- AI講解彈跳視窗設定1 --------------------------------*/
#imageIndex {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 18px;
    color: #fff;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

/* 關閉按鈕 */
#closePopup {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #fff;
    background: transparent !important;
}

/* 圖片大小 */
.popup-image {
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .popup-image {
        max-width: 100%;
        max-height: 100%;
    }
}

@media (max-width: 480px) {
    .popup-image {
        max-width: 100%;
        max-height: 100%;
    }
}

/* 圖片的箭頭區域 */
.popup-nav {
    font-size: 36px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
}

#prev {
    position: absolute;
    left: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

#next {
    position: absolute;
    right: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}


/* AI講解影片（與 #popupVideoContainer2 相同定位與尺寸） */
#popupVideoContainer1 {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 120px;
    height: 180px;
    padding-bottom: 10px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    cursor: grab;
    transition: height 0.3s ease, width 0.3s ease;
}

#popupVideoContainer1.minimized {
    height: 30px;
}

@media (max-width: 767px) {
    #popupVideoContainer1 {
        width: 120px;
        height: 180px;
    }
}

@media (min-width: 768px) {
    #popupVideoContainer1 {
        width: 150px;
        height: 240px;
    }
}

@media (min-width: 1200px) {
    #popupVideoContainer1 {
        width: 220px;
        height: 360px;
    }
}

/* AI講解區域 */
#popupVideoContainer1 .video-header {
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    flex-shrink: 0;
    z-index: 2;
}

#popupVideoContainer1 .video-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

#popupVideoContainer1 .video-body {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#popupVideoContainer1 .video-body video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#popupVideoContainer1.video-container {
    cursor: grab;
}

#popupVideoContainer1.video-container:active {
    cursor: grabbing;
}

.video-header {
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    flex-shrink: 0;
    z-index: 2;
}

.video-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.video-body {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-body video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* AI講解影片拖拽 */
.video-container {
    cursor: grab;
}

.video-container:active {
    cursor: grabbing;
}

/* 縮圖區域 */
.thumbnail-container {
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    z-index: 9999;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
}

.thumbnail {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.1);
}

.thumbnail.active {
    border: 3px solid #1dabbd;
    transform: scale(1.1);
}

.thumbnail-container img {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
}

.thumbnail-container::-webkit-scrollbar {
    height: 8px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

/*-------------------------------- AI講解彈跳視窗設定2 --------------------------------*/
#imageIndex2 {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 18px;
    color: #fff;
}

#popup2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

/* 關閉按鈕 */
#closePopup2 {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #fff;
    background: transparent !important;
}

/* 圖片大小 */
.popup-image {
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .popup-image {
        max-width: 100%;
        max-height: 100%;
    }
}

@media (max-width: 480px) {
    .popup-image {
        max-width: 100%;
        max-height: 100%;
    }
}

/* 圖片的箭頭區域 */
.popup-nav {
    font-size: 36px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
}

#prev2 {
    position: absolute;
    left: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

#next2 {
    position: absolute;
    right: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

/* AI講解影片2 */
#popupVideoContainer2 {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 120px;
    height: 180px;
    padding-bottom: 10px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    cursor: grab;
    transition: height 0.3s ease, width 0.3s ease;
}

#popupVideoContainer2.minimized {
    height: 30px;
}

@media (max-width: 767px) {
    #popupVideoContainer2 {
        width: 120px;
        height: 180px;
    }
}

@media (min-width: 768px) {
    #popupVideoContainer2 {
        width: 150px;
        height: 240px;
    }
}

@media (min-width: 1200px) {
    #popupVideoContainer2 {
        width: 220px;
        height: 360px;
    }
}

/* AI講解區域 */
#popupVideoContainer2 .video-header {
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    flex-shrink: 0;
    z-index: 2;
}

#popupVideoContainer2 .video-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

#popupVideoContainer2 .video-body {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#popupVideoContainer2 .video-body video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* AI講解影片拖拽 */
#popupVideoContainer2.video-container {
    cursor: grab;
}

#popupVideoContainer2.video-container:active {
    cursor: grabbing;
}

/* 縮圖區域2 */
.thumbnail-container {
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    z-index: 9999;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
}

.thumbnail2 {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.thumbnail2:hover {
    transform: scale(1.1);
}

.thumbnail2.active {
    border: 3px solid #1dabbd;
    transform: scale(1.1);
}

.thumbnail-container img {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
}

.thumbnail-container::-webkit-scrollbar {
    height: 8px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

/*-------------------------------- AI講解彈跳視窗設定3 --------------------------------*/
#popupVideoContainer3 {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 120px;
    height: 180px;
    padding-bottom: 10px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    cursor: grab;
    transition: height 0.3s ease, width 0.3s ease;
}

#imageIndex3 {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 18px;
    color: #fff;
}

#popup3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

#popupVideoContainer3.minimized {
    height: 30px;
}

@media (max-width: 767px) {
    #popupVideoContainer3 {
        width: 120px;
        height: 180px;
    }
}

@media (min-width: 768px) {
    #popupVideoContainer3 {
        width: 150px;
        height: 240px;
    }
}

@media (min-width: 1200px) {
    #popupVideoContainer3 {
        width: 220px;
        height: 360px;
    }
}

/* 關閉按鈕 */
#closePopup3 {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #fff;
    background: transparent !important;
}

/* 圖片的箭頭區域 */
.popup-nav {
    font-size: 36px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
}

#prev3 {
    position: absolute;
    left: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

#next3 {
    position: absolute;
    right: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

/* AI講解區域 */
#popupVideoContainer3 .video-header {
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    flex-shrink: 0;
    z-index: 2;
}

#popupVideoContainer3 .video-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

#popupVideoContainer3 .video-body {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#popupVideoContainer3 .video-body video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* AI講解影片拖拽 */
#popupVideoContainer3.video-container {
    cursor: grab;
}

#popupVideoContainer3.video-container:active {
    cursor: grabbing;
}

/* 縮圖區域3 */
.thumbnail-container3 {
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    z-index: 9999;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
}

.thumbnail3 {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.thumbnail3:hover {
    transform: scale(1.1);
}

.thumbnail3.active {
    border: 3px solid #1dabbd;
    transform: scale(1.1);
}

.thumbnail-container3 img {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
}

.thumbnail-container3::-webkit-scrollbar {
    height: 8px;
}

.thumbnail-container3::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

/*-------------------------------- AI講解彈跳視窗設定4 --------------------------------*/
#popupVideoContainer4 {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 120px;
    height: 180px;
    padding-bottom: 10px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    cursor: grab;
    transition: height 0.3s ease, width 0.3s ease;
}

#popupVideoContainer4.minimized {
    height: 30px;
}

@media (max-width: 767px) {
    #popupVideoContainer4 {
        width: 120px;
        height: 180px;
    }
}

@media (min-width: 768px) {
    #popupVideoContainer4 {
        width: 150px;
        height: 240px;
    }
}

@media (min-width: 1200px) {
    #popupVideoContainer4 {
        width: 220px;
        height: 360px;
    }
}


#imageIndex4 {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 18px;
    color: #fff;
}

#popup4 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

/* 關閉按鈕 */
#closePopup4 {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #fff;
    background: transparent !important;
}

/* 圖片的箭頭區域 */
.popup-nav {
    font-size: 36px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
}

#prev4 {
    position: absolute;
    left: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

#next4 {
    position: absolute;
    right: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

/* AI講解區域 */
#popupVideoContainer4 .video-header {
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    flex-shrink: 0;
    z-index: 2;
}

#popupVideoContainer4 .video-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

#popupVideoContainer4 .video-body {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#popupVideoContainer4 .video-body video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* AI講解影片拖拽 */
#popupVideoContainer4.video-container {
    cursor: grab;
}

#popupVideoContainer4.video-container:active {
    cursor: grabbing;
}

/* 縮圖區域4 */
.thumbnail-container4 {
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    z-index: 9999;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
}

.thumbnail4 {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.thumbnail4:hover {
    transform: scale(1.1);
}

.thumbnail4.active {
    border: 3px solid #1dabbd;
    transform: scale(1.1);
}

.thumbnail-container4 img {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
}

.thumbnail-container4::-webkit-scrollbar {
    height: 8px;
}

.thumbnail-container4::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

/*-------------------------------- AI講解彈跳視窗設定5 --------------------------------*/
#popupVideoContainer5 {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 120px;
    height: 180px;
    padding-bottom: 10px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    cursor: grab;
    transition: height 0.3s ease, width 0.3s ease;
}

#popupVideoContainer5.minimized {
    height: 30px;
}

@media (max-width: 767px) {
    #popupVideoContainer5 {
        width: 120px;
        height: 180px;
    }
}

@media (min-width: 768px) {
    #popupVideoContainer5 {
        width: 150px;
        height: 240px;
    }
}

@media (min-width: 1200px) {
    #popupVideoContainer5 {
        width: 220px;
        height: 360px;
    }
}


#imageIndex5 {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 18px;
    color: #fff;
}

#popup5 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

/* 關閉按鈕 */
#closePopup5 {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #fff;
    background: transparent !important;
}

/* 圖片的箭頭區域 */
.popup-nav {
    font-size: 36px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
}

#prev5 {
    position: absolute;
    left: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

#next5 {
    position: absolute;
    right: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

/* AI講解區域 */
#popupVideoContainer5 .video-header {
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    flex-shrink: 0;
    z-index: 2;
}

#popupVideoContainer5 .video-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

#popupVideoContainer5 .video-body {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#popupVideoContainer5 .video-body video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* AI講解影片拖拽 */
#popupVideoContainer5.video-container {
    cursor: grab;
}

#popupVideoContainer5.video-container:active {
    cursor: grabbing;
}

/* 縮圖區域5 */
.thumbnail-container5 {
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    z-index: 9999;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
}

.thumbnail5 {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.thumbnail5:hover {
    transform: scale(1.1);
}

.thumbnail5.active {
    border: 3px solid #1dabbd;
    transform: scale(1.1);
}

.thumbnail-container5 img {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
}

.thumbnail-container5::-webkit-scrollbar {
    height: 8px;
}

.thumbnail-container5::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

/*-------------------------------- AI講解彈跳視窗設定6 --------------------------------*/
#popupVideoContainer6 {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 120px;
    height: 180px;
    padding-bottom: 10px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    cursor: grab;
    transition: height 0.3s ease, width 0.3s ease;
}

#popupVideoContainer6.minimized {
    height: 30px;
}

@media (max-width: 767px) {
    #popupVideoContainer6 {
        width: 120px;
        height: 180px;
    }
}

@media (min-width: 768px) {
    #popupVideoContainer6 {
        width: 150px;
        height: 240px;
    }
}

@media (min-width: 1200px) {
    #popupVideoContainer6 {
        width: 220px;
        height: 360px;
    }
}


#imageIndex6 {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 18px;
    color: #fff;
}

#popup6 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

/* 關閉按鈕 */
#closePopup6 {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #fff;
    background: transparent !important;
}

/* 圖片的箭頭區域 */
.popup-nav {
    font-size: 36px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
}

#prev6 {
    position: absolute;
    left: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

#next6 {
    position: absolute;
    right: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

/* AI講解區域 */
#popupVideoContainer6 .video-header {
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    flex-shrink: 0;
    z-index: 2;
}

#popupVideoContainer6 .video-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

#popupVideoContainer6 .video-body {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#popupVideoContainer6 .video-body video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* AI講解影片拖拽 */
#popupVideoContainer6.video-container {
    cursor: grab;
}

#popupVideoContainer6.video-container:active {
    cursor: grabbing;
}

/* 縮圖區域6 */
.thumbnail-container6 {
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    z-index: 9999;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
}

.thumbnail6 {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.thumbnail6:hover {
    transform: scale(1.1);
}

.thumbnail6.active {
    border: 3px solid #1dabbd;
    transform: scale(1.1);
}

.thumbnail-container6 img {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
}

.thumbnail-container6::-webkit-scrollbar {
    height: 8px;
}

.thumbnail-container6::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

/*-------------------------------- AI講解彈跳視窗設定7 --------------------------------*/
#popupVideoContainer7 {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 120px;
    height: 180px;
    padding-bottom: 10px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    cursor: grab;
    transition: height 0.3s ease, width 0.3s ease;
}

#popupVideoContainer7.minimized {
    height: 30px;
}

@media (max-width: 767px) {
    #popupVideoContainer7 {
        width: 120px;
        height: 180px;
    }
}

@media (min-width: 768px) {
    #popupVideoContainer7 {
        width: 150px;
        height: 240px;
    }
}

@media (min-width: 1200px) {
    #popupVideoContainer7 {
        width: 220px;
        height: 360px;
    }
}


#imageIndex7 {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 18px;
    color: #fff;
}

#popup7 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

/* 關閉按鈕 */
#closePopup7 {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #fff;
    background: transparent !important;
}

/* 圖片的箭頭區域 */
.popup-nav {
    font-size: 36px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
}

#prev7 {
    position: absolute;
    left: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

#next7 {
    position: absolute;
    right: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

/* AI講解區域 */
#popupVideoContainer7 .video-header {
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    flex-shrink: 0;
    z-index: 2;
}

#popupVideoContainer7 .video-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

#popupVideoContainer7 .video-body {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#popupVideoContainer7 .video-body video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* AI講解影片拖拽 */
#popupVideoContainer7.video-container {
    cursor: grab;
}

#popupVideoContainer7.video-container:active {
    cursor: grabbing;
}

/* 縮圖區域7 */
.thumbnail-container7 {
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    z-index: 9999;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
}

.thumbnail7 {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.thumbnail7:hover {
    transform: scale(1.1);
}

.thumbnail7.active {
    border: 3px solid #1dabbd;
    transform: scale(1.1);
}

.thumbnail-container7 img {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
}

.thumbnail-container7::-webkit-scrollbar {
    height: 8px;
}

.thumbnail-container7::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

/*-------------------------------- AI講解彈跳視窗設定8 --------------------------------*/
#popupVideoContainer8 {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 120px;
    height: 180px;
    padding-bottom: 10px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    cursor: grab;
    transition: height 0.3s ease, width 0.3s ease;
}

#popupVideoContainer8.minimized {
    height: 30px;
}

@media (max-width: 767px) {
    #popupVideoContainer8 {
        width: 120px;
        height: 180px;
    }
}

@media (min-width: 768px) {
    #popupVideoContainer8 {
        width: 150px;
        height: 240px;
    }
}

@media (min-width: 1200px) {
    #popupVideoContainer8 {
        width: 220px;
        height: 360px;
    }
}


#imageIndex8 {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 18px;
    color: #fff;
}

#popup8 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

/* 關閉按鈕 */
#closePopup8 {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #fff;
    background: transparent !important;
}

/* 圖片的箭頭區域 */
.popup-nav {
    font-size: 36px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
}

#prev8 {
    position: absolute;
    left: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

#next8 {
    position: absolute;
    right: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

/* AI講解區域 */
#popupVideoContainer8 .video-header {
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    flex-shrink: 0;
    z-index: 2;
}

#popupVideoContainer8 .video-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

#popupVideoContainer8 .video-body {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#popupVideoContainer8 .video-body video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* AI講解影片拖拽 */
#popupVideoContainer8.video-container {
    cursor: grab;
}

#popupVideoContainer8.video-container:active {
    cursor: grabbing;
}

/* 縮圖區域8 */
.thumbnail-container8 {
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    z-index: 9999;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
}

.thumbnail8 {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.thumbnail8:hover {
    transform: scale(1.1);
}

.thumbnail8.active {
    border: 3px solid #1dabbd;
    transform: scale(1.1);
}

.thumbnail-container8 img {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
}

.thumbnail-container8::-webkit-scrollbar {
    height: 8px;
}

.thumbnail-container8::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

/*-------------------------------- AI講解彈跳視窗設定9 --------------------------------*/
#popupVideoContainer9 {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 120px;
    height: 180px;
    padding-bottom: 10px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    cursor: grab;
    transition: height 0.3s ease, width 0.3s ease;
}

#popupVideoContainer9.minimized {
    height: 30px;
}

@media (max-width: 767px) {
    #popupVideoContainer9 {
        width: 120px;
        height: 180px;
    }
}

@media (min-width: 768px) {
    #popupVideoContainer9 {
        width: 150px;
        height: 240px;
    }
}

@media (min-width: 1200px) {
    #popupVideoContainer9 {
        width: 220px;
        height: 360px;
    }
}


#imageIndex9 {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 18px;
    color: #fff;
}

#popup9 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

/* 關閉按鈕 */
#closePopup9 {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #fff;
    background: transparent !important;
}

/* 圖片的箭頭區域 */
.popup-nav {
    font-size: 36px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
}

#prev9 {
    position: absolute;
    left: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

#next9 {
    position: absolute;
    right: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

/* AI講解區域 */
#popupVideoContainer9 .video-header {
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    flex-shrink: 0;
    z-index: 2;
}

#popupVideoContainer9 .video-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

#popupVideoContainer9 .video-body {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#popupVideoContainer9 .video-body video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* AI講解影片拖拽 */
#popupVideoContainer9.video-container {
    cursor: grab;
}

#popupVideoContainer9.video-container:active {
    cursor: grabbing;
}

/* 縮圖區域9 */
.thumbnail-container9 {
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    z-index: 9999;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
}

.thumbnail9 {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.thumbnail9:hover {
    transform: scale(1.1);
}

.thumbnail9.active {
    border: 3px solid #1dabbd;
    transform: scale(1.1);
}

.thumbnail-container9 img {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
}

.thumbnail-container9::-webkit-scrollbar {
    height: 8px;
}

.thumbnail-container9::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

/*-------------------------------- AI講解彈跳視窗設定10 --------------------------------*/
#popupVideoContainer10 {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 120px;
    height: 180px;
    padding-bottom: 10px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    cursor: grab;
    transition: height 0.3s ease, width 0.3s ease;
}

#popupVideoContainer10.minimized {
    height: 30px;
}

@media (max-width: 767px) {
    #popupVideoContainer10 {
        width: 120px;
        height: 180px;
    }
}

@media (min-width: 768px) {
    #popupVideoContainer10 {
        width: 150px;
        height: 240px;
    }
}

@media (min-width: 1200px) {
    #popupVideoContainer10 {
        width: 220px;
        height: 360px;
    }
}


#imageIndex10 {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 18px;
    color: #fff;
}

#popup10 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

/* 關閉按鈕 */
#closePopup10 {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #fff;
    background: transparent !important;
}

/* 圖片的箭頭區域 */
.popup-nav {
    font-size: 36px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
}

#prev10 {
    position: absolute;
    left: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

#next10 {
    position: absolute;
    right: 10px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

/* AI講解區域 */
#popupVideoContainer10 .video-header {
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    flex-shrink: 0;
    z-index: 2;
}

#popupVideoContainer10 .video-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

#popupVideoContainer10 .video-body {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#popupVideoContainer10 .video-body video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* AI講解影片拖拽 */
#popupVideoContainer10.video-container {
    cursor: grab;
}

#popupVideoContainer10.video-container:active {
    cursor: grabbing;
}

/* 縮圖區域10 */
.thumbnail-container10 {
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    z-index: 9999;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
}

.thumbnail10 {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.thumbnail10:hover {
    transform: scale(1.1);
}

.thumbnail10.active {
    border: 3px solid #1dabbd;
    transform: scale(1.1);
}

.thumbnail-container10 img {
    max-width: 100px;
    cursor: pointer;
    border-radius: 8px;
}

.thumbnail-container10::-webkit-scrollbar {
    height: 8px;
}

.thumbnail-container10::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.popup-trigger,
.popup-trigger2,
.popup-trigger3,
.popup-trigger4,
.popup-trigger5,
.popup-trigger6,
.popup-trigger7,
.popup-trigger8,
.popup-trigger9,
.popup-trigger10 {
    text-decoration: none;
    color: #000;
}

.popup-trigger:hover,
.popup-trigger2:hover,
.popup-trigger3:hover,
.popup-trigger4:hover,
.popup-trigger5:hover,
.popup-trigger6:hover,
.popup-trigger7:hover,
.popup-trigger8:hover,
.popup-trigger9:hover,
.popup-trigger10:hover {
    color: #333;
    /* 深灰色 */
}

/* 首頁浮水印 */
.book-card-bg {
    height: 150px;
    background: linear-gradient(145deg, #fffdfd, #fff4f4);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #ffd8d8;
}

.watermark {
    position: absolute;
    font-size: 50px;
    font-weight: bold;
    color: #ffefef;
    top: 0%;
    right: 5%;
    pointer-events: none;
    /* 不影響點擊 */
}

.card-text-overlay {
    position: absolute;
    top: 13%;
    left: 0;
    width: 100%;
    padding: 0 15px;
    color: #222222;
    text-align: center;
}

@media (min-width: 768px) {
    .book-card-bg {
        height: 200px;
    }

    .card-text-overlay {
        top: 25%;
        left: 0;
    }
}

/* 首頁按鈕 */
.btn-indexbtn {
    background: linear-gradient(90deg, #ab1839 0%, #ff9b6d 100%);
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 120, 100, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-indexbtn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 120, 100, 0.5);
}


.btn-indexbtn:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px rgba(255, 120, 100, 0.3);
}

.btn-indexbtn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-indexbtn:hover::after {
    left: 100%;
}

.round-card {
    border-radius: 20px;
    border: 1px solid #e7e7e7;
    padding: 15px 15px;
}

/* 長方形的工作機會(目前沒再用) */
.round-card {
    background: #fff;
    border-radius: 20px;
    /* padding: 20px; */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.card-img-left {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 15px;
}

.card-img-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.card-content {
    height: 100%;
}

/* 圓形的事業機會 */
.opportunity-wrapper img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: 0 0 12px rgba(90, 160, 255, 0.4);
}

@media (min-width: 765px) {
    .book-opportunity {
        transition: 0.4s;
    }

    .book-opportunity:hover {
        transform: translateY(-8px) scale(1.02);
    }

    .opportunity-wrapper {
        width: 250px;
        height: 250px;
        margin: 0 auto 12px auto;
        border-radius: 50%;
        position: relative;
        overflow: hidden;
        transition: 0.4s;
    }

    .opportunity-wrapper img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        transition: 0.4s;
    }

    .book-opportunity:hover .opportunity-wrapper {
        background: linear-gradient(145deg, #e9e9e9, #e4f3ff);
        box-shadow: 0 0 25px rgba(90, 160, 255, 0.5);
    }

    .book-opportunity:hover .opportunity-wrapper img {
        opacity: 0;
        transform: scale(1.2);
    }

    .opportunity-desc {
        position: absolute;
        inset: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        text-align: center;

        font-size: 14px;
        font-weight: 500;
        color: #000;

        padding: 20px;
        box-sizing: border-box;

        opacity: 0;
        transition: 0.4s;

        max-width: 80%;
        margin: 0 auto;

        pointer-events: none;
    }



    .book-opportunity:hover .opportunity-desc {
        opacity: 1;
    }


    .book-opportunity:hover h5 {
        color: #333;
    }
}

.round-img {
    border-radius: 10px;
}