视觉重构:紫渐变 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
+73 -75
View File
@@ -1,20 +1,21 @@
/* settings.wxss */
/* settings.wxss
* 视觉方向:纸感编辑风(A 方案,与首页/日历一致)
*/
page {
background: #f1f4f9;
background: #FAF6ED;
}
.page {
display: flex;
flex-direction: column;
height: 100vh;
background: #f1f4f9;
background: #FAF6ED;
}
/* ───── Header ───── */
.header {
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
padding: 48rpx 36rpx 40rpx;
padding: 32rpx 36rpx 24rpx;
flex-shrink: 0;
}
@@ -22,7 +23,7 @@ page {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 32rpx;
margin-bottom: 28rpx;
}
.header-left {
@@ -31,57 +32,54 @@ page {
}
.header-title {
font-size: 44rpx;
font-weight: 700;
color: #fff;
line-height: 1.2;
letter-spacing: 2rpx;
font-size: 52rpx;
font-weight: 600;
color: #1F1D2B;
line-height: 1.15;
letter-spacing: -0.5rpx;
}
.header-sub {
font-size: 26rpx;
color: rgba(255, 255, 255, 0.7);
margin-top: 8rpx;
color: #8A8278;
margin-top: 10rpx;
}
.header-icon {
font-size: 64rpx;
opacity: 0.9;
font-size: 56rpx;
opacity: 0.85;
}
.stats-row {
display: flex;
align-items: center;
background: rgba(255, 255, 255, 0.15);
border-radius: 20rpx;
padding: 20rpx 32rpx;
gap: 64rpx;
padding-top: 12rpx;
border-top: 1rpx solid #E8E2D5;
padding-top: 24rpx;
margin-top: 4rpx;
}
.stat-item {
display: flex;
align-items: baseline;
gap: 8rpx;
flex: 1;
justify-content: center;
flex-direction: column;
gap: 4rpx;
}
.stat-num {
font-size: 48rpx;
font-weight: 700;
color: #fff;
font-size: 44rpx;
font-weight: 600;
color: #1F1D2B;
line-height: 1;
letter-spacing: -1rpx;
}
.stat-label {
font-size: 24rpx;
color: rgba(255, 255, 255, 0.75);
color: #8A8278;
}
.stat-sep {
width: 2rpx;
height: 48rpx;
background: rgba(255, 255, 255, 0.25);
flex-shrink: 0;
display: none;
}
/* ───── Body ───── */
@@ -92,48 +90,48 @@ page {
/* ───── Section label ───── */
.section-label {
font-size: 24rpx;
font-weight: 600;
color: #94a3b8;
font-size: 22rpx;
font-weight: 500;
color: #8A8278;
letter-spacing: 2rpx;
padding: 32rpx 32rpx 12rpx;
padding: 28rpx 32rpx 12rpx;
text-transform: uppercase;
}
/* ───── Card group ───── */
.card-group {
background: #fff;
border-radius: 20rpx;
background: #FFFFFF;
border: 1rpx solid #E8E2D5;
border-radius: 14rpx;
margin: 0 24rpx;
overflow: hidden;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.06);
}
/* ───── Row ───── */
.row {
display: flex;
align-items: center;
padding: 28rpx 28rpx;
transition: background 0.15s ease;
padding: 24rpx 28rpx;
transition: background 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.row:active {
background: #f8fafc;
background: #F8F4EA;
}
.row-icon-wrap {
width: 72rpx;
height: 72rpx;
border-radius: 18rpx;
width: 64rpx;
height: 64rpx;
border-radius: 14rpx;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-right: 24rpx;
margin-right: 20rpx;
}
.row-icon {
font-size: 36rpx;
font-size: 32rpx;
}
.row-body {
@@ -144,77 +142,77 @@ page {
}
.row-title {
font-size: 30rpx;
font-size: 28rpx;
font-weight: 500;
color: #1e293b;
color: #1F1D2B;
}
.row-title.danger {
color: #ef4444;
color: #C8412F;
}
.row-desc {
font-size: 24rpx;
color: #94a3b8;
font-size: 22rpx;
color: #A9A096;
}
.row-desc.danger {
color: #fca5a5;
color: #E29F92;
}
.row-arrow {
font-size: 40rpx;
color: #cbd5e1;
font-size: 36rpx;
color: #C8C2B4;
margin-left: 12rpx;
}
.row-arrow.danger {
color: #fca5a5;
color: #E29F92;
}
.row-value {
font-size: 28rpx;
color: #64748b;
font-size: 26rpx;
color: #8A8278;
}
.row-divider {
height: 1rpx;
background: #f1f5f9;
margin-left: 120rpx;
background: #E8E2D5;
margin-left: 112rpx;
}
/* ───── Tips card ───── */
/* 删原 border-left 6rpx 紫色条(禁项),改全边线 + 浅暖底标识 */
.tips-card {
background: #fff;
border-radius: 20rpx;
margin: 8rpx 24rpx 0;
padding: 28rpx 28rpx 32rpx;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.06);
border-left: 6rpx solid #6366f1;
background: #FFF8EE;
border: 1rpx solid #EFD9B5;
border-radius: 14rpx;
margin: 12rpx 24rpx 0;
padding: 24rpx 28rpx 28rpx;
}
.tips-title {
display: flex;
align-items: center;
gap: 12rpx;
margin-bottom: 20rpx;
margin-bottom: 16rpx;
}
.tips-icon {
font-size: 32rpx;
font-size: 30rpx;
}
.tips-heading {
font-size: 28rpx;
font-size: 26rpx;
font-weight: 600;
color: #1e293b;
color: #1F1D2B;
}
.tips-item {
display: flex;
align-items: flex-start;
gap: 12rpx;
margin-bottom: 12rpx;
margin-bottom: 10rpx;
}
.tips-item:last-child {
@@ -222,16 +220,16 @@ page {
}
.tips-dot {
font-size: 28rpx;
color: #6366f1;
font-size: 26rpx;
color: #B36A1F;
line-height: 1.8;
flex-shrink: 0;
}
.tips-text {
font-size: 26rpx;
color: #475569;
line-height: 1.8;
font-size: 24rpx;
color: #5A5247;
line-height: 1.7;
}
/* ───── Bottom padding ───── */