index.vue 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995
  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. uni.navigateTo({ url: '/pages/dan-assessment/report-upload?draftId=' + report.id })
  784. },
  785. formatDate: function(dateStr) {
  786. if (!dateStr) return ''
  787. var d = parseDate(dateStr)
  788. if (!d) return ''
  789. return d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate()
  790. }
  791. }
  792. }
  793. </script>
  794. <style scoped>
  795. .container {
  796. min-height: 100vh;
  797. background: #f5f7fa;
  798. padding-bottom: 120rpx;
  799. }
  800. /* ===== 心·心理 标题栏 ===== */
  801. .section-title-bar {
  802. display: flex;
  803. flex-direction: row;
  804. align-items: center;
  805. margin: 20rpx 30rpx 10rpx;
  806. padding: 16rpx 24rpx;
  807. background: linear-gradient(135deg, #8B5CF6, #A78BFA);
  808. border-radius: 20rpx;
  809. box-shadow: 0 4rpx 16rpx rgba(139,92,246,0.25);
  810. }
  811. .section-title-icon {
  812. font-size: 32rpx;
  813. color: #fff;
  814. margin-right: 12rpx;
  815. }
  816. .section-title-text {
  817. font-size: 32rpx;
  818. font-weight: bold;
  819. color: #fff;
  820. }
  821. /* ===== 心理报告上传卡片 ===== */
  822. .mind-report-section {
  823. margin: 20rpx 30rpx;
  824. }
  825. .mind-report-card {
  826. display: flex;
  827. flex-direction: row;
  828. align-items: center;
  829. background: linear-gradient(135deg, #F3E8FF, #FCE4EC);
  830. border-radius: 20rpx;
  831. padding: 28rpx 24rpx;
  832. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  833. }
  834. .mind-report-left {
  835. width: 100rpx;
  836. height: 100rpx;
  837. background: rgba(255,255,255,0.7);
  838. border-radius: 20rpx;
  839. display: flex;
  840. align-items: center;
  841. justify-content: center;
  842. margin-right: 20rpx;
  843. flex-shrink: 0;
  844. }
  845. .mind-report-icon {
  846. font-size: 52rpx;
  847. }
  848. .mind-report-right {
  849. flex: 1;
  850. }
  851. .mind-report-title {
  852. font-size: 30rpx;
  853. font-weight: bold;
  854. color: #7C3AED;
  855. display: block;
  856. margin-bottom: 6rpx;
  857. }
  858. .mind-report-desc {
  859. font-size: 22rpx;
  860. color: #A855F7;
  861. line-height: 1.5;
  862. display: block;
  863. margin-bottom: 10rpx;
  864. }
  865. .mind-report-tags {
  866. display: flex;
  867. flex-direction: row;
  868. gap: 10rpx;
  869. }
  870. .mind-tag {
  871. font-size: 20rpx;
  872. color: #7C3AED;
  873. background: rgba(255,255,255,0.6);
  874. padding: 4rpx 14rpx;
  875. border-radius: 20rpx;
  876. }
  877. .mind-report-arrow {
  878. font-size: 36rpx;
  879. color: #C084FC;
  880. margin-left: 10rpx;
  881. flex-shrink: 0;
  882. }
  883. .mind-report-card:active {
  884. opacity: 0.7;
  885. }
  886. .mind-report-list {
  887. margin-top: 12rpx;
  888. }
  889. .mind-report-item {
  890. display: flex;
  891. flex-direction: row;
  892. align-items: center;
  893. background: #fff;
  894. border-radius: 14rpx;
  895. padding: 20rpx 20rpx;
  896. margin-bottom: 8rpx;
  897. box-shadow: 0 1rpx 6rpx rgba(0,0,0,0.05);
  898. }
  899. .mind-report-item:active {
  900. opacity: 0.7;
  901. }
  902. .mind-report-item-icon {
  903. font-size: 28rpx;
  904. margin-right: 14rpx;
  905. }
  906. .mind-report-item-name {
  907. font-size: 26rpx;
  908. color: #333;
  909. flex: 1;
  910. }
  911. .mind-report-item-date {
  912. font-size: 22rpx;
  913. color: #999;
  914. margin-right: 14rpx;
  915. }
  916. .mind-report-item-status {
  917. font-size: 22rpx;
  918. padding: 2rpx 12rpx;
  919. border-radius: 20rpx;
  920. }
  921. .mind-report-item-status.parsed {
  922. color: #7C3AED;
  923. background: #F3E8FF;
  924. }
  925. .mind-report-item-status.pending {
  926. color: #999;
  927. background: #F5F5F5;
  928. }
  929. .mind-report-empty {
  930. display: flex;
  931. flex-direction: row;
  932. align-items: center;
  933. justify-content: center;
  934. padding: 24rpx;
  935. margin-top: 8rpx;
  936. }
  937. .mind-report-empty-icon {
  938. font-size: 32rpx;
  939. margin-right: 10rpx;
  940. }
  941. .mind-report-empty-text {
  942. font-size: 24rpx;
  943. color: #bbb;
  944. }
  945. /* ===== 心理能量概况 ===== */
  946. .energy-overview {
  947. display: flex;
  948. flex-direction: row;
  949. margin: 20rpx 30rpx;
  950. background: #fff;
  951. border-radius: 20rpx;
  952. padding: 24rpx 16rpx;
  953. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  954. justify-content: space-around;
  955. }
  956. .energy-badge {
  957. display: flex;
  958. flex-direction: column;
  959. align-items: center;
  960. flex: 1;
  961. }
  962. .badge-icon {
  963. font-size: 36rpx;
  964. margin-bottom: 8rpx;
  965. }
  966. .badge-value {
  967. font-size: 36rpx;
  968. font-weight: bold;
  969. color: #333;
  970. }
  971. .badge-label {
  972. font-size: 20rpx;
  973. color: #999;
  974. margin-top: 4rpx;
  975. }
  976. /* ===== EMI 四维条形图 ===== */
  977. .emi-section {
  978. margin: 20rpx 30rpx;
  979. }
  980. .emi-card {
  981. background: #fff;
  982. border-radius: 24rpx;
  983. padding: 30rpx;
  984. box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.06);
  985. }
  986. .emi-card-title {
  987. font-size: 30rpx;
  988. font-weight: bold;
  989. color: #333;
  990. display: block;
  991. }
  992. .personality-header {
  993. display: flex;
  994. flex-direction: row;
  995. align-items: center;
  996. justify-content: space-between;
  997. margin-bottom: 24rpx;
  998. }
  999. .test-btn {
  1000. background: #8B5CF6;
  1001. padding: 8rpx 28rpx;
  1002. border-radius: 30rpx;
  1003. }
  1004. .test-btn-text {
  1005. font-size: 24rpx;
  1006. color: #fff;
  1007. font-weight: 500;
  1008. }
  1009. .emi-bar-item {
  1010. display: flex;
  1011. flex-direction: row;
  1012. align-items: center;
  1013. margin-bottom: 20rpx;
  1014. }
  1015. .emi-bar-label {
  1016. font-size: 24rpx;
  1017. color: #666;
  1018. width: 120rpx;
  1019. flex-shrink: 0;
  1020. }
  1021. .emi-bar-track {
  1022. flex: 1;
  1023. height: 20rpx;
  1024. background: #f0f0f0;
  1025. border-radius: 10rpx;
  1026. overflow: hidden;
  1027. margin: 0 16rpx;
  1028. }
  1029. .emi-bar-fill {
  1030. height: 100%;
  1031. border-radius: 10rpx;
  1032. transition: width 0.5s;
  1033. }
  1034. .emi-bar-score {
  1035. font-size: 26rpx;
  1036. font-weight: bold;
  1037. color: #333;
  1038. width: 60rpx;
  1039. text-align: right;
  1040. flex-shrink: 0;
  1041. }
  1042. .emi-bar-level {
  1043. font-size: 20rpx;
  1044. width: 80rpx;
  1045. text-align: right;
  1046. flex-shrink: 0;
  1047. }
  1048. .level-excellent { color: #10B981; }
  1049. .level-good { color: #3B82F6; }
  1050. .level-average { color: #F97316; }
  1051. .level-low { color: #EF4444; }
  1052. .emi-footer {
  1053. display: flex;
  1054. flex-direction: row;
  1055. justify-content: space-between;
  1056. align-items: center;
  1057. margin-top: 20rpx;
  1058. padding-top: 20rpx;
  1059. border-top: 1rpx solid #f0f0f0;
  1060. }
  1061. .emi-overall {
  1062. font-size: 28rpx;
  1063. font-weight: bold;
  1064. color: #FF6B35;
  1065. }
  1066. .emi-link {
  1067. display: flex;
  1068. flex-direction: row;
  1069. align-items: center;
  1070. }
  1071. .emi-link-text {
  1072. font-size: 26rpx;
  1073. color: #FF6B35;
  1074. font-weight: 500;
  1075. }
  1076. .emi-link-arrow {
  1077. font-size: 26rpx;
  1078. color: #FF6B35;
  1079. margin-left: 8rpx;
  1080. }
  1081. /* ===== EMI 心理报告卡片 ===== */
  1082. .emi-card {
  1083. margin: 30rpx;
  1084. background: #fff;
  1085. border-radius: 24rpx;
  1086. padding: 30rpx;
  1087. box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.06);
  1088. }
  1089. .emi-header {
  1090. margin-bottom: 24rpx;
  1091. }
  1092. .emi-title {
  1093. font-size: 30rpx;
  1094. font-weight: bold;
  1095. color: #333;
  1096. display: block;
  1097. }
  1098. .emi-overall-wrap {
  1099. display: flex;
  1100. flex-direction: column;
  1101. align-items: center;
  1102. padding: 32rpx 0;
  1103. background: linear-gradient(135deg, #FF6B35, #FFD700);
  1104. border-radius: 16rpx;
  1105. margin: 20rpx 0;
  1106. color: #fff;
  1107. }
  1108. .emi-overall-label {
  1109. font-size: 26rpx;
  1110. margin-bottom: 6rpx;
  1111. }
  1112. .emi-overall-value {
  1113. font-size: 64rpx;
  1114. font-weight: bold;
  1115. margin-bottom: 6rpx;
  1116. }
  1117. .emi-overall-level {
  1118. font-size: 24rpx;
  1119. padding: 4rpx 16rpx;
  1120. border-radius: 12rpx;
  1121. background: rgba(255,255,255,0.2);
  1122. }
  1123. .emi-dimensions {
  1124. display: flex;
  1125. flex-direction: column;
  1126. gap: 20rpx;
  1127. }
  1128. .emi-dimension {
  1129. display: flex;
  1130. flex-direction: column;
  1131. }
  1132. .emi-dim-header {
  1133. display: flex;
  1134. flex-direction: row;
  1135. justify-content: space-between;
  1136. align-items: center;
  1137. margin-bottom: 8rpx;
  1138. }
  1139. .emi-dim-label {
  1140. font-size: 26rpx;
  1141. color: #666;
  1142. }
  1143. .emi-dim-values {
  1144. display: flex;
  1145. flex-direction: row;
  1146. align-items: center;
  1147. }
  1148. .emi-dim-score {
  1149. font-size: 28rpx;
  1150. font-weight: bold;
  1151. color: #FF6B35;
  1152. margin-right: 12rpx;
  1153. }
  1154. .emi-dim-level {
  1155. font-size: 20rpx;
  1156. padding: 2rpx 12rpx;
  1157. border-radius: 8rpx;
  1158. }
  1159. .emi-dim-bar {
  1160. height: 14rpx;
  1161. background: #f0f0f0;
  1162. border-radius: 7rpx;
  1163. overflow: hidden;
  1164. }
  1165. .emi-dim-bar-fill {
  1166. height: 100%;
  1167. border-radius: 7rpx;
  1168. transition: width 0.5s;
  1169. }
  1170. .emi-footer {
  1171. display: flex;
  1172. justify-content: flex-end;
  1173. align-items: center;
  1174. padding-top: 20rpx;
  1175. border-top: 1rpx solid #f0f0f0;
  1176. margin-top: 20rpx;
  1177. }
  1178. .emi-footer-text {
  1179. font-size: 24rpx;
  1180. color: #F97316;
  1181. font-weight: 500;
  1182. }
  1183. .emi-footer-icon {
  1184. font-size: 24rpx;
  1185. margin-left: 8rpx;
  1186. }
  1187. .level-excellent { color: #10B981; background: #ECFDF5; }
  1188. .level-good { color: #3B82F6; background: #EFF6FF; }
  1189. .level-average { color: #F97316; background: #FFF7ED; }
  1190. .level-low { color: #EF4444; background: #FEF2F2; }
  1191. /* 雷达图内的空状态 */
  1192. .placeholder-content {
  1193. display: flex;
  1194. flex-direction: column;
  1195. align-items: center;
  1196. padding: 40rpx 20rpx;
  1197. }
  1198. /* ===== 占位卡 ===== */
  1199. .placeholder-card {
  1200. margin: 30rpx;
  1201. background: #fff;
  1202. border-radius: 24rpx;
  1203. padding: 60rpx 40rpx;
  1204. display: flex;
  1205. flex-direction: column;
  1206. align-items: center;
  1207. box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.06);
  1208. }
  1209. .placeholder-icon {
  1210. font-size: 80rpx;
  1211. margin-bottom: 20rpx;
  1212. }
  1213. .placeholder-title {
  1214. font-size: 32rpx;
  1215. font-weight: bold;
  1216. color: #333;
  1217. margin-bottom: 16rpx;
  1218. }
  1219. .placeholder-desc {
  1220. font-size: 26rpx;
  1221. color: #999;
  1222. text-align: center;
  1223. line-height: 1.6;
  1224. margin-bottom: 30rpx;
  1225. }
  1226. .placeholder-btn {
  1227. background: linear-gradient(135deg, #FF6B35, #FFD700);
  1228. color: #fff;
  1229. font-size: 28rpx;
  1230. font-weight: bold;
  1231. padding: 16rpx 64rpx;
  1232. border-radius: 40rpx;
  1233. box-shadow: 0 4rpx 16rpx rgba(255,107,53,0.3);
  1234. }
  1235. /* ===== 传统文化卡片 ===== */
  1236. .culture-section {
  1237. margin: 20rpx 30rpx;
  1238. }
  1239. .culture-card {
  1240. background: #fff;
  1241. border-radius: 20rpx;
  1242. padding: 24rpx;
  1243. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.04);
  1244. margin-bottom: 16rpx;
  1245. }
  1246. .culture-card-header {
  1247. display: flex;
  1248. align-items: center;
  1249. margin-bottom: 16rpx;
  1250. }
  1251. .culture-card-icon {
  1252. font-size: 32rpx;
  1253. margin-right: 10rpx;
  1254. }
  1255. .culture-card-title {
  1256. font-size: 28rpx;
  1257. font-weight: 600;
  1258. color: #333;
  1259. }
  1260. .culture-card-body {
  1261. font-size: 24rpx;
  1262. color: #666;
  1263. line-height: 1.6;
  1264. }
  1265. /* 八字四柱 */
  1266. .bazi-grid {
  1267. display: flex;
  1268. justify-content: space-around;
  1269. padding: 8rpx 0;
  1270. }
  1271. .bazi-column {
  1272. display: flex;
  1273. flex-direction: column;
  1274. align-items: center;
  1275. }
  1276. .bazi-pillar-label {
  1277. font-size: 22rpx;
  1278. color: #999;
  1279. margin-bottom: 6rpx;
  1280. }
  1281. .bazi-pillar-value {
  1282. font-size: 32rpx;
  1283. font-weight: 700;
  1284. color: #8B5CF6;
  1285. background: #F5F0FF;
  1286. padding: 10rpx 14rpx;
  1287. border-radius: 10rpx;
  1288. }
  1289. /* 五行能量 */
  1290. .wuxing-list {
  1291. display: flex;
  1292. flex-direction: column;
  1293. gap: 12rpx;
  1294. }
  1295. .wuxing-item {
  1296. display: flex;
  1297. align-items: center;
  1298. gap: 12rpx;
  1299. }
  1300. .wuxing-label {
  1301. font-size: 26rpx;
  1302. font-weight: 600;
  1303. width: 44rpx;
  1304. text-align: center;
  1305. }
  1306. .wuxing-bar-track {
  1307. flex: 1;
  1308. height: 20rpx;
  1309. background: #F0F0F0;
  1310. border-radius: 10rpx;
  1311. overflow: hidden;
  1312. }
  1313. .wuxing-bar-fill {
  1314. height: 100%;
  1315. border-radius: 10rpx;
  1316. }
  1317. .wuxing-value {
  1318. font-size: 22rpx;
  1319. color: #666;
  1320. width: 56rpx;
  1321. text-align: right;
  1322. }
  1323. .energy-card {
  1324. margin-top: 20rpx;
  1325. padding: 24rpx 20rpx;
  1326. background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  1327. border-radius: 20rpx;
  1328. position: relative;
  1329. overflow: hidden;
  1330. }
  1331. .energy-card::before {
  1332. content: '';
  1333. position: absolute;
  1334. top: -60rpx;
  1335. right: -60rpx;
  1336. width: 200rpx;
  1337. height: 200rpx;
  1338. background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
  1339. border-radius: 50%;
  1340. }
  1341. .energy-card::after {
  1342. content: '';
  1343. position: absolute;
  1344. bottom: -40rpx;
  1345. left: -40rpx;
  1346. width: 160rpx;
  1347. height: 160rpx;
  1348. background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  1349. border-radius: 50%;
  1350. }
  1351. .energy-header {
  1352. display: flex;
  1353. align-items: center;
  1354. margin-bottom: 14rpx;
  1355. position: relative;
  1356. z-index: 1;
  1357. }
  1358. .energy-icon {
  1359. font-size: 32rpx;
  1360. margin-right: 10rpx;
  1361. }
  1362. .energy-label {
  1363. font-size: 28rpx;
  1364. font-weight: 700;
  1365. background: linear-gradient(135deg, #F59E0B, #FF6B9D);
  1366. -webkit-background-clip: text;
  1367. -webkit-text-fill-color: transparent;
  1368. background-clip: text;
  1369. }
  1370. .energy-divider {
  1371. height: 2rpx;
  1372. background: linear-gradient(90deg, rgba(255,215,0,0.5), rgba(255,107,157,0.3), transparent);
  1373. margin-bottom: 18rpx;
  1374. position: relative;
  1375. z-index: 1;
  1376. }
  1377. .energy-quote {
  1378. font-size: 26rpx;
  1379. color: #E2E8F0;
  1380. line-height: 1.8;
  1381. display: block;
  1382. margin-bottom: 14rpx;
  1383. position: relative;
  1384. z-index: 1;
  1385. padding-left: 20rpx;
  1386. letter-spacing: 1rpx;
  1387. }
  1388. .energy-quote::before {
  1389. content: '';
  1390. position: absolute;
  1391. left: 0;
  1392. top: 4rpx;
  1393. bottom: 4rpx;
  1394. width: 4rpx;
  1395. background: linear-gradient(180deg, #F59E0B, #FF6B9D);
  1396. border-radius: 2rpx;
  1397. }
  1398. .energy-advice {
  1399. font-size: 24rpx;
  1400. color: #94A3B8;
  1401. line-height: 1.7;
  1402. display: block;
  1403. position: relative;
  1404. z-index: 1;
  1405. padding: 14rpx 18rpx;
  1406. background: rgba(255,255,255,0.05);
  1407. border-radius: 12rpx;
  1408. border: 1rpx solid rgba(255,255,255,0.08);
  1409. }
  1410. .energy-footer {
  1411. display: flex;
  1412. justify-content: center;
  1413. gap: 12rpx;
  1414. margin-top: 18rpx;
  1415. position: relative;
  1416. z-index: 1;
  1417. }
  1418. .energy-footer-dot {
  1419. width: 8rpx;
  1420. height: 8rpx;
  1421. border-radius: 50%;
  1422. background: rgba(255,255,255,0.3);
  1423. }
  1424. .energy-footer-dot:nth-child(2) {
  1425. background: rgba(255,215,0,0.6);
  1426. width: 10rpx;
  1427. height: 10rpx;
  1428. }
  1429. /* 星座+灵数双栏 */
  1430. .culture-dual {
  1431. display: flex;
  1432. gap: 16rpx;
  1433. }
  1434. .culture-dual-item {
  1435. flex: 1;
  1436. background: #fff;
  1437. border-radius: 20rpx;
  1438. padding: 20rpx;
  1439. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.04);
  1440. display: flex;
  1441. flex-direction: column;
  1442. align-items: center;
  1443. }
  1444. .culture-dual-icon {
  1445. font-size: 36rpx;
  1446. margin-bottom: 8rpx;
  1447. }
  1448. .culture-dual-label {
  1449. font-size: 22rpx;
  1450. color: #999;
  1451. margin-bottom: 6rpx;
  1452. }
  1453. .culture-dual-value {
  1454. font-size: 28rpx;
  1455. font-weight: 700;
  1456. color: #8B5CF6;
  1457. }
  1458. .culture-empty {
  1459. text-align: center;
  1460. padding: 30rpx 0;
  1461. color: #bbb;
  1462. font-size: 24rpx;
  1463. }
  1464. /* ===== 每日心理 ===== */
  1465. .tip-card {
  1466. background: #fff;
  1467. border-radius: 20rpx;
  1468. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  1469. display: flex;
  1470. flex-direction: row;
  1471. overflow: hidden;
  1472. }
  1473. .tip-left-bar {
  1474. width: 6rpx;
  1475. background: linear-gradient(180deg, #5B9BD5, #8FC5E8);
  1476. flex-shrink: 0;
  1477. }
  1478. .tip-body {
  1479. flex: 1;
  1480. padding: 28rpx 24rpx;
  1481. }
  1482. .tip-title {
  1483. font-size: 28rpx;
  1484. font-weight: bold;
  1485. color: #5B9BD5;
  1486. display: block;
  1487. margin-bottom: 12rpx;
  1488. }
  1489. .tip-content {
  1490. font-size: 24rpx;
  1491. color: #666;
  1492. line-height: 1.6;
  1493. display: block;
  1494. margin-bottom: 16rpx;
  1495. }
  1496. .tip-footer {
  1497. display: flex;
  1498. flex-direction: row;
  1499. justify-content: flex-end;
  1500. }
  1501. .tip-source {
  1502. font-size: 22rpx;
  1503. color: #bbb;
  1504. }
  1505. /* ===== 通用区块 ===== */
  1506. .section {
  1507. margin: 20rpx 30rpx;
  1508. }
  1509. .section-header {
  1510. margin-bottom: 20rpx;
  1511. }
  1512. .section-title {
  1513. font-size: 30rpx;
  1514. font-weight: bold;
  1515. color: #333;
  1516. }
  1517. /* ===== 推荐阅读 ===== */
  1518. .article-list {
  1519. display: flex;
  1520. flex-direction: column;
  1521. }
  1522. .article-card {
  1523. background: #fff;
  1524. border-radius: 20rpx;
  1525. padding: 28rpx 24rpx;
  1526. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  1527. margin-bottom: 20rpx;
  1528. }
  1529. .article-category {
  1530. display: inline-block;
  1531. padding: 4rpx 18rpx;
  1532. border-radius: 20rpx;
  1533. margin-bottom: 14rpx;
  1534. }
  1535. .article-category-text {
  1536. font-size: 20rpx;
  1537. color: #fff;
  1538. font-weight: 500;
  1539. }
  1540. .article-title {
  1541. font-size: 28rpx;
  1542. font-weight: bold;
  1543. color: #333;
  1544. display: block;
  1545. margin-bottom: 10rpx;
  1546. }
  1547. .article-summary {
  1548. font-size: 24rpx;
  1549. color: #888;
  1550. line-height: 1.5;
  1551. display: block;
  1552. margin-bottom: 20rpx;
  1553. }
  1554. .article-meta {
  1555. display: flex;
  1556. flex-direction: row;
  1557. align-items: center;
  1558. justify-content: space-between;
  1559. }
  1560. .meta-item {
  1561. display: flex;
  1562. flex-direction: row;
  1563. align-items: center;
  1564. margin-right: 20rpx;
  1565. }
  1566. .meta-icon {
  1567. font-size: 22rpx;
  1568. margin-right: 4rpx;
  1569. }
  1570. .meta-text {
  1571. font-size: 22rpx;
  1572. color: #bbb;
  1573. }
  1574. .article-date {
  1575. font-size: 22rpx;
  1576. color: #bbb;
  1577. margin-left: auto;
  1578. }
  1579. /* ===== 功能区入口 ===== */
  1580. .func-section {
  1581. margin: 20rpx 30rpx;
  1582. }
  1583. .func-grid {
  1584. display: flex;
  1585. flex-direction: column;
  1586. gap: 16rpx;
  1587. background: #fff;
  1588. border-radius: 20rpx;
  1589. padding: 24rpx 16rpx;
  1590. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  1591. }
  1592. .func-row {
  1593. display: flex;
  1594. flex-direction: row;
  1595. justify-content: space-between;
  1596. }
  1597. .func-item {
  1598. display: flex;
  1599. flex-direction: column;
  1600. align-items: center;
  1601. flex: 1;
  1602. }
  1603. .func-icon-wrap {
  1604. width: 80rpx;
  1605. height: 80rpx;
  1606. border-radius: 40rpx;
  1607. background: linear-gradient(135deg, #D6EAF8, #EBF2FA);
  1608. display: flex;
  1609. align-items: center;
  1610. justify-content: center;
  1611. margin-bottom: 10rpx;
  1612. }
  1613. .func-icon {
  1614. font-size: 40rpx;
  1615. }
  1616. .func-label {
  1617. font-size: 22rpx;
  1618. color: #666;
  1619. font-weight: 500;
  1620. }
  1621. .func-item:active {
  1622. opacity: 0.7;
  1623. }
  1624. /* ===== 底部 ===== */
  1625. .bottom-spacer {
  1626. height: 120rpx;
  1627. }
  1628. /* ===== 肠脑轴 ===== */
  1629. .gut-insight-text {
  1630. font-size: 24rpx;
  1631. color: #666;
  1632. margin-bottom: 16rpx;
  1633. padding: 12rpx 16rpx;
  1634. background: #F0FFF4;
  1635. border-radius: 12rpx;
  1636. line-height: 1.6;
  1637. }
  1638. .gut-indicator-list {
  1639. display: flex;
  1640. flex-direction: column;
  1641. gap: 12rpx;
  1642. }
  1643. .gut-indicator-item {
  1644. display: flex;
  1645. align-items: center;
  1646. gap: 12rpx;
  1647. }
  1648. .gut-indicator-left {
  1649. width: 80rpx;
  1650. flex-shrink: 0;
  1651. }
  1652. .gut-indicator-name {
  1653. font-size: 22rpx;
  1654. color: #666;
  1655. }
  1656. .gut-indicator-bar-track {
  1657. flex: 1;
  1658. height: 16rpx;
  1659. background: #F0F0F0;
  1660. border-radius: 8rpx;
  1661. overflow: hidden;
  1662. }
  1663. .gut-indicator-bar-fill {
  1664. height: 100%;
  1665. border-radius: 8rpx;
  1666. transition: width 0.3s;
  1667. }
  1668. .gut-indicator-value {
  1669. font-size: 22rpx;
  1670. color: #666;
  1671. width: 60rpx;
  1672. text-align: right;
  1673. }
  1674. .gut-indicator-status {
  1675. font-size: 20rpx;
  1676. padding: 2rpx 12rpx;
  1677. border-radius: 10rpx;
  1678. width: 60rpx;
  1679. text-align: center;
  1680. }
  1681. .status-normal {
  1682. background: #D1FAE5;
  1683. color: #059669;
  1684. }
  1685. .status-abnormal {
  1686. background: #FEE2E2;
  1687. color: #DC2626;
  1688. }
  1689. .status-warning {
  1690. background: #FEF3C7;
  1691. color: #D97706;
  1692. }
  1693. /* ===== 关键信息(家庭+个人) ===== */
  1694. .key-info-card {
  1695. background: #fff;
  1696. border-radius: 20rpx;
  1697. padding: 24rpx;
  1698. margin-top: 20rpx;
  1699. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  1700. }
  1701. .key-info-header {
  1702. display: flex;
  1703. align-items: center;
  1704. margin-bottom: 20rpx;
  1705. }
  1706. .key-info-icon {
  1707. font-size: 28rpx;
  1708. margin-right: 8rpx;
  1709. }
  1710. .key-info-title {
  1711. font-size: 28rpx;
  1712. font-weight: 600;
  1713. color: #333;
  1714. }
  1715. .key-info-body {
  1716. display: flex;
  1717. flex-direction: row;
  1718. gap: 20rpx;
  1719. }
  1720. .key-info-col {
  1721. flex: 1;
  1722. background: #F8F9FA;
  1723. border-radius: 14rpx;
  1724. padding: 16rpx;
  1725. min-width: 0;
  1726. }
  1727. .ki-subtitle {
  1728. font-size: 22rpx;
  1729. color: #999;
  1730. margin-bottom: 12rpx;
  1731. font-weight: 500;
  1732. }
  1733. .ki-row {
  1734. display: flex;
  1735. align-items: center;
  1736. margin-bottom: 10rpx;
  1737. flex-wrap: nowrap;
  1738. }
  1739. .ki-row:last-child {
  1740. margin-bottom: 0;
  1741. }
  1742. .ki-label {
  1743. font-size: 22rpx;
  1744. color: #888;
  1745. margin-right: 8rpx;
  1746. white-space: nowrap;
  1747. }
  1748. .ki-dot {
  1749. width: 16rpx;
  1750. height: 16rpx;
  1751. border-radius: 50%;
  1752. margin-right: 6rpx;
  1753. flex-shrink: 0;
  1754. }
  1755. .ki-valuel {
  1756. font-size: 24rpx;
  1757. color: #333;
  1758. font-weight: 500;
  1759. white-space: nowrap;
  1760. }
  1761. .ki-valued {
  1762. font-size: 24rpx;
  1763. color: #333;
  1764. font-weight: 500;
  1765. }
  1766. .ki-swatch {
  1767. width: 28rpx;
  1768. height: 28rpx;
  1769. border-radius: 50%;
  1770. margin-right: 6rpx;
  1771. border: 2rpx solid rgba(0,0,0,0.06);
  1772. flex-shrink: 0;
  1773. }
  1774. .ki-num {
  1775. font-size: 30rpx;
  1776. font-weight: 700;
  1777. color: #FF6B9D;
  1778. }
  1779. .ki-fortune {
  1780. font-size: 24rpx;
  1781. font-weight: 700;
  1782. padding: 2rpx 12rpx;
  1783. border-radius: 10rpx;
  1784. }
  1785. .ki-fortune-0 {
  1786. color: #D32F2F;
  1787. background: #FFEBEE;
  1788. }
  1789. .ki-fortune-1 {
  1790. color: #E65100;
  1791. background: #FFF3E0;
  1792. }
  1793. .ki-fortune-2 {
  1794. color: #F9A825;
  1795. background: #FFFDE7;
  1796. }
  1797. .ki-fortune-3 {
  1798. color: #7B1FA2;
  1799. background: #F3E5F5;
  1800. }
  1801. .ki-fortune-4 {
  1802. color: #B71C1C;
  1803. background: #FFCDD2;
  1804. }
  1805. .ki-insight {
  1806. display: flex;
  1807. align-items: flex-start;
  1808. margin-top: 16rpx;
  1809. padding: 16rpx;
  1810. background: #FFF8F0;
  1811. border-radius: 12rpx;
  1812. }
  1813. .ki-insight-icon {
  1814. font-size: 24rpx;
  1815. margin-right: 8rpx;
  1816. flex-shrink: 0;
  1817. }
  1818. .ki-insight-text {
  1819. font-size: 22rpx;
  1820. color: #8B6914;
  1821. line-height: 1.5;
  1822. }
  1823. .ki-footer {
  1824. margin-top: 16rpx;
  1825. text-align: center;
  1826. padding: 12rpx;
  1827. font-size: 24rpx;
  1828. color: #8B5CF6;
  1829. font-weight: 500;
  1830. background: #F5F3FF;
  1831. border-radius: 12rpx;
  1832. }
  1833. .ki-footer:active {
  1834. opacity: 0.7;
  1835. }
  1836. /* DAN 报告卡片 */
  1837. .dan-card {
  1838. background: #fff;
  1839. border-radius: 16rpx;
  1840. padding: 24rpx;
  1841. margin-bottom: 16rpx;
  1842. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.06);
  1843. }
  1844. .dan-card-header {
  1845. display: flex;
  1846. justify-content: space-between;
  1847. align-items: center;
  1848. margin-bottom: 12rpx;
  1849. }
  1850. .dan-report-date {
  1851. font-size: 26rpx;
  1852. color: #666;
  1853. }
  1854. .dan-status {
  1855. font-size: 22rpx;
  1856. padding: 4rpx 16rpx;
  1857. border-radius: 8rpx;
  1858. }
  1859. .dan-status.confirmed {
  1860. background: #D1FAE5;
  1861. color: #065F46;
  1862. }
  1863. .dan-status.pending {
  1864. background: #FEF3C7;
  1865. color: #92400E;
  1866. }
  1867. .dan-report-desc {
  1868. font-size: 28rpx;
  1869. color: #333;
  1870. font-weight: 500;
  1871. margin-bottom: 12rpx;
  1872. display: block;
  1873. }
  1874. .dan-card-footer {
  1875. text-align: right;
  1876. }
  1877. .dan-view-link {
  1878. font-size: 26rpx;
  1879. color: #6366F1;
  1880. }
  1881. .section-header {
  1882. display: flex;
  1883. justify-content: space-between;
  1884. align-items: center;
  1885. margin-bottom: 20rpx;
  1886. }
  1887. .section-title {
  1888. font-size: 32rpx;
  1889. font-weight: 700;
  1890. color: #333;
  1891. }
  1892. .section-more {
  1893. font-size: 26rpx;
  1894. color: #6366F1;
  1895. padding: 8rpx 16rpx;
  1896. }
  1897. /* 品牌定位语 */
  1898. .brand-strap {
  1899. margin: 16rpx 30rpx 0;
  1900. padding: 20rpx 28rpx;
  1901. background: linear-gradient(135deg, #FFF0F5, rgba(255,107,157,0.12));
  1902. border-radius: 16rpx;
  1903. border-left: 4rpx solid #FF6B9D;
  1904. }
  1905. .brand-strap-text {
  1906. font-size: 26rpx;
  1907. color: #9D174D;
  1908. font-weight: 500;
  1909. }
  1910. /* 每月引导语 */
  1911. .monthly-guidance {
  1912. margin: 16rpx 30rpx 0;
  1913. padding: 20rpx 28rpx;
  1914. background: linear-gradient(135deg, #FFF0F5, rgba(255,107,157,0.08));
  1915. border-radius: 16rpx;
  1916. border-left: 4rpx solid #FF6B9D;
  1917. display: flex;
  1918. align-items: center;
  1919. gap: 12rpx;
  1920. }
  1921. .guidance-icon { font-size: 32rpx; }
  1922. .guidance-text {
  1923. font-size: 26rpx;
  1924. color: #9D174D;
  1925. font-weight: 500;
  1926. }
  1927. </style>