/* AI健康助手 网页端 / 全息仓：粉色系，适老化大字（字号用 rem，设置里“大 / 特大”切换根字号） */
:root {
  --pink: #ff6b9a; --pink-deep: #e8457c; --pink-dark: #c2185b; --pink-light: #ffe3ec; --pink-bg: #fdeef2;
  --text: #3b2a33; --text-sub: #7d6a73; --card: #fff; --line: #f6e1e8;
  --shadow: 0 3px 12px rgba(232, 69, 124, 0.12);
  --red: #c62828; --amber: #f9a825;
}
html { font-size: 17px; }
html.fs-xl { font-size: 20px; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background: linear-gradient(180deg, #fde3ea 0%, #fff0f4 50%, #fbd9e3 100%) fixed;
  color: var(--text); line-height: 1.5; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Helvetica Neue', sans-serif;
  -webkit-text-size-adjust: 100%;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { -webkit-user-drag: none; }
[hidden] { display: none !important; }
#app { position: fixed; left: 0; top: 0; right: 0; bottom: 0; }
.view { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }

.btn-main {
  display: inline-flex; align-items: center; justify-content: center; border: 0; text-decoration: none;
  min-height: 3rem; padding: 0 1.4rem; border-radius: 999px; font-size: 1.1rem; font-weight: 600; color: #fff;
  background: linear-gradient(90deg, #ff6b9a, #e8457c); box-shadow: 0 4px 12px rgba(255, 92, 143, 0.35);
}
.btn-main.sm { min-height: 2.4rem; padding: 0 1rem; font-size: 1rem; flex: none; }
.btn-main:disabled { opacity: 0.6; }
.btn-sub {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem;
  border-radius: 999px; border: 2px solid #ff9fbc; background: #fff; color: var(--pink-dark); font-size: 1.05rem; font-weight: 600;
}
.link { border: 0; background: none; color: var(--pink-dark); text-decoration: underline; padding: 0; font-size: inherit; }

/* ================= 登录 ================= */
.login { display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.login-card { width: min(440px, 100%); background: rgba(255, 255, 255, 0.92); border-radius: 28px; padding: 32px 24px 24px; text-align: center; box-shadow: 0 8px 32px rgba(232, 69, 124, 0.15); }
.login-logo { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; background: linear-gradient(135deg, #ff8fb4, #e8457c); display: flex; align-items: center; justify-content: center; }
.login-logo img { width: 42px; height: 42px; }
.login h1 { margin: 0; font-size: 1.8rem; }
.login-sub { margin: 4px 0 22px; color: var(--text-sub); font-size: 0.85rem; }
.login-label { display: block; text-align: left; font-size: 1.05rem; margin-bottom: 8px; }
.login-input { width: 100%; height: 3.6rem; border: 2px solid #ffc1d4; border-radius: 16px; padding: 0 16px; font-size: 1.5rem; letter-spacing: 0.15em; text-align: center; outline: none; background: #fff; }
.login-input:focus { border-color: var(--pink-deep); }
.login-err { min-height: 1.6rem; margin: 8px 0; color: var(--red); font-size: 1rem; }
.login .btn-main { width: 100%; min-height: 3.4rem; font-size: 1.2rem; }
.login-note { margin: 18px 0 0; font-size: 0.85rem; color: var(--text-sub); }

/* ================= 主页布局 ================= */
.home { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; max-width: 640px; margin: 0 auto; overflow: hidden; }
.nav { display: flex; align-items: center; min-height: 60px; padding: env(safe-area-inset-top) 12px 0 16px; }
.nav-side { display: none; }
.nav-title { flex: 1; min-width: 0; }
.nav-title .t1 { font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.nav-title .t2 { font-size: 0.72rem; color: var(--text-sub); }
.nav-btns { display: flex; gap: 8px; flex: none; }
.nav-btn { display: flex; flex-direction: column; align-items: center; border: 0; background: none; padding: 0; }
.nb-ico { width: 2.3rem; height: 2.3rem; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.nb-ico img { width: 60%; height: 60%; }
.nb-txt { font-size: 0.85rem; margin-top: 2px; }

.stage { position: relative; min-height: 0; overflow: hidden; }
.frame { position: absolute; left: 50%; top: 0; width: var(--aw, 375px); height: calc(var(--aw, 375px) * 4 / 3); margin-left: calc(var(--aw, 375px) / -2); }
.frame .body { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 50% 100%; animation: breathe 6s ease-in-out infinite; }
/* 倾听：在听时身体微微前倾；点头：用户说完、开始思考时轻点两下 */
.frame .motion { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 50% 100%; transition: transform 0.6s ease-out; }
[data-status="listening"] .frame .motion { transform: rotate(-0.6deg) translateY(2px) scale(1.008); }
.frame .motion.nod { animation: nod 0.9s ease-in-out 1; }
@keyframes nod { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(4px) rotate(0.4deg); } 50% { transform: translateY(0) rotate(0); } 75% { transform: translateY(3px) rotate(0.3deg); } }
.layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.35s; }
.layer.on { opacity: 1; }
.layer img { position: absolute; display: block; user-select: none; pointer-events: none; }
.layer .base { left: 0; top: 0; width: 100%; height: 100%; }
.layer .part { opacity: 0; }
.blink-half { animation: blink-half 7s step-end infinite; }
.blink-closed { animation: blink-closed 7s step-end infinite; }
@keyframes blink-half {
  0% { opacity: 0; } 40% { opacity: 1; } 41% { opacity: 0; } 42.3% { opacity: 1; } 43.3% { opacity: 0; }
  88% { opacity: 1; } 89% { opacity: 0; } 90.3% { opacity: 1; } 91.3% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes blink-closed {
  0% { opacity: 0; } 41% { opacity: 1; } 42.3% { opacity: 0; } 89% { opacity: 1; } 90.3% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.006); } }
.frame[data-mouth="1"] .layer .m1 { opacity: 1; }
.frame[data-mouth="2"] .layer .m2 { opacity: 1; }

.lay-m .stage { background: #fde4eb; }
.lay-m .frame::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16%; pointer-events: none; background: linear-gradient(180deg, rgba(253, 228, 235, 0), #fde4eb); }
.fade-top { position: absolute; left: 0; right: 0; top: 0; height: 30px; pointer-events: none; background: linear-gradient(180deg, #fde3ea, rgba(253, 227, 234, 0)); }
.fade-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; pointer-events: none; background: linear-gradient(180deg, rgba(253, 228, 235, 0), #fde4eb); }

.switch { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; align-items: center; border: 0; background: none; padding: 0; }
.switch-thumb { width: 3rem; height: 3rem; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow); background: #fff; object-fit: cover; }
.switch-txt { margin-top: 4px; padding: 1px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); font-size: 0.85rem; color: var(--pink-dark); }

/* 气泡：肩膀以下，不挡脸 */
.bubbles { position: absolute; left: calc(20 * var(--u, 0.5px)); top: calc(345 * var(--ay, 0.5px)); bottom: 7.4rem; width: min(calc(400 * var(--u, 0.5px)), calc(100% - 7.9rem - 14px)); pointer-events: none; }
.bubble { background: rgba(255, 255, 255, 0.92); border-radius: 20px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 1rem; line-height: 1.55; position: relative; pointer-events: auto; }
.b1 { font-weight: 500; padding-right: 30px; }
.b2 { margin-top: 12px; background: rgba(255, 255, 255, 0.88); }
.spk { position: absolute; right: 9px; bottom: 9px; width: 17px; height: 17px; }
.b-user { background: rgba(255, 238, 244, 0.95); border: 2px solid #ffc1d4; }
.b-user-k { font-size: 0.8rem; color: var(--pink-dark); margin-bottom: 2px; }
.b-answer { max-height: 100%; display: flex; flex-direction: column; }
.b-answer-txt { flex: 1 1 auto; min-height: 0; overflow-y: auto; font-size: 1.05rem; white-space: pre-wrap; -webkit-overflow-scrolling: touch; }
.b-disclaimer { margin-top: 6px; font-size: 0.78rem; color: #8d7681; flex: none; }
@media (max-height: 700px) { .lay-m .b2 { display: none; } }

.entries { position: absolute; right: 7px; top: 12px; width: 7.9rem; }
.entry { display: flex; align-items: center; width: 100%; border: 0; text-align: left; background: rgba(255, 255, 255, 0.92); border-radius: 999px; padding: 4px 8px 4px 4px; margin-bottom: 9px; box-shadow: var(--shadow); }
.ico { width: 2rem; height: 2rem; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ico img { width: 80%; height: 80%; }
.ico-pink { background: #ffe3ec; } .ico-orange { background: #ffe9d6; } .ico-blue { background: #e3edff; }
.ico-green { background: #dcf5ea; } .ico-purple { background: #ece3ff; }
.entry-name { flex: 1; margin-left: 5px; font-size: 0.95rem; white-space: nowrap; }
.arrow { font-style: normal; color: var(--text-sub); font-size: 1.1rem; }

.listen { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); width: 11.8rem; padding: 8px 0 10px; border: 0; border-radius: 34px; background: rgba(255, 255, 255, 0.88); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; }
.wave { display: flex; align-items: center; justify-content: center; height: 2.6rem; }
.wave i { display: block; width: 5px; height: 10px; margin: 0 4px; border-radius: 3px; background: #ff6b9a; }
.wave-on i { animation: wave 0.9s ease-in-out infinite; }
.wave-speak i { background: #e8457c; animation-duration: 0.6s; }
.wave-wait i { animation: wait 1.2s ease-in-out infinite; opacity: 0.7; }
.wave i:nth-child(1), .wave i:nth-child(7) { animation-delay: 0s; } .wave i:nth-child(2), .wave i:nth-child(6) { animation-delay: 0.1s; }
.wave i:nth-child(3), .wave i:nth-child(5) { animation-delay: 0.2s; } .wave i:nth-child(4) { animation-delay: 0.3s; }
@keyframes wave { 0%, 100% { height: 10px; } 50% { height: 36px; } }
@keyframes wait { 0%, 100% { height: 10px; } 50% { height: 18px; } }
.listen-txt { font-size: 1.1rem; margin-top: 2px; }

/* ----- 底部：对话记录（电脑）+ 卡片 / 快捷问题 + 输入栏 ----- */
.panel { display: flex; flex-direction: column; min-height: 0; }
.transcript { display: none; }
.dock { padding: 4px 0; }
.quick { display: flex; gap: 8px; overflow-x: auto; padding: 4px 10px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.quick::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 2.7rem; padding: 0 15px; border: 1.5px solid #ff9fbc; border-radius: 999px; background: rgba(255, 255, 255, 0.75); color: var(--pink-dark); white-space: nowrap; font-size: 1rem; }
.chip .spark { color: var(--pink); margin-right: 5px; }
.chip-rem { background: #fff1f0; border-color: #ff8a80; color: #c62828; }
.chip-rem img { width: 1.2rem; height: 1.2rem; margin-right: 5px; }

.inputbar { margin: 0 10px calc(8px + env(safe-area-inset-bottom)); height: 4rem; background: #fff; border-radius: 999px; box-shadow: var(--shadow); display: flex; align-items: center; padding: 0 8px 0 12px; }
.kb { width: 2.5rem; height: 2.5rem; border: 0; background: none; padding: 0; display: flex; align-items: center; justify-content: center; flex: none; }
.kb img { width: 1.9rem; height: 1.9rem; }
.ipt { flex: 1; min-width: 0; height: 100%; margin: 0 10px 0 6px; border: 0; outline: none; background: transparent; font-size: 1.1rem; }
.ipt::placeholder { color: #b5a6ad; }
.mic { width: 3.1rem; height: 3.1rem; flex: none; border: 0; border-radius: 50%; padding: 0; color: #fff; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ff8fb4, #ff5c8f); box-shadow: 0 4px 10px rgba(255, 92, 143, 0.4); }
.mic-img { width: 55%; height: 55%; }
.mic-stop { display: none; width: 34%; height: 34%; border-radius: 3px; background: #fff; }
.mic-send { display: none; font-size: 1rem; font-weight: 600; }
.mic.mic-on { background: linear-gradient(135deg, #e8457c, #c2185b); animation: pulse 1.4s ease-in-out infinite; }
.mic.mic-on .mic-img { display: none; } .mic.mic-on .mic-stop { display: block; }
.mic.has-text .mic-img, .mic.has-text .mic-stop { display: none; } .mic.has-text .mic-send { display: inline; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 69, 124, 0.5); } 50% { box-shadow: 0 0 0 9px rgba(232, 69, 124, 0); } }

/* 卡片：量表题目、报告 */
.card { margin: 6px 10px; background: #fff; border-radius: 20px; padding: 12px 14px; box-shadow: var(--shadow); }
.card-scale { border: 2px solid #ffc1d4; }
.cs-h { font-size: 0.85rem; color: var(--pink-dark); font-weight: 600; }
.cs-q { font-size: 1.15rem; font-weight: 600; margin: 4px 0 10px; line-height: 1.45; }
.cs-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opt { min-height: 3.3rem; border: 2px solid #ff9fbc; background: #fff7fa; color: var(--pink-dark); border-radius: 16px; font-size: 1.15rem; font-weight: 600; padding: 4px 8px; }
.opt.chosen { background: linear-gradient(135deg, #ff8fb4, #ff5c8f); color: #fff; border-color: transparent; }
.opt:disabled:not(.chosen) { opacity: 0.5; }
.cs-tip { margin-top: 8px; font-size: 0.78rem; color: var(--text-sub); }
.card-report { display: flex; align-items: center; gap: 10px; background: #f1f6ff; border: 2px solid #cfe0ff; position: relative; padding-right: 34px; }
.card-report > img { width: 2.4rem; height: 2.4rem; flex: none; }
.cr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 1rem; }
.cr-t span { font-size: 0.82rem; color: var(--text-sub); }
.card-report .x { position: absolute; right: 4px; top: 2px; width: 30px; height: 30px; border: 0; background: none; font-size: 1.4rem; color: var(--text-sub); }
.lay-m.scale-on .bubbles, .lay-m.scale-on .entries { display: none; }

/* ================= 电脑 / 平板横屏：左舞台 + 右侧字幕栏 ================= */
.home.lay-d { max-width: none; grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 480px); grid-template-rows: auto minmax(0, 1fr); }
.lay-d .nav { grid-column: 1 / -1; padding: 0 20px 0 24px; }
.lay-d .stage { background: linear-gradient(180deg, #fde8ee 0%, #fbdde6 100%); }
.lay-d .frame { -webkit-mask-image: radial-gradient(ellipse 62% 74% at 50% 46%, #000 56%, transparent 100%); mask-image: radial-gradient(ellipse 62% 74% at 50% 46%, #000 56%, transparent 100%); }
.lay-d .fade-top, .lay-d .fade-bottom, .lay-d .bubbles { display: none; }
.lay-d .switch { left: 24px; top: 20px; }
.lay-d .entries { right: 24px; top: 20px; width: 11.5rem; }
.lay-d .entry { padding: 5px 10px 5px 5px; margin-bottom: 12px; }
.lay-d .listen { bottom: 22px; }
.lay-d .panel { background: rgba(255, 255, 255, 0.62); border-left: 1px solid var(--line); }
.lay-d .transcript { display: block; flex: 1; min-height: 0; overflow-y: auto; padding: 8px 0; }
.lay-d .dock { flex: none; max-height: 52%; overflow-y: auto; }
.lay-d .quick { flex-wrap: wrap; overflow: visible; }
.lay-d .inputbar { margin: 4px 14px 16px; }
.tr { display: flex; margin: 10px 14px; }
.tr-b { max-width: 90%; padding: 10px 14px; font-size: 1.05rem; line-height: 1.6; word-break: break-word; }
.tr-a .tr-b { background: #fff; border-radius: 6px 18px 18px 18px; box-shadow: var(--shadow); }
.tr-u { justify-content: flex-end; }
.tr-u .tr-b { background: linear-gradient(135deg, #ff8fb4, #ff5c8f); color: #fff; border-radius: 18px 6px 18px 18px; }
.tr-live .tr-b { opacity: 0.75; }
.tr-note { margin: 10px 18px; text-align: center; font-size: 0.88rem; color: var(--text-sub); }
.tr-disc { margin: 12px 18px 6px; text-align: center; font-size: 0.78rem; color: #a08a94; }
.tr-dots { display: flex; gap: 5px; padding: 14px 16px; }
.tr-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff9fbc; animation: dot 1s ease-in-out infinite; }
.tr-dots i:nth-child(2) { animation-delay: 0.15s; } .tr-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@media (max-height: 520px) { .lay-d .nav-title .t2 { display: none; } .lay-d .nav { min-height: 44px; } .lay-d .entries { width: 9.5rem; } .lay-d .entry { margin-bottom: 5px; } }

/* ================= 全息仓 ================= */
body.holo { background: #000; cursor: none; }
.holo-sub { display: none; }
.home.holo { max-width: none; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); background: #000; }
.holo .nav, .holo .panel, .holo .entries, .holo .switch, .holo .bubbles, .holo .listen, .holo .fade-top, .holo .fade-bottom { display: none !important; }
.holo .stage { background: #000; }
.holo .stage::before { display: none; }
.holo .stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 36vh; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.88) 70%); z-index: 4; }
.holo .frame { filter: brightness(0.98) contrast(1.04); -webkit-mask-image: radial-gradient(ellipse 15% 15% at 50% 21%, #000 38%, transparent 100%), radial-gradient(ellipse 36% 52% at 50% 80%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 15% 15% at 50% 21%, #000 38%, transparent 100%), radial-gradient(ellipse 36% 52% at 50% 80%, #000 55%, transparent 100%); }
.holo .holo-sub { display: flex; position: absolute; left: 6%; right: 6%; bottom: 4vh; flex-direction: column; align-items: center; gap: 1vh; text-align: center; z-index: 5; pointer-events: none; }
.hs-user { font-size: clamp(18px, 2.6vh, 34px); color: rgba(255, 255, 255, 0.6); min-height: 0; }
.hs-reply { max-width: 100%; max-height: 4.4em; overflow: hidden; font-size: clamp(26px, 4.6vh, 64px); line-height: 1.45; color: #fff; font-weight: 500; text-shadow: 0 2px 14px #000, 0 0 3px #000; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
.hs-reply.hs-dim { color: rgba(255, 255, 255, 0.6); font-size: clamp(22px, 3.4vh, 48px); max-height: none; -webkit-mask-image: none; mask-image: none; }
.hs-opts { display: flex; gap: 2vh; flex-wrap: wrap; justify-content: center; pointer-events: auto; margin-top: 1vh; }
.hs-opts .opt { min-width: 14vh; min-height: 7vh; font-size: clamp(22px, 3.6vh, 52px); background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.hs-opts .opt.chosen { background: #e8457c; border-color: #e8457c; }

/* ================= 二级页面 ================= */
.page { background: linear-gradient(180deg, #fde8ee 0%, #fff6f9 60%, #fdeef2 100%); }
.page-nav { position: absolute; left: 0; right: 0; top: 0; height: calc(58px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0; display: flex; align-items: center; z-index: 2; background: rgba(253, 232, 238, 0.95); }
.page-nav h2 { flex: 1; text-align: center; margin: 0; font-size: 1.35rem; }
.page-back { width: 3rem; height: 3rem; border: 0; background: none; font-size: 2.4rem; line-height: 1; color: var(--text); padding: 0 0 4px; }
.page-nav-r { width: 3rem; }
.page-body { position: absolute; left: 0; right: 0; bottom: 0; top: calc(58px + env(safe-area-inset-top)); overflow-y: auto; padding: 8px 14px calc(30px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.page-body > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.empty { text-align: center; color: var(--text-sub); padding: 48px 12px; font-size: 1.05rem; line-height: 1.8; }
.empty .btn-sub { margin-top: 14px; }
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: #fff; border-radius: 20px; padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.li > i { font-style: normal; color: var(--text-sub); font-size: 1.4rem; }
.li-ico { width: 2.6rem; height: 2.6rem; flex: none; }
.li-main { flex: 1; min-width: 0; }
.li-t { font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
.li-s { font-size: 0.88rem; color: var(--text-sub); margin-top: 2px; }
.li-n { font-size: 0.95rem; color: var(--text); margin-top: 4px; }
.btn-done { flex: none; min-height: 2.6rem; padding: 0 1.1rem; border: 0; border-radius: 999px; background: linear-gradient(90deg, #ff6b9a, #e8457c); color: #fff; font-size: 1rem; font-weight: 600; }
.done-tag { flex: none; font-size: 0.9rem; color: #2fa66f; }
.tabs { display: flex; gap: 10px; margin-bottom: 12px; }
.tabs button { flex: 1; min-height: 2.8rem; border-radius: 999px; border: 2px solid #ffc1d4; background: #fff; font-size: 1.05rem; color: var(--pink-dark); }
.tabs button.on { background: linear-gradient(90deg, #ff6b9a, #e8457c); color: #fff; border-color: transparent; font-weight: 600; }
.chatlog { display: flex; flex-direction: column; gap: 12px; }
.cl { display: flex; flex-direction: column; max-width: 88%; }
.cl-u { align-self: flex-end; align-items: flex-end; } .cl-a { align-self: flex-start; }
.cl-b { padding: 10px 14px; font-size: 1.05rem; line-height: 1.6; border-radius: 18px; background: #fff; box-shadow: var(--shadow); word-break: break-word; }
.cl-u .cl-b { background: linear-gradient(135deg, #ff8fb4, #ff5c8f); color: #fff; }
.cl-t { font-size: 0.75rem; color: var(--text-sub); margin-top: 3px; }
.foot-disc { text-align: center; font-size: 0.82rem; color: #a08a94; margin: 16px 0 0; }
.set-sec { background: #fff; border-radius: 20px; padding: 14px 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.set-h { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; display: flex; justify-content: space-between; }
.set-v { color: var(--pink-dark); font-weight: 600; }
.set-row { font-size: 1.1rem; margin-bottom: 12px; }
.seg { display: flex; gap: 10px; }
.seg button { flex: 1; min-height: 3rem; border-radius: 14px; border: 2px solid #ffc1d4; background: #fff; font-size: 1.1rem; color: var(--pink-dark); }
.seg button.on { background: linear-gradient(90deg, #ff6b9a, #e8457c); color: #fff; border-color: transparent; font-weight: 600; }
.range { width: 100%; height: 2.4rem; accent-color: #e8457c; }
.range-lb { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-sub); }

/* 换形象 / 菜单 / 报告：弹层 */
.mask { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 100; background: rgba(59, 42, 51, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog { width: min(460px, 100%); max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 26px; padding: 22px 16px 4px; }
.dlg-title { text-align: center; font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; }
.dlg-cancel { display: block; width: 100%; margin-top: 12px; height: 3.4rem; border: 0; border-top: 1px solid var(--line); background: none; font-size: 1.15rem; color: var(--text-sub); }
.pick-list { display: flex; justify-content: space-between; gap: 8px; }
.pick { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; padding: 10px 0 12px; border-radius: 18px; border: 3px solid var(--line); background: #fff; }
.pick-on { border-color: var(--pink-deep); background: var(--pink-light); }
.pick-img { width: 4.4rem; height: 4.4rem; border-radius: 50%; object-fit: cover; }
.pick-name { margin-top: 6px; font-size: 1rem; white-space: nowrap; }
.pick-on .pick-name { color: var(--pink-dark); font-weight: 700; }
.pick-tag { position: absolute; right: -3px; top: -3px; padding: 0 10px; border-radius: 0 16px 0 12px; background: var(--pink-deep); color: #fff; font-size: 0.8rem; }
.menu-it { display: flex; align-items: center; width: 100%; min-height: 3.6rem; border: 0; background: none; border-bottom: 1px solid var(--line); font-size: 1.1rem; text-align: left; gap: 12px; padding: 0 6px; }
.menu-it img { width: 2.1rem; height: 2.1rem; }
.menu-it img.inv { background: #e8457c; border-radius: 50%; padding: 5px; }
.menu-it span { flex: 1; } .menu-it i { font-style: normal; color: var(--text-sub); font-size: 1.3rem; }
.menu-out { justify-content: center; color: var(--red); border-bottom: 0; }
.dlg-report { width: min(560px, 100%); padding-top: 18px; }
.dlg-body { padding: 0 6px; }
.rp-title { font-size: 1.35rem; font-weight: 700; line-height: 1.4; }
.rp-time { font-size: 0.88rem; color: var(--text-sub); margin: 2px 0 12px; }
.rp-sum { display: flex; gap: 10px; margin-bottom: 10px; }
.rp-sum > div { flex: 1; background: var(--pink-bg); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; }
.rp-sum b { font-size: 1.4rem; color: var(--pink-dark); }
.rp-k { font-size: 0.85rem; color: var(--text-sub); display: block; }
.rp-adv { background: #fff8e6; border-radius: 14px; padding: 10px 12px; font-size: 1.05rem; line-height: 1.6; margin-bottom: 10px; }
.rp-warn { font-size: 0.9rem; color: #b26a00; margin-bottom: 8px; }
.rp-it { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rp-q { font-size: 1rem; line-height: 1.5; } .rp-a { font-size: 1.05rem; color: var(--pink-dark); font-weight: 600; margin-top: 2px; }
.rp-text { white-space: pre-wrap; font: inherit; font-size: 1rem; line-height: 1.7; background: var(--pink-bg); padding: 12px; border-radius: 14px; }
.rp-disc { margin: 14px 0 4px; text-align: center; font-size: 0.85rem; color: #a08a94; }

/* 紧急就医提示 */
.urgent { position: fixed; left: 0; right: 0; top: 0; z-index: 150; padding: calc(10px + env(safe-area-inset-top)) 14px 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3); }
.urgent-high { background: var(--red); color: #fff; }
.urgent-mid { background: var(--amber); color: #3b2a33; }
.u-in { max-width: 760px; margin: 0 auto; }
.u-t { font-size: 1.4rem; font-weight: 800; }
.u-b { font-size: 1.1rem; line-height: 1.6; margin-top: 4px; }
.u-s { font-size: 0.82rem; opacity: 0.9; margin-top: 6px; }
.u-btns { display: flex; gap: 10px; margin-top: 10px; }
.u-btns .btn-main { background: #fff; color: var(--red); box-shadow: none; }
.u-btns .btn-sub { border-color: rgba(255, 255, 255, 0.8); background: transparent; color: inherit; }
.urgent-mid .u-btns .btn-sub { border-color: #3b2a33; }
.holo .urgent { padding: 3vh 6vw; }
.holo .u-in { max-width: none; text-align: center; }
.holo .u-t { font-size: 5vh; } .holo .u-b { font-size: 3.4vh; } .holo .u-s { font-size: 2.2vh; }

.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 200; max-width: 88vw; background: rgba(59, 42, 51, 0.92); color: #fff; padding: 10px 18px; border-radius: 16px; font-size: 1rem; text-align: center; line-height: 1.5; pointer-events: none; }
.holo .toast { bottom: 20vh; font-size: 2.6vh; }
.lay-d ~ .toast { bottom: 90px; }

@media (prefers-reduced-motion: reduce) { .frame .body, .mic.mic-on { animation: none; } }
