﻿/*2025-09-26-更新*/
/*
 * =================================================================
 * 1. 全域設定與匯入
 * =================================================================
 */
@charset "utf-8";

/* 匯入 Google Fonts: Noto Sans TC (全部字重) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');

/* 註解掉的全域重設 (保留註解供參考)
html {
    scroll-behavior: smooth;
}
body {
    padding: 0px;
    margin: 0px;
}
a,
a:active,
a:hover {
    text-decoration: none !important;
}
img {
    border: 0;
    max-width: 100%;
    height: auto;
}
*/

/*
 * =================================================================
 * 2. 主要區塊 (.aidoublesmartlearnbox) 與通用元素
 * =================================================================
 */
/* Ai雙平台聰明學習 - 將桌面版樣式設為預設 */
.aidoublesmartlearnbox {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    /* 背景圖和字型 */
    background: url(https://www.cek.com.tw/edm/cloudfree/images/bg.webp) no-repeat center top;
    background-size: cover;
    font-family: "Noto Sans TC", sans-serif;
}

/* 機器人背景圖疊加層 */
.aidoublesmartlearnbox::after {
    position: absolute;
    z-index: 1;
    top: 0px;
    left: 0px;
    display: block;
    width: 100%;
    height: 100%;
    background: url(https://www.cek.com.tw/edm/cloudfree/images/bg-robot.webp) no-repeat center top;
    background-size: 100%;
    content: '';
}

/* 確保容器內容在背景圖上方 */
.aidoublesmartlearnbox>.container {
    z-index: 100 !important;
}

/* 區塊標題 */
.aidoublesmartlearnbox .top-title-2 {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 30%;
}

/* 小標題 */
.aidoublesmartlearnbox .subtitle {
    padding: 10px 0px 30px 0px;
    color: #30e592;
    text-align: center;
    font-size: clamp(1rem, 4vw, 1.8rem);
    font-weight: 800;
}

/*
 * =================================================================
 * 3. 切換按鈕樣式 (.switchbtnbox)
 * =================================================================
 */
.aidoublesmartlearnbox .switchbtnbox {
    position: relative;
    z-index: 10;
    top: 0%;
    left: 20%;
    width: 60%;
    padding: 8px;
    border-radius: 1000px;
    /* 漸層背景 */
    background-image: linear-gradient(to right, #16be71 0%, #142662 40%, #142662 50%, #142662 60%, #16be71 100%);
    filter: drop-shadow(0px 5px 8px rgba(0, 47, 26, 0.3));
}

.aidoublesmartlearnbox .switchbtnbox .btn {
    position: relative;
    display: block;
    padding: 5px 0px;
    border: 3px solid #30e592;
    border-radius: 1000px;
    color: #30e592;
    background: transparent;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.aidoublesmartlearnbox .switchbtnbox .btn.active {
    border: 3px solid #30e592;
    color: #000;
    background: #30e592;
}


/*
 * =================================================================
 * 4. Swiper 輪播容器與投影片樣式 (優化)
 * =================================================================
 */

/* Swiper 外層容器 */
.aidoublesmartlearnbox .swiper-container {
    position: relative;
    /* 確保箭頭/分頁不被遮蔽 */
    overflow: visible !important;
    width: 90%;
    height: auto;
    padding: 0px;
    margin: 0px auto 0px auto;
    border: 2px solid #00d368;
    border-radius: 100px;
    /* 漸層邊框效果 */
    background-image: linear-gradient(to left, rgba(20, 38, 98, 0.6) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%, rgba(20, 38, 98, 0.6) 100%);
}

/* 投影片包裝層 */
.aidoublesmartlearnbox .swiper-wrapper {
    position: relative;
    width: 100%;
    margin-top: 0;
}

/* 單張投影片 */
.aidoublesmartlearnbox .swiper-slide {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px 0px;
    /* 桌面版內距 */
    text-align: center;
}

/* 投影片內的 row */
.aidoublesmartlearnbox .swiper-slide .row {
    align-items: center;
}

/* 投影片標題 */
.aidoublesmartlearnbox .swiper-slide h2 {
    margin: 0;
    color: #36ff99;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
}

/* 投影片內文 */
.aidoublesmartlearnbox .swiper-slide p {
    color: #d1d1d1;
    font-size: clamp(1rem, 4vw, 1.5rem);
}

/*
 * =================================================================
 * 5. Swiper 導航箭頭 (Navigation Arrows)
 * =================================================================
 */

/* 確保箭頭與分頁在最上層 */
.swiper-button-next,
.swiper-button-prev,
.aidoublesmartlearnbox .swiper-pagination {
    z-index: 200 !important;
}

/* 隱藏預設箭頭樣式 */
.swiper-button-next,
.swiper-button-prev {
    color: transparent !important;
    background: transparent;
}

/* 箭頭定位與大小 */
.aidoublesmartlearnbox .swiper-button-next,
.aidoublesmartlearnbox .swiper-button-prev {
    position: absolute;
    z-index: 99;
    /* 被上面的 !important 覆寫到 200 */
    top: 50%;
    width: 50px;
    color: transparent !important;
    background: transparent !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aidoublesmartlearnbox .swiper-button-prev {
    left: -1%;
}

.aidoublesmartlearnbox .swiper-button-next {
    right: -1%;
}


/*
 * =================================================================
 * 6. Swiper 分頁指示器 (Pagination) (優化)
 * =================================================================
 */

/* 分頁容器 */
.aidoublesmartlearnbox .swiper-pagination {
    position: relative;
    top: auto;
    left: auto;
    /* 啟用多行排列 (flex-wrap) */
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    height: auto;
    line-height: 0;
    margin: -50px auto 0px auto;
    /* 調整分頁與容器的間距 */
}

/* 單個分頁按鈕 */
.aidoublesmartlearnbox .swiper-pagination-bullet {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 85px;
    height: 85px;
    line-height: 0;
    /* padding: 5px 0 0 0; */
    margin: 0 10px;
    /* 邊框與內陰影 */
    border: 2px solid #29cc72;
    border-radius: 50%;
    opacity: 1;
    color: #000;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0px 0px 20px #76ffb1;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
}

/* 作用中分頁 */
.aidoublesmartlearnbox .swiper-pagination-bullet.swiper-pagination-bullet-active {
    border: 2px solid #29cc72;
    color: #ff0;
    background-color: #29cc72;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.8);
    font-weight: 700;
}

/* 分頁文字與數字 */
.aidoublesmartlearnbox .pagination-number {
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: bold;
}

.aidoublesmartlearnbox .pagination-text {
    font-size: 0.8rem;
}

.aidoublesmartlearnbox .swiper-pagination-bullet-text {
    line-height: 1.2;
    font-size: 12px;
}

.aidoublesmartlearnbox .swiper-pagination-bullet-text big {
    display: block;
    line-height: 1;
    color: #34c174;
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 900;
}

.aidoublesmartlearnbox .swiper-pagination-bullet-active big {
    display: block;
    line-height: 1;
    color: #fff;
}

/*
 * =================================================================
 * 7. Swiper 動畫效果
 * =================================================================
 */

/* 元素初始狀態 */
.aidoublesmartlearnbox .swiper-slide img,
.aidoublesmartlearnbox .swiper-slide h2,
.aidoublesmartlearnbox .swiper-slide p {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateY(10px);
}

/* 圖片在非作用中時禁用 pointer-events */
.aidoublesmartlearnbox .swiper-slide img,
.aidoublesmartlearnbox .swiper-slide-active img {
    pointer-events: none;
}

/* 元素激活狀態 (依序出現) */
.aidoublesmartlearnbox .swiper-slide-active img {
    opacity: 1;
    transition-delay: 0.2s;
    transform: translateY(-10px);
}

.aidoublesmartlearnbox .swiper-slide-active h2 {
    opacity: 1;
    transition-delay: 0.4s;
    transform: translateY(-10px);
}

.aidoublesmartlearnbox .swiper-slide-active p {
    opacity: 1;
    transition-delay: 0.6s;
    transform: translateY(-10px);
}

/*
 * =================================================================
 * 8. 頁尾與額外區塊
 * =================================================================
 */
.aidoublesmartlearnbox .footerendd {
    position: relative;
    z-index: 10;
    padding: 0 10px;
    /* 注意：此處是桌面版設定，手機版將覆蓋 */
}
.aidoublesmartlearnbox .footerendd a {
    position: relative;
    display: inline-block;
    width: 100%;
    padding: 5px 20px;
    border-radius: 50px;
    color: #000;
    background: #36ff99;
    box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.2);
    font-family: 'Noto Sans TC', 'Microsoft JhengHei';
    font-size: 1.3rem;
    font-weight: 700;
}

.aidoublesmartlearnbox .footerendd a:hover {
    color: #ff0;
    background: #00d066;
    transition: all 0.3s;
}

/* 連結後方的箭頭圖示 (預設黑色) */
.aidoublesmartlearnbox .footerendd a::after {
    position: relative;
    top: 1px;
    left: 3px;
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(https://www.cek.com.tw/edm/cloudfree/images/icon-swiper-right-black.svg) no-repeat;
    background-size: 16px;
    content: '';
}

/* 連結 hover 時的箭頭圖示 (變黃色) */
.aidoublesmartlearnbox .footerendd a:hover::after {
    background: url(https://www.cek.com.tw/edm/cloudfree/images/icon-swiper-right-yellow.svg) no-repeat;
}

/* 額外圖片區塊 */
.aidoublesmartlearnbox .chts-pic {
    position: relative;
    top: 50px;
    /* 桌面版定位 */
}

.aidoublesmartlearnbox .chts-pic img {
    display: block;
    margin: 0px auto;
}

/* 額外文字區塊 */
.aidoublesmartlearnbox .chts-txt {
    position: relative;
    top: 90px;
    /* 桌面版定位 */
}

.aidoublesmartlearnbox .chts-txt strong {
    color: #ff0;
    font-weight: 900;
}

/*
 * =================================================================
 * 9. 媒體查詢 (Media Queries) - 響應式設計
 * =================================================================
 */

/* --- 手機版樣式覆寫 (Max Width: 992px) --- */
@media (max-width: 992px) {
    /* 覆寫背景圖為手機版 */
    .aidoublesmartlearnbox {
        background: url(https://www.cek.com.tw/edm/cloudfree/images/bg-m.webp) no-repeat center top;
        background-size: cover;
    }

    /* 覆寫機器人背景圖為手機版 */
    .aidoublesmartlearnbox::after {
        background: url(https://www.cek.com.tw/edm/cloudfree/images/bg-robot-m.webp) no-repeat center top;
        background-size: 100%;
    }

    /* 切換按鈕滿版 */
    .aidoublesmartlearnbox .switchbtnbox {
        top: 0px;
        left: 0px;
        width: 100%;
    }

    /* [修正留白] Swiper 容器尺寸與上邊距收縮 */
    .aidoublesmartlearnbox .swiper-container {
        width: 90%;
        height: auto !important;
        /* 減少上方留白 */
        margin: 10px auto 0px auto;
        border-radius: 100px;
    }

    /* [修正留白] 投影片內容內距收縮 */
    .aidoublesmartlearnbox .swiper-slide {
        /* 縮小上下 padding */
        padding: 1rem 1rem;
    }

    /* Swiper 箭頭定位調整 */
    .aidoublesmartlearnbox .swiper-button-prev {
        left: -3%;
    }

    .aidoublesmartlearnbox .swiper-button-next {
        right: -3%;
    }

    /* [修正留白] Swiper 分頁定位調整 */
    .aidoublesmartlearnbox .swiper-pagination {
        /* 減少下方留白 */
        margin: -15px auto 0px auto;
    }

    /* 分頁按鈕尺寸與樣式調整 (保持不變) */
    .aidoublesmartlearnbox .swiper-pagination-bullet {
        width: 60px;
        height: 60px;
        margin: 5px;
    }

    /* 分頁文字行高調整 (保持不變) */
    .aidoublesmartlearnbox .swiper-pagination-bullet-text,
    .aidoublesmartlearnbox .swiper-pagination-bullet-text big,
    .aidoublesmartlearnbox .swiper-pagination-bullet-active big {
        line-height: 1;
    }
    .aidoublesmartlearnbox .swiper-pagination-bullet-text {
        padding: 0px !important;
    }

    /* [修正留白] 額外圖片/文字定位重設 (確保沒有殘留的 top 位移) */
    .aidoublesmartlearnbox .chts-pic {
        position: relative;
        top: 0;
    }

    .aidoublesmartlearnbox .chts-txt {
        position: relative;
        top: 0;
    }

    /* [修正留白] 調整頁尾區塊的底部間距 */
    .aidoublesmartlearnbox .footerendd {
        /* 增加底部的 padding (如果需要) 或確保沒有過大留白 */
        padding: 0 10px 20px 10px;
    }
}

/* --- 平板與小型桌機 (Min-Width: 576px and Max-Width: 991px) (保持不變) --- */
@media (min-width: 576px) and (max-width: 991px) {
    .aidoublesmartlearnbox .swiper-container {
        height: auto !important;
        margin: 0px auto 0px auto;
    }

    .aidoublesmartlearnbox .swiper-pagination {
        margin: -15px auto 0px auto;
    }
}

/* --- 桌機版 (Min-Width: 992px) (保持不變) --- */
@media (min-width: 992px) {
    .aidoublesmartlearnbox .swiper-container {
        height: 300px !important;
        margin: 2% auto 0px auto;
        border-radius: 1000px;
    }

    .aidoublesmartlearnbox .swiper-wrapper {
        margin: -100px auto 0px auto;
    }

    .aidoublesmartlearnbox .swiper-pagination {
        position: relative;
        left: -20%;
        margin: -30px auto 0px auto;
    }
      .aidoublesmartlearnbox .swiper-pagination-bullet-text {
        font-size: 16px;
    }
}

/* --- 桌機版 (Min-Width: 1600px) (保持不變) --- */
@media (min-width: 1600px) {
    .aidoublesmartlearnbox .swiper-pagination {
        margin: -50px auto 0px auto;
    }
    /* 單個分頁按鈕 */
    .aidoublesmartlearnbox .swiper-pagination-bullet {
        width: 100px;
        height: 100px;

    }
    .aidoublesmartlearnbox .swiper-pagination-bullet-text {
        font-size: 18px;
    }
}