Files
mindfulness/设计说明文档/个性化背景颜色推荐算法.md
2026-02-05 16:06:49 +08:00

184 lines
3.8 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
🎨 个性化文案背景颜色推荐算法
V1.2(文案滑动优化版)
适用范围(明确收敛)
✅ 仅用于「文案阅读页」
✅ 支持上下滑动阅读
❌ 不用于首页 / 列表 / 卡片 / CTA
❌ 不承担转化或引导职责
一、设计目标V1.2 更新)
在 V1.1 基础上,新增以下目标:
阅读优先:颜色永远服务于“读下去”,而非“制造变化”
滑动即流动:通过连续渐变营造沉浸感,而非主题切换
低感知变化:用户能感到“舒服”,但不意识到颜色在变
核心原则不变:
不通过颜色制造新的情绪判断
二、颜色数量策略V1.2 明确约束)
2.1 颜色主题数量(不变)
Need Theme5 套(不新增)
Neutral Theme1 套
总计6 套背景主题
V1.2 明确约束:
在一次文案阅读 session 内,不允许切换主题色系
三、Base Theme保持不变仅重申
{
"emotional_support": ["#F6DCE4", "#FFEFF4", "#FFF7FA"],
"parenting_pressure": ["#D6EAF5", "#EEF6FB", "#F8FCFF"],
"self_worth": ["#FFD8A8", "#FFE8C9", "#FFF6E5"],
"anxiety_relief": ["#DFF3EA", "#ECFBF6", "#F6FFFB"],
"rest_balance": ["#F2E6D8", "#FAF3EC", "#FFFDF9"]
}
Neutral Theme:
["#F4F7F2", "#E8F1EC", "#EDF4F8"]
四、V1.2 新增:滑动专用渐变规则(重点修改)
4.1 滑动只允许「同主题内部变化」
禁止行为V1.2 明令禁止):
❌ 滑动到不同文案 → 切换 Base Theme
❌ 根据滑动进度改变 need / 情绪语义
❌ 滑动触发颜色“跳段”
允许行为:
✅ 同一 Base Theme 内做连续插值
✅ 渐变重心随 scroll 微移
4.2 渐变插值模型(保持线性)
Color(t) = lerp(Color_top, Color_bottom, t)
t = scroll_offset / content_height
t ∈ [0,1]
约束Hard Rule
仅允许 线性 lerp
禁止 easing / bounce / overshoot
禁止非连续函数
五、V1.2 新增:渐变“质感层”增强(不增加颜色数量)
⚠️ 本节为「可选增强」,不影响语义判断
5.1 渐变重心微移(推荐)
随 scroll渐变中段色的占比 ±5% 内浮动
不改变颜色值,仅改变 stop 分布
目的:
提升阅读流动感
避免“静态模板感”
5.2 亮度微扰(极弱)
ΔL ≤ ±2%
触发条件:
emotion_score ∈ [0.3, 0.6]
profile_confidence ≥ 0.6
⚠️ emotion ≤ 0.3 时 禁止任何亮度扰动
六、Session 稳定性规则V1.2 新增)
6.1 主题锁定Theme Lock
在以下条件下 锁定 Base Theme
用户进入文案页
直到退出文案页或 session 结束
即使:
用户画像更新
滑动到新文案
➡ Base Theme 不变
6.2 Session 内禁止重新采样
不允许重新随机
不允许重新计算 need
不允许跨 need 插值
七、Emotion / Confidence 调节(保持 V1.1
本节逻辑不变,仅声明适用范围
emotion_score
→ 仅影响 饱和度 / 亮度 / 动态强度
profile_confidence
→ 仅影响 个性化混合比例
不允许:
emotion 导致色系改变
confidence 导致主题切换
八、Hard Visual RulesV1.2 汇总)
条件 强制规则
mom_stage = unknown 强制 Neutral Theme
emotion_score ≤ 0.2 禁止高饱和 / 禁止动态
profile_confidence ≤ 0.4 最大饱和度 ≤ 60%
文案页 session 中 禁止 Base Theme 切换
Hard Rules 优先于任何计算结果。
九、V1.2 Pipeline更新版
进入文案页
读取用户画像 U
need → Base Theme或 Neutral
锁定 Base Themesession
emotion / confidence → 强度调节
scroll → 线性渐变插值 + 微质感
输出连续背景颜色
十、V1.2 设计总结(评审友好版)
颜色数量不多,是刻意选择
变化来自滑动,不来自判断
颜色不“解释”用户,只“陪伴”用户
在文案阅读场景中,
稳定本身就是高级体验。