.swiper {
    width: 600px;
    height: 600px;
    /* height: auto; */ 
    /* background-color: #2455a5; */
    display: flex;
    flex-direction: column;
}

/* 替換箭頭的圖片 */
.swiper-button-next {
    background-image: url('../img/product/Restroom_Unrest_Detection_Service/arrow.png'); /* 替換為你的箭頭圖片 */
    background-size: contain; /* 確保圖片自動縮放適合按鈕大小 */
    background-repeat: no-repeat;
    background-position: center;
    width: 50px;
    height: 50px;
    display: flex;
    /*bottom: 76px; */
    color: transparent; /* 隱藏原來的箭頭 */
    transform: translateY(520%);
    /* left: 90%; */
}

/* 替換箭頭的圖片 */
.swiper-button-prev {
    background-image: url('../img/product/Restroom_Unrest_Detection_Service/arrow-prev.png'); /* 替換為你的箭頭圖片 */
    background-size: contain; /* 確保圖片自動縮放適合按鈕大小 */
    background-repeat: no-repeat;
    background-position: center;
    width: 50px;
    height: 50px;
    display: flex;
    color: transparent; /* 隱藏原來的箭頭 */
    position: absolute; /* 設置絕對定位 */
    bottom: 10px; /* 調整這裡的值來控制距離底部的高度 */
    transform: translateY(520%);
}

/* 設置按鈕和滾動條並排 */
.swipper-scrollbar-and-button {
    display: flex;         /*使用 flexbox 排列子元素*/
    align-items: center;   /* 垂直方向居中對齊 */
    gap: 10px;             /* 按鈕和滾動條之間的間距 */
    height: 100px;          /* 父容器的高度 */
    width: 100%;           /* 根據需要設置寬度，可以是固定值或百分比 */
}


/* Swiper Slide 基本設置 */
.swiper-slide {
    display: flex;
    align-items: flex-end; /* 讓內容靠下對齊 */
    justify-content: center; /* 圖片水平居中 */
    /* padding-bottom: 80px; */
    box-sizing: border-box;
    object-fit: contain;
}

/* 區域圖片大小 - 預設樣式 */
.swiper-slide img {
    width: 80%;
    height: 80%; 
    /* max-height: 500px; 最大高度 */
    max-width: 600px; 
    object-fit: contain; /* 防止變形 */
}

/* === RWD 調整 === */

/* 大型桌面設備 (螢幕寬度大於 1200px) */
@media (min-width: 1200px) {
    .swiper-slide img {
        width: 80%;
        height: 80%; 
        max-height: 600px;
        max-width: 800px;
        object-fit: contain;
        padding-bottom: 80px;
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .swiper-slide img {
        width: 100%;
        height: 100%; 
        max-height: 400px;
        max-width: 500px;
        object-fit: contain;
    }
}

@media (max-width: 767px) {
    .swiper-slide {
        align-items: center;
    }

    .swiper-slide img {
        width: 100%;
        height: 100%;  
        max-height: 300px; 
        object-fit: contain;
    }
}

.swiper-text a {
    display: inline-block;
    padding-right: 5px;
    padding-left: 5px;
    color: #2455a5;
}

.swiper-text a img {
    height: 14px;
    margin-top: -3px;
}

/* .swiper-button-next-1{
    transform: translateY(550%);
}
.swiper-button-prev-1{
    transform: translateY(550%);
}

.swiper-button-next-2{
    transform: translateY(500%);
}
.swiper-button-prev-2{
    transform: translateY(500%);
} */

.swiper2 {
    width: 600px;
    /* height: 550px; */
    height: 650px;
    /* background-color: #2455a5; */
}

/* 手機響應式設計 */
@media (max-width: 768px) {
    /* .swiper-slide.img-single-bath.swiper-slide-active {
        max-width: 100%;
        max-height: 400px;
    } */

    .swipper-scrollbar-and-button {
        display: flex;         /*使用 flexbox 排列子元素*/
        align-items: center;   /* 垂直方向居中對齊 */
        gap: 10px;             /* 按鈕和滾動條之間的間距 */
        height: 50px;          /* 父容器的高度 */
        width: 100%;           /* 根據需要設置寬度，可以是固定值或百分比 */
    }

    .swiper {
        width: 100%; /* 讓 swiper 滿版寬度 */
        height: auto;
    }
    .swiper-slide {
        display: flex;
        align-items: flex-end; /* 讓內容垂直居中 */
        justify-content: center; /* 圖片水平居中 */
    }

    /* .swiper-slide img {
        width: 100%; /* 讓圖片滿版寬度 */
        /* max-width: 300px;
        height: auto;
        max-height: 400px; 
    }  */

    .swiper-button-next,
    .swiper-button-prev {
        display: none!important; /* 隱藏手機上的按鈕 */
    }
}