/* DietMate 現代化樣式 */

/* CSS 變數定義 */
:root {
    --health-primary: #1B5E20;
    --health-secondary: #004D40;
    --health-accent: #2E7D32;
    --warm-primary: #BF360C;
    --warm-secondary: #D84315;
}

/* 基礎重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 自定義背景漸變 */
.bg-company-gradient {
    background: linear-gradient(135deg, #00f5ff, #7b66ff);
}

.bg-health-gradient {
    background: linear-gradient(135deg, #1B5E20, #004D40);
}

.bg-warm-gradient {
    background: linear-gradient(135deg, #BF360C, #D84315);
}

/* 自定義顏色類別 */
.text-health-primary {
    color: #1B5E20;
}

.text-health-secondary {
    color: #004D40;
}

.bg-health-primary {
    background-color: #1B5E20;
}

.bg-health-secondary {
    background-color: #004D40;
}

.border-health-primary {
    border-color: #1B5E20;
}

.hover\:bg-health-secondary:hover {
    background-color: #004D40;
}

/* 漸變文字效果 */
.gradient-text {
    background: linear-gradient(135deg, #1B5E20, #004D40);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 動畫效果 */
.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

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

/* 導覽欄樣式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Logo 樣式 */
.navbar .container-max {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.navbar a[href="/"] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.navbar img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

/* 導航連結 */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-grow: 1;
    justify-content: flex-end;
}

.nav-links a {
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:not(:last-child):hover {
    color: #16a34a;
}

/* CTA 按鈕 */
.nav-links a:last-child {
    background: #1B5E20;
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-links a:last-child:hover {
    background: #15803d;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

/* 手機選單動畫 */
/* Mobile menu styles removed - using inline styles in HTML for side drawer design */

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #374151;
    transition: all 0.3s ease;
    margin: 6px 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero 區段 - Lovable 風格 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #eff6ff 100%);
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 40px;
    width: 300px;
    height: 300px;
    background: rgba(34, 197, 94, 0.06);
    border-radius: 50%;
    filter: blur(80px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 80px;
    right: 40px;
    width: 400px;
    height: 400px;
    background: rgba(34, 197, 94, 0.04);
    border-radius: 50%;
    filter: blur(80px);
}

/* Animations */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-fade-in-up:nth-child(2) {
    animation-delay: 0.3s;
}

.animate-fade-in-up:nth-child(3) {
    animation-delay: 0.4s;
}

.animate-fade-in-up:nth-child(4) {
    animation-delay: 0.5s;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .hero-achievements-image {
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0 1rem;
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-left {
        max-width: 100%;
    }
    
    .hero-right {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-left h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-left h2 {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }
    
    .hero-left p {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }
    
    .hero-achievements-image {
        max-width: 90%;
        padding: 0.3rem;
        margin: 0 auto;
    }
    
    .hero-achievements-image img {
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .hero-achievements-image {
        padding: 0;
    }
    
    .hero-achievements-image img {
        border-radius: 8px;
        box-shadow: 0 8px 30px rgba(0, 245, 255, 0.12);
    }
}

/* 卡片樣式 */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

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

/* 按鈕樣式 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: #1B5E20;
    color: white;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #15803d;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: transparent;
    color: #1B5E20;
    font-weight: 600;
    border: 2px solid #1B5E20;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #1B5E20;
    color: white;
}

/* 表單樣式 */
.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #1B5E20;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero {
        padding: 80px 20px 40px;
    }
    
    .card {
        margin: 20px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .desktop-menu {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .desktop-menu {
        display: flex;
    }
}

/* 容器和網格 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    gap: 32px;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 間距工具類 */
.space-y-4 > * + * {
    margin-top: 16px;
}

.space-y-6 > * + * {
    margin-top: 24px;
}

.space-y-8 > * + * {
    margin-top: 32px;
}

.space-x-3 > * + * {
    margin-left: 12px;
}

/* 文字工具類 */
.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

/* 顯示工具類 */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* 邊距和填充 */
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }

.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-16 { margin-bottom: 64px; }

/* 圓角 */
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-3xl { border-radius: 24px; }
.rounded-full { border-radius: 9999px; }

/* 陰影 */
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25); }

/* 字體大小 */
.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
.text-5xl { font-size: 48px; }

/* 顏色 */
.text-white { color: white; }
.text-gray-600 { color: #6b7280; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.bg-white { background-color: white; }
.bg-gray-50 { background-color: #f9fafb; }

/* 寬度和高度 */
.w-10 { width: 40px; }
.w-12 { width: 48px; }
.w-16 { width: 64px; }
.h-10 { height: 40px; }
.h-12 { height: 48px; }
.h-16 { height: 64px; }
.min-h-screen { min-height: 100vh; }

/* 定位 */
.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* 邊框 */
.border { border: 1px solid #e5e7eb; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.border-gray-200 { border-color: #e5e7eb; }

/* 過渡效果 */
.transition-all { transition: all 0.3s ease; }
.transition-transform { transition: transform 0.3s ease; }

/* 變換 */
.hover\:-translate-y-1:hover { transform: translateY(-4px); }
.hover\:-translate-y-2:hover { transform: translateY(-8px); }
.hover\:scale-110:hover { transform: scale(1.1); }

/* 透明度 */
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }

/* 背景模糊 */
.backdrop-blur-lg { backdrop-filter: blur(16px); }

/* 隱藏類 */
.hidden { display: none; }

/* 產品展示輪播區域 */
.gallery {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1B5E20;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 輪播容器 */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* 輪播卡片 */
.carousel-card {
    position: relative;
    min-width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    transform: scale(0.9);
}

.carousel-card.center {
    opacity: 1;
    transform: scale(1);
    z-index: 3;
}

.carousel-card.left,
.carousel-card.right {
    opacity: 0.8;
    transform: scale(0.95);
    z-index: 2;
}

.carousel-card.hidden-left,
.carousel-card.hidden-right {
    opacity: 0.3;
    transform: scale(0.85);
    z-index: 1;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

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

/* 卡片覆蓋層 */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 40px 30px 30px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.carousel-card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.card-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* 導航按鈕 */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1B5E20;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-nav:hover {
    background: #1B5E20;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(27, 94, 32, 0.3);
}

.carousel-prev {
    left: -30px;
}

.carousel-next {
    right: -30px;
}

/* 指示器 */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(27, 94, 32, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator.active {
    background: #1B5E20;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(27, 94, 32, 0.6);
    transform: scale(1.1);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .gallery {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .carousel-nav {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .carousel-prev {
        left: -25px;
    }
    
    .carousel-next {
        right: -25px;
    }
    
    .card-overlay {
        padding: 30px 20px 20px;
    }
    
    .card-overlay h4 {
        font-size: 1.25rem;
    }
    
    .card-overlay p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 0 10px;
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .carousel-prev {
        left: -22px;
    }
    
    .carousel-next {
        right: -22px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .carousel-indicators {
        margin-top: 30px;
        gap: 8px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* 實施流程區域 */
.implementation {
    padding: 96px 32px;
    background: linear-gradient(135deg, #f3e5f5 0%, #fff5e6 100%);
}

.process-steps {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 64px;
    justify-content: center;
}

.process-card {
    background: white;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    max-width: 240px;
}

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 24px;
    opacity: 0.6;
    margin: 0 4px;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.5s ease;
    opacity: 0.1;
}

.process-card.step-1::before {
    background: linear-gradient(135deg, #1B5E20, #004D40);
}

.process-card.step-2::before {
    background: linear-gradient(135deg, #0D47A1, #004D40);
}

.process-card.step-3::before {
    background: linear-gradient(135deg, #BF360C, #1B5E20);
}

.process-card.step-4::before {
    background: linear-gradient(135deg, #4A148C, #880E4F);
}

.process-card:hover::before {
    left: 100%;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.process-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    position: relative;
    z-index: 2;
}

.process-card.step-1 .process-icon {
    background: linear-gradient(135deg, #1B5E20, #004D40);
}

.process-card.step-2 .process-icon {
    background: linear-gradient(135deg, #0D47A1, #004D40);
}

.process-card.step-3 .process-icon {
    background: linear-gradient(135deg, #BF360C, #1B5E20);
}

.process-card.step-4 .process-icon {
    background: linear-gradient(135deg, #4A148C, #880E4F);
}

.process-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.process-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.process-content li {
    padding: 5px 0;
    color: #2D3748;
    position: relative;
    padding-left: 19px;
    line-height: 1.4;
    font-size: 14px;
}

.process-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.process-card.step-1 .process-content li::before {
    color: #1B5E20;
}

.process-card.step-2 .process-content li::before {
    color: #0D47A1;
}

.process-card.step-3 .process-content li::before {
    color: #BF360C;
}

.process-card.step-4 .process-content li::before {
    color: #880E4F;
}

.process-timeline {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.process-card.step-1 .process-timeline {
    background: rgba(27, 94, 32, 0.2);
    color: #1B5E20;
    border: 1px solid #1B5E20;
}

.process-card.step-2 .process-timeline {
    background: rgba(13, 71, 161, 0.2);
    color: #0D47A1;
    border: 1px solid #0D47A1;
}

.process-card.step-3 .process-timeline {
    background: rgba(191, 54, 12, 0.2);
    color: #BF360C;
    border: 1px solid #BF360C;
}

.process-card.step-4 .process-timeline {
    background: rgba(136, 14, 79, 0.2);
    color: #880E4F;
    border: 1px solid #880E4F;
}

/* 產品 Roadmap 區域 */
.product-roadmap {
    padding: 100px 0;
    background: white;
    overflow-x: hidden;
}

.roadmap-timeline {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding: 32px 24px;
    margin: 0 -24px;
    position: relative;
    scroll-padding-left: 24px;
    -webkit-overflow-scrolling: touch;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 24px;
    right: 24px;
    height: 2px;
    background: #e5e7eb;
    transform: translateY(-50%);
    z-index: 1;
}

.roadmap-item {
    min-width: 300px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.roadmap-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.roadmap-item.current {
    background: linear-gradient(135deg, #1B5E20, #004D40);
    color: white;
    transform: scale(1.05);
}

.roadmap-item.current .roadmap-phase {
    background: rgba(255, 255, 255, 0.2);
}

.roadmap-phase {
    display: inline-block;
    padding: 8px 16px;
    background: #1B5E20;
    color: white;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.roadmap-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: inherit;
}

.roadmap-content ul {
    list-style: none;
    padding: 0;
}

.roadmap-content li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}

.roadmap-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1B5E20;
    font-weight: bold;
    font-size: 1.2rem;
}

.roadmap-item.current .roadmap-content li::before {
    color: rgba(255, 255, 255, 0.8);
}

/* 體驗 Demo 聊天區域 */
.demo-chat {
    padding: 64px 32px;
    background: #fafafa;
    position: relative;
}

.demo-container {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.chat-interface {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 2.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 600px;
    min-height: 500px;
}

.chat-header {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    min-height: 60px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    background: #e8f5e8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #2d5016;
}

.chat-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

.chat-status {
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #28a745;
    border-radius: 50%;
    display: inline-block;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.message {
    display: flex;
    gap: 12px;
    animation: fadeInUp 0.2s ease;
    margin-bottom: 8px;
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #e8f5e8;
    color: #2d5016;
}

.user-message .message-avatar {
    background: #e3f2fd;
    color: #1565c0;
}

.message-content {
    max-width: 70%;
}

.user-message .message-content {
    align-items: flex-end;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.bot-message .message-bubble {
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 4px;
}

.user-message .message-bubble {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 5px;
    padding: 0 5px;
}

.user-message .message-time {
    text-align: right;
}

.food-image {
    max-width: 200px;
    border-radius: 12px;
    margin: 8px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.nutrition-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin: 8px 0 0 0;
    border: 1px solid #e5e5e5;
    max-width: 280px;
    animation: slideInUp 0.3s ease-out;
    position: relative;
    left: 33px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.nutrition-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nutrition-icon {
    width: 32px;
    height: 32px;
    background: #e8f5e8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d5016;
    font-size: 14px;
}

.nutrition-title {
    color: #2c3e50;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    font-size: 14px;
}

.nutrition-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.nutrition-label {
    color: #6c757d;
    font-size: 11px;
    font-weight: 400;
}

.nutrition-value {
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.chat-input-area {
    padding: 16px;
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    flex-shrink: 0;
    min-height: 80px;
}

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

.upload-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #d1d5db;
    padding: 8px 13px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.upload-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.message-input {
    flex: 1;
    padding: 8px 13px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.message-input:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 1px #e5e7eb;
}

.send-btn {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 13px;
}

.send-btn:hover {
    background: #bbdefb;
}

.demo-features {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e5e5;
    flex: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 600px;
}

.demo-features h3 {
    color: #2c3e50;
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 500;
}

.feature-highlights {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
    flex: 1;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.highlight-item:hover {
    background: #e9ecef;
}

.highlight-item i {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.highlight-item:nth-child(1) i { background: #28a745; }
.highlight-item:nth-child(2) i { background: #fd7e14; }
.highlight-item:nth-child(3) i { background: #6f42c1; }
.highlight-item:nth-child(4) i { background: #007bff; }

.highlight-item span {
    color: #2c3e50;
    font-weight: 400;
    font-size: 14px;
}

.demo-examples h4 {
    color: #2c3e50;
    margin: 24px 0 12px 0;
    font-size: 14px;
    font-weight: 500;
}

.example-buttons {
    display: grid;
    gap: 12px;
    margin-top: auto;
}

.example-btn {
    background: white;
    color: #495057;
    border: 1px solid #d1d5db;
    padding: 10px 13px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.example-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.example-btn i {
    font-size: 14px;
    color: #6b7280;
}

.development-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
}

.development-notice {
    text-align: center;
    color: white;
    padding: 32px;
}

.development-notice h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #fbbf24;
}

.development-notice p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

/* 技術優勢區域 */
.tech-advantages {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fdf9 50%, #fff5e6 100%);
    position: relative;
}

.tech-advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="tech-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(27,94,32,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23tech-pattern)"/></svg>');
    opacity: 0.3;
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 32px;
}

.tech-overview {
    position: sticky;
    top: 120px;
}

.tech-diagram {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(27, 94, 32, 0.1);
}

.tech-layer {
    margin-bottom: 32px;
    padding: 24px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.tech-layer:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.input-layer {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 4px solid #0D47A1;
}

.privacy-layer {
    background: linear-gradient(135deg, #fff3e0, #ffcc02);
    border-left: 4px solid #f57c00;
    position: relative;
}

.privacy-layer::after {
    content: '🔒';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.ai-layer {
    background: linear-gradient(135deg, #1B5E20, #004D40);
    color: white;
    position: relative;
}

.ai-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="1"/></svg>');
    border-radius: 15px;
}

.output-layer {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    border-left: 4px solid #4A148C;
}

.layer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    opacity: 0.9;
}

.layer-content {
    display: flex;
    gap: 13px;
    justify-content: center;
    flex-wrap: wrap;
}

.tech-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.privacy-highlight .tech-item {
    background: rgba(245, 124, 0, 0.15);
    border: 1px solid #f57c00;
    color: #bf360c;
}

.ai-layer .tech-item {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tech-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.tech-arrow {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #1B5E20;
    margin: 16px 0;
    opacity: 0.7;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tech-feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(27, 94, 32, 0.1);
}

.tech-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: #1B5E20;
}

.tech-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin-bottom: 24px;
    position: relative;
}

.traceable-icon {
    background: linear-gradient(135deg, #1B5E20, #388E3C);
}

.privacy-icon {
    background: linear-gradient(135deg, #f57c00, #ff9800);
}

.architecture-icon {
    background: linear-gradient(135deg, #0D47A1, #004D40);
}

.tech-feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1B5E20;
    margin-bottom: 16px;
}

.tech-feature-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tech-highlight {
    background: rgba(27, 94, 32, 0.1);
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #1B5E20;
    margin-top: 16px;
}

.tech-highlight strong {
    color: #1B5E20;
    font-weight: 600;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .gallery {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .carousel-nav {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .carousel-prev {
        left: -25px;
    }
    
    .carousel-next {
        right: -25px;
    }
    
    .card-overlay {
        padding: 30px 20px 20px;
    }
    
    .card-overlay h4 {
        font-size: 1.25rem;
    }
    
    .card-overlay p {
        font-size: 0.9rem;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 16px;
    }
    
    .process-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }
    
    .process-card {
        max-width: none;
    }
    
    .roadmap-timeline {
        flex-direction: column;
        gap: 24px;
    }
    
    .roadmap-timeline::before {
        display: none;
    }
    
    .roadmap-item {
        min-width: auto;
    }
    
    .demo-container {
        flex-direction: column;
        gap: 24px;
    }
    
    .chat-interface {
        height: 500px;
    }
    
    .tech-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 20px;
    }
    
    .tech-overview {
        position: static;
    }
    
    .tech-diagram {
        padding: 24px;
    }
    
    .tech-feature-card {
        padding: 24px;
    }
    
    .tech-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

@media (min-width: 1024px) {
    .lg\:hidden { display: none; }
    .lg\:flex { display: flex; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:col-span-2 { grid-column: span 2; }
}