/* 稳稳健康 · 其余页面：健康档案 / 血压 / 用药 / 我的医生 / 医生主页 / 服务包详情 / 我的 / 我的家人 / 字号与语音
   坐标、字号、颜色取自 Figma 03 高保真（节点见 index.html 注释）。 */

/* ================= 通用：可滚动页 ================= */
.pg-scroll {
  left: 0; top: 0; width: 402px; height: 874px;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-width: none;
}
.pg-scroll::-webkit-scrollbar { display: none; }
.pg-body { position: relative; width: 402px; }
.pg-body > * { position: absolute; }
.pg-bg { left: 0; top: 0; width: 402px; pointer-events: none; }

/* 滚动后顶部出现磨砂底，让标题不压在内容上（自加，设计稿为静态长图） */
.pg-top {
  left: 0; top: 0; width: 402px; height: 106px; z-index: 4;
  background: rgba(244,246,252,.86);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(26,31,51,.06);
  opacity: 0; pointer-events: none;
  transition: opacity 200ms var(--ease-out);
}
.page.is-scrolled .pg-top { opacity: 1; }

/* 一级大标题导航：标题左对齐 22/30 */
.nav-lg .nav-title { text-align: left; font-size: 22px; line-height: 30px; }

.num { font-family: "SF Pro Display", "Helvetica Neue", Arial, var(--font-sans); }

/* 卡片标题：竖条 5×17 + 18/27 */
.ttl { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 27px; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.ttl::before { content: ""; width: 5px; height: 17px; border-radius: 999px; background: var(--brand-primary); flex: none; }
.ttl.no-bar::before { display: none; }
.sec-h { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 27px; font-weight: 600; }
.sec-h img { width: 20px; height: 20px; }

.more { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; color: var(--text-secondary); white-space: nowrap; }
.more img { width: 16px; height: 16px; }
.ic20 { width: 20px; height: 20px; flex: none; }
.ic24 { width: 24px; height: 24px; flex: none; }
.ic-white { filter: brightness(0) invert(1); }
.ic-down { transform: rotate(90deg); }
.ic-left { transform: rotate(180deg); }

/* 可点卡片：按下轻微变暗，不缩放不回弹 */
.tap { cursor: pointer; transition: background-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.tap:active { filter: brightness(.97); }
button.tap { text-align: left; font: inherit; color: inherit; }
/* 视觉小于 44 的按钮补热区 */
.hit { position: relative; }
.hit::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }

/* ================= 底部导航 · 悬浮（1015:1962 样式=悬浮-*） ================= */
.ft-fade.ft-760 { top: 760px; height: 114px; background: linear-gradient(180deg, rgba(var(--fade-rgb),0) 0%, rgb(var(--fade-rgb)) 28%, rgb(var(--fade-rgb)) 100%); }
.ft-fade { left: 0; top: 780px; width: 402px; height: 94px; z-index: 7; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--fade-rgb),0) 0%, rgb(var(--fade-rgb)) 34%, rgb(var(--fade-rgb)) 100%); }
.ftab {
  left: 16px; top: 780px; width: 370px; height: 64px; z-index: 8;
  border-radius: 999px; background: #fff;
  box-shadow: 0 4px 8px rgba(26,31,51,.06), 0 0 2px rgba(26,31,51,.04), 0 -2px 12px rgba(0,0,0,.05);
  padding: 4px; display: flex;
}
.ftab-pill { position: absolute; left: 4px; top: 4px; width: 90.5px; height: 56px; border-radius: 28px; background: #f0f1f5;
  transform: translateX(calc(var(--i, 0) * 90.5px)); }
.ftab button {
  position: relative; 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);
}
.ftab button img { width: 24px; height: 24px; }
.ftab button[data-tab="health"] img { transform: translateY(1px); } /* 爱心图形重心偏上，视觉对齐其他图标 */
.ftab button[aria-current] { color: var(--text-primary); }

