.carousel-container {
    /*carousel容器*/
    height: 600px;
    /*設定carousel的高度為400px*/
    width: 100%;
    /*設定carousel的寬度依照RWD調整*/
    overflow: hidden;
    /*將多餘區域隱藏*/
    border-radius: 0.8rem;
    /*圓角讓外框不會那麼醜*/
    position: relative;
    /*background-color: #e7e7e7;*/
    margin: auto;

}

.carousel-innerthing {
    /*carousel容器內資料放置區*/
    height: 100%;
    /*設定carousel容器內資料高度等於容器*/
    width: auto;
    /*設定carousel容器內資料寬度等於容器*/
    position: relative;
    display: block;
    align-items: center;
}

.carousel-item1.active {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    overflow: hidden;
    opacity: 1;
    z-index: 2;
    border-radius: 0.8rem;
}

.carousel-item1 {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 這行很重要！確保容器本身就是 400px 高 */
    overflow: hidden;
    border-radius: 0.8rem;
    transition: scale 0.5s ease;
}

.carousel-img:hover {
    scale: 1.1;
}

.carousel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 這是關鍵：圖片會裁切多餘部分，填滿容器 */
    display: block;
}

.carousel-title {
    z-index: 1;
    position: absolute;
    height: auto;
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    bottom: 0px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: #FFF;
}

.carousel-prev {
    z-index: 2;
    position: absolute;
    background: #ffffff00;
    border: none;
    top: 0;
    color: #FFF;
    height: 400px;
    transition-duration: 0.4s;
}

.carousel-prev:hover {
    color: rgb(148, 148, 148);
}

.carousel-next {
    z-index: 2;
    position: absolute;
    top: 0;
    right: 0px;
    height: 400px;
    background: #ffffff00;
    border: none;
    color: #FFF;
    transition-duration: 0.4s;
}

.carousel-next:hover {
    color: rgb(148, 148, 148);
}

.carousel-image-overlay {
    filter: brightness(0.92) contrast(1.05);
}

.carousel-control-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-circle svg {
    width: 20px;
    height: 20px;
    color: #444;
}

.signboard-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 60px;
    background-color: #6ea6a9;
    /* 柔和日系綠藍色 */
    border-bottom-right-radius: 0.8rem;
    border-top-left-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    z-index: 3;
    opacity: 1;
    user-select: none;
}

.signboard-label span {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 5px;
}

@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .signboard-label {
        width: 120px;
        height: 50px;
    }

    .signboard-label span {
        font-size: 0.9rem;
    }

    .carousel-container {
        /*carousel容器*/
        height: 400px;
        /*設定carousel的高度為400px*/
    }
}