最近状态
diff --git a/apps/web/src/style.css b/apps/web/src/style.css
index a05df3f..0588336 100644
--- a/apps/web/src/style.css
+++ b/apps/web/src/style.css
@@ -79,21 +79,13 @@ button {
font-weight: 800;
}
-/* 顶部一体化温润状态卡片 */
+/* 今日页轻量上下文 */
.today-top-card {
- background: linear-gradient(135deg, #fffbf0 0%, #fff6df 100%);
- border: 1px solid #f6e6c4;
- border-radius: 16px;
- padding: 14px 16px;
- box-shadow: 0 4px 14px rgba(184, 134, 11, 0.06);
- margin-bottom: 12px;
-}
-
-.top-row {
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: 10px;
+ gap: 10px;
+ margin-bottom: 8px;
}
.family-badge {
@@ -113,12 +105,13 @@ button {
display: inline-flex;
align-items: center;
gap: 5px;
- background: #ffffff;
+ flex: 0 0 auto;
+ min-height: 34px;
+ background: #fffaf0;
border: 1px solid #ebd8b2;
border-radius: 999px;
- padding: 4px 10px 4px 7px;
+ padding: 5px 10px 5px 7px;
cursor: pointer;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
transition: all 0.15s ease;
}
@@ -145,19 +138,20 @@ button {
}
.baby-main-row {
+ min-width: 0;
+ flex: 1;
display: flex;
align-items: center;
- gap: 12px;
- padding: 10px 12px;
- border-radius: 12px;
- background: rgba(255, 255, 255, 0.7);
- border: 1px solid rgba(246, 230, 196, 0.6);
+ justify-content: flex-start;
+ padding: 0;
+ border: 0;
+ background: transparent;
cursor: pointer;
transition: all 0.15s ease;
+ text-align: left;
}
.baby-main-row:active {
- background: rgba(255, 255, 255, 0.95);
transform: scale(0.99);
}
@@ -205,15 +199,19 @@ button {
.baby-name-row {
display: flex;
align-items: center;
- gap: 8px;
+ gap: 7px;
+ min-width: 0;
}
.baby-name {
margin: 0;
- font-size: 20px;
+ font-size: 17px;
font-weight: 800;
color: #2c2518;
line-height: 1.2;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
.baby-switch-tag {
@@ -234,6 +232,7 @@ button {
}
.baby-age-chip {
+ flex: 0 0 auto;
font-size: 12px;
font-weight: 700;
color: #b45309;
@@ -436,9 +435,29 @@ button {
.summary-grid {
display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- gap: 12px;
- margin: 16px 0;
+ gap: 3px;
+ margin: 6px 0 12px;
+ padding: 9px 12px;
+ border-radius: 12px;
+ background: #fffdf8;
+ border: 1px solid #f2dfba;
+ box-shadow: inset 3px 0 0 #f0b74f;
+}
+
+.summary-primary-line {
+ color: #17202a;
+ font-size: 13px;
+ font-weight: 900;
+ line-height: 1.35;
+ white-space: nowrap;
+}
+
+.summary-secondary-line {
+ color: #667085;
+ font-size: 12px;
+ font-weight: 800;
+ line-height: 1.35;
+ white-space: nowrap;
}
.metric-card,
@@ -520,6 +539,170 @@ button {
margin-top: 4px;
}
+.quick-record-actions {
+ display: grid;
+ gap: 10px;
+}
+
+.quick-record-actions .primary-action {
+ min-height: 76px;
+ padding: 13px 16px;
+}
+
+.quick-sleep-action {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+}
+
+.quick-sleep-action strong,
+.quick-sleep-action span {
+ margin: 0;
+}
+
+.quick-sleep-secondary {
+ min-height: 42px;
+ border-radius: 999px;
+ background: #ffffff;
+ border: 1px solid #d7e5f5;
+ color: #2364b5;
+ font-size: 14px;
+ font-weight: 900;
+}
+
+.quick-sleep-secondary:disabled {
+ opacity: 0.55;
+ cursor: not-allowed;
+}
+
+.sleep-active-row {
+ display: grid;
+ gap: 8px;
+ padding: 12px;
+ border-radius: 12px;
+ background: #ede7ff;
+}
+
+.sleep-active-main {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+}
+
+.sleep-active-main strong {
+ min-width: 0;
+ color: #17202a;
+ font-size: 16px;
+ line-height: 1.25;
+ font-weight: 900;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.sleep-active-main button {
+ flex: 0 0 auto;
+ min-height: 34px;
+ padding: 6px 13px;
+ border-radius: 999px;
+ background: #ffffff;
+ color: #4c1d95;
+ border: 1px solid rgba(124, 58, 237, 0.18);
+ font-size: 13px;
+ font-weight: 900;
+}
+
+.sleep-active-main button:disabled,
+.sleep-adjust-link:disabled {
+ opacity: 0.55;
+ cursor: not-allowed;
+}
+
+.sleep-adjust-link {
+ justify-self: start;
+ padding: 0;
+ background: transparent;
+ color: #2364b5;
+ font-size: 13px;
+ line-height: 1.3;
+ font-weight: 900;
+}
+
+.quick-excretion-row {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 10px;
+}
+
+.quick-excretion-row .primary-action {
+ min-height: 82px;
+}
+
+.sleep-action-sheet {
+ padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
+ background: #fffdfa;
+}
+
+.sleep-action-sheet-head {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+}
+
+.sleep-action-sheet-head h3 {
+ margin: 0;
+ color: #17202a;
+ font-size: 18px;
+ line-height: 1.25;
+}
+
+.sleep-duration-grid {
+ display: grid;
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: 8px;
+ margin-top: 18px;
+}
+
+.sleep-time-fields {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 10px;
+ margin-top: 18px;
+}
+
+.sleep-time-fields label {
+ display: grid;
+ gap: 8px;
+}
+
+.sleep-time-fields span {
+ color: #4b5563;
+ font-size: 13px;
+ font-weight: 900;
+}
+
+.sleep-time-fields input {
+ width: 100%;
+ min-height: 42px;
+ box-sizing: border-box;
+ border: 1px solid #e2dbcd;
+ border-radius: 10px;
+ background: #ffffff;
+ padding: 8px 10px;
+ color: #17202a;
+ font: inherit;
+}
+
+.sleep-sheet-submit {
+ width: 100%;
+ min-height: 42px;
+ justify-content: center;
+ margin-top: 18px;
+}
+
.feeding {
background: #fff1cf;
}
@@ -1131,17 +1314,6 @@ button {
box-shadow: 0 8px 16px rgba(164, 98, 8, 0.18);
}
-.bf-quick-hint {
- margin-top: 10px;
- border-radius: 12px;
- background: #ffffff;
- color: #64748b;
- font-size: 12px;
- line-height: 1.5;
- padding: 9px 10px;
- box-shadow: inset 0 0 0 1px #e8eef6;
-}
-
.bf-live-actions {
grid-template-columns: 1fr;
}
@@ -2224,10 +2396,10 @@ button {
/* 照护记录工具栏与按日分组样式 */
.timeline-toolbar {
- margin-bottom: 16px;
+ margin-bottom: 14px;
background: #ffffff;
- border-radius: 14px;
- padding: 12px;
+ border-radius: 12px;
+ padding: 10px;
border: 1px solid #ede8de;
}
@@ -2239,35 +2411,16 @@ button {
gap: 10px;
}
-.timeline-toolbar-top {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 10px;
-}
-
.date-filter-box {
display: flex;
align-items: center;
background: #fdfbf7;
border: 1px solid #e2dbcd;
- border-radius: 8px;
- padding: 3px 8px;
+ border-radius: 9px;
+ padding: 2px 8px;
gap: 6px;
}
-.timeline-count-summary {
- flex: 0 0 auto;
- color: #65707d;
- font-size: 12px;
- font-weight: 800;
-}
-
-.timeline-count-summary strong {
- color: #8a540d;
- font-size: 14px;
-}
-
.behavior-filter-row {
display: flex;
align-items: center;
@@ -2279,14 +2432,21 @@ button {
scrollbar-width: none;
}
+.behavior-filter-row.sheet {
+ margin-top: 16px;
+ padding-bottom: 0;
+ flex-wrap: wrap;
+ overflow: visible;
+}
+
.behavior-filter-row::-webkit-scrollbar {
display: none;
}
.behavior-filter-chip {
flex: 0 0 auto;
- min-height: 30px;
- padding: 6px 11px;
+ min-height: 34px;
+ padding: 7px 13px;
border-radius: 999px;
background: #f4efe6;
color: #5d6470;
@@ -2335,15 +2495,13 @@ button {
.toolbar-actions {
display: grid;
- gap: 8px;
- margin-top: 10px;
+ gap: 7px;
+ margin-top: 8px;
}
.toolbar-actions .primary-pill-button,
-.toolbar-actions .secondary-pill-button,
-.toolbar-actions .sort-toggle-btn,
-.toolbar-actions .manage-toggle-btn {
- min-height: 34px;
+.toolbar-actions .secondary-pill-button {
+ min-height: 38px;
justify-content: center;
white-space: nowrap;
}
@@ -2356,13 +2514,34 @@ button {
.record-action-row.primary {
display: grid;
- grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
+ grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}
.record-action-row.subtle {
justify-content: flex-end;
}
+.toolbar-text-btn {
+ min-height: 30px;
+ padding: 5px 10px;
+ border-radius: 999px;
+ background: #f8fafc;
+ color: #596575;
+ border: 1px solid #d7e0ea;
+ font-size: 12px;
+ font-weight: 800;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 3px;
+}
+
+.toolbar-text-btn.active {
+ background: #fff7df;
+ color: #8a540d;
+ border-color: #ead09d;
+}
+
.sort-toggle-btn {
background: #f8fafc;
color: #475569;
@@ -2410,7 +2589,7 @@ button {
}
.timeline-meta-bar {
- margin-top: 8px;
+ margin-top: 7px;
font-size: 12px;
color: #65707d;
display: flex;
@@ -2428,6 +2607,78 @@ button {
color: #1f2937;
}
+.timeline-filter-sheet {
+ padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
+ background: #fffdfa;
+}
+
+.timeline-filter-sheet-head {
+ display: flex;
+ align-items: flex-start;
+ justify-content: space-between;
+ gap: 16px;
+}
+
+.timeline-filter-sheet-head h3 {
+ margin: 0;
+ color: #17202a;
+ font-size: 18px;
+ line-height: 1.25;
+}
+
+.timeline-filter-sheet-head p {
+ margin: 4px 0 0;
+ color: #72808f;
+ font-size: 12px;
+ line-height: 1.4;
+}
+
+.timeline-filter-date-field {
+ display: grid;
+ gap: 8px;
+ margin-top: 18px;
+}
+
+.timeline-filter-date-field span {
+ color: #4b5563;
+ font-size: 13px;
+ font-weight: 900;
+}
+
+.timeline-filter-date-field .filter-date-input {
+ width: 100%;
+ min-height: 42px;
+ box-sizing: border-box;
+ border: 1px solid #e2dbcd;
+ border-radius: 10px;
+ background: #ffffff;
+ padding: 8px 10px;
+}
+
+.sheet-close-btn {
+ flex: 0 0 auto;
+ min-height: 32px;
+ padding: 5px 13px;
+ border-radius: 999px;
+ background: #f4efe6;
+ color: #6f4b16;
+ font-size: 12px;
+ font-weight: 900;
+}
+
+.timeline-filter-sheet-actions {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
+ gap: 10px;
+ margin-top: 18px;
+}
+
+.timeline-filter-sheet-actions .primary-pill-button,
+.timeline-filter-sheet-actions .secondary-pill-button {
+ min-height: 40px;
+ justify-content: center;
+}
+
.timeline-groups {
display: flex;
flex-direction: column;
diff --git a/doc/2026-09-30.md b/doc/2026-09-30.md
new file mode 100644
index 0000000..ba98b80
--- /dev/null
+++ b/doc/2026-09-30.md
@@ -0,0 +1,96 @@
+# 2026-09-30 变更记录
+
+## mobile-care-home-and-record-page-optimization
+
+### 背景
+
+照护页与记录页是新生儿家庭最高频使用的两个移动端页面。此前两个页面都存在首屏上半部分偏重的问题:
+
+- 记录页顶部常驻日期、行为筛选、统计总数、排序、管理和两个补录入口,列表内容被明显下压。
+- 照护页顶部展示家庭名、宝宝大卡片、生产方式和四宫格统计,真正的照护操作被推到较下方。
+- 快速记录区中睡眠、小便、大便都使用大块按钮,部分低频辅助操作占用过多纵向空间。
+
+本次调整以手机单手使用为优先,将页面从“概览看板”进一步收敛为“照护操作台”。
+
+### 记录页调整
+
+记录页保留两个不同补录场景,但重命名为更直观的用户语言:
+
+- `补一组记录`:用于一次性补录一组可调整的照护行为。
+- `补一条记录`:用于只补录一个单项行为。
+
+记录页顶部进一步轻量化:
+
+- 移除页面顶部 `记录` 标题。
+- 移除顶部总数展示。
+- 日期筛选与行为筛选统一收进底部筛选弹层。
+- 顶部仅保留两个补录入口,以及轻量的 `筛选`、`倒序/正序`、`管理` 操作。
+- 筛选按钮在有筛选条件时显示筛选数量,筛选状态在列表上方轻量提示。
+
+### 照护页顶部调整
+
+照护页顶部从“大宝宝信息卡 + 四宫格统计”改为轻量上下文与两行摘要:
+
+- 顶部只保留宝宝名、出生天数和当前记录人切换。
+- 移除顶部家庭名称展示。
+- 移除首屏大头像、生产方式等低频信息。
+- 今日摘要改为两行:
+
+```text
+喂奶 2 次 · 奶量 120ml
+睡眠 0 分钟 · 小便 0 · 大便 0
+```
+
+其中 `奶量` 由今日记录中带 `amountMl` 的记录前端汇总得出。该值用于展示已经结构化记录的奶量,不代表亲喂摄入量估算。
+
+### 喂养操作调整
+
+亲喂区域继续作为照护页核心操作:
+
+- 保留左右侧独立计时与切换。
+- 亲喂非计时状态下,`补记 xx 分钟` 文案调整为 `速记 xx 分钟`。
+- 删除“一键补记会按当前优先侧分配...”说明,减少操作前干扰。
+
+### 快速记录调整
+
+快速记录区按行为性质重新组织:
+
+- 睡眠是状态型动作,小便和大便是单次动作。
+- 未睡眠时展示:
+
+```text
+开始睡眠
+速记睡眠
+
+小便 大便
+```
+
+- 睡眠中展示:
+
+```text
+睡眠中 · 13:11 入睡 结束睡眠
+调整入睡时间
+
+小便 大便
+```
+
+交互规则:
+
+- `开始睡眠` / `结束睡眠` 继续复用当前睡眠计时接口。
+- `速记睡眠` 打开底部弹层,支持快速选择睡眠时长并生成一条完整睡眠记录。
+- `调整入睡时间` 打开底部弹层,允许修改当前进行中睡眠的开始日期与开始时间。
+- 小便、大便保持并排快捷按钮,减少纵向空间占用。
+
+### 设计原则
+
+- 首屏优先展示高频照护操作,而不是低频资料或管理信息。
+- 筛选、排序、管理、调整时间等低频动作应弱化为轻入口或底部弹层。
+- 摘要信息只提供当前操作所需的轻量上下文,不恢复为大面积统计卡。
+- 文案尽量使用家庭照护语言,避免“批量”“流水”“管理台”等工具化表达。
+
+### 暂不处理
+
+- 暂不新增后端统计字段;今日奶量由前端基于 `summary.timeline` 汇总。
+- 暂不估算亲喂奶量。
+- 暂不重做整个今日页信息架构;本次只收紧顶部、喂养区文案和快速记录区。
+- 暂不修改底部四个主 Tab。
diff --git a/doc/README.md b/doc/README.md
index f5d1868..9bf65ec 100644
--- a/doc/README.md
+++ b/doc/README.md
@@ -10,6 +10,7 @@
- [2026-09-26.md](./2026-09-26.md): 2026-09-26 总体架构、MVP 边界、数据模型、后端规范、前端交互、照护记录与部署流程的集中变更记录。
- [2026-09-28.md](./2026-09-28.md): 2026-09-28 统计页跨天汇总与趋势回顾调整记录。
- [2026-09-29.md](./2026-09-29.md): 2026-09-29 Vue 静态资源打入 Spring Boot Jar、记录页移动端时间线和结束时间补充提示的调整记录。
+- [2026-09-30.md](./2026-09-30.md): 2026-09-30 照护页与记录页移动端首屏轻量化、摘要条和快速记录交互优化记录。
## 记录原则