index.vue 46 KB

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