style(train): 培训页去装饰并统一字重

删除页内重复页名色带与区块竖条,课程信息卡并入页首说明,
标题与主操作字重统一 600、表单值 500,错误色改用状态令牌。
This commit is contained in:
lik
2026-11-16 19:31:00 +08:00
parent 3a863fa9c1
commit 6099158313
4 changed files with 25 additions and 52 deletions
+14 -16
View File
@@ -7,7 +7,8 @@
===== 字体系统 =====
字体栈与 app.wxss 一致,不加载外部字体。
全页只保留四档字号:价格 64 / 页面标题 40 / 区块与卡片标题 32 / 正文与注释 28。
辅助信息通过颜色和字重区分,不再额外增加字号;中文只用 400、700 两档字重。
辅助信息通过颜色和字重区分,不再额外增加字号;
字重按新版规范:400 正文、500 局部强调、600 标题与主操作,价格等强调数值保留 700。
价格等数字统一 tabular-nums,避免位数变化时左右跳动。
===== 行高 =====
@@ -34,10 +35,9 @@
/* ===== 页首 ===== */
.page-header { padding: 20rpx 4rpx 4rpx; }
/* 短横色标:页面级记号(首页 .page-accent 同一支),区块级留给竖条 */
.header-accent { width: 64rpx; height: 8rpx; border-radius: 4rpx; background: var(--brand-strong); }
.header-title {
display: block; margin-top: 20rpx;
font-size: var(--t-h1); font-weight: 700; line-height: 1.35;
display: block; margin-top: 0;
font-size: var(--t-h1); font-weight: 600; line-height: 1.35;
letter-spacing: 0; color: var(--ink);
}
.header-subtitle {
@@ -52,7 +52,6 @@
.list-card {
background: var(--white);
border: 2rpx solid var(--line);
box-shadow: var(--shadow-card);
}
.intro-card {
margin-top: 28rpx; padding: 32rpx 16rpx; border-radius: 28rpx;
@@ -65,7 +64,7 @@
.plan-divider { width: 2rpx; flex-shrink: 0; background: var(--brand-line); }
.plan-tag {
display: block;
font-size: var(--t-body); font-weight: 700; line-height: 1.4;
font-size: var(--t-body); font-weight: 600; line-height: 1.4;
letter-spacing: 0; color: var(--muted);
}
.plan-price { display: flex; align-items: baseline; justify-content: center; margin-top: 18rpx; }
@@ -97,10 +96,9 @@
竖条高 = 标题字号(34rpx),与首页 / 清单页 / 记录详情同一支记号 */
.section { margin-top: 36rpx; }
.section-head { display: flex; align-items: baseline; margin-bottom: 16rpx; padding: 0 4rpx; }
.section-bar { width: 8rpx; height: 34rpx; border-radius: 4rpx; background: var(--brand-strong); flex-shrink: 0; align-self: center; }
.section-title {
margin-left: 16rpx;
font-size: var(--t-h2); font-weight: 700; line-height: 1.4;
margin-left: 0;
font-size: var(--t-h2); font-weight: 600; line-height: 1.4;
letter-spacing: var(--tracking-title); color: var(--ink);
}
@@ -119,7 +117,7 @@
}
.spec-value {
flex: 1; min-width: 0; margin-left: 32rpx; text-align: right;
font-size: var(--t-body); font-weight: 700; line-height: 1.5;
font-size: var(--t-body); font-weight: 500; line-height: 1.5;
letter-spacing: 0; color: var(--ink); word-break: break-word;
font-variant-numeric: tabular-nums;
}
@@ -147,7 +145,7 @@
width: 44rpx; height: 44rpx; border-radius: 50%; flex-shrink: 0;
display: flex; align-items: center; justify-content: center;
background: var(--brand-soft); border: 2rpx solid var(--brand-line);
font-size: var(--t-caption); font-weight: 700; line-height: 1;
font-size: var(--t-caption); font-weight: 600; line-height: 1;
color: var(--brand-ink);
}
.step-dot-active { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--white); box-shadow: var(--shadow-cta); }
@@ -156,7 +154,7 @@
.step:last-child .step-body { padding-bottom: 0; }
.step-title {
display: block;
font-size: var(--t-title); font-weight: 700; line-height: 1.45;
font-size: var(--t-title); font-weight: 600; line-height: 1.45;
letter-spacing: 0; color: var(--ink);
}
.step-desc {
@@ -171,13 +169,13 @@
.contact-main { flex: 1; min-width: 0; padding-right: 20rpx; }
.contact-lead {
display: block;
font-size: var(--t-title); font-weight: 700; line-height: 1.45;
font-size: var(--t-title); font-weight: 600; line-height: 1.45;
letter-spacing: 0; color: var(--ink);
}
/* 客服入口:暖橙文字 + chevron 点击暗示,与本站其他入口同一口径 */
.contact-link { display: flex; align-items: center; margin-top: 20rpx; }
.contact-link-text {
font-size: var(--t-body); font-weight: 700; line-height: 1.5;
font-size: var(--t-body); font-weight: 600; line-height: 1.5;
letter-spacing: 0; color: var(--brand-ink);
}
.contact-qr { width: 240rpx; height: 220rpx; flex-shrink: 0; border-radius: 16rpx; }
@@ -192,12 +190,12 @@
flex-shrink: 0; width: 44rpx; height: 44rpx; margin-right: 16rpx; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
background: var(--brand-soft); border: 2rpx solid var(--brand-line);
font-size: var(--t-caption); font-weight: 700; line-height: 1;
font-size: var(--t-caption); font-weight: 600; line-height: 1;
color: var(--brand-ink);
}
.faq-q {
flex: 1;
font-size: var(--t-title); font-weight: 700; line-height: 1.45;
font-size: var(--t-title); font-weight: 600; line-height: 1.45;
letter-spacing: 0; color: var(--ink);
}
/* 答案缩进 60rpx:与问句正文左缘对齐(徽标 44 + 间距 16),读成一问一答 */