.animation-container {
    position: relative;
    width: 100vw;
    height: 50vw; /* 依據您提供的 2:1 比例圖片設定，可依需求調整 */
    max-height: 100vh;
    margin: auto;
    top: 50%;

    overflow: hidden;
}

/* ==========================================
   第一個 DIV 圖層 (ba-01)：無限播放
   ========================================== */
.ba-01 {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: url('bb-01.png') no-repeat center center;
    background-size: 100% 100%;
}

/* 科技感光線滑過效果 (中上速度) */
.light-sweep {
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-30deg);
    animation: sweepEffect 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes sweepEffect {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

/* 圓球部分在圓球圖像上面，不同時間閃爍 */
.sphere {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    mix-blend-mode: screen;
}

/* 依據參考圖位置標記球體（百分比定位達到 100% 等比例適應） */
.sphere-1 { width: 12%; height: 24%; top: -8%; left: -2%; animation: blink 1.8s infinite 0.2s; }
.sphere-2 { width: 9%; height: 18%; top: 12%; left: 29%; animation: blink 2.2s infinite 0.7s; }
.sphere-3 { width: 6%; height: 12%; top: 76%; left: 45%; animation: blink 1.5s infinite 0s; }
.sphere-4 { width: 4%; height: 8%; top: 61%; left: 79%; animation: blink 2s infinite 1.1s; }
.sphere-5 { width: 22%; height: 44%; top: 32%; left: 85%; animation: blink 3s infinite 0.5s; }

@keyframes blink {
    0%, 100% { opacity: 0.2; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}


/* ==========================================
   第二個 DIV 圖層 (ba-02)：播放一次停止
   ========================================== */
.ba-02 {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: url('bb-02.png') no-repeat center center;
    background-size: 100% 100%;
    /* 300% 到 100% 半透明快速進入，只撥放一次，停在最後一格 (forwards) */
    animation: zoomInFast 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes zoomInFast {
    0% {
        transform: scale(3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ba-02 內部的獨立無限播放光線 */
.infinite-sweep {
    animation: sweepEffect 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}


/* ==========================================
   第三個 DIV 圖層 (ba-03)：
   延遲 0.8s(圖層二時間) + 0.5s = 1.3s 後播放
   ========================================== */
.ba-03 {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    background: url('bb-03.png') no-repeat center center;
    background-size: 100% 100%;
    opacity: 0; /* 初始隱藏，等待延遲 */
    /* 總動畫時長：5次彈跳(3.5s) + 往左上彈出(0.7s) = 4.2s */
    animation: layerThreeSequence 4.2s ease-in-out 1.3s infinite;
}

@keyframes layerThreeSequence {
    /* ----- 階段一：由右下彈跳出來 (0% - 12%) ----- */
    0% {
        opacity: 0;
        transform: translate(50%, 50%) scale(0.5);
    }
    12% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    /* ----- 階段二：持續 5 次一般速度的上下彈跳 (12% - 84%) ----- */
    /* 每次彈跳循環佔約 14.4% 的時間 */
    /* 第 1 次彈跳 */
    19% { transform: translate(0, -20px); }
    26% { transform: translate(0, 0); }
    /* 第 2 次彈跳 */
    33% { transform: translate(0, -20px); }
    40% { transform: translate(0, 0); }
    /* 第 3 次彈跳 */
    47% { transform: translate(0, -20px); }
    54% { transform: translate(0, 0); }
    /* 第 4 次彈跳 */
    61% { transform: translate(0, -20px); }
    68% { transform: translate(0, 0); }
    /* 第 5 次彈跳 */
    75% { transform: translate(0, -20px); }
    84% { transform: translate(0, 0); opacity: 1; }

    /* ----- 階段三：往左上彈出並淡出 (84% - 100%) ----- */
    100% {
        transform: translate(-100%, -100%) scale(0.7);
        opacity: 0;
    }
}

        .promo-bar {
            background: linear-gradient(90deg, #c0e6ec, #f8d7c4);
            color: #4a608a;
            text-align: center;
            padding: 10px 0;
            font-size: 15px;
            font-weight: 700;
            letter-spacing: 1px;
        }
		
		.coupon-card02 {
    background: linear-gradient(90deg, #fff1e8, #eef9fb);
    border: 2px solid #5fa9e0;
    border-radius: 18px;
    padding: 13px 14px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 5px 14px rgba(255, 128, 80, 0.12);
	margin-top:10px;
	margin-bottom:10px;
}

table tr th td{border: 1px solid #4a90e2;}
