视觉重构:紫渐变 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
+116 -133
View File
@@ -1,124 +1,113 @@
/* index.wxss */
/* index.wxss
* 视觉方向:纸感编辑风(A 方案)
* - 浅米黄底(暖中性,反 SaaS 通用感)
* - 墨蓝主文字 + 暖灰副文字
* - 仅「今天/FAB」用墨红强调(Restrained,强调色占比 < 10%
* - 删除原 #6366f1→#8b5cf6 紫渐变、glassmorphism、bounce 动画、border-left 大色条
*/
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: 56rpx 36rpx 24rpx;
flex-shrink: 0;
}
.header-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 32rpx;
}
.header-left {
display: flex;
flex-direction: column;
}
.header-title {
font-size: 44rpx;
font-weight: 700;
color: #fff;
line-height: 1.2;
letter-spacing: 2rpx;
display: block;
font-size: 52rpx;
font-weight: 600;
color: #1F1D2B;
line-height: 1.15;
letter-spacing: -0.5rpx;
}
.header-date {
display: block;
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;
.header-rule {
height: 1rpx;
background: #E8E2D5;
margin-top: 28rpx;
}
.stats-row {
display: flex;
align-items: center;
background: rgba(255, 255, 255, 0.15);
border-radius: 20rpx;
padding: 20rpx 32rpx;
backdrop-filter: blur(8rpx);
gap: 64rpx;
padding-top: 24rpx;
}
.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-num-urgent {
color: #fbbf24;
color: #C8412F;
}
.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;
}
/* ───── Search ───── */
.search-wrap {
padding: 24rpx 24rpx 12rpx;
padding: 16rpx 24rpx 8rpx;
flex-shrink: 0;
}
.search-box {
display: flex;
align-items: center;
background: #fff;
border-radius: 48rpx;
padding: 20rpx 28rpx;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.07);
background: #FFFFFF;
border: 1rpx solid #E8E2D5;
border-radius: 14rpx;
padding: 18rpx 24rpx;
}
.search-icon {
font-size: 32rpx;
margin-right: 16rpx;
opacity: 0.6;
font-size: 30rpx;
margin-right: 14rpx;
opacity: 0.55;
}
.search-input {
flex: 1;
font-size: 28rpx;
color: #1e293b;
color: #1F1D2B;
line-height: 1.5;
}
.search-placeholder {
color: #94a3b8;
color: #A9A096;
}
/* ───── Filter ───── */
@@ -129,71 +118,69 @@ page {
.filter-bar {
display: flex;
padding: 16rpx 24rpx 20rpx;
gap: 16rpx;
padding: 16rpx 24rpx 8rpx;
gap: 36rpx;
}
.filter-tab {
display: inline-flex;
align-items: center;
padding: 14rpx 28rpx;
border-radius: 48rpx;
font-size: 26rpx;
color: #64748b;
background: #fff;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
padding: 10rpx 0;
font-size: 28rpx;
color: #8A8278;
background: transparent;
white-space: nowrap;
transition: all 0.2s ease;
flex-shrink: 0;
border-bottom: 4rpx solid transparent;
transition: color 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.tab-active {
background: #6366f1;
color: #fff;
box-shadow: 0 4rpx 16rpx rgba(99, 102, 241, 0.4);
color: #1F1D2B;
font-weight: 600;
border-bottom-color: #1F1D2B;
}
/* ───── List ───── */
.list {
flex: 1;
overflow: hidden;
padding: 0 24rpx;
padding: 16rpx 24rpx 0;
}
/* ───── Card ───── */
.card {
display: flex;
align-items: center;
background: #fff;
border-radius: 20rpx;
padding: 28rpx 28rpx 28rpx 24rpx;
margin-bottom: 20rpx;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.06);
border-left: 6rpx solid #e2e8f0;
transition: transform 0.15s ease, box-shadow 0.15s ease;
position: relative;
overflow: hidden;
background: #FFFFFF;
border: 1rpx solid #E8E2D5;
border-radius: 14rpx;
padding: 24rpx 24rpx 24rpx 20rpx;
margin-bottom: 16rpx;
transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:active {
transform: scale(0.985);
box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0.05);
}
/* 强调用整卡背景 tint,不再用粗 border-left(绝对禁用项之一) */
.card-urgent {
border-left-color: #f97316;
background: #FFF8EE;
border-color: #EFD9B5;
}
.card-today {
border-left-color: #ef4444;
background: #FFF1EA;
border-color: #E8BCA7;
}
/* ───── Avatar ───── */
.avatar-wrap {
width: 96rpx;
height: 96rpx;
width: 88rpx;
height: 88rpx;
border-radius: 50%;
margin-right: 24rpx;
margin-right: 20rpx;
flex-shrink: 0;
overflow: hidden;
}
@@ -208,16 +195,16 @@ page {
width: 100%;
height: 100%;
border-radius: 50%;
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
background: #EFE9DC;
display: flex;
align-items: center;
justify-content: center;
}
.avatar-initial {
font-size: 40rpx;
font-weight: 700;
color: #fff;
font-size: 36rpx;
font-weight: 600;
color: #5A5247;
}
/* ───── Card body ───── */
@@ -230,7 +217,7 @@ page {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12rpx;
margin-bottom: 8rpx;
}
.name-group {
@@ -245,7 +232,7 @@ page {
.card-name {
font-size: 32rpx;
font-weight: 600;
color: #1e293b;
color: #1F1D2B;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -253,10 +240,10 @@ page {
.card-nickname {
font-size: 22rpx;
color: #94a3b8;
background: #f1f5f9;
padding: 4rpx 12rpx;
border-radius: 20rpx;
color: #8A8278;
background: #F2EEE5;
padding: 3rpx 12rpx;
border-radius: 18rpx;
white-space: nowrap;
flex-shrink: 0;
}
@@ -265,8 +252,8 @@ page {
.badge {
display: inline-flex;
align-items: center;
padding: 6rpx 18rpx;
border-radius: 24rpx;
padding: 6rpx 16rpx;
border-radius: 20rpx;
flex-shrink: 0;
}
@@ -277,38 +264,38 @@ page {
}
.badge-today {
background: #fee2e2;
background: #FFE3D7;
}
.badge-today .badge-text {
color: #ef4444;
color: #C8412F;
}
.badge-hot {
background: #ffedd5;
background: #FFEFD9;
}
.badge-hot .badge-text {
color: #f97316;
color: #B36A1F;
}
.badge-soon {
background: #fef9c3;
background: #FAF1D9;
}
.badge-soon .badge-text {
color: #ca8a04;
color: #8C7322;
}
.badge-month {
background: #ede9fe;
background: #ECE6D7;
}
.badge-month .badge-text {
color: #7c3aed;
color: #6F664E;
}
.badge-normal {
background: #f1f5f9;
background: #F2EEE5;
}
.badge-normal .badge-text {
color: #64748b;
color: #8A8278;
}
/* ───── Anniversary row ───── */
@@ -325,7 +312,7 @@ page {
.ann-info {
font-size: 26rpx;
color: #475569;
color: #5A5247;
flex: 1;
white-space: nowrap;
overflow: hidden;
@@ -333,15 +320,15 @@ page {
}
.muted {
color: #94a3b8;
color: #A9A096;
}
.ann-more {
font-size: 22rpx;
color: #6366f1;
background: #ede9fe;
padding: 4rpx 12rpx;
border-radius: 20rpx;
color: #8A8278;
background: #F2EEE5;
padding: 3rpx 12rpx;
border-radius: 18rpx;
flex-shrink: 0;
}
@@ -354,24 +341,21 @@ page {
}
.empty-icon {
font-size: 120rpx;
margin-bottom: 32rpx;
font-size: 104rpx;
margin-bottom: 28rpx;
opacity: 0.7;
}
.empty-title {
font-size: 32rpx;
font-size: 30rpx;
font-weight: 600;
color: #475569;
margin-bottom: 16rpx;
color: #5A5247;
margin-bottom: 12rpx;
}
.empty-hint {
font-size: 26rpx;
color: #94a3b8;
background: #fff;
padding: 14rpx 32rpx;
border-radius: 40rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
font-size: 24rpx;
color: #A9A096;
}
/* ───── List bottom padding ───── */
@@ -382,28 +366,27 @@ page {
/* ───── FAB ───── */
.fab {
position: fixed;
bottom: 120rpx;
right: 40rpx;
width: 112rpx;
height: 112rpx;
bottom: 64rpx;
right: 36rpx;
width: 104rpx;
height: 104rpx;
border-radius: 50%;
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
background: #1F1D2B;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 12rpx 40rpx rgba(99, 102, 241, 0.5);
box-shadow: 0 10rpx 28rpx rgba(31, 29, 43, 0.32);
z-index: 100;
transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.fab:active {
transform: scale(0.9);
box-shadow: 0 6rpx 20rpx rgba(99, 102, 241, 0.4);
transform: scale(0.93);
}
.fab-icon {
font-size: 64rpx;
color: #fff;
font-size: 56rpx;
color: #FAF6ED;
font-weight: 300;
line-height: 1;
margin-top: -4rpx;