import React, { useState, useEffect, useRef } from 'react'; import { ChevronDown, ArrowRight, Building2, Sun, Home, Stethoscope, Smartphone, Globe, Bot, Cpu, Layers, Users, Video, BookOpen, Briefcase, Link, Handshake, Flag, UserPlus, Mail, Phone, Star } from 'lucide-react'; // --- 1. 品牌色系與設定 --- const COLORS = { primary: '#00b2c0', // Jubo 亮綠 accent: '#d8d82b', // Jubo 檸檬黃 (強調色) darkBlue: '#26497A', // Jubo 深藍 (保留用於文字,增加閱讀性) textMain: '#1F2937', // 主要文字 textSub: '#64748B', // 次要文字 bgHover: '#F0FDFA', // 淺綠背景 (Hover用) }; // --- 2. 導覽資料結構 --- const navData = [ { id: 'products', label: '產品', featured: { title: 'Jubo 照護全方案', desc: '從機構到居家,我們提供最完整的數位轉型工具,協助您提升照護品質。', cta: '查看完整產品線', icon: Layers }, items: [ { id: 'p1', icon: Building2, title: '住宿型照護系統', desc: '24小時機構的數位核心,整合護理紀錄與行政評鑑。' }, { id: 'p2', icon: Sun, title: '日照型照護系統', desc: '專為日間照顧設計,優化排程管理與家屬聯繫。' }, { id: 'p3', icon: Home, title: '居服照護系統', desc: '居家服務派遣神器,精準核銷與人員打卡管理。' }, { id: 'p4', icon: Stethoscope, title: '智慧照護推車', desc: 'Smart Cart 生命徵象自動上傳,告別紙筆抄寫。' }, { id: 'p5', icon: Smartphone, title: 'Jubo健康APP', desc: '連結機構與家庭,讓子女隨時掌握長輩健康狀況。' }, { id: 'p6', icon: Globe, title: '智齡照顧網', desc: '全台最大長照知識庫,提供專業照護資源搜尋。' }, ] }, { id: 'solutions', label: '解決方案', featured: { title: 'AI 賦能照護', desc: '體驗 N-Copilot 帶來的革命性效率,讓 AI 成為護理師的最佳助手。', cta: '了解 AI 解決方案', icon: Bot }, items: [ { id: 's1', icon: Bot, title: 'N-Copilot AI 夥伴', desc: '護理語音轉文字、自動生成摘要,釋放照護雙手。' }, { id: 's2', icon: Cpu, title: '智慧推車 IoT 生態', desc: '串聯百種藍牙醫材,打造無縫數據物聯網環境。' }, { id: 's3', icon: Layers, title: '三大情境模組', desc: '針對住宿、日照、居服不同場域量身打造的解決方案。' }, ] }, { id: 'resources', label: '資源', // 修改:資源中心 -> 資源 items: [ { id: 'r1', icon: Users, title: '三三分享會', desc: '定期產業交流講座,激盪長照創新火花。' }, { id: 'r2', icon: Video, title: '活動花絮', desc: '精彩活動紀錄與線上研討會回顧影片。' }, { id: 'r3', icon: BookOpen, title: '卓越教育平台', desc: '系統操作教學與長照專業積分認證課程。' }, { id: 'r4', icon: Briefcase, title: '客戶案例', desc: '聽聽全台 1,000+ 家機構的成功轉型故事。' }, { id: 'r5', icon: Link, title: '媒合平台', desc: '精準連結照護需求者與優質服務提供單位。' }, ] }, { id: 'partners', label: '夥伴', items: [ { id: 'pt1', icon: Cpu, title: 'IoT 硬體夥伴', desc: '與頂尖醫材廠商合作,提供多元量測設備選擇。' }, { id: 'pt2', icon: Handshake, title: '專業策略合作', desc: '跨領域結盟,共同打造高齡友善照護生態圈。' }, ] }, { id: 'company', label: '公司', items: [ { id: 'c1', icon: Flag, title: '品牌故事', desc: '以科技溫暖照護,看見 Jubo 的願景與使命。' }, { id: 'c2', icon: Users, title: '團隊介紹', desc: '結合醫療、資料科學與設計的跨領域專家團隊。' }, { id: 'c3', icon: UserPlus, title: '人才招募', desc: '加入我們,一起用科技改變高齡產業的未來。' }, ] } // 移除:聯絡我們 (改為右上角按鈕) ]; // --- 3. 子組件 --- // Logo (使用 Google Drive 直連圖片) const JuboLogo = () => ( {/* 您的 Jubo Logo */} Jubo Health Logo ); // Mega Menu Card Item const MenuItemCard = ({ item }) => (

{item.title}

{item.desc}

); // Featured Section const FeaturedCard = ({ content }) => { if (!content) return (
熱門推薦

預約專業顧問諮詢

不知道如何開始數位轉型?我們的專家團隊隨時準備為您提供量身打造的建議。

); return (
FEATURED

{content.title}

{content.desc}

{content.cta}
); }; // Desktop Mega Menu Content const DesktopMegaMenu = ({ section, isVisible }) => { if (!isVisible) return null; return (
{section.items.map((item) => ( ))}
); }; // --- 4. 主應用程式 --- export default function Header() { const [activeDropdown, setActiveDropdown] = useState(null); const [scrolled, setScrolled] = useState(false); const headerRef = useRef(null); useEffect(() => { const handleScroll = () => setScrolled(window.scrollY > 20); window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll); }, []); useEffect(() => { const handleClickOutside = (event) => { if (headerRef.current && !headerRef.current.contains(event.target)) { setActiveDropdown(null); } }; document.addEventListener('mousedown', handleClickOutside); return () => document.removeEventListener('mousedown', handleClickOutside); }, []); return (
setActiveDropdown(null)} >
{/* Left: Logo */}
{/* Middle: Desktop Nav */} {/* Right: Desktop Actions */}
{navData.map(section => ( ))}
{/* Hero Section */}
2025 全新改版上線

以科技溫暖照護
連結每個需要的地方

Jubo Health 提供全方位的智慧照護解決方案,協助機構數位轉型,讓照護工作更有效率,讓關懷更有溫度。

); }