/* =========================================
   0. 字體定義 (Font Face)
   ========================================= */
@font-face {
    font-family: 'LionJP-Bold';
    src: url('images/assets/font/lionJP-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   1. 設計規範變數 (Variables)
   ========================================= */
:root {
    /* Colors */
    --unnamed-color-ffffff: #FFFFFF;
    --unnamed-color-1979ab: #1979AB; /* 藍色 */
    --unnamed-color-2e2e2e: #2E2E2E; /* 深灰 */
    --brand-green: #00833e;
    --brand-green-light: #1a9636;
    --brand-blue: #1979ab;
    
    /* Fonts */
    --unnamed-font-family-獅尾快腿黑體jp: "獅尾快腿黑體JP", "Noto Sans TC", sans-serif;
    --unnamed-font-family-poppins: "Poppins", sans-serif;
    --unnamed-font-family-lionjp-bold: "LionJP-Bold", "Noto Sans TC", sans-serif;
    
    /* Font styles & Weights */
    --unnamed-font-style-normal: normal;
    --unnamed-font-weight-900: 900;
    --unnamed-font-weight-normal: 400;
    --unnamed-font-weight-bold: 700;
    
    /* Font Size Multiplier - 用於無障礙功能 */
    --font-size-multiplier: 1;
    
    /* Sizes - 使用 rem 單位，會根據根元素字體大小縮放 */
    --unnamed-font-size-15: 0.9375rem; /* 15px base */
    --unnamed-font-size-16: 1rem; /* 16px base */
    --unnamed-font-size-18: 1.125rem; /* 18px base */
    --unnamed-font-size-20: 1.25rem; /* 20px base */
    --unnamed-font-size-22: 1.375rem; /* 22px base */
    --unnamed-font-size-24: 1.5rem; /* 24px base */
    --unnamed-font-size-28: 1.75rem; /* 28px base */
    --unnamed-font-size-32: 2rem; /* 32px base */
    --unnamed-font-size-36: 2.25rem; /* 36px base */
    --unnamed-font-size-40: 2.5rem; /* 40px base */
    --unnamed-font-size-46: 2.875rem; /* 46px base */
    --unnamed-font-size-48: 3rem; /* 48px base */
    --unnamed-font-size-50: 3.125rem; /* 50px base */
    --unnamed-font-size-60: 3.75rem; /* 60px base */
    
    /* Additional font sizes for specific use cases (rem values) */
    --unnamed-font-size-12-rem: 1.2rem; /* 1.2rem - 24px at 20px base */
    --unnamed-font-size-15-rem: 1.5rem; /* 1.5rem - 30px at 20px base */
    --unnamed-font-size-18-rem: 1.8rem; /* 1.8rem - 36px at 20px base */
    --unnamed-font-size-20-rem: 2rem; /* 2rem - 40px at 20px base */
    --unnamed-font-size-22-rem: 2.2rem; /* 2.2rem - 44px at 20px base */
    --unnamed-font-size-30-rem: 3rem; /* 3rem - 60px at 20px base */
    
    /* Line Height - 使用無單位數值，會根據字體大小自動縮放 */
    /* 系統化行高變量，對應字體大小 */
    --unnamed-line-height-15: 1.2; /* 對應 15px 字體 */
    --unnamed-line-height-16: 1.25; /* 對應 16px 字體 */
    --unnamed-line-height-18: 1.33; /* 對應 18px 字體 (24px/18px) */
    --unnamed-line-height-20: 1.2; /* 對應 20px 字體 */
    --unnamed-line-height-22: 1.27; /* 對應 22px 字體 (28px/22px) */
    --unnamed-line-height-24: 1.5; /* 對應 24px 字體 */
    --unnamed-line-height-28: 1.43; /* 對應 28px 字體 */
    --unnamed-line-height-32: 1.5; /* 對應 32px 字體 */
    --unnamed-line-height-36: 1.42; /* 對應 36px 字體 */
    --unnamed-line-height-40: 1.5; /* 對應 40px 字體 */
    --unnamed-line-height-46: 1.11; /* 對應 46px 字體 (51px/46px) */
    --unnamed-line-height-48: 1.25; /* 對應 48px 字體 */
    --unnamed-line-height-50: 1.5; /* 對應 50px 字體 */
    --unnamed-line-height-60: 1.5; /* 對應 60px 字體 */
    
    /* 通用行高變量 - 用於特殊情況 */
    --line-height-tight: 1; /* 緊湊行高 */
    --line-height-normal: 1.2; /* 正常行高 */
    --line-height-comfortable: 1.4; /* 舒適行高 */
    --line-height-relaxed: 1.5; /* 寬鬆行高 */
    --line-height-spacious: 1.6; /* 寬敞行高 */
    --line-height-very-spacious: 1.8; /* 非常寬敞行高 */
    
    /* Spacing - 保留舊變量以維持兼容性，但建議使用行高變量 */
    --unnamed-character-spacing-0: 0px;
    --unnamed-line-spacing-24: 1.2; /* 改為無單位數值，對應 20px 字體的 24px 行高 */
    --unnamed-line-spacing-32: 1.6; /* 改為無單位數值，對應 20px 字體的 32px 行高 */
    --unnamed-line-spacing-51: 1.11; /* 改為無單位數值，對應 46px 字體的 51px 行高 */
    
    /* Transform */
    --unnamed-text-transform-titlecase: capitalize;
}

/* =========================================
   1.5 Character Styles (字體樣式類別)
   ========================================= */
.unnamed-character-style-1 {
    font-family: var(--unnamed-font-family-poppins);
    font-style: var(--unnamed-font-style-normal);
    font-weight: var(--unnamed-font-weight-bold);
    font-size: var(--unnamed-font-size-20);
    line-height: var(--unnamed-line-height-20);
    letter-spacing: var(--unnamed-character-spacing-0);
    color: var(--unnamed-color-ffffff);
    text-transform: var(--unnamed-text-transform-titlecase);
}

.unnamed-character-style-2 {
    font-family: var(--unnamed-font-family-poppins);
    font-style: var(--unnamed-font-style-normal);
    font-weight: var(--unnamed-font-weight-normal);
    font-size: var(--unnamed-font-size-18);
    line-height: var(--unnamed-line-height-18);
    letter-spacing: var(--unnamed-character-spacing-0);
    color: var(--unnamed-color-2e2e2e);
}

.unnamed-character-style-3 {
    font-family: var(--unnamed-font-family-獅尾快腿黑體jp);
    font-style: var(--unnamed-font-style-normal);
    font-weight: var(--unnamed-font-weight-900);
    font-size: var(--unnamed-font-size-46);
    line-height: var(--unnamed-line-height-46);
    letter-spacing: var(--unnamed-character-spacing-0);
    color: var(--unnamed-color-1979ab);
    text-transform: var(--unnamed-text-transform-titlecase);
}

/* =========================================
   2. 全局字體設置 (Global Styles)
   ========================================= */
html {
    font-size: 20px; /* 基礎字體大小，會通過 JavaScript 動態改變 */
}

body {
    font-family: var(--unnamed-font-family-poppins);
    font-size: var(--unnamed-font-size-16);
    color: var(--unnamed-color-2e2e2e);
    line-height: var(--unnamed-line-height-18);
}

p{
    font-size: var(--unnamed-font-size-16);
    line-height: var(--unnamed-line-height-18);
}

/* 通用標題樣式 (Style 3) */
.section-title {
    font-family: var(--unnamed-font-family-獅尾快腿黑體jp);
    font-weight: var(--unnamed-font-weight-900);
    font-size: var(--unnamed-font-size-46);
    line-height: var(--unnamed-line-height-46);
    color: var(--unnamed-color-1979ab);
    text-transform: var(--unnamed-text-transform-titlecase);
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
}

/* BYOC Incentive 和 Success Stories 標題使用 LionJP-Bold 字體 */
section:has(#incentiveCarousel) .section-title,
.success-section .section-title {
    font-family: var(--unnamed-font-family-lionjp-bold);
}

/* =========================================
   3. Header & Top Bar
   ========================================= */
.top-bar {
    background-color: #00833e;
    padding: 12px 0;
    display: flex;
    align-items: center;
    position: relative;
}

.lang-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-btn {
    text-decoration: none;
    font-family: var(--unnamed-font-family-poppins);
    font-weight: var(--unnamed-font-weight-bold);
    font-size: var(--unnamed-font-size-18);
    line-height: var(--unnamed-line-height-18);
    padding: 7px 15px;
    border-radius: 10px;
    display: inline-block;
    color: white; /* 預設顏色 */
}

.lang-btn.active {
    background-color: #0b4d21; 
    color: var(--unnamed-color-ffffff);
}

.lang-btn.inactive {
    background-color: #d6ebd8;
    color: var(--unnamed-color-2e2e2e);
    font-weight: var(--unnamed-font-weight-normal);
}

.font-size-control {
    position: relative;
    margin-left: 15px;
    margin-right: 20px;
}

.font-size-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: var(--unnamed-font-size-20);
    line-height: var(--unnamed-line-height-20);
    font-weight: bold;
    padding: 7px 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s;
}

.font-size-btn:hover {
    opacity: 0.8;
}

.font-size-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 4px;
}

.font-size-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    border: none;
    background: white;
    color: var(--unnamed-color-2e2e2e);
    font-family: var(--unnamed-font-family-poppins);
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 8px;
}

