/* 稳稳健康 · 首页（稳稳 · AI 管家）
   尺寸、颜色取自 Figma「03 高保真界面设计」首页 20 屏；渐变按 gradientTransform 换算。 */

.page-home { background: var(--bg-page); }
.page-home .statusbar, .page-home .homebar { z-index: 30; }

/* 主画面：打开历史记录时整体右推 346 */
.hm-main {
  left: 0; top: 0; width: 402px; height: 874px; overflow: hidden;
  transition: transform 300ms cubic-bezier(.22,.61,.36,1);
}
.hm-main > * { position: absolute; }
.page-home.is-drawer .hm-main { transform: translateX(346px); }

/* 背景：落地态为整屏位图（渐变、光斑、光束、同心圆、玻璃面板、小象），对话态为浅色渐变 */
.hm-bg { left: 0; top: 0; width: 402px; height: 874px; object-fit: cover; }

/* 滚动区：对话可上下滑，顶部被导航栏遮住的部分透出背景 */
.hm-scroll {
  left: 0; top: 0; width: 402px; height: 874px;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none;
}
.hm-scroll::-webkit-scrollbar { display: none; }
.hm-landing, .hm-thread { position: relative; width: 402px; }
.hm-landing { height: 874px; }
.hm-thread { padding: 154px 16px 206px; min-height: 874px; }
.page-home[data-view="landing"] .hm-thread,
.page-home[data-view="thread"] .hm-landing { display: none; }
.page-home[data-view="landing"] .hm-scroll { overflow-y: hidden; }

/* 切换内容：淡入 200ms */
.hm-enter { animation: hm-in 240ms var(--ease-out) both; }
@keyframes hm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hm-nav { z-index: 8; }

