/* ===== 全域設定 ===== */
* {
    font-family: var(--font-family-primary);
}

/* 標題字體設定 */
h1, h2, h3, h4, h5, h6,
.section-title,
.logo-main,
.nav-link,
.btn-primary,
.btn-secondary {
    font-family: var(--font-family-heading);
    font-weight: 700;
}

/* 內文字體設定 */
body,
p,
span,
div,
input,
textarea,
select {
    font-family: var(--font-family-body);
    font-weight: 400;
}

:root {
    --primary-color: #ff8c42;
    --primary-dark: #e67a2e;
    --primary-light: #ffb07c;
    --secondary-color: #2c5f2d;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --black: #000000;
    --gray-900: #1a1a1a;
    --gray-800: #2d2d2d;
    --gray-700: #404040;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --error-color: #f44336;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --z-menu: 999999;
    --z-menu-overlay: 999998;
    --z-cart: 99999;
    --z-cart-overlay: 99998;
    --z-modal: 9999;
    --z-header: 10000;
    
    /* 字體設定 */
    --font-family-primary: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    --font-family-body: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Skip to main content (無障礙) ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100000;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* ===== 全域 z-index 優先級（手機版） ===== */
@media (max-width: 480px) {
    /* 桌面版選單在手機版隱藏 */
    /* 桌面版隱藏手機選單 */
    @media (min-width: 993px) {
        .main-menu {
            display: none !important;
        }
    }
    
    
    /* 其他元素降低優先級 */
    .header,
    header {
        z-index: var(--z-header) !important;
    }
    
    .cart-sidebar,
    #cartSidebar {
        z-index: var(--z-cart) !important;
    }
    
    .cart-overlay,
    #cartOverlay {
        z-index: var(--z-cart-overlay) !important;
    }
    
    .modal,
    [class*="modal"] {
        z-index: var(--z-modal) !important;
    }
    
    /* 確保內容區域不會遮擋選單 */
    .content-wrapper,
    .floating-oranges,
    section,
    main {
        z-index: auto !important;
    }
    
    /* 確保 hero-slider 不會遮擋導覽列 */
    .hero-slider {
        z-index: 1 !important;
    }
    
    /* 手機版導航列佈局 */
    .nav-content {
        justify-content: space-between !important;
        padding: 0 15px !important;
    }
    
    .logo {
        order: 1;
    }
    
    .search-bar {
        display: none !important;
    }
    
    .nav-icons {
        order: 2;
        margin-left: auto !important;
        gap: 12px !important;
        display: flex !important;
        align-items: center;
    }
}

/* ===== 主要導覽列 ===== */

/* 上方工具列 - 黑色背景 */
.top-toolbar {
    background: var(--black);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
    position: relative;
    z-index: 1001;
}

.toolbar-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.toolbar-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.toolbar-link:hover {
    color: var(--primary-color);
}

.toolbar-link i {
    font-size: 16px;
}

.cart-link {
    position: relative;
}

.cart-count {
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
    text-align: center;
    line-height: 1;
    padding: 0;
    position: relative;
    top: 0;
    left: 0;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.language-switcher:hover {
    color: var(--primary-color);
}

.language-switcher i {
    font-size: 12px;
}

/* 主要導航列 - 透明背景疊加在封面圖上 */
.main-header {
    background: transparent;
    color: var(--white);
    padding: 20px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 滑動時半透明效果 */
.main-header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
}

.header-action:hover {
    background-color: var(--primary-color);
    color: white;
}

.header-action:hover {
    background-color: var(--primary-color);
    color: white;
}

.header-action i {
    font-size: 16px;
}

.cart-link {
    position: relative;
}

.cart-count {
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
    text-align: center;
    line-height: 1;
    padding: 0;
    position: relative;
    top: 0;
    left: 0;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--white);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-main {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    white-space: nowrap;
}

/* 桌面版導航樣式已移至 navigation-clean.css 統一管理 */

/* 手機版漢堡選單顯示控制 - 已移至 navigation-clean.css */

/* 最新消息上下輪播 */
.news-ticker-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 0;
    position: relative;
    overflow: hidden;
}

.news-ticker-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 15px;
}

.news-ticker-icon {
    flex-shrink: 0;
    font-size: 18px;
    color: var(--white);
}

.news-ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-ticker-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
}

.news-ticker-title i {
    color: var(--primary-color);
    font-size: 16px;
}

.news-ticker-wrapper {
    height: 24px;
    position: relative;
}

.news-ticker-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-ticker-item {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
    height: 24px;
    flex-shrink: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.news-ticker-item.active {
    opacity: 1;
    transform: translateY(0);
}

.news-ticker-item .news-date {
    font-size: 14px;
    font-weight: 600;
    color: #e74c3c;
    flex-shrink: 0;
    display: inline-block;
}

.news-text {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.news-ticker-arrow {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s ease;
}

.news-ticker-arrow:hover {
    color: var(--white);
    opacity: 0.8;
}

/* 跑馬燈動畫已改為JavaScript控制 */

/* 跑馬燈暫停功能由JavaScript控制 */

/* 精選商品區塊 */
.featured-products-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 40px;
}

/* 分類切換標籤 */
.products-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 10px 0 24px;
}

.products-tabs .tab-button {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-dark);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}

.products-tabs .tab-button.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.featured-products-carousel {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-size: 18px;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: -25px;
}

.carousel-btn-next {
    right: -25px;
}


.product-info {
    padding: 14px;
}

