index.vue 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996
  1. <template>
  2. <view class="container">
  3. <!-- Tabbar 切换过渡页 -->
  4. <tab-transition v-if="showTabTransition" dimCode="mind" ref="tabTransition" @close="showTabTransition = false" />
  5. <!-- 品牌头部 -->
  6. <PageBanner theme="mind-wisdom"
  7. tagline="心智成长 · 智慧人生"
  8. quote="知己知彼,百战不殆" />
  9. <!-- 品牌定位语(登录前显示) -->
  10. <view class="brand-strap" v-if="!isLoggedIn">
  11. <text class="brand-strap-text">关注全家心理健康与情绪成长</text>
  12. </view>
  13. <!-- ===== 家庭天盘模块(今日运势 / 今日心情 / 吉位) ===== -->
  14. <FamilyTianpanCard
  15. v-if="isLoggedIn"
  16. :visible="isLoggedIn"
  17. :fortune="dailyFortuneSafe"
  18. :mood="todayMood"
  19. :dominantElement="dominantElementSafe"
  20. :weeklyTip="familyWeeklyInsight"
  21. :traditionalData="traditionalData" />
  22. <!-- 家庭成员选择条 -->
  23. <FamilyMemberStrip
  24. v-if="isLoggedIn"
  25. :members="familyMembersVisible"
  26. :selectedMemberId="selectedMemberId"
  27. @select="onFamilyMemberSelect"
  28. @removed="loadFamilyMembersVisible" />
  29. <!-- 游客引导语 -->
  30. <view class="monthly-guidance" v-if="!isLoggedIn">
  31. <text class="guidance-icon">🔥</text>
  32. <text class="guidance-text">{{ monthlyGuidance }}</text>
  33. </view>
  34. <!-- 登录后:五维能量条 -->
  35. <FamilyEnergyBar
  36. v-if="isLoggedIn"
  37. dimensionCode="mind"
  38. :sandboxData="sandboxData" />
  39. <!-- 心理报告卡片(登录后可见) -->
  40. <view class="emi-card" v-if="isLoggedIn && emiData">
  41. <view class="emi-header">
  42. <text class="emi-title">心理测评报告</text>
  43. <view class="emi-overall-wrap">
  44. <text class="emi-overall-label">综合EQ分</text>
  45. <text class="emi-overall-value">{{ emiData.overallScore || 0 }}</text>
  46. <text :class="['emi-overall-level', 'level-' + getScoreLevel(emiData.overallScore || 0)]">
  47. {{ getScoreLevelText(emiData.overallScore || 0) }}
  48. </text>
  49. </view>
  50. </view>
  51. <view class="emi-dimensions">
  52. <view class="emi-dimension" v-for="dim in emiDimensions" :key="dim.key">
  53. <view class="emi-dim-header">
  54. <text class="emi-dim-label">{{ dim.label }}</text>
  55. <view class="emi-dim-values">
  56. <text class="emi-dim-score">{{ emiData[dim.key] || 0 }}</text>
  57. <text :class="['emi-dim-level', 'level-' + getScoreLevel(emiData[dim.key] || 0)]">
  58. {{ getScoreLevelText(emiData[dim.key] || 0) }}
  59. </text>
  60. </view>
  61. </view>
  62. <view class="emi-dim-bar">
  63. <view class="emi-dim-bar-fill" :style="{ width: (emiData[dim.key] || 0) + '%', background: dim.color }"></view>
  64. </view>
  65. </view>
  66. </view>
  67. <view class="emi-footer" @click="goEmotionReport">
  68. <text class="emi-footer-text">查看详情</text>
  69. <text class="emi-footer-icon">&#x2192;</text>
  70. </view>
  71. </view>
  72. <!-- 肠脑轴情绪卡片 -->
  73. <view class="section" v-if="gutIndicators && gutIndicators.length > 0">
  74. <view class="section-header">
  75. <text class="section-title">&#x1F9E0; 肠脑情绪关联</text>
  76. </view>
  77. <view class="gut-insight-text" v-if="gutInsight">
  78. <text>{{ gutInsight }}</text>
  79. </view>
  80. <view class="gut-indicator-list">
  81. <view class="gut-indicator-item" v-for="ind in gutIndicators" :key="ind.id">
  82. <view class="gut-indicator-left">
  83. <text class="gut-indicator-name">{{ ind.indicatorName || ind.name }}</text>
  84. </view>
  85. <view class="gut-indicator-bar-track">
  86. <view class="gut-indicator-bar-fill" :style="{ width: (ind.value || 0) + '%', background: indicatorColor(ind.status) }"></view>
  87. </view>
  88. <text class="gut-indicator-value">{{ ind.value }}{{ ind.unit || '%' }}</text>
  89. <text :class="['gut-indicator-status', 'status-' + (ind.status || 'normal')]">{{ statusLabel(ind.status) }}</text>
  90. </view>
  91. </view>
  92. </view>
  93. <!-- ===== Phase 1.2: 心理告警横幅 ===== -->
  94. <PsychCrisisBanner v-if="isLoggedIn" :memberId="currentChildId" source="screening" />
  95. <!-- ===== 底部:功能入口 Grid(通用,两行) ===== -->
  96. <view class="func-section" v-if="sectionVisible('func_entries')">
  97. <view class="func-grid">
  98. <view class="func-row">
  99. <view class="func-item" v-for="item in funcListRow1" :key="item.label" @click="onFuncClick(item)">
  100. <view class="func-icon-wrap">
  101. <text class="func-icon">{{ item.icon }}</text>
  102. </view>
  103. <text class="func-label">{{ item.label }}</text>
  104. </view>
  105. </view>
  106. <view class="func-row">
  107. <view class="func-item" v-for="item in funcListRow2" :key="item.label" @click="onFuncClick(item)">
  108. <view class="func-icon-wrap">
  109. <text class="func-icon">{{ item.icon }}</text>
  110. </view>
  111. <text class="func-label">{{ item.label }}</text>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. <!-- 心维度介绍卡片(登录后显示) -->
  117. <DimensionIntroCard dimCode="mind" v-if="isLoggedIn" learn-more-url="/pages/mind-detail/dimension-intro" />
  118. <!-- 底部占位 -->
  119. <view class="bottom-spacer"></view>
  120. <AIFloatingAvatar />
  121. </view>
  122. </template>
  123. <script>
  124. import TabTransition from '../../components/tab-transition.vue'
  125. import PageBanner from '../../components/PageBanner.vue'
  126. import DimensionIntroCard from '../../components/DimensionIntroCard.vue'
  127. import RadarChart from '../../components/RadarChart.vue'
  128. import FamilyEnergyBar from '../../components/FamilyEnergyBar.vue'
  129. import PsychCrisisBanner from '../../components/PsychCrisisBanner.vue'
  130. import AIFloatingAvatar from '../../components/AIFloatingAvatar.vue'
  131. import FamilyTianpanCard from '../../components/FamilyTianpanCard.vue'
  132. import FamilyMemberStrip from '../../components/FamilyMemberStrip.vue'
  133. import { getVisibleSections, getEmiReport, getFamilyEnergySandbox, getChildren, getVisibleFamilyMembers, getEnergyOverview, getContactList, getHealthAlerts, getMilestones, getDanReportByChild, getFamilyFortune } from '../../utils/api.js'
  134. import nav from '../../utils/nav.js'
  135. import config from '../../config.js'
  136. import { parseDate } from '../../utils/format.js'
  137. export default {
  138. components: { TabTransition, PageBanner, RadarChart, FamilyEnergyBar, PsychCrisisBanner, AIFloatingAvatar, FamilyTianpanCard, FamilyMemberStrip, DimensionIntroCard },
  139. data() {
  140. return {
  141. isLoggedIn: false,
  142. role: null,
  143. showTabTransition: true,
  144. currentChildId: null,
  145. selectedMemberId: null,
  146. visibleSections: [],
  147. familyMembersVisible: [],
  148. // 心理 Tab 数据
  149. emiData: null,
  150. emiLoading: true,
  151. emiDimensions: [
  152. { key: 'emotionScore', label: '情绪商数', color: '#FF6B35' },
  153. { key: 'resilienceScore', label: '心理韧性', color: '#F97316' },
  154. { key: 'stressCopingScore', label: '压力应对', color: '#FB923C' },
  155. { key: 'selfAwarenessScore', label: '自我认知', color: '#FBBF24' }
  156. ],
  157. // 大五维度(用于雷达图)
  158. personalityDimensions: [
  159. { key: 'opennessScore', label: '开放性' },
  160. { key: 'conscientiousnessScore', label: '尽责性' },
  161. { key: 'extraversionScore', label: '外向性' },
  162. { key: 'agreeablenessScore', label: '宜人性' },
  163. { key: 'neuroticismScore', label: '神经质' }
  164. ],
  165. // 功能入口
  166. funcList: [
  167. { icon: '\u{1F4D6}', label: '阅读', needLogin: false, page: '/pages/mind-extra/articles' },
  168. { icon: '\u{1F4CA}', label: '测评报告', needLogin: true, page: '/pages/mind/emotion-report' },
  169. { icon: '\u{1F4DD}', label: '成长记录', needLogin: true, page: '/pages/growth-main/index' },
  170. { icon: '\u{2728}', label: '情绪打卡', needLogin: true, page: '/pages/mind-detail/emotion-checkin' },
  171. { icon: '\u{1F4C8}', label: '情绪趋势', needLogin: true, page: '/pages/mind-detail/emotion-trend' },
  172. { icon: '\u{1F9E9}', label: '心理自评', needLogin: true, page: '/pages/mind-detail/screening' },
  173. { icon: '\u{1F3E0}', label: '家庭天盘', needLogin: true, page: '/pages/mind-detail/family-dashboard' },
  174. { icon: '\u{1F9D8}', label: '疏导工具', needLogin: true, page: '/pages/mind-detail/soothe-toolbox' }
  175. ],
  176. articles: [],
  177. // 肠脑轴数据
  178. gutIndicators: null,
  179. gutInsight: '',
  180. // 传统文化数据
  181. traditionalData: null,
  182. traditionalLoading: true,
  183. compatibilityData: null,
  184. wuxingConfig: {
  185. wood: { label: '木', color: '#10B981' },
  186. fire: { label: '火', color: '#FF6B9D' },
  187. earth: { label: '土', color: '#FF8C42' },
  188. metal: { label: '金', color: '#6366F1' },
  189. water: { label: '水', color: '#3B82F6' }
  190. },
  191. pillarLabels: { year: '年柱', month: '月柱', day: '日柱', hour: '时柱' },
  192. familyScore: 0,
  193. // 五维组件数据
  194. userName: '',
  195. children: [],
  196. sandboxData: null,
  197. contactList: [],
  198. healthAlerts: [],
  199. milestones: [],
  200. danReports: [],
  201. // 家庭天盘 - 今日心情(占位数据)
  202. todayMood: {
  203. emoji: '\u{1F60A}',
  204. text: '平静',
  205. score: 65
  206. },
  207. // 家庭天盘 - 每日运势数据
  208. dailyFortuneData: null
  209. }
  210. },
  211. computed: {
  212. /** 每月引导语 */
  213. monthlyGuidance: function() {
  214. var month = new Date().getMonth()
  215. var messages = [
  216. '一月:新年新起点,从情绪觉察开始',
  217. '二月:春节团聚,关注家人心理联结',
  218. '三月:春意盎然,适合情绪释放',
  219. '四月:清明时节,整理内心情绪',
  220. '五月:劳动之余,关注心理健康',
  221. '六月:中考高考季,减压情绪管理',
  222. '七月:暑期到来,培养情绪调节能力',
  223. '八月:夏末秋初,回顾情绪成长',
  224. '九月:开学季,关注孩子心理适应',
  225. '十月:国庆假期,增进亲子沟通',
  226. '十一月:秋冬交替,预防情绪低落',
  227. '十二月:年终总结,规划心理成长'
  228. ]
  229. return messages[month] || messages[0]
  230. },
  231. personalityScores: function() {
  232. if (!this.emiData) return []
  233. return [
  234. this.emiData.opennessScore || 0,
  235. this.emiData.conscientiousnessScore || 0,
  236. this.emiData.extraversionScore || 0,
  237. this.emiData.agreeablenessScore || 0,
  238. this.emiData.neuroticismScore || 0
  239. ]
  240. },
  241. emotionArticles: function() {
  242. if (!this.articles || this.articles.length === 0) return []
  243. var result = []
  244. for (var i = 0; i < this.articles.length; i++) {
  245. var a = this.articles[i]
  246. if (a.relatedDimensions && a.relatedDimensions.indexOf('mind') !== -1) {
  247. result.push(a)
  248. }
  249. }
  250. if (result.length === 0) return this.articles.slice(0, 5)
  251. return result.slice(0, 5)
  252. },
  253. wuxingData: function() {
  254. if (!this.traditionalData || !this.traditionalData.wuxingElements) return []
  255. var elements = this.traditionalData.wuxingElements
  256. var keys = ['wood', 'fire', 'earth', 'metal', 'water']
  257. var result = []
  258. for (var i = 0; i < keys.length; i++) {
  259. var k = keys[i]
  260. if (elements[k] !== undefined) {
  261. result.push({
  262. key: k,
  263. label: this.wuxingConfig[k].label,
  264. color: this.wuxingConfig[k].color,
  265. value: elements[k]
  266. })
  267. }
  268. }
  269. return result.sort(function(a, b) { return b.value - a.value })
  270. },
  271. currentDimensionCode: function() {
  272. return 'mind'
  273. },
  274. funcListRow1: function() {
  275. return this.funcList.slice(0, 4)
  276. },
  277. funcListRow2: function() {
  278. return this.funcList.slice(4)
  279. },
  280. // ===== 关键信息 - 家庭 =====
  281. familyWuxingLabel: function() {
  282. if (!this.compatibilityData || !this.compatibilityData.familyWuxing || !this.compatibilityData.familyWuxing.aggregatePercentages) return null
  283. var pcts = this.compatibilityData.familyWuxing.aggregatePercentages
  284. var keys = ['wood', 'fire', 'earth', 'metal', 'water']
  285. var maxKey = null
  286. var maxVal = -1
  287. for (var i = 0; i < keys.length; i++) {
  288. if (pcts[keys[i]] !== undefined && pcts[keys[i]] > maxVal) {
  289. maxVal = pcts[keys[i]]
  290. maxKey = keys[i]
  291. }
  292. }
  293. if (!maxKey) return null
  294. return { key: maxKey, label: this.wuxingConfig[maxKey].label, color: this.wuxingConfig[maxKey].color, value: maxVal }
  295. },
  296. familyMemberCount: function() {
  297. if (!this.compatibilityData || !this.compatibilityData.members) return 0
  298. return this.compatibilityData.members.length
  299. },
  300. familyWeeklyInsight: function() {
  301. if (!this.compatibilityData || !this.compatibilityData.weeklyInsight) return ''
  302. return this.compatibilityData.weeklyInsight
  303. },
  304. // ===== 关键信息 - 个人 =====
  305. dominantElement: function() {
  306. if (!this.traditionalData || !this.traditionalData.wuxingElements) return null
  307. var elements = this.traditionalData.wuxingElements
  308. var keys = ['wood', 'fire', 'earth', 'metal', 'water']
  309. var maxKey = null
  310. var maxVal = -1
  311. for (var i = 0; i < keys.length; i++) {
  312. if (elements[keys[i]] !== undefined && elements[keys[i]] > maxVal) {
  313. maxVal = elements[keys[i]]
  314. maxKey = keys[i]
  315. }
  316. }
  317. return maxKey
  318. },
  319. luckyColorInfo: function() {
  320. var colorMap = {
  321. wood: { name: '绿', hex: '#10B981' },
  322. fire: { name: '红', hex: '#FF6B9D' },
  323. earth: { name: '黄', hex: '#FF8C42' },
  324. metal: { name: '白', hex: '#6366F1' },
  325. water: { name: '蓝', hex: '#3B82F6' }
  326. }
  327. var elem = this.dominantElement
  328. if (!elem) return null
  329. return colorMap[elem] || null
  330. },
  331. luckyNumber: function() {
  332. if (this.traditionalData && this.traditionalData.lifeNumber) {
  333. return this.traditionalData.lifeNumber
  334. }
  335. var numMap = { wood: 3, fire: 9, earth: 5, metal: 7, water: 1 }
  336. var elem = this.dominantElement
  337. return elem ? numMap[elem] : null
  338. },
  339. fortuneSeed: function() {
  340. if (this.traditionalData && this.traditionalData.lifeNumber) {
  341. return String(this.traditionalData.lifeNumber)
  342. }
  343. return '0'
  344. },
  345. // WXML 不支持模板内 || {} 字面量,需在 computed 中预先做 fallback
  346. dailyFortuneSafe: function() {
  347. return this.dailyFortune || {}
  348. },
  349. // WXML 不支持模板内 || '' 字面量,需在 computed 中预先做 fallback
  350. dominantElementSafe: function() {
  351. return this.dominantElement || ''
  352. },
  353. dailyFortune: function() {
  354. // 优先使用后端接口数据
  355. if (this.dailyFortuneData) {
  356. var levels = ['大吉', '吉', '平', '凶', '大凶']
  357. return {
  358. level: this.dailyFortuneData.level,
  359. text: levels[this.dailyFortuneData.level],
  360. description: this.dailyFortuneData.description
  361. }
  362. }
  363. // 兼容模式:没有接口数据时使用原算法
  364. if (!this.dominantElement) return null
  365. var today = new Date()
  366. var dateStr = today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate()
  367. var seedStr = dateStr + (this.fortuneSeed || '')
  368. var hash = 0
  369. for (var i = 0; i < seedStr.length; i++) {
  370. hash = ((hash << 5) - hash) + seedStr.charCodeAt(i)
  371. hash = hash & hash
  372. }
  373. var level = Math.abs(hash) % 5
  374. var levels = ['大吉', '吉', '平', '凶', '大凶']
  375. var descMap = {
  376. wood: ['大吉:木气旺盛,宜规划', '吉:行动力强', '平:静心养性', '凶:谨言慎行', '大凶:忌冲动'],
  377. fire: ['大吉:热情高涨', '吉:精力充沛', '平:适当休息', '凶:注意情绪', '大凶:静心冥想'],
  378. earth: ['大吉:稳重踏实', '吉:贵人运佳', '平:按部就班', '凶:注意肠胃', '大凶:不宜投资'],
  379. metal: ['大吉:决策力强', '吉:思维清晰', '平:保持专注', '凶:注意言辞', '大凶:不宜强求'],
  380. water: ['大吉:灵感丰富', '吉:人际和谐', '平:安静内省', '凶:情绪波动', '大凶:宜藏不宜放']
  381. }
  382. var descList = descMap[this.dominantElement] || descMap.wood
  383. return { level: level, text: levels[level], description: descList[level] }
  384. }
  385. },
  386. onShow() {
  387. this.showTabTransition = true
  388. var token = uni.getStorageSync('token')
  389. this.isLoggedIn = !!token
  390. if (this.isLoggedIn) {
  391. this.role = uni.getStorageSync('currentRole') || uni.getStorageSync('role') || null
  392. // FIX: 从 Vuex store 读取 currentChildId,而非仅从 localStorage
  393. this.currentChildId = (this.$store.state && this.$store.state.currentChildId) || uni.getStorageSync('currentChildId') || null
  394. this.userName = uni.getStorageSync('nickname') || uni.getStorageSync('userName') || '家长'
  395. }
  396. this.loadSectionConfig()
  397. if (this.isLoggedIn) {
  398. this.loadChildren()
  399. this.loadFamilyMembersVisible()
  400. this.loadSandboxData()
  401. this.loadEmiData()
  402. this.loadGutData()
  403. this.loadEnergyData()
  404. this.loadTraditionalCultureData()
  405. this.loadContacts()
  406. this.loadHealthAlerts()
  407. this.loadMilestones()
  408. this.loadDanReports()
  409. }
  410. // 游客也能浏览活动和商品
  411. this.loadFamilyFortune()
  412. this._watchPageReady()
  413. },
  414. methods: {
  415. // ===== 区块可见性 =====
  416. loadSectionConfig: function() {
  417. var self = this
  418. var baseSections = ['func_entries', 'daily_tip', 'recommended_reading']
  419. if (!uni.getStorageSync('token')) {
  420. self.visibleSections = baseSections
  421. return
  422. }
  423. var role = uni.getStorageSync('currentRole') || uni.getStorageSync('role') || null
  424. getVisibleSections({ pageKey: 'mind', role: role }).then(function(res) {
  425. if (res.code === 200 && res.data) {
  426. var keys = res.data.map(function(s) { return s.sectionKey })
  427. var merged = baseSections.slice()
  428. keys.forEach(function(k) { if (merged.indexOf(k) === -1) merged.push(k) })
  429. self.visibleSections = merged
  430. }
  431. }).catch(function() {
  432. self.visibleSections = ['func_entries', 'daily_tip', 'recommended_reading', 'mind_tasks', 'related_activities', 'purchased_courses']
  433. })
  434. },
  435. // 加载家庭天盘数据
  436. loadFamilyFortune: function() {
  437. var self = this
  438. if (!self.isLoggedIn) return
  439. getFamilyFortune().then(function(res) {
  440. if (res.code === 200 && res.data) {
  441. // 更新 todayMood 占位数据为真实接口数据
  442. self.todayMood = {
  443. emoji: res.data.moodEmoji || '\u{1F60A}',
  444. text: res.data.moodText || '平静',
  445. score: res.data.moodScore || 65
  446. }
  447. // 更新 dailyFortune computed 函数依赖的数据
  448. self.dailyFortuneData = {
  449. level: res.data.fortuneLevel,
  450. text: res.data.fortuneLevelText,
  451. description: res.data.fortuneDescription
  452. }
  453. // 更新主导五行
  454. self.traditionalData = self.traditionalData || {}
  455. self.traditionalData.wuxingElements = {}
  456. if (res.data.dominantElement) {
  457. self.traditionalData.wuxingElements[res.data.dominantElement] = 100
  458. }
  459. // 更新周报提示
  460. self.compatibilityData = self.compatibilityData || {}
  461. self.compatibilityData.weeklyInsight = res.data.weeklyTip || self.compatibilityData.weeklyInsight
  462. }
  463. }).catch(function(err) {
  464. console.error('Failed to load family fortune:', err)
  465. })
  466. },
  467. viewReport: function(report) {
  468. if (report && report.fileUrl) {
  469. uni.downloadFile({
  470. url: report.fileUrl,
  471. success: function(res) {
  472. if (res.statusCode === 200) {
  473. uni.openDocument({
  474. filePath: res.tempFilePath,
  475. success: function() {
  476. console.log('打开报告成功')
  477. }
  478. })
  479. }
  480. }
  481. })
  482. }
  483. },
  484. formatDate: function(dateStr) {
  485. if (!dateStr) return ''
  486. var d = parseDate(dateStr)
  487. if (!d) return ''
  488. var month = d.getMonth() + 1
  489. var day = d.getDate()
  490. return month + '月' + day + '日'
  491. },
  492. sectionVisible: function(key) {
  493. return this.visibleSections.length === 0 || this.visibleSections.indexOf(key) !== -1
  494. },
  495. // ===== 心理 Tab:EMI 数据 =====
  496. loadEmiData: function() {
  497. var self = this
  498. var memberId = self.currentChildId
  499. if (!memberId) {
  500. self.emiLoading = false
  501. return
  502. }
  503. self.emiLoading = true
  504. getEmiReport(memberId).then(function(res) {
  505. if (res.code === 200 && res.data) {
  506. self.emiData = res.data
  507. }
  508. self.emiLoading = false
  509. }).catch(function() {
  510. self.emiLoading = false
  511. })
  512. },
  513. // ===== 肠脑轴情绪指标 =====
  514. loadGutData: function() {
  515. var self = this
  516. var memberId = self.currentChildId
  517. if (!memberId) return
  518. var token = uni.getStorageSync('token')
  519. // 获取神经递质指标
  520. uni.request({
  521. url: config.API_BASE_URL + '/api/mind/neurotransmitters',
  522. method: 'POST',
  523. header: { 'Content-Type': 'application/json', 'Authorization': 'Bearer ' + token },
  524. data: { memberId: memberId },
  525. success: function(r) {
  526. if (r.statusCode === 200 && r.data && r.data.code === 200) {
  527. var list = r.data.data
  528. if (Array.isArray(list) && list.length > 0) {
  529. self.gutIndicators = list.slice(0, 4)
  530. }
  531. }
  532. }
  533. })
  534. // 获取情绪洞察摘要
  535. uni.request({
  536. url: config.API_BASE_URL + '/api/mind/gut-emotion-insight',
  537. method: 'POST',
  538. header: { 'Content-Type': 'application/json', 'Authorization': 'Bearer ' + token },
  539. data: { memberId: memberId },
  540. success: function(r) {
  541. if (r.statusCode === 200 && r.data && r.data.code === 200 && r.data.data) {
  542. self.gutInsight = r.data.data.summary || ''
  543. }
  544. }
  545. })
  546. },
  547. indicatorColor: function(status) {
  548. if (status === 'abnormal' || status === '偏高' || status === '偏低') return '#EF4444'
  549. if (status === 'warning' || status === '偏高' || status === '偏低') return '#F59E0B'
  550. return '#10B981'
  551. },
  552. statusLabel: function(status) {
  553. if (status === 'normal') return '正常'
  554. if (status === 'abnormal') return '异常'
  555. if (status === 'warning') return '警讯'
  556. return status || '正常'
  557. },
  558. // ===== EMI 分数评级 =====
  559. getScoreLevel: function(score) {
  560. if (score >= 85) return 'excellent'
  561. if (score >= 70) return 'good'
  562. if (score >= 55) return 'average'
  563. return 'low'
  564. },
  565. getScoreLevelText: function(score) {
  566. if (score >= 85) return '优秀'
  567. if (score >= 70) return '良好'
  568. if (score >= 55) return '一般'
  569. return '需提升'
  570. },
  571. // ===== 导航 =====
  572. goEmotionReport: function() {
  573. var memberId = this.currentChildId || ''
  574. uni.navigateTo({ url: '/pages/mind-detail/emotion-report?memberId=' + memberId })
  575. },
  576. goArticles: function() {
  577. uni.navigateTo({ url: '/pages/article-center/index?dimension=mind' })
  578. },
  579. onFuncClick: function(item) {
  580. if (item.needLogin && !this.isLoggedIn) {
  581. uni.showModal({
  582. title: '提示',
  583. content: '请先登录后使用此功能',
  584. success: function(res) { if (res.confirm) uni.navigateTo({ url: '/pages/login/login' }) }
  585. })
  586. return
  587. }
  588. if (item.page) nav.goPage(item.page)
  589. },
  590. // ===== 孩子列表与维度数据 =====
  591. loadChildren: function() {
  592. var self = this
  593. getChildren().then(function(res) {
  594. if (res.code === 200 && res.data) {
  595. self.children = res.data
  596. var savedChildId = uni.getStorageSync('currentChildId')
  597. var found = false
  598. for (var i = 0; i < self.children.length; i++) {
  599. if (self.children[i].memberId === savedChildId) {
  600. self.currentChildId = savedChildId
  601. found = true
  602. break
  603. }
  604. }
  605. // FIX: 不再自动选择第一个孩子。仅在用户通过 UserQuickEntry 切换时设置 currentChildId
  606. if (found) {
  607. self.loadDimensionData()
  608. self.loadEmiData()
  609. }
  610. }
  611. }).catch(function(e) {
  612. console.log('获取孩子列表失败', e)
  613. })
  614. },
  615. loadDimensionData: function() {
  616. if (this.familyMembersVisible.length > 0) {
  617. this.loadCompatibilityData()
  618. }
  619. },
  620. loadSandboxData: function() {
  621. var self = this
  622. getFamilyEnergySandbox().then(function(res) {
  623. if (res && res.data) {
  624. self.sandboxData = res.data
  625. }
  626. }).catch(function() {})
  627. },
  628. loadEnergyData: function() {
  629. var self = this
  630. if (!this.currentChildId) return
  631. getEnergyOverview(this.currentChildId).then(function(res) {
  632. if (res && res.data) {
  633. var dims = res.data.dimensions
  634. if (dims && dims.length > 0) {
  635. for (var i = 0; i < dims.length; i++) {
  636. if (dims[i] && dims[i].code === 'mind' && res.data.energyScores) {
  637. self.familyScore = res.data.energyScores.mindScore || 0
  638. }
  639. }
  640. }
  641. }
  642. }).catch(function(e) {
  643. console.log('获取能量概览失败', e)
  644. })
  645. },
  646. onFamilyMemberSelect: function(member) {
  647. this.selectedMemberId = member.id
  648. },
  649. onChildChanged: function(child) {
  650. this.currentChildId = child.memberId
  651. // FIX: 同步提交到 Vuex store
  652. this.$store.commit('switchToChild', child.memberId)
  653. this.loadDimensionData()
  654. this.loadEmiData()
  655. this.loadTraditionalCultureData()
  656. },
  657. loadFamilyMembersVisible: function() {
  658. var self = this
  659. getVisibleFamilyMembers().then(function(res) {
  660. self.familyMembersVisible = res.data || []
  661. }).catch(function(e) {
  662. console.log('获取可见家庭成员失败', e)
  663. self.familyMembersVisible = []
  664. })
  665. },
  666. loadCompatibilityData: function() {
  667. var self = this
  668. var token = uni.getStorageSync('token')
  669. uni.request({
  670. url: config.API_BASE_URL + '/api/mind/traditional/family-dashboard',
  671. method: 'POST',
  672. header: { 'Content-Type': 'application/json', 'Authorization': 'Bearer ' + token },
  673. data: {},
  674. success: function(res) {
  675. if (res.data && res.data.code === 200 && res.data.data) {
  676. self.compatibilityData = res.data.data
  677. }
  678. },
  679. fail: function() {}
  680. })
  681. },
  682. scrollToSection: function(section) {
  683. uni.pageScrollTo({ selector: '#' + section, duration: 300 })
  684. },
  685. goAssessment: function() { uni.navigateTo({ url: '/pages/assessment/apply' }) },
  686. goLogin: function() { uni.navigateTo({ url: '/pages/login/login' }) },
  687. // ===== 传统文化数据 =====
  688. // ===== 联系人 / 关系健康 =====
  689. loadContacts: function() {
  690. var self = this
  691. getContactList({}).then(function(res) {
  692. if (res.code === 200) {
  693. self.contactList = Array.isArray(res.data) ? res.data : []
  694. } else {
  695. self.contactList = []
  696. }
  697. }).catch(function() {
  698. self.contactList = []
  699. })
  700. },
  701. loadHealthAlerts: function() {
  702. var self = this
  703. getHealthAlerts().then(function(res) {
  704. if (res.code === 200) {
  705. self.healthAlerts = Array.isArray(res.data) ? res.data : []
  706. } else {
  707. self.healthAlerts = []
  708. }
  709. }).catch(function() {
  710. self.healthAlerts = []
  711. })
  712. },
  713. loadMilestones: function() {
  714. var self = this
  715. getMilestones(30).then(function(res) {
  716. if (res.code === 200) {
  717. self.milestones = Array.isArray(res.data) ? res.data : []
  718. } else {
  719. self.milestones = []
  720. }
  721. }).catch(function() {
  722. self.milestones = []
  723. })
  724. },
  725. loadTraditionalCultureData: function() {
  726. var self = this
  727. var memberId = this.currentChildId
  728. if (!memberId) {
  729. self.traditionalLoading = false
  730. return
  731. }
  732. self.traditionalLoading = true
  733. uni.request({
  734. url: config.API_BASE_URL + '/api/mind/traditional/mirror',
  735. method: 'POST',
  736. data: { memberId: memberId, memberType: 'child' },
  737. success: function(res) {
  738. self.traditionalLoading = false
  739. if (res.data && res.data.code === 200 && res.data.data) {
  740. var d = res.data.data
  741. if (d.eightCharacters || d.wuxingElements || d.zodiac || d.numSoul) {
  742. self.traditionalData = d
  743. } else {
  744. self.traditionalData = null
  745. }
  746. } else {
  747. self.traditionalData = null
  748. }
  749. },
  750. fail: function() {
  751. self.traditionalLoading = false
  752. self.traditionalData = null
  753. }
  754. })
  755. },
  756. _watchPageReady() {
  757. var self = this
  758. var unwatch = this.$watch(function() {
  759. if (self.isLoggedIn) {
  760. return !!(self.emiData || self.energyOverview)
  761. } }, function(val) {
  762. if (val) {
  763. if (unwatch) unwatch()
  764. if (self.$refs.tabTransition) self.$refs.tabTransition.markReady()
  765. }
  766. })
  767. },
  768. // ===== DAN 报告 =====
  769. loadDanReports: function() {
  770. var self = this
  771. var memberId = self.currentChildId
  772. if (!memberId) return
  773. getDanReportByChild(memberId, 'mind').then(function(res) {
  774. if (res.code === 200 && res.data) {
  775. self.danReports = res.data
  776. }
  777. }).catch(function() {})
  778. },
  779. goDanUpload: function(dimension) {
  780. uni.navigateTo({ url: '/pages/dan-assessment/report-upload' })
  781. },
  782. viewDanReport: function(report) {
  783. var reportId = report.sourceReportId || report.id
  784. uni.navigateTo({ url: '/pages/health/report-detail?reportType=dan&reportId=' + reportId })
  785. },
  786. formatDate: function(dateStr) {
  787. if (!dateStr) return ''
  788. var d = parseDate(dateStr)
  789. if (!d) return ''
  790. return d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate()
  791. }
  792. }
  793. }
  794. </script>
  795. <style scoped>
  796. .container {
  797. min-height: 100vh;
  798. background: #f5f7fa;
  799. padding-bottom: 120rpx;
  800. }
  801. /* ===== 心·心理 标题栏 ===== */
  802. .section-title-bar {
  803. display: flex;
  804. flex-direction: row;
  805. align-items: center;
  806. margin: 20rpx 30rpx 10rpx;
  807. padding: 16rpx 24rpx;
  808. background: linear-gradient(135deg, #8B5CF6, #A78BFA);
  809. border-radius: 20rpx;
  810. box-shadow: 0 4rpx 16rpx rgba(139,92,246,0.25);
  811. }
  812. .section-title-icon {
  813. font-size: 32rpx;
  814. color: #fff;
  815. margin-right: 12rpx;
  816. }
  817. .section-title-text {
  818. font-size: 32rpx;
  819. font-weight: bold;
  820. color: #fff;
  821. }
  822. /* ===== 心理报告上传卡片 ===== */
  823. .mind-report-section {
  824. margin: 20rpx 30rpx;
  825. }
  826. .mind-report-card {
  827. display: flex;
  828. flex-direction: row;
  829. align-items: center;
  830. background: linear-gradient(135deg, #F3E8FF, #FCE4EC);
  831. border-radius: 20rpx;
  832. padding: 28rpx 24rpx;
  833. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  834. }
  835. .mind-report-left {
  836. width: 100rpx;
  837. height: 100rpx;
  838. background: rgba(255,255,255,0.7);
  839. border-radius: 20rpx;
  840. display: flex;
  841. align-items: center;
  842. justify-content: center;
  843. margin-right: 20rpx;
  844. flex-shrink: 0;
  845. }
  846. .mind-report-icon {
  847. font-size: 52rpx;
  848. }
  849. .mind-report-right {
  850. flex: 1;
  851. }
  852. .mind-report-title {
  853. font-size: 30rpx;
  854. font-weight: bold;
  855. color: #7C3AED;
  856. display: block;
  857. margin-bottom: 6rpx;
  858. }
  859. .mind-report-desc {
  860. font-size: 22rpx;
  861. color: #A855F7;
  862. line-height: 1.5;
  863. display: block;
  864. margin-bottom: 10rpx;
  865. }
  866. .mind-report-tags {
  867. display: flex;
  868. flex-direction: row;
  869. gap: 10rpx;
  870. }
  871. .mind-tag {
  872. font-size: 20rpx;
  873. color: #7C3AED;
  874. background: rgba(255,255,255,0.6);
  875. padding: 4rpx 14rpx;
  876. border-radius: 20rpx;
  877. }
  878. .mind-report-arrow {
  879. font-size: 36rpx;
  880. color: #C084FC;
  881. margin-left: 10rpx;
  882. flex-shrink: 0;
  883. }
  884. .mind-report-card:active {
  885. opacity: 0.7;
  886. }
  887. .mind-report-list {
  888. margin-top: 12rpx;
  889. }
  890. .mind-report-item {
  891. display: flex;
  892. flex-direction: row;
  893. align-items: center;
  894. background: #fff;
  895. border-radius: 14rpx;
  896. padding: 20rpx 20rpx;
  897. margin-bottom: 8rpx;
  898. box-shadow: 0 1rpx 6rpx rgba(0,0,0,0.05);
  899. }
  900. .mind-report-item:active {
  901. opacity: 0.7;
  902. }
  903. .mind-report-item-icon {
  904. font-size: 28rpx;
  905. margin-right: 14rpx;
  906. }
  907. .mind-report-item-name {
  908. font-size: 26rpx;
  909. color: #333;
  910. flex: 1;
  911. }
  912. .mind-report-item-date {
  913. font-size: 22rpx;
  914. color: #999;
  915. margin-right: 14rpx;
  916. }
  917. .mind-report-item-status {
  918. font-size: 22rpx;
  919. padding: 2rpx 12rpx;
  920. border-radius: 20rpx;
  921. }
  922. .mind-report-item-status.parsed {
  923. color: #7C3AED;
  924. background: #F3E8FF;
  925. }
  926. .mind-report-item-status.pending {
  927. color: #999;
  928. background: #F5F5F5;
  929. }
  930. .mind-report-empty {
  931. display: flex;
  932. flex-direction: row;
  933. align-items: center;
  934. justify-content: center;
  935. padding: 24rpx;
  936. margin-top: 8rpx;
  937. }
  938. .mind-report-empty-icon {
  939. font-size: 32rpx;
  940. margin-right: 10rpx;
  941. }
  942. .mind-report-empty-text {
  943. font-size: 24rpx;
  944. color: #bbb;
  945. }
  946. /* ===== 心理能量概况 ===== */
  947. .energy-overview {
  948. display: flex;
  949. flex-direction: row;
  950. margin: 20rpx 30rpx;
  951. background: #fff;
  952. border-radius: 20rpx;
  953. padding: 24rpx 16rpx;
  954. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  955. justify-content: space-around;
  956. }
  957. .energy-badge {
  958. display: flex;
  959. flex-direction: column;
  960. align-items: center;
  961. flex: 1;
  962. }
  963. .badge-icon {
  964. font-size: 36rpx;
  965. margin-bottom: 8rpx;
  966. }
  967. .badge-value {
  968. font-size: 36rpx;
  969. font-weight: bold;
  970. color: #333;
  971. }
  972. .badge-label {
  973. font-size: 20rpx;
  974. color: #999;
  975. margin-top: 4rpx;
  976. }
  977. /* ===== EMI 四维条形图 ===== */
  978. .emi-section {
  979. margin: 20rpx 30rpx;
  980. }
  981. .emi-card {
  982. background: #fff;
  983. border-radius: 24rpx;
  984. padding: 30rpx;
  985. box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.06);
  986. }
  987. .emi-card-title {
  988. font-size: 30rpx;
  989. font-weight: bold;
  990. color: #333;
  991. display: block;
  992. }
  993. .personality-header {
  994. display: flex;
  995. flex-direction: row;
  996. align-items: center;
  997. justify-content: space-between;
  998. margin-bottom: 24rpx;
  999. }
  1000. .test-btn {
  1001. background: #8B5CF6;
  1002. padding: 8rpx 28rpx;
  1003. border-radius: 30rpx;
  1004. }
  1005. .test-btn-text {
  1006. font-size: 24rpx;
  1007. color: #fff;
  1008. font-weight: 500;
  1009. }
  1010. .emi-bar-item {
  1011. display: flex;
  1012. flex-direction: row;
  1013. align-items: center;
  1014. margin-bottom: 20rpx;
  1015. }
  1016. .emi-bar-label {
  1017. font-size: 24rpx;
  1018. color: #666;
  1019. width: 120rpx;
  1020. flex-shrink: 0;
  1021. }
  1022. .emi-bar-track {
  1023. flex: 1;
  1024. height: 20rpx;
  1025. background: #f0f0f0;
  1026. border-radius: 10rpx;
  1027. overflow: hidden;
  1028. margin: 0 16rpx;
  1029. }
  1030. .emi-bar-fill {
  1031. height: 100%;
  1032. border-radius: 10rpx;
  1033. transition: width 0.5s;
  1034. }
  1035. .emi-bar-score {
  1036. font-size: 26rpx;
  1037. font-weight: bold;
  1038. color: #333;
  1039. width: 60rpx;
  1040. text-align: right;
  1041. flex-shrink: 0;
  1042. }
  1043. .emi-bar-level {
  1044. font-size: 20rpx;
  1045. width: 80rpx;
  1046. text-align: right;
  1047. flex-shrink: 0;
  1048. }
  1049. .level-excellent { color: #10B981; }
  1050. .level-good { color: #3B82F6; }
  1051. .level-average { color: #F97316; }
  1052. .level-low { color: #EF4444; }
  1053. .emi-footer {
  1054. display: flex;
  1055. flex-direction: row;
  1056. justify-content: space-between;
  1057. align-items: center;
  1058. margin-top: 20rpx;
  1059. padding-top: 20rpx;
  1060. border-top: 1rpx solid #f0f0f0;
  1061. }
  1062. .emi-overall {
  1063. font-size: 28rpx;
  1064. font-weight: bold;
  1065. color: #FF6B35;
  1066. }
  1067. .emi-link {
  1068. display: flex;
  1069. flex-direction: row;
  1070. align-items: center;
  1071. }
  1072. .emi-link-text {
  1073. font-size: 26rpx;
  1074. color: #FF6B35;
  1075. font-weight: 500;
  1076. }
  1077. .emi-link-arrow {
  1078. font-size: 26rpx;
  1079. color: #FF6B35;
  1080. margin-left: 8rpx;
  1081. }
  1082. /* ===== EMI 心理报告卡片 ===== */
  1083. .emi-card {
  1084. margin: 30rpx;
  1085. background: #fff;
  1086. border-radius: 24rpx;
  1087. padding: 30rpx;
  1088. box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.06);
  1089. }
  1090. .emi-header {
  1091. margin-bottom: 24rpx;
  1092. }
  1093. .emi-title {
  1094. font-size: 30rpx;
  1095. font-weight: bold;
  1096. color: #333;
  1097. display: block;
  1098. }
  1099. .emi-overall-wrap {
  1100. display: flex;
  1101. flex-direction: column;
  1102. align-items: center;
  1103. padding: 32rpx 0;
  1104. background: linear-gradient(135deg, #FF6B35, #FFD700);
  1105. border-radius: 16rpx;
  1106. margin: 20rpx 0;
  1107. color: #fff;
  1108. }
  1109. .emi-overall-label {
  1110. font-size: 26rpx;
  1111. margin-bottom: 6rpx;
  1112. }
  1113. .emi-overall-value {
  1114. font-size: 64rpx;
  1115. font-weight: bold;
  1116. margin-bottom: 6rpx;
  1117. }
  1118. .emi-overall-level {
  1119. font-size: 24rpx;
  1120. padding: 4rpx 16rpx;
  1121. border-radius: 12rpx;
  1122. background: rgba(255,255,255,0.2);
  1123. }
  1124. .emi-dimensions {
  1125. display: flex;
  1126. flex-direction: column;
  1127. gap: 20rpx;
  1128. }
  1129. .emi-dimension {
  1130. display: flex;
  1131. flex-direction: column;
  1132. }
  1133. .emi-dim-header {
  1134. display: flex;
  1135. flex-direction: row;
  1136. justify-content: space-between;
  1137. align-items: center;
  1138. margin-bottom: 8rpx;
  1139. }
  1140. .emi-dim-label {
  1141. font-size: 26rpx;
  1142. color: #666;
  1143. }
  1144. .emi-dim-values {
  1145. display: flex;
  1146. flex-direction: row;
  1147. align-items: center;
  1148. }
  1149. .emi-dim-score {
  1150. font-size: 28rpx;
  1151. font-weight: bold;
  1152. color: #FF6B35;
  1153. margin-right: 12rpx;
  1154. }
  1155. .emi-dim-level {
  1156. font-size: 20rpx;
  1157. padding: 2rpx 12rpx;
  1158. border-radius: 8rpx;
  1159. }
  1160. .emi-dim-bar {
  1161. height: 14rpx;
  1162. background: #f0f0f0;
  1163. border-radius: 7rpx;
  1164. overflow: hidden;
  1165. }
  1166. .emi-dim-bar-fill {
  1167. height: 100%;
  1168. border-radius: 7rpx;
  1169. transition: width 0.5s;
  1170. }
  1171. .emi-footer {
  1172. display: flex;
  1173. justify-content: flex-end;
  1174. align-items: center;
  1175. padding-top: 20rpx;
  1176. border-top: 1rpx solid #f0f0f0;
  1177. margin-top: 20rpx;
  1178. }
  1179. .emi-footer-text {
  1180. font-size: 24rpx;
  1181. color: #F97316;
  1182. font-weight: 500;
  1183. }
  1184. .emi-footer-icon {
  1185. font-size: 24rpx;
  1186. margin-left: 8rpx;
  1187. }
  1188. .level-excellent { color: #10B981; background: #ECFDF5; }
  1189. .level-good { color: #3B82F6; background: #EFF6FF; }
  1190. .level-average { color: #F97316; background: #FFF7ED; }
  1191. .level-low { color: #EF4444; background: #FEF2F2; }
  1192. /* 雷达图内的空状态 */
  1193. .placeholder-content {
  1194. display: flex;
  1195. flex-direction: column;
  1196. align-items: center;
  1197. padding: 40rpx 20rpx;
  1198. }
  1199. /* ===== 占位卡 ===== */
  1200. .placeholder-card {
  1201. margin: 30rpx;
  1202. background: #fff;
  1203. border-radius: 24rpx;
  1204. padding: 60rpx 40rpx;
  1205. display: flex;
  1206. flex-direction: column;
  1207. align-items: center;
  1208. box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.06);
  1209. }
  1210. .placeholder-icon {
  1211. font-size: 80rpx;
  1212. margin-bottom: 20rpx;
  1213. }
  1214. .placeholder-title {
  1215. font-size: 32rpx;
  1216. font-weight: bold;
  1217. color: #333;
  1218. margin-bottom: 16rpx;
  1219. }
  1220. .placeholder-desc {
  1221. font-size: 26rpx;
  1222. color: #999;
  1223. text-align: center;
  1224. line-height: 1.6;
  1225. margin-bottom: 30rpx;
  1226. }
  1227. .placeholder-btn {
  1228. background: linear-gradient(135deg, #FF6B35, #FFD700);
  1229. color: #fff;
  1230. font-size: 28rpx;
  1231. font-weight: bold;
  1232. padding: 16rpx 64rpx;
  1233. border-radius: 40rpx;
  1234. box-shadow: 0 4rpx 16rpx rgba(255,107,53,0.3);
  1235. }
  1236. /* ===== 传统文化卡片 ===== */
  1237. .culture-section {
  1238. margin: 20rpx 30rpx;
  1239. }
  1240. .culture-card {
  1241. background: #fff;
  1242. border-radius: 20rpx;
  1243. padding: 24rpx;
  1244. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.04);
  1245. margin-bottom: 16rpx;
  1246. }
  1247. .culture-card-header {
  1248. display: flex;
  1249. align-items: center;
  1250. margin-bottom: 16rpx;
  1251. }
  1252. .culture-card-icon {
  1253. font-size: 32rpx;
  1254. margin-right: 10rpx;
  1255. }
  1256. .culture-card-title {
  1257. font-size: 28rpx;
  1258. font-weight: 600;
  1259. color: #333;
  1260. }
  1261. .culture-card-body {
  1262. font-size: 24rpx;
  1263. color: #666;
  1264. line-height: 1.6;
  1265. }
  1266. /* 八字四柱 */
  1267. .bazi-grid {
  1268. display: flex;
  1269. justify-content: space-around;
  1270. padding: 8rpx 0;
  1271. }
  1272. .bazi-column {
  1273. display: flex;
  1274. flex-direction: column;
  1275. align-items: center;
  1276. }
  1277. .bazi-pillar-label {
  1278. font-size: 22rpx;
  1279. color: #999;
  1280. margin-bottom: 6rpx;
  1281. }
  1282. .bazi-pillar-value {
  1283. font-size: 32rpx;
  1284. font-weight: 700;
  1285. color: #8B5CF6;
  1286. background: #F5F0FF;
  1287. padding: 10rpx 14rpx;
  1288. border-radius: 10rpx;
  1289. }
  1290. /* 五行能量 */
  1291. .wuxing-list {
  1292. display: flex;
  1293. flex-direction: column;
  1294. gap: 12rpx;
  1295. }
  1296. .wuxing-item {
  1297. display: flex;
  1298. align-items: center;
  1299. gap: 12rpx;
  1300. }
  1301. .wuxing-label {
  1302. font-size: 26rpx;
  1303. font-weight: 600;
  1304. width: 44rpx;
  1305. text-align: center;
  1306. }
  1307. .wuxing-bar-track {
  1308. flex: 1;
  1309. height: 20rpx;
  1310. background: #F0F0F0;
  1311. border-radius: 10rpx;
  1312. overflow: hidden;
  1313. }
  1314. .wuxing-bar-fill {
  1315. height: 100%;
  1316. border-radius: 10rpx;
  1317. }
  1318. .wuxing-value {
  1319. font-size: 22rpx;
  1320. color: #666;
  1321. width: 56rpx;
  1322. text-align: right;
  1323. }
  1324. .energy-card {
  1325. margin-top: 20rpx;
  1326. padding: 24rpx 20rpx;
  1327. background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  1328. border-radius: 20rpx;
  1329. position: relative;
  1330. overflow: hidden;
  1331. }
  1332. .energy-card::before {
  1333. content: '';
  1334. position: absolute;
  1335. top: -60rpx;
  1336. right: -60rpx;
  1337. width: 200rpx;
  1338. height: 200rpx;
  1339. background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
  1340. border-radius: 50%;
  1341. }
  1342. .energy-card::after {
  1343. content: '';
  1344. position: absolute;
  1345. bottom: -40rpx;
  1346. left: -40rpx;
  1347. width: 160rpx;
  1348. height: 160rpx;
  1349. background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  1350. border-radius: 50%;
  1351. }
  1352. .energy-header {
  1353. display: flex;
  1354. align-items: center;
  1355. margin-bottom: 14rpx;
  1356. position: relative;
  1357. z-index: 1;
  1358. }
  1359. .energy-icon {
  1360. font-size: 32rpx;
  1361. margin-right: 10rpx;
  1362. }
  1363. .energy-label {
  1364. font-size: 28rpx;
  1365. font-weight: 700;
  1366. background: linear-gradient(135deg, #F59E0B, #FF6B9D);
  1367. -webkit-background-clip: text;
  1368. -webkit-text-fill-color: transparent;
  1369. background-clip: text;
  1370. }
  1371. .energy-divider {
  1372. height: 2rpx;
  1373. background: linear-gradient(90deg, rgba(255,215,0,0.5), rgba(255,107,157,0.3), transparent);
  1374. margin-bottom: 18rpx;
  1375. position: relative;
  1376. z-index: 1;
  1377. }
  1378. .energy-quote {
  1379. font-size: 26rpx;
  1380. color: #E2E8F0;
  1381. line-height: 1.8;
  1382. display: block;
  1383. margin-bottom: 14rpx;
  1384. position: relative;
  1385. z-index: 1;
  1386. padding-left: 20rpx;
  1387. letter-spacing: 1rpx;
  1388. }
  1389. .energy-quote::before {
  1390. content: '';
  1391. position: absolute;
  1392. left: 0;
  1393. top: 4rpx;
  1394. bottom: 4rpx;
  1395. width: 4rpx;
  1396. background: linear-gradient(180deg, #F59E0B, #FF6B9D);
  1397. border-radius: 2rpx;
  1398. }
  1399. .energy-advice {
  1400. font-size: 24rpx;
  1401. color: #94A3B8;
  1402. line-height: 1.7;
  1403. display: block;
  1404. position: relative;
  1405. z-index: 1;
  1406. padding: 14rpx 18rpx;
  1407. background: rgba(255,255,255,0.05);
  1408. border-radius: 12rpx;
  1409. border: 1rpx solid rgba(255,255,255,0.08);
  1410. }
  1411. .energy-footer {
  1412. display: flex;
  1413. justify-content: center;
  1414. gap: 12rpx;
  1415. margin-top: 18rpx;
  1416. position: relative;
  1417. z-index: 1;
  1418. }
  1419. .energy-footer-dot {
  1420. width: 8rpx;
  1421. height: 8rpx;
  1422. border-radius: 50%;
  1423. background: rgba(255,255,255,0.3);
  1424. }
  1425. .energy-footer-dot:nth-child(2) {
  1426. background: rgba(255,215,0,0.6);
  1427. width: 10rpx;
  1428. height: 10rpx;
  1429. }
  1430. /* 星座+灵数双栏 */
  1431. .culture-dual {
  1432. display: flex;
  1433. gap: 16rpx;
  1434. }
  1435. .culture-dual-item {
  1436. flex: 1;
  1437. background: #fff;
  1438. border-radius: 20rpx;
  1439. padding: 20rpx;
  1440. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.04);
  1441. display: flex;
  1442. flex-direction: column;
  1443. align-items: center;
  1444. }
  1445. .culture-dual-icon {
  1446. font-size: 36rpx;
  1447. margin-bottom: 8rpx;
  1448. }
  1449. .culture-dual-label {
  1450. font-size: 22rpx;
  1451. color: #999;
  1452. margin-bottom: 6rpx;
  1453. }
  1454. .culture-dual-value {
  1455. font-size: 28rpx;
  1456. font-weight: 700;
  1457. color: #8B5CF6;
  1458. }
  1459. .culture-empty {
  1460. text-align: center;
  1461. padding: 30rpx 0;
  1462. color: #bbb;
  1463. font-size: 24rpx;
  1464. }
  1465. /* ===== 每日心理 ===== */
  1466. .tip-card {
  1467. background: #fff;
  1468. border-radius: 20rpx;
  1469. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  1470. display: flex;
  1471. flex-direction: row;
  1472. overflow: hidden;
  1473. }
  1474. .tip-left-bar {
  1475. width: 6rpx;
  1476. background: linear-gradient(180deg, #5B9BD5, #8FC5E8);
  1477. flex-shrink: 0;
  1478. }
  1479. .tip-body {
  1480. flex: 1;
  1481. padding: 28rpx 24rpx;
  1482. }
  1483. .tip-title {
  1484. font-size: 28rpx;
  1485. font-weight: bold;
  1486. color: #5B9BD5;
  1487. display: block;
  1488. margin-bottom: 12rpx;
  1489. }
  1490. .tip-content {
  1491. font-size: 24rpx;
  1492. color: #666;
  1493. line-height: 1.6;
  1494. display: block;
  1495. margin-bottom: 16rpx;
  1496. }
  1497. .tip-footer {
  1498. display: flex;
  1499. flex-direction: row;
  1500. justify-content: flex-end;
  1501. }
  1502. .tip-source {
  1503. font-size: 22rpx;
  1504. color: #bbb;
  1505. }
  1506. /* ===== 通用区块 ===== */
  1507. .section {
  1508. margin: 20rpx 30rpx;
  1509. }
  1510. .section-header {
  1511. margin-bottom: 20rpx;
  1512. }
  1513. .section-title {
  1514. font-size: 30rpx;
  1515. font-weight: bold;
  1516. color: #333;
  1517. }
  1518. /* ===== 推荐阅读 ===== */
  1519. .article-list {
  1520. display: flex;
  1521. flex-direction: column;
  1522. }
  1523. .article-card {
  1524. background: #fff;
  1525. border-radius: 20rpx;
  1526. padding: 28rpx 24rpx;
  1527. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  1528. margin-bottom: 20rpx;
  1529. }
  1530. .article-category {
  1531. display: inline-block;
  1532. padding: 4rpx 18rpx;
  1533. border-radius: 20rpx;
  1534. margin-bottom: 14rpx;
  1535. }
  1536. .article-category-text {
  1537. font-size: 20rpx;
  1538. color: #fff;
  1539. font-weight: 500;
  1540. }
  1541. .article-title {
  1542. font-size: 28rpx;
  1543. font-weight: bold;
  1544. color: #333;
  1545. display: block;
  1546. margin-bottom: 10rpx;
  1547. }
  1548. .article-summary {
  1549. font-size: 24rpx;
  1550. color: #888;
  1551. line-height: 1.5;
  1552. display: block;
  1553. margin-bottom: 20rpx;
  1554. }
  1555. .article-meta {
  1556. display: flex;
  1557. flex-direction: row;
  1558. align-items: center;
  1559. justify-content: space-between;
  1560. }
  1561. .meta-item {
  1562. display: flex;
  1563. flex-direction: row;
  1564. align-items: center;
  1565. margin-right: 20rpx;
  1566. }
  1567. .meta-icon {
  1568. font-size: 22rpx;
  1569. margin-right: 4rpx;
  1570. }
  1571. .meta-text {
  1572. font-size: 22rpx;
  1573. color: #bbb;
  1574. }
  1575. .article-date {
  1576. font-size: 22rpx;
  1577. color: #bbb;
  1578. margin-left: auto;
  1579. }
  1580. /* ===== 功能区入口 ===== */
  1581. .func-section {
  1582. margin: 20rpx 30rpx;
  1583. }
  1584. .func-grid {
  1585. display: flex;
  1586. flex-direction: column;
  1587. gap: 16rpx;
  1588. background: #fff;
  1589. border-radius: 20rpx;
  1590. padding: 24rpx 16rpx;
  1591. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  1592. }
  1593. .func-row {
  1594. display: flex;
  1595. flex-direction: row;
  1596. justify-content: space-between;
  1597. }
  1598. .func-item {
  1599. display: flex;
  1600. flex-direction: column;
  1601. align-items: center;
  1602. flex: 1;
  1603. }
  1604. .func-icon-wrap {
  1605. width: 80rpx;
  1606. height: 80rpx;
  1607. border-radius: 40rpx;
  1608. background: linear-gradient(135deg, #D6EAF8, #EBF2FA);
  1609. display: flex;
  1610. align-items: center;
  1611. justify-content: center;
  1612. margin-bottom: 10rpx;
  1613. }
  1614. .func-icon {
  1615. font-size: 40rpx;
  1616. }
  1617. .func-label {
  1618. font-size: 22rpx;
  1619. color: #666;
  1620. font-weight: 500;
  1621. }
  1622. .func-item:active {
  1623. opacity: 0.7;
  1624. }
  1625. /* ===== 底部 ===== */
  1626. .bottom-spacer {
  1627. height: 120rpx;
  1628. }
  1629. /* ===== 肠脑轴 ===== */
  1630. .gut-insight-text {
  1631. font-size: 24rpx;
  1632. color: #666;
  1633. margin-bottom: 16rpx;
  1634. padding: 12rpx 16rpx;
  1635. background: #F0FFF4;
  1636. border-radius: 12rpx;
  1637. line-height: 1.6;
  1638. }
  1639. .gut-indicator-list {
  1640. display: flex;
  1641. flex-direction: column;
  1642. gap: 12rpx;
  1643. }
  1644. .gut-indicator-item {
  1645. display: flex;
  1646. align-items: center;
  1647. gap: 12rpx;
  1648. }
  1649. .gut-indicator-left {
  1650. width: 80rpx;
  1651. flex-shrink: 0;
  1652. }
  1653. .gut-indicator-name {
  1654. font-size: 22rpx;
  1655. color: #666;
  1656. }
  1657. .gut-indicator-bar-track {
  1658. flex: 1;
  1659. height: 16rpx;
  1660. background: #F0F0F0;
  1661. border-radius: 8rpx;
  1662. overflow: hidden;
  1663. }
  1664. .gut-indicator-bar-fill {
  1665. height: 100%;
  1666. border-radius: 8rpx;
  1667. transition: width 0.3s;
  1668. }
  1669. .gut-indicator-value {
  1670. font-size: 22rpx;
  1671. color: #666;
  1672. width: 60rpx;
  1673. text-align: right;
  1674. }
  1675. .gut-indicator-status {
  1676. font-size: 20rpx;
  1677. padding: 2rpx 12rpx;
  1678. border-radius: 10rpx;
  1679. width: 60rpx;
  1680. text-align: center;
  1681. }
  1682. .status-normal {
  1683. background: #D1FAE5;
  1684. color: #059669;
  1685. }
  1686. .status-abnormal {
  1687. background: #FEE2E2;
  1688. color: #DC2626;
  1689. }
  1690. .status-warning {
  1691. background: #FEF3C7;
  1692. color: #D97706;
  1693. }
  1694. /* ===== 关键信息(家庭+个人) ===== */
  1695. .key-info-card {
  1696. background: #fff;
  1697. border-radius: 20rpx;
  1698. padding: 24rpx;
  1699. margin-top: 20rpx;
  1700. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  1701. }
  1702. .key-info-header {
  1703. display: flex;
  1704. align-items: center;
  1705. margin-bottom: 20rpx;
  1706. }
  1707. .key-info-icon {
  1708. font-size: 28rpx;
  1709. margin-right: 8rpx;
  1710. }
  1711. .key-info-title {
  1712. font-size: 28rpx;
  1713. font-weight: 600;
  1714. color: #333;
  1715. }
  1716. .key-info-body {
  1717. display: flex;
  1718. flex-direction: row;
  1719. gap: 20rpx;
  1720. }
  1721. .key-info-col {
  1722. flex: 1;
  1723. background: #F8F9FA;
  1724. border-radius: 14rpx;
  1725. padding: 16rpx;
  1726. min-width: 0;
  1727. }
  1728. .ki-subtitle {
  1729. font-size: 22rpx;
  1730. color: #999;
  1731. margin-bottom: 12rpx;
  1732. font-weight: 500;
  1733. }
  1734. .ki-row {
  1735. display: flex;
  1736. align-items: center;
  1737. margin-bottom: 10rpx;
  1738. flex-wrap: nowrap;
  1739. }
  1740. .ki-row:last-child {
  1741. margin-bottom: 0;
  1742. }
  1743. .ki-label {
  1744. font-size: 22rpx;
  1745. color: #888;
  1746. margin-right: 8rpx;
  1747. white-space: nowrap;
  1748. }
  1749. .ki-dot {
  1750. width: 16rpx;
  1751. height: 16rpx;
  1752. border-radius: 50%;
  1753. margin-right: 6rpx;
  1754. flex-shrink: 0;
  1755. }
  1756. .ki-valuel {
  1757. font-size: 24rpx;
  1758. color: #333;
  1759. font-weight: 500;
  1760. white-space: nowrap;
  1761. }
  1762. .ki-valued {
  1763. font-size: 24rpx;
  1764. color: #333;
  1765. font-weight: 500;
  1766. }
  1767. .ki-swatch {
  1768. width: 28rpx;
  1769. height: 28rpx;
  1770. border-radius: 50%;
  1771. margin-right: 6rpx;
  1772. border: 2rpx solid rgba(0,0,0,0.06);
  1773. flex-shrink: 0;
  1774. }
  1775. .ki-num {
  1776. font-size: 30rpx;
  1777. font-weight: 700;
  1778. color: #FF6B9D;
  1779. }
  1780. .ki-fortune {
  1781. font-size: 24rpx;
  1782. font-weight: 700;
  1783. padding: 2rpx 12rpx;
  1784. border-radius: 10rpx;
  1785. }
  1786. .ki-fortune-0 {
  1787. color: #D32F2F;
  1788. background: #FFEBEE;
  1789. }
  1790. .ki-fortune-1 {
  1791. color: #E65100;
  1792. background: #FFF3E0;
  1793. }
  1794. .ki-fortune-2 {
  1795. color: #F9A825;
  1796. background: #FFFDE7;
  1797. }
  1798. .ki-fortune-3 {
  1799. color: #7B1FA2;
  1800. background: #F3E5F5;
  1801. }
  1802. .ki-fortune-4 {
  1803. color: #B71C1C;
  1804. background: #FFCDD2;
  1805. }
  1806. .ki-insight {
  1807. display: flex;
  1808. align-items: flex-start;
  1809. margin-top: 16rpx;
  1810. padding: 16rpx;
  1811. background: #FFF8F0;
  1812. border-radius: 12rpx;
  1813. }
  1814. .ki-insight-icon {
  1815. font-size: 24rpx;
  1816. margin-right: 8rpx;
  1817. flex-shrink: 0;
  1818. }
  1819. .ki-insight-text {
  1820. font-size: 22rpx;
  1821. color: #8B6914;
  1822. line-height: 1.5;
  1823. }
  1824. .ki-footer {
  1825. margin-top: 16rpx;
  1826. text-align: center;
  1827. padding: 12rpx;
  1828. font-size: 24rpx;
  1829. color: #8B5CF6;
  1830. font-weight: 500;
  1831. background: #F5F3FF;
  1832. border-radius: 12rpx;
  1833. }
  1834. .ki-footer:active {
  1835. opacity: 0.7;
  1836. }
  1837. /* DAN 报告卡片 */
  1838. .dan-card {
  1839. background: #fff;
  1840. border-radius: 16rpx;
  1841. padding: 24rpx;
  1842. margin-bottom: 16rpx;
  1843. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.06);
  1844. }
  1845. .dan-card-header {
  1846. display: flex;
  1847. justify-content: space-between;
  1848. align-items: center;
  1849. margin-bottom: 12rpx;
  1850. }
  1851. .dan-report-date {
  1852. font-size: 26rpx;
  1853. color: #666;
  1854. }
  1855. .dan-status {
  1856. font-size: 22rpx;
  1857. padding: 4rpx 16rpx;
  1858. border-radius: 8rpx;
  1859. }
  1860. .dan-status.confirmed {
  1861. background: #D1FAE5;
  1862. color: #065F46;
  1863. }
  1864. .dan-status.pending {
  1865. background: #FEF3C7;
  1866. color: #92400E;
  1867. }
  1868. .dan-report-desc {
  1869. font-size: 28rpx;
  1870. color: #333;
  1871. font-weight: 500;
  1872. margin-bottom: 12rpx;
  1873. display: block;
  1874. }
  1875. .dan-card-footer {
  1876. text-align: right;
  1877. }
  1878. .dan-view-link {
  1879. font-size: 26rpx;
  1880. color: #6366F1;
  1881. }
  1882. .section-header {
  1883. display: flex;
  1884. justify-content: space-between;
  1885. align-items: center;
  1886. margin-bottom: 20rpx;
  1887. }
  1888. .section-title {
  1889. font-size: 32rpx;
  1890. font-weight: 700;
  1891. color: #333;
  1892. }
  1893. .section-more {
  1894. font-size: 26rpx;
  1895. color: #6366F1;
  1896. padding: 8rpx 16rpx;
  1897. }
  1898. /* 品牌定位语 */
  1899. .brand-strap {
  1900. margin: 16rpx 30rpx 0;
  1901. padding: 20rpx 28rpx;
  1902. background: linear-gradient(135deg, #FFF0F5, rgba(255,107,157,0.12));
  1903. border-radius: 16rpx;
  1904. border-left: 4rpx solid #FF6B9D;
  1905. }
  1906. .brand-strap-text {
  1907. font-size: 26rpx;
  1908. color: #9D174D;
  1909. font-weight: 500;
  1910. }
  1911. /* 每月引导语 */
  1912. .monthly-guidance {
  1913. margin: 16rpx 30rpx 0;
  1914. padding: 20rpx 28rpx;
  1915. background: linear-gradient(135deg, #FFF0F5, rgba(255,107,157,0.08));
  1916. border-radius: 16rpx;
  1917. border-left: 4rpx solid #FF6B9D;
  1918. display: flex;
  1919. align-items: center;
  1920. gap: 12rpx;
  1921. }
  1922. .guidance-icon { font-size: 32rpx; }
  1923. .guidance-text {
  1924. font-size: 26rpx;
  1925. color: #9D174D;
  1926. font-weight: 500;
  1927. }
  1928. </style>