.navbar {
    --bs-navbar-padding-y: 1rem;
    --bs-navbar-nav-link-padding-x: 1rem;
}

.nav-item {
    border-radius: 0.5rem;
    margin: 10px;
}

.navhover:hover {
    transition: all 0.5s ease;
}

.navhover:hover {
    background-color: rgba(0, 0, 0, 0.05)
}

#btn_top {
    z-index: 9999;
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 999em;
    display: none;
}

body {
    min-width: 400px;
    margin: auto;
    font-family: 'Noto Sans TC', sans-serif;
}

.card-container {
    max-width: 1024px;
    margin: auto;
}

/* 享好買區域 開頭 */

.titlearea {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 6rem;
    font-family: "Noto Serif TC", serif;
    font-optical-sizing: auto;
    font-style: normal;
	user-select: none;
}

.maintitle {
    font-size: 30px;
    font-weight: bold;
    color: black;
    margin-top: 3rem;
    margin-bottom: 3rem;
    letter-spacing: 0.7rem;
}

.maintitle::before,
.maintitle::after {
    content: '－';
    color: black;
    font-size: 24px;
    vertical-align: middle;
    position: relative;
    top: -6px;
    /* 或 -1px 微調 */
}

.uppercasetitle {
    font-size: 14px;
    font-weight: 500;
    color: gray;
    letter-spacing: 0.2rem;
    font-style: italic;
}

.lowcasetitle {
    font-size: 16px;
    font-weight: 500;
    color: gray;
    letter-spacing: 0.2rem;
}

/* 享食旅區域 結尾 */