.product-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.product-description {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.btn-add-cart {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.view-more-container {
    text-align: center;
}

.btn-view-more {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-more:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.3);
}

/* 手機選單樣式已移至下方統一管理 */

/* 選單樣式已移至 navigation-clean.css 統一管理 */

/* 手機選單樣式已移至下方統一管理 */

/* 下拉選單分隔線 */
.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 8px 0;
    border: none;
}

/* 手機版header樣式 */
.mobile-header {
    display: none;
    width: 100%;
    position: relative;
    z-index: 1000;
    background: var(--dark-bg);
}

.mobile-top-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding: 10px 15px 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.mobile-logo-section {
    flex: 1;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}

.mobile-logo-image {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.mobile-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mobile-logo-main {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.mobile-logo-sub {
    font-size: 10px;
    color: var(--white);
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1;
}

.mobile-action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-action:hover {
    color: var(--primary-color);
}

.mobile-action i {
    font-size: 16px;
}

.mobile-action .cart-count {
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    line-height: 1;
    padding: 0;
    margin-left: 4px;
    position: relative;
    top: 0;
    left: 0;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .desktop-header {
        display: none !important; /* Hide desktop header on smaller screens */
    }
    
    .desktop-nav {
        display: none !important; /* Hide desktop navigation on smaller screens */
    }
    
    .mobile-header {
        display: block !important; /* Show mobile header on smaller screens */
    }
    
    .logo-section {
        display: none !important; /* Hide desktop logo on mobile */
    }
    
    .mobile-menu-toggle {
        display: flex; /* Show hamburger menu on smaller screens */
    }
}

/* 手機版優化 */
@media (max-width: 768px) {
    /* 隱藏桌面版導覽列 */
    .desktop-nav {
        display: none !important;
    }
    
    /* 隱藏桌面版 header-content */
    .header-content.desktop-header {
        display: none !important;
    }
    
    .header-actions {
        gap: 15px;
    }

    .header-action {
        font-size: 13px;
    }

    .header-action span {
    display: none;
    }

    .header-action i {
        font-size: 18px;
    }

    .language-switcher span {
        display: none;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .logo-text-container {
        display: none; /* 手機版隱藏logo文字 */
    }
    
    .news-ticker-section {
        padding: 6px 0;
    }
    
    .news-ticker-container {
        padding: 0 15px;
        gap: 10px;
    }
    
    .news-ticker-icon {
        display: none;
    }
    
    .news-ticker-content {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    .news-ticker-title {
        font-size: 12px;
        margin-bottom: 0;
        justify-content: center;
        background: var(--primary-color);
        padding: 6px 15px;
        border-radius: 0;
        text-align: center;
        width: 100%;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .news-ticker-title::before {
        content: "\f0a1";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 14px;
        color: white;
        display: inline-block;
    }
    
    .news-ticker-wrapper {
        background: var(--primary-color);
        padding: 6px 15px;
        display: flex;
        align-items: center;
        gap: 8px;
        color: white;
    }
    
    .news-ticker-title i {
        font-size: 14px;
    }
    
    .news-ticker-wrapper {
        height: 22px;
    }
    
    .news-ticker-item {
        height: 22px;
        gap: 10px;
    }
    
    .news-ticker-item .news-date {
        font-size: 12px;
        color: #e74c3c;
        display: inline-block;
    }
    
    .news-text {
        font-size: 13px;
        color: white;
    }
    
    .news-ticker-arrow {
        font-size: 12px;
    }
    
    /* 精選商品手機版 */
    .featured-products-carousel {
        overflow: hidden;
    position: relative;
    }
    
    
    .carousel-btn {
        display: flex;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .carousel-btn-prev {
        left: 10px;
    }
    
    .carousel-btn-next {
        right: 10px;
    }
    
    
    .product-info {
        padding: 8px;
    }
    
    .product-title {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .product-description {
        font-size: 9px;
        margin-bottom: 6px;
        line-height: 1.2;
    }
    
    .product-price {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .btn-add-cart {
        padding: 6px 8px;
        font-size: 10px;
        border-radius: 3px;
    }
    
    .btn-view-more {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    /* 手機版選單樣式已移至 navigation-clean.css */
}



/* ===== 按鈕樣式 ===== */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}



/* 桌面版 Main Menu 樣式已移至 navigation-clean.css 統一管理 */


/* 桌面版選單樣式已移至 navigation-clean.css */
.dropdown {
    position: relative;
}

/* 下拉選單 - 完全模仿參考網站 gen-power.tw 的效果 */
/* 桌面版下拉選單樣式已移至 navigation-clean.css */

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    z-index: 1;
    margin-top: 0;
}


.slider-container {
    height: 100%;
}

.slide {
    position: relative;
    height: 100%;
    display: none;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
}

/* 手機版封面字體修正 - 已移至底部統一 @media 區塊 */

.slide-content .btn-primary {
}


/* ===== Intro Card Section ===== */
.intro-card-section {
    padding: 60px 0;
    background: var(--white);
}

.intro-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.15);
}

.intro-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 36px;
    color: var(--white);
}

.intro-card h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.intro-card p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.intro-tagline {
    font-size: 18px !important;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 25px !important;
}

/* ===== Season Timeline Section ===== */
.season-section {
    padding: 80px 0;
    background: var(--white);
}

.season-timeline {
    margin-bottom: 50px;
}

.season-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.timeline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.timeline-item {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 15px 8px;
    background: var(--bg-light);
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-item::before {
    content: "🍊";
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    filter: grayscale(100%) brightness(1.5);
    transition: all 0.5s ease;
}

.timeline-item:nth-child(1)::before {
    filter: grayscale(80%) brightness(1.3);
}

.timeline-item:nth-child(2)::before {
    filter: grayscale(60%) brightness(1.2);
}

.timeline-item:nth-child(3)::before {
    filter: grayscale(40%) brightness(1.1);
}

.timeline-item:nth-child(4)::before {
    filter: grayscale(20%) brightness(1);
}

.timeline-item.active::before {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.2);
}

.timeline-item.active {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.timeline-month {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.timeline-item.active .timeline-month {
    color: var(--white);
}

.timeline-stage {
    font-size: 14px;
    color: var(--text-light);
}

.timeline-item.active .timeline-stage {
    color: var(--white);
    font-weight: 600;
}

    
    .timeline-item::before {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .timeline-month {
        font-size: 12px;
    }
    
    .timeline-stage {
        font-size: 11px;
    }
}

/* ===== Heritage Section ===== */
.heritage-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}

/* 背景裝飾圓圈 - 純 CSS */
.heritage-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 195, 74, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    z-index: 1;
}

.heritage-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    z-index: 1;
}

.heritage-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* 大數字圓圈 */
.heritage-circle {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    border: 3px solid rgba(139, 195, 74, 0.2);
}

/* 圓圈內的裝飾環 */
.heritage-circle::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border: 2px dashed rgba(139, 195, 74, 0.3);
    border-radius: 50%;
}

.heritage-number {
    font-size: 100px;
    font-weight: 900;
    background: linear-gradient(135deg, #8bc34a 0%, #4caf50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(139, 195, 74, 0.3);
    position: relative;
    z-index: 2;
}

.heritage-number .plus {
    font-size: 70px;
    margin-left: -8px;
}

.heritage-subtitle {
    font-size: 11px;
    letter-spacing: 3px;
    color: #999;
    font-weight: 700;
    text-align: center;
    max-width: 180px;
    line-height: 1.6;
    text-transform: uppercase;
}

.heritage-text {
    flex: 1;
    max-width: 600px;
}

.heritage-title {
    font-size: 48px;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 30px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 20px;
}

/* 標題下方裝飾線 */
.heritage-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #8bc34a 0%, #4caf50 100%);
    border-radius: 2px;
}

.heritage-description {
    font-size: 17px;
    line-height: 2;
    color: #555;
    letter-spacing: 0.5px;
}

/* 隱藏圖片裝飾 */
.heritage-decoration {
    display: none;
}

.features {
    padding: 80px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
}

.feature-item {
    text-align: center;
    padding: 35px 25px;
    background: var(--white);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.25);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 40px;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(255, 140, 66, 0.5);
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
}

.feature-item p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

/* ===== Section Title ===== */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ===== Season Timeline ===== */
.season-timeline {
    padding: 60px 0;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.fruit-timeline-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.fruit-label {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 80px;
    text-align: center;
}

.timeline-scroll-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.timeline-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.timeline-scroll-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.timeline-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.timeline-months {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    min-width: max-content;
}

.month-item {
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    min-width: 80px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.month-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.month-item.active {
    transform: scale(1.2);
    z-index: 50;
}

.month-item.active .month-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-10px);
}

.month-item.active .month-icon {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

.month-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.month-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.month-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: var(--white);
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
    font-size: 13px;
    color: var(--text-dark);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
    margin-bottom: 8px;
}

.month-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--white);
}

