index.vue 20 KB

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