﻿/* 手機版 */
@media (max-width: 575.98px) {
    .d-flex.flex-column.flex-md-row {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .date-range {
        display: flex;
        flex-direction: column;
        gap: 8px;
        border: none !important;
        background-color: transparent !important;
    }
    .date-wrapper {
        border: 1px solid #68442b;
        border-radius: 6px;
        background-color: #FFF;
        padding: 0 10px;
        height: 39.5px;
        position: relative;
    }
    .date-separator {
        display: none !important;
    }
    .date-wrapper .date-display {
        justify-content: start !important;
        padding-left: 12px !important;
    }
    .input-wrapper {
        width: 200px !important; /* 手機版全寬 */
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .d-flex.flex-column.flex-md-row {
        flex-direction: column !important; /* 父容器垂直排列 */
        gap: 8px !important; /* 元素間距 */
    }

    /* 日期容器調整成獨立邊框 */
    .date-range {
        flex-direction: column; /* 垂直排列 */
        gap: 8px !important;
        border: none !important;
        background-color: transparent !important;
    }

    .date-wrapper {
        border: 1px solid #68442b;
        border-radius: 6px;
        background-color: #FFF;
        padding: 0 10px;
        height: 39.5px;
        position: relative;
    }

    .date-separator {
        display: none !important; /* 手機版不用 ~ */
    }

    .date-wrapper .date-display {
        justify-content: start !important;
        padding-left: 12px !important;
    }
    .input-wrapper {
        width: 340px !important; /* 手機版全寬 */
    }
}
/* 大平板 */
@media (min-width: 768px) and (max-width: 991.98px) {
    .d-flex.flex-column.flex-md-row {
        flex-direction: column !important; /* 父容器垂直排列 */
        gap: 8px !important; /* 元素間距 */
    }

    /* 日期容器調整成獨立邊框 */
    .date-range {
        flex-direction: column; /* 垂直排列 */
        gap: 8px !important;
        border: none !important;
        background-color: transparent !important;
    }

    .date-wrapper {
        border: 1px solid #68442b;
        border-radius: 6px;
        background-color: #FFF;
        padding: 0 10px;
        height: 39.5px;
        position: relative;
    }

    .date-separator {
        display: none !important; /* 手機版不用 ~ */
    }

    .date-wrapper .date-display {
        justify-content: start !important;
        padding-left: 12px !important;
    }
    .input-wrapper {
        width: 300px !important; /* 手機版全寬 */
    }
}
/* 小桌機*/
@media (min-width: 992px) and (max-width: 1199.98px) {
    .input-wrapper {
        width: 280px !important; /* 手機版全寬 */
    }
}
/* 特大桌機尺寸 */
@media (min-width: 1200px) {
}

.titleclamp-text {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.clamp-text {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 限制 3 行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word; /* 讓長字換行 */
    word-break: break-word; /* 強制長字換行 (現代瀏覽器) */
    white-space: normal; /* 避免 nowrap 導致文字超出 */
}
/* 主卡片 */
.act-card {
    height: 100%;
    width: 100%;
    position: relative;
    background-color: #FFFCF4;
    border: 1px solid;
    border-radius: 8px;
    z-index: 2;
    box-sizing: border-box;
    padding-bottom: 1rem;
}
    .act-card img {
        height: 425px;
        width: 350px;
        object-fit: cover;
    }

/* 底下紙張，露出部分 */
.card-underlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #8fcac3; /* 可換成你想要的紙張色 */
    border-radius: 8px;
    box-sizing: border-box;
    border: 1px solid; /* 可加一點邊框，讓它像真紙張 */
    z-index: 1; /* 在主卡片下面 */
    transform: translate(-12px, 10px);
}


/*.act-card img{
    height: 425px;
    width: 350px;
}*/

.act-vcard {
    height: 100%;
    width: 100%;
    position: relative;
    background-color: #FFFCF4;
    border: 1px solid;
    border-radius: 8px;
    z-index: 2;
    box-sizing: border-box;
    padding-bottom: 1rem;
}

/* 底下紙張，露出部分 */
.act-vcard-underlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #8fcac3; /* 可換成你想要的紙張色 */
    border-radius: 8px;
    box-sizing: border-box;
    border: 1px solid; /* 可加一點邊框，讓它像真紙張 */
    z-index: 1; /* 在主卡片下面 */
    transform: translate(-12px, 10px);
}


/*.act-vcard img {
    height: 100%;
    width: 100%;
}*/

.card-tag-bottom {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) translateY(50%);
    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;
}

