Compare commits
1
Commits
3a2a30e12f
...
11b4b7d697
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
11b4b7d697 |
+24
-30
@@ -5,17 +5,13 @@
|
||||
区块合并、间距收紧,靠发丝线与留白分层,不靠卡片堆叠。
|
||||
|
||||
===== 字体系统 =====
|
||||
字体栈与 app.wxss 一致:iOS 落到苹方、Windows/安卓落到雅黑或系统黑体,
|
||||
都属同一类无衬线,不强行加载外部字体,避免首屏体积与闪烁问题。
|
||||
字号、字重、字距全部收在下方的 --t-* / --tracking-* 令牌里,
|
||||
页面内不再出现散落的 font-size 字面量:
|
||||
展示数字 88 / 页面标题 44 / 区块标题 36 / 卡片主值 32 / 正文 28 / 注释 26
|
||||
中文只用 400、700 两档字重;大字标题字距为 0,小号英文标反而放宽到 4rpx,
|
||||
让"大标题紧、小标签松"形成对比,这是最省力的秩序感来源。
|
||||
价格等数字统一 tabular-nums,切数与位数变化时不会左右跳。
|
||||
字体栈与 app.wxss 一致,不加载外部字体。
|
||||
全页只保留四档字号:价格 64 / 页面标题 40 / 区块与卡片标题 32 / 正文与注释 28。
|
||||
辅助信息通过颜色和字重区分,不再额外增加字号;中文只用 400、700 两档字重。
|
||||
价格等数字统一 tabular-nums,避免位数变化时左右跳动。
|
||||
|
||||
===== 行高 =====
|
||||
单行标题 1.4–1.45,多行正文 1.7–1.75;中文方块字低于 1.4 发挤、高于 1.8 发散 */
|
||||
单行标题 1.4–1.45,多行正文 1.6–1.75。 */
|
||||
|
||||
.page-bg {
|
||||
min-height: 100vh;
|
||||
@@ -23,24 +19,22 @@
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
|
||||
/* 72rpx:价格数字收小一号(原 88rpx),避免大号数字压过卡片信息 */
|
||||
--t-display: 72rpx;
|
||||
--t-h1: 44rpx;
|
||||
/* 36rpx 及以上不参与全局字号令牌(大字模式不放大),保持字面量 */
|
||||
--t-h2: 36rpx;
|
||||
/* 中小号三档接全局令牌,二期大字模式只需覆写 app.wxss 一处 */
|
||||
/* 四档字号:语义令牌可以复用,但不增加新的字体尺寸 */
|
||||
--t-display: 64rpx;
|
||||
--t-h1: 40rpx;
|
||||
--t-title: var(--fs-32);
|
||||
--t-body: var(--fs-28);
|
||||
--t-caption: var(--fs-26);
|
||||
--t-h2: var(--t-title);
|
||||
--t-caption: var(--t-body);
|
||||
--tracking-tight: -1rpx;
|
||||
--tracking-title: 1rpx;
|
||||
--tracking-label: 4rpx;
|
||||
--tracking-label: 2rpx;
|
||||
}
|
||||
|
||||
.container { padding: 32rpx 32rpx calc(48rpx + env(safe-area-inset-bottom)); }
|
||||
.container { padding: 28rpx 28rpx calc(48rpx + env(safe-area-inset-bottom)); }
|
||||
|
||||
/* ===== 页首 ===== */
|
||||
.page-header { padding: 24rpx 0 8rpx; }
|
||||
.page-header { padding: 20rpx 4rpx 4rpx; }
|
||||
/* 短横色标:页面级记号(首页 .page-accent 同一支),区块级留给竖条 */
|
||||
.header-accent { width: 64rpx; height: 8rpx; border-radius: 4rpx; background: var(--brand-strong); }
|
||||
.header-title {
|
||||
@@ -63,7 +57,7 @@
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
.intro-card {
|
||||
margin-top: 32rpx; padding: 40rpx 24rpx; border-radius: 28rpx;
|
||||
margin-top: 28rpx; padding: 32rpx 16rpx; border-radius: 24rpx;
|
||||
background: var(--brand-soft); border-color: var(--brand-line);
|
||||
}
|
||||
|
||||
@@ -96,11 +90,11 @@
|
||||
}
|
||||
|
||||
/* ===== 区块标题 =====
|
||||
竖条高 = 标题字号(36rpx),与首页 / itemlist 同一支记号;
|
||||
竖条高 = 标题字号(32rpx),与首页 / itemlist 同一支记号;
|
||||
右侧英文小标只做节奏与秩序感,宽字距 + muted,不与中文标题争层级 */
|
||||
.section { margin-top: 44rpx; }
|
||||
.section-head { display: flex; align-items: baseline; margin-bottom: 20rpx; }
|
||||
.section-bar { width: 8rpx; height: 36rpx; border-radius: 4rpx; background: var(--brand-strong); flex-shrink: 0; align-self: center; }
|
||||
.section { margin-top: 36rpx; }
|
||||
.section-head { display: flex; align-items: baseline; margin-bottom: 16rpx; padding: 0 4rpx; }
|
||||
.section-bar { width: 8rpx; height: 32rpx; 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;
|
||||
@@ -113,12 +107,12 @@
|
||||
}
|
||||
|
||||
/* ===== 白卡 ===== */
|
||||
.list-card { padding: 6rpx 26rpx; border-radius: 28rpx; }
|
||||
.list-card { padding: 4rpx 24rpx; border-radius: 24rpx; }
|
||||
|
||||
/* ===== 培训与考试:规格表 =====
|
||||
左标签 muted 小字、右取值 ink 粗体,一行一条,横向扫读最快 */
|
||||
.spec-card { padding-top: 4rpx; }
|
||||
.spec-row { display: flex; align-items: baseline; justify-content: space-between; padding: 24rpx 0; border-bottom: 2rpx solid var(--line); }
|
||||
.spec-row { display: flex; align-items: baseline; justify-content: space-between; padding: 22rpx 0; border-bottom: 2rpx solid var(--line); }
|
||||
.spec-row:last-of-type { border-bottom: none; }
|
||||
.spec-label {
|
||||
flex-shrink: 0;
|
||||
@@ -127,7 +121,7 @@
|
||||
}
|
||||
.spec-value {
|
||||
flex: 1; min-width: 0; margin-left: 32rpx; text-align: right;
|
||||
font-size: var(--t-title); font-weight: 700; line-height: 1.5;
|
||||
font-size: var(--t-body); font-weight: 700; line-height: 1.5;
|
||||
letter-spacing: 0; color: var(--ink); word-break: break-word;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
@@ -171,8 +165,8 @@
|
||||
|
||||
/* ===== 报考联系:文字与二维码并排 =====
|
||||
二维码不必独占一行,说明与入口压在同一张卡里 */
|
||||
.contact-card { display: flex; align-items: center; padding: 20rpx 24rpx; }
|
||||
.contact-main { flex: 1; min-width: 0; padding-right: 24rpx; }
|
||||
.contact-card { display: flex; align-items: center; padding: 24rpx; }
|
||||
.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;
|
||||
@@ -184,7 +178,7 @@
|
||||
font-size: var(--t-body); font-weight: 700; line-height: 1.5;
|
||||
letter-spacing: 0; color: var(--brand-ink);
|
||||
}
|
||||
.contact-qr { width: 280rpx; height: 260rpx; flex-shrink: 0; border-radius: 16rpx; }
|
||||
.contact-qr { width: 240rpx; height: 220rpx; flex-shrink: 0; border-radius: 16rpx; }
|
||||
|
||||
/* ===== 常见问题 =====
|
||||
问:一行粗体墨色;答:缩进到问句正文左缘,常规字重 ink-2 */
|
||||
|
||||
Reference in New Issue
Block a user