.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto; /* 水平置中 */
}

#slideshow {
    display: flex;
    align-items: center;
    width: 100%; /* 設定容器寬度為圖片的寬度 */
    height: 548PX; /* 設定容器高度為圖片的高度 */
    overflow: hidden;
    position: relative;
    margin: 0 auto; /* 使容器在頁面上水平置中 */
}

#slideshow img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 100%; /* 將所有圖片設置為右側 */
    opacity: 0;
    transition: left 1s; /* 只對left屬性進行過渡 */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#slideshow img.active {
    left: 0; /* 當圖片為活躍狀態時，將其設置為左側為0 */
    opacity: 1;
}

#carousel {
    position: relative;
    width: 500px;
    height: 300px;
    overflow: visible;
}

#carousel img {
    width: 100%;
    height: 100%;
    display: none;
    object-fit: cover;
}

#carousel img.active {
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 57px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
}

.carousel-button.left {
    left: 10px;
    background-image: url('arrow-left.png?t=1748422224326');
    background-size: cover;
}

.carousel-button.right {
    right: 60px;
    background-image: url('arrow-right.png?t=1748422224326');
    background-size: cover;
}


.image-container {
    background-image: url('BG_G.jpg?t=1748422224326');
    display: flex; /* 使用flex布局使圖片並排顯示 */
    justify-content: space-between; /* 圖片之間的間距均勻分布 */
}

.image-container a {
    flex: 1; /* 使每個連結元素都有相同的寬度 */
    display: block; /* 將連結設為區塊元素 */
    overflow: hidden; /* 隱藏超出的部分 */
}

.image-container img {
    display: block; /* 將圖片設為區塊元素 */
    width: 100%; /* 圖片寬度為100% */
    height: auto; /* 高度自動 */
    object-fit: cover; /* 使圖片始終覆蓋整個容器 */
}

.image-container2 {
    background-image: url('BG_O.jpg?t=1748422224326');
    display: flex; /* 使用flex布局使圖片並排顯示 */
    justify-content: space-between; /* 圖片之間的間距均勻分布 */
}

.image-container2 a {
    flex: 1; /* 使每個連結元素都有相同的寬度 */
    display: block; /* 將連結設為區塊元素 */
    overflow: hidden; /* 隱藏超出的部分 */
}

.image-container2 img {
    display: block; /* 將圖片設為區塊元素 */
    width: 100%; /* 圖片寬度為100% */
    height: auto; /* 高度自動 */
    object-fit: cover; /* 使圖片始終覆蓋整個容器 */
}


body {
    background-image: url('BG_O.jpg?t=1748422224326') !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

.yellow-bg {
    background-color: #ffff36;
    width: 100%;
    margin: 0;
    padding: 0; /* 如果需要，可以加上這行以確保內部間距為0 */
    box-sizing: border-box; /* 確保寬度包括內部間距和邊框 */
}
