小程序端:设计系统收敛与排版层级修复

问题:88 个 wxss 里散落大量硬编码颜色/字号/字重,无法统一调整;
部分正文对比度不达 WCAG AA(4.5:1);组件触摸目标偏小。

改动:
- 硬编码颜色收敛到语义 token(颜色统一走 design token,不再散落字面值)
- 修正全站字号阶梯:正文 ≥12px、角标 ≥11px;字重只用 400/500/600/700
- 组件触摸目标提升到 ≥44px,并补交互反馈
- 首页补氛围层次、强化排版层级

验证(本轮实测):
- UI 契约门禁 18/18 PASS(含 wxml 结构、wxss 组件选择器、token 显式值断言)
- 声明级体检 88/88 通过(全部 wxss 声明合法)

交付物:artifacts/miniapp-design-v2-preview.html
This commit is contained in:
WorkBuddy
2026-09-23 01:06:46 +08:00
parent 825fd41ee4
commit 269adf1fed
81 changed files with 5064 additions and 3533 deletions
+126 -126
View File
@@ -1,209 +1,209 @@
/* 申诉提交页 — Design Tokens */
.page {
min-height: 100vh;
background: #FFF8F7;
min-height:100vh;
background:var(--color-primary-lighter);
}
.body {
padding: 24rpx;
box-sizing: border-box;
padding:24rpx;
box-sizing:border-box;
}
/* 介绍卡片 */
.intro-card {
background: #fff;
border-radius: 20rpx;
padding: 32rpx;
margin-bottom: 24rpx;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
border-left: 8rpx solid #E96B6B;
background:var(--color-bg-card);
border-radius:20rpx;
padding:32rpx;
margin-bottom:24rpx;
box-shadow:0 2rpx 12rpx rgba(0, 0, 0, 0.04);
border-left:8rpx solid var(--color-primary);
}
.intro-title {
display: block;
font-size: 34rpx;
font-weight: bold;
color: #1A1A1A;
margin-bottom: 12rpx;
display:block;
font-size:34rpx;
font-weight:bold;
color:var(--color-text-strong);
margin-bottom:12rpx;
}
.intro-subtitle {
display: block;
font-size: 26rpx;
color: #999;
line-height: 1.5;
display:block;
font-size:26rpx;
color:var(--color-text-tertiary);
line-height:1.5;
}
/* 卡片 */
.card {
background: #fff;
border-radius: 20rpx;
padding: 24rpx 32rpx;
margin-bottom: 24rpx;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
background:var(--color-bg-card);
border-radius:20rpx;
padding:24rpx 32rpx;
margin-bottom:24rpx;
box-shadow:0 2rpx 12rpx rgba(0, 0, 0, 0.04);
}
/* 证据 */
.evidence-list {
display: flex;
flex-wrap: wrap;
gap: 16rpx;
margin-top: 16rpx;
display:flex;
flex-wrap:wrap;
gap:16rpx;
margin-top:16rpx;
}
.evidence-item {
position: relative;
width: 160rpx;
height: 160rpx;
border-radius: 12rpx;
overflow: hidden;
position:relative;
width:160rpx;
height:160rpx;
border-radius:12rpx;
overflow:hidden;
}
.evidence-item image {
width: 100%;
height: 100%;
width:100%;
height:100%;
}
.remove-btn {
position: absolute;
top: 4rpx;
right: 4rpx;
width: 36rpx;
height: 36rpx;
line-height: 32rpx;
text-align: center;
background: rgba(0, 0, 0, 0.5);
color: #fff;
border-radius: 50%;
font-size: 22rpx;
}
position:absolute;
top:4rpx;
right:4rpx;
width:36rpx;
min-height:var(--tap-min);
line-height:var(--tap-min);
text-align:center;
background:rgba(0, 0, 0, 0.5);
color:var(--color-text-inverse);
border-radius:50%;
font-size:24rpx;
min-width:var(--tap-min);}
.evidence-add {
width: 160rpx;
height: 160rpx;
border-radius: 12rpx;
background: #F7F8FA;
border: 2rpx dashed #D0D0D0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #999;
width:160rpx;
height:160rpx;
border-radius:12rpx;
background:var(--color-bg-subtle);
border:2rpx dashed var(--color-border-strong);
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
color:var(--color-text-tertiary);
}
.add-icon {
font-size: 48rpx;
color: #B0B0B0;
line-height: 1;
font-size:48rpx;
color:var(--color-text-disabled);
line-height:1;
}
.add-text {
font-size: 22rpx;
margin-top: 8rpx;
font-size:24rpx;
margin-top:8rpx;
}
/* 联系方式输入 */
.contact-input {
margin-top: 16rpx;
background: #F7F8FA;
border-radius: 12rpx;
padding: 24rpx;
font-size: 28rpx;
min-height: 40rpx;
}
margin-top:16rpx;
background:var(--color-bg-subtle);
border-radius:12rpx;
padding:24rpx;
font-size:28rpx;
min-height:var(--tap-min);
min-width:var(--tap-min);}
/* 提交按钮 */
.btn-submit {
width: 100%;
height: 88rpx;
line-height: 88rpx;
border-radius: 44rpx;
background: #E96B6B;
color: #fff;
font-size: 32rpx;
border: none;
margin-top: 8rpx;
width:100%;
height:88rpx;
line-height:88rpx;
border-radius:44rpx;
background:var(--color-primary-solid);
color:var(--color-text-inverse);
font-size:32rpx;
border:none;
margin-top:8rpx;
}
.btn-submit::after {
border: none;
border:none;
}
.btn-submit[disabled] {
opacity: 0.5;
opacity:0.5;
}
.btn-primary {
width: 80%;
height: 88rpx;
line-height: 88rpx;
border-radius: 44rpx;
background: #E96B6B;
color: #fff;
font-size: 32rpx;
border: none;
margin-top: 48rpx;
width:80%;
height:88rpx;
line-height:88rpx;
border-radius:44rpx;
background:var(--color-primary-solid);
color:var(--color-text-inverse);
font-size:32rpx;
border:none;
margin-top:48rpx;
}
.btn-primary::after {
border: none;
border:none;
}
.hint {
display: block;
text-align: center;
font-size: 22rpx;
color: #B0B0B0;
margin-top: 20rpx;
padding: 0 24rpx;
display:block;
text-align:center;
font-size:24rpx;
color:var(--color-text-disabled);
margin-top:20rpx;
padding:0 24rpx;
}
/* 成功态 */
.success-wrap {
display: flex;
flex-direction: column;
align-items: center;
padding: 120rpx 48rpx;
display:flex;
flex-direction:column;
align-items:center;
padding:120rpx 48rpx;
}
.success-icon {
width: 120rpx;
height: 120rpx;
line-height: 120rpx;
text-align: center;
border-radius: 50%;
background: #E8F5E9;
color: #1A6B3E;
font-size: 64rpx;
margin-bottom: 32rpx;
width:120rpx;
height:120rpx;
line-height:120rpx;
text-align:center;
border-radius:50%;
background:var(--color-success-light);
color:var(--color-success-strong);
font-size:64rpx;
margin-bottom:32rpx;
}
.success-title {
font-size: 36rpx;
font-weight: bold;
color: #1A1A1A;
margin-bottom: 16rpx;
font-size:36rpx;
font-weight:bold;
color:var(--color-text-strong);
margin-bottom:16rpx;
}
.success-hint {
font-size: 26rpx;
color: #999;
text-align: center;
line-height: 1.6;
font-size:26rpx;
color:var(--color-text-tertiary);
text-align:center;
line-height:1.6;
}
/* 公益免费标识 */
.free-badge {
text-align: center;
padding: 24rpx;
margin-top: 16rpx;
text-align:center;
padding:24rpx;
margin-top:16rpx;
}
.free-badge text {
display: inline-block;
font-size: 22rpx;
color: #1A6B3E;
background: #E8F5E9;
padding: 8rpx 24rpx;
border-radius: 24rpx;
display:inline-block;
font-size:22rpx;
color:var(--color-success-strong);
background:var(--color-success-light);
padding:8rpx 24rpx;
border-radius:24rpx;
}