.liter-img {
    max-width: 648px;
    max-height: 49px;
}

.videos-card {
    width: 100%;
    max-width: 100%; /* 可自行調整 */
    background-color: #F5F1E8;
    border: 1px solid;
    border-radius: 8px;
    z-index: 2;
    position: relative;
    box-sizing: border-box;
}

.vcard-underlay {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 100%;
    height: 100%;
    background-color: #8fcac3;
    border-radius: 8px;
    border: 1px solid;
    z-index: 1;
}

.vcard-label {
    background-color: #68442b;
    color: #fff !important;
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
}

.book-detail {
    min-height: 300px;
}
.book-info {
    margin-top: auto; /* 貼底 */
}

/*.info-line {
    border-bottom: 1px solid #ccc;
    padding: 6px 0;
    font-size: 1rem;
    color: #4a4a4a;
}*/

.book-info .info-line {
    padding: 10px 0;
    border-bottom: 1px solid #68442b;
    font-size: 1rem;
    color: #68442b;
}

.nav-tabs {
    border-bottom: none;
    background-color: transparent;
}

    .nav-tabs .nav-link {
        border: none;
        background-color: transparent;
        color: #C3AD9C; /* 巧克力棕（可依實際色調調整） */
        font-weight: bold;
    }

        .nav-tabs .nav-link.active {
            color: #68442b; /* 橘色 */
            border-bottom: 3px solid #68442b;
            background-color: transparent;
        }

.tab-content {
    border: none;
    padding-top: 1rem;
}

.input-wrapper {
    position: relative;
    width: 230px;
}

.date-range-display {
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 14px;
    border: 1px solid #68442b;
    border-radius: 6px;
    background-color: #fff;
/*    user-select: none;*/
    width: 100%;
    max-height: 40px;
    /*    display: flex;
    justify-content: center;*/
}

    .date-range-display span {
/*        display: flex;
        align-items: center;
        gap: 0.25rem;*/
        color: #C3AD9C !important;
    }

#customDateDisplay {
    letter-spacing: 1px;
}

    #customDateDisplay i,
    #customDateDisplay i {
        margin-right: 12px;
        margin-left: 12px;
        color: #C3AD9C !important;
    }

    #customDateDisplay i {
        margin-right: 12px;
        margin-left: 12px;
        color: #C3AD9C;
    }

.date-separator {
    padding-right: 6px; /* 控制 ~ 後空格 */
}

.hidden-inputs {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.dropdown.all {
    border: 0.5px solid #68442b !important;
    border-radius: 6px;
    background-color: #FFF;
}
.custom-dropdown-btn {
    color: #C3AD9C !important;
}

.custom-dropdown-item {
    color: #C3AD9C !important;
}

.dropdown-menu.all .custom-dropdown-item:hover {
    background-color: #F5F1E8 !important;
    color: #68442b;
}

.dropdown-menu.all .custom-dropdown-item:focus {
    background-color: transparent !important;
    color: #68442b;
}
.dropdown-menu.all .custom-dropdown-item:focus {
    box-shadow: none;
}

.title-box {
    display: inline-block;
    border: 1px solid #000;
    border-radius: 6px;
    color: #FFF !important;
    background-color: #DC9D6D;
    padding: 8px 15px;
    margin-bottom: 0;
}

/*.mobile-date-picker .form-label {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.mobile-date-picker input {
    font-size: 1rem;
}*/

/* 隱藏原生日期 icon */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    cursor: pointer;
}

/* 容器 */
.date-wrapper {
    position: relative;
    width: 100%;
    height: 39.5px;
}

    /* 隱藏原生 input 文字 */
    .date-wrapper input[type="date"] {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        border: none;
/*        cursor: pointer;*/
        color: transparent;
        background-color: transparent;
    }

    /* 自訂顯示文字 */
    .date-wrapper .date-display {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #C3AD9C !important;
        letter-spacing: 3px;
        padding-right: 20px;
    }

    /* calendar icon */
    .date-wrapper i {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        color: #C3AD9C !important;
    }

/* 日期範圍整體 */
.date-range {
    display: flex;
/*    align-items: center;*/
    border: 1px solid #68442b;
    border-radius: 6px;
    background-color: #FFF;
    overflow: hidden;
}

/* 分隔符 */
.date-separator {
    padding: 0 8px;
    color: #C3AD9C !important;
    font-weight: bold;
    user-select: none;
}
