import { Link } from 'react-router-dom' import { useEffect, useRef, useState } from 'react' import { useQuoteModal } from '../contexts/QuoteModalContext' import './Home.css' function Home() { const { openQuoteModal } = useQuoteModal() const [currentSection, setCurrentSection] = useState(0) const sectionsRef = useRef<(HTMLElement | null)[]>([]) useEffect(() => { const handleWheel = (e: WheelEvent) => { e.preventDefault() const delta = e.deltaY > 0 ? 1 : -1 const nextSection = Math.max(0, Math.min(sectionsRef.current.length - 1, currentSection + delta)) if (nextSection !== currentSection) { setCurrentSection(nextSection) sectionsRef.current[nextSection]?.scrollIntoView({ behavior: 'smooth' }) } } window.addEventListener('wheel', handleWheel, { passive: false }) return () => window.removeEventListener('wheel', handleWheel) }, [currentSection]) useEffect(() => { const observer = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { const index = sectionsRef.current.indexOf(entry.target as HTMLElement) if (index !== -1) { setCurrentSection(index) } } }) }, { threshold: 0.5 } ) sectionsRef.current.forEach((section) => { if (section) observer.observe(section) }) return () => observer.disconnect() }, []) return (
{/* 导航指示器 */}
{[0, 1, 2, 3, 4].map((index) => (
{/* Section 1: Hero - 主视觉 */}
(sectionsRef.current[0] = el)} className="home-section hero-section" style={{ backgroundImage: "url('/pic/Home_Page.png')", backgroundPosition: 'center center', backgroundSize: 'cover', backgroundRepeat: 'no-repeat', backgroundAttachment: 'fixed' }} >

赋能生命科学风险管理

患者安全始终第一

了解更多
{/* Section 2: 解决方案 */}
(sectionsRef.current[1] = el)} className="home-section solutions-section" >

RMO风险管理解决方案

提供全流程风险评估与风险减量解决方案

📊

药物警戒

系统化的数据收集、监测和分析,识别潜在风险信号

了解更多 →
🛡️

临床保险

为临床试验提供全面的保险保障服务

了解更多 →
💼

产品保险

上市后药物安全与风险管理保障

了解更多 →
{/* Section 3: 核心能力 */}
(sectionsRef.current[2] = el)} className="home-section capabilities-section" >

核心能力

10+
可承保保司
50种以上+
不同保障方案
Top 5
创新药企业
7/15天
理赔结论时限承诺
{/* Section 4: 知识资源 */}
(sectionsRef.current[3] = el)} className="home-section knowledge-section" >

知识资源

分享我们对行业的洞见和风险资讯

法规指南

最新的法律法规与实践指南

保险知识

保险方案设计与风险管理知识

PV与保险

药物警戒与保险的深度融合

常见问题

解答您关心的问题

{/* Section 5: 联系我们 */}
(sectionsRef.current[4] = el)} className="home-section contact-section" >

联系我们

获取RMO最新资讯,第一时间了解我们的企业动态

立即联系 关于RMO
) } export default Home