.month-item.in-season {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 2px solid var(--primary-color);
}

.month-item.mid-season {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
}

.month-item.pre-season {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #10b981;
}

.month-item.off-season {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    opacity: 0.7;
}

/* 月份彈窗 */
.month-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5000;
    align-items: center;
    justify-content: center;
}

.month-modal.active {
    display: flex;
}

.month-modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.month-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.month-modal-close:hover {
    color: var(--primary-color);
}

.month-modal-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.month-modal-content p {
    font-size: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

/* 新聞頁面日期樣式 */
.news-content .news-date {
    display: inline-block;
    font-size: 12px;
    color: var(--primary-color);
    background: #fff7ed;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.news-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Knowledge Section ===== */
.knowledge-section {
    padding: 60px 0;
    background: var(--bg-light);
}

/* 蔬果知識庫卡片樣式 - 與最新消息一致 */
.knowledge-section .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
}

.knowledge-section .news-card {
    flex: 0 0 350px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.knowledge-section .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.knowledge-section .news-card-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.knowledge-section .news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.knowledge-section .news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.knowledge-section .news-card-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #ff8c42;
}

.knowledge-section .news-card-content {
    padding: 25px;
}

.knowledge-section .news-card-tag {
    display: inline-block;
    background: #fff7ed;
    color: #ff8c42;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.knowledge-section .news-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.knowledge-section .news-card-description {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .knowledge-section .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .knowledge-section .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .knowledge-section .news-card {
        flex: 0 0 280px;
    }
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.knowledge-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.knowledge-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.knowledge-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.knowledge-icon i {
    font-size: 28px;
    color: var(--white);
}

.knowledge-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.knowledge-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.section-more {
    text-align: center;
    margin-top: 40px;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: var(--primary-dark);
    transform: translateX(5px);
}

/* ===== Category Section ===== */
.category-section {
    padding: 60px 0 40px;
    background: var(--white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3 {
    padding: 20px;
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 600;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.category-btn {
    background: linear-gradient(135deg, #fff 0%, #fff3e0 100%);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 140, 66, 0.2);
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left 0.5s ease;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(255, 140, 66, 0.5);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 140, 66, 0.7);
    }
}

/* ===== Category Products Carousel ===== */
.category-products-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* 分類標籤手機版 - 已移至底部統一 @media 區塊 */

.tab-btn {
    padding: 12px 30px;
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.products-carousel {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* ===== Products Section ===== */
.products-section {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
}

.products-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.products-grid {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    padding: 10px 0;
}

/* ===== 商品卡片 ===== */

/* 商品輪播容器 - 手動滑動 */
.featured-products-carousel {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.featured-products-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* 商品分類區塊 */
.product-category-section {
    margin-bottom: 60px;
}

.product-category-section:last-child {
    margin-bottom: 40px;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8bc34a 0%, #4caf50 100%);
    border-radius: 2px;
}

/* 確保精選商品標題與預購商品標題字體大小一致 */
.featured-products-content .category-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 30px !important;
    text-align: center !important;
    position: relative !important;
    padding-bottom: 15px !important;
    display: block !important;
}

.featured-products-content .category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8bc34a 0%, #4caf50 100%);
    border-radius: 2px;
}

/* 精選商品標題區域 - 原本樣式 */
.featured-products-animated-header {
    text-align: center;
    margin: 40px 0 20px 0;
}

.featured-products-content .category-title {
    color: var(--text-dark);
    font-size: 2.5em;
    font-weight: bold;
    margin: 0;
    position: relative;
    display: inline-block;
}

.featured-products-content .category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), #e67e22);
    border-radius: 2px;
}

/* 商品網格 - 手動滑動設計 */
.featured-products-grid {
    display: flex;
    gap: 15px;
    padding: 0 15px;
    min-width: max-content;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-behavior: smooth;
}

/* 中等螢幕響應式設計 */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-card {
        flex: 0 0 calc(33.333% - 10px) !important;
        width: calc(33.333% - 10px) !important;
        height: calc(30vw - 10px) !important;
        max-height: 180px !important;
        min-height: 140px !important;
    }
    
    .featured-products-grid {
        gap: 10px;
        padding: 0 10px;
    }
}

/* 桌面版隱藏輪播箭頭 */
@media (min-width: 1025px) {
    .carousel-arrow {
        display: none !important;
    }
}

/* 商品卡片 */
.product-card {
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    cursor: pointer !important;
    border: 1px solid #f0f0f0 !important;
    flex: 0 0 calc(25% - 15px) !important;
    max-width: 220px !important;
    width: calc(25% - 15px) !important;
    height: calc(22vw - 15px) !important;
    max-height: 220px !important;
    min-height: 180px !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 180px !important;
    box-sizing: border-box !important;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 標籤 - 左上角圓形 */
.product-card .product-badge-new {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    text-align: right;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4);
    letter-spacing: 0.5px;
}

/* 商品圖片區域 - 小卡片 */
.product-card .product-image {
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 100% !important; /* 1:1 正方形比例 */
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.product-card .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* 商品資訊區域 */
.product-card .product-info {
    padding: 12px;
    background: #fff;
}

/* 商品標題 */
.product-card .product-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 價格行 */
.product-card .product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* 促銷價按鈕 */
.product-card .btn-promotion {
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(239, 83, 80, 0.3);
    letter-spacing: 0.3px;
}

.product-card .btn-promotion:hover {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.4);
}

/* 價格 */
.product-card .product-price {
    font-size: 16px;
    font-weight: 900;
    color: #ef5350;
    margin: 0;
    letter-spacing: -0.3px;
}


.products-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10;
}