.font-size-option:hover {
    background-color: #f0f0f0;
}

.font-size-option.active {
    background-color: #d6ebd8;
    color: var(--unnamed-color-2e2e2e);
    font-weight: 600;
}

.font-size-icon {
    font-weight: bold;
    display: inline-block;
}

/* 搜尋框 */
.search-box {
    background: #d6ebd8;
    border-radius: 10px;
    padding: 7px 17px;
    display: flex;
    align-items: center;
    width: 220px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    font-size: var(--unnamed-font-size-15);
    line-height: var(--unnamed-line-height-15);
    width: 100%;
    color: var(--unnamed-color-2e2e2e);
    font-family: var(--unnamed-font-family-poppins);
}

.search-box i {
    color: #333;
    font-size: var(--unnamed-font-size-18);
}

/* =========================================
   4. Navigation (Menu)
   ========================================= */
.navbar-custom {
    background-color: white;
    padding: 25px 0;
}

.navbar-custom .nav-link {
    color: #000;
    font-family: var(--unnamed-font-family-poppins);
    font-weight: 500;
    font-size: var(--unnamed-font-size-16);
    line-height: var(--unnamed-line-height-16);
    margin: 8px 21px; /* 使用較寬的間距 */
    padding: 0;
    position: relative;
}

.navbar-custom .nav-link:hover {
    color: #00833e;
}

/* 手機版菜單按鈕（右上角） */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    justify-content: space-around;
    padding: 5px;
    margin-left: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 菜單打開時隱藏漢堡包按鈕 */
.mobile-menu-toggle.hidden {
    display: none !important;
}

/* 桌面版導航 */
.desktop-nav {
    display: flex;
}

