﻿@media (max-width: 575.98px) {
    .d-flex.flex-column.flex-md-row {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .card-tag {
        padding: 0.25rem 1.65rem !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .d-flex.flex-column.flex-md-row {
        flex-direction: column !important; /* 父容器垂直排列 */
        gap: 8px !important; /* 元素間距 */
    }

    .card-tag {
        padding: 0.25rem 2rem !important;
    }
}
/* 大平板 */
@media (min-width: 768px) and (max-width: 991.98px) {
    .d-flex.flex-column.flex-md-row {
        flex-direction: column !important; /* 父容器垂直排列 */
        gap: 8px !important; /* 元素間距 */
    }
}
/* 小桌機*/
@media (min-width: 992px) and (max-width: 1199.98px) {
}
/* 特大桌機尺寸 */
@media (min-width: 1200px) {
}
ul, ol {
    list-style-position: outside !important;
}
/* 主卡片 */
.act-card {
    width: 100%;
    position: relative;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    z-index: 2;
    box-sizing: border-box;
    border-radius: 8px;
}
/* 圖片底層紙張（只在圖片下方） */
.card-underlay {
    position: absolute;
    top: 0%;
    left: 0%;
    width: 90%;
    height: 85%;
    background-color: #DC9D6D;
    border-radius: 8px;
    border: none;
    z-index: 1; /* 在圖片底下 */
}

.img-wrapper {
    position: relative;
    display: inline-block;
    padding: 10px;
    width: 100%; /* 讓容器響應父元素寬度 */
}

/* 用比例容器控制高度，例如 16:9 */
.img-container {
    position: relative;
    width: 100%; /* 跟著父容器寬度走 */
    padding-top: 55%; /* 高度比例，例如 200/432 ≈ 46.3% */
    overflow: hidden;
}

    .img-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* 填滿並裁切 */
        border: none;
        z-index: 2;
    }

/* 標籤貼在圖片右下角 */
.card-tag-bottom {
    position: absolute;
    right: 3%;
    bottom: 0;
    background-color: #DC9D6D;
    color: #fff !important;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    white-space: nowrap;
    z-index: 3;
}

.card-tag {
    position: absolute;
    right: -1%;
    bottom: -2%;
    background-color: #68442b;
    color: #fff !important;
    padding: 0.25rem 3.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    z-index: 2;
}

#main-carousel-arch {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.arch-box-content {
    width: 97%;
    height: 95%;
    margin: auto;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 20px;
}

.arch-box {
    position: absolute;
    inset: 0;
    background: #DC9D6D;
    z-index: 0;
    border: 1px solid;
    border-radius: 20px;
    pointer-events: none;
}

.arch-box-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 20px;
}

.maincarousel-wrapper {
    aspect-ratio: 21 / 9;
    max-height: 450px; /* 限制桌機最大高度 */
    display: flex;
    justify-content: center;
    /*    align-content: center;*/
}

#thumbnail-carousel {
    height: 100% !important;
    overflow-y: auto; /* 讓滾動生效 */
    /* Firefox */
    scrollbar-color: #DC9D6D #eee; /* thumb 顏色, track 顏色 */
    scrollbar-width: auto; /* auto, thin, none */
}

    /* 縮圖統一樣式 */
    #thumbnail-carousel .splide__slide img {
        height: 100%;
        width: auto;
        object-fit: fill;
        border-radius: 4px;
    }

    /* 預覽圖樣式 */
    #thumbnail-carousel .splide__slide {
        /*height: 100%;*/ /* 滿高，與 JS 的 fixedHeight 對應 */
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid transparent;
        cursor: pointer;
        opacity: 0.7;
    }

        #thumbnail-carousel .splide__slide.is-active {
            border-color: #68442B;
            opacity: 1;
        }

    /* Chrome / Edge / Safari */
    #thumbnail-carousel::-webkit-scrollbar {
        width: 10px; /* 捲軸寬度 */
    }

    #thumbnail-carousel::-webkit-scrollbar-track {
        background: #DC9D6D; /* 軌道顏色 */
    }

    #thumbnail-carousel::-webkit-scrollbar-thumb {
        background-color: #DC9D6D; /* 滑塊顏色 */
        border-radius: 4px;
    }

    #thumbnail-carousel::-webkit-scrollbar-button {
        background-color: #DC9D6D; /* 上下箭頭背景顏色 */
    }

.nav-tabs {
    border-bottom: none;
    background-color: transparent;
    position: relative;
    top: -20px; /* 上移 20px，可自行調整 */
    z-index: 2; /* 確保不被背景蓋住 */
}

    .nav-tabs .nav-link {
        border: none;
        background-color: transparent;
        color: #68442b;
        font-weight: bold;
    }

        .nav-tabs .nav-link.active {
            color: #FFF;
            background-color: #68442b;
            border-radius: 6px;
        }

.tab-content {
    border: none;
}

.arctab-wrapper {
    position: relative;
    z-index: 0;
}

.arctab {
    position: relative;
    z-index: 2;
    background-color: #FFFCF4;
    border-radius: 8px;
}

.nav-link.arch {
    width: 140px !important;
    height: 40px;
    padding: 0;
}

.image-carousel .card,
.age-carousel .card {
    border: none;
    overflow: hidden;
    text-align: center;
    background-color: transparent;
    padding: 0;
}

.image-carousel .card-img,
.age-carousel .card-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.image-carousel .card-title,
.age-carousel .card-title {
    text-align: center;
    /*    font-size: 1rem;*/
    margin: 0;
    padding-top: 8px;
}

.image-carousel-wrapper {
    position: relative;
}

.splide__arrows {
    display: none !important;
}

.image-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #68442b;
    cursor: pointer;
    z-index: 10;
}

    .image-arrow.left {
        left: 10px; /* 可依需要調整 */
        transform: translateY(-50%) rotate(180deg);
        background-color: #FFF;
        border-radius: 20px;
    }

    .image-arrow.right {
        right: 10px; /* 可依需要調整 */
        background-color: #FFF;
        border-radius: 20px;
    }

.age-carousel-wrapper {
    position: relative;
}

.age-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #68442b;
    cursor: pointer;
    z-index: 10;
}

    .age-arrow.left {
        left: 10px; /* 可依需要調整 */
        transform: translateY(-50%) rotate(180deg);
        background-color: #FFF;
        border-radius: 20px;
    }

    .age-arrow.right {
        right: 10px; /* 可依需要調整 */
        background-color: #FFF;
        border-radius: 20px;
    }



.orange-box {
    background-color: #DC9D6D;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 105%;
    z-index: 1;
}

.age-carousel-card.p-font-size-16 {
    font-size: 1rem !important;
}

.age-carousel-card.p-font-size-18 {
    font-size: 1.125rem !important;
}

.age-carousel-card.p-font-size-20 {
    font-size: 1.25rem !important;
}

.lang-toggle {
    display: inline-block;
    position: relative;
    width: 160px;
    height: 30px;
}

    .lang-toggle input {
        display: none;
    }

    .lang-toggle label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: white;
        border-radius: 10px;
        padding: 0;
        cursor: pointer;
        height: 100%;
        border: 1px solid #C3AD9C;
        overflow: hidden;
    }

.lang-option {
    width: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 0.875rem;
    font-weight: bold;
    color: #C3AD9C !important;
    background-color: white;
    transition: all 0.2s ease;
}

/* 點選時切換樣式 */
input:not(:checked) + label .lang-zh {
    background-color: #68442b;
    color: white !important;
}

input:checked + label .lang-en {
    background-color: #68442b;
    color: white !important;
}
