feat(ui): 统一AppBar规范与双栏动态页边距,交付自动连接配置全量物料

This commit is contained in:
zhy200308
2026-08-17 16:32:14 +08:00
parent fa304292b4
commit c50d6f00f5
29 changed files with 4250 additions and 176 deletions
@@ -22,11 +22,12 @@
| 规范项 | 参数值 | 说明 |
| :--- | :--- | :--- |
| **容器最大宽度** | **1080dp** (`--content-max-width`) | 超出宽度时屏幕左右自动居中留白 (`margin: 0 auto`) |
| **容器最大宽度** | **1160dp** (`--content-max-width`) | 超出宽度时屏幕左右自动居中留白 (`margin: 0 auto`) |
| **外层动态边距** | **`clamp(16px, 2.5vw, 32px)`** | 全局自适应外层页边距,大屏小屏上下左右等距呼吸 |
| **顶部控制面板** | **流线横向通栏** | 整合训练模式下拉选框与年龄调节滑动条 |
| **左侧心率区间卡片区** | **自适应 1fr** (~650dp) | 纵向排布 Z5 ~ Z1 五张高质感渐变卡片,每张内含动态 ❤️ 心跳 |
| **右侧暗晶 HUD 监控台** | **固定 350dp** | 黑曜石暗晶质感(`#0B0F19`),包含激光 ECG 示波屏、实时最大心率读数与流光能量阶梯 |
| **AppBar 顶部栏** | **通栏 60dp** (`--appbar-height`) | 标题 19sp/700,返回箭头 48dp 触控槽 |
| **左侧心率区间卡片区** | **自适应 1fr** (~660dp) | 纵向排布 Z5 ~ Z1 五张高质感渐变卡片,每张内含动态 ❤️ 心跳 |
| **右侧暗晶 HUD 监控台** | **固定 360dp** | 黑曜石暗晶质感(`#0B0F19`),包含激光 ECG 示波屏、实时最大心率读数与流光能量阶梯 |
| **AppBar 顶部栏** | **通栏 60dp** (`--appbar-height`) | 标题 19sp/700,40dp 纯净透明圆形触控槽 |
| **卡片圆角** | **12dp** (区间卡片) / **16dp** (HUD面板) | 细微阴影与高斯流光 |
---
@@ -53,7 +53,8 @@
--hud-accent-green: #10B981;
/* ── 栅格与尺寸 ── */
--content-max-width: 1080px;
--content-max-width: 1160px;
--content-gutter: clamp(16px, 2.5vw, 32px);
--appbar-height: 60px;
}
@@ -70,7 +71,7 @@ body {
background: var(--color-background);
color: var(--text-main);
min-height: 100vh;
padding: 24px;
padding: var(--content-gutter);
display: flex;
flex-direction: column;
}
@@ -86,37 +87,39 @@ body {
overflow: hidden;
}
/* AppBar 顶部导航栏 */
/* =========================================================================
AppBar 顶部导航栏统一规范 (40dp 纯净透明触控槽 + Hover 微圆底)
========================================================================= */
.appbar {
height: var(--appbar-height);
display: flex;
align-items: center;
padding: 0 24px;
padding: 0 20px;
border-bottom: 1px solid var(--divider);
background: var(--color-surface);
}
.appbar-nav {
width: 38px;
height: 38px;
border-radius: 10px;
width: 40px;
height: 40px;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
background: var(--color-surface-variant);
border: 1px solid var(--divider);
background: transparent;
border: none;
transition: all 0.15s ease;
}
.appbar-nav:hover {
background: #E2E8F0;
transform: scale(0.98);
background: rgba(15, 23, 42, 0.06);
transform: scale(0.96);
}
.appbar-nav svg {
width: 20px;
height: 20px;
width: 22px;
height: 22px;
fill: var(--text-main);
}
@@ -209,11 +212,11 @@ body {
.age-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
/* 主体分栏区 */
/* 主体分栏区 (内容自适应 + 动态响应式边距) */
.page-body {
padding: 24px 28px;
padding: clamp(20px, 2.5vw, 30px);
display: flex;
gap: 24px;
gap: clamp(16px, 2vw, 24px);
}
/* 左侧 5 大心率区间卡片堆叠 */
Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB