index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  1. <template>
  2. <view class="page-relations">
  3. <!-- ========== Super Member Guard ========== -->
  4. <view v-if="!isSuperMember" class="locked-screen">
  5. <view class="locked-icon-wrap">
  6. <text class="locked-icon">🔒</text>
  7. </view>
  8. <text class="locked-title">超级会员专属</text>
  9. <text class="locked-desc">开通超级会员后可进行夫妻、亲子、同事等关系能量匹配分析</text>
  10. <view class="locked-features">
  11. <view class="locked-feature">🔗 关系能量合盘对比</view>
  12. <view class="locked-feature">🔢 八星号码能量解读</view>
  13. <view class="locked-feature">📊 AI 深度解读报告</view>
  14. </view>
  15. <view class="btn-upgrade" @click="goSubscribe">
  16. <text class="btn-upgrade-text">开通超级会员 ¥1,314/年</text>
  17. </view>
  18. <view class="btn-back" @click="goBack">
  19. <text class="btn-back-text">返回首页</text>
  20. </view>
  21. </view>
  22. <!-- ========== Authorized Content ========== -->
  23. <template v-else>
  24. <!-- Upsell banner: annual → super member upgrade -->
  25. <view v-if="showUpgradeBanner" class="upsell-banner">
  26. <text class="upsell-banner__text">升级超级会员,解锁关系能量 + 八星号码分析</text>
  27. <text class="upsell-banner__btn" @click="goSubscribe">升级</text>
  28. </view>
  29. <!-- Header bar -->
  30. <view class="header-bar">
  31. <text class="header-title">关系能量分析</text>
  32. <view class="header-actions">
  33. <view class="btn-add" @click="goAddRelation">
  34. <text class="btn-add-text">+ 添加</text>
  35. </view>
  36. </view>
  37. </view>
  38. <!-- ========== Inline Analysis Action ========== -->
  39. <view class="analysis-action-card">
  40. <template v-if="selectedIds.length === 0">
  41. <text class="analysis-action-icon">🔮</text>
  42. <view class="analysis-action-info">
  43. <text class="analysis-action-title">关系能量分析</text>
  44. <text class="analysis-action-desc">点击下方关系人卡片即可选择</text>
  45. </view>
  46. </template>
  47. <template v-else>
  48. <view class="analysis-action-selected">
  49. <text class="analysis-action-title">已选 {{ selectedIds.length }} 人</text>
  50. <view class="analysis-action-input-wrap">
  51. <textarea
  52. v-model="question"
  53. class="analysis-action-input"
  54. placeholder="输入你想咨询的问题..."
  55. maxlength="500"
  56. :auto-height="true"
  57. />
  58. </view>
  59. <text class="analysis-action-count">{{ question.length }}/500</text>
  60. </view>
  61. <view
  62. class="analysis-action-submit"
  63. :class="{ disabled: !question.trim() || submitting }"
  64. @click="handleStartAnalysis"
  65. >
  66. <text class="analysis-action-submit-text">
  67. {{ submitting ? '分析中...' : '开始分析' }}
  68. </text>
  69. </view>
  70. </template>
  71. </view>
  72. <!-- ========== Analysis Records Section ========== -->
  73. <view class="section-header">
  74. <text class="section-header-title">分析记录</text>
  75. <text class="section-header-link" @click="goAllRecords">查看全部 ›</text>
  76. </view>
  77. <view v-if="recordsLoading" class="loading-hint">加载中...</view>
  78. <view v-else-if="recentRecords.length === 0" class="empty-records-hint">
  79. <text>暂无分析记录,开始你的第一次关系分析</text>
  80. </view>
  81. <view v-else class="records-preview">
  82. <view
  83. v-for="item in recentRecords"
  84. :key="item.id"
  85. class="record-preview-card"
  86. @click="goChat(item.id)"
  87. >
  88. <text class="record-preview-title">{{ item.title || '关系分析' }}</text>
  89. <text class="record-preview-time">{{ formatTime(item.createTime) }}</text>
  90. </view>
  91. </view>
  92. <!-- ========== Relations Section ========== -->
  93. <view class="section-header">
  94. <text class="section-header-title">我的关系人</text>
  95. <text class="section-header-count">({{ relations.length }})</text>
  96. </view>
  97. <!-- Loading state -->
  98. <view v-if="loading" class="loading-state">
  99. <view v-for="i in 2" :key="i" class="skeleton-card" />
  100. </view>
  101. <!-- Empty state -->
  102. <view v-else-if="relations.length === 0" class="empty-state">
  103. <view class="empty-icon-wrap">
  104. <text class="empty-icon-symbol">+</text>
  105. </view>
  106. <text class="empty-text">暂无关系人</text>
  107. <text class="empty-desc">添加关系人后,可进行关系能量匹配分析</text>
  108. <view class="btn-empty-add" @click="goAddRelation">
  109. <text class="btn-empty-add-text">添加关系人</text>
  110. </view>
  111. </view>
  112. <!-- Relations list -->
  113. <view v-else class="relations-list">
  114. <view
  115. v-for="item in relations"
  116. :key="item.id"
  117. class="relation-card"
  118. :class="{ selected: selectedIds.includes(item.id) }"
  119. @click="toggleSelect(item.id)"
  120. >
  121. <view class="card-header">
  122. <view class="type-tag">
  123. <text class="type-tag-text">{{ relationTypeLabel(item.relationType) }}</text>
  124. </view>
  125. <view v-if="selectedIds.includes(item.id)" class="card-checked">
  126. <text class="card-checked-icon">✓</text>
  127. </view>
  128. </view>
  129. <view class="card-body">
  130. <text class="card-name">{{ item.name || '未知' }}</text>
  131. <text class="card-birth">{{ item.birthDate || '' }}</text>
  132. </view>
  133. <view class="card-footer">
  134. <view class="action-btn action-edit" @click.stop="goEdit(item.id)">编辑</view>
  135. <view class="action-btn action-delete" @click.stop="handleDelete(item.id)">删除</view>
  136. </view>
  137. </view>
  138. </view>
  139. </template>
  140. </view>
  141. </template>
  142. <script setup>
  143. import { ref, computed } from 'vue'
  144. import { onShow } from '@dcloudio/uni-app'
  145. import { useUserStore } from '@/stores/user'
  146. import requestInstance from '@/utils/api'
  147. const userStore = useUserStore()
  148. const relations = ref([])
  149. const loading = ref(false)
  150. const recentRecords = ref([])
  151. const recordsLoading = ref(false)
  152. const selectedIds = ref([])
  153. const question = ref('')
  154. const submitting = ref(false)
  155. const isSuperMember = computed(() => {
  156. if (!userStore.isVip) return false
  157. return userStore.vipType === 'super_annual' || userStore.vipType === 'practitioner'
  158. })
  159. const showUpgradeBanner = computed(() => {
  160. // Show upgrade prompt for annual members who aren't super yet
  161. return userStore.isVip && userStore.vipType === 'annual'
  162. })
  163. const relationApi = {
  164. list: (data) => requestInstance.post('/relation/list', data),
  165. delete: (id) => requestInstance.post('/relation/delete', { id })
  166. }
  167. const relationTypeMap = {
  168. spouse: '夫妻',
  169. parent_child: '亲子',
  170. colleague: '同事',
  171. friend: '朋友',
  172. superior: '上下级'
  173. }
  174. function relationTypeLabel(type) {
  175. return relationTypeMap[type] || type || '未知'
  176. }
  177. onShow(() => {
  178. if (userStore.isLoggedIn) {
  179. userStore.fetchProfile()
  180. }
  181. if (isSuperMember.value) {
  182. fetchRelations()
  183. fetchRecentRecords()
  184. }
  185. })
  186. async function fetchRelations() {
  187. loading.value = true
  188. try {
  189. relations.value = await relationApi.list({})
  190. } catch (e) {
  191. relations.value = []
  192. } finally {
  193. loading.value = false
  194. }
  195. }
  196. async function fetchRecentRecords() {
  197. recordsLoading.value = true
  198. try {
  199. const list = await requestInstance.post('/relation/analysis/list', {})
  200. recentRecords.value = (list || []).slice(0, 3)
  201. } catch (e) {
  202. recentRecords.value = []
  203. } finally {
  204. recordsLoading.value = false
  205. }
  206. }
  207. function toggleSelect(id) {
  208. const idx = selectedIds.value.indexOf(id)
  209. if (idx > -1) {
  210. selectedIds.value.splice(idx, 1)
  211. } else {
  212. selectedIds.value.push(id)
  213. }
  214. }
  215. async function handleStartAnalysis() {
  216. if (!question.value.trim() || submitting.value) return
  217. submitting.value = true
  218. try {
  219. const res = await requestInstance.post('/relation/analysis/start', {
  220. relationIds: selectedIds.value,
  221. question: question.value.trim()
  222. })
  223. if (res && res.id) {
  224. selectedIds.value = []
  225. question.value = ''
  226. uni.navigateTo({
  227. url: '/pages/relations/analysis-chat?recordId=' + res.id
  228. })
  229. }
  230. } catch (e) {
  231. uni.showToast({ title: '启动分析失败', icon: 'none' })
  232. } finally {
  233. submitting.value = false
  234. }
  235. }
  236. function goAddRelation() {
  237. uni.navigateTo({ url: '/pages/relations/add-relation' })
  238. }
  239. function goNewAnalysis() {
  240. // Inline selection on index page — just a hint
  241. uni.showToast({ title: '请点击下方关系人进行选择', icon: 'none' }
  242. )
  243. }
  244. function goChat(recordId) {
  245. uni.navigateTo({ url: '/pages/relations/analysis-chat?recordId=' + recordId })
  246. }
  247. function goAllRecords() {
  248. uni.navigateTo({ url: '/pages/relations/analysis-records' })
  249. }
  250. function goEdit(id) {
  251. uni.navigateTo({ url: '/pages/relations/add-relation?id=' + id })
  252. }
  253. function goSubscribe() {
  254. uni.navigateTo({ url: '/pages/payment/index?product=super_member' })
  255. }
  256. function goBack() {
  257. uni.switchTab({ url: '/pages/index/index' })
  258. }
  259. function handleDelete(id) {
  260. uni.showModal({
  261. title: '确认删除',
  262. content: '删除后无法恢复,确定要删除该关系人吗?',
  263. success: async (res) => {
  264. if (res.confirm) {
  265. try {
  266. await relationApi.delete(id)
  267. uni.showToast({ title: '删除成功', icon: 'success' })
  268. fetchRelations()
  269. } catch (e) {
  270. uni.showToast({ title: '删除失败', icon: 'none' })
  271. }
  272. }
  273. }
  274. })
  275. }
  276. function formatTime(time) {
  277. if (!time) return ''
  278. const d = new Date(time)
  279. const month = (d.getMonth() + 1).toString().padStart(2, '0')
  280. const day = d.getDate().toString().padStart(2, '0')
  281. return `${month}-${day}`
  282. }
  283. </script>
  284. <style scoped lang="scss">
  285. $brand-color: #1E3A5F;
  286. .page-relations {
  287. min-height: 100vh;
  288. background: var(--color-bg);
  289. padding: 16px;
  290. }
  291. /* Header */
  292. .header-bar {
  293. display: flex;
  294. align-items: center;
  295. justify-content: space-between;
  296. margin-bottom: 20px;
  297. }
  298. .header-title {
  299. font-size: 20px;
  300. font-weight: 700;
  301. color: var(--color-text-primary);
  302. letter-spacing: 0.5px;
  303. }
  304. .btn-add {
  305. background: var(--color-gold);
  306. border-radius: 999px;
  307. padding: 8px 18px;
  308. display: flex;
  309. align-items: center;
  310. justify-content: center;
  311. }
  312. .btn-add:active {
  313. transform: scale(0.97);
  314. opacity: 0.9;
  315. }
  316. .btn-add-text {
  317. color: var(--color-bg-card);
  318. font-size: 14px;
  319. font-weight: 600;
  320. }
  321. /* Section header */
  322. .section-header {
  323. display: flex;
  324. align-items: center;
  325. margin-bottom: 12px;
  326. margin-top: 20px;
  327. }
  328. .section-header-title {
  329. font-size: 15px;
  330. font-weight: 700;
  331. color: var(--color-text-primary);
  332. }
  333. .section-header-count {
  334. font-size: 12px;
  335. color: var(--color-text-secondary);
  336. margin-left: 4px;
  337. }
  338. .section-header-link {
  339. margin-left: auto;
  340. font-size: 13px;
  341. color: var(--color-brand);
  342. font-weight: 500;
  343. }
  344. .section-header-link:active {
  345. opacity: 0.7;
  346. }
  347. /* ========== Inline Analysis Action ========== */
  348. .analysis-action-card {
  349. background: linear-gradient(135deg, $brand-color, darken($brand-color, 4%));
  350. border-radius: 16px;
  351. padding: 16px;
  352. margin-bottom: 4px;
  353. }
  354. .analysis-action-card:active {
  355. transform: scale(0.98);
  356. }
  357. .analysis-action-icon {
  358. font-size: 28px;
  359. flex-shrink: 0;
  360. }
  361. .analysis-action-info {
  362. flex: 1;
  363. min-width: 0;
  364. margin-top: 4px;
  365. }
  366. .analysis-action-title {
  367. display: block;
  368. font-size: 15px;
  369. font-weight: 700;
  370. color: var(--color-bg-card);
  371. margin-bottom: 3px;
  372. }
  373. .analysis-action-desc {
  374. display: block;
  375. font-size: 12px;
  376. color: rgba(255, 255, 255, 0.7);
  377. }
  378. .analysis-action-selected {
  379. margin-bottom: 12px;
  380. }
  381. .analysis-action-input-wrap {
  382. background: rgba(255, 255, 255, 0.1);
  383. border-radius: 10px;
  384. padding: 10px 12px;
  385. margin-top: 10px;
  386. }
  387. .analysis-action-input {
  388. width: 100%;
  389. min-height: 60px;
  390. font-size: 14px;
  391. color: var(--color-bg-card);
  392. line-height: 1.6;
  393. background: transparent;
  394. }
  395. .analysis-action-input::placeholder {
  396. color: rgba(255, 255, 255, 0.5);
  397. font-size: 14px;
  398. }
  399. .analysis-action-count {
  400. display: block;
  401. text-align: right;
  402. font-size: 11px;
  403. color: rgba(255, 255, 255, 0.5);
  404. margin-top: 4px;
  405. padding-right: 2px;
  406. }
  407. .analysis-action-submit {
  408. height: 44px;
  409. background: var(--color-gold);
  410. border-radius: 12px;
  411. display: flex;
  412. align-items: center;
  413. justify-content: center;
  414. }
  415. .analysis-action-submit:active {
  416. transform: scale(0.97);
  417. opacity: 0.9;
  418. }
  419. .analysis-action-submit.disabled {
  420. opacity: 0.5;
  421. pointer-events: none;
  422. }
  423. .analysis-action-submit-text {
  424. color: var(--color-brand);
  425. font-size: 16px;
  426. font-weight: 700;
  427. }
  428. /* Records preview */
  429. .loading-hint, .empty-records-hint {
  430. text-align: center;
  431. padding: 16px 0;
  432. font-size: 13px;
  433. color: var(--color-text-secondary);
  434. }
  435. .records-preview {
  436. display: flex;
  437. flex-direction: column;
  438. gap: 8px;
  439. }
  440. .record-preview-card {
  441. display: flex;
  442. align-items: center;
  443. justify-content: space-between;
  444. background: var(--color-bg-card);
  445. border-radius: 12px;
  446. padding: 12px 14px;
  447. }
  448. .record-preview-card:active {
  449. transform: scale(0.98);
  450. }
  451. .record-preview-title {
  452. font-size: 14px;
  453. font-weight: 500;
  454. color: var(--color-text-primary);
  455. flex: 1;
  456. margin-right: 10px;
  457. overflow: hidden;
  458. text-overflow: ellipsis;
  459. white-space: nowrap;
  460. }
  461. .record-preview-time {
  462. font-size: 12px;
  463. color: var(--color-text-secondary);
  464. flex-shrink: 0;
  465. }
  466. /* Section count */
  467. .section-count {
  468. display: block;
  469. font-size: 13px;
  470. color: var(--color-text-secondary);
  471. margin-bottom: 12px;
  472. padding-left: 2px;
  473. }
  474. /* Loading skeleton */
  475. .loading-state {
  476. display: flex;
  477. flex-direction: column;
  478. gap: 12px;
  479. }
  480. .skeleton-card {
  481. height: 120px;
  482. background: linear-gradient(90deg, var(--color-bg-secondary) 25%, var(--color-bg) 50%, var(--color-bg-secondary) 75%);
  483. background-size: 400px 100%;
  484. animation: shimmer 1.5s ease-in-out infinite;
  485. border-radius: 16px;
  486. }
  487. @keyframes shimmer {
  488. 0% { background-position: -200px 0; }
  489. 100% { background-position: 200px 0; }
  490. }
  491. /* Empty state */
  492. .empty-state {
  493. display: flex;
  494. flex-direction: column;
  495. align-items: center;
  496. padding-top: 60px;
  497. }
  498. .empty-icon-wrap {
  499. width: 64px;
  500. height: 64px;
  501. border-radius: 50%;
  502. background: var(--color-bg-secondary);
  503. display: flex;
  504. align-items: center;
  505. justify-content: center;
  506. margin-bottom: 16px;
  507. }
  508. .empty-icon-symbol {
  509. font-size: 28px;
  510. color: var(--color-text-secondary);
  511. font-weight: 300;
  512. }
  513. .empty-text {
  514. font-size: 16px;
  515. font-weight: 600;
  516. color: var(--color-text-primary);
  517. margin-bottom: 8px;
  518. }
  519. .empty-desc {
  520. font-size: 13px;
  521. color: var(--color-text-secondary);
  522. text-align: center;
  523. line-height: 1.6;
  524. max-width: 260px;
  525. margin-bottom: 24px;
  526. }
  527. .btn-empty-add {
  528. background: var(--color-brand);
  529. border-radius: 12px;
  530. padding: 12px 32px;
  531. }
  532. .btn-empty-add:active {
  533. transform: scale(0.97);
  534. opacity: 0.9;
  535. }
  536. .btn-empty-add-text {
  537. color: var(--color-bg-card);
  538. font-size: 15px;
  539. font-weight: 600;
  540. }
  541. /* Relation cards */
  542. .relations-list {
  543. display: flex;
  544. flex-direction: column;
  545. }
  546. .relation-card {
  547. background: var(--color-bg-card);
  548. border-radius: 16px;
  549. padding: 16px;
  550. margin-bottom: 12px;
  551. box-shadow: var(--shadow-card);
  552. border: 2px solid transparent;
  553. transition: border-color 0.2s;
  554. }
  555. .relation-card:active {
  556. transform: scale(0.98);
  557. }
  558. .relation-card.selected {
  559. border-color: var(--color-gold);
  560. background: linear-gradient(135deg, var(--color-bg-card), rgba(201, 168, 76, 0.06));
  561. }
  562. .card-header {
  563. margin-bottom: 10px;
  564. display: flex;
  565. align-items: center;
  566. justify-content: space-between;
  567. }
  568. .type-tag {
  569. display: inline-flex;
  570. align-items: center;
  571. background: #EBF2FA;
  572. border-radius: 6px;
  573. padding: 3px 10px;
  574. }
  575. .type-tag-text {
  576. font-size: 12px;
  577. font-weight: 500;
  578. color: var(--color-brand);
  579. }
  580. .card-checked {
  581. width: 24px;
  582. height: 24px;
  583. border-radius: 50%;
  584. background: var(--color-gold);
  585. display: flex;
  586. align-items: center;
  587. justify-content: center;
  588. flex-shrink: 0;
  589. }
  590. .card-checked-icon {
  591. font-size: 13px;
  592. color: var(--color-bg-card);
  593. font-weight: 700;
  594. }
  595. .card-body {
  596. margin-bottom: 12px;
  597. }
  598. .card-name {
  599. display: block;
  600. font-size: 16px;
  601. font-weight: 600;
  602. color: var(--color-text-primary);
  603. margin-bottom: 4px;
  604. }
  605. .card-birth {
  606. display: block;
  607. font-size: 13px;
  608. color: var(--color-text-secondary);
  609. }
  610. .card-footer {
  611. display: flex;
  612. gap: 10px;
  613. border-top: 1px solid var(--color-border);
  614. padding-top: 12px;
  615. }
  616. .action-btn {
  617. font-size: 13px;
  618. font-weight: 500;
  619. padding: 6px 14px;
  620. border-radius: 8px;
  621. flex: 1;
  622. text-align: center;
  623. }
  624. .action-btn:active {
  625. transform: scale(0.97);
  626. opacity: 0.9;
  627. }
  628. .action-edit {
  629. background: var(--color-bg-card);
  630. border: 1px solid var(--color-border);
  631. color: var(--color-text-secondary);
  632. }
  633. .action-delete {
  634. background: var(--color-bg-card);
  635. border: 1px solid var(--color-border);
  636. color: #D94A4A;
  637. }
  638. /* ========== Upsell Banner ========== */
  639. .upsell-banner {
  640. background: linear-gradient(135deg, $brand-color, darken($brand-color, 4%));
  641. border-radius: 14px;
  642. padding: 14px 16px;
  643. margin-bottom: 16px;
  644. display: flex;
  645. align-items: center;
  646. justify-content: space-between;
  647. gap: 10px;
  648. }
  649. .upsell-banner__text {
  650. font-size: 13px;
  651. color: rgba(255, 255, 255, 0.85);
  652. flex: 1;
  653. line-height: 1.4;
  654. }
  655. .upsell-banner__btn {
  656. flex-shrink: 0;
  657. background: var(--color-gold);
  658. color: var(--color-brand);
  659. font-size: 13px;
  660. font-weight: 700;
  661. padding: 8px 16px;
  662. border-radius: 8px;
  663. }
  664. .upsell-banner__btn:active {
  665. transform: scale(0.97);
  666. }
  667. /* ========== Locked Screen ========== */
  668. .locked-screen {
  669. display: flex;
  670. flex-direction: column;
  671. align-items: center;
  672. padding-top: 80px;
  673. padding-bottom: 40px;
  674. }
  675. .locked-icon-wrap {
  676. width: 80px;
  677. height: 80px;
  678. border-radius: 50%;
  679. background: var(--color-bg-secondary);
  680. display: flex;
  681. align-items: center;
  682. justify-content: center;
  683. margin-bottom: 20px;
  684. }
  685. .locked-icon {
  686. font-size: 36px;
  687. }
  688. .locked-title {
  689. font-size: 20px;
  690. font-weight: 700;
  691. color: var(--color-text-primary);
  692. margin-bottom: 10px;
  693. }
  694. .locked-desc {
  695. font-size: 14px;
  696. color: var(--color-text-secondary);
  697. text-align: center;
  698. line-height: 1.6;
  699. max-width: 280px;
  700. margin-bottom: 28px;
  701. }
  702. .locked-features {
  703. display: flex;
  704. flex-direction: column;
  705. gap: 12px;
  706. margin-bottom: 32px;
  707. }
  708. .locked-feature {
  709. font-size: 15px;
  710. color: var(--color-text-secondary);
  711. }
  712. .btn-upgrade {
  713. width: 80%;
  714. height: 50px;
  715. background: linear-gradient(135deg, $brand-color, darken($brand-color, 4%));
  716. border-radius: 14px;
  717. display: flex;
  718. align-items: center;
  719. justify-content: center;
  720. margin-bottom: 16px;
  721. }
  722. .btn-upgrade:active {
  723. transform: scale(0.97);
  724. opacity: 0.9;
  725. }
  726. .btn-upgrade-text {
  727. color: var(--color-bg-card);
  728. font-size: 17px;
  729. font-weight: 700;
  730. }
  731. .btn-back {
  732. padding: 10px 20px;
  733. }
  734. .btn-back:active {
  735. opacity: 0.7;
  736. }
  737. .btn-back-text {
  738. font-size: 14px;
  739. color: var(--color-text-secondary);
  740. }
  741. </style>