/* 手機版全屏菜單覆蓋層 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #04833fcf;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 關閉按鈕 */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--unnamed-font-size-20-rem);
    color: #fff;
    line-height: var(--line-height-tight);
    transition: color 0.3s ease;
}

.mobile-menu-close:hover {
    color: #fff;
}

.mobile-menu-close span {
    font-weight: bold;
}

/* 手機版菜單內容 */
.mobile-menu-content {
    padding: 80px 40px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    margin-bottom: 25px;
}

.mobile-nav-link {
    display: block;
    color: #fff;
    font-family: var(--unnamed-font-family-poppins);
    font-weight: 500;
    font-size: var(--unnamed-font-size-24);
    line-height: var(--unnamed-line-height-24);
    text-decoration: none;
    padding: 15px 0;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    color: #b4efd0;
    transform: translateX(10px);
    outline: none;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background-color: #bcf7d8;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::before,
.mobile-nav-link:focus::before {
    width: 10px;
}

/* 手機版響應式 */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 50%;
        right: 0px;
        transform: translateY(-50%);
        /* 相對於 top-bar 定位 */
    }
    
    .desktop-nav {
        display: none;
    }
    
    .navbar-custom {
        position: relative;
        min-height: 70px;
        display: none!important;
    }
    
    .navbar-custom .container {
        justify-content: flex-end;
        position: relative;
    }
}

/* =========================================
   5. 共用元件 (Buttons & Generic)
   ========================================= */

/* 主行動呼籲按鈕 (CTA Button) */
.cta-btn {
    background-color: #1a9636;
    color: white;
    font-family: var(--unnamed-font-family-poppins);
    font-weight: var(--unnamed-font-weight-bold);
    padding: 20px 40px; /* 使用較大的 Padding */
    border-radius: 10px; /* 使用 Style B 的圓角，若需膠囊狀改為 50px */
    text-decoration: none;
    font-size: var(--unnamed-font-size-24);
    line-height: var(--unnamed-line-height-24);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
    box-shadow: 0 5px 15px rgba(26, 150, 54, 0.3);
    transition: transform 0.2s;
}

.cta-btn:hover { 
    background-color: #147a2b; 
    color: white; 
    transform: scale(1.02);
}

.cta-btn i {
    font-size: var(--unnamed-font-size-46);
}

/* =========================================
   6. 頁面樣式：About (關於我們)
   ========================================= */

