index.vue 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535
  1. <!--
  2. * @Author: LiZhiWei
  3. * @LastEditors: LiZhiWei
  4. * @LastEditTime: 2026-01-20 10:16:16
  5. * @Description:
  6. -->
  7. <template>
  8. <div class="landing">
  9. <section class="hero">
  10. <div class="hero-content">
  11. <div class="hero-text">
  12. <div class="hero-title">智慧社区整体解决方案</div>
  13. <div class="hero-subtitle">
  14. 绘家科技助力物业管理数字化转型,提升服务品质与业主满意度。
  15. </div>
  16. <div class="hero-metrics">
  17. <div class="metric">
  18. <div class="metric-value">300+</div>
  19. <div class="metric-label">服务客户</div>
  20. </div>
  21. <div class="metric">
  22. <div class="metric-value">800+</div>
  23. <div class="metric-label">管理小区</div>
  24. </div>
  25. <div class="metric">
  26. <div class="metric-value">50w+</div>
  27. <div class="metric-label">管理房屋</div>
  28. </div>
  29. </div>
  30. <div class="hero-actions">
  31. <button class="btn-primary hero-btn-primary">查看方案</button>
  32. <button class="hero-btn-outline" @click="openConsultation">免费咨询</button>
  33. </div>
  34. </div>
  35. </div>
  36. </section>
  37. <section
  38. id="solution"
  39. ref="solutionRef"
  40. class="solution transition-all duration-1000 ease-out"
  41. :class="[isSolutionVisible ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-100px']"
  42. >
  43. <div class="solution-header">
  44. <div class="solution-title">物业管理正面临这些挑战</div>
  45. <div class="solution-desc">
  46. 传统物业管理模式效率低下、成本高昂、服务体验差,急需数字化转型
  47. </div>
  48. </div>
  49. <div ref="solutionListRef" class="solution-list" @scroll="handleSolutionScroll">
  50. <div
  51. v-for="(solution, index) in solutions"
  52. :key="solution.id"
  53. class="solution-card"
  54. :class="[
  55. index === activeIndex
  56. ? 'active bg-[linear-gradient(0deg,#E5E9F5_0%,#EFF2FB_100%)]'
  57. : 'bg-[linear-gradient(180deg,#E8F6FD_50.48%,#A5D7FD_100%)] lt-sm:bg-[linear-gradient(0deg,#E5E9F5_0%,#EFF2FB_100%)]',
  58. ]"
  59. @mouseenter="activeIndex = index"
  60. >
  61. <!-- Hover State Content -->
  62. <div
  63. class="solution-card-hover"
  64. :class="[
  65. index === activeIndex
  66. ? 'opacity-100 translate-y-0 duration-500'
  67. : 'opacity-0 translate-y-20px pointer-events-none duration-300 mobile-show',
  68. ]"
  69. >
  70. <div
  71. class="solution-card-title pf-sc-semibold text-overflow"
  72. :class="[
  73. index === activeIndex
  74. ? 'opacity-100 translate-y-0 delay-100 duration-500'
  75. : 'opacity-0 translate-y-20px delay-0 duration-200',
  76. ]"
  77. >
  78. <span class="lt-sm:hidden">{{ solution.hoverTitle }}</span>
  79. <span>{{ solution.title }}解决方案</span>
  80. </div>
  81. <div
  82. class="solution-card-desc pf-sc-regular"
  83. :class="[
  84. index === activeIndex
  85. ? 'opacity-100 translate-y-0 delay-150 duration-500'
  86. : 'opacity-0 translate-y-20px delay-0 duration-200',
  87. ]"
  88. >
  89. <span>{{ solution.hoverDesc }}</span>
  90. </div>
  91. <div
  92. class="solution-card-items"
  93. :class="[
  94. index === activeIndex
  95. ? 'opacity-100 translate-y-0 delay-400 duration-700'
  96. : 'opacity-0 translate-y-20px delay-0 duration-300',
  97. ]"
  98. >
  99. <div v-for="item in solution.hoverItems" :key="item.title" class="solution-card-item">
  100. <div class="solution-card-item-header">
  101. <i class="i-custom-check-one solution-card-item-icon"></i>
  102. <div class="solution-card-item-content">
  103. <span class="text-#091221 pf-sc-semibold">
  104. {{ item.title }}
  105. </span>
  106. <span class="text-#091221/70 pf-sc-regular line-clamp-1">
  107. {{ item.itemDesc }}
  108. </span>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. <button
  114. class="solution-card-btn pf-sc-regular"
  115. :class="[
  116. index === activeIndex
  117. ? 'opacity-100 translate-y-0 delay-500 duration-700'
  118. : 'opacity-0 translate-y-20px delay-0 duration-200',
  119. ]"
  120. @click="openConsultation"
  121. >
  122. <span class="font-s-16px lt-sm:font-s-26px">立即咨询</span>
  123. <i class="i-custom-arrow-right wh-18px lt-sm:wh-28px"></i>
  124. </button>
  125. <img
  126. :src="solution.hoverImg"
  127. alt=""
  128. class="solution-card-img"
  129. :class="[
  130. index === activeIndex
  131. ? 'opacity-100 scale-100 delay-200 duration-500'
  132. : 'opacity-0 scale-50 delay-0 duration-500',
  133. ]"
  134. />
  135. </div>
  136. <!-- Normal State Content -->
  137. <div
  138. class="solution-card-normal"
  139. :class="[
  140. index === activeIndex
  141. ? 'opacity-0 pointer-events-none duration-300'
  142. : 'opacity-100 duration-500',
  143. ]"
  144. >
  145. <div
  146. class="solution-card-icon-wrapper"
  147. :class="[
  148. index === activeIndex
  149. ? 'scale-150 opacity-0 delay-0 duration-300'
  150. : 'scale-100 opacity-100 delay-0 duration-500',
  151. ]"
  152. >
  153. <img :src="solution.img" alt="" class="wh-35px" />
  154. </div>
  155. <div
  156. class="solution-card-normal-title pf-sc-semibold"
  157. :class="[
  158. index === activeIndex
  159. ? 'opacity-0 translate-y-10px delay-0 duration-200'
  160. : 'opacity-100 translate-y-0 delay-100 duration-500',
  161. ]"
  162. >
  163. {{ solution.title }}
  164. </div>
  165. <div
  166. class="solution-card-normal-desc pf-sc-regular"
  167. :class="[
  168. index === activeIndex
  169. ? 'opacity-0 translate-y-10px delay-0 duration-200'
  170. : 'opacity-100 translate-y-0 delay-150 duration-500',
  171. ]"
  172. >
  173. {{ solution.desc }}
  174. </div>
  175. <i
  176. class="i-custom-circle-right-up solution-card-normal-arrow"
  177. :class="[
  178. index === activeIndex
  179. ? 'opacity-0 scale-50 delay-0 duration-200'
  180. : 'opacity-100 scale-100 delay-100 duration-500',
  181. ]"
  182. ></i>
  183. </div>
  184. </div>
  185. </div>
  186. <div class="solution-dots lt-sm:flex hidden">
  187. <div
  188. v-for="(_, index) in solutions"
  189. :key="index"
  190. class="dot"
  191. :class="{ active: index === activeIndex }"
  192. @click="scrollToSolution(index)"
  193. ></div>
  194. </div>
  195. </section>
  196. <section
  197. id="ability"
  198. ref="abilityRef"
  199. class="ability transition-all duration-1000 ease-out"
  200. :class="[isAbilityVisible ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-100px']"
  201. >
  202. <div class="ability-title pf-sc-semibold">一体化智慧解决方案</div>
  203. <div class="ability-desc pf-sc-regular">
  204. 绘家科技提供从软件到硬件的完整解决方案,覆盖物业管理的全场景需求
  205. </div>
  206. <div class="ability-content">
  207. <div class="ability-tabs">
  208. <!-- 滑块背景 -->
  209. <div class="ability-tab-indicator" :style="abilityTabIndicatorStyle"></div>
  210. <div
  211. v-for="tab in abilityTabs"
  212. :key="tab.title"
  213. class="ability-tab-item"
  214. :class="[
  215. activeAbilityTab.id === tab.id ? 'text-white' : 'text-#091221 hover:text-#0F67F8',
  216. ]"
  217. @click="handleAbilityTabClick(tab)"
  218. >
  219. {{ tab.title }}
  220. </div>
  221. </div>
  222. <div class="tab-content">
  223. <Transition name="tab-fade" mode="out-in">
  224. <div :key="activeAbilityTab.id" class="ability-grid">
  225. <div
  226. v-for="ability in abilities[activeAbilityTab.id]"
  227. :key="ability.title"
  228. class="ability-card"
  229. >
  230. <i :class="ability.icon" class="ability-card-icon"></i>
  231. <div class="ability-card-title pf-sc-semibold">
  232. {{ ability.title }}
  233. </div>
  234. <div class="ability-card-desc pf-sc-regular">
  235. {{ ability.desc }}
  236. </div>
  237. <div class="ability-card-link">
  238. 查看详情
  239. <i
  240. class="i-custom-arrow-right-c color-#0F67F8 wh-18px lt-sm:wh-28px transition-transform group-hover:translate-x-4px"
  241. ></i>
  242. </div>
  243. </div>
  244. </div>
  245. </Transition>
  246. </div>
  247. </div>
  248. </section>
  249. <section
  250. id="cases"
  251. ref="casesRef"
  252. class="cases transition-all duration-1000 ease-out"
  253. :class="[isCasesVisible ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-100px']"
  254. >
  255. <div class="cases-header">
  256. <div class="cases-title pf-sc-semibold">知识产权和案例</div>
  257. <div class="cases-desc pf-sc-regular">
  258. 绘家科技凭借强大的技术实力和丰富的实践经验,为客户提供卓越的智慧社区解决方案
  259. </div>
  260. </div>
  261. <div ref="casesListRef" class="cases-list" @scroll="handleCaseScroll">
  262. <div
  263. v-for="(caseItem, index) in cases"
  264. :key="caseItem.title"
  265. class="cases-card"
  266. :class="{ active: index === activeCaseIndex }"
  267. >
  268. <div class="flex flex-col h-full">
  269. <img :src="caseItem.img" class="cases-card-img" alt="" />
  270. <div class="cases-card-title pf-sc-semibold">
  271. {{ caseItem.title }}
  272. </div>
  273. <div class="cases-card-desc pf-sc-regular">
  274. {{ caseItem.desc }}
  275. </div>
  276. <div class="cases-card-points">
  277. <div v-for="point in caseItem.points" :key="point.title" class="cases-card-point">
  278. <i class="i-custom-check-one cases-card-point-icon"></i>
  279. <div class="cases-card-point-title pf-sc-semibold">
  280. {{ point.title }}
  281. </div>
  282. <div class="cases-card-point-desc pf-sc-regular">
  283. {{ point.itemDesc }}
  284. </div>
  285. </div>
  286. </div>
  287. <button class="cases-btn">
  288. {{ caseItem.btnText }}
  289. <i class="i-custom-arrow-right-c cases-card-btn-icon"></i>
  290. </button>
  291. </div>
  292. </div>
  293. </div>
  294. <div class="cases-dots lt-sm:flex hidden">
  295. <div
  296. v-for="(_, index) in cases"
  297. :key="index"
  298. class="dot"
  299. :class="{ active: index === activeCaseIndex }"
  300. @click="scrollToCase(index)"
  301. ></div>
  302. </div>
  303. </section>
  304. <section
  305. id="partnership"
  306. ref="partnershipRef"
  307. class="partnership transition-all duration-1000 ease-out"
  308. :class="[isPartnershipVisible ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-100px']"
  309. >
  310. <div class="partnership-header">
  311. <div class="partnership-line-left"></div>
  312. <div class="partnership-title pf-sc-regular">与合作伙伴携手,深入产业共创价值</div>
  313. <div class="partnership-line-right"></div>
  314. </div>
  315. <div class="partnership-content">
  316. <!-- 第一行 -->
  317. <InspiraMarquee class="partnership-marquee-row1">
  318. <div v-for="partner in partnersRow1" :key="partner" class="partner-item">
  319. <img :src="partner" alt="" class="wh-full object-contain" />
  320. </div>
  321. </InspiraMarquee>
  322. <!-- 第二行 -->
  323. <InspiraMarquee reverse class="partnership-marquee-row2">
  324. <div v-for="partner in partnersRow2" :key="partner" class="partner-item">
  325. <img :src="partner" alt="" class="wh-full object-contain" />
  326. </div>
  327. </InspiraMarquee>
  328. <!-- 左右渐变遮罩 -->
  329. <div class="partnership-mask-left"></div>
  330. <div class="partnership-mask-right"></div>
  331. </div>
  332. </section>
  333. <section id="history" ref="timelineRef" class="history">
  334. <div
  335. class="history-container"
  336. :class="[isTimelineVisible ? 'translate-y-0 opacity-100' : 'translate-y-40px opacity-0']"
  337. >
  338. <div class="history-title pf-sc-semibold">发展历程</div>
  339. <div class="history-subtitle pf-sc-regular">从探索到引领,绘家科技每一步都坚实有力</div>
  340. <!-- 上部内容区 -->
  341. <div class="history-top">
  342. <!-- 左侧大年份 -->
  343. <div class="history-year-wrapper">
  344. <Transition name="year-flow">
  345. <div :key="currentYearData?.year" class="history-year-content">
  346. <span class="history-year-text pf-sc-bold">
  347. {{ currentYearData?.year }}
  348. </span>
  349. </div>
  350. </Transition>
  351. </div>
  352. <!-- 右侧事件描述 -->
  353. <div class="history-event-wrapper">
  354. <Transition name="event-fade" mode="out-in">
  355. <div
  356. :key="currentYearData?.year + '-' + currentEventIndex"
  357. class="history-event-content"
  358. >
  359. <div class="history-event-header">
  360. <span class="history-event-month pf-sc-semibold">
  361. {{ currentEventData?.month }}
  362. </span>
  363. <!-- 右上方小切换 -->
  364. <div
  365. v-if="(currentYearData?.events?.length ?? 0) > 1"
  366. class="history-event-controls"
  367. >
  368. <i
  369. class="i-custom-arrow-circle-left history-event-arrow"
  370. :class="[
  371. currentEventIndex === 0
  372. ? 'opacity-30 cursor-not-allowed'
  373. : 'cursor-pointer hover:i-custom-arrow-circle-left-active hover:scale-110 active:scale-95',
  374. ]"
  375. @click="prevEvent"
  376. ></i>
  377. <i
  378. class="i-custom-arrow-circle-right history-event-arrow"
  379. :class="[
  380. currentEventIndex === (currentYearData?.events?.length ?? 0) - 1
  381. ? 'opacity-30 cursor-not-allowed'
  382. : 'cursor-pointer hover:i-custom-arrow-circle-right-active hover:scale-110 active:scale-95',
  383. ]"
  384. @click="nextEvent"
  385. ></i>
  386. </div>
  387. </div>
  388. <div class="history-event-line"></div>
  389. <div class="history-event-desc pf-sc-regular">
  390. {{ currentEventData?.content }}
  391. </div>
  392. </div>
  393. </Transition>
  394. </div>
  395. </div>
  396. <!-- 时间轴 -->
  397. <div class="history-timeline lt-sm:hidden">
  398. <!-- 轨道容器 -->
  399. <div class="history-timeline-track">
  400. <!-- 进度条:从轨道最左侧开始到当前点 -->
  401. <div class="history-timeline-progress" :style="progressStyle"></div>
  402. <!-- 内部轨道(用于定位时间点) -->
  403. <div class="history-timeline-nodes">
  404. <!-- 时间点列表 -->
  405. <div
  406. v-for="(item, index) in historyYears"
  407. :key="item.year"
  408. class="history-timeline-node"
  409. :style="getTimelineNodePositionStyle(index)"
  410. @click="selectYear(index)"
  411. >
  412. <!-- 圆点 -->
  413. <div
  414. class="history-timeline-dot"
  415. :class="getTimelineDotClasses(index)"
  416. :style="getTimelineDotStyle(index)"
  417. ></div>
  418. <!-- 年份文字 -->
  419. <span class="history-timeline-year" :class="getTimelineYearTextClasses(index)">
  420. {{ item.year }}
  421. </span>
  422. </div>
  423. </div>
  424. </div>
  425. </div>
  426. <!-- Mobile Timeline -->
  427. <div class="history-timeline-mobile lt-sm:flex hidden">
  428. <i
  429. class="i-custom-button-previous-mobile history-mobile-btn"
  430. :class="[
  431. currentYearIndex === 0
  432. ? 'cursor-not-allowed i-custom-button-previous-mobile-disabled'
  433. : 'active:i-custom-button-previous-mobile-active',
  434. ]"
  435. @click="prevYear"
  436. ></i>
  437. <div class="history-mobile-track-container">
  438. <div class="history-mobile-track-line"></div>
  439. <div class="history-mobile-nodes">
  440. <div
  441. v-for="(yearIndex, i) in mobileTimelineIndices"
  442. :key="i"
  443. class="history-mobile-node"
  444. :class="{ invisible: yearIndex < 0 || yearIndex >= historyYears.length }"
  445. @click="yearIndex >= 0 && yearIndex < historyYears.length && selectYear(yearIndex)"
  446. >
  447. <div
  448. class="history-mobile-dot"
  449. :class="{ active: yearIndex === currentYearIndex }"
  450. ></div>
  451. <div
  452. class="history-mobile-year"
  453. :class="{ active: yearIndex === currentYearIndex }"
  454. >
  455. {{ historyYears[yearIndex]?.year }}
  456. </div>
  457. </div>
  458. </div>
  459. </div>
  460. <i
  461. class="i-custom-button-next-mobile history-mobile-btn"
  462. :class="[
  463. currentYearIndex === historyYears.length - 1
  464. ? 'cursor-not-allowed i-custom-button-next-mobile-disabled'
  465. : 'active:i-custom-button-next-mobile-active',
  466. ]"
  467. @click="nextYear"
  468. ></i>
  469. </div>
  470. <!-- 底部大切换 -->
  471. <div class="history-nav">
  472. <i
  473. class="i-custom-button-previous history-nav-btn"
  474. :class="{
  475. 'opacity-30 cursor-not-allowed hover:i-custom-button-previous!':
  476. currentYearIndex === 0,
  477. }"
  478. @click="prevYear"
  479. ></i>
  480. <i
  481. class="i-custom-button-next history-nav-btn"
  482. :class="{
  483. 'opacity-30 cursor-not-allowed hover:i-custom-button-next!':
  484. currentYearIndex === historyYears.length - 1,
  485. }"
  486. @click="nextYear"
  487. ></i>
  488. </div>
  489. </div>
  490. </section>
  491. <section class="cta">
  492. <div class="cta-title pf-sc-semibold">开启您的智慧社区转型之旅</div>
  493. <div class="cta-desc pf-sc-light">
  494. 提交您的需求,我们的专属顾问将在24小时内为您提供定制化解决方案
  495. </div>
  496. <button class="cta-btn pf-sc-regular" @click="openConsultation">
  497. <span class="cta-btn-text">立即咨询</span>
  498. <i class="i-custom-arrow-right cta-btn-icon"></i>
  499. </button>
  500. </section>
  501. </div>
  502. </template>
  503. <script setup lang="ts">
  504. import {
  505. abilityTabs,
  506. solutions,
  507. abilities,
  508. cases,
  509. partnersRow1,
  510. partnersRow2,
  511. historyYears,
  512. } from '@/constants/common'
  513. const { openConsultation } = useConsultation()
  514. const activeIndex = ref(0)
  515. const solutionListRef = ref<HTMLElement | null>(null)
  516. const handleSolutionScroll = (e: Event) => {
  517. const el = e.target as HTMLElement
  518. const scrollLeft = el.scrollLeft
  519. const width = el.offsetWidth
  520. // 计算当前处于中间的卡片索引
  521. // 卡片宽度为 85%,加上 gap 16px
  522. const cardWidth = width * 0.85
  523. const gap = 16
  524. const newIndex = Math.round(scrollLeft / (cardWidth + gap))
  525. if (newIndex !== activeIndex.value) {
  526. activeIndex.value = newIndex
  527. }
  528. }
  529. const scrollToSolution = (index: number) => {
  530. if (!solutionListRef.value) return
  531. const width = solutionListRef.value.offsetWidth
  532. const cardWidth = width * 0.85
  533. const gap = 16
  534. solutionListRef.value.scrollTo({
  535. left: index * (cardWidth + gap),
  536. behavior: 'smooth',
  537. })
  538. }
  539. const activeCaseIndex = ref(0)
  540. const casesListRef = ref<HTMLElement | null>(null)
  541. const handleCaseScroll = (e: Event) => {
  542. const el = e.target as HTMLElement
  543. const scrollLeft = el.scrollLeft
  544. const width = el.offsetWidth
  545. const cardWidth = width * 0.9
  546. const gap = 16
  547. const newIndex = Math.round(scrollLeft / (cardWidth + gap))
  548. if (newIndex !== activeCaseIndex.value) {
  549. activeCaseIndex.value = newIndex
  550. }
  551. }
  552. const scrollToCase = (index: number) => {
  553. if (!casesListRef.value) return
  554. const width = casesListRef.value.offsetWidth
  555. const cardWidth = width * 0.9
  556. const gap = 16
  557. casesListRef.value.scrollTo({
  558. left: index * (cardWidth + gap),
  559. behavior: 'smooth',
  560. })
  561. }
  562. const solutionRef = ref<HTMLElement | null>(null)
  563. const abilityRef = ref<HTMLElement | null>(null)
  564. const partnershipRef = ref<HTMLElement | null>(null)
  565. const casesRef = ref<HTMLElement | null>(null)
  566. const timelineRef = ref<HTMLElement | null>(null)
  567. const isSolutionVisible = ref(false)
  568. const isAbilityVisible = ref(false)
  569. const isPartnershipVisible = ref(false)
  570. const isCasesVisible = ref(false)
  571. const isTimelineVisible = ref(false)
  572. // 发展历程状态
  573. const currentYearIndex = ref(historyYears.length - 1)
  574. const currentEventIndex = ref(0)
  575. const currentYearData = computed(() => {
  576. const data = historyYears[currentYearIndex.value]
  577. return data || historyYears[0]
  578. })
  579. const currentEventData = computed(() => {
  580. const events = currentYearData.value?.events || []
  581. return events[currentEventIndex.value] || events[0]
  582. })
  583. const mobileTimelineIndices = computed(() => {
  584. const total = historyYears.length
  585. if (total <= 0) return []
  586. // Always return 3 positions centered on currentYearIndex
  587. const prev = currentYearIndex.value - 1
  588. const curr = currentYearIndex.value
  589. const next = currentYearIndex.value + 1
  590. return [prev, curr, next]
  591. })
  592. const progressStyle = computed(() => {
  593. const totalSteps = Math.max(historyYears.length - 1, 1)
  594. if (currentYearIndex.value === totalSteps) {
  595. return {
  596. width: '100%',
  597. }
  598. }
  599. const percentage = currentYearIndex.value / totalSteps
  600. return {
  601. width: `calc(60px + ${percentage} * (100% - 120px))`,
  602. }
  603. })
  604. const nextYear = () => {
  605. if (currentYearIndex.value < historyYears.length - 1) {
  606. currentYearIndex.value++
  607. currentEventIndex.value = 0
  608. }
  609. }
  610. const prevYear = () => {
  611. if (currentYearIndex.value > 0) {
  612. currentYearIndex.value--
  613. currentEventIndex.value = 0
  614. }
  615. }
  616. const nextEvent = () => {
  617. const events = currentYearData.value?.events || []
  618. if (currentEventIndex.value < events.length - 1) {
  619. currentEventIndex.value++
  620. }
  621. }
  622. const prevEvent = () => {
  623. if (currentEventIndex.value > 0) {
  624. currentEventIndex.value--
  625. }
  626. }
  627. const selectYear = (index: number) => {
  628. currentYearIndex.value = index
  629. currentEventIndex.value = 0
  630. }
  631. const activeAbilityTab = ref<AbilityTab>(abilityTabs[0] as AbilityTab)
  632. const abilityTabIndicatorStyle = computed(() => {
  633. const activeTabIndex = abilityTabs.findIndex((tab) => tab.id === activeAbilityTab.value.id)
  634. return {
  635. transform: `translateX(${activeTabIndex * 100}%)`,
  636. }
  637. })
  638. const handleAbilityTabClick = (tab: AbilityTab) => {
  639. activeAbilityTab.value = tab
  640. }
  641. onMounted(() => {
  642. const revealSections = [
  643. { elRef: solutionRef, visible: isSolutionVisible },
  644. { elRef: abilityRef, visible: isAbilityVisible },
  645. { elRef: partnershipRef, visible: isPartnershipVisible },
  646. { elRef: casesRef, visible: isCasesVisible },
  647. { elRef: timelineRef, visible: isTimelineVisible },
  648. ]
  649. const observer = new IntersectionObserver(
  650. (entries) => {
  651. entries.forEach((entry) => {
  652. if (entry.isIntersecting) {
  653. const matched = revealSections.find((item) => item.elRef.value === entry.target)
  654. if (matched) {
  655. matched.visible.value = true
  656. }
  657. observer.unobserve(entry.target)
  658. }
  659. })
  660. },
  661. { threshold: 0.1 }
  662. )
  663. revealSections.forEach(({ elRef }) => {
  664. if (elRef.value) {
  665. observer.observe(elRef.value)
  666. }
  667. })
  668. })
  669. const getTimelineNodePositionStyle = (index: number) => {
  670. return { left: `${(index / (historyYears.length - 1)) * 100}%` }
  671. }
  672. const getTimelineDotClasses = (index: number) => {
  673. return [
  674. index < currentYearIndex.value
  675. ? 'wh-13px'
  676. : 'wh-16px border-#0F67F8 group-hover:border-[#2563EB] border-1',
  677. index === currentYearIndex.value
  678. ? 'wh-16px scale-150 outline-6px outline-#CEE0FF outline-solid border-none'
  679. : '',
  680. ]
  681. }
  682. const getTimelineDotStyle = (index: number) => {
  683. if (index === currentYearIndex.value) {
  684. return { background: 'linear-gradient(90deg, #779EFF 0%, #0A50FF 100%)' }
  685. }
  686. if (index < currentYearIndex.value) {
  687. return { background: '#FFFFFF' }
  688. }
  689. return {}
  690. }
  691. const getTimelineYearTextClasses = (index: number) => {
  692. return [
  693. index === currentYearIndex.value
  694. ? 'text-#2563EB font-bold pf-sc-bold scale-110'
  695. : 'text-#94A3B8 group-hover:text-[#64748B]',
  696. ]
  697. }
  698. </script>
  699. <style scoped lang="scss">
  700. .landing {
  701. @apply lt-sm:pt-120px;
  702. color: var(--hj-text);
  703. background: var(--hj-bg);
  704. }
  705. .hero {
  706. @apply h-680px relative overflow-hidden;
  707. @apply lt-sm:w-full lt-sm:h-auto lt-sm:aspect-[750/880];
  708. background-size: cover;
  709. background-position: center;
  710. background-image: url('@/assets/images/banner.png');
  711. @screen lt-sm {
  712. @apply w-full h-auto;
  713. aspect-ratio: 750/880;
  714. background-image: url('@/assets/images/banner-mobile.png');
  715. background-size: 100% 100%;
  716. background-repeat: no-repeat;
  717. background-position: center;
  718. }
  719. .hero-content {
  720. @extend %landing-container;
  721. @apply flex items-center pb-48px pt-200px;
  722. @apply lt-sm:pt-80px;
  723. }
  724. .hero-text {
  725. @apply text-left w-full;
  726. @apply lt-sm:text-center;
  727. }
  728. .hero-metrics {
  729. @apply mt-35px flex items-center gap-48px;
  730. @apply lt-sm:justify-center lt-sm:mt-20px lt-sm:gap-76px;
  731. }
  732. .hero-title {
  733. @apply font-s-48px font-semibold text-#000000;
  734. @apply lt-sm:font-s-58px;
  735. }
  736. .hero-subtitle {
  737. @apply font-s-18px text-#091221/70;
  738. @apply lt-sm:mt-12px lt-sm:font-s-26px lt-sm:px-25px;
  739. @apply lt-xs:px-0;
  740. }
  741. .hero-actions {
  742. @apply mt-35px flex items-center gap-16px;
  743. @apply lt-sm:justify-center lt-sm:absolute lt-sm:bottom-80px lt-sm:left-1/2 lt-sm:-translate-x-1/2;
  744. }
  745. .hero-btn-primary {
  746. @apply w-127px h-56px rounded-8px text-white font-s-18px pf-sc-semibold;
  747. @apply lt-sm:w-168px lt-sm:h-71px lt-sm:font-s-24px lt-sm:rounded-8px;
  748. }
  749. .hero-btn-outline {
  750. @apply w-127px h-56px bg-white border-#0F67F8 border-1 rounded-8px hover:opacity-80 font-s-18px font-semibold text-#0F67F8;
  751. @apply lt-sm:w-168px lt-sm:h-71px lt-sm:font-s-24px lt-sm:rounded-8px;
  752. }
  753. .metric {
  754. @apply flex items-start flex-col;
  755. @apply lt-sm:items-center;
  756. .metric-value {
  757. @apply font-s-32px font-semibold text-#0F67F8;
  758. @apply lt-sm:font-s-52px;
  759. }
  760. .metric-label {
  761. @apply font-s-14px text-#384146;
  762. @apply lt-sm:font-s-24px;
  763. }
  764. }
  765. }
  766. .solution {
  767. @extend %landing-container;
  768. @apply py-120px lt-sm:py-120px lt-sm:px-0;
  769. }
  770. .solution-header {
  771. @apply text-center mb-45px;
  772. }
  773. .solution-title {
  774. @apply font-s-36px font-semibold text-#000000 mb-4px lh-60px;
  775. @apply lt-sm:font-s-48px lt-sm:lh-60px;
  776. }
  777. .solution-desc {
  778. @apply font-s-16px text-#091221/70 lh-30px;
  779. @apply lt-sm:font-s-24px lt-sm:px-110px lt-sm:mt-16px lt-sm:lh-40px;
  780. }
  781. .solution-list {
  782. @apply flex h-365px w-full gap-24px;
  783. @apply lt-sm:h-auto lt-sm:gap-16px lt-sm:overflow-x-auto lt-sm:overflow-y-hidden lt-sm:px-24px;
  784. @apply lt-sm:[scroll-snap-type:x_mandatory] lt-sm:[scrollbar-width:none];
  785. &::-webkit-scrollbar {
  786. @apply lt-sm:hidden;
  787. }
  788. }
  789. .solution-card {
  790. position: relative;
  791. display: flex;
  792. height: 100%;
  793. cursor: pointer;
  794. overflow: hidden;
  795. border-radius: 24px;
  796. will-change: transform, opacity;
  797. transition:
  798. transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1),
  799. opacity 600ms ease,
  800. flex 600ms ease-in-out,
  801. background-color 600ms ease-in-out;
  802. @media (min-width: 768px) {
  803. &.active {
  804. flex: 1 1 0%;
  805. }
  806. &:not(.active) {
  807. flex: 0 0 220px;
  808. }
  809. }
  810. @apply lt-sm:flex-[0_0_90%] lt-sm:min-h-750px lt-sm:w-630px;
  811. @apply lt-sm:[scroll-snap-align:center];
  812. &:not(.active) {
  813. @apply lt-sm:scale-96 lt-sm:opacity-50;
  814. }
  815. &.active {
  816. @apply lt-sm:scale-100 lt-sm:opacity-100;
  817. }
  818. &:first-child {
  819. @apply lt-sm:ml-36px;
  820. }
  821. &:last-child {
  822. @apply lt-sm:mr-36px;
  823. }
  824. }
  825. .solution-card-hover {
  826. @apply h-full w-full pt-40px px-48px absolute left-0 top-0 transition-all ease-in-out;
  827. @apply lt-sm:relative lt-sm:pt-40px lt-sm:px-36px lt-sm:pb-32px lt-sm:opacity-100 lt-sm:translate-y-0 lt-sm:pointer-events-auto;
  828. &.mobile-show {
  829. @apply lt-sm:opacity-100 lt-sm:translate-y-0 lt-sm:pointer-events-auto;
  830. }
  831. }
  832. .solution-card-title {
  833. @apply font-s-22px text-#000000 transition-all;
  834. @apply lt-sm:font-s-32px;
  835. }
  836. .solution-card-desc {
  837. @apply font-s-14px lh-24px mt-8px text-#091221/70 pf-sc-regular text-overflow transition-all;
  838. @apply lt-sm:font-s-24px lt-sm:mt-8px lt-sm:lh-normal;
  839. }
  840. .solution-card-items {
  841. @apply mt-24px flex flex-col gap-8px transition-all;
  842. @apply lt-sm:mt-48px;
  843. }
  844. .solution-card-item {
  845. @apply flex flex-col;
  846. }
  847. .solution-card-item-header {
  848. @apply flex gap-8px items-center font-s-14px;
  849. @apply lt-sm:font-s-24px lt-sm:gap-12px;
  850. }
  851. .solution-card-item-icon {
  852. @apply wh-18px;
  853. @apply lt-sm:wh-32px;
  854. }
  855. .solution-card-item-content {
  856. @apply flex items-center gap-8px;
  857. @apply lt-sm:flex-col lt-sm:items-start lt-sm:gap-8px;
  858. }
  859. .solution-card-btn {
  860. @apply mt-56px h-48px w-268px bg-#0F67F8 text-white pf-sc-regular rounded-8px px-16px flex items-center justify-between hover:opacity-80 transition-all;
  861. @apply lt-sm:w-270px lt-sm:h-95px lt-sm:rounded-16px lt-sm:mt-102px;
  862. }
  863. .solution-card-img {
  864. @apply wh-280px absolute bottom--37px right-0 transition-all duration-1000 ease-in-out;
  865. @apply lt-sm:wh-264px lt-sm:bottom--26px;
  866. }
  867. .solution-card-normal {
  868. @apply h-full w-220px pt-40px px-24px absolute left-0 top-0 transition-all ease-in-out;
  869. @apply lt-sm:hidden;
  870. }
  871. .solution-card-icon-wrapper {
  872. @apply wh-40px ml-2px bg-white rounded-10px flex-center transition-all ease-in-out;
  873. }
  874. .solution-card-normal-title {
  875. @apply mt-18px font-s-18px text-#091221 pf-sc-semibold transition-all;
  876. }
  877. .solution-card-normal-desc {
  878. @apply mt-8px font-s-14px lh-24px text-#091221/60 pf-sc-regular w-172px transition-all;
  879. }
  880. .solution-card-normal-arrow {
  881. @apply wh-48px absolute bottom-24px left-24px transition-all;
  882. }
  883. .solution-dots {
  884. @apply lt-sm:mt-40px flex-center lt-sm:gap-16px;
  885. .dot {
  886. @apply lt-sm:w-60px lt-sm:h-10px bg-#E5E9F5 rounded-full transition-all cursor-pointer;
  887. &.active {
  888. @apply bg-#0F67F8;
  889. }
  890. }
  891. }
  892. .ability {
  893. @apply py-120px;
  894. @extend %landing-container;
  895. @apply lt-sm:py-120px lt-sm:px-32px;
  896. background-size: 100% 100%;
  897. background-image: url('@/assets/images/bg-ability.png');
  898. @screen lt-sm {
  899. background-size: 100% 100%;
  900. background-image: url('@/assets/images/bg-ability-mobile.png');
  901. }
  902. }
  903. .ability-title {
  904. @apply font-s-36px text-#000000 pf-sc-semibold flex-center lh-60px;
  905. @apply lt-sm:font-s-48px lt-sm:lh-60px;
  906. }
  907. .ability-desc {
  908. @apply font-s-16px text-#091221/70 pf-sc-regular lh-30px flex-center mt-4px;
  909. @apply lt-sm:font-s-24px lt-sm:lh-40px lt-sm:text-center lt-sm:px-60px;
  910. }
  911. .ability-content {
  912. @apply mt-24px flex-center flex-col;
  913. @apply lt-sm:mt-40px;
  914. }
  915. .ability-tabs {
  916. @apply relative flex items-center rounded-14px border border-#ECEFF6 bg-#F6F8FD p-6px;
  917. @apply lt-sm:rounded-16px lt-sm:p-8px lt-sm:w-[calc(100%-40px)];
  918. }
  919. .ability-tab-indicator {
  920. @apply absolute w-136px h-[calc(100%-12px)] transition-all duration-300 ease-out rounded-8px bg-#0F67F8;
  921. @apply lt-sm:w-[calc((100%-16px)/3)] lt-sm:h-[calc(100%-16px)] lt-sm:rounded-12px;
  922. }
  923. .ability-tab-item {
  924. @apply relative z-1 cursor-pointer py-14px px-20px text-center font-s-16px transition-colors duration-300 pf-sc-regular;
  925. @apply lt-sm:flex-1 lt-sm:px-0 lt-sm:py-20px lt-sm:font-s-24px;
  926. }
  927. .tab-content {
  928. @apply pt-45px;
  929. @apply lt-sm:pt-40px lt-sm:w-full;
  930. }
  931. .ability-grid {
  932. @apply grid grid-cols-3 gap-24px;
  933. @apply lt-sm:grid-cols-2 lt-sm:gap-25px;
  934. }
  935. .ability-card {
  936. @apply group relative flex flex-col rounded-16px border border-#ECEFF6 bg-[linear-gradient(0deg,_#FFFFFF_0%,_rgba(255,255,255,0.6)_100%)] p-24px transition-all duration-300 hover:border-#0F67F8/30 hover:shadow-[0_8px_24px_rgba(15,103,248,0.08)];
  937. @apply lt-sm:p-24px lt-sm:rounded-16px;
  938. }
  939. .ability-card-icon {
  940. @apply wh-48px;
  941. @apply lt-sm:wh-78px;
  942. }
  943. .ability-card-title {
  944. @apply mt-16px font-s-18px font-semibold text-#091221 pf-sc-semibold;
  945. @apply lt-sm:font-s-32px;
  946. }
  947. .ability-card-desc {
  948. @apply mt-8px flex-1 font-s-14px text-#091221/70 pf-sc-regular;
  949. @apply lt-sm:font-s-24px lt-sm:mt-16px;
  950. }
  951. .ability-card-link {
  952. @apply mt-24px flex items-center gap-8px font-s-16px pf-sc-regular text-#0F67F8 transition-colors hover:text-#0A50FF cursor-pointer;
  953. @apply lt-sm:mt-48px lt-sm:font-s-28px;
  954. }
  955. .cases {
  956. @apply pt-120px pb-46px lt-sm:pt-120px lt-sm:pb-60px lt-sm:px-32px;
  957. @extend %landing-container;
  958. }
  959. .cases-header {
  960. @apply text-center mb-60px lt-sm:mb-60px lt-sm:px-32px;
  961. }
  962. .cases-title {
  963. @apply font-s-36px font-semibold text-#000000 mb-4px lh-60px;
  964. @apply lt-sm:font-s-48px lt-sm:mb-16px;
  965. }
  966. .cases-desc {
  967. @apply font-s-16px text-#091221/70 lh-30px;
  968. @apply lt-sm:font-s-24px lt-sm:lh-40px lt-sm:px-70px;
  969. }
  970. .cases-list {
  971. @apply flex gap-24px;
  972. @apply lt-sm:gap-36px lt-sm:overflow-x-auto lt-sm:overflow-y-hidden lt-sm:px-0 lt-sm:pb-10px;
  973. @apply lt-sm:[scroll-snap-type:x_mandatory] lt-sm:[scrollbar-width:none];
  974. &::-webkit-scrollbar {
  975. @apply lt-sm:hidden;
  976. }
  977. }
  978. .cases-card {
  979. @apply group flex-1 overflow-hidden rounded-16px bg-#F6F8FD p-32px transition-all duration-300;
  980. @apply lt-sm:flex-none lt-sm:w-[calc(100vw-84px)] lt-sm:min-w-[calc(100vw-84px)] lt-sm:p-32px lt-sm:rounded-16px;
  981. @apply lt-sm:[scroll-snap-align:center];
  982. &:first-child {
  983. @apply lt-sm:ml-42px;
  984. }
  985. &:last-child {
  986. @apply lt-sm:mr-42px;
  987. }
  988. }
  989. .cases-card-img {
  990. @apply w-full h-218px rounded-12px;
  991. @apply lt-sm:h-320px lt-sm:rounded-12px;
  992. }
  993. .cases-card-title {
  994. @apply font-s-18px font-semibold text-#091221 mt-24px;
  995. @apply lt-sm:font-s-32px lt-sm:mt-32px;
  996. }
  997. .cases-card-desc {
  998. @apply mt-8px font-s-14px lh-24px text-#091221/70;
  999. @apply lt-sm:font-s-24px lt-sm:lh-36px lt-sm:mt-16px;
  1000. }
  1001. .cases-card-points {
  1002. @apply mt-24px flex flex-col gap-8px flex-1;
  1003. @apply lt-sm:mt-32px lt-sm:gap-16px;
  1004. }
  1005. .cases-card-point {
  1006. @apply flex items-center gap-8px;
  1007. @apply lt-sm:gap-12px;
  1008. }
  1009. .cases-card-point-icon {
  1010. @apply wh-20px mt-2px;
  1011. @apply lt-sm:wh-32px;
  1012. }
  1013. .cases-card-point-title {
  1014. @apply font-s-14px font-semibold text-#091221;
  1015. @apply lt-sm:font-s-24px;
  1016. }
  1017. .cases-card-point-desc {
  1018. @apply font-s-14px text-#091221/70;
  1019. @apply lt-sm:font-s-24px;
  1020. }
  1021. .cases-btn {
  1022. @apply mt-56px flex items-center justify-between gap-8px rounded-8px bg-white px-16px py-15px font-s-16px text-#0F67F8 transition-all hover:bg-#0F67F8 hover:text-white;
  1023. @apply lt-sm:mt-48px lt-sm:h-96px lt-sm:rounded-8px lt-sm:px-32px lt-sm:font-s-28px lt-sm:bg-#0F67F8 lt-sm:text-white;
  1024. }
  1025. .cases-card-btn-icon {
  1026. @apply wh-18px;
  1027. @apply lt-sm:wh-32px lt-sm:text-white;
  1028. }
  1029. .cases-dots {
  1030. @apply lt-sm:mt-40px lt-sm:flex-center lt-sm:gap-16px;
  1031. .dot {
  1032. @apply lt-sm:w-60px lt-sm:h-10px bg-#E5E9F5 rounded-full transition-all cursor-pointer;
  1033. &.active {
  1034. @apply bg-#0F67F8;
  1035. }
  1036. }
  1037. }
  1038. .partnership {
  1039. @extend %landing-container;
  1040. @media screen and (min-width: 1920px) {
  1041. padding-left: 220px;
  1042. padding-right: 220px;
  1043. }
  1044. @apply py-60px overflow-hidden;
  1045. @apply lt-sm:py-60px lt-sm:px-0;
  1046. }
  1047. .partnership-header {
  1048. @apply flex-center gap-32px mb-40px;
  1049. @apply lt-sm:mb-40px lt-sm:gap-30px;
  1050. }
  1051. .partnership-line-left {
  1052. @apply h-2px w-320px bg-[linear-gradient(90deg,transparent_0%,#E5E9F5_100%)];
  1053. @apply lt-sm:w-85px;
  1054. }
  1055. .partnership-title {
  1056. @apply text-center font-s-18px lh-21px text-#9CA0A7 whitespace-nowrap;
  1057. @apply lt-sm:font-s-28px;
  1058. }
  1059. .partnership-line-right {
  1060. @apply h-2px w-320px bg-[linear-gradient(90deg,#E5E9F5_0%,transparent_100%)];
  1061. @apply lt-sm:w-85px;
  1062. }
  1063. .partnership-content {
  1064. @apply relative flex flex-col gap-0px -mt-24px;
  1065. }
  1066. .partnership-marquee-row1 {
  1067. @apply [--duration:80s] [--gap:24px] mb--31px;
  1068. }
  1069. .partnership-marquee-row2 {
  1070. @apply [--duration:80s] [--delay:-20s] [--gap:24px];
  1071. }
  1072. .partnership-mask-left {
  1073. @apply pointer-events-none absolute inset-y-0 left-0 w-1/4 bg-[linear-gradient(to_right,#fff,transparent)];
  1074. }
  1075. .partnership-mask-right {
  1076. @apply pointer-events-none absolute inset-y-0 right-0 w-1/4 bg-[linear-gradient(to_left,#fff,transparent)];
  1077. }
  1078. .partner-item {
  1079. @apply flex-center h-80px w-200px bg-white rounded-8px shadow-[0_2px_8px_2px_rgba(0,0,0,0.06)] px-24px;
  1080. @apply lt-sm:h-105px lt-sm:w-290px;
  1081. }
  1082. .tab-fade-enter-active {
  1083. transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  1084. }
  1085. .tab-fade-leave-active {
  1086. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  1087. }
  1088. .tab-fade-enter-from {
  1089. opacity: 0;
  1090. transform: translateX(30px);
  1091. }
  1092. .tab-fade-leave-to {
  1093. opacity: 0;
  1094. transform: translateX(-30px);
  1095. }
  1096. /* 卡片级联动画 */
  1097. .grid > div {
  1098. animation: card-slide-up 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  1099. }
  1100. .grid > div:nth-child(1) {
  1101. animation-delay: 0.05s;
  1102. }
  1103. .grid > div:nth-child(2) {
  1104. animation-delay: 0.1s;
  1105. }
  1106. .grid > div:nth-child(3) {
  1107. animation-delay: 0.15s;
  1108. }
  1109. .grid > div:nth-child(4) {
  1110. animation-delay: 0.2s;
  1111. }
  1112. .grid > div:nth-child(5) {
  1113. animation-delay: 0.25s;
  1114. }
  1115. .grid > div:nth-child(6) {
  1116. animation-delay: 0.3s;
  1117. }
  1118. .grid > div:nth-child(7) {
  1119. animation-delay: 0.35s;
  1120. }
  1121. .grid > div:nth-child(8) {
  1122. animation-delay: 0.4s;
  1123. }
  1124. @keyframes card-slide-up {
  1125. from {
  1126. opacity: 0;
  1127. transform: translateY(20px);
  1128. }
  1129. to {
  1130. opacity: 1;
  1131. transform: translateY(0);
  1132. }
  1133. }
  1134. .btn-primary {
  1135. @apply bg-gradient-to-r from-[#779EFF] to-[#0A50FF];
  1136. border: none;
  1137. outline: none;
  1138. //hover 背景颜色
  1139. &:hover {
  1140. opacity: 0.8;
  1141. }
  1142. }
  1143. .history {
  1144. @apply overflow-hidden relative py-60px;
  1145. @apply lt-sm:pt-60px lt-sm:pb-160px lt-sm:px-32px;
  1146. @extend %landing-container;
  1147. background-size: cover;
  1148. background-position: center;
  1149. background-image: url('@/assets/images/history-bg.png');
  1150. }
  1151. .history-container {
  1152. @apply flex flex-col items-center transition-all duration-1000;
  1153. }
  1154. .history-title {
  1155. @apply font-semibold font-s-36px text-#000000 lh-60px text-center mb-4px;
  1156. @apply lt-sm:font-s-48px lt-sm:lh-60px;
  1157. }
  1158. .history-subtitle {
  1159. @apply font-s-16px text-#091221/70 text-center lh-30px mb-50px;
  1160. @apply lt-sm:font-s-24px lt-sm:lh-40px lt-sm:mb-88px;
  1161. }
  1162. .history-top {
  1163. @apply w-full h-255px flex py-50px items-center;
  1164. @apply lt-sm:h-176px;
  1165. }
  1166. .history-year-wrapper {
  1167. @apply relative pl-127px w-600px shrink-0 h-170px overflow-hidden;
  1168. @apply lt-sm:hidden;
  1169. }
  1170. .history-year-content {
  1171. @apply absolute left-127px top-0 h-full flex items-center w-full;
  1172. }
  1173. .history-year-text {
  1174. @apply text-170px font-bold text-#0F67F8 select-none leading-none;
  1175. -webkit-text-stroke: 1px #2563eb;
  1176. text-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
  1177. }
  1178. .history-event-wrapper {
  1179. @apply flex-1 h-full relative overflow-hidden pt-14px;
  1180. @apply lt-sm:h-176px lt-sm:pt-0;
  1181. }
  1182. .history-event-content {
  1183. @apply absolute left-0 top-14px w-full flex flex-col pr-114px;
  1184. @apply lt-sm:pr-0 static;
  1185. }
  1186. .history-event-header {
  1187. @apply flex justify-between items-center w-full;
  1188. @apply lt-sm:h-45px;
  1189. }
  1190. .history-event-month {
  1191. @apply font-s-22px font-semibold lh-30.8px text-#091221 flex-1;
  1192. @apply lt-sm:font-s-32px lt-sm:lh-30.8px;
  1193. }
  1194. .history-event-controls {
  1195. @apply flex gap-12px relative z-10;
  1196. @apply lt-sm:gap-16px;
  1197. }
  1198. .history-event-arrow {
  1199. @apply wh-32px transition-all;
  1200. @apply lt-sm:wh-45px;
  1201. }
  1202. .history-event-line {
  1203. @apply h-2px w-34px bg-#0F67F8 mt-11px origin-left;
  1204. @apply lt-sm:h-4px lt-sm:w-68px lt-sm:mt-25px;
  1205. }
  1206. .history-event-desc {
  1207. @apply w-full font-s-20px lh-35px text-#091221/70 mt-26px;
  1208. @apply lt-sm:font-s-24px lt-sm:mt-26px lt-sm:lh-normal;
  1209. }
  1210. .history-timeline {
  1211. @apply w-full relative pt-47px pb-60px;
  1212. @apply lt-sm:py-0 lt-sm:mt-70px;
  1213. }
  1214. .history-timeline-track {
  1215. @apply relative h-16px w-full bg-white rounded-full px-60px;
  1216. @apply lt-sm:h-16px lt-sm:px-60px;
  1217. }
  1218. .history-timeline-progress {
  1219. @apply absolute left-0 top-0 h-full bg-gradient-to-r from-[#60A5FA] to-[#2563EB] rounded-full transition-all duration-500 ease-out z-1;
  1220. }
  1221. .history-timeline-nodes {
  1222. @apply relative h-full w-full;
  1223. }
  1224. .history-timeline-node {
  1225. @apply absolute top-1/2 -translate-y-1/2 -translate-x-1/2 flex flex-col items-center cursor-pointer group z-2;
  1226. }
  1227. .history-timeline-dot {
  1228. @apply rounded-full transition-all duration-300 relative bg-white;
  1229. @apply lt-sm:wh-14px;
  1230. }
  1231. .history-timeline-year {
  1232. @apply absolute top-24px text-16px transition-all duration-300 whitespace-nowrap;
  1233. }
  1234. .history-nav {
  1235. @apply flex gap-24px mt-45px;
  1236. @apply lt-sm:hidden;
  1237. }
  1238. .history-nav-btn {
  1239. @apply wh-56px flex-center cursor-pointer;
  1240. }
  1241. /* 发展历程动画 - 新版流式 */
  1242. .year-flow-enter-active,
  1243. .year-flow-leave-active {
  1244. transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  1245. }
  1246. .year-flow-enter-from {
  1247. opacity: 0;
  1248. transform: translateY(100%) scale(0.9);
  1249. }
  1250. .year-flow-leave-to {
  1251. opacity: 0;
  1252. transform: translateY(-100%) scale(0.9);
  1253. }
  1254. /* 事件内容渐隐渐显 */
  1255. .event-fade-enter-active,
  1256. .event-fade-leave-active {
  1257. transition: opacity 0.3s ease;
  1258. }
  1259. .event-fade-enter-from,
  1260. .event-fade-leave-to {
  1261. opacity: 0;
  1262. }
  1263. /* 时间轴圆点呼吸效果 */
  1264. .cta {
  1265. @apply w-full h-276px py-60px flex-center flex-col;
  1266. @apply lt-sm:h-345px lt-sm:py-60px;
  1267. background-size: cover;
  1268. background-position: center;
  1269. background-image: url('@/assets/images/bg-3.png');
  1270. @screen lt-sm {
  1271. background-size: cover;
  1272. background-position: center;
  1273. background-image: url('@/assets/images/bg-3-mobile.png');
  1274. }
  1275. }
  1276. .cta-title {
  1277. @apply font-s-40px lh-56px text-center;
  1278. @apply lt-sm:font-s-40px lt-sm:lh-56px;
  1279. }
  1280. .cta-desc {
  1281. @apply font-s-18px text-#232325;
  1282. @apply lt-sm:font-s-18px lt-sm:mt-24px;
  1283. }
  1284. .cta-btn {
  1285. @apply h-52px mt-22px w-268px bg-#0F67F8 text-white rounded-8px px-16px flex items-center justify-between hover:opacity-80;
  1286. @apply lt-sm:h-84px lt-sm:w-391px lt-sm:mt-24px lt-sm:rounded-8px;
  1287. }
  1288. .cta-btn-text {
  1289. @apply font-s-16px;
  1290. @apply lt-sm:font-s-26px;
  1291. }
  1292. .cta-btn-icon {
  1293. @apply i-custom-arrow-right wh-18px;
  1294. }
  1295. .history-timeline-mobile {
  1296. @apply flex items-center justify-between w-full px-0;
  1297. @apply lt-sm:mt-70px;
  1298. }
  1299. .history-mobile-btn {
  1300. @apply shrink-0 cursor-pointer transition-all absolute;
  1301. @apply lt-sm:wh-64px z-10;
  1302. &.i-custom-button-previous-mobile {
  1303. @apply left-0;
  1304. }
  1305. &.i-custom-button-next-mobile {
  1306. @apply right-0;
  1307. }
  1308. }
  1309. .history-mobile-track-container {
  1310. @apply relative flex-1;
  1311. }
  1312. .history-mobile-track-line {
  1313. @apply absolute left-0 right-0 bg-white rounded-full;
  1314. @apply lt-sm:h-16px lt-sm:top-1/2 lt-sm:translate-y--1/2;
  1315. }
  1316. .history-mobile-nodes {
  1317. @apply hidden relative w-full h-full justify-between items-center z-1;
  1318. @apply lt-sm:px-100px lt-sm:h-16px lt-sm:flex;
  1319. }
  1320. .history-mobile-node {
  1321. @apply relative flex flex-col items-center cursor-pointer;
  1322. @apply lt-sm:w-60px;
  1323. &.invisible {
  1324. @apply transition-none;
  1325. .history-mobile-dot,
  1326. .history-mobile-year {
  1327. @apply transition-none;
  1328. }
  1329. }
  1330. }
  1331. .history-mobile-dot {
  1332. @apply rounded-full bg-white transition-all z-2 border-#0F67F8 border-1;
  1333. @apply lt-sm:wh-18px;
  1334. &.active {
  1335. @apply scale-150 outline-#CEE0FF outline-solid border-none bg-[linear-gradient(90deg,#779EFF_0%,#0A50FF_100%)];
  1336. @apply lt-sm:wh-22px lt-sm:outline-8px;
  1337. }
  1338. }
  1339. .history-mobile-year {
  1340. @apply hidden absolute text-#091221/60 pf-sc-regular transition-all whitespace-nowrap;
  1341. @apply lt-sm:font-s-22px lt-sm:top-58px lt-sm:block;
  1342. &.active {
  1343. @apply text-#0F67F8 font-semibold scale-110;
  1344. }
  1345. }
  1346. </style>