/*----------Carousel輪播----------*/
/* 第1組輪播 */
/* 大螢幕設置（lg 以上） */
#carousel_indicators {
    height: 45vh;
    overflow: hidden;
}

.carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.9);
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

    .carousel-indicators [data-bs-target]:hover {
        background-color: rgba(255, 255, 255, 1);
    }

/* 第1組輪播：切換按鈕 */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: width 0.3s ease, height 0.3s ease;
}

    .carousel-control-prev-icon:hover,
    .carousel-control-next-icon:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

/* 第1組輪播：圖片設定 */
.carousel-inner {
    width: 100%;
    height: 45vh;
    overflow: hidden;
}

.carousel-item {
    width: 100%;
    height: 100%;
}

.carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 第1組輪播：在md螢幕時 */
@media (max-width: 768px) {
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }

    #carousel_indicators {
        height: 35vh;
    }

    .carousel-inner {
        height: 35vh;
    }
}

/* 第1組輪播：在sm螢幕時 */
@media (max-width: 576px) {
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }

    #carousel_indicators {
        height: 30vh;
    }

    .carousel-inner {
        height: 30vh;
    }
}

/* 第2組輪播 */
/* 大螢幕設置（lg 以上） */
.custom-carousel .carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 小於 lg 時，讓每個輪播獨立佔滿一行 */
@media (max-width: 1400px) {
    .col-lg-6 {
        width: 100%;
        padding: 0;
    }

    .custom-carousel {
        margin-bottom: 20px;
    }
        .custom-carousel .carousel-inner img {
            object-fit: contain;
        }
}

@media (max-width: 768px) {
    /* 設置 carousel 容器的高度 */
    #carousel_indicators_2 .carousel {
        height: 350px;
    }

    #carousel_indicators_2 .carousel-inner {
        height: 100%;
        overflow: hidden;
    }

    /* 使 carousel-item 高度等於容器 */
    #carousel_indicators_2 .carousel .carousel-item {
        height: 100%;
    }

        #carousel_indicators_2 .carousel .carousel-item img {
            padding-left: 2rem;
            padding-right: 2rem;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
}

@media (max-width: 450px) {
    /* 設置 carousel 容器的高度 */
    #carousel_indicators_2 .carousel {
        height: 250px;
    }

    /* 讓 carousel-inner 適應容器高度，並避免被遮蔽 */
    #carousel_indicators_2 .carousel-inner {
        height: 100%;
        overflow: hidden;
    }
}

/*----------了解更多----------*/
.ytlee-more-section img {
    border-radius: 20px;
}

.ytlee-more-section .row {
    display: flex;
    flex-wrap: wrap;
}

.ytlee-more-section .col-lg-3,
.ytlee-more-section .col-md-6,
.ytlee-more-section .col-12 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.ytlee-more-section .col-lg-3,
.ytlee-more-section .col-md-6 {
    margin-bottom: 1rem;
}

.ytlee-more-section .col-12 {
    margin-bottom: 1rem;
}


@media (max-width: 992px) {
    .ytlee-more-section .col-md-6 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .ytlee-more-section .col-12 {
        margin-bottom: 1rem;
    }

    .ytlee-more-section img {
        max-width: 70%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}

/*----------index其他----------*/
.ytlee-index-title {
    color: var(--ytlee-blue);
    font-weight: 900;
}

.ytlee-about-us-bg {
    background-color: rgb(255,249,249);
}