/* 6.1 Banner Area */
.about-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 60px;
}
.about-hero img.banner-bg {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 300px; 
}
.about-hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}
.about-title {
    font-family: var(--unnamed-font-family-poppins);
    font-weight: 900;
    font-size: var(--unnamed-font-size-60);
    line-height: var(--unnamed-line-height-60);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* 6.2 Info Card Section */
.info-card-section {
    background-color: #EFF7FC;
    padding: 60px 0;
}
.white-rounded-card {
    background: white;
    border-radius: 30px;
    padding: 60px 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* 圖片標題 (Background) */
.img-title {
    height: 55px;
    width: auto;
    margin-bottom: 25px;
}

/* 文字疊加背景標題 (Details Of The Scheme) */
.bg-title-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: left;
    background-image: url('images/about/9.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    padding: 5%;
    min-height: 65px;
}

.title-wrapper-thin{
    width: 80%;
}

.about-background-col{
    display: flex; 
    flex-direction: column; 
    align-items: flex-end;
}

.bg-title-text {
    color: white;
    font-family: var(--unnamed-font-family-poppins);
    font-weight: 900;
    font-size: var(--unnamed-font-size-22);
    line-height: var(--unnamed-line-height-22);
}

/* 對話框樣式 */
.speech-bubble {
    background-image: url('images/about/0.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 20px 35px 50px 35px; 
    margin-bottom: 15px;
    font-size: var(--unnamed-font-size-15);
    line-height: var(--unnamed-line-height-15);
    font-weight: 600;
    display: inline-block;
    max-width: 100%;
}
.dialogue-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 30px;
}

/* 6.3 Role Section */
.role-section {
    background: url('images/about/5.png') no-repeat center center;
    padding-bottom: 80px;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.role-section .container {
    background-color: #E3FBFF;
    padding: 120px 50px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.leaf-decor {
    position: absolute;
    width: 60px;
    opacity: 0.9;
    pointer-events: none;
}
.leaf-1 { top: 50px; left: 5%; transform: rotate(-15deg); width: 80px; }
.leaf-2 { bottom: 100px; right: 5%; transform: rotate(15deg); width: 100px; filter: blur(1px); }

.role-block {
    position: relative;
    margin-top: 20px;
}

/* 標題藥丸 */
.role-header-pill {
    position: absolute;
    top: -55px;
    left: 0;
    min-height: 110px;
    width: 100%;
    color: white;
    font-weight: 700;
    font-size: var(--unnamed-font-size-24);
    line-height: var(--unnamed-line-height-20);
    text-align: center;
    padding: 16px 46px;
    z-index: 10;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.role-header-pill.green { 
    background-image: url('images/about/1.png');
}
.role-header-pill.blue { 
    background-image: url('images/about/2.png');
}

/* 圖片容器 */
.role-img-container {
    background: white; 
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.role-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 角色按鈕 */
.role-btn {
    width: 100%;
    border-radius: 15px;
    margin-top: 15px;
    padding: 22px 32px;
    color: white;
    font-weight: 700;
    font-size: var(--unnamed-font-size-22);
    line-height: var(--unnamed-line-height-24);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}
.role-btn:hover { color: white; opacity: 0.95; transform: translateY(-2px); transition: 0.2s; }
.role-btn.green { background-color: #1a9636; }
.role-btn.blue { background-color: #1979ab; }

.btn-circle-icon {
    background: white;
    border-radius: 50%;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.role-btn.green .btn-circle-icon { color: #1a9636; }
.role-btn.blue .btn-circle-icon { color: #1979ab; }


/* =========================================
   7. 頁面樣式：Success / Home (成功案例)
   ========================================= */
.hero-section img { 
    width: 100%; 
    height: auto; 
    display: block; 
}

.incentive-card {
    background: white;
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.incentive-card img { 
    width: 100%; 
    height: auto; 
    display: block;
    object-fit: contain;
}

.nav-arrow {
    background-color: #2fa928;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: var(--unnamed-font-size-24);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Carousel 控制按鈕樣式 */
#incentiveCarousel .carousel-control-prev,
#incentiveCarousel .carousel-control-next,
#storiesCarousel .carousel-control-prev,
#storiesCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: #2fa928;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10;
}

#incentiveCarousel .carousel-control-prev,
#storiesCarousel .carousel-control-prev {
    left: -25px;
}

#incentiveCarousel .carousel-control-next,
#storiesCarousel .carousel-control-next {
    right: -25px;
}

#incentiveCarousel .carousel-control-prev:hover,
#incentiveCarousel .carousel-control-next:hover,
#storiesCarousel .carousel-control-prev:hover,
#storiesCarousel .carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

#incentiveCarousel .carousel-control-prev-icon,
#incentiveCarousel .carousel-control-next-icon,
#storiesCarousel .carousel-control-prev-icon,
#storiesCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* 手機版調整 */
@media (max-width: 767px) {
    #incentiveCarousel .carousel-control-prev,
    #storiesCarousel .carousel-control-prev {
        left: 10px;
    }
    
    #incentiveCarousel .carousel-control-next,
    #storiesCarousel .carousel-control-next {
        right: 10px;
    }
    
    #incentiveCarousel .carousel-control-prev,
    #incentiveCarousel .carousel-control-next,
    #storiesCarousel .carousel-control-prev,
    #storiesCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

/* 平板版調整 */
@media (min-width: 768px) and (max-width: 991px) {
    #incentiveCarousel .carousel-control-prev,
    #storiesCarousel .carousel-control-prev {
        left: -15px;
    }
    
    #incentiveCarousel .carousel-control-next,
    #storiesCarousel .carousel-control-next {
        right: -15px;
    }
}

/* Carousel 項目間距 */
#incentiveCarousel .carousel-item,
#storiesCarousel .carousel-item {
    padding: 0 15px;
}

/* 確保 carousel 內容與按鈕有足夠距離 */
#incentiveCarousel .carousel-inner {
    padding: 0 40px;
}

#storiesCarousel .carousel-inner {
    padding: 0 40px;
}

@media (max-width: 767px) {
    #incentiveCarousel .carousel-inner,
    #storiesCarousel .carousel-inner {
        padding: 0 50px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #incentiveCarousel .carousel-inner,
    #storiesCarousel .carousel-inner {
        padding: 0 45px;
    }
}

/* 確保 carousel 容器有相對定位 */
#incentiveCarousel,
#storiesCarousel {
    position: relative;
}

.success-section {
    background-image: url('images/2.png'); 
    background-size: cover;
    background-position: center top;
    padding: 60px 0;
    margin-top: 50px;
}

/* Success Stories 卡片 */
.story-card {
    background: #e6f7ff; /* 淺藍綠色背景 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%; 
    display: flex; 
    flex-direction: column;
    justify-content: start; 
    border-top: 8px solid #2fa928; /* 亮綠色上方邊框 */
    padding: 20px;
    margin-bottom: 20px;
}
.story-card .card-content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    padding: 0;
}
.story-card .card-img-top {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    margin-bottom: 15px;
    display: block;
}
.story-card h5 { 
    font-family: var(--unnamed-font-family-poppins);
    font-weight: var(--unnamed-font-weight-bold); 
    margin-top: 0;
    margin-bottom: 10px;
    font-size: var(--unnamed-font-size-12-rem); 
    line-height: var(--unnamed-line-height-24);
    padding: 0;
    color: var(--unnamed-color-1979ab);
    text-align: left;
}
.story-card p { 
    font-family: var(--unnamed-font-family-poppins);
    font-size: var(--unnamed-font-size-18);
    line-height: var(--unnamed-line-height-18);
    color: var(--unnamed-color-2e2e2e);
    padding: 0; 
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
}

.story-card hr {
    margin: 10px auto;
    width: 85%;
    border-color: #ddd;
    opacity: 0.5;
}

/* 特殊品牌標題樣式 */
.story-card .brand-title {
    height: auto;
    min-height: 120px;
    display:flex; 
    align-items:center; 
    justify-content:center;
    font-size: var(--unnamed-font-size-22-rem);
    line-height: var(--unnamed-line-height-22);
    font-weight: 900;
    margin: 0 auto 15px;
    font-family: var(--unnamed-font-family-poppins);
}
.story-card .brand-title.starbucks { color: #006241; }
.story-card .brand-title.pacific-coffee { color: #d0021b; }


/* =========================================
   7.5 頁面樣式：Contact Us (聯絡我們)
   ========================================= */
.contact-card {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin: 60px 0;
}

.contact-title {
    font-family: var(--unnamed-font-family-poppins);
    font-weight: var(--unnamed-font-weight-bold);
    font-size: var(--unnamed-font-size-18);
    line-height: var(--unnamed-line-height-18);
    color: #00833e;
    margin-bottom: 40px;
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: baseline;
    font-family: var(--unnamed-font-family-poppins);
    font-size: var(--unnamed-font-size-16);
    color: var(--unnamed-color-2e2e2e);
    line-height: var(--unnamed-line-height-16);
}

.contact-label {
    font-weight: var(--unnamed-font-weight-normal);
    min-width: 80px;
    margin-right: 15px;
}

.contact-value {
    font-weight: var(--unnamed-font-weight-normal);
    flex: 1;
}

/* 響應式調整 */
@media (max-width: 767px) {
    .contact-card {
        padding: 35px 25px;
        margin: 40px 0;
    }
    
    .contact-title {
        font-size: var(--unnamed-font-size-22);
        line-height: var(--unnamed-line-height-22);
        margin-bottom: 30px;
    }
    
    .contact-item {
        font-size: var(--unnamed-font-size-18);
        line-height: var(--unnamed-line-height-18);
        flex-direction: column;
        gap: 5px;
    }
    
    .contact-label {
        min-width: auto;
        margin-right: 0;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .contact-card {
        padding: 40px 35px;
    }
    
    .contact-title {
        font-size: var(--unnamed-font-size-24);
        line-height: var(--unnamed-line-height-24);
    }
}

/* =========================================
   8. Footer (頁尾)
   ========================================= */
.footer-section {
    background-color: #dcf5ff;
    padding: 60px 0 40px;
    text-align: center;
}

.footer-links a {
    color: var(--unnamed-color-1979ab);
    font-size: var(--unnamed-font-size-16);
    line-height: var(--unnamed-line-height-16);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
}
.organizer-logo { margin: 30px 0; }
.epd-placeholder {
    display: inline-flex; align-items: center;
    color: #1a9636; font-weight: bold; font-size: var(--unnamed-font-size-12-rem);
}
.epd-icon { font-size: var(--unnamed-font-size-30-rem); margin-right: 15px; }
.footer-badges img { height: 40px; margin: 15px; }


/* =========================================
   8.1 頁面樣式：BYOC Eatery List
   ========================================= */
.list-hero {
    background: linear-gradient(180deg, #f3fbff 0%, #e7f6ee 100%);
}

.list-title {
    font-family: var(--unnamed-font-family-獅尾快腿黑體jp);
    font-weight: 900;
    font-size: var(--unnamed-font-size-46);
    line-height: var(--unnamed-line-height-46);
    color: #1979ab;
    margin: 0;
}

.brand-slider-section,.list-content-section,.about-hero {
    background-color: #eef7ff;
}

.brand-slider-card {
    border: 1px solid #e5f0e7;
}

.brand-track-wrapper {
    overflow: hidden;
    position: relative;
}

.brand-track {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 5px 0;
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.brand-track::-webkit-scrollbar {
    display: none;
}

.brand-card {
    min-width: 170px;
    max-width: 210px;
    flex: 0 0 auto;
    background: #fff;
    border-radius: 18px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border: 1px solid #e3efe5;
}

.brand-card img {
    max-height: 72px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-weight: 700;
    color: #2b2b2b;
    text-align: center;
    font-size: var(--unnamed-font-size-18);
    line-height: var(--unnamed-line-height-18);
}

.brand-nav {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background-color: #fff;
    color: #1a9636;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--unnamed-font-size-20);
    line-height: var(--unnamed-line-height-20);
    box-shadow: 0 8px 18px rgba(26,150,54,0.25);
    flex-shrink: 0; /* 防止按鈕被壓縮 */
}

.brand-nav i {
    font-size: var(--unnamed-font-size-20);
    line-height: var(--unnamed-line-height-20);
    font-weight: 800;
}

.brand-nav:hover { opacity: 0.9; }

.brand-track.dragging {
    cursor: grabbing;
}

.filter-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
    border: 1px solid #e7f0ea;
}

.filter-inline {
    gap: 16px 22px;
}

.filter-inline-item .filter-label {
    font-weight: 600;
    color: #2b2b2b;
    white-space: nowrap;
}

.filter-select {
    background-color: #f7faf6;
    width: 120px;
}

.filter-search-btn {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.byoc-table-wrapper .table thead th {
    background-color: #00833e;
    color: white;
    font-weight: 400;
    border: none;
    text-align: left;
    vertical-align: middle;
}

.byoc-table-wrapper .table th,
.byoc-table-wrapper .table td {
    font-weight: 400;
}

.byoc-table-wrapper .table tbody tr {
    background-color: #f1fbf5;
}

.byoc-table-wrapper .table tbody tr:nth-child(even) {
    background-color: #e7f6ee;
}

.byoc-table-wrapper .table tbody tr:hover {
    background-color: #dff1e7;
}

.table-logo {
    max-height: 72px;
    width: auto;
    object-fit: contain;
}

/* =========================================
   8.2 分頁樣式 (Pagination)
   ========================================= */
.pagination-wrapper {
    padding: 20px 0;
}

.pagination-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s;
}

.pagination-btn:hover {
    opacity: 0.7;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-nav {
    color: #2E2E2E;
    font-size: var(--unnamed-font-size-20);
    line-height: var(--unnamed-line-height-20);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.pagination-icon-first,
.pagination-icon-last {
    font-weight: bold;
    font-size: var(--unnamed-font-size-18);
    line-height: var(--unnamed-line-height-18);
}

.pagination-icon-first {
    margin-right: -2px;
}

.pagination-icon-last {
    margin-left: -2px;
}

.pagination-numbers {
    gap: 8px;
}

.pagination-page {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--unnamed-font-size-16);
    line-height: var(--unnamed-line-height-16);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--unnamed-font-family-poppins);
}

.pagination-page.active {
    background-color: #00833e;
    color: white;
}

.pagination-page:not(.active) {
    background-color: #d6ebd8;
    color: #2E2E2E;
}

.pagination-page:not(.active):hover {
    background-color: #b8d9bc;
}


.form-main-title { color: var(--brand-blue); 
    font-weight: 700; 
    font-size: var(--unnamed-font-size-28); 
    line-height: var(--unnamed-line-height-28);
    margin-bottom: 10px; 
}
.form-sub-title { color: var(--brand-green); 
    font-weight: 700; 
    font-size: var(--unnamed-font-size-24); 
    line-height: var(--unnamed-line-height-24);
    text-decoration: underline; 
    margin-bottom: 20px; 
    display: inline-block; 
}

/* 表單標籤：加大字體與字重 */
.form-label {
    font-size: var(--unnamed-font-size-18);
    line-height: var(--unnamed-line-height-18);
    color: #000;
    margin-bottom: 0;
    padding-top: 12px;
    text-align: right;
}

/* 輸入框：加大高度與內距 */
.form-control {
    border-radius: 12px;
    border: 1px solid #ccc;
    padding: 12px 18px;
    font-size: var(--unnamed-font-size-18);
    line-height: var(--unnamed-line-height-18);
    background-color: white;
}

/* 灰色區塊：加大內距與字體 */
.form-gray-box {
    background-color: #f5f5f5;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    font-size: var(--unnamed-font-size-18);
    line-height: var(--unnamed-line-height-18);
}

/* Checkbox：放大尺寸 */
.form-check { margin-bottom: 12px; }
.form-check-input {
    width: 24px; height: 24px; /* 放大 */
    margin-top: 4px;
    border: 2px solid #aaa;
}
.form-check-input:checked { background-color: var(--brand-green); border-color: var(--brand-green); }
.form-check-label { padding-left: 10px; font-size: var(--unnamed-font-size-18); line-height: var(--unnamed-line-height-18); color: #444; font-weight: 500; margin-top: 5px;}

/* 行內輸入框 */
.inline-input {
    border: none; border-bottom: 2px solid #888; background: transparent;
    width: 180px; padding: 0 5px; font-size: var(--unnamed-font-size-18); line-height: var(--unnamed-line-height-18); color: #000; outline: none;
}

/* 上傳區塊：符合設計稿樣式 */
.upload-zone {
    background-color: #f5f5f5; 
    border-radius: 12px; 
    border: none;
    width: 300px; 
    height: 200px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    transition: 0.3s;
}
.upload-zone:hover { 
    background-color: #e8e8e8; 
}
.upload-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-icon-wrapper i {
    font-size: var(--unnamed-font-size-48);
    line-height: var(--unnamed-line-height-48);
    color: #2E2E2E;
}

/* 保留舊的樣式以備不時之需 */
.upload-icon-line {
    width: 50px;
    height: 3px;
    background-color: #2E2E2E;
    margin-bottom: 8px;
}
.upload-icon-arrow {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid #2E2E2E;
}

/* 提交按鈕 */
.submit-btn {
    background-color: var(--brand-green-light); 
    color: white; 
    font-weight: bold;
    padding: 10px 40px; border-radius: 10px; font-size: var(--unnamed-font-size-24);
    line-height: var(--unnamed-line-height-24);
    display: inline-flex; align-items: center; gap: 15px; border: none; margin-top: 40px;
}
.submit-btn:hover { background-color: #147a2b; }

.submit-btn i {
    font-size: var(--unnamed-font-size-46);
}

@media (max-width: 767px) {
    .brand-card {
        min-width: 140px;
        padding: 14px 16px;
    }

    .list-title {
        font-size: var(--unnamed-font-size-36);
        line-height: var(--unnamed-line-height-36);
    }

    .filter-card {
        padding: 20px !important;
    }
}

/* =========================================
   9. RWD Media Queries (合併)
   ========================================= */
@media (max-width: 991px) {
    /* Shared & Navbar */
    .navbar-custom .nav-link { margin: 10px 0; }
    .search-box { margin-top: 15px; width: 100%; margin-left: 0!important;}
    .lang-group { 
        margin-bottom: 15px; 
        width: 100%;
        padding-right: 60px; /* 為漢堡包按鈕留出空間 */
        position: relative;
    }
    .top-bar .container { 
        flex-direction: column; 
        align-items: flex-start!important; 
    }
    
    /* 字體大小控制響應式 */
    .font-size-control {
        margin-left: 0;
        margin-right: 0;
        margin-top: 10px;
    }
    
    .font-size-menu {
        right: auto;
        left: 0;
    }
    
    /* About Page */
    .white-rounded-card { padding: 30px 20px; }
    .about-title { font-size: var(--unnamed-font-size-36); line-height: var(--unnamed-line-height-36); margin-left: 20px; }
    .role-img-container { height: 250px; }

    .bg-title-text { 
        font-size: var(--unnamed-font-size-18); 
        line-height: var(--unnamed-line-height-18); 
        left: 15px; 
        white-space: normal;
        padding-right: 15px;
    }

    .role-block:first-child{
        margin-bottom: 60px;
    }
    .role-header-pill { padding: 8px 25px; font-size: var(--unnamed-font-size-24); line-height: var(--unnamed-line-height-24); }
    .details-title-col { margin-bottom: 20px; } 

    .about-background-col{
        align-items: start;
    }
    .about-background-col .title-wrapper-thin{
        width: 100%;
    }

    /* Success/Home Page */
    .section-title { font-size: var(--unnamed-font-size-36); line-height: var(--unnamed-line-height-36); }
    .story-card { padding: 15px; }
    .story-card .card-img-top { height: auto; max-height: 100px; margin: 15px auto; }
    .story-card .brand-title { height: 100px; font-size: var(--unnamed-font-size-18-rem); line-height: var(--unnamed-line-height-18); margin: 15px auto; }

    .apply-hero-title { font-size: var(--unnamed-font-size-40); line-height: var(--unnamed-line-height-40); margin-left: 20px; }
    .white-rounded-card { padding: 40px 25px; }
    .form-label { margin-bottom: 8px; padding-top: 0;text-align: left; }
    /* 在手機版取消強制靠右，改為預設靠左 */
    .text-md-end { text-align: left !important; }
    .download-section { padding: 40px 0; }
    .download-category { padding: 30px 20px; }
    .category-label { font-size: var(--unnamed-font-size-18); line-height: var(--unnamed-line-height-18); padding: 10px 25px; }
}

/* =========================================
   10. 頁面樣式：Resource Centre (資源中心)
   ========================================= */
/* Download Section 樣式 */
.download-section {
    background-color: #f8fcff;
    padding: 60px 0;
}
.download-category {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 80px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
}
.category-label {
    background-color: var(--brand-green);
    color: white;
    font-weight: 700;
    font-size: var(--unnamed-font-size-20);
    line-height: var(--unnamed-line-height-20);
    padding: 20px 40px;
    display: inline-block;
    margin-bottom: 30px;
    position: absolute;
    top: -30px;
    left: 20px;
    border-radius: 20px 20px 0px 20px;
    box-shadow: 0 3px 10px rgba(0,131,62,0.3);
}

.category-label::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 12px;
    width: 20px;
    height: 20px;
    background-color: var(--brand-green);
    border-radius: 0 0 20px 0;
    box-shadow: 0 3px 10px rgba(0,131,62,0.3);
}
.download-item {
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.download-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.download-preview {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    background: white;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    object-fit: contain;
}
.download-btn {
    background-color: var(--brand-green);
    color: white;
    font-weight: 700;
    font-size: var(--unnamed-font-size-18);
    line-height: var(--unnamed-line-height-18);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    transition: background-color 0.3s;
}
.download-btn:hover {
    background-color: #0b4d21;
    color: white;
}
.download-btn i {
    font-size: var(--unnamed-font-size-20);
    line-height: var(--unnamed-line-height-20);
}
.download-item.empty-state {
    width: 100%;
    min-height: 240px;
    border: 1px dashed #d6e0d9;
    background-color: #f8fcff;
    text-align: center;
    justify-content: center;
    gap: 10px;
}
.download-item.empty-state .empty-icon {
    font-size: 32px;
    color: #6c757d;
}
.download-item.empty-state .download-btn[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

/* =========================================
   11. 頁面樣式：Stories Behind (背後故事)
   ========================================= */
/* Stories Behind 專用樣式 */
.stories-hero {
    position: relative;
    width: 100%;
    min-height: 300px;
    background-image: url('images/banner.png');
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
}
.stories-hero-title {
    font-weight: 900;
    font-size: var(--unnamed-font-size-60);
    line-height: var(--unnamed-line-height-60);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin-left: 10%;
}

.stories-section {
    background-color: #f8fcff;
    padding: 60px 0;
}

.stories-card {
    background: white;
    border-radius: 30px;
    padding: 60px 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.stories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.story-item {
    display: flex;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.story-item:last-child {
    border-bottom: none;
}

.story-image-wrapper {
    flex-shrink: 0;
    width: 250px;
    height: 150px;
    margin-right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 15px;
}

.story-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.story-content {
    flex: 1;
}

.story-title {
    color: var(--unnamed-color-1979ab);
    font-weight: 700;
    font-size: var(--unnamed-font-size-24);
    line-height: var(--unnamed-line-height-24);
    margin-bottom: 10px;
    font-family: var(--unnamed-font-family-poppins);
}

.story-description {
    color: var(--unnamed-color-2e2e2e);
    font-size: var(--unnamed-font-size-18);
    line-height: var(--unnamed-line-height-18);
    margin-bottom: 15px;
    font-family: var(--unnamed-font-family-poppins);
}

.story-read-more {
    color: var(--unnamed-color-1979ab);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--unnamed-font-size-18);
    line-height: var(--unnamed-line-height-18);
    font-family: var(--unnamed-font-family-poppins);
    transition: color 0.3s;
}

.story-read-more:hover {
    color: #0d5a7a;
    text-decoration: underline;
}

/* Modal 樣式 */
.story-modal .modal-dialog {
    max-width: 1400px;
    position: relative;
    margin: 2rem auto;
}

.story-modal .modal-content {
    border-radius: 30px;
    border: none;
    overflow: hidden;
    position: relative;
    background: transparent;
}

.story-modal .modal-header {
    border-bottom: none;
    padding: 0;
    position: relative;
}

.story-modal .btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1053;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    opacity: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--unnamed-font-size-15-rem);
    color: #2e2e2e;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background-image: none;
}

.story-modal .btn-close::before {
    content: '×';
    font-size: var(--unnamed-font-size-18-rem);
    line-height: var(--line-height-tight);
    font-weight: bold;
    display: block;
}

.story-modal .btn-close span {
    display: none;
}

.story-modal .btn-close:hover {
    background: white;
    transform: scale(1.1);
}

.story-modal .modal-body {
    padding: 50px 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    background: white;
    border-radius: 30px;
}

/* 左側圓形圖片區域 */
.modal-image-wrapper {
    flex-shrink: 0;
    width: 350px;
    height: 350px;
    position: relative;
    display: flex;
    align-items: center;
}

.modal-image-circle {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.modal-image-circle img {
    width: 100%;
    height: 100%;
}

/* 右側文字內容區域 */
.modal-content-wrapper {
    flex: 1;
    color: white;
}

.modal-content-title {
    font-family: var(--unnamed-font-family-poppins);
    font-weight: 700;
    font-size: var(--unnamed-font-size-24);
    line-height: var(--unnamed-line-height-24);
    color: #1a9636;
    margin-bottom: 20px;
}

.modal-content-text {
    font-family: var(--unnamed-font-family-poppins);
    font-size: var(--unnamed-font-size-18);
    line-height: var(--unnamed-line-height-18);
    color: var(--unnamed-color-2e2e2e);
    margin-bottom: 15px;
}

/* 左右導航按鈕 - 固定在屏幕兩側 */
.modal-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1054;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: var(--unnamed-font-size-15-rem);
    color: var(--unnamed-color-1979ab);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.story-modal.show .modal-nav-btn {
    display: flex;
}

/* 確保導航按鈕不會觸發 modal 關閉 */
.modal-nav-btn:focus {
    outline: none;
}

.modal-nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-nav-btn.prev {
    left: 30px;
}

.modal-nav-btn.next {
    right: 30px;
}

.modal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-nav-btn:disabled:hover {
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
}

/* Stories 頁面響應式設計 */
@media (max-width: 991px) {
    .stories-hero-title {
        font-size: var(--unnamed-font-size-40);
        line-height: var(--unnamed-line-height-40);
        margin-left: 20px;
    }
    
    .stories-card {
        padding: 40px 25px;
    }
    
    .story-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 0;
    }
    
    .story-image-wrapper {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        justify-content:start;
    }
    
    .story-title {
        font-size: var(--unnamed-font-size-20);
        line-height: var(--unnamed-line-height-20);
    }
    
    .story-description {
        font-size: var(--unnamed-font-size-16);
        line-height: var(--unnamed-line-height-16);
    }
    
    .story-modal .modal-dialog {
        max-width: 95%;
    }
    
    .story-modal .modal-body {
        flex-direction: column;
        padding: 40px 30px;
        gap: 30px;
    }
    
    .modal-image-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .modal-nav-btn {
        width: 50px;
        height: 50px;
        font-size: var(--unnamed-font-size-12-rem);
    }
    
    .modal-nav-btn.prev {
        left: 15px;
    }
    
    .modal-nav-btn.next {
        right: 15px;
    }
}

@media (max-width: 767px) {
    .stories-hero-title {
        font-size: var(--unnamed-font-size-32);
        line-height: var(--unnamed-line-height-32);
    }
    
    .story-image-wrapper {
        width: 100%;
    }
    
    .story-modal .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .story-modal .btn-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: var(--unnamed-font-size-12-rem);
    }
    
    .story-modal .btn-close::before {
        font-size: var(--unnamed-font-size-15-rem);
    }
    
    .story-modal .modal-body {
        padding: 30px 20px;
        gap: 25px;
    }
    
    .modal-image-wrapper {
        width: 220px;
        height: 220px;
    }
    
    .modal-content-title {
        font-size: var(--unnamed-font-size-20);
        line-height: var(--unnamed-line-height-20);
    }
    
    .modal-content-text {
        font-size: var(--unnamed-font-size-16);
        line-height: var(--unnamed-line-height-16);
    }
    
    .modal-nav-btn {
        width: 45px;
        height: 45px;
        font-size: var(--unnamed-font-size-16);
    }
    
    .modal-nav-btn.prev {
        left: 10px;
    }
    
    .modal-nav-btn.next {
        right: 10px;
    }
}

/* 返回頂部按鈕 */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: #1a9636;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    pointer-events: none;
    z-index: 1050;
}

.back-to-top i {
    font-size: 1.35rem;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: #1a9636;
    opacity: .8;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.back-to-top:focus-visible {
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .back-to-top {
        width: 46px;
        height: 46px;
        right: 16px;
        bottom: 16px;
    }
}

/* =========================================
   打印樣式 (Print Styles)
   ========================================= */
@media print {
    /* 隱藏不需要打印的元素 */
    .top-bar,
    .navbar,
    .mobile-menu-overlay,
    .back-to-top,
    .carousel-control-prev,
    .carousel-control-next,
    .footer-section .cta-btn,
    .footer-section .organizer-logo,
    .footer-section .footer-badges,
    .footer-links,
    button,
    .btn,
    .search-box,
    .font-size-control,
    .lang-group,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    /* 確保頁面內容完整顯示 */
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    /* 優化標題顯示 */
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    /* 優化圖片顯示 */
    img {
        max-width: 100%;
        height: auto;
        page-break-inside: avoid;
    }
    
    /* 優化連結顯示 */
    a {
        color: #000;
        text-decoration: underline;
    }
    
    /* 確保內容區域完整顯示 */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    /* 避免在元素中間分頁 */
    .section-title,
    .hero-section,
    .story-card,
    .incentive-card {
        page-break-inside: avoid;
    }
    
    /* 優化表格打印 */
    table {
        border-collapse: collapse;
    }
    
    table th,
    table td {
        border: 1px solid #000;
        padding: 8px;
    }
    
    /* 移除背景色和陰影 */
    * {
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* 確保 footer 顯示 */
    .footer-section {
        margin-top: 20pt;
        padding-top: 10pt;
        border-top: 1px solid #000;
    }
    
    /* 優化分頁 */
    @page {
        margin: 2cm;
    }
    
    /* 避免在標題前分頁 */
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    /* 避免在段落中分頁 */
    p {
        orphans: 3;
        widows: 3;
    }
}