.products-nav:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.products-nav.prev {
    left: -25px;
}

.products-nav.next {
    right: -25px;
}

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


.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.product-actions {
    padding: 0 20px 20px;
}

.product-actions .btn-add-cart,
.product-actions .btn-view-detail {
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
}

.btn-view-detail {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-detail:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}


.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: badgePulse 2s infinite;
}

.badge:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    border-radius: 20px;
    animation: shimmer 3s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 不同標籤的顏色 */

.badge[data-type="批發"] {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.badge[data-type="經濟"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge[data-type="新品"] {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}


.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.product-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
}

.product-price .currency {
    font-size: 14px;
    font-weight: 500;
}

.btn-add-cart {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ===== Checkout Steps ===== */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 30px;
}

.checkout-steps .step {
    flex: 1;
    text-align: center;
    position: relative;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.checkout-steps .step.active {
    opacity: 1;
}

.checkout-steps .step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.checkout-steps .step:last-child::after {
    display: none;
}

.checkout-steps .step.active::after {
    background: var(--primary-color);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 10px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.checkout-steps .step.active .step-number {
    background: var(--primary-color);
    color: var(--white);
}

.step-title {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.checkout-steps .step.active .step-title {
    color: var(--primary-color);
    font-weight: 600;
}

.checkout-step-content {
    display: none;
}

.checkout-step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-prev, .btn-next {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-prev:hover {
    background: #e5e7eb;
}

.btn-next {
    background: var(--primary-color);
    color: var(--white);
}

.btn-next:hover {
    background: var(--primary-dark);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 15px;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.checkout-modal .modal-content {
    max-width: 600px;
}

.product-gallery {
    width: 100%;
}
{{ ... }}

.main-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.main-image {
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.thumbnail-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
}

.thumbnail-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.thumbnail {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 140, 66, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 圖片庫手機版 - 已移至底部統一 @media 區塊 */

/* ===== Image Lightbox ===== */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 36px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
}

.zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.main-image:hover .zoom-hint {
    opacity: 1;
}

/* ===== Floating Menu Button ===== */
.floating-menu-btn {
    position: fixed !important;
    right: 20px !important;
    bottom: 85px !important;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.4);
    z-index: 50000 !important;
    transition: all 0.3s ease;
}

.floating-menu-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(44, 95, 45, 0.6);
}

.floating-menu-btn i {
    font-size: 20px;
    color: var(--white);
}

/* 手機版隱藏懸浮 Menu 按鈕 */
@media (max-width: 992px) {
    .floating-menu-btn {
        display: none !important;
    }
}

/* ===== Floating Cart Button ===== */
.floating-cart {
    position: fixed !important;
    right: 20px !important;
    bottom: 20px !important;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4);
    z-index: 50000 !important;
    transition: all 0.3s ease;
}

.floating-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.6);
}

.floating-cart i {
    font-size: 24px;
    color: var(--white);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    line-height: 1;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    position: relative;
    top: -5px;
    left: 0;
}

/* ===== Cart Sidebar ===== */
.cart-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: -400px;
    width: 400px;
    height: 100vh !important;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-sidebar.active {
    right: 0;
}

/* 購物車背景遮罩 */
.cart-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998 !important;
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--primary-color);
    color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.cart-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-header-logo {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.cart-header h3 {
    font-size: 20px;
    color: var(--white);
    margin: 0;
}
.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 10;
}

