body {
    margin: 0;
    padding: 0;
    background: #ea6157;
    background-image: url(SCFBG.jpg?t=1779675215747);
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

@media screen and (max-width:768px) {

    body {
        background-image: url(SCFBGm.jpg?t=1779675215747);
        background-size: cover;
        background-repeat: repeat-y;
        background-attachment: fixed;

    }
}

@media screen and (min-width:768px) {


    /* PCscrollbar樣式 */
    ::-webkit-scrollbar-thumb {
        background: #ffffff63;
    }

    ::-webkit-scrollbar {
        -webkit-appearance: none;
        width: 10px;
        height: 5px;
        background: linear-gradient(rgb(0, 0, 0) 0%, rgb(0, 0, 0) 100%);
    }
}




.SCFsafeText {
    /* 安全字樣式 */
    color: #000;
    text-align: center;
    font-size: 0.8rem;
    font-family: futurastdmedium, noto sans tc, Arial, 微軟正黑體, microsoft jhenghei, sans-serif;
}

.row {
    /*fixed flexbox stretch images*/
    align-items: center !important;
}

.col-6 a:hover {
    cursor: pointer;
}

.SCFtransformScale {
    transform: scale(1);
    transition-duration: .3s;
}

.SCFtransformScale:hover {
    transform: scale(0.98);
    cursor: pointer;
}

.SCFcategorytitle {
    /*分類大標樣式*/
    /* pointer-events: none; */
    cursor: default;
    /* 白底黑字用大標陰影 */
    /* filter: drop-shadow(3px 3px 3px rgba(0, 0, 0, 0.8));
    -webkit-filter: drop-shadow(3px 3px 3px rgba(0, 0, 0, 0.8)); */
}

.SCFcategorytitle span {
    /* 安全字 */
    font-size: 36px;
}

html {
    /* user-select: none; */
    /* color: black; */
    color: #fff;
    text-align: center;
    scroll-behavior: auto;
}

.lip {
    width: 100%;
    display: flex;
    justify-content: center;
}

.SCFtransformScale {
    transform: scale(1);
    transition-duration: .3s;
}

.SCFtransformScale:hover {
    transform: scale(0.98);
    cursor: pointer;
}

.SCFtransformPosition {
    /* 滿額贈hover動態  */
    transform: translate(0, 0);
    transition-duration: .3s;
}

.SCFtransformPosition:hover {
    transform: translate(0, -8px);
}

.Area_SCFnavbar {
    color: #ffffff;

    margin-bottom: 0 !important;
    /* justify-content: flex-start !important; */
    background-color: #c30d23;
}

.SCFnavbar a {
    color: #ffffff;
    font-family: futurastdmedium, noto sans tc, Arial, 微軟正黑體, microsoft jhenghei, sans-serif;
    font-weight: 400;
    font-size: 1.08rem;
    line-height: 2em;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;

}

/* 選單hover動態 */
.SCFnavbar a:hover {
    background-color: #d11b30;
    color: #ffffff;
    opacity: 1;
}

.SCFnavbar .dropdown-item:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.SCFnavbar  .dropdown>a{
    color: #fff !important;
}
.SCFnavbar .dropdown-menu {
    min-width: 13rem;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #00000000;
    background-clip: padding-box;
    border: none;
    border-radius: 0;
}

.SCFnavbar .dropdown-menu .dropdown-item {
    background-color: #ffffffdd;
    border: none;
    border-radius: 0;
    padding: 3px;
    color: #000;

}

.SCFnavbar .dropdown-menu .dropdown-item:hover {
    border: none;
    border-radius: 0;
    color: #c30d23;
    font-weight: 800;


}


.SCFnavbar .dropdown {
    overflow: hidden;
}

.SCFnavbar .dropdown .dropdown-menu {
    -webkit-transition: all .6s;
    transition: all .6s;
    max-height: 0;
    display: block;
    overflow: hidden;
    opacity: 0;
    /* 補上預設透明度0，讓漸入動畫更順暢 */
}

/* --- PC 版 (寬度 768px 以上)：維持 Hover 展開 --- */
@media screen and (min-width: 768px) {
    .SCFnavbar .dropdown:hover {
        overflow: visible;
    }

    .SCFnavbar .dropdown:hover .dropdown-menu {
        max-height: 500px;
        opacity: 1;
    }
}

/* --- MB 版 (寬度 767px 以下)：改用點擊展開 (Bootstrap 點擊會觸發 .show) --- */
@media screen and (max-width: 767px) {
    .SCFnavbar .show {
        overflow: visible;
    }

    .SCFnavbar .show .dropdown-menu {
        max-height: 500px;
        opacity: 1;

    }

    /* 1. 取消父層的相對定位，讓子選單以整條 Navbar 為對齊基準 */
    .SCFnavbar .dropdown {
        position: static !important;
    }

    /* 2. 讓下拉選單 100% 滿版，貼齊左右邊緣 */
    .SCFnavbar .dropdown-menu {
        width: 100%;
        left: 0 !important;
        right: 0 !important;
        text-align: center;
        /* 滿版時文字置中通常比較好看，也可依需求保持 left */
    }
}

@media screen and (max-width: 768px) {

    .Area_SCFnavbar {
        margin-bottom: 0 !important;
        /* justify-content: flex-start !important; */
    }

    .SCFnavbar li {
        border: none;
    }

    .SCFnavbar li:nth-child(odd) {
        border: none;

    }
}

@media screen and (max-width: 768px) {

    .VDrow {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        /* 🔥 關鍵 */
        scroll-snap-type: x mandatory;
    }

    .VDrow .col-4 {
        flex: 0 0 60%;
        max-width: 60%;
        scroll-snap-align: start;
        pointer-events: auto;

    }
}

.SCFoverlay:hover {
    /* filter: drop-shadow(0px 0px 0px #000000aa) brightness(1.01);
    -webkit-filter: drop-shadow(0px 0px 0px #000000aa) brightness(1.01); */
}

@media screen and (max-width: 768px) {

    .SCFtransformScale:hover,
    .SCFtransformPosition:hover,
    .SCFpromoteSetLight:hover {
        -webkit-filter: none;
        filter: none;
        transform: none;


    }


}


#SCFScrolltoTopBtn {
    width: 60px;
    position: fixed;
    right: 1%;
    bottom: 3%;
    height: auto;
    opacity: 0;
    transition-duration: .3s;
    z-index: 99;
}

#SCFScrolltoTopBtn:hover {
    cursor: pointer;
    opacity: 1;
}

.SecSwiper,
.SecSwiper .swiper-wrapper {
    overflow: visible !important;
}

/* Swiper樣式區域 */
.FstSwiper,
.SecSwiper {
    --swiper-theme-color: #c30d23;
    --swiper-navigation-color: #fff;
    --swiper-navigation-size: 30px;
}

.swiper-pagination {
    width: 100%;
    left: 0%;
    bottom: 8%;
    /* --swiper-pagination-color: #cf0000; */
}

@media screen and (max-width: 768px) {
    .swiper-pagination {
        bottom: 2%;
    }
}