/* 分區背景色 開頭 */
.section-top {
    background: linear-gradient(to bottom, #ffffff 0%, #fff7df 30%, #fff7df 70%, #fff7df 100%);
    /*background-color: #fcf5ea;*/
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

.section-shopping {
    background: linear-gradient(to bottom, #fff7df 0%, #ffeded 30%, #ffeded 70%, #ffeded 100%);
    /*background-color: #fcf5ea;*/
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.section-deals {
    background: linear-gradient(to bottom, #ffeded 0%, #f0ebff 30%, #f0ebff 70%, #fbfdff 100%);
    /*background-color: #fcf5ea;*/
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.section-unbox {
    background: linear-gradient(to bottom, #fbfdff 0%, #fbfdff 30%, #fbfdff 70%, #ffffff 100%);
    padding-top: 4rem;
    padding-bottom: 4.5rem;
}

/* 分區背景色 結尾 */

/* 分區標語及圖片 開頭 */
.content-box-shopping {
    display: flex;
    flex-direction: column-reverse;
    gap: 7rem;
    max-width: 1024px;
    margin: 0 auto;
    align-items: center;
    font-family: "Noto Serif TC", serif;
    padding-left: 48px;
    padding-right: 48px;
}

.content-box-deals {
    display: flex;
    flex-direction: column-reverse;
    gap: 7rem;
    max-width: 1024px;
    margin: 0 auto;
    align-items: center;
    font-family: "Noto Serif TC", serif;
    padding-left: 48px;
    padding-right: 48px;
}

.content-box-unbox {
    display: flex;
    flex-direction: column-reverse;
    gap: 7rem;
    max-width: 1024px;
    margin: 0 auto;
    align-items: center;
    padding-left: 0px;
    padding-right: 0px;
}

.feature-box,
.text-box {
    width: 100%;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.4rem;
    justify-content: center;
    font-family: "Noto Serif TC", serif;
	user-select: none;
}

.section-title picture {
    display: inline-block;
    vertical-align: baseline;
    user-select: none;
    -webkit-user-drag: none;
}

.section-title picture img {
    width: 40px;
    height: auto;
    vertical-align: baseline;
    margin-left: 4px;
    user-select: none;
    -webkit-user-drag: none;
}

.section-title-reverse {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.4rem;
    justify-content: center;
    flex-direction: row-reverse;
    font-family: "Noto Serif TC", serif;
	user-select: none;
}

.section-title-reverse picture {
    display: inline-block;
    vertical-align: baseline;
    user-select: none;
    -webkit-user-drag: none;
}

.section-title-reverse picture img {
    width: 40px;
    height: auto;
    vertical-align: baseline;
    margin-left: 4px;
    user-select: none;
    -webkit-user-drag: none;
}

.section-subtitle {
    font-size: 16px;
    color: gray;
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-family: "Noto Serif TC", serif;
	user-select: none;
}

.section-eng {
    font-size: 14px;
    letter-spacing: 1px;
    color: gray;
    text-align: center;
    font-style: italic;
    font-family: "Noto Serif TC", serif;
	user-select: none;
}

.feature-img {
    width: 100%;
    max-width: 436px;
    /* 最大寬度 */
    aspect-ratio: 6 / 4;
    /* 維持你原本代表圖比例 */
    overflow: hidden;
    /* 裁切超出 */
    border-radius: 20px;
    /* 圓角裁切圖片 */
    background-color: #eee;
    /* 後備底色，圖未載入時顯示 */
    line-height: 0;
    /* 移除 inline 圖片縫隙 */
    display: block;
    /* 防止彈性排版問題 */
    user-select: none;
    -webkit-user-drag: none;
}

/* 讓 picture / img 都能吃到填滿規則 */
.feature-img picture,
.feature-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* 填滿並裁切，多餘部分不變形 */
    user-select: none;
    -webkit-user-drag: none;
}

.more-btn {
    background-color: white;
    border-radius: 2rem;
    padding: 0.6rem 2rem;
    border: none;
    font-weight: bold;
    margin: 2rem auto 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: block;
    letter-spacing: 0.3rem;
    transition: all 0.3s ease;
    display: none;
    font-size: 14px;
    width: 140px;
    text-decoration: none;
    color: black;
    font-family: "Noto Serif TC", serif;
}

.more-btn:hover {
    transform: scale(0.9);
    background-color: #f2f2f2;
    color: #333;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.more-btn-mobile {
    background-color: white;
    border-radius: 2rem;
    padding: 0.6rem 2rem;
    border: none;
    font-weight: bold;
    margin: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: block;
    letter-spacing: 0.3rem;
    transition: all 0.3s ease;
    display: block;
    font-family: "Noto Serif TC", serif;
    font-size: 14px;
    width: 140px;
    text-decoration: none;
    color: black;
    font-family: "Noto Serif TC", serif;
}

.more-btn-mobile:hover {
    transform: scale(0.9);
    background-color: #f2f2f2;
    color: #333;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.btn-mobile-border {
    padding-top: 24px;
}

/* 分區標語及圖片 結尾 */

/* 條列式文章 開頭 */
.article-list {
    margin-top: 88px;
    margin-left: 2rem;
    margin-right: 2rem;
}

.article-list-unbox {
    margin-top: 0rem;
    margin-left: 2rem;
    margin-right: 2rem;
}

.article-item {
    margin-bottom: 4rem;
    border-radius: 24px;
    text-align: left;
    transition: all 0.3s ease;
    letter-spacing: 0.1rem;
    padding: 24px;
    line-height: 3rem;
}

.article-item:hover {
    transform: scale(0.9);
    color: #333;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.article-list a {
    color: black;
    text-decoration: none;
}

.article-list-unbox a {
    color: black;
    text-decoration: none;
}

.article-title {
    font-weight: bold;
    text-align: justify;
}

.article-date {
    color: gray;
    font-size: 14px;
}

/* 條列式文章 結尾 */

/* 電腦版 RWD */
@media (min-width: 768px) {
    .titlearea {
        margin-top: 5rem;
        margin-bottom: 208px;
    }

    .section-top {
        padding-top: 96px;
        padding-bottom: 3rem;
    }

    .section-shopping {
        padding-top: 136px;
        padding-bottom: 0rem;
    }

    .section-deals {
        padding-top: 96px;
        padding-bottom: 0rem;
    }

    .section-unbox {
        background-color: #ffffff;
        padding-top: 0%;
        padding-bottom: 0rem;
    }

    .content-box-shopping {
        gap: 5rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .content-box-deals {
        gap: 5rem;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: space-between;
    }

    .content-box-unbox {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-left: 48px;
        padding-right: 48px;
        gap: 5rem;
    }

    .feature-box,
    .text-box {
        width: 50%;
    }

    .text-box {
        text-align: center;
    }

    .section-subtitle,
    .section-eng {
        text-align: center;
    }

    .article-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 6rem;
        max-width: 1024px;
        margin: 4rem auto 0;
    }

    .article-list-unbox {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 4rem;
        max-width: 1024px;
        margin: 4rem auto 0;
    }

    .article-item {
        margin-bottom: 0rem;
        text-align: left;
    }

    .more-btn {
        text-align: center;
        display: block;
    }

    .more-btn-mobile {
        text-align: center;
        display: none;
    }

    .divider-line {
        display: block !important;
    }
}

/*分隔線樣式*/
.divider-line {
    width: 1px;
    background-color: rgba(0, 0, 0, 0.3);
    /* 比黑色淡一點更優雅 */
    z-index: 100;
    min-height: 229px;
    display: none;
}

/*adBanner相關CSS 開頭*/
#adbanner {
    position: fixed;
    bottom: 10%;
    left: 20px;
    display: flex;
    flex-direction: column;
    /* 垂直堆疊 */
    align-items: center;
    justify-content: flex-start;
    /* 使內容從上方開始排列 */
    height: auto;
    /* 讓高度根據內容自適應 */
    width: 250px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: left 0.5s ease-in-out;
}

/* 設置廣告輪播位置與過渡效果 */
#adCarousel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
}

/* 當廣告摺疊時移到右側 */
#adbanner.collapsed {
    left: -250px;
}

/* 隱藏摺疊後的箭頭按鈕 */
#toggleAdButton {
    position: absolute;
    bottom: 5%;
    right: -40px;
    font-size: 2rem;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    transition: right 0.5s ease-in-out;
    background: none;
}

/* 當廣告摺疊時，箭頭移動並且隱藏 */
#adbanner.collapsed+#toggleAdButton {
    right: 0;
    visibility: hidden;
}

/* 自訂的 SVG 按鈕樣式 */
#toggleAdButton svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

#currentDateTime {
    color: white;
}

#adbannertext {
    color: white;
}

/*adBanner相關CSS 結尾*/