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 強制 100% 寬，會覆蓋 Swiper 內聯寬度，
     * 造成系統入口標籤列（swiper-index1）每格變成全螢幕寬、滑動與分頁錯位。
     * 僅對「一次顯示一張」的內容輪播套用全寬。
     */
    .swiper-index2 .swiper-slide {
        width: 100% !important;
    }

    /*
     * hor-carousel 需同時顯示多部影片（slidesPerView: 3），勿在此強制每格 100% 寬，
     * 否則會與 Swiper 計算的寬度衝突，出現「一欄有影片、旁邊兩欄空白」。
     */

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

/* 系統入口區塊：標題在手機版維持置中 */
.system-portal-wrap .system-portal-title {
    text-align: center !important;
    width: 100%;
}

.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, #6e429d, #82cafd);
    /* 淺粉兩層 → 有材質感 */
    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 #866cb9;
    /* 左側藍色條 */
    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: 40px;
}

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

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

#hor-carousel .swiper-slide {
    height: auto;
    align-items: stretch;
}

#hor-carousel .swiper-slide video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.swiper-pagination {
    bottom: 30px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgb(225 180 255);
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background-color: rgb(151 44 254);
    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;
}

/* 首頁浮水印 */
.book-card-bg {
    height: 150px;
    background: #eaeaff;
    /* background: #fff6ea; */
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #c8e4ff;
    /* border: 1px solid #f9e5ca; */
}

.watermark {
    position: absolute;
    font-size: 50px;
    font-weight: bold;
    color: #fffffe;
    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(145deg, #5944b7, #d1d2e5, #5c3fb6);
    /* background: linear-gradient(145deg, #b78944, #f5e9a5, #B6863f); */
    color: #fff;
    /* color: #673000; */
    border: none;
    padding: 10px 30px;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 4px 15px rgb(144 100 255 / 30%);
    position: relative;
    overflow: hidden;

    /* display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(168, 85, 247, 0.5);
    background-color: rgba(88, 28, 135, 0.3);
    border-radius: 50px;
    color: #d8b4fe;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px); */
}

.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;
}

/* 上方影片區 */
/* 外層 */
.video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* 影片 */
.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

/* 疊上去的框 */
.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: rgba(0, 0, 0, 0.5);
    width: 95%;
    max-width: 600px;
    padding: 25px 40px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;

    text-align: center;
}

/* 獎金試算 */
.gold-box {
    background: linear-gradient(135deg, #ffffff, #cfcfcf);
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e7e7e7;
}









.swiper-slide-active .pricing-card {
    transform: none !important;
    box-shadow: none !important;
}

.card-list .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: auto;
    height: auto;
    padding: 8px 0;
}

.card-list .swiper-slide.swiper-end {
    padding-right: 80px;
}

.card-list .swiper-slide .pricing-card {
    width: 240px;
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 12px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, transform 0.3s, border-color 0.3s;
}



/* 大螢幕 */
@media (min-width: 768px) {

    /* 只控制主方案 swiper */
    .pricing-swiper .swiper-slide {
        width: calc(33.333% - 16px) !important;
    }

    .card-list .swiper-slide .pricing-card {
        width: 500px;
        max-width: 500px;
    }
}

.card-list .swiper-slide-active .pricing-card {
    transform: scale(1.03);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.card-list .swiper-slide .pricing-card.active-card {
    border-color: #d4af37;
    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.35),
        0 0 18px rgba(255, 200, 0, 0.35);
}

.active-card {
    border: 2px solid #d4af37;
    transform: scale(1.03);
    box-shadow:
        0 8px 20px rgba(212, 175, 55, 0.38),
        0 0 22px rgba(255, 200, 0, 0.30),
        0 0 40px rgba(255, 170, 0, 0.22);
}

.swiper-pagination {
    position: relative;
    margin-top: 0;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
    margin: 0 4px;
}

.swiper-pagination-bullet-active {
    background: #336699;
}

.vip-img {
    height: 30px;
    width: auto;
    object-fit: contain;
    display: block;
}

.vip-img {
    height: 30px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (min-width: 768px) {
    .vip-img {
        height: 60px;
    }
}

@media (min-width: 1200px) {
    .vip-img {
        height: 100px;
    }
}

.accordion-button {
    justify-content: center;
    text-align: center;
}

.accordion-button::after {
    margin-left: 10px;
    /* 箭頭跟文字距離 */
}

.thumb-img {
    width: 40px;
    height: auto;
}

/* 縮圖置中 */
#vcard-thumbs .swiper-wrapper {
    justify-content: center !important;
}

/* 縮圖的設定 */
#vcard-thumbs .swiper-slide {
    opacity: 0.4;
    transform: scale(0.9);
    transition: 0.3s;
}

#vcard-thumbs .swiper-slide.active {
    opacity: 1;
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

#hor-carousel .swiper-pagination {
    bottom: -10px !important;
}