/* pages/train/index.wxss:配色令牌来自 app.wxss,本页不留副本 ===== 版式顺序 ===== 价格 → 培训与考试 → 报考联系 → 报名流程 → 常见问题 → 证书样本。 区块合并、间距收紧,靠发丝线与留白分层,不靠卡片堆叠。 ===== 字体系统 ===== 字体栈与 app.wxss 一致,不加载外部字体。 全页只保留四档字号:价格 64 / 页面标题 40 / 区块与卡片标题 32 / 正文与注释 28。 辅助信息通过颜色和字重区分,不再额外增加字号;中文只用 400、700 两档字重。 价格等数字统一 tabular-nums,避免位数变化时左右跳动。 ===== 行高 ===== 单行标题 1.4–1.45,多行正文 1.6–1.75。 */ .page-bg { min-height: 100vh; background: var(--paper); -webkit-font-smoothing: antialiased; /* 四档字号:语义令牌可以复用,但不增加新的字体尺寸 */ --t-display: 64rpx; --t-h1: 44rpx; /* 页面主标题:全站统一 44rpx */ --t-title: var(--fs-32); --t-body: var(--fs-28); --t-h2: var(--fs-34); /* 区块标题:全站统一 34rpx */ --t-caption: var(--t-body); --tracking-tight: -1rpx; --tracking-title: 1rpx; } .container { padding: 28rpx 32rpx calc(48rpx + env(safe-area-inset-bottom)); } /* ===== 页首 ===== */ .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; letter-spacing: 0; color: var(--ink); } .header-subtitle { display: block; margin-top: 10rpx; font-size: var(--t-body); font-weight: 400; line-height: 1.6; letter-spacing: 0; color: var(--muted); } /* 首屏主卡:两档价格并列,整卡走暖橙衬底,成为全页唯一的暖色块 价格文字用 --brand-ink(浅橙底 5.96:1,过 AA),分隔线用 --brand-line */ .intro-card, .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; background: var(--brand-soft); border-color: var(--brand-line); } /* 两栏等宽,数字同样大小,中缝一条 --brand-line 竖线 */ .plan-row { display: flex; align-items: stretch; } .plan-item { flex: 1; min-width: 0; padding: 0 20rpx; text-align: center; } .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; letter-spacing: 0; color: var(--muted); } .plan-price { display: flex; align-items: baseline; justify-content: center; margin-top: 18rpx; } .price-symbol { margin-right: 4rpx; font-size: var(--t-title); font-weight: 700; line-height: 1; color: var(--brand-ink); } .price-number { font-size: var(--t-display); font-weight: 700; line-height: 1; letter-spacing: var(--tracking-tight); font-variant-numeric: tabular-nums; color: var(--brand-ink); } .price-origin { display: block; margin-top: 14rpx; font-size: var(--t-body); font-weight: 400; line-height: 1.4; color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; } /* 适用范围说明:跟着价格走,用品牌色小字,不与原价划线混在一起 */ .price-note { display: block; margin-top: 6rpx; font-size: var(--t-caption); font-weight: 400; line-height: 1.4; color: var(--brand-ink); } /* ===== 区块标题 ===== 竖条高 = 标题字号(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; letter-spacing: var(--tracking-title); color: var(--ink); } /* ===== 白卡 ===== */ .list-card { padding: 4rpx 24rpx; border-radius: 28rpx; } /* ===== 培训与考试:规格表 ===== 左标签 muted 小字、右取值 ink 粗体,一行一条,横向扫读最快 */ .spec-card { padding-top: 4rpx; } .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; font-size: var(--t-body); font-weight: 400; line-height: 1.5; letter-spacing: 0; color: var(--muted); } .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; letter-spacing: 0; color: var(--ink); word-break: break-word; font-variant-numeric: tabular-nums; } .spec-row-link { transition: background-color 0.15s ease; } .spec-row-link:active { background: var(--brand-soft); } .spec-link { color: var(--brand-ink); } /* 证书查询是可复制的动作行:动作词走 muted 小字(与 contact 页「拨打 / 复制」同一口径), 不再用字符箭头 ↗ 粘在网址后面 */ .spec-link-wrap { display: flex; align-items: baseline; justify-content: flex-end; gap: 12rpx; } .spec-action { font-size: var(--t-caption); font-weight: 400; color: var(--muted); } /* 卡片尾部说明:--muted 注释字号,比正文轻一档,是"以…为准"的免责声明 */ .card-note { display: block; padding: 22rpx 0; font-size: var(--t-caption); font-weight: 400; line-height: 1.7; letter-spacing: 0; color: var(--muted); } /* ===== 报名流程(时间轴)===== */ .step-card { padding-top: 28rpx; padding-bottom: 28rpx; } .step { display: flex; } .step-rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; } .step-dot { 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; color: var(--brand-ink); } .step-dot-active { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--white); box-shadow: var(--shadow-cta); } .step-line { width: 2rpx; flex: 1; min-height: 34rpx; background: var(--sep); } .step-body { flex: 1; min-width: 0; margin-left: 20rpx; padding-bottom: 26rpx; } .step:last-child .step-body { padding-bottom: 0; } .step-title { display: block; font-size: var(--t-title); font-weight: 700; line-height: 1.45; letter-spacing: 0; color: var(--ink); } .step-desc { display: block; margin-top: 6rpx; font-size: var(--t-body); font-weight: 400; line-height: 1.7; letter-spacing: 0; color: var(--muted); } /* ===== 报考联系:文字与二维码并排 ===== 二维码不必独占一行,说明与入口压在同一张卡里 */ .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; 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; letter-spacing: 0; color: var(--brand-ink); } .contact-qr { width: 240rpx; height: 220rpx; flex-shrink: 0; border-radius: 16rpx; } /* ===== 常见问题 ===== 问:一行粗体墨色;答:缩进到问句正文左缘,常规字重 ink-2 */ .faq-card { padding-top: 4rpx; padding-bottom: 4rpx; } .faq-item { padding: 26rpx 0; border-bottom: 2rpx solid var(--line); } .faq-item:last-child { border-bottom: none; } .faq-q-row { display: flex; align-items: flex-start; } .faq-badge { 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; color: var(--brand-ink); } .faq-q { flex: 1; font-size: var(--t-title); font-weight: 700; line-height: 1.45; letter-spacing: 0; color: var(--ink); } /* 答案缩进 60rpx:与问句正文左缘对齐(徽标 44 + 间距 16),读成一问一答 */ .faq-a { display: block; margin-top: 12rpx; padding-left: 60rpx; font-size: var(--t-body); font-weight: 400; line-height: 1.75; letter-spacing: 0; color: var(--ink-2); } /* ===== 证书样本 ===== 样本图限宽居中,不必铺满整卡,否则一张图吃掉大半屏 */ .sample-card { padding: 20rpx; } .sample-frame { padding: 12rpx; border-radius: 20rpx; background: var(--paper); border: 2rpx dashed var(--sep); } .sample-image { display: block; width: 100%; max-width: 380rpx; margin: 0 auto; border-radius: 12rpx; background: var(--brand-soft); } .sample-note { display: block; margin-top: 16rpx; font-size: var(--t-caption); font-weight: 400; line-height: 1.6; letter-spacing: 0; color: var(--muted); text-align: center; } /* ===== 页面收尾 ===== 无固定底栏,页尾留一段安全距离即可 */ @media (prefers-reduced-motion: reduce) { .spec-row-link { transition: none; } }