.close-cart:hover {
    color: var(--primary-color);
    background: rgba(255, 140, 66, 0.1);
}

.close-cart:active {
    transform: scale(0.95);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.cart-item-spec {
    font-size: 12px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 5px 10px;
}

.quantity-control button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-dark);
    width: 24px;
    height: 24px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.quantity-control button:hover {
    color: var(--primary-color);
}

.quantity-control span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    font-size: 18px;
}

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

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-cart i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.discount-code {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.discount-code input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    border-radius: 20px;
    outline: none;
}

.discount-code button {
    padding: 10px 20px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.discount-code button:hover {
    background: #1e4620;
}

.discount-info {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
}

.discount-info.success {
    background: #e8f5e9;
    color: var(--success-color);
}

.discount-info.error {
    background: #ffebee;
    color: var(--error-color);
}

.cart-total {
    margin-bottom: 20px;
}

.cart-total > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.subtotal {
    color: var(--text-light);
}

.shipping-row {
    color: var(--text-light);
}

.discount-amount {
    color: var(--success-color);
}

.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    padding-top: 10px;
    border-top: 2px solid var(--border-color);
}

.shipping-notice {
    text-align: center;
    padding: 10px;
    background: #fff7ed;
    border-radius: 8px;
    font-size: 13px;
    color: var(--primary-color);
    margin-top: 15px;
}

.shipping-notice i {
    margin-right: 5px;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 24px;
    color: var(--text-dark);
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.close-modal:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.order-summary {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-summary h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
}

.payment-methods {
    margin-bottom: 30px;
}

.payment-methods h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: var(--primary-color);
}

.payment-option input[type="radio"] {
    margin-right: 10px;
}

.payment-option span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.payment-option i {
    font-size: 20px;
}

.bank-info {
    margin-top: 15px;
    padding: 15px;
    background: #fff3e0;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.bank-info p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-dark);
}

.bank-info .note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--error-color);
    font-weight: 600;
}

