视觉重构:紫渐变 SaaS 风 → 纸感编辑风(A 方案)
部署到群晖 / deploy (push) Successful in 43s

旧版多处违反 impeccable 设计规范(gradient text、6rpx 粗色条 border-left、
glassmorphism、bounce 动画)且整体呈现典型「AI/SaaS 通用紫渐变」(#6366f1 系、
#667eea 系),用户反馈「AI 味儿太浓」。

色板(OKLCH 概念,hex 落地):
- 背景:浅米黄 #FAF6ED
- 主文字:深墨蓝 #1F1D2B
- 暖灰副文字:#8A8278
- 强调(仅 today / FAB):墨红 #C8412F

涉及改动:
- app.wxss:删模板自带 .container padding 200rpx(首页/日历顶部空白真凶)+ 重写全局色板
- index.wxml/wxss:去紫渐变 Header + glassmorphism stats + border-left 大色条 + bounce
- calendar.wxml/wxss/json:去紫渐变月份头 + today 大色块 + section-title 6rpx 紫条
- settings.wxss:同款紫 Header + tips-card 6rpx 紫条 → 全卡边线 + 浅暖底
- add-anniversary.wxss:chip-active 紫 / 取消提交按钮渐变 / importance 高饱和色 → 统一
- add-person.wxss:gradient text + 紫 dashed 头像占位 + 多重渐变 → 全套重写
- person-detail.wxss:微信绿 + 灰底默认色 → 方向 A 色板
- utils/constants.js:IMPORTANCE_COLORS 高/中/低 = 墨红/焦糖/苔绿(替代橙红/橘/鲜绿)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
yuming
2026-06-02 09:27:16 +08:00
parent 323c566597
commit 3f176924d0
12 changed files with 577 additions and 598 deletions
+49 -78
View File
@@ -1,120 +1,91 @@
/**app.wxss**/
/**app.wxss
* 全局基础样式 —— 纸感编辑风(A 方案)
* 色板:浅米黄底 + 墨蓝文字 + 暖灰副文字 + 墨红强调
* 注:每个页面可在自己的 wxss 里覆盖;这里只做"全局兜底"
*/
page {
background: #FAF6ED;
color: #1F1D2B;
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
'Microsoft YaHei', system-ui, sans-serif;
}
/* 通用容器:不设 padding,每页根据需要自定 */
.container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 200rpx 0;
min-height: 100vh;
background-color: #FAF6ED;
box-sizing: border-box;
}
/* 全局样式 */
page {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
background-attachment: fixed;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
/* 通用容器 */
/* 通用内容包装 */
.content {
padding: 40rpx;
padding: 32rpx 24rpx;
}
/* 按钮样式 */
/* 按钮 */
.btn {
border-radius: 12rpx;
font-size: 32rpx;
padding: 24rpx 48rpx;
transition: all 0.3s ease;
font-size: 30rpx;
padding: 22rpx 36rpx;
transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #fff;
box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.4);
background: #1F1D2B;
color: #FAF6ED;
}
.btn-primary:active {
opacity: 0.85;
}
.btn-secondary {
background-color: #fff;
color: #333;
border: 2rpx solid #e8e8e8;
background-color: #FFFFFF;
color: #1F1D2B;
border: 1rpx solid #E8E2D5;
}
/* 卡片样式 */
.card {
background-color: #fff;
border-radius: 24rpx;
padding: 32rpx;
margin-bottom: 24rpx;
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.12);
transition: all 0.3s ease;
.btn-secondary:active {
background-color: #F2EEE5;
}
/* 输入框样式 */
/* 输入框 */
.input {
background-color: #f8f9fa;
padding: 24rpx;
background-color: #FFFFFF;
border: 1rpx solid #E8E2D5;
padding: 22rpx 24rpx;
border-radius: 12rpx;
border: 2rpx solid transparent;
font-size: 28rpx;
transition: all 0.3s ease;
color: #1F1D2B;
transition: border-color 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.input:focus {
background-color: #fff;
border-color: #667eea;
border-color: #1F1D2B;
}
/* 分割线 */
.divider {
height: 1rpx;
background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
margin: 32rpx 0;
background: #E8E2D5;
margin: 28rpx 0;
}
/* 空状态 */
/* 通用空状态 */
.empty-state {
text-align: center;
padding: 120rpx 40rpx;
color: rgba(255, 255, 255, 0.8);
}
.empty-state .icon {
font-size: 140rpx;
margin-bottom: 32rpx;
filter: drop-shadow(0 4rpx 8rpx rgba(0, 0, 0, 0.1));
font-size: 104rpx;
margin-bottom: 24rpx;
opacity: 0.7;
}
.empty-state .text {
font-size: 32rpx;
color: rgba(255, 255, 255, 0.9);
font-weight: 500;
margin-bottom: 12rpx;
font-size: 26rpx;
color: #A9A096;
line-height: 1.6;
}
/* 浮动按钮 */
.fab {
position: fixed;
bottom: 120rpx;
right: 40rpx;
width: 112rpx;
height: 112rpx;
border-radius: 50%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-size: 64rpx;
box-shadow: 0 12rpx 40rpx rgba(102, 126, 234, 0.5);
z-index: 100;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fab:active {
transform: scale(0.92);
box-shadow: 0 8rpx 24rpx rgba(102, 126, 234, 0.4);
}