bazi-match.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881
  1. <template>
  2. <view class="bazi-match-container">
  3. <!-- 自定义导航栏 -->
  4. <view class="custom-navbar">
  5. <view class="navbar-content">
  6. <view class="navbar-left" @click="goBack">
  7. <text class="back-icon">←</text>
  8. </view>
  9. <view class="navbar-title">八字配对</view>
  10. <view class="navbar-right"></view>
  11. </view>
  12. </view>
  13. <!-- 输入区域 -->
  14. <view class="input-section" v-if="!hasResult">
  15. <!-- 我的八字 -->
  16. <view class="section-card">
  17. <view class="section-title">👤 我的八字</view>
  18. <view class="my-bazi-info" v-if="myBaziData">
  19. <view class="bazi-display-mini">
  20. <view class="bazi-pillar-mini" v-for="(pillar, key) in myBaziData.baziAnalysis" :key="key" v-if="key !== 'analysis' && key !== 'birthInfo' && key !== 'baziString' && key !== 'rizhu' && key !== 'riganWuxing'">
  21. <view class="pillar-value-mini">
  22. <text class="gan-mini">{{ pillar.gan }}</text>
  23. <text class="zhi-mini">{{ pillar.zhi }}</text>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="bazi-info-text">
  28. {{ myBaziData.baziAnalysis.baziString }}
  29. </view>
  30. </view>
  31. <view class="no-bazi" v-else>
  32. <text class="no-bazi-text">请先完成八字测算</text>
  33. <button class="go-bazi-btn" @click="goBaziTest">去测算八字</button>
  34. </view>
  35. </view>
  36. <!-- 对方八字 -->
  37. <view class="section-card">
  38. <view class="section-title">👥 对方八字</view>
  39. <view class="input-group">
  40. <view class="input-item">
  41. <text class="input-label">对方出生日期</text>
  42. <picker
  43. mode="date"
  44. :value="targetBirthDate"
  45. @change="onTargetDateChange"
  46. class="date-picker"
  47. >
  48. <view class="picker-display">
  49. {{ targetBirthDateDisplay }}
  50. </view>
  51. </picker>
  52. </view>
  53. <view class="input-item">
  54. <text class="input-label">对方出生时辰</text>
  55. <picker
  56. :range="timeRanges"
  57. :value="targetTimeIndex"
  58. @change="onTargetTimeChange"
  59. class="time-picker"
  60. >
  61. <view class="picker-display">
  62. {{ targetTimeDisplay }}
  63. </view>
  64. </picker>
  65. </view>
  66. </view>
  67. <button class="match-btn" @click="startMatch" :disabled="!canMatch">
  68. 开始配对
  69. </button>
  70. </view>
  71. </view>
  72. <!-- 结果区域 -->
  73. <view class="result-section" v-if="hasResult">
  74. <!-- 配对总览 -->
  75. <view class="match-overview-card">
  76. <view class="section-title">💕 配对结果</view>
  77. <view class="match-score-display">
  78. <view class="score-circle" :style="{background: matchResult.levelColor}">
  79. <text class="score-number">{{ matchResult.totalScore }}</text>
  80. <text class="score-unit">分</text>
  81. </view>
  82. <view class="match-level">{{ matchResult.level }}</view>
  83. </view>
  84. <view class="bazi-comparison">
  85. <view class="comparison-item">
  86. <text class="comparison-label">我的八字</text>
  87. <text class="comparison-bazi">{{ myBaziString }}</text>
  88. </view>
  89. <view class="vs-divider">VS</view>
  90. <view class="comparison-item">
  91. <text class="comparison-label">对方八字</text>
  92. <text class="comparison-bazi">{{ targetBaziString }}</text>
  93. </view>
  94. </view>
  95. </view>
  96. <!-- 详细配对分析 -->
  97. <view class="detailed-analysis-card">
  98. <view class="section-title">📊 详细分析</view>
  99. <view class="analysis-tabs">
  100. <view
  101. class="tab-item"
  102. :class="{active: activeTab === tab.key}"
  103. v-for="tab in analysisTabs"
  104. :key="tab.key"
  105. @click="switchTab(tab.key)"
  106. >
  107. {{ tab.name }}
  108. </view>
  109. </view>
  110. <view class="tab-content">
  111. <!-- 日干配对 -->
  112. <view class="analysis-content" v-if="activeTab === 'rigan'">
  113. <view class="match-item">
  114. <view class="match-header">
  115. <text class="match-icon">🔮</text>
  116. <text class="match-title">日干配对</text>
  117. <text class="match-score">{{ matchResult.riganMatch.score }}分</text>
  118. </view>
  119. <text class="match-desc">{{ matchResult.riganMatch.description }}</text>
  120. </view>
  121. </view>
  122. <!-- 五行配对 -->
  123. <view class="analysis-content" v-if="activeTab === 'wuxing'">
  124. <view class="match-item">
  125. <view class="match-header">
  126. <text class="match-icon">⚡</text>
  127. <text class="match-title">五行配对</text>
  128. <text class="match-score">{{ matchResult.wuxingMatch.score }}分</text>
  129. </view>
  130. <text class="match-desc">{{ matchResult.wuxingMatch.description }}</text>
  131. </view>
  132. </view>
  133. <!-- 纳音配对 -->
  134. <view class="analysis-content" v-if="activeTab === 'nayin'">
  135. <view class="match-item">
  136. <view class="match-header">
  137. <text class="match-icon">🎵</text>
  138. <text class="match-title">纳音配对</text>
  139. <text class="match-score">{{ matchResult.nayinMatch.score }}分</text>
  140. </view>
  141. <text class="match-desc">{{ matchResult.nayinMatch.description }}</text>
  142. </view>
  143. </view>
  144. <!-- 生肖配对 -->
  145. <view class="analysis-content" v-if="activeTab === 'shengxiao'">
  146. <view class="match-item">
  147. <view class="match-header">
  148. <text class="match-icon">🐉</text>
  149. <text class="match-title">生肖配对</text>
  150. <text class="match-score">{{ matchResult.shengxiaoMatch.score }}分</text>
  151. </view>
  152. <text class="match-desc">{{ matchResult.shengxiaoMatch.description }}</text>
  153. </view>
  154. </view>
  155. </view>
  156. </view>
  157. <!-- 配对优势 -->
  158. <view class="advantages-card">
  159. <view class="section-title">✨ 配对优势</view>
  160. <view class="advantages-list">
  161. <view
  162. class="advantage-item"
  163. v-for="(advantage, index) in matchResult.advantages"
  164. :key="index"
  165. >
  166. <text class="advantage-icon">💝</text>
  167. <text class="advantage-text">{{ advantage }}</text>
  168. </view>
  169. </view>
  170. </view>
  171. <!-- 挑战与建议 -->
  172. <view class="challenges-card">
  173. <view class="section-title">⚠️ 需要注意</view>
  174. <view class="challenges-list">
  175. <view
  176. class="challenge-item"
  177. v-for="(challenge, index) in matchResult.challenges"
  178. :key="index"
  179. >
  180. <text class="challenge-icon">🔍</text>
  181. <text class="challenge-text">{{ challenge }}</text>
  182. </view>
  183. </view>
  184. </view>
  185. <!-- 相处建议 -->
  186. <view class="suggestions-card">
  187. <view class="section-title">💡 相处建议</view>
  188. <view class="suggestions-list">
  189. <view
  190. class="suggestion-item"
  191. v-for="(suggestion, index) in matchResult.suggestions"
  192. :key="index"
  193. >
  194. <text class="suggestion-icon">🌟</text>
  195. <text class="suggestion-text">{{ suggestion }}</text>
  196. </view>
  197. </view>
  198. </view>
  199. <!-- 配对总结 -->
  200. <view class="summary-card">
  201. <view class="section-title">📝 配对总结</view>
  202. <text class="summary-text">{{ matchResult.summary }}</text>
  203. </view>
  204. <!-- 重新配对 -->
  205. <view class="retest-btn" @click="resetMatch">
  206. 重新配对
  207. </view>
  208. </view>
  209. </view>
  210. </template>
  211. <script>
  212. import baziUtil from '@/utils/bazi.js'
  213. export default {
  214. data() {
  215. return {
  216. // 我的八字数据
  217. myBaziData: null,
  218. // 对方输入数据
  219. targetBirthDate: '',
  220. targetBirthDateDisplay: '请选择对方出生日期',
  221. targetTimeIndex: 0,
  222. targetTimeDisplay: '子时 (23:00-01:00)',
  223. // 时辰选择器数据
  224. timeRanges: [
  225. '子时 (23:00-01:00)', '丑时 (01:00-03:00)', '寅时 (03:00-05:00)',
  226. '卯时 (05:00-07:00)', '辰时 (07:00-09:00)', '巳时 (09:00-11:00)',
  227. '午时 (11:00-13:00)', '未时 (13:00-15:00)', '申时 (15:00-17:00)',
  228. '酉时 (17:00-19:00)', '戌时 (19:00-21:00)', '亥时 (21:00-23:00)'
  229. ],
  230. // 结果数据
  231. hasResult: false,
  232. matchResult: null,
  233. targetBaziData: null,
  234. // UI状态
  235. activeTab: 'rigan',
  236. analysisTabs: [
  237. { key: 'rigan', name: '日干' },
  238. { key: 'wuxing', name: '五行' },
  239. { key: 'nayin', name: '纳音' },
  240. { key: 'shengxiao', name: '生肖' }
  241. ]
  242. }
  243. },
  244. computed: {
  245. // 是否可以开始配对
  246. canMatch() {
  247. return this.myBaziData && this.targetBirthDate
  248. },
  249. // 获取时辰对应的小时数
  250. targetSelectedHour() {
  251. const hourMap = [23, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21]
  252. return hourMap[this.targetTimeIndex]
  253. },
  254. // 我的八字字符串
  255. myBaziString() {
  256. return this.myBaziData ? this.myBaziData.baziAnalysis.baziString : ''
  257. },
  258. // 对方八字字符串
  259. targetBaziString() {
  260. return this.targetBaziData ? this.targetBaziData.baziString : ''
  261. }
  262. },
  263. methods: {
  264. // 返回上一页
  265. goBack() {
  266. uni.navigateBack()
  267. },
  268. // 跳转到八字测算
  269. goBaziTest() {
  270. uni.navigateTo({
  271. url: '/pages/astrology/bazi'
  272. })
  273. },
  274. // 对方日期选择
  275. onTargetDateChange(e) {
  276. this.targetBirthDate = e.detail.value
  277. this.targetBirthDateDisplay = e.detail.value
  278. },
  279. // 对方时辰选择
  280. onTargetTimeChange(e) {
  281. this.targetTimeIndex = e.detail.value
  282. this.targetTimeDisplay = this.timeRanges[e.detail.value]
  283. },
  284. // 开始配对
  285. async startMatch() {
  286. if (!this.canMatch) {
  287. uni.showToast({
  288. title: '请完善配对信息',
  289. icon: 'none'
  290. })
  291. return
  292. }
  293. uni.showLoading({
  294. title: '配对分析中...',
  295. mask: true
  296. })
  297. try {
  298. // 计算对方八字
  299. const targetBirthDateObj = new Date(this.targetBirthDate + ' 12:00:00')
  300. const targetBaziData = baziUtil.calculateBaZi(targetBirthDateObj, this.targetSelectedHour)
  301. // 进行配对分析
  302. const matchAnalysis = baziUtil.analyzeBaziMatch(
  303. this.myBaziData.baziAnalysis,
  304. targetBaziData
  305. )
  306. // 保存结果
  307. this.targetBaziData = targetBaziData
  308. this.matchResult = matchAnalysis
  309. this.hasResult = true
  310. // 保存到本地存储
  311. uni.setStorageSync('baziMatchResult', {
  312. myBazi: this.myBaziData,
  313. targetBirthDate: this.targetBirthDate,
  314. targetTimeIndex: this.targetTimeIndex,
  315. targetBaziData: targetBaziData,
  316. matchResult: matchAnalysis,
  317. lastUpdate: new Date().getTime()
  318. })
  319. } catch (error) {
  320. uni.showToast({
  321. title: '配对分析异常,请重试',
  322. icon: 'none'
  323. })
  324. } finally {
  325. uni.hideLoading()
  326. }
  327. },
  328. // 切换分析标签
  329. switchTab(tabKey) {
  330. this.activeTab = tabKey
  331. },
  332. // 重新配对
  333. resetMatch() {
  334. this.hasResult = false
  335. this.matchResult = null
  336. this.targetBaziData = null
  337. this.targetBirthDate = ''
  338. this.targetBirthDateDisplay = '请选择对方出生日期'
  339. this.targetTimeIndex = 0
  340. this.targetTimeDisplay = '子时 (23:00-01:00)'
  341. }
  342. },
  343. onLoad() {
  344. // 获取我的八字数据
  345. const currentBazi = uni.getStorageSync('currentBazi')
  346. if (currentBazi) {
  347. this.myBaziData = currentBazi
  348. } else {
  349. // 尝试从八字测算结果获取
  350. const baziResult = uni.getStorageSync('baziResult')
  351. if (baziResult && baziResult.baziData) {
  352. this.myBaziData = {
  353. baziAnalysis: baziResult.baziData,
  354. birthDate: baziResult.birthDate,
  355. timeIndex: baziResult.timeIndex
  356. }
  357. }
  358. }
  359. // 尝试恢复之前的配对结果
  360. const savedMatchResult = uni.getStorageSync('baziMatchResult')
  361. if (savedMatchResult && savedMatchResult.matchResult) {
  362. const timeDiff = new Date().getTime() - savedMatchResult.lastUpdate
  363. // 如果在1小时内,可以恢复结果
  364. if (timeDiff < 60 * 60 * 1000) {
  365. this.targetBirthDate = savedMatchResult.targetBirthDate
  366. this.targetBirthDateDisplay = savedMatchResult.targetBirthDate
  367. this.targetTimeIndex = savedMatchResult.targetTimeIndex
  368. this.targetTimeDisplay = this.timeRanges[savedMatchResult.targetTimeIndex]
  369. this.targetBaziData = savedMatchResult.targetBaziData
  370. this.matchResult = savedMatchResult.matchResult
  371. this.hasResult = true
  372. }
  373. }
  374. }
  375. }
  376. </script>
  377. <style scoped>
  378. .bazi-match-container {
  379. min-height: 100vh;
  380. background: linear-gradient(135deg, #ff9a56 0%, #ff6b9d 100%);
  381. padding-bottom: 40rpx;
  382. }
  383. /* 自定义导航栏 */
  384. .custom-navbar {
  385. background: rgba(255, 255, 255, 0.1);
  386. border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  387. position: fixed;
  388. top: 0;
  389. left: 0;
  390. right: 0;
  391. z-index: 100;
  392. }
  393. .navbar-content {
  394. display: flex;
  395. align-items: center;
  396. justify-content: space-between;
  397. height: 88rpx;
  398. padding: 0 30rpx;
  399. padding-top: 40rpx;
  400. }
  401. .navbar-left {
  402. width: 80rpx;
  403. height: 60rpx;
  404. display: flex;
  405. align-items: center;
  406. justify-content: center;
  407. }
  408. .back-icon {
  409. font-size: 36rpx;
  410. color: #ffffff;
  411. font-weight: bold;
  412. }
  413. .navbar-title {
  414. flex: 1;
  415. text-align: center;
  416. font-size: 36rpx;
  417. font-weight: bold;
  418. color: #ffffff;
  419. }
  420. .navbar-right {
  421. width: 80rpx;
  422. }
  423. /* 输入区域 */
  424. .input-section {
  425. padding: 40rpx 30rpx;
  426. padding-top: 168rpx;
  427. }
  428. .section-card {
  429. background: rgba(255, 255, 255, 0.95);
  430. border-radius: 24rpx;
  431. padding: 40rpx 30rpx;
  432. margin-bottom: 30rpx;
  433. box-shadow: 0 20rpx 40rpx rgba(0, 0, 0, 0.1);
  434. }
  435. .section-title {
  436. font-size: 36rpx;
  437. font-weight: bold;
  438. color: #333333;
  439. margin-bottom: 30rpx;
  440. text-align: center;
  441. }
  442. /* 我的八字显示 */
  443. .my-bazi-info {
  444. text-align: center;
  445. }
  446. .bazi-display-mini {
  447. display: flex;
  448. justify-content: center;
  449. gap: 20rpx;
  450. margin-bottom: 20rpx;
  451. }
  452. .bazi-pillar-mini {
  453. text-align: center;
  454. }
  455. .pillar-value-mini {
  456. display: flex;
  457. flex-direction: column;
  458. align-items: center;
  459. gap: 8rpx;
  460. }
  461. .gan-mini,
  462. .zhi-mini {
  463. width: 50rpx;
  464. height: 50rpx;
  465. line-height: 50rpx;
  466. text-align: center;
  467. font-size: 28rpx;
  468. font-weight: bold;
  469. color: #ffffff;
  470. border-radius: 50%;
  471. }
  472. .gan-mini {
  473. background: linear-gradient(135deg, #FF6B9D 0%, #FFA5C6 100%);
  474. }
  475. .zhi-mini {
  476. background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
  477. }
  478. .bazi-info-text {
  479. font-size: 32rpx;
  480. color: #333333;
  481. font-weight: bold;
  482. }
  483. .no-bazi {
  484. text-align: center;
  485. padding: 60rpx 0;
  486. }
  487. .no-bazi-text {
  488. font-size: 32rpx;
  489. color: #999999;
  490. margin-bottom: 40rpx;
  491. display: block;
  492. }
  493. .go-bazi-btn {
  494. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  495. color: #ffffff;
  496. border: none;
  497. border-radius: 50rpx;
  498. height: 80rpx;
  499. padding: 0 60rpx;
  500. font-size: 32rpx;
  501. font-weight: bold;
  502. }
  503. /* 对方信息输入 */
  504. .input-group {
  505. margin-bottom: 40rpx;
  506. }
  507. .input-item {
  508. margin-bottom: 30rpx;
  509. }
  510. .input-label {
  511. font-size: 32rpx;
  512. font-weight: bold;
  513. color: #666666;
  514. display: block;
  515. margin-bottom: 20rpx;
  516. }
  517. .date-picker,
  518. .time-picker {
  519. width: 100%;
  520. }
  521. .picker-display {
  522. background: #f8f9fa;
  523. border: 2rpx solid #e9ecef;
  524. border-radius: 16rpx;
  525. padding: 24rpx 30rpx;
  526. font-size: 32rpx;
  527. color: #333333;
  528. text-align: center;
  529. }
  530. .match-btn {
  531. background: linear-gradient(135deg, #ff9a56 0%, #ff6b9d 100%);
  532. color: #ffffff;
  533. border: none;
  534. border-radius: 50rpx;
  535. height: 100rpx;
  536. font-size: 36rpx;
  537. font-weight: bold;
  538. width: 100%;
  539. }
  540. .match-btn[disabled] {
  541. background: #cccccc;
  542. color: #999999;
  543. }
  544. /* 结果区域 */
  545. .result-section {
  546. padding: 40rpx 30rpx;
  547. padding-top: 168rpx;
  548. }
  549. .match-overview-card,
  550. .detailed-analysis-card,
  551. .advantages-card,
  552. .challenges-card,
  553. .suggestions-card,
  554. .summary-card {
  555. background: rgba(255, 255, 255, 0.95);
  556. border-radius: 24rpx;
  557. padding: 40rpx 30rpx;
  558. margin-bottom: 30rpx;
  559. box-shadow: 0 20rpx 40rpx rgba(0, 0, 0, 0.1);
  560. }
  561. /* 配对总览 */
  562. .match-score-display {
  563. text-align: center;
  564. margin-bottom: 40rpx;
  565. }
  566. .score-circle {
  567. width: 160rpx;
  568. height: 160rpx;
  569. border-radius: 50%;
  570. display: flex;
  571. flex-direction: column;
  572. align-items: center;
  573. justify-content: center;
  574. margin: 0 auto 20rpx;
  575. color: #ffffff;
  576. }
  577. .score-number {
  578. font-size: 56rpx;
  579. font-weight: bold;
  580. line-height: 1;
  581. }
  582. .score-unit {
  583. font-size: 24rpx;
  584. margin-top: 8rpx;
  585. }
  586. .match-level {
  587. font-size: 36rpx;
  588. font-weight: bold;
  589. color: #333333;
  590. }
  591. /* 八字对比 */
  592. .bazi-comparison {
  593. display: flex;
  594. align-items: center;
  595. padding: 30rpx;
  596. background: #f8f9fa;
  597. border-radius: 16rpx;
  598. }
  599. .comparison-item {
  600. flex: 1;
  601. text-align: center;
  602. }
  603. .comparison-label {
  604. font-size: 24rpx;
  605. color: #999999;
  606. margin-bottom: 10rpx;
  607. display: block;
  608. }
  609. .comparison-bazi {
  610. font-size: 28rpx;
  611. color: #333333;
  612. font-weight: bold;
  613. }
  614. .vs-divider {
  615. width: 80rpx;
  616. text-align: center;
  617. font-size: 32rpx;
  618. font-weight: bold;
  619. color: #ff6b9d;
  620. }
  621. /* 分析标签 */
  622. .analysis-tabs {
  623. display: flex;
  624. margin-bottom: 30rpx;
  625. background: #f0f0f0;
  626. border-radius: 16rpx;
  627. padding: 8rpx;
  628. }
  629. .tab-item {
  630. flex: 1;
  631. text-align: center;
  632. padding: 20rpx;
  633. font-size: 28rpx;
  634. color: #666666;
  635. border-radius: 12rpx;
  636. transition: all 0.3s ease;
  637. }
  638. .tab-item.active {
  639. background: linear-gradient(135deg, #ff9a56 0%, #ff6b9d 100%);
  640. color: #ffffff;
  641. font-weight: bold;
  642. }
  643. /* 分析内容 */
  644. .analysis-content {
  645. opacity: 1;
  646. }
  647. .match-item {
  648. padding: 30rpx;
  649. background: #f8f9fa;
  650. border-radius: 16rpx;
  651. }
  652. .match-header {
  653. display: flex;
  654. align-items: center;
  655. justify-content: space-between;
  656. margin-bottom: 20rpx;
  657. }
  658. .match-icon {
  659. font-size: 28rpx;
  660. margin-right: 16rpx;
  661. }
  662. .match-title {
  663. flex: 1;
  664. font-size: 32rpx;
  665. font-weight: bold;
  666. color: #333333;
  667. }
  668. .match-score {
  669. font-size: 30rpx;
  670. font-weight: bold;
  671. color: #ff6b9d;
  672. }
  673. .match-desc {
  674. font-size: 28rpx;
  675. color: #666666;
  676. line-height: 1.6;
  677. }
  678. /* 配对优势 */
  679. .advantages-list {
  680. display: flex;
  681. flex-direction: column;
  682. gap: 24rpx;
  683. }
  684. .advantage-item {
  685. display: flex;
  686. align-items: flex-start;
  687. gap: 20rpx;
  688. }
  689. .advantage-icon {
  690. font-size: 28rpx;
  691. margin-top: 6rpx;
  692. }
  693. .advantage-text {
  694. flex: 1;
  695. font-size: 28rpx;
  696. color: #333333;
  697. line-height: 1.6;
  698. }
  699. /* 挑战列表 */
  700. .challenges-list {
  701. display: flex;
  702. flex-direction: column;
  703. gap: 24rpx;
  704. }
  705. .challenge-item {
  706. display: flex;
  707. align-items: flex-start;
  708. gap: 20rpx;
  709. }
  710. .challenge-icon {
  711. font-size: 28rpx;
  712. margin-top: 6rpx;
  713. color: #ff6b9d;
  714. }
  715. .challenge-text {
  716. flex: 1;
  717. font-size: 28rpx;
  718. color: #333333;
  719. line-height: 1.6;
  720. }
  721. /* 建议列表 */
  722. .suggestions-list {
  723. display: flex;
  724. flex-direction: column;
  725. gap: 24rpx;
  726. }
  727. .suggestion-item {
  728. display: flex;
  729. align-items: flex-start;
  730. gap: 20rpx;
  731. }
  732. .suggestion-icon {
  733. font-size: 28rpx;
  734. margin-top: 6rpx;
  735. color: #4CAF50;
  736. }
  737. .suggestion-text {
  738. flex: 1;
  739. font-size: 28rpx;
  740. color: #333333;
  741. line-height: 1.6;
  742. }
  743. /* 总结文本 */
  744. .summary-text {
  745. font-size: 30rpx;
  746. color: #333333;
  747. line-height: 1.8;
  748. text-align: justify;
  749. }
  750. /* 重新配对按钮 */
  751. .retest-btn {
  752. background: rgba(255, 255, 255, 0.2);
  753. color: #ffffff;
  754. border: 2rpx solid rgba(255, 255, 255, 0.3);
  755. border-radius: 50rpx;
  756. height: 80rpx;
  757. line-height: 76rpx;
  758. text-align: center;
  759. font-size: 32rpx;
  760. font-weight: bold;
  761. margin: 40rpx 30rpx;
  762. }
  763. </style>