.btn-submit-order {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-order:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== News Section ===== */
.news-section {
    padding: 80px 0;
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* 新聞卡片日期樣式 */
.news-card .news-date {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.news-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== Knowledge Section ===== */
.knowledge-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.knowledge-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.knowledge-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.knowledge-card:hover img {
    transform: scale(1.05);
}

.knowledge-content {
    padding: 25px;
}

.knowledge-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.knowledge-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.knowledge-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.knowledge-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.knowledge-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    background: #2c2c2c;
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.footer-section {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.footer-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    flex-shrink: 0;
}

.footer-icon {
    width: 40px;
    height: 40px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.footer-section h4 {
    font-size: 16px;
    margin: 0;
    color: var(--white);
    font-weight: 600;
    line-height: 1.2;
}

.footer-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 20px;
    flex-shrink: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.footer-section ul li {
    margin: 0;
}

.footer-section ul li a {
    color: #ccc;
    transition: color 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.footer-section ul li a:hover {
    color: #4CAF50;
}

.footer-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.footer-links-grid ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    line-height: 1.4;
    white-space: nowrap;
}

.social-links a:hover {
    color: #4CAF50;
}

.social-links a i {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

.contact-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.contact-list li {
    margin: 0;
    color: #ccc;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
    white-space: nowrap;
}

.contact-list li i {
    color: #4CAF50;
    width: 16px;
    font-size: 14px;
}

.footer-brands {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.brand-logo span {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.brand-separator {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    color: #999;
    font-size: 13px;
    line-height: 1.6;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .footer {
        padding: 50px 0 30px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .footer-section-header {
        min-width: auto;
        justify-content: flex-start;
    }
    
    .footer-divider {
        width: 100%;
        height: 1px;
        margin: 10px 0;
    }
    
    .footer-section ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-links-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-links-grid ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .contact-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-brands {
        flex-direction: column;
        gap: 25px;
        margin: 40px 0;
        padding: 25px 0;
    }
    
    .brand-separator {
        width: 40px;
        height: 1px;
    }
    
    .footer-bottom {
        text-align: center;
        font-size: 12px;
    }
}

/* ===== 懸浮購物車按鈕（已停用）===== */
.floating-cart-btn {
    display: none !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4);
    cursor: pointer;
    z-index: 50000 !important;
    transition: all 0.3s ease;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.6);
}

.floating-cart-btn i {
    font-size: 20px;
    color: var(--white);
}

.floating-cart-btn .cart-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #e74c3c;
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    line-height: 1;
    position: relative;
    top: -3px;
    left: 0;
}

/* ===== 響應式設計 ===== */
@media (max-width: 992px) {
    /* z-index 規則已統一至手機版區域 */
    
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-info span {
        display: block;
        margin: 5px 0;
    }
    
    .nav-content {
        flex-wrap: wrap;
    }
    
    /* 搜尋欄和按鈕佈局已移至全域規則 */
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background: var(--bg-light);
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    /* 手機版漢堡選單 */
    .mobile-menu-toggle {
        display: flex;
        margin-right: 15px;
    }
    
    .hero-slider {
        height: 400px;
        z-index: 1 !important;
        position: relative !important;
    }
    
    .slide-content h1 {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .slide-content p {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    /* 手機版購物車項目優化 - 兩排網格佈局 */
    .cart-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .cart-item {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 0;
        border: none;
        background: white;
        border-radius: 12px;
        margin: 0;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .cart-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }
    
    .cart-item-image {
        width: 100%;
        height: 100px;
        border-radius: 0;
        overflow: hidden;
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    }
    
    .cart-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .cart-item:hover .cart-item-image img {
        transform: scale(1.05);
    }
    
    .cart-item-info {
        width: 100%;
        padding: 8px;
    }
    
    .cart-item-name,
    .cart-item h4 {
        font-size: 12px !important;
        font-weight: 700;
        margin: 0 0 4px 0;
        color: var(--text-dark);
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .cart-item-spec,
    .item-spec {
        font-size: 10px !important;
        color: #666;
        margin: 0 0 4px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .cart-item-price,
    .item-price {
        font-size: 14px !important;
        font-weight: 800;
        color: var(--primary-color);
        margin: 0 0 6px 0;
    }
    
    .cart-item-controls {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100%;
        padding: 0 8px 8px;
        margin: 0;
    }
    
    .quantity-control {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: #f8fafc;
        padding: 4px 8px;
        border-radius: 16px;
        border: 2px solid #e2e8f0;
    }
    
    .quantity-control button {
        width: 20px;
        height: 20px;
        font-size: 12px;
        background: white;
        color: var(--primary-color);
        border-radius: 50%;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .quantity-control button:hover {
        background: var(--primary-color);
        color: white;
        transform: scale(1.1);
    }
    
    .quantity-control span {
        font-size: 12px;
        font-weight: 700;
        min-width: 16px;
    }
    
    .cart-item-details {
        width: 100%;
    }
    
    .remove-item,
    .btn-remove {
        margin: 0;
        width: 100%;
        padding: 6px 8px;
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: white;
        border: none;
        border-radius: 16px;
        cursor: pointer;
        font-size: 10px;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(239,68,68,0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
    }
    
    .remove-item:hover,
    .btn-remove:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(239,68,68,0.4);
        background: linear-gradient(135deg, #dc2626, #b91c1c);
        opacity: 1;
    }
    
    .remove-item::before,
    .btn-remove::before {
        content: "🗑️";
        font-size: 10px;
    }
    
    .cart-header-logo {
        height: 35px;
    }
    
    .cart-header h3 {
        font-size: 18px;
    }
}

/* 桌面版選單響應式樣式已移至 navigation-clean.css */

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        position: relative;
    }
    
    /* z-index 規則已統一至 768px 手機版區域 */
    
    .container {
        padding: 0 10px !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    .logo img {
        height: 65px !important;
        max-width: 200px !important;
    }
    
    /* Hero Slider 手機版 */
    .hero-slider {
        height: 350px;
        z-index: 1 !important;
        position: relative !important;
    }
    
    .hero-title {
        font-size: 24px !important;
        line-height: 1.5;
        padding: 0 15px;
        word-break: keep-all;
        white-space: normal;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
        line-height: 1.8;
        padding: 0 15px;
        margin-top: 15px;
        word-break: keep-all;
    }
    
    .slide-content h1 {
        font-size: 20px;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .slide-content p {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 16px;
    }
    
    /* 分類標籤手機版 */
    .category-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 10px 0;
    }
    
    .category-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    /* 圖片庫手機版 */
    .main-image-container {
        height: 280px !important;
    }
    
    .gallery-nav {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }
    
    .gallery-nav.prev {
        left: 5px !important;
    }
    
    .gallery-nav.next {
        right: 5px !important;
    }
    
    .thumbnail {
        width: 60px !important;
        height: 60px !important;
    }
    
    .thumbnail-container {
        gap: 8px !important;
        padding: 8px 0 !important;
    }
    
    .heritage-section {
        padding: 60px 0;
    }
    
    .heritage-content {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }
    
    .heritage-circle {
        width: 240px;
        height: 240px;
    }
    
    .heritage-circle::before {
        width: 210px;
        height: 210px;
    }
    
    .heritage-number {
        font-size: 80px;
    }
    
    .heritage-number .plus {
        font-size: 56px;
    }
    
    .heritage-title {
        font-size: 36px;
    }
    
    .heritage-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .heritage-description {
        font-size: 15px;
        line-height: 1.8;
    }
    
    .category-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .product-category-section {
        margin-bottom: 50px;
    }
    
    /* 手機版精選商品標題區域 */
    .featured-products-animated-header {
        margin: 20px 0 15px 0;
        text-align: center;
    }
    
    .featured-products-content .category-title {
        font-size: 1.8em;
        margin: 0;
        color: var(--text-dark);
        font-weight: bold;
        position: relative;
        display: inline-block;
    }
    
    .featured-products-content .category-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 3px;
        background: linear-gradient(135deg, var(--primary-color), #e67e22);
        border-radius: 2px;
    }
    
    .featured-products-carousel {
        padding: 0 15px;
    }
    
    .featured-products-grid {
        gap: 8px;
        padding: 0 5px;
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
    }
    
    .product-card {
        flex: 0 0 calc(50% - 4px) !important;
        min-width: 140px !important;
        max-width: 160px !important;
        width: calc(50% - 4px) !important;
        height: auto !important;
        min-height: 200px !important;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
        margin-bottom: 10px !important;
        position: relative !important;
    }
    
    .product-card .product-info {
        padding: 8px 8px 8px 8px !important;
        padding-top: 20px !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
    
    .product-card .product-title {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #333 !important;
        margin-bottom: 4px !important;
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    .product-card .product-price-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-top: auto !important;
    }
    
    .product-card .btn-promotion {
        font-size: 10px !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
    }
    
    .product-card .product-price {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #e74c3c !important;
    }
    
    /* 手機版商品標籤樣式 */
    .product-card .product-badge-new {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        background: #27ae60 !important;
        color: white !important;
        padding: 4px 8px !important;
        border-radius: 12px !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        z-index: 10 !important;
        text-align: right !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* 手機版輪播箭頭 */
    .featured-products-carousel {
        position: relative;
        padding: 0 40px; /* 為箭頭留出空間 */
    }
    
    .carousel-arrow {
        display: flex !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid #ddd;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .carousel-arrow:hover {
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .carousel-arrow.prev {
        left: 5px;
    }
    
    .carousel-arrow.next {
        right: 5px;
    }
    
    .carousel-arrow i {
        font-size: 14px;
        color: #333;
    }
    
    .carousel-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid #ddd;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .carousel-arrow:hover {
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .carousel-arrow.prev {
        left: 10px;
    }
    
    .carousel-arrow.next {
        right: 10px;
    }
    
    .carousel-arrow i {
        font-size: 16px;
        color: #333;
    }
    
    .features {
        padding: 40px 0;
    }
    
    /* 精選卡片橫向滾動 */
    .features-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 20px !important;
        padding: 10px 5px 20px 5px !important;
        margin: 0 -10px !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .features-grid::-webkit-scrollbar {
        display: none;
    }
    
    .feature-item {
        flex: 0 0 85% !important;
        min-width: 280px !important;
        max-width: 350px !important;
        scroll-snap-align: center;
        padding: 40px 25px !important;
        min-height: 320px !important;
    }
    
    .feature-icon {
        width: 100px !important;
        height: 100px !important;
        font-size: 45px !important;
        margin-bottom: 25px !important;
    }
    
    .feature-item h3 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }
    
    .feature-item p {
        font-size: 15px !important;
        line-height: 1.8 !important;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .category-section,
    .products-section,
    .news-section,
    .knowledge-section,
    .season-timeline {
        padding: 30px 0;
    }
    
    .products-section {
        padding: 30px 0;
    }
    
    .products-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    
    /* 手機版商品列表 */
    .products-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    /* 手機版商品圖片樣式 */
    .product-card .product-image {
        width: 100% !important;
        height: 100px !important;
        overflow: hidden !important;
        background: #f8f9fa !important;
        position: relative !important;
    }
    
    .product-card .product-image img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    .product-name {
        font-size: 18px !important;
        padding: 0 !important;
        margin-bottom: 12px !important;
        word-wrap: break-word !important;
        -webkit-line-clamp: 3 !important;
        line-height: 1.4 !important;
    }
    
    .product-description {
        font-size: 14px !important;
        padding: 0 !important;
        margin-bottom: 15px !important;
        word-wrap: break-word !important;
        -webkit-line-clamp: 3 !important;
        line-height: 1.6 !important;
    }
    
    .product-price {
        font-size: 20px !important;
        padding: 0 !important;
        word-wrap: break-word !important;
    }
    
    .product-info {
        padding: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .product-actions {
        padding: 0 15px 15px 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
        font-size: 14px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* 隱藏手機版輪播按鈕 */
    .products-nav {
        display: none !important;
    }
    
    .products-carousel-wrapper {
        overflow: visible !important;
    }
    
    /* 確保手機版商品網格正確顯示 */
    .products-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
        transform: none !important;
    }
    
    /* 最新消息區塊手機版 - 正方形小卡片 */
    .news-section .news-carousel {
        overflow: visible !important;
    }
    
    .news-section .news-track {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        transition: none !important;
        transform: none !important;
    }
    
    .news-section .news-card {
        min-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    .news-section .news-card > div:first-child {
        height: 0 !important;
        padding-bottom: 100% !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .news-section .news-card img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .news-section .news-card > div:last-child {
        padding: 12px !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .news-section .news-card h3 {
        font-size: 14px !important;
        margin-bottom: 6px !important;
        line-height: 1.3 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
    
    .news-section .news-card p {
        font-size: 12px !important;
        line-height: 1.4 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        margin-bottom: 0 !important;
    }
    
    .news-section .news-card > div:last-child > div:first-child {
        font-size: 10px !important;
        margin-bottom: 6px !important;
    }
    
    /* 隱藏輪播按鈕 */
    .news-section button {
        display: none !important;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* 產季時間軸手機版 */
    .fruit-timeline-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .fruit-label {
        font-size: 18px;
        min-width: auto;
        text-align: left;
    }
    
    .timeline-scroll-container {
        width: 100%;
    }
    
    .month-item {
        min-width: 70px;
        padding: 12px 8px;
    }
    
    .month-icon {
        font-size: 28px;
    }
    
    .month-number {
        font-size: 12px;
    }
    
    /* 防止圖片溢出 */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* 防止文字溢出 */
    h1, h2, h3, h4, h5, h6, p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    
    /* 分類按鈕橫向滾動 */
    .category-buttons {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 10px 5px !important;
        margin: 0 -10px 30px -10px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .category-buttons::-webkit-scrollbar {
        display: none;
    }
    
    .category-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-body {
        padding: 20px;
    }
}

/* ===== 回到頂部按鈕 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 20px;
    }
}

/* ===== CTA 區塊樣式 ===== */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 50%, #e67a2e 100%);
    overflow: hidden;
    padding: 80px 0;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 50%, #e67a2e 100%);
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255,255,255,0.06) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.cta {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-eyebrow {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 140, 66, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(255, 140, 66, 0.2);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #2c5f2d 0%, #4a7c59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-width: 160px;
    justify-content: center;
    border: 2px solid transparent;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 140, 66, 0.4);
    background: linear-gradient(135deg, #ff6b1a 0%, #e67a2e 100%);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 8px 25px rgba(44, 95, 45, 0.1);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(44, 95, 45, 0.3);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    position: relative;
    z-index: 2;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.cta-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* 手機版樣式 */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content {
        padding: 40px 20px;
        margin: 0 20px;
        border-radius: 15px;
    }
    
    .cta-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .cta-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 28px;
        font-size: 15px;
    }
    
    /* 更小螢幕的百年果園傳承樣式 */
    .heritage-section {
        padding: 40px 0;
    }
    
    .heritage-section::before,
    .heritage-section::after {
        display: none;
    }
    
    .heritage-circle {
        width: 200px;
        height: 200px;
    }
    
    .heritage-circle::before {
        width: 175px;
        height: 175px;
    }
    
    .heritage-number {
        font-size: 64px;
    }
    
    .heritage-number .plus {
        font-size: 48px;
    }
    
    .heritage-title {
        font-size: 28px;
    }
    
    .heritage-description {
        font-size: 14px;
    }
    
    .featured-products-carousel {
        padding: 0 45px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cta-content {
        padding: 30px 15px;
        margin: 0 15px;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-description {
        font-size: 0.95rem;
    }
}

/* ===== 熱賣商品推薦樣式 - 模仿 dachanfoods.com.tw ===== */
.hot-products-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff8c42, #ff6b1a);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 400;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.product-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 280px;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.product-info {
    padding: 15px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
}

/* 中等螢幕調整為3列 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .product-item {
        height: 260px;
    }
    
    .product-image {
        height: 130px;
    }
    
    .product-info {
        height: 130px;
        padding: 12px;
    }
}

/* 平板調整為2列 */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-item {
        height: 240px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-info {
        height: 120px;
        padding: 10px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 16px;
    }
}

/* 手機版調整為1列 */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-item {
        height: auto;
        display: flex;
        flex-direction: row;
    }
    
    .product-image {
        width: 120px;
        height: 120px;
        border-radius: 8px 0 0 8px;
    }
    
    .product-info {
        flex: 1;
        height: auto;
        padding: 15px;
        justify-content: center;
    }
}

.product-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff8c42, #ff6b1a);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.product-info {
    padding: 24px;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-label {
    background: #e8f5e8;
    color: #28a745;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff8c42;
}

.view-more-btn {
    text-align: center;
}

.btn-more {
    display: inline-block;
    background: linear-gradient(135deg, #ff8c42, #ff6b1a);
    color: white;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.4);
    color: white;
    text-decoration: none;
}

/* ===== 影片專區樣式 - 模仿 dachanfoods.com.tw ===== */
.video-section {
    padding: 80px 0;
    background: #ffffff;
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.video-wrapper:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2rem;
    color: #ff8c42;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: white;
    transform: scale(1.1);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hot-products-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .price-value {
        font-size: 1.3rem;
    }
    
    .video-section {
        padding: 60px 0;
    }
    
    .video-container {
        padding: 0 15px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn-more {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* ===== 特色優勢區塊樣式 ===== */
.features-section {
    padding: 80px 0;
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff8c42, #ff6b1a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.3);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-description {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
}

/* ===== 客戶見證區塊樣式 ===== */
.testimonials-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    text-align: center;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
}

.stars i {
    color: #ffc107;
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.author-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 5px;
}

.author-location {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .features-section {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px 15px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.25rem;
    }
    
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 25px 15px;
    }
    
    .testimonial-card {
        padding: 20px 15px;
    }
}

/* 手機版漢堡選單樣式已移至 navigation-clean.css 統一管理 */

/* 選單遮罩樣式已移至 navigation-clean.css */

/* 防止背景滾動 */
body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

