/* ============================================================
   苁原·颐养版 组件库 v2 —— 高级中式质感（分层 / 渐变 / 动效）
   适老化前提：大字、大目标、高对比文字一律保留
   ============================================================ */

/* ---------- 布局骨架 ---------- */
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  position: relative; z-index: 1; display: flex; flex-direction: column; }

.topbar { position: sticky; top: 0; z-index: 30; color: #fff;
  background: var(--grad-cinnabar); padding: env(safe-area-inset-top) var(--page-pad) 0;
  box-shadow: 0 4px 20px rgba(124,40,32,.28); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-line); opacity: .7; }
.topbar-row { display: flex; align-items: center; gap: .6rem; min-height: 3.5rem; }
.topbar h1, .topbar h2 { color: #fff; font-size: 1.42rem; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.topbar .sub { color: #ffe6df; font-size: .88rem; }
.topbar-btn { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px; padding: .4rem .85rem; font-size: 1rem; min-height: 2.8rem; display: inline-flex;
  align-items: center; gap: .3rem; backdrop-filter: blur(4px); transition: background var(--dur-1); }
.topbar-btn:active { background: rgba(255,255,255,.28); }
.topbar-btn.icon { width: 2.8rem; justify-content: center; padding: 0; font-size: 1.3rem; }
.spacer { flex: 1; }

.screen { flex: 1; padding: var(--page-pad) var(--page-pad) 8rem; }
/* 入场错落动效 */
.screen:not(.hide) > * { animation: rise var(--dur-2) var(--ease-out) backwards; }
.screen:not(.hide) > *:nth-child(1){animation-delay:.02s}
.screen:not(.hide) > *:nth-child(2){animation-delay:.07s}
.screen:not(.hide) > *:nth-child(3){animation-delay:.12s}
.screen:not(.hide) > *:nth-child(4){animation-delay:.17s}
.screen:not(.hide) > *:nth-child(5){animation-delay:.22s}
.screen:not(.hide) > *:nth-child(6){animation-delay:.27s}
.screen:not(.hide) > *:nth-child(7){animation-delay:.31s}
.screen:not(.hide) > *:nth-child(n+8){animation-delay:.34s}

.section-title { font-family: var(--font-serif); font-size: 1.16rem; color: var(--ink-1);
  margin: 1.5rem .2rem .7rem; display: flex; align-items: center; gap: .55rem; letter-spacing: .02em; }
.section-title::before { content: ""; width: 4px; height: 1.05rem; border-radius: 3px;
  background: linear-gradient(var(--cinnabar), var(--gold)); }

/* ---------- 卡片 ---------- */
.card { background: var(--grad-paper); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 1.15rem; box-shadow: var(--e1); margin-bottom: var(--gap); position: relative;
  transition: box-shadow var(--dur-1), transform var(--dur-1); }
.card.flat { box-shadow: none; background: var(--paper-2); }
.card-hd { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
.card-hd h3 { font-size: 1.16rem; }

/* 主视觉 Hero 卡：暖光渐变 + 朱砂印章水印 */
.card.hero { background: var(--grad-hero); box-shadow: var(--e2); border-color: rgba(169,133,73,.25); overflow: hidden; }
.card.hero::after { content: "颐"; position: absolute; right: -.4rem; bottom: -2.2rem; font-family: var(--font-serif);
  font-size: 9rem; font-weight: 700; color: var(--cinnabar); opacity: .05; pointer-events: none; }
.card.hero h2 { position: relative; }

/* ---------- 大按钮 ---------- */
.big-btn { display: flex; align-items: center; gap: .9rem; width: 100%; border: none;
  background: var(--grad-cinnabar); color: #fff; border-radius: var(--radius);
  padding: 1.1rem 1.2rem; font-size: 1.25rem; font-weight: 600; min-height: 4rem;
  box-shadow: 0 4px 14px rgba(124,40,32,.30), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .1s var(--ease-out), box-shadow var(--dur-1); }
.big-btn:active { transform: translateY(2px); box-shadow: 0 2px 6px rgba(124,40,32,.3), var(--e-press); }
.big-btn .em { font-size: 1.9rem; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
.big-btn.ghost { background: var(--paper-2); color: var(--cinnabar); border: 2px solid var(--cinnabar);
  box-shadow: var(--e1); }
.big-btn.soft { background: var(--grad-paper); color: var(--ink-0); border: 1px solid var(--hairline); box-shadow: var(--e1); }
.big-btn .arrow { margin-left: auto; opacity: .8; font-size: 1.4rem; }

.btn { border: none; border-radius: 14px; padding: .7rem 1.1rem; font-size: 1rem; font-weight: 600;
  background: var(--grad-cinnabar); color: #fff; min-height: 2.9rem; box-shadow: 0 2px 8px rgba(124,40,32,.22);
  transition: transform .1s, box-shadow var(--dur-1); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--cinnabar); border: 2px solid var(--cinnabar); box-shadow: none; }
.btn.soft { background: var(--paper-1); color: var(--ink-0); box-shadow: none; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }

/* 首页四宫格入口 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.entry { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background: var(--grad-paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 1.4rem .8rem; min-height: 8.4rem; box-shadow: var(--e1); text-align: center; color: var(--ink-0);
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1); }
.entry:active { transform: translateY(2px) scale(.99); box-shadow: var(--e-press); }
.entry .em { font-size: 2.3rem; width: 4rem; height: 4rem; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--paper-3)); box-shadow: var(--e1), inset 0 0 0 1px var(--hairline); }
.entry .lab { font-size: 1.2rem; font-weight: 600; }
.entry.accent { background: var(--grad-cinnabar); color: #fff; border: none; box-shadow: 0 6px 18px rgba(124,40,32,.32); }
.entry.accent .em { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }

/* ---------- 打卡大方块 ---------- */
.tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; }
.tile { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1rem .4rem;
  border-radius: var(--radius); border: 2px solid var(--hairline); background: var(--grad-paper);
  font-size: 1.05rem; font-weight: 600; color: var(--ink-1); min-height: 6rem; justify-content: center;
  box-shadow: var(--e1); transition: transform var(--dur-1), box-shadow var(--dur-1), border-color var(--dur-1); }
.tile:active { transform: scale(.97); }
.tile .em { font-size: 2.3rem; line-height: 1; transition: transform var(--dur-1) var(--ease-spring); }
.tile[aria-pressed="true"] { border-color: var(--cinnabar); background: #fff; color: var(--ink-0); box-shadow: 0 0 0 3px rgba(166,54,42,.16), var(--e2); }
.tile[aria-pressed="true"] .em { transform: scale(1.14); }
.tile.good[aria-pressed="true"]   { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(27,122,61,.16), var(--e2); }
.tile.warn-t[aria-pressed="true"] { border-color: var(--warn); box-shadow: 0 0 0 3px rgba(198,121,15,.16), var(--e2); }
.tile.bad[aria-pressed="true"]    { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(192,57,43,.16), var(--e2); }

.scale { display: flex; gap: .5rem; }
.scale button { flex: 1; border-radius: 14px; border: 2px solid var(--hairline); background: var(--grad-paper);
  font-size: 1.6rem; min-height: 3.6rem; box-shadow: var(--e1); transition: transform var(--dur-1), box-shadow var(--dur-1); }
.scale button:active { transform: scale(.95); }
.scale button[aria-pressed="true"] { border-color: var(--cinnabar); background: #fff; transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(166,54,42,.16), var(--e2); }

/* ---------- 趋势 / 润肠可视化 ---------- */
.trend { display: flex; align-items: flex-end; gap: .35rem; height: 7rem; padding-top: .4rem;
  border-bottom: 1px dashed var(--hairline-strong); }
.trend .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; justify-content: flex-end; }
.trend .bar { width: 100%; border-radius: 7px 7px 3px 3px; min-height: 6px; transform-origin: bottom;
  background: linear-gradient(180deg, var(--ink-4), var(--ink-3)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
  animation: barGrow var(--dur-2) var(--ease-out) backwards; }
.trend .bar.ok   { background: linear-gradient(180deg, #34B062, #1B7A3D); }
.trend .bar.warn { background: linear-gradient(180deg, #E5A93F, #C6790F); }
.trend .bar.bad  { background: linear-gradient(180deg, #D85B4D, #C0392B); }
.trend .d { font-size: .72rem; color: var(--ink-2); }
.streak { display: flex; align-items: center; gap: .7rem; font-size: 1.12rem; font-weight: 600; }
.streak .big { font-family: var(--font-serif); font-size: 2.9rem; line-height: 1;
  background: linear-gradient(135deg, var(--cinnabar), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.ring { --p: 0; width: 6rem; height: 6rem; border-radius: 50%; animation: ringIn var(--dur-2) var(--ease-out);
  background: conic-gradient(var(--ok) calc(var(--p)*1%), var(--paper-1) 0); display: grid; place-items: center; box-shadow: var(--e1); }
.ring .inner { width: 4.4rem; height: 4.4rem; background: var(--paper-2); border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; }

/* ---------- 悬浮玻璃导航（长者端）---------- */
.navbar { position: fixed; bottom: .6rem; left: 50%; transform: translateX(-50%);
  width: calc(100% - 1.4rem); max-width: 540px; display: flex; gap: .2rem; padding: .4rem; z-index: 40;
  background: rgba(254,251,243,.82); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.65); border-radius: 24px; box-shadow: var(--e3); padding-bottom: max(.4rem, env(safe-area-inset-bottom)); }
.navbar button { flex: 1; position: relative; background: none; border: none; display: flex; flex-direction: column;
  align-items: center; gap: .1rem; padding: .5rem 0 .45rem; color: var(--ink-2); font-size: .92rem; min-height: 3.6rem;
  border-radius: 16px; transition: color var(--dur-1); }
.navbar button .em { font-size: 1.6rem; line-height: 1; transition: transform var(--dur-1) var(--ease-spring); }
.navbar button[aria-current="page"] { color: var(--cinnabar); font-weight: 700; }
.navbar button[aria-current="page"] .em { transform: translateY(-3px) scale(1.14); }
.navbar button[aria-current="page"]::before { content: ""; position: absolute; inset: 2px; background: var(--cinnabar); opacity: .09; border-radius: 14px; }

/* ---------- SOS ---------- */
.sos { position: fixed; right: 1rem; bottom: 6.6rem; z-index: 50; width: 4.8rem; height: 4.8rem; border-radius: 50%;
  background: linear-gradient(140deg, #D6493B, #B0271B); color: #fff; border: 3px solid #fff; box-shadow: var(--e3);
  font-size: 1.02rem; font-weight: 800; display: grid; place-items: center; line-height: 1.05; }
.sos::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--danger); animation: sosPulse 1.9s var(--ease-out) infinite; }
@keyframes sosPulse { 0% { opacity: .65; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }

/* ---------- 聊天（小养）---------- */
.chat { display: flex; flex-direction: column; gap: .85rem; padding-bottom: 1rem; }
.bubble { max-width: 86%; padding: .9rem 1.1rem; border-radius: 20px; font-size: 1.1rem; line-height: 1.65;
  animation: pop var(--dur-1) var(--ease-out) backwards; position: relative; }
.bubble.ai { align-self: flex-start; background: var(--paper-2); border: 1px solid var(--hairline);
  border-bottom-left-radius: 6px; box-shadow: var(--e1); }
.bubble.me { align-self: flex-end; background: var(--grad-cinnabar); color: #fff; border-bottom-right-radius: 6px;
  box-shadow: 0 3px 10px rgba(124,40,32,.26); }
.bubble .who { font-size: .82rem; font-weight: 700; margin-bottom: .25rem; display: inline-flex; align-items: center; gap: .35rem; color: var(--cinnabar); }
.bubble.ai .who::before { content: "养"; font-family: var(--font-serif); width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--grad-cinnabar); color: #fff; display: grid; place-items: center; font-size: .82rem; }
.bubble.me .who { color: #ffe1da; }
.chat-dock { position: sticky; bottom: 0; background: linear-gradient(0deg, var(--paper-0) 70%, transparent);
  padding: .7rem 0 calc(.7rem + env(safe-area-inset-bottom)); display: flex; gap: .5rem; align-items: flex-end; }
.chat-dock textarea { flex: 1; resize: none; border: 2px solid var(--hairline); border-radius: 18px; padding: .7rem .9rem;
  font-family: var(--font-sans); font-size: 1.05rem; max-height: 6rem; background: var(--paper-2); color: var(--ink-0); box-shadow: var(--e1); }
.chat-dock textarea:focus { border-color: var(--cinnabar); }
.mic-btn { width: 3.4rem; height: 3.4rem; border-radius: 50%; border: none; background: var(--grad-paper); font-size: 1.4rem;
  flex: 0 0 auto; box-shadow: var(--e1); transition: transform var(--dur-1); }
.mic-btn:active { transform: scale(.94); }
.mic-btn.listening { background: linear-gradient(140deg, #D6493B, #B0271B); color: #fff; animation: micPulse 1s infinite; }
@keyframes micPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(192,57,43,.5); } 50% { box-shadow: 0 0 0 .8rem rgba(192,57,43,0); } }
.quick-q { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 0 .6rem; }
.quick-q button { white-space: nowrap; background: var(--grad-paper); border: 1px solid var(--hairline); border-radius: 999px;
  padding: .5rem .95rem; font-size: 1rem; color: var(--ink-1); box-shadow: var(--e1); }

/* ---------- 列表（家属 / 营养师）---------- */
.row { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; background: var(--grad-paper);
  border: 1px solid var(--hairline); border-radius: var(--radius); margin-bottom: .6rem; overflow: hidden;
  box-shadow: var(--e1); transition: transform var(--dur-1), box-shadow var(--dur-1); }
.row:active { transform: scale(.99); box-shadow: var(--e-press); }
.row .avatar { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  font-size: 1.3rem; font-family: var(--font-serif); color: var(--cinnabar);
  background: radial-gradient(circle at 35% 30%, #fff, var(--paper-3)); box-shadow: inset 0 0 0 1.5px var(--gold-light), var(--e1); }
.row .meta { flex: 1; min-width: 0; }
.row .meta .name { font-size: 1.15rem; font-weight: 600; }
.row .meta .desc { font-size: .9rem; color: var(--ink-2); }
.row > .badge, .row > .arrow { flex: 0 0 auto; }
.row .arrow { color: var(--ink-3); font-size: 1.3rem; }

.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 700;
  padding: .28rem .65rem; border-radius: 999px; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.dot::before { content: "●"; font-size: .7em; }

.kpi-row { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; }
.kpi { background: var(--grad-paper); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1rem .6rem;
  text-align: center; box-shadow: var(--e1); transition: transform var(--dur-1); }
.kpi:active { transform: translateY(2px); }
.kpi .n { font-size: 2rem; font-weight: 800; font-family: var(--font-serif); line-height: 1.1;
  background: linear-gradient(135deg, var(--ink-0), var(--ink-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi .l { font-size: .85rem; color: var(--ink-2); margin-top: .15rem; }
.kpi.alert .n { background: linear-gradient(135deg, #D6493B, var(--danger)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 表单 / 设置 ---------- */
.field { margin-bottom: 1rem; }
.field > label { display: block; font-size: 1.05rem; font-weight: 600; margin-bottom: .45rem; }
.input, select, textarea.input { width: 100%; border: 2px solid var(--hairline); border-radius: 14px; padding: .8rem .9rem;
  font-size: 1.1rem; background: var(--paper-2); color: var(--ink-0); font-family: var(--font-sans); box-shadow: var(--e1); }
.input:focus, select:focus, textarea.input:focus { border-color: var(--cinnabar); }
.seg { display: flex; gap: .4rem; }
.seg button { flex: 1; border: 2px solid var(--hairline); background: var(--grad-paper); border-radius: 14px; padding: .7rem;
  font-size: 1.05rem; min-height: 3rem; color: var(--ink-1); transition: transform var(--dur-1), box-shadow var(--dur-1); }
.seg button[aria-pressed="true"] { border-color: var(--cinnabar); background: #fff; color: var(--cinnabar); font-weight: 700; box-shadow: var(--e2); transform: translateY(-1px); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--hairline); }
.switch { width: 3.7rem; height: 2.15rem; border-radius: 999px; background: var(--ink-4); border: none; position: relative; flex: 0 0 auto; transition: background var(--dur-1); box-shadow: inset 0 1px 3px rgba(0,0,0,.15); }
.switch[aria-checked="true"] { background: linear-gradient(135deg, #2EA65A, var(--ok)); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: #fff; transition: left var(--dur-1) var(--ease-spring); box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.switch[aria-checked="true"]::after { left: 1.85rem; }
.check { display: flex; align-items: flex-start; gap: .6rem; padding: .7rem; border: 1px solid var(--hairline); border-radius: 14px; margin-bottom: .5rem; background: var(--paper-2); }
.check input { width: 1.5rem; height: 1.5rem; margin-top: .15rem; flex: 0 0 auto; accent-color: var(--cinnabar); }

/* ---------- 提示条 / 预警 ---------- */
.alert-bar { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--radius);
  font-size: 1.02rem; margin-bottom: .7rem; border: 1px solid; box-shadow: var(--e1); position: relative; overflow: hidden; }
.alert-bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.alert-bar .em { font-size: 1.4rem; line-height: 1; }
.alert-bar.danger { background: var(--danger-bg); border-color: rgba(192,57,43,.4); color: #7a1d14; }
.alert-bar.danger::before { background: var(--danger); }
.alert-bar.warn { background: var(--warn-bg); border-color: rgba(198,121,15,.4); color: #7a4c06; }
.alert-bar.warn::before { background: var(--warn); }
.alert-bar.ok { background: var(--ok-bg); border-color: rgba(27,122,61,.35); color: #114d26; }
.alert-bar.ok::before { background: var(--ok); }
.alert-bar.info { background: var(--info-bg); border-color: rgba(36,113,163,.35); color: #134a6b; }
.alert-bar.info::before { background: var(--info); }

.disclaimer { font-size: .85rem; color: var(--ink-2); line-height: 1.55; padding: .85rem 1rem;
  background: var(--paper-1); border-radius: 14px; margin-top: 1.2rem; border: 1px dashed var(--hairline-strong); }

/* ---------- 弹层 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(20,18,12,.45); backdrop-filter: blur(3px);
  display: grid; place-items: end center; z-index: 100; animation: fadeMask var(--dur-1) ease; }
@keyframes fadeMask { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--grad-paper); width: 100%; max-width: 560px; border-radius: 28px 28px 0 0;
  padding: 1.4rem var(--page-pad) calc(1.5rem + env(safe-area-inset-bottom)); box-shadow: var(--e3);
  animation: floatUp var(--dur-2) var(--ease-out); max-height: 92vh; overflow-y: auto; }
.modal h2 { margin-bottom: .8rem; }
.modal-handle { width: 3.2rem; height: .36rem; background: var(--ink-4); border-radius: 999px; margin: 0 auto 1rem; }

/* ---------- 登录 / 身份选择 ---------- */
.login { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 2rem var(--page-pad);
  max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }
.brand { text-align: center; margin-bottom: 2.2rem; animation: rise var(--dur-3) var(--ease-out); }
.brand .logo { width: 6.2rem; height: 6.2rem; margin: 0 auto .7rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 3rem; color: var(--cinnabar); background: var(--grad-paper);
  box-shadow: var(--e2), 0 0 0 1px var(--hairline); position: relative; }
.brand .logo::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px solid var(--gold-light); }
.brand .name { font-size: 1.65rem; font-weight: 700; font-family: var(--font-serif); letter-spacing: .04em; }
.brand .slogan { color: var(--ink-2); font-size: 1.02rem; margin-top: .4rem; }
.role-card { display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left; background: var(--grad-paper);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 1.2rem; margin-bottom: .95rem; color: var(--ink-0);
  box-shadow: var(--e2); transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1);
  animation: rise var(--dur-2) var(--ease-out) backwards; }
.role-card:nth-of-type(2) { animation-delay: .08s; } .role-card:nth-of-type(3) { animation-delay: .16s; }
.role-card:active { transform: translateY(2px) scale(.99); box-shadow: var(--e1); }
.role-card .em { font-size: 2.2rem; width: 3.8rem; height: 3.8rem; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--paper-3)); box-shadow: inset 0 0 0 1px var(--hairline); }
.role-card .t { font-size: 1.3rem; font-weight: 700; }
.role-card .d { font-size: .95rem; color: var(--ink-2); }
.role-card .arrow { margin-left: auto; font-size: 1.7rem; color: var(--gold-deep); }

/* ---------- 提醒 ---------- */
.reminder { display: flex; align-items: center; gap: .8rem; padding: .75rem .2rem; border-bottom: 1px solid var(--hairline); }
.reminder:last-child { border-bottom: none; }
.reminder .ic { font-size: 1.7rem; width: 2.6rem; text-align: center; flex: 0 0 auto; }
.reminder .rl { flex: 1; min-width: 0; }
.reminder .rl .t { font-size: 1.08rem; font-weight: 600; }
.reminder .rl .tm { font-size: .85rem; color: var(--ink-2); }
.reminder .rbtn { flex: 0 0 auto; border: 2px solid var(--cinnabar); color: var(--cinnabar); background: #fff;
  border-radius: 999px; padding: .45rem .95rem; font-weight: 700; font-size: .95rem; min-height: 2.7rem; }
.reminder.done .rbtn { background: var(--ok); border-color: var(--ok); color: #fff; }
.reminder.done .rl .t { color: var(--ink-3); text-decoration: line-through; }

/* ---------- 成就 ---------- */
.ach-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.ach { display: flex; align-items: center; gap: .55rem; background: var(--grad-paper); border: 1px solid var(--hairline);
  border-radius: 999px; padding: .5rem .95rem; box-shadow: var(--e1); }
.ach .ai { font-size: 1.6rem; } .ach .an { font-weight: 700; } .ach .ad { font-size: .78rem; color: var(--ink-2); }

/* ---------- 小课堂 ---------- */
.course { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; background: var(--grad-paper);
  border: 1px solid var(--hairline); border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: .6rem; box-shadow: var(--e1); color: var(--ink-0);
  transition: transform var(--dur-1); }
.course:active { transform: scale(.99); }
.course .ci { font-size: 2rem; width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 35% 30%, #fff, var(--paper-3)); box-shadow: inset 0 0 0 1px var(--hairline); }
.course .ct { flex: 1; } .course .ct .t { font-size: 1.12rem; font-weight: 600; } .course .ct .m { font-size: .85rem; color: var(--ink-2); }
.course .arrow { color: var(--ink-3); font-size: 1.3rem; }

/* ---------- 体征步进器 ---------- */
.stepper { display: flex; align-items: center; gap: .9rem; justify-content: center; }
.stepper button { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 2px solid var(--hairline); background: var(--grad-paper);
  font-size: 1.7rem; font-weight: 700; color: var(--cinnabar); box-shadow: var(--e1); flex: 0 0 auto; line-height: 1; }
.stepper .val { font-family: var(--font-serif); font-size: 2rem; min-width: 4rem; text-align: center; }
.vital-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

/* ---------- 亲情点赞 ---------- */
.kudos-btns { display: flex; gap: .55rem; flex-wrap: wrap; }
.kudos-btns button { font-size: 1.7rem; background: var(--grad-paper); border: 1px solid var(--hairline); border-radius: 16px;
  padding: .45rem .8rem; box-shadow: var(--e1); min-height: 3.2rem; }

/* ---------- 月报 ---------- */
.report-line { display: flex; align-items: baseline; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--hairline); }
.report-line:last-child { border-bottom: none; }
.report-line .rv { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; }
.up { color: var(--ok); font-weight: 700; } .down { color: var(--danger); font-weight: 700; }

/* ---------- 查房快录（营养师批量代录）---------- */
.qrow { padding: .7rem 0; border-bottom: 1px solid var(--hairline); }
.qrow:last-of-type { border-bottom: none; }
.qline { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-top: .45rem; font-size: .9rem; color: var(--ink-2); }
.qbtn { border: 1.5px solid var(--hairline); background: var(--paper-2); border-radius: 11px; padding: .35rem .65rem; font-size: 1rem; min-height: 2.5rem; color: var(--ink-1); }
.qbtn.on { border-color: var(--cinnabar); background: #fff; color: var(--cinnabar); font-weight: 700; }
.qbtn.on.ok { border-color: var(--ok); color: var(--ok); }
.qbtn.on.warn { border-color: var(--warn); color: var(--warn); }
.qbtn.on.bad { border-color: var(--danger); color: var(--danger); }

.hide { display: none !important; }
.center { text-align: center; }
.mt { margin-top: 1rem; } .mb { margin-bottom: 1rem; }
.flex { display: flex; gap: .6rem; align-items: center; }
.wrap { flex-wrap: wrap; }
