index.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. <template>
  2. <view class="container">
  3. <view v-if="!isLoggedIn">
  4. <PageBanner theme="action" tagline="干预 · 记录 · 成长" quote="知行合一,每天进步一点点" />
  5. <!-- 品牌定位语 -->
  6. <view class="brand-strap"><text class="brand-strap-text">看见改变正在发生</text></view>
  7. <!-- 理念卡 -->
  8. <view class="concept-card">
  9. <text class="concept-quote">记录不是目的,看见改变才是。</text>
  10. <text class="concept-desc">每一份饮食、运动、心情的记录,都在为成长提供依据。</text>
  11. </view>
  12. <!-- 示例案例 -->
  13. <view class="case-card">
  14. <view class="case-header">
  15. <text class="case-label">📖 真实案例(脱敏)</text>
  16. </view>
  17. <view class="case-body">
  18. <text class="case-name">小明(10岁,体校生)</text>
  19. <text class="case-change">3个月干预前后:</text>
  20. <view class="case-metrics">
  21. <view class="metric-item">
  22. <text class="metric-up">↑ 5分</text>
  23. <text class="metric-label">身维度</text>
  24. </view>
  25. <view class="metric-item">
  26. <text class="metric-up">↑ 3分</text>
  27. <text class="metric-label">智维度</text>
  28. </view>
  29. <view class="metric-item">
  30. <text class="metric-up">↑ 8天</text>
  31. <text class="metric-label">连续打卡</text>
  32. </view>
  33. </view>
  34. <text class="case-note">通过饮食记录 + 睡眠打卡,免疫力显著提升</text>
  35. </view>
  36. </view>
  37. <!-- 功能预览 -->
  38. <view class="guest-features">
  39. <view class="feat-card" @click="handleGuestFeatureTap">
  40. <text class="feat-icon">✅</text>
  41. <text class="feat-title">每日打卡</text>
  42. <text class="feat-desc">饮食·运动·睡眠·心情</text>
  43. </view>
  44. <view class="feat-card" @click="handleGuestFeatureTap">
  45. <text class="feat-icon">📋</text>
  46. <text class="feat-title">成长记录</text>
  47. <text class="feat-desc">每周家庭健康问卷</text>
  48. </view>
  49. <view class="feat-card" @click="handleGuestFeatureTap">
  50. <text class="feat-icon">🏆</text>
  51. <text class="feat-title">里程碑</text>
  52. <text class="feat-desc">连续打卡·挑战完成</text>
  53. </view>
  54. <view class="feat-card" @click="handleGuestFeatureTap">
  55. <text class="feat-icon">🎯</text>
  56. <text class="feat-title">家庭挑战</text>
  57. <text class="feat-desc">全家参与的互动任务</text>
  58. </view>
  59. </view>
  60. <!-- 五维健康体系 -->
  61. <view class="wuxing-section">
  62. <view class="wuxing-title">身·心·智·行·富 · 可执行的成长闭环</view>
  63. <view class="wuxing-desc">五行相生相克,动起来、坚持做,让成长真正发生</view>
  64. <view class="wuxing-relations">
  65. <view class="rel-group">
  66. <text class="rel-title">相生 → 系统前进</text>
  67. <view class="rel-chain">
  68. <text class="rel-item">🌏 身</text><text class="rel-arrow">→</text>
  69. <text class="rel-item">⚡ 智</text><text class="rel-arrow">→</text>
  70. <text class="rel-item">💧 富</text><text class="rel-arrow">→</text>
  71. <text class="rel-item">🌿 行</text><text class="rel-arrow">→</text>
  72. <text class="rel-item">🔥 心</text><text class="rel-arrow">→</text>
  73. <text class="rel-item">🌏 身</text>
  74. </view>
  75. <text class="rel-hint">身勤则强,智勤则开,富勤则聚,行勤则和,心勤则安</text>
  76. </view>
  77. <view class="rel-group">
  78. <text class="rel-title">相克 → 系统平衡</text>
  79. <view class="rel-chain">
  80. <text class="rel-item">🌏 身</text><text class="rel-op">克</text><text class="rel-item">💧 富</text><text class="rel-dot">·</text>
  81. <text class="rel-item">⚡ 智</text><text class="rel-op">克</text><text class="rel-item">🌿 行</text><text class="rel-dot">·</text>
  82. <text class="rel-item">💧 富</text><text class="rel-op">克</text><text class="rel-item">🔥 心</text><text class="rel-dot">·</text>
  83. <text class="rel-item">🌿 行</text><text class="rel-op">克</text><text class="rel-item">🌏 身</text><text class="rel-dot">·</text>
  84. <text class="rel-item">🔥 心</text><text class="rel-op">克</text><text class="rel-item">⚡ 智</text>
  85. </view>
  86. <text class="rel-hint">不拿身体换快钱,不算计关系得失,财富服务家庭,关爱有度、不溺爱越界</text>
  87. </view>
  88. </view>
  89. <view class="wuxing-cards">
  90. <view class="wc-card wc-body" @click="goPage('/pages/body-detail/index')">
  91. <text class="wc-icon">🌏</text>
  92. <view class="wc-info">
  93. <text class="wc-name">身 · 主动健康</text>
  94. <text class="wc-text">每天动一动、睡得香,身体状态看得见地变好</text>
  95. </view>
  96. </view>
  97. <view class="wc-card wc-wisdom" @click="goPage('/pages/wisdom-detail/index')">
  98. <text class="wc-icon">⚡</text>
  99. <view class="wc-info">
  100. <text class="wc-name">智 · 赋能未来</text>
  101. <text class="wc-text">每天读几页、练一会专注,智慧是练出来的</text>
  102. </view>
  103. </view>
  104. <view class="wc-card wc-wealth" @click="goPage('/pages/wealth/index')">
  105. <text class="wc-icon">💧</text>
  106. <view class="wc-info">
  107. <text class="wc-name">富 · 利他创富</text>
  108. <text class="wc-text">坚持分享与积累,把第二收入曲线做出来</text>
  109. </view>
  110. </view>
  111. <view class="wc-card wc-action" @click="goPage('/pages/action-detail/member-action-detail')">
  112. <text class="wc-icon">🌿</text>
  113. <view class="wc-info">
  114. <text class="wc-name">行 · 人际和谐</text>
  115. <text class="wc-text">从一次倾听开始,让家庭关系每天升温</text>
  116. </view>
  117. </view>
  118. <view class="wc-card wc-mind" @click="goPage('/pages/mind-detail/index')">
  119. <text class="wc-icon">🔥</text>
  120. <view class="wc-info">
  121. <text class="wc-name">心 · 大爱相随</text>
  122. <text class="wc-text">每天留 10 分钟说说话,把家人的心事接住</text>
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. <!-- 登录引导 -->
  128. <view class="login-guide-section">
  129. <LoginGuideCard
  130. title="解锁完整成长档案"
  131. :items="[
  132. '查看干预进度与追踪记录',
  133. '完成每日打卡累积连续记录',
  134. '参与家庭挑战获得里程碑奖励'
  135. ]" />
  136. </view>
  137. </view>
  138. <view v-else>
  139. <PageBanner theme="action" tagline="干预 · 记录 · 成长" quote="知行合一,每天进步一点点" />
  140. <view class="reminder-bar" v-if="hasIncomplete">
  141. <text class="reminder-text">⚠ 今日还有 {{ incompleteCount }} 项未记录</text>
  142. <text class="reminder-close" @click="dismissReminder">✕</text>
  143. </view>
  144. <!-- 里程碑(移至最上) -->
  145. <view class="section">
  146. <view class="milestone-card">
  147. <text class="section-title-row">🏆 里程碑</text>
  148. <view class="milestone-grid">
  149. <view class="milestone-item">
  150. <text class="milestone-icon">🔥</text>
  151. <text class="milestone-value">{{ streakDays }}天</text>
  152. <text class="milestone-label">连续打卡</text>
  153. </view>
  154. <view class="milestone-item">
  155. <text class="milestone-icon">🎯</text>
  156. <text class="milestone-value">{{ activeChallenges }}</text>
  157. <text class="milestone-label">进行中挑战</text>
  158. </view>
  159. <view class="milestone-item">
  160. <text class="milestone-icon">📈</text>
  161. <text class="milestone-value">{{ completeness }}%</text>
  162. <text class="milestone-label">档案完整度</text>
  163. </view>
  164. </view>
  165. </view>
  166. </view>
  167. <!-- 今日成长 -->
  168. <view class="section">
  169. <view class="progress-card">
  170. <view class="progress-header">
  171. <text class="progress-title">今日成长</text>
  172. <text class="progress-date">{{ todayDate }}</text>
  173. </view>
  174. <view class="progress-grid" v-if="progressItems.length > 0">
  175. <view class="progress-grid-item" v-for="(item, idx) in progressItems" :key="getProgressKey(item)" @click="handleProgressClick(item)">
  176. <text class="progress-grid-icon">{{ item.icon }}</text>
  177. <text class="progress-grid-label">{{ item.label }}</text>
  178. <text class="progress-grid-status" :class="item.done ? 'status-done' : 'status-pending'">{{ item.done ? '✔' : (item.actionText || '去记录') }}</text>
  179. </view>
  180. </view>
  181. <view class="progress-footer">
  182. <text class="footer-text">今日完成 {{ doneCount }}/{{ totalCount }}</text>
  183. <text class="footer-streak" v-if="streakDays > 0">🔥 连续打卡 {{ streakDays }} 天</text>
  184. </view>
  185. </view>
  186. </view>
  187. <view class="section" v-if="cautionCount > 0">
  188. <view class="action-card" @click="goToCaution">
  189. <text class="action-icon">⚠️</text>
  190. <view class="action-info">
  191. <text class="action-title">食材戒备匹配</text>
  192. <text class="action-desc">{{ cautionCount }} 种食材需关注,点击查看戒备详情</text>
  193. </view>
  194. <text class="action-arrow">›</text>
  195. </view>
  196. </view>
  197. <!-- 饮食推荐 -->
  198. <view class="section">
  199. <view class="action-card" @click="goToFoods">
  200. <text class="action-icon">🍽️</text>
  201. <view class="action-info">
  202. <text class="action-title">饮食推荐</text>
  203. <text class="action-desc">基于菌群报告的个性化食材建议</text>
  204. </view>
  205. <text class="action-arrow">›</text>
  206. </view>
  207. </view>
  208. <!-- 任务中心(替代打卡记录) -->
  209. <view class="section">
  210. <view class="action-card" @click="goToTasks">
  211. <text class="action-icon">📋</text>
  212. <view class="action-info">
  213. <text class="action-title">任务中心</text>
  214. <text class="action-desc">查看今日待办任务,完成挑战获取奖励</text>
  215. </view>
  216. <text class="action-arrow">›</text>
  217. </view>
  218. </view>
  219. <DimensionActivities :isLoggedIn="true" @activityClick="goActivityDetail" @moreActivities="goMoreActivities" style="margin-bottom:60rpx" />
  220. <!-- 推荐商品(组件化,移到底部) -->
  221. <view class="section">
  222. <view class="section-header">
  223. <text class="section-title">🛍️ 推荐商品</text>
  224. <text class="section-more" @click="goMoreProducts">更多 ›</text>
  225. </view>
  226. <DimensionProducts :isLoggedIn="true" :showMore="false" @productClick="goToProduct" />
  227. </view>
  228. <!-- 推荐阅读(组件化,移到底部) -->
  229. <view class="section" v-if="recommendArticles.length > 0">
  230. <view class="section-header">
  231. <text class="section-title">📖 推荐阅读</text>
  232. <text class="section-more" @click="goMoreArticles">更多 ›</text>
  233. </view>
  234. <ArticleBookshelf :articles="recommendArticles" :isLoggedIn="true" @articleClick="goToArticle" />
  235. </view>
  236. <view class="bottom-spacer" style="height: 40rpx;"></view>
  237. </view>
  238. </view>
  239. </template>
  240. <script>
  241. import PageBanner from '../../components/PageBanner.vue'
  242. import LoginGuideCard from '../../components/LoginGuideCard.vue'
  243. import DimensionActivities from '../../components/DimensionActivities.vue'
  244. import DimensionProducts from '../../components/DimensionProducts.vue'
  245. import ArticleBookshelf from '../../components/ArticleBookshelf.vue'
  246. import { healthCheckinList, getHealthMealList, getFoodCautionList, getGrowthRecommendations, getExerciseRecords, getSleepRecords, getEmotionCheckinList } from '../../utils/api.js'
  247. import { parseDate } from '../../utils/format.js'
  248. export default {
  249. components: { PageBanner, LoginGuideCard, DimensionActivities, DimensionProducts, ArticleBookshelf },
  250. data() { return { memberId: '', todayDate: '', hasIncomplete: false, incompleteCount: 0, progressItems: [], streakDays: 0, activeChallenges: 0, completeness: 0, cautionCount: 0,
  251. healthArticles: [],
  252. growthArticles: [],
  253. isLoggedIn: false } },
  254. computed: {
  255. doneCount: function() { var c = 0; for (var i = 0; i < this.progressItems.length; i++) if (this.progressItems[i] && this.progressItems[i].done) c++; return c },
  256. totalCount: function() { return this.progressItems.length },
  257. recommendArticles: function() {
  258. var arr = []
  259. if (this.healthArticles && this.healthArticles.length > 0) arr = arr.concat(this.healthArticles)
  260. if (this.growthArticles && this.growthArticles.length > 0) arr = arr.concat(this.growthArticles)
  261. return arr
  262. }
  263. },
  264. onShow() {
  265. this.isLoggedIn = !!uni.getStorageSync('token')
  266. if (this.isLoggedIn) {
  267. this.memberId = uni.getStorageSync('currentChildId') || uni.getStorageSync('currentMemberId') || uni.getStorageSync('userId') || ''
  268. var now = new Date()
  269. this.todayDate = now.getFullYear() + '-' + this.pad(now.getMonth() + 1) + '-' + this.pad(now.getDate())
  270. this.loadAllData()
  271. }
  272. },
  273. methods: {
  274. pad: function(n) { return n < 10 ? '0' + n : '' + n },
  275. getProgressKey: function(item) { return item && item.label ? item.label : 'p-' + Math.random() },
  276. dismissReminder: function() { this.hasIncomplete = false },
  277. handleProgressClick: function(item) {
  278. if (!item || !item.key) return
  279. var m = { diet: '/pages/growth/diet-checkin', exercise: '/pages/growth/exercise-checkin', sleep: '/pages/growth/sleep-checkin', emotion: '/pages/growth/growth-emotion-checkin' }
  280. var url = m[item.key]
  281. if (url) uni.navigateTo({ url: url })
  282. },
  283. goActivityDetail: function(act) { uni.navigateTo({ url: '/pages/activity/activity-detail/activity-detail?id=' + act.id }) },
  284. goMoreActivities: function() { uni.navigateTo({ url: '/pages/activity/index' }) },
  285. goToTasks: function() { uni.navigateTo({ url: '/pages/child/tasks' }) },
  286. handleGuestFeatureTap: function() { uni.showToast({ title: '登录后即可体验该功能', icon: 'none' }) },
  287. goToCaution: function() { uni.navigateTo({ url: '/pages/growth/caution-detail' }) },
  288. goToFoods: function() { uni.navigateTo({ url: '/pages/growth/foods-detail' }) },
  289. goToArticle: function(article) { var id = article && article.id ? article.id : article; if (!id) return; uni.navigateTo({ url: '/pages/article-center/article-detail?id=' + id }) },
  290. goToProduct: function(prod) { var id = prod && prod.id ? prod.id : prod; if (!id) return; uni.navigateTo({ url: '/pages/shop/detail/detail?id=' + id }) },
  291. goMoreProducts: function() { uni.navigateTo({ url: '/pages/shop/index/index' }) },
  292. goMoreArticles: function() { uni.navigateTo({ url: '/pages/article-center/index?dimension=action' }) },
  293. goPage: function(url) { uni.navigateTo({ url: url }) },
  294. loadTrackingData: function(key) { return [] },
  295. formatDateKey: function(dateVal) {
  296. if (!dateVal) return ''
  297. var d = parseDate(dateVal)
  298. if (!d) return ''
  299. return d.getFullYear() + '-' + this.pad(d.getMonth() + 1) + '-' + this.pad(d.getDate())
  300. },
  301. formatRecordDate: function(dateVal) {
  302. if (!dateVal) return ''
  303. var d = parseDate(dateVal)
  304. if (!d) return ''
  305. return this.pad(d.getMonth() + 1) + '-' + this.pad(d.getDate())
  306. },
  307. mealTypeLabel: function(type) {
  308. var m = { breakfast: '早餐', lunch: '午餐', dinner: '晚餐', snack: '加餐', extra: '零食' }
  309. return m[type] || type || '饮食'
  310. },
  311. async loadAllData() {
  312. var self = this
  313. try { await self.loadProgressItems() } catch(e) {}
  314. try { await self.loadCautionData() } catch(e) {}
  315. try { await self.loadGrowthRecommendations() } catch(e) {}
  316. try { await self.loadMilestones() } catch(e) {}
  317. },
  318. async loadProgressItems() {
  319. var self = this
  320. var items = []
  321. // 饮食记录:health/meal/list 返回当日记录数组
  322. var dietDone = false
  323. try {
  324. var dParams = self.memberId ? { memberId: self.memberId } : {}
  325. var dRes = await getHealthMealList(dParams)
  326. var dList = (dRes.code === 200 && dRes.data) ? dRes.data : []
  327. for (var di = 0; di < dList.length; di++) {
  328. var dr = dList[di]
  329. if (!dr) continue
  330. if (self.formatDateKey(dr.createdAt || dr.recordDate) === self.todayDate) dietDone = true
  331. }
  332. } catch(e) {}
  333. items.push({ key: 'diet', icon: '🍽️', label: '饮食记录', done: dietDone, actionText: '补录' })
  334. // 运动记录
  335. var exerciseDone = false
  336. try {
  337. var eParams = self.memberId ? { memberId: self.memberId } : {}
  338. var eRes = await getExerciseRecords(eParams)
  339. var eList = (eRes.code === 200 && eRes.data) ? eRes.data : []
  340. for (var ei = 0; ei < eList.length; ei++) {
  341. var er = eList[ei]
  342. if (!er) continue
  343. if (self.formatDateKey(er.startTime || er.createdAt) === self.todayDate) exerciseDone = true
  344. }
  345. } catch(e) {}
  346. items.push({ key: 'exercise', icon: '🏃', label: '运动记录', done: exerciseDone, actionText: '记录' })
  347. // 睡眠记录
  348. var sleepDone = false
  349. try {
  350. var sParams = self.memberId ? { memberId: self.memberId } : {}
  351. var sRes = await getSleepRecords(sParams)
  352. var sList = (sRes.code === 200 && sRes.data) ? sRes.data : []
  353. for (var si = 0; si < sList.length; si++) {
  354. var sr = sList[si]
  355. if (!sr) continue
  356. if (self.formatDateKey(sr.sleepTime || sr.createdAt) === self.todayDate) sleepDone = true
  357. }
  358. } catch(e) {}
  359. items.push({ key: 'sleep', icon: '😴', label: '睡眠记录', done: sleepDone, actionText: '记录' })
  360. // 心情记录:mind/checkin/list 返回 List<EmotionCheckinVO>
  361. var emotionDone = false
  362. try {
  363. var mParams = { page: 1, size: 10 }
  364. if (self.memberId) mParams.memberId = self.memberId
  365. var mRes = await getEmotionCheckinList(mParams)
  366. var mList = (mRes.code === 200 && mRes.data) ? mRes.data : []
  367. for (var mi = 0; mi < mList.length; mi++) {
  368. var mr = mList[mi]
  369. if (!mr) continue
  370. if (self.formatDateKey(mr.checkinDate || mr.createdAt) === self.todayDate) emotionDone = true
  371. }
  372. } catch(e) {}
  373. items.push({ key: 'emotion', icon: '😊', label: '心情记录', done: emotionDone, actionText: '记录' })
  374. self.progressItems = items.filter(function(it) { return it && it.key })
  375. self.incompleteCount = 0
  376. for (var pi = 0; pi < items.length; pi++) if (items[pi] && !items[pi].done) self.incompleteCount++
  377. self.hasIncomplete = self.incompleteCount > 0
  378. },
  379. async loadGrowthRecommendations() {
  380. var self = this
  381. try {
  382. var res = await getGrowthRecommendations('health', 6)
  383. if (res && res.code === 200 && res.data) {
  384. var arts = res.data.articles || []
  385. // 按 growth_category 分组
  386. self.healthArticles = arts.filter(function(a){ return a.growthCategory === 'health' })
  387. self.growthArticles = arts.filter(function(a){ return a.growthCategory === 'growth' })
  388. }
  389. } catch(e) {}
  390. },
  391. async loadCautionData() {
  392. var self = this
  393. try {
  394. var res = await getFoodCautionList()
  395. if (res && res.code === 200) self.cautionCount = (res.data || []).length
  396. } catch(e) {}
  397. },
  398. async loadMilestones() {
  399. var self = this
  400. try {
  401. var ciRes = await healthCheckinList({})
  402. if (ciRes.code === 200 && ciRes.data) self.streakDays = Math.min(ciRes.data.length, 30)
  403. } catch(e) {}
  404. self.activeChallenges = 0
  405. self.completeness = self.streakDays > 0 ? Math.min(100, Math.round(self.streakDays * 10)) : 0
  406. }
  407. }
  408. }
  409. </script>
  410. <style scoped>
  411. .container{background:#FFF7ED;min-height:100vh;padding-bottom:calc(160rpx + env(safe-area-inset-bottom))}
  412. .section{margin:16rpx 24rpx}
  413. /* 游客态 */
  414. .brand-strap{margin:0 24rpx 16rpx;background:linear-gradient(135deg,#F0FFF4,rgba(16,185,129,0.1));border-radius:16rpx;padding:20rpx 24rpx}
  415. .brand-strap-text{font-size:26rpx;color:#10B981;font-weight:600}
  416. .concept-card{margin:0 24rpx 16rpx;background:#fff;border-radius:20rpx;padding:28rpx;border-left:6rpx solid #10B981;box-shadow:0 2rpx 12rpx rgba(0,0,0,0.06)}
  417. .concept-quote{font-size:30rpx;font-weight:bold;color:#333;display:block;margin-bottom:8rpx}
  418. .concept-desc{font-size:24rpx;color:#888;display:block;line-height:1.6}
  419. .case-card{margin:0 24rpx 16rpx;background:#fff;border-radius:20rpx;padding:24rpx;box-shadow:0 2rpx 12rpx rgba(0,0,0,0.06)}
  420. .case-header{margin-bottom:12rpx}
  421. .case-label{font-size:24rpx;color:#10B981;font-weight:bold}
  422. .case-body{padding:8rpx 0}
  423. .case-name{font-size:26rpx;color:#333;font-weight:600;display:block;margin-bottom:6rpx}
  424. .case-change{font-size:24rpx;color:#666;display:block;margin-bottom:12rpx}
  425. .case-metrics{display:flex;gap:16rpx;margin-bottom:12rpx}
  426. .metric-item{display:flex;flex-direction:column;align-items:center;flex:1;background:#F0FFF4;border-radius:12rpx;padding:12rpx 8rpx}
  427. .metric-up{font-size:26rpx;font-weight:bold;color:#10B981}
  428. .metric-label{font-size:20rpx;color:#999;margin-top:4rpx}
  429. .case-note{font-size:22rpx;color:#888;display:block}
  430. .guest-features{display:flex;flex-wrap:wrap;justify-content:space-between;margin:0 24rpx 16rpx}
  431. .feat-card{width:calc(50% - 8rpx);box-sizing:border-box;background:#fff;border-radius:20rpx;padding:24rpx;margin-bottom:16rpx;box-shadow:0 2rpx 12rpx rgba(0,0,0,0.06)}
  432. .feat-icon{font-size:40rpx;display:block;margin-bottom:8rpx}
  433. .feat-title{font-size:26rpx;font-weight:600;color:#333;display:block;margin-bottom:4rpx}
  434. .feat-desc{font-size:22rpx;color:#999;display:block}
  435. .login-guide-section{margin:0 24rpx 24rpx}
  436. /* 成长行动卡片 */
  437. .action-card{display:flex;align-items:center;padding:24rpx 28rpx;background:#fff;border-radius:16rpx;margin:0 24rpx 16rpx;box-shadow:0 2rpx 12rpx rgba(0,0,0,0.06)}
  438. .action-card:active{opacity:0.85}
  439. .action-icon{font-size:44rpx;margin-right:20rpx}
  440. .action-info{flex:1}
  441. .action-title{font-size:28rpx;font-weight:600;color:#333;display:block}
  442. .action-desc{font-size:22rpx;color:#888;margin-top:4rpx;display:block}
  443. .action-arrow{font-size:32rpx;color:#ccc}
  444. /* section-header 组件通用样式(推荐商品/阅读) */
  445. .section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12rpx}
  446. .section-title{font-size:28rpx;font-weight:600;color:#333}
  447. .section-more{font-size:24rpx;color:#F97316}
  448. /* 登录后原有样式 */
  449. .reminder-bar{margin:12rpx 24rpx;background:#FFF3E0;border:1rpx solid #FFB74D;border-radius:12rpx;padding:14rpx 20rpx;display:flex;align-items:center;justify-content:space-between}
  450. .reminder-text{font-size:24rpx;color:#E65100}
  451. .reminder-close{font-size:28rpx;color:#999}
  452. .progress-card{background:#fff;border-radius:20rpx;padding:24rpx;box-shadow:0 2rpx 12rpx rgba(0,0,0,0.06)}
  453. .progress-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16rpx}
  454. .progress-title{font-size:28rpx;font-weight:bold;color:#333}
  455. .progress-date{font-size:22rpx;color:#999}
  456. .progress-item{display:flex;align-items:center;padding:12rpx 0;border-bottom:1rpx solid #f5f5f5}
  457. .progress-item:last-of-type{border-bottom:none}
  458. .progress-icon{font-size:28rpx;margin-right:12rpx;flex-shrink:0}
  459. .progress-label{font-size:26rpx;color:#333;flex:1}
  460. .progress-status{font-size:22rpx;margin-right:8rpx;flex-shrink:0}
  461. .progress-grid{display:flex;justify-content:space-between}
  462. .progress-grid-item{flex:1;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20rpx 8rpx;background:#FFF7ED;border-radius:16rpx;margin-right:12rpx}
  463. .progress-grid-item:last-child{margin-right:0}
  464. .progress-grid-item:active{opacity:0.85;background:#FFEDD5}
  465. .progress-grid-icon{font-size:40rpx;margin-bottom:8rpx}
  466. .progress-grid-label{font-size:24rpx;color:#333;margin-bottom:8rpx;text-align:center}
  467. .progress-grid-status{font-size:20rpx;flex-shrink:0}
  468. .status-done{color:#10B981}
  469. .status-pending{color:#ccc}
  470. .progress-btn{font-size:22rpx;color:#F97316;padding:4rpx 16rpx;border:1rpx solid #F97316;border-radius:20rpx;flex-shrink:0}
  471. .progress-footer{display:flex;justify-content:space-between;align-items:center;margin-top:16rpx;padding-top:16rpx;border-top:1rpx solid #f5f5f5}
  472. .footer-text{font-size:24rpx;color:#666;font-weight:bold}
  473. .footer-streak{font-size:24rpx;color:#F97316;font-weight:bold}
  474. .milestone-card{background:#fff;border-radius:20rpx;padding:24rpx;box-shadow:0 2rpx 12rpx rgba(0,0,0,0.06)}
  475. .section-title-row{font-size:26rpx;font-weight:bold;color:#333;margin-bottom:16rpx;display:block}
  476. .milestone-grid{display:flex;justify-content:space-between}
  477. .milestone-item{display:flex;flex-direction:column;align-items:center;flex:1}
  478. .milestone-icon{font-size:40rpx;margin-bottom:4rpx}
  479. .milestone-value{font-size:28rpx;font-weight:bold;color:#F97316;margin-bottom:2rpx}
  480. .milestone-label{font-size:22rpx;color:#999}
  481. /* ===== 五维闭环体系样式 ===== */
  482. .wuxing-section { margin: 0 24rpx 16rpx; background: #fff; border-radius: 20rpx; padding: 24rpx; box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06); }
  483. .wuxing-title { font-size: 30rpx; font-weight: bold; color: #333; text-align: center; margin-bottom: 6rpx; }
  484. .wuxing-desc { font-size: 22rpx; color: #999; text-align: center; margin-bottom: 20rpx; }
  485. .wuxing-diagram { position: relative; height: 320rpx; margin: 0 auto 20rpx; }
  486. .wuxing-relations { margin-top: 8rpx; }
  487. .rel-group { margin-bottom: 16rpx; }
  488. .rel-title { font-size: 24rpx; font-weight: bold; color: #333; margin-bottom: 8rpx; display: block; }
  489. .rel-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4rpx; margin-bottom: 6rpx; }
  490. .rel-item { font-size: 22rpx; padding: 4rpx 10rpx; border-radius: 8rpx; background: #f7f7f7; color: #555; }
  491. .rel-arrow { font-size: 20rpx; color: #10B981; font-weight: bold; }
  492. .rel-op { font-size: 20rpx; color: #f56c6c; font-weight: bold; }
  493. .rel-dot { font-size: 20rpx; color: #ccc; }
  494. .rel-hint { font-size: 20rpx; color: #999; line-height: 1.5; display: block; }
  495. .wuxing-cards { display: flex; flex-direction: column; gap: 10rpx; margin-top: 16rpx; }
  496. .wc-card { display: flex; align-items: center; padding: 16rpx 20rpx; border-radius: 16rpx; border: 2rpx solid #f0f0f0; }
  497. .wc-card:active { opacity: 0.85; }
  498. .wc-icon { font-size: 36rpx; margin-right: 16rpx; flex-shrink: 0; }
  499. .wc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  500. .wc-name { font-size: 24rpx; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  501. .wc-text { font-size: 20rpx; color: #999; display: block; margin-top: 4rpx; white-space: normal; }
  502. .wc-body { border-color: rgba(255,140,66,0.3); background: rgba(255,140,66,0.04); border-left: 8rpx solid #FF8C42; }
  503. .wc-body .wc-name { color: #FF8C42; }
  504. .wc-wisdom { border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.04); border-left: 8rpx solid #6366F1; }
  505. .wc-wisdom .wc-name { color: #6366F1; }
  506. .wc-wealth { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.04); border-left: 8rpx solid #F59E0B; }
  507. .wc-wealth .wc-name { color: #F59E0B; }
  508. .wc-action { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.04); border-left: 8rpx solid #10B981; }
  509. .wc-action .wc-name { color: #10B981; }
  510. .wc-mind { border-color: rgba(255,107,157,0.3); background: rgba(255,107,157,0.04); border-left: 8rpx solid #FF6B9D; }
  511. .wc-mind .wc-name { color: #FF6B9D; }
  512. </style>