/* 底部渐隐遮罩 3298:2138 */
.hm-fade {
  left: 0; top: 624px; width: 402px; height: 250px; pointer-events: none;
  background: linear-gradient(180deg, rgba(232,236,248,0) 0%, rgba(232,236,248,.7) 19.36%, #e8ecf8 46.4%, #e8ecf8 100%);
}

/* ================= 输入栏 787:399 ================= */
.hm-input {
  left: 16px; top: 712px; width: 370px; height: 56px; z-index: 9;
  padding: 4px 4px; border-radius: var(--radius-full);
  background: var(--bg-container);
  box-shadow: 0 0 2px rgba(26,31,51,.04), 0 -4px 24px rgba(63,95,224,.07), 0 8px 28px 2px rgba(63,95,224,.1);
  display: flex; align-items: center; gap: 8px;
}
.hm-ibtn {
  width: 48px; height: 48px; flex: none; border-radius: 24px;
  background: var(--bg-page);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 200ms var(--ease-out);
}
.hm-ibtn img { width: 28px; height: 28px; }
.hm-ibtn:active { background: var(--bg-pressed); }
.hm-mic { background: var(--brand-primary); }
.hm-mic:active { background: var(--brand-dark); }
.hm-field {
  flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 18px; line-height: 27px; color: var(--text-primary);
}
.hm-field::placeholder { color: var(--text-placeholder); opacity: 1; }
.hm-input:has(.hm-field:focus-visible) { outline: 3px solid var(--brand-primary); outline-offset: 2px; }

/* ================= 底部导航 1015:1962 · 贴底-AI管家 ================= */
.hm-tabbar {
  left: 0; top: 784px; width: 402px; height: 56px; z-index: 9;
  display: flex;
}
.hm-tab {
  flex: 1; height: 56px; border-radius: 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 14px; line-height: 20px; color: var(--text-secondary);
}
.hm-tab img { width: 24px; height: 24px; }
.hm-tab.is-on { color: var(--text-primary); }
.hm-tab:active { background: rgba(255,255,255,.5); }

/* 抽屉打开时盖在主画面上的遮罩 · 黑 60% */
.hm-dim {
  left: 0; top: 0; width: 402px; height: 874px; z-index: 20;
  background: rgba(0,0,0,.6); opacity: 0; pointer-events: none;
  transition: opacity 300ms var(--ease-out);
}
.page-home.is-drawer .hm-dim { opacity: 1; pointer-events: auto; cursor: pointer; }

/* ================= 落地态 ================= */
.hm-hero {
  position: absolute; left: 0; width: 402px; top: 256px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.hm-landing[data-state="new"] .hm-hero { top: 272px; }
.hm-hero h2 { font-size: 22px; line-height: 30px; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.hm-landing[data-state="new"] .hm-hero h2 {
  background: linear-gradient(76.8deg, #1a1a1a 1.4%, #2b43ba 121%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hm-hero p { font-size: 16px; line-height: 24px; color: var(--text-secondary); white-space: nowrap; }

/* 今日区 */
.hm-today {
  position: absolute; left: 24px; top: 340px; width: 354px;
  border-radius: var(--radius-24);
  background: linear-gradient(180deg, #d1dbfc -160.4%, #fff 76.6%);
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.hm-landing[data-state="new"] .hm-today { top: 356px; }
.hm-today::after, .hm-hl::after {   /* 渐变描边 1px */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.hm-today::after { background: linear-gradient(133.4deg, rgba(255,255,255,0) -1.3%, #fff 69.3%); }
.hm-hl {
  position: relative; min-height: 87px; padding: 16px 17px;
  border-radius: var(--radius-24);
  background: linear-gradient(180deg, #3f5fe0 -285.1%, #fff 43.1%);
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  display: flex; align-items: center; gap: 12px;
}
.hm-hl::after { background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 100%); }
.hm-hl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-hl-text b { font-size: 18px; line-height: 27px; font-weight: 600; }
.hm-hl-text b.is-lead { font-size: 20px; line-height: 28px; }
.hm-hl-text span { font-size: 16px; line-height: 24px; color: var(--text-placeholder); }
.btn-sm {             /* 按钮/主按钮 · 尺寸=小：视觉 36 高，热区 44 */
  position: relative; flex: none; height: 36px; padding: 0 14px;
  border-radius: var(--radius-full); background: var(--brand-primary);
  color: var(--text-anti); font-size: 16px; line-height: 24px; white-space: nowrap;
  transition: background-color 200ms var(--ease-out);
}
.btn-sm::before { content: ""; position: absolute; inset: -4px -2px; }
.btn-sm:active { background: var(--brand-dark); }

.hm-today-body { padding: 20px 0; display: flex; flex-direction: column; gap: 20px; }
/* 新对话：医生给您定的目标 */
.hm-goals { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.hm-goals h3 { font-size: 18px; line-height: 27px; font-weight: 600; }
.hm-goals-row { display: flex; gap: 42px; }
.hm-goals-row > div { display: flex; flex-direction: column; gap: 6px; }
.hm-goals-row > div:first-child { width: 126px; }
.hm-goals-row span { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.hm-goals-row b { font-size: 22px; line-height: 30px; font-weight: 600; white-space: nowrap; }
.hm-goals-row b small { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--text-secondary); margin-left: 4px; }

/* 列表行/双行 839:1665 */
.hm-row { position: relative; padding: 0 16px; display: flex; align-items: center; gap: 16px; min-height: 49px; }
.hm-row-ic { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--brand-light); }  /* Ellipse 8 */
.hm-row-ic img { position: absolute; }
.hm-row-ic .ic-heart { width: 30px; height: 30px; left: .5px; top: 2.5px; transform: rotate(15deg); }   /* Figma 旋转 -15° */
.hm-row-ic .ic-hearts { width: 28px; height: 28px; left: 2px; top: 1px; transform: rotate(15deg); }
.hm-row-ic .ic-doctor { width: 28px; height: 28px; left: 4px; top: 4px; }
.hm-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-row-text b { font-size: 18px; line-height: 27px; font-weight: 600; }
.hm-row-text span { font-size: 14px; line-height: 20px; color: var(--text-secondary); }

/* 今日待办共 4 项 · Frame 98 */
.hm-todo {
  position: relative; align-self: center; height: 36px; padding: 0 17px;
  border-radius: var(--radius-full);
  background: linear-gradient(172deg, #fafafa 1%, #ebf1ff 211.8%);
  border: 1px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,.08);
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; line-height: 20px; color: var(--text-primary);
}
.hm-todo::before { content: ""; position: absolute; inset: -5px 0; }
.hm-todo img { width: 16px; height: 16px; }
.hm-todo:active { background: var(--bg-pressed); }

/* 危急后：头晕？胸闷？拨打120（按钮/主按钮 · 大，白 70% + 红描边） */
.hm-sos {
  margin: 8px 16px 0; height: 52px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.7); border: 1px solid #e02d2d;
  color: #e02d2d; font-size: 18px; line-height: 27px; font-weight: 600;
  transition: background-color 200ms var(--ease-out);
}
.hm-sos:active { background: #fdeaea; }

/* ================= 对话 ================= */
.hm-flow { display: flex; flex-direction: column; gap: 24px; }
.hm-time {
  align-self: center; display: flex; align-items: center; gap: 16px;
  font-size: 16px; line-height: 24px; color: var(--text-secondary);
}
.hm-time img { width: 58px; height: 1px; }

/* 用户气泡 813:778 */
.hm-me-row { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.hm-bubble {
  max-width: 268px; padding: 16px;
  background: var(--brand-primary); color: var(--text-anti);
  border-radius: 24px 4px 24px 24px;
  font-size: 18px; line-height: 27px; text-align: center;
}
.hm-bubble-img {
  position: relative; width: 160px; height: 160px; padding: 0;
  border: 1px solid #fff; overflow: hidden; background: var(--brand-light);
}
.hm-bubble-img > img { width: 100%; height: 100%; object-fit: cover; }
.hm-privacy {
  position: absolute; left: 50%; bottom: 11px; transform: translateX(-50%);
  height: 36px; padding: 0 18px; border-radius: var(--radius-full); background: #fff;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 16px; line-height: 24px; color: var(--brand-primary);
}
.hm-privacy img { width: 20px; height: 20px; padding: 0.83px 2.5px; box-sizing: border-box; }
.hm-fail {   /* 发送失败 */
  width: 24px; height: 24px; flex: none; border-radius: 12px; background: #e02d2d;
  color: #fff; font-size: 16px; line-height: 20px; font-weight: 600; text-align: center;
  display: flex; align-items: center; justify-content: center;
}

/* AI 卡（AI解读卡 836:1011 与回答卡同外形） */
.hm-card {
  background: var(--bg-container); border-radius: 12px 24px 24px 24px;
  padding: 20px 16px; display: flex; flex-direction: column; gap: 20px;
}
.hm-card-head { display: flex; align-items: center; justify-content: space-between; height: 32px; }
.hm-src { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; color: var(--text-secondary); }
.hm-src img { width: 20px; height: 20px; }
.hm-level {   /* 等级标签 813:759 */
  height: 32px; padding: 0 12px; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; flex: none;
  font-size: 16px; line-height: 24px; color: #fff; white-space: nowrap;
}
.lv-normal { background: #00a21c; }
.lv-high { background: #d99e0d; }
.lv-warn { background: #f25b29; }
.lv-critical { background: #e02d2d; }
.hm-read { /* 读数排 */
  height: 75px; padding: 16px; border-radius: var(--radius-16); background: var(--brand-light);
  display: flex; align-items: baseline; gap: 10px; white-space: nowrap;
}
.hm-read b { font-family: "SF Pro Display", "Helvetica Neue", Arial, var(--font-sans); font-size: 36px; line-height: 43px; font-weight: 700; }
.hm-read span { font-size: 18px; line-height: 27px; }
.hm-sec { display: flex; flex-direction: column; gap: 12px; }
.hm-card-main { display: flex; flex-direction: column; gap: 16px; }
.hm-h { font-size: 20px; line-height: 28px; font-weight: 600; }
.hm-h.lh27 { line-height: 27px; }
.hm-h.sm { font-size: 18px; line-height: 27px; }
.hm-h.lg { font-size: 22px; line-height: 30px; }
.hm-p { font-size: 18px; line-height: 27px; }
.hm-p b { font-weight: 600; }
.hm-caption { font-size: 16px; line-height: 24px; color: var(--text-secondary); }

/* 来源行 */
.hm-refs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hm-refs > span:first-child { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.hm-ref {
  height: 32px; padding: 0 10px; border-radius: var(--radius-full);
  background: #f0f4ff; border: 1px solid rgba(63,95,224,.12);
  display: inline-flex; align-items: center;
  font-size: 14px; line-height: 20px; color: var(--brand-dark); white-space: nowrap;
}
.hm-divider { height: 1px; background: var(--border-divider); margin: 0; border: 0; flex: none; }

/* 回答/要点 */
.hm-dots { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.hm-dots li { position: relative; padding-left: 21px; font-size: 18px; line-height: 27px; }
.hm-dots li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-primary); }
/* 回答/步骤 */
.hm-steps { display: flex; flex-direction: column; gap: 16px; list-style: none; counter-reset: s; }
.hm-steps li { position: relative; padding-left: 32px; font-size: 18px; line-height: 27px; counter-increment: s; }
.hm-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 12px;
  background: var(--brand-primary); color: #fff; font-size: 14px; line-height: 20px; text-align: center;
}
/* 回答/提示框 */
.hm-tipbox { padding: 16px; border-radius: 12px; background: var(--brand-light); display: flex; gap: 8px; font-size: 16px; line-height: 24px; }
.hm-tipbox img { width: 16px; height: 16px; margin: 4px 2px 0; flex: none; }
/* 回答/示意图 */
.hm-illus { height: 162px; border-radius: 12px; background: var(--brand-light); display: flex; align-items: center; justify-content: center; }
.hm-illus img { width: 256px; height: 128px; }
/* 回答/链接行 */
.hm-link {
  align-self: flex-start; height: 44px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 18px; line-height: 27px; font-weight: 600;
}
.hm-link img { width: 20px; height: 20px; }
.hm-link:active { color: var(--text-secondary); }
/* 回答/数据块 */
.hm-stats { padding: 20px 28px; border-radius: var(--radius-16); background: var(--brand-light); display: flex; }
.hm-stats > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.hm-stats b { font-size: 22px; line-height: 30px; font-weight: 600; }
.hm-stats span { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
/* 按钮/次按钮 · 浅色 */
.btn-light {
  width: 100%; height: 44px; padding: 0 16px; border-radius: var(--radius-full);
  background: var(--brand-light); color: var(--brand-primary);
  font-size: 18px; line-height: 27px; font-weight: 600;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.btn-light.h48 { height: 48px; }
.btn-light:active { background: var(--brand-disabled); }
.btn-light.is-on { background: var(--brand-primary); color: #fff; }

/* 回答/趋势图（本周血压） */
.hm-chart { display: flex; flex-direction: column; gap: 12px; }
.hm-plot { position: relative; height: 190px; }
.hm-plot .ln { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 7px; font-size: 14px; line-height: 20px; }
.hm-plot .ln i { flex: 1; height: 0; border-top: 1px dashed; }
.hm-plot .ln-130 { top: 30px; color: #e02d2d; }
.hm-plot .ln-80 { top: 130px; color: var(--text-secondary); gap: 16px; }
.hm-plot .ln-80 i { border-color: #8c8c8c; }
.hm-bar { position: absolute; bottom: 0; width: 31px; height: 190px; }
.hm-bar i { position: absolute; left: 3px; width: 24px; border-radius: var(--radius-full); background: var(--brand-primary); }
.hm-bar.is-over i { background: #e02d2d; }
.hm-bar span { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.hm-legend { display: flex; align-items: center; justify-content: space-between; font-size: 16px; line-height: 24px; }
.hm-legend > div { display: flex; gap: 40px; }
.hm-legend > div > span { display: flex; align-items: center; gap: 12px; }
.hm-legend i { width: 12px; height: 12px; border-radius: 50%; background: var(--brand-primary); }
.hm-legend i.is-over { background: #e02d2d; }
.hm-legend > span { color: var(--text-secondary); }

/* 操作栏 858:692 */
.hm-acts { border-top: 1px solid var(--border-divider); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.hm-acts > div { display: flex; gap: 16px; }
.hm-act {
  position: relative; height: 40px; border-radius: 12px; background: #f0f5ff;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 16px; line-height: 24px; color: var(--brand-primary);
  transition: background-color 200ms var(--ease-out);
}
.hm-act::before { content: ""; position: absolute; inset: -4px; }
.hm-act img { width: 24px; height: 24px; }
.hm-act.read { width: 88px; padding: 0 14px 0 12px; }
.hm-act.copy { width: 40px; }
.hm-act:active, .hm-act.is-on { background: var(--brand-light); }
.hm-acts > span { font-size: 14px; line-height: 20px; color: var(--text-secondary); white-space: nowrap; }

/* 正在查看（加载点） */
.hm-loading { align-self: flex-start; padding: 18px 20px 18px 16px; gap: 12px; flex-direction: row; align-items: center; }
.hm-loading p { font-size: 18px; line-height: 27px; color: var(--text-secondary); }
.hm-ld { display: flex; gap: 5px; }
.hm-ld i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-primary); animation: hm-dot 1.2s ease-in-out infinite; }
.hm-ld i:nth-child(2) { opacity: .55; animation-delay: .2s; }
.hm-ld i:nth-child(3) { opacity: .25; animation-delay: .4s; }
@keyframes hm-dot { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* 您可能想问 · 快捷问题 813:773 */
.hm-ask { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hm-ask h3 { font-size: 18px; line-height: 27px; font-weight: 600; }
.hm-chip {
  height: 48px; padding: 0 16px 0 14px; border-radius: var(--radius-full); background: #fff;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px; line-height: 24px; color: var(--text-primary); white-space: nowrap;
  transition: background-color 200ms var(--ease-out);
}
.hm-chip img { width: 16px; height: 16px; }
.hm-chip:active { background: var(--bg-pressed); }
/* 反馈区 */
.hm-fb { display: flex; flex-direction: column; gap: 12px; }
.hm-fb h3 { font-size: 18px; line-height: 27px; font-weight: 600; }
.hm-fb-row { display: flex; gap: 12px; }
.hm-fb-row .btn-light { flex: 1; height: 48px; }
.hm-fb p { font-size: 18px; line-height: 27px; text-align: center; }

/* 输入栏 · 生成中：话筒换成停止 */
.page-home.is-busy .hm-mic img { content: url("../assets/home/icon-stop.svg"); }

/* ================= 语音面板 ================= */
.hm-voice {
  left: 0; top: 531px; width: 402px; height: 343px; z-index: 12;
  padding: 36px 16px 42px; border-radius: 24px 24px 0 0; background: #fff;
  box-shadow: 0 0 2px rgba(26,31,51,.04), 0 -4px 24px rgba(63,95,224,.07), 0 8px 28px 2px rgba(63,95,224,.1);
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  transform: translateY(100%); transition: transform 300ms cubic-bezier(.22,.61,.36,1);
}
.page-home.is-voice .hm-voice { transform: none; }
.hm-voice-top { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.hm-voice h2 { width: 100%; font-size: 22px; line-height: 30px; font-weight: 600; }
.hm-voice-mid { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hm-voice-mid p { font-size: 16px; line-height: 24px; color: var(--text-secondary); white-space: nowrap; }
.hm-wave { width: 260px; height: 47px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.hm-wave i { width: 4px; border-radius: 2px; flex: none; transform-origin: center; }
.hm-voice.is-listening .hm-wave i { animation: hm-wave 900ms ease-in-out infinite alternate; }
@keyframes hm-wave { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
.hm-voice-acts { width: 370px; display: flex; align-items: center; gap: 16px; }
.hm-voice-acts .btn-primary { flex: 1; width: auto; min-width: 88px; }
.page-home.is-voice .hm-tabbar, .page-home.is-voice .hm-input { visibility: hidden; transition: visibility 0s 300ms; }

/* ================= 历史记录抽屉 ================= */
.hm-drawer {
  left: 0; top: 0; width: 346px; height: 874px; z-index: 21; background: #fff;
  overflow-y: auto; scrollbar-width: none;
  transform: translateX(-100%); transition: transform 300ms cubic-bezier(.22,.61,.36,1);
}
.page-home.is-drawer .hm-drawer { transform: none; }
.hm-drawer > * { position: absolute; }
.hm-me { left: 16px; top: 66px; width: 307px; height: 62px; display: flex; align-items: center; gap: 16px; text-align: left; }
.hm-avatar { width: 62px; height: 62px; border-radius: 50%; flex: none; }
.hm-me-text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hm-me-text b { font-size: 22px; line-height: 30px; font-weight: 600; }
.hm-me-text span { font-size: 14px; line-height: 20px; white-space: nowrap; }
.hm-me-arrow { width: 24px; height: 24px; }
.hm-dr-h { left: 16px; top: 156px; font-size: 18px; line-height: 27px; font-weight: 600; }
.hm-dr-h2 { top: 346px; }
.hm-goal {
  left: 16px; top: 199px; width: 307px; height: 96px; padding: 16px 32px; border-radius: var(--radius-16);
  background: var(--brand-light); display: flex; align-items: flex-start; gap: 22px;
}
.hm-goal div { width: 77px; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.hm-goal span { font-size: 16px; line-height: 24px; color: var(--text-secondary); white-space: nowrap; }
.hm-goal b { font-size: 22px; line-height: 30px; font-weight: 600; white-space: nowrap; }
.hm-goal i { width: 1px; height: 37px; margin-top: 11px; background: #8c8c8c; flex: none; }
.hm-dr-line { left: 16px; top: 323px; width: 307px; height: 1px; border: 0; background: var(--border-divider); }
.hm-hist { left: 0; top: 389px; width: 346px; list-style: none; padding-bottom: 40px; }
.hm-hist li { position: relative; }
.hm-hist-btn {
  width: 346px; min-height: 72px; padding: 0 48px 0 16px; border-radius: 12px; text-align: left;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  transition: background-color 200ms var(--ease-out);
}
.hm-hist-btn:active { background: var(--bg-pressed); }
.hm-hist li.is-on .hm-hist-btn { background: var(--bg-page); }
.hm-hist-t { display: flex; align-items: center; gap: 12px; min-height: 27px; }
.hm-hist-t b { font-size: 18px; line-height: 27px; font-weight: 600; }
.hm-hist-btn > span:last-child { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.hm-hist-more {   /* 图标/更多 20，中心距行顶 24；热区 44 */
  position: absolute; right: 4px; top: 2px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; border-radius: 22px;
}
.hm-hist-more img { width: 20px; height: 20px; }
.hm-hist-more:active { background: var(--bg-pressed); }

@media (prefers-reduced-motion: reduce) {
  .hm-main, .hm-drawer, .hm-voice, .hm-dim { transition: none !important; }
}

/* 语音面板打开时：渐隐遮罩上移（2740:3437 中 y443 · h431） */
.page-home.is-voice .hm-fade { top: 443px; height: 431px; }

/* 对话上滑时，内容在导航栏下方渐隐，不与标题重叠（设计稿为整长画板，未画滚动态） */
.page-home[data-view="thread"] .hm-scroll {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 100px, #000 136px);
  mask-image: linear-gradient(180deg, transparent 0, transparent 100px, #000 136px);
}