/* 底部固定操作区 */
.bottom-bar { left: 0; top: 776px; width: 402px; height: 98px; z-index: 7; background: #fff; border-top: 1px solid var(--border-divider); padding: 12px 16px 34px; }

/* 开关 52×32（开关 1015:… 状态=开/关） */
.switch { position: relative; width: 52px; height: 32px; flex: none; border-radius: 16px; background: #ebf1ff; padding: 2px; cursor: pointer;
  transition: background-color 200ms var(--ease-out); }
.switch::before { content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 48px; transform: translate(-50%,-50%); }
.switch i { display: block; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(26,31,51,.12), 0 0 1px rgba(26,31,51,.12);
  transition: transform 200ms var(--ease-out); }
.switch[aria-checked="true"] { background: var(--brand-primary); }
.switch[aria-checked="true"] i { transform: translateX(20px); }
.switch:focus-visible { outline: 3px solid var(--brand-primary); outline-offset: 3px; }

/* 等级标签 */
.lv { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; color: #fff; font-size: 16px; line-height: 24px; }
.lv-normal { background: #00a21c; } .lv-warn { background: #f25b29; } .lv-high { background: #d99e0d; } .lv-critical { background: #e02d2d; }
.tag-solid { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 999px; font-size: 14px; line-height: 20px; color: #fff; background: #e02d2d; white-space: nowrap; }
.tag-soft { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 12px; font-size: 14px; line-height: 20px; color: var(--brand-primary); background: #ebf1ff; white-space: nowrap; }
.tag-line { font-style: normal; display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 999px; border: 1px solid #8c8c8c; font-size: 14px; line-height: 20px; color: #2b43ba; white-space: nowrap; }

/* ================= 健康档案 2740:4017 ================= */
.page-health { --fade-rgb: 240,241,245; }
.hl-sheet { left: 0; top: 215px; width: 402px; height: 893px; }
.hl-ava, .me-ava { border-radius: 50%; overflow: hidden; background: #8c8c8c; }
.hl-ava { left: 36px; top: 130px; width: 82px; height: 82px; box-shadow: inset 0 0 0 1px #fff; }
.hl-ava img, .me-ava img { position: absolute; }
.hl-ava::after, .me-ava::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid #fff; }
.hl-name { left: 134px; top: 142px; font-size: 22px; line-height: 30px; font-weight: 600; }
.hl-edit { left: 134px; top: 178px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--brand-primary); color: #fff;
  display: flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; }
.hl-edit img { width: 16px; height: 16px; }
.hl-card { background: #fff; border: 1px solid rgba(255,255,255,.8); border-radius: 16px; }
.hl-card .ttl { position: absolute; left: 17px; top: 20px; }
.hl-card .go { position: absolute; right: 16px; top: 24px; }
.hl-val { position: absolute; left: 17px; top: 59px; display: flex; align-items: baseline; gap: 4px; }
.hl-val b { font-size: 28px; line-height: 36px; font-weight: 600; }
.hl-val span, .hl-cap { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.hl-val span { font-size: 18px; line-height: 27px; }
.hl-cap { position: absolute; left: 17px; top: 101px; white-space: nowrap; }
.hl-bars { position: absolute; left: 11px; top: 138px; width: 157px; height: 56px; }
.hl-bars i { position: absolute; top: 0; width: 12px; height: 56px; border-radius: 999px; background: #ebf1ff; }
.hl-bars b { position: absolute; width: 12px; border-radius: 999px; background: var(--brand-primary); transform-origin: 50% 100%; }
.hl-bars b.over { background: #e02d2d; }
.hl-dash { position: absolute; left: 0; width: 157px; border-top: .5px dashed #8c8c8c; }
.hl-line { position: absolute; left: 11px; top: 138px; width: 157px; height: 56px; overflow: visible; }
.hl-med { left: 16px; top: 542px; width: 370px; height: 155px; }
.hl-med .ttl { left: 17px; top: 21px; }
.hl-med .more { position: absolute; right: 15px; top: 23px; color: var(--text-primary); }
.hl-med .more img { width: 20px; height: 20px; }
.hl-days { position: absolute; left: 17px; top: 68px; display: flex; gap: 16px; }
.hl-days li { list-style: none; width: 34px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; color: var(--text-secondary); white-space: nowrap; }
.hl-days span { width: 34px; height: 40px; border-radius: 12px; background: var(--brand-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 24px; }
.hl-days span.miss { background: #e02d2d; font-weight: 700; }
.hl-days span.todo { background: #ebf1ff; }
.hl-days img { width: 15px; height: 12px; }
.hl-files { left: 16px; top: 764px; width: 370px; display: grid; grid-template-columns: 177px 177px; gap: 16px; }
.hl-file { position: relative; height: 91px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid rgba(255,255,255,.8); }
.hl-file b { display: block; font-size: 18px; line-height: 27px; font-weight: 600; }
.hl-file span { display: block; margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--text-secondary); }
.hl-file img { position: absolute; right: 15px; top: 20px; width: 20px; height: 20px; }

/* ================= 血压 2740:2927 ================= */
.page-bp, .page-meds { background: #e2e8f8; }   /* #c2d4ff 30% 叠在 #f0f1f5 上 */
.bp-sheet { left: 0; top: 395px; width: 402px; background: #fff; border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 16px rgba(41,51,115,.06), inset 0 0 0 2px #fff; }
.bp-goal { left: 16px; top: 122px; width: 371px; height: 186px; padding: 20px 16px; background: #fff; border-radius: 16px;
  box-shadow: 0 6px 16px rgba(63,95,224,.12), 0 1px 2px rgba(26,31,51,.04); }
.bp-goal .more { position: absolute; right: 16px; top: 23px; }
.bp-goal-v { position: absolute; left: 17px; top: 72px; display: flex; align-items: baseline; gap: 8px; }
.bp-goal-v i { font-style: normal; font-size: 18px; line-height: 27px; font-weight: 600; color: var(--text-secondary); }
.bp-goal-v b { font-size: 36px; line-height: 43px; font-weight: 700; }
.bp-goal-v span { font-size: 18px; line-height: 27px; color: var(--text-secondary); }
.bp-goal hr { position: absolute; left: 17px; top: 131px; width: 338px; border: 0; border-top: 1px solid var(--border-divider); }
.bp-goal p { position: absolute; left: 17px; top: 147px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }

.seg { left: 16px; top: 332px; width: 371px; height: 45px; padding: 2px 1px; border-radius: 999px; background: #fff;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); display: flex; }
.seg-pill { position: absolute; left: 2px; top: 3px; width: 123px; height: 39px; border-radius: 999px; background: var(--brand-primary);
  transform: translateX(calc(var(--i, 1) * 123px)); transition: transform 250ms cubic-bezier(.22,.61,.36,1); }
.seg button { position: relative; flex: 1; height: 41px; font-size: 18px; line-height: 27px; color: var(--text-primary); transition: color 200ms var(--ease-out); }
.seg button[aria-pressed="true"] { color: #fff; font-weight: 600; }

.bp-range { left: 16px; top: 417px; width: 371px; height: 27px; display: flex; align-items: center; justify-content: space-between; }
.bp-range b { font-size: 18px; line-height: 27px; font-weight: 600; }
.bp-range button { width: 44px; height: 44px; margin: -8.5px -10px; display: flex; align-items: center; justify-content: center; }
.bp-range button:disabled { opacity: .3; cursor: default; }
.bp-chart { left: 16px; top: 476px; width: 370px; height: 224px; }
.bp-ref { position: absolute; left: 0; display: flex; align-items: center; gap: 7px; width: 370px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.bp-ref::after { content: ""; flex: 1; border-top: 1px dashed #8c8c8c; margin-left: 6px; }
.bp-ref.hi { color: #e02d2d; } .bp-ref.hi::after { border-color: #e02d2d; }
.bp-col { position: absolute; top: 0; width: 31px; height: 224px; }
.bp-col i { position: absolute; left: 2px; top: 0; width: 27px; height: 196px; border-radius: 999px; background: #ebf1ff; }
.bp-col b { position: absolute; left: 2px; width: 27px; border-radius: 999px; background: var(--brand-primary); transform-origin: 50% 100%; }
.bp-col b.over { background: #e02d2d; }
.bp-col span { position: absolute; left: 0; top: 204px; width: 31px; text-align: center; font-size: 14px; line-height: 20px; color: var(--text-secondary); white-space: nowrap; }
.bp-col span.now { color: var(--text-primary); }
.bp-legend { left: 16px; top: 724px; width: 371px; display: flex; justify-content: space-between; font-size: 16px; line-height: 24px; }
.bp-legend > div { display: flex; gap: 40px; }
.bp-legend > div span { display: flex; align-items: center; gap: 12px; }
.bp-legend i { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(180deg, #9487fa, #3f5fe0); }
.bp-legend i.over { background: linear-gradient(180deg, #f26d83, #e02d2d); }
.bp-legend > span { color: var(--text-secondary); }
.bp-stats { left: 16px; top: 772px; width: 371px; height: 96px; padding: 20px 28px; border-radius: 16px; background: #ebf1ff; display: flex; justify-content: space-between; }
.bp-stats div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bp-stats b { font-size: 22px; line-height: 30px; font-weight: 600; }
.bp-stats span { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.bp-log { left: 16px; top: 892px; width: 371px; display: flex; flex-direction: column; gap: 12px; }
.bp-day { display: flex; flex-direction: column; gap: 12px; }
.bp-day > h3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.bp-recs { padding: 16px; border-radius: 16px; background: #ebf1ff; display: flex; flex-direction: column; gap: 10px; }
.bp-rec { display: flex; flex-direction: column; gap: 12px; }
.bp-rec-h { display: flex; justify-content: space-between; align-items: center; font-size: 16px; line-height: 24px; color: var(--text-secondary); }
.bp-rec-v { display: flex; gap: 48px; }
.bp-rec-v span, .bp-row span.v { display: inline-flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.bp-rec-v b, .bp-row b { font-size: 22px; line-height: 30px; font-weight: 600; color: var(--text-primary); }
.bp-rec.is-new { animation: rest-in 300ms cubic-bezier(.22,.61,.36,1); }
.bp-old { padding: 16px; border-radius: 16px; background: #f0f1f5; display: flex; flex-direction: column; gap: 16px; }
.bp-old hr { border: 0; border-top: 1px solid var(--border-divider); }
.bp-row { display: flex; align-items: center; gap: 24px; font-size: 16px; line-height: 24px; }
.bp-row em { margin-left: auto; font-style: normal; font-size: 14px; line-height: 20px; color: var(--text-secondary); }

/* ================= 用药 2740:3075 ================= */
.md-sum { left: 16px; top: 122px; width: 370px; height: 227px; padding: 18px 16px 24px; background: #fff; border-radius: 16px;
  box-shadow: 0 6px 16px rgba(63,95,224,.12), 0 1px 2px rgba(26,31,51,.04); }
.md-sum .ttl { position: absolute; left: 17px; top: 19px; }
.md-sum .more { position: absolute; right: 15px; top: 21px; }
.md-stat { position: absolute; top: 100px; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.md-stat span { font-size: 14px; line-height: 20px; color: var(--text-secondary); white-space: nowrap; }
.md-stat b { font-size: 28px; line-height: 36px; font-weight: 600; }
.md-gauge { position: absolute; left: 116px; top: 62px; width: 140px; height: 140px; }
.md-gauge svg { position: absolute; inset: -10px; width: 160px; height: 160px; overflow: visible; }
.md-gauge line { stroke-linecap: round; }
.md-gauge-v { position: absolute; left: 0; top: 41px; width: 140px; text-align: center; }
.md-gauge-v b { font-size: 28px; line-height: 36px; font-weight: 600; }
.md-gauge-v i { font-style: normal; font-size: 18px; line-height: 27px; margin-left: 4px; }
.md-gauge-v span { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.md-sheet { left: 0; top: 373px; width: 402px; background: #fff; border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 16px rgba(41,51,115,.06), inset 0 0 0 2px #fff; }
.md-month { left: 16px; top: 393px; width: 370px; display: flex; justify-content: space-between; align-items: center; }
.md-month b { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 27px; font-weight: 600; }
.md-dates { left: 16px; top: 440px; width: 370px; height: 66px; display: flex; gap: 25px; }
.md-dates button { width: 28px; padding-top: 11px; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 16px; line-height: 24px; }
.md-dates button i { width: 8px; height: 8px; border-radius: 50%; background: #00a21c; }
.md-dates button i.gray { background: #8c8c8c; } .md-dates button i.red { background: #e02d2d; }
.md-dates .today { margin-left: auto; width: 52px; height: 66px; padding: 10px 12px; border-radius: 16px; background: var(--brand-primary); color: #fff; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 600; }
.md-meal { left: 16px; width: 370px; padding: 16px; border-radius: 16px; background: #f0f1f5; display: flex; flex-direction: column; gap: 20px; }
.md-meal-h { display: flex; justify-content: space-between; align-items: center; min-height: 36px; margin: -4.5px 0; }
.md-meal-h b { font-size: 18px; line-height: 27px; font-weight: 600; }
.md-meal-h b small { font-size: 16px; line-height: 24px; font-weight: 400; color: var(--text-secondary); }
.md-meal-h > span { font-size: 16px; line-height: 24px; }
.md-meal-h .btn-sm-p { height: 36px; min-width: 88px; padding: 0 14px; border-radius: 999px; background: var(--brand-primary); color: #fff; font-size: 16px; line-height: 24px; transition: background-color 150ms var(--ease-out); }
.md-meal-h .btn-sm-p:active { background: var(--brand-dark); }
.md-done { animation: rest-in 250ms var(--ease-out); }
.md-row { display: flex; align-items: center; gap: 16px; height: 48px; }
.md-row img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
.md-row div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.md-row div b { font-size: 16px; line-height: 24px; font-weight: 600; }
.md-row div span { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.md-row > span { width: 44px; margin-right: 4px; display: flex; align-items: baseline; gap: 4px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.md-row > span b { font-size: 22px; line-height: 30px; font-weight: 600; color: var(--brand-primary); }

/* ================= 我的医生 2740:3852 ================= */
.page-doctors { background: #edf1fc; --fade-rgb: 242,244,251; }
.dr-search { left: 16px; top: 122px; width: 370px; height: 48px; padding: 0 14px 0 16px; border-radius: 24px;
  background: rgba(255,255,255,.6); border: 1.5px solid #fff; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(51,84,191,.08); display: flex; align-items: center; gap: 8px; }
.dr-search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text-primary); }
.dr-search input::placeholder { color: var(--text-secondary); opacity: 1; }
.dr-search:focus-within { box-shadow: 0 0 0 3px rgba(63,95,224,.25), 0 4px 16px rgba(51,84,191,.08); }
.dr-search i { width: 1px; height: 20px; background: #c9d2e6; }
.dr-search .scan { width: 44px; height: 44px; margin-right: -10px; display: flex; align-items: center; justify-content: center; }
.dr-guide { left: 16px; top: 190px; width: 370px; height: 82px; display: flex; gap: 16px; align-items: flex-end; }
.dr-ele { position: relative; width: 82px; height: 82px; flex: none; border-radius: 50%; overflow: hidden; }
.dr-ele img { position: absolute; left: -1px; top: 6px; width: 84px; height: 84px; }
.dr-ele::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(180deg, rgba(63,95,224,0) 48%, rgba(63,95,224,.35) 84%, rgba(63,95,224,.75) 100%); mix-blend-mode: normal; opacity: .0; }
.dr-bubble { position: relative; width: 272px; height: 66px; padding: 8px 12px 8px 14px; border-radius: 4px 24px 24px 24px;
  background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-size: 16px; line-height: 24px; text-align: left; }
.dr-bubble::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, #9487fa, #3f5fe0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.dr-bubble b { color: var(--brand-primary); font-weight: 600; }
.dr-sheet { left: 0; top: 304px; width: 402px; background: rgba(255,255,255,.5); border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 16px rgba(41,51,115,.06), inset 0 0 0 2px #fff; -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
.dr-all { left: 16px; top: 324px; font-size: 18px; line-height: 27px; font-weight: 600; }
.dr-card { left: 16px; width: 370px; padding: 20px; border-radius: 16px; background: #fff; display: flex; flex-direction: column; gap: 20px; }
.dr-head { display: flex; gap: 16px; align-items: center; text-align: left; width: 100%; }
.dr-face { position: relative; width: 52px; height: 52px; flex: none; border-radius: 50%; overflow: hidden; background: #ebf1ff; }
.dr-face img { position: absolute; }
.dr-head b { display: flex; align-items: center; gap: 8px; font-size: 22px; line-height: 30px; font-weight: 600; }
.dr-head small { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; }
.dr-msg { position: relative; height: 66px; padding: 20px 16px; border-radius: 16px; background: #f0f5ff; display: flex; align-items: center; gap: 8px; text-align: left;
  box-shadow: 0 6px 16px rgba(41,51,115,.04), 0 1px 3px rgba(41,51,115,.02); }
.dr-msg::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, #9487fa, #3f5fe0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.dr-msg i { width: 8px; height: 8px; border-radius: 50%; background: #e02d2d; flex: none; }
.dr-msg b { flex: 1; min-width: 0; font-size: 16px; line-height: 24px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-msg span { font-size: 14px; line-height: 20px; color: var(--text-secondary); white-space: nowrap; }
.dr-boxes { display: flex; gap: 12px; }
.dr-box { flex: 1; height: 82px; padding: 16px; border-radius: 16px; background: #f5f6fa; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.dr-box small { display: flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; }
.dr-box small img { width: 16px; height: 16px; }
.dr-box b { font-size: 16px; line-height: 24px; font-weight: 500; }
.dr-add { left: 16px; top: 893px; width: 370px; }

/* ================= 医生主页 2740:3585 / 2740:3626 ================= */
.page-docpage { --fade-rgb: 255,255,255; }
.dp-photo { left: 216px; top: 106px; width: 162px; height: 216px; }
.dp-name { left: 16px; top: 138px; display: flex; align-items: center; gap: 8px; }
.dp-name b { font-size: 28px; line-height: 36px; font-weight: 600; }
.dp-hos { left: 16px; top: 186px; display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; }
.dp-hos i { font-style: normal; height: 22px; padding: 0 4px; border: 1px solid var(--brand-primary); border-radius: 999px; font-size: 14px; line-height: 20px; color: #2b43ba; }
.dp-dept { left: 16px; top: 218px; font-size: 16px; line-height: 24px; }
.dp-sheet { left: 0; top: 270px; width: 402px; background: #fff; border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 16px rgba(41,51,115,.06), inset 0 0 0 2px #fff; }
.tabs2 { left: 16px; top: 294px; width: 370px; height: 48px; display: flex; }
.tabs2 button { flex: 1; height: 48px; padding-top: 5px; display: flex; justify-content: center; font-size: 18px; line-height: 27px; font-weight: 600; color: var(--text-secondary); transition: color 200ms var(--ease-out); }
.tabs2 button[aria-selected="true"] { color: var(--text-primary); }
.tabs2-bar { position: absolute; left: 80.5px; top: 40px; width: 24px; height: 4px; border-radius: 999px; background: var(--brand-primary);
  transform: translateX(calc(var(--i, 0) * 185px)); transition: transform 250ms cubic-bezier(.22,.61,.36,1); }
.dp-panel { left: 16px; top: 362px; width: 370px; }
.dp-panel[hidden] { display: none; }
.dp-panel.is-in { animation: rest-fade 220ms var(--ease-out); }
.tl { position: relative; left: 16px; width: 338px; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.tl-item { display: flex; gap: 16px; }
.tl-dot { position: relative; width: 12px; flex: none; padding-top: 8px; }
.tl-dot i { display: block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #8c8c8c; background: #fff; }
.tl-item.unread .tl-dot i { background: #e02d2d; border-color: #e02d2d; }
.tl-dot::after { content: ""; position: absolute; left: 6px; top: 24px; bottom: 0; width: 1px; background: #d0d2d9; }
.tl-item:last-child .tl-dot::after { display: none; }
.tl-body { flex: 1; padding-bottom: 24px; display: flex; flex-direction: column; gap: 12px; }
.tl-h { display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 27px; font-weight: 600; }
.tl-body p { font-size: 18px; line-height: 27px; }
.tl-body p.sub { color: var(--text-secondary); }
.tl-quote { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-top: 4px; border-radius: 12px; background: #f0f5ff; text-align: left; width: 100%; }
.tl-quote div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tl-quote b { font-size: 16px; line-height: 24px; font-weight: 500; }
.tl-quote span { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dp-contact { left: 16px; top: 776px; width: 370px; }
.dp-contact[hidden] { display: none; }
.sv-h { display: flex; justify-content: space-between; align-items: center; height: 27px; }
.sv-h b { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 27px; font-weight: 600; }
.sv-h span { font-size: 16px; line-height: 24px; }
.sv-h span em { font-style: normal; color: var(--brand-primary); }
.sv-on { position: relative; height: 178px; margin: 16px 0 24px; padding: 2px 5px 5px 6px; }
.sv-on::before { content: ""; position: absolute; inset: 0; border: 20px solid transparent; border-image: url(../assets/rest/svc-card.webp) 40 fill / 20px stretch; }
.sv-on > * { position: relative; }
.sv-on .sv-on-top { padding: 11px 8px; }
.sv-on-top { height: 50px; padding: 13px 14px; display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 16px; line-height: 24px; }
.sv-on-top span { display: flex; align-items: center; gap: 8px; }
.sv-on-top button { display: flex; align-items: center; gap: 4px; color: #fff; height: 44px; }
.sv-item { display: flex; gap: 20px; padding: 16px; border-radius: 16px; text-align: left; width: 100%; }
.sv-on .sv-item { height: 121px; background: linear-gradient(180deg, rgba(255,255,255,.85), #fff); box-shadow: 0 4px 12px rgba(43,67,186,.12), inset 0 0 0 1px #fff; }
.sv-off { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.sv-off .sv-item { background: #f0f5ff; border-radius: 12px; }
.sv-ic { width: 82px; height: 82px; flex: none; padding: 5px; border-radius: 16px; background: #e0eaff; }
.sv-ic img { width: 72px; height: 72px; }
.sv-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sv-txt b { font-size: 18px; line-height: 27px; font-weight: 600; }
.sv-txt > span:nth-child(2) { margin-top: -4px; font-size: 16px; line-height: 24px; color: var(--text-secondary); }
.sv-tags { display: flex; gap: 12px; }
.svp { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.svp span { font-size: 16px; line-height: 24px; color: var(--text-secondary); }
.svp span b { font-size: 22px; line-height: 30px; font-weight: 600; color: #e02d2d; margin-right: 4px; }
.svp button { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; height: 44px; margin: -7px 0; }

/* ================= 服务包详情 2740:3680 + 支付成功 2740:3755 ================= */
.pk-hero { left: -8px; top: 122px; width: 418px; height: 306px; pointer-events: none; }
.pk-price { left: 235px; top: 134px; display: flex; align-items: baseline; gap: 4px; }
.pk-price b { font-size: 28px; line-height: 36px; font-weight: 600; color: var(--brand-primary); }
.pk-price span { font-size: 18px; line-height: 27px; }
.pk-title { left: 36px; top: 198px; color: #fff; }
.pk-title b { display: block; font-size: 28px; line-height: 36px; font-weight: 600; }
.pk-title small { display: block; margin-top: 8px; font-size: 14px; line-height: 20px; }
.pk-title span { display: inline-flex; align-items: center; height: 30px; margin-top: 12px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.5); font-size: 14px; line-height: 20px; }
.pk-card { left: 16px; top: 328px; width: 370px; padding: 20px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(245,248,255,.95));
  box-shadow: 0 6px 20px rgba(63,95,224,.08), inset 0 0 0 1.5px #fff; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.pk-card h2 { margin: 2px 2px 16px; font-size: 18px; line-height: 27px; font-weight: 600; }
.pk-grid { display: grid; grid-template-columns: 159px 159px; gap: 12px; margin-left: 2px; }
.pk-grid div { height: 110px; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid #e1e8ff; }
.pk-grid b { display: flex; align-items: center; gap: 4px; font-size: 18px; line-height: 27px; font-weight: 600; }
.pk-grid b img { width: 28px; height: 28px; }
.pk-grid p { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.pk-dots { margin: 24px 2px 0; display: flex; flex-direction: column; gap: 12px; }
.pk-dots li { list-style: none; display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; }
.pk-dots li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-primary); flex: none; }
/* 底部固定区（874 版 3067:4149 Frame 358）：白底 + 顶部分隔线，padding 24 16 */
.pk-bar { left: 0; top: 716px; width: 402px; height: 158px; z-index: 7; padding: 24px 16px; background: #fff; border-top: 1px solid var(--border-divider); display: flex; flex-direction: column; gap: 24px; }
.pk-bar .btn-primary { width: 370px; }
.pk-agree { display: flex; align-items: center; gap: 12px; height: 24px; font-size: 16px; line-height: 24px; color: var(--text-secondary); cursor: pointer; position: relative; }
.pk-agree::after { content: ""; position: absolute; left: -4px; right: -4px; top: -10px; bottom: -10px; }
.pk-agree em { font-style: normal; color: var(--text-primary); }
.pk-agree .check::before { border-color: var(--text-secondary); }
.pk-paid { left: 0; top: 0; width: 402px; height: 874px; z-index: 30; pointer-events: none; }
.pk-paid .pk-dim { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity 250ms var(--ease-out); }
.pk-paid .pk-sheet { position: absolute; left: 0; top: 383px; width: 402px; height: 491px; padding: 40px 16px 50px; border-radius: 24px 24px 0 0; background: #fff;
  transform: translateY(100%); transition: transform 300ms cubic-bezier(.22,.61,.36,1); }
.pk-paid.is-open { pointer-events: auto; }
.pk-paid.is-open .pk-dim { opacity: 1; }
.pk-paid.is-open .pk-sheet { transform: none; }
.pay-ok { display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 18px; line-height: 27px; font-weight: 600; }
.pay-ok i { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-primary); display: flex; align-items: center; justify-content: center; }
.pay-ok i img { width: 12px; height: 10px; }
.pk-amt { margin-top: 24px; height: 57px; display: flex; justify-content: center; align-items: baseline; font-size: 28px; line-height: 57px; font-weight: 600; }
.pk-amt b { font-size: 48px; line-height: 57px; font-weight: 700; margin-left: 6px; }
.pk-rows { margin-top: 48px; display: flex; flex-direction: column; gap: 20px; }
.pk-rows div { display: flex; justify-content: space-between; font-size: 18px; line-height: 27px; }
.pk-rows span { color: var(--text-secondary); }
.pk-paid .btn-primary { position: absolute; left: 16px; top: 389px; width: 370px; }

/* ================= 我的 2740:3965 ================= */
.page-me { background: #f4f6fc; --fade-rgb: 244,246,252; }
.me-head { left: 16px; top: 130px; width: 370px; height: 72px; display: flex; align-items: center; gap: 20px; text-align: left; }
.me-ava { position: relative; width: 72px; height: 72px; flex: none; box-shadow: 0 4px 12px rgba(64,94,224,.12); }
.me-ava img { left: -2px; top: 0; width: 74px; height: 93px; }
.me-head div { flex: 1; }
.me-head b { display: block; font-size: 22px; line-height: 30px; font-weight: 600; }
.me-head small { display: block; margin-top: 6px; font-size: 16px; line-height: 24px; color: var(--text-secondary); }
.me-fam { left: 16px; top: 226px; width: 370px; height: 158px; padding: 16px; border-radius: 16px; background: #fff; }
.me-fam-h { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 27px; }
.me-fam-row { display: flex; gap: 16px; margin-top: 16px; }
.me-fam-row button { flex: 1; height: 83px; padding: 16px 16px 16px 16px; border-radius: 16px; background: #f5f6fa; display: flex; align-items: center; gap: 16px; text-align: left; }
.me-fam-row img { width: 47px; height: 47px; border-radius: 50%; }
.me-fam-row b { display: block; font-size: 18px; line-height: 27px; font-weight: 600; }
.me-fam-row small { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.list { left: 16px; width: 370px; border-radius: 16px; background: #fff; overflow: hidden; }
.list button { position: relative; width: 100%; height: 64px; padding: 0 16px; display: flex; align-items: center; gap: 12px; text-align: left; transition: background-color 150ms var(--ease-out); }
.list button:active { background: #f5f6fa; }
.list button + button::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; border-top: 1px solid var(--border-divider); }
.list button > b { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 27px; font-weight: 400; }
.list button > span { font-size: 16px; line-height: 24px; color: var(--text-secondary); }

/* ================= 我的家人 2740:3194 · 字号与语音 2740:3250 ================= */
.page-mefam, .page-font { background: #f4f6fc; }
.box { left: 16px; width: 370px; padding: 20px 16px; border-radius: 16px; background: #fff; }
.box-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; }
.box hr { border: 0; border-top: 1px solid var(--border-divider); margin: 16px 0; }
.fam-p { display: flex; align-items: center; gap: 16px; font-size: 18px; line-height: 27px; font-weight: 600; }
.fam-p img { width: 40px; height: 40px; border-radius: 50%; }
.fam-s { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 24px; color: var(--text-secondary); }
.note { left: 16px; width: 370px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.box-row.sw { min-height: 32px; font-size: 18px; line-height: 27px; }
.box hr.sw { margin: 20px 0; }

.ft-user { left: 156px; top: 154px; width: 230px; padding: 16px; border-radius: 24px 4px 24px 24px; background: var(--brand-primary); color: #fff; }
.ft-ai { left: 16px; top: 237px; width: 370px; padding: 20px 16px; border-radius: 4px 24px 24px 24px; background: #fff; }
.ft-user, .ft-ai { font-size: var(--pv, 18px); line-height: 1.5; transition: font-size 200ms var(--ease-out); }
.ft-user { left: auto; right: 16px; width: auto; max-width: 300px; }
.ft-slider { left: 16px; top: 387px; width: 370px; height: 60px; touch-action: none; cursor: pointer; }
.ft-track { position: absolute; left: 8px; top: 11px; width: 354px; height: 6px; border-radius: 999px; background: #dfe1e8; }
.ft-tick { position: absolute; top: 5px; width: 6px; height: 18px; border-radius: 999px; background: #dfe1e8; }
.ft-knob { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-primary); box-shadow: 0 2px 6px rgba(63,95,224,.3);
  transform: translateX(calc(var(--i, 0) * 171px)); transition: transform 220ms cubic-bezier(.22,.61,.36,1); }
.ft-slider:focus-visible { outline: 3px solid var(--brand-primary); outline-offset: 6px; border-radius: 8px; }
.ft-labels { position: absolute; left: 0; top: 36px; width: 370px; display: flex; justify-content: space-between; font-size: 16px; line-height: 24px; color: var(--text-secondary); }
.ft-labels span { transition: color 200ms var(--ease-out); }
.ft-labels span.on { color: var(--text-primary); }
.ft-box { top: 511px; padding: 20px; }
.ft-box hr { margin: 20px 0; }
.ft-box .box-row { font-size: 18px; line-height: 27px; min-height: 27px; }
.speed { position: relative; height: 36px; padding: 2px 4px; border-radius: 999px; background: #f0f1f5; display: flex; gap: 4px; }
.speed-pill { position: absolute; top: 2px; height: 32px; border-radius: 999px; background: var(--brand-primary); transition: left 220ms cubic-bezier(.22,.61,.36,1), width 220ms cubic-bezier(.22,.61,.36,1); }
.speed button { position: relative; height: 32px; padding: 0 12px; font-size: 16px; line-height: 24px; transition: color 200ms var(--ease-out); }
.speed button[aria-pressed="true"] { color: #fff; }
.speed::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; }

/* ================= 首页 · 危急确认对话框 2740:2629 ================= */
.dlg { left: 0; top: 0; width: 402px; height: 874px; z-index: 40; pointer-events: none; }
.dlg .dlg-dim { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity 220ms var(--ease-out); }
.dlg-box { position: absolute; left: 16px; top: 270px; width: 370px; padding: 24px 16px; border-radius: 24px; background: #fff; text-align: center;
  opacity: 0; transform: scale(.96); transition: opacity 220ms var(--ease-out), transform 240ms cubic-bezier(.22,.61,.36,1); }
.dlg.is-open { pointer-events: auto; }
.dlg.is-open .dlg-dim { opacity: 1; }
.dlg.is-open .dlg-box { opacity: 1; transform: none; }
.dlg-box h2 { font-size: 22px; line-height: 30px; font-weight: 600; }
.dlg-v { margin-top: 12px; display: flex; justify-content: center; align-items: baseline; gap: 8px; }
.dlg-v b { font-size: 36px; line-height: 43px; font-weight: 700; }
.dlg-v span { font-size: 18px; line-height: 27px; font-weight: 600; color: var(--text-secondary); }
.dlg-box p { margin-top: 12px; font-size: 18px; line-height: 27px; color: var(--text-secondary); }
.dlg-btns { margin-top: 32px; display: flex; gap: 15px; }
.dlg-btns button { flex: 1; height: 52px; border-radius: 999px; font-size: 18px; line-height: 27px; transition: background-color 150ms var(--ease-out); }
.dlg-btns .ghost { background: #fff; box-shadow: inset 0 0 0 1px var(--brand-primary); color: var(--brand-primary); }
.dlg-btns .ghost:active { background: #ebf1ff; }
.dlg-btns .solid { background: var(--brand-primary); color: #fff; }
.dlg-btns .solid:active { background: var(--brand-dark); }
.dlg-120 { margin-top: 24px; font-size: 18px; line-height: 27px; height: 44px; margin-bottom: -8.5px; }

/* ================= 进场动效（200–300ms，减弱动效时关闭） ================= */
@keyframes rest-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rest-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rest-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.page.play-in .grow { animation: rest-grow 300ms cubic-bezier(.22,.61,.36,1) both; animation-delay: calc(var(--d, 0) * 30ms + 120ms); }
.page.play-in .tick-in { animation: rest-fade 200ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 8ms + 120ms); }
@media (prefers-reduced-motion: reduce) {
  .page.play-in .grow, .page.play-in .tick-in, .bp-rec.is-new, .md-done, .dp-panel.is-in { animation: none; }
  .ftab-pill, .seg-pill, .tabs2-bar, .switch i, .ft-knob, .speed-pill, .pk-paid .pk-sheet, .dlg-box { transition: none; }
}

/* 健康档案底板的背景模糊：与 sheet-health.svg 同一轮廓（Figma 背景模糊 30） */
.hl-blur { left: 0; top: 215px; width: 402px; height: 893px; -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px);
  clip-path: path("M402 45C402 31.7451 391.255 21 378 21H201H150.75H113.714C108.466 21 103.392 22.7643 98.9269 25.5213C92.8474 29.2754 83.7514 34.0033 76.5 34.0033C68.9161 34.0033 59.3145 28.8319 53.2563 25.0116C49.3464 22.5461 44.8723 21 40.25 21H24C10.7452 21 0 31.7452 0 45V893H402V45Z"); }
