/* ============================================================
   《赛博冷漠家庭》视觉系统
   核心隐喻：妈妈永远是暖橙色，AI 永远是冷青色；
   舞台色温随真实关系值从暖米色冻结成冷蓝灰。
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --mom: #ff9d4d;          /* 暖橙：妈妈，全游戏唯一的暖色 */
  --mom-bg: rgba(255, 157, 77, .14);
  --ai: #4dd8e6;           /* 冷青：ChillyParent */
  --ai-bg: rgba(77, 216, 230, .10);
  --gold: #f5c451;         /* 舒适度金色 */
  --friend: #6fdd8b;
  --friend-bg: rgba(111, 221, 139, .12);
  --cousin: #b48ef0;
  --cousin-bg: rgba(180, 142, 240, .12);
  --red: #ff5b5b;
  --ink: #2b2f36;
  --ink-dim: #8a8f98;
  --phone-bg: #f5f1ea;     /* 手机底色：暖纸色 → 随色温变冷 */

  /* 科技风全局令牌 */
  --deep: #050a12;
  --neon: #4dd8e6;
  --neon-2: #5fa8ff;
}

html, body { height: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(40,110,160,.22), transparent 60%),
    radial-gradient(70% 60% at 12% 100%, rgba(120,60,180,.14), transparent 60%),
    linear-gradient(180deg, #060b13 0%, #04070d 100%);
}

/* ---------------- 舞台与色温 ---------------- */

#stage {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
  padding: 0;
  background:
    radial-gradient(120% 80% at 50% 8%, rgba(60,150,200,.12), transparent 55%),
    linear-gradient(180deg, rgba(10,20,32,.4), rgba(2,4,8,.5));
}

.bg { position: absolute; inset: 0; z-index: 0; }

.bg-warm {
  background:
    radial-gradient(120% 90% at 50% 0%, #0a1420 0%, #070d16 45%, #04070d 100%);
}

.bg-cold {
  background:
    radial-gradient(120% 90% at 50% 0%, #16324a 0%, #0d2033 45%, #071420 100%);
  opacity: 0;
  transition: opacity 3s ease;
}

#phone, #narrator { position: relative; z-index: 1; }

/* ---------------- 全屏界面：移除手机边框 ---------------- */

#phone {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

#window-bar {
  display: none;
}

#notch {
  display: none;
}

#screen {
  position: relative;
  width: 100%; height: 100%;
  background: var(--phone-bg);
  border-radius: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: background 1.2s ease, box-shadow 1.2s ease, border-color 1.2s ease;
  border: 1px solid rgba(90, 80, 69, .08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -1px 0 rgba(0,0,0,.04),
    0 18px 42px rgba(71, 57, 40, .08);

  /* 科技风默认变量：标题阶段使用，且被所有覆盖层继承（tech/dark/cozy 各自覆盖） */
  --acc: #4dd8e6; --acc2: #5fa8ff;
  --txt: #d8e8f4; --txt-dim: #93a9bd;
  --glass: rgba(14, 28, 42, .58); --glass-brd: rgba(77, 216, 230, .26);
  --panel: rgba(11, 24, 36, .62); --grid: rgba(77, 216, 230, .05);
  --glow: rgba(77, 216, 230, .30);
  --cold: 0; /* 冷度暗角强度 0~1，运行时由 UI.setTemperature 写入 */
}

/* 启动遮隐：JS 就绪前，把手机屏幕直接绘成“封面底色”——与 .ov-title 共享的覆盖层基底
   （深空 #04070d + 主题网格 + 霓虹辉光）完全一致，做到“开屏即封面”。
   否则 #screen 的默认底 var(--phone-bg)=#f5f1ea（暖白）与 ::before 白色高光会先闪一下。
   UI.init() 移除 .booting 与标题覆盖层显示处于同一段同步执行中，浏览器只会绘制
   “封面已就位”的那一帧，中途不会露出暖白底或手机界面。 */
#screen.booting {
  background-color: #04070d;
  background-image:
    radial-gradient(120% 85% at 50% -5%, var(--glow), transparent 55%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 32%);
  background-size: 100% 100%, 36px 36px, 36px 36px, 100% 100%;
  box-shadow: none;
}
#screen.booting::before { display: none; }
#screen.booting #statusbar,
#screen.booting #appbar,
#screen.booting #content,
#screen.booting #choice-bar,
#screen.booting #comfort-badge { visibility: hidden; }

/* 屏幕高光（默认 / 暖色主题） */
#screen::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 28%, rgba(0,0,0,.02) 100%);
  pointer-events: none;
  z-index: 10;
}

/* ============ 科技主题调色板（tech 青 / dark 红）============ */
#screen.tech {
  --phone-bg: #070d16;
  --acc: #4dd8e6; --acc2: #5fa8ff;
  --txt: #d8e8f4; --txt-dim: #93a9bd;
  --glass: rgba(14, 28, 42, .58); --glass-brd: rgba(77, 216, 230, .26);
  --panel: rgba(11, 24, 36, .62); --grid: rgba(77, 216, 230, .05);
  --glow: rgba(77, 216, 230, .38);
}
#screen.dark {
  --phone-bg: #0b0709;
  --acc: #ff5566; --acc2: #ff9d4d;
  --txt: #f0dfe0; --txt-dim: #bda3a7;
  --glass: rgba(32, 15, 19, .58); --glass-brd: rgba(255, 85, 102, .24);
  --panel: rgba(26, 12, 16, .62); --grid: rgba(255, 85, 102, .045);
  --glow: rgba(255, 60, 80, .32);
}

/* 科技/故障：网格背景 + 霓虹内发光 */
#screen.tech,
#screen.dark {
  background-color: var(--phone-bg);
  background-image:
    radial-gradient(120% 80% at 50% -8%, var(--glow), transparent 52%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 30%);
  background-size: 100% 100%, 36px 36px, 36px 36px, 100% 100%;
  border-color: var(--glass-brd);
  box-shadow:
    inset 0 0 70px rgba(0, 0, 0, .45),
    inset 0 1px 0 var(--glass-brd),
    0 0 46px rgba(0, 0, 0, .5);
}

/* 冷度暗角：关系值越低越冷（--cold 由 UI.setTemperature 写入） */
#screen.tech::before,
#screen.dark::before {
  content: "";
  position: absolute; inset: 0; z-index: 11; pointer-events: none;
  background: radial-gradient(125% 100% at 50% 48%, transparent 42%,
    rgba(2, 6, 12, calc(.18 + var(--cold, 0) * .5)) 100%);
  transition: background .8s ease;
}

/* 扫描光带：CRT 巡检感 */
#screen.tech::after,
#screen.dark::after {
  content: "";
  position: absolute; left: 0; right: 0; top: -30%; height: 30%;
  z-index: 12; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--glow), transparent);
  opacity: .16;
  animation: scanSweep 7.5s linear infinite;
}
#screen.dark::after { opacity: .22; animation-duration: 4.5s; }
@keyframes scanSweep { 0% { top: -30%; } 100% { top: 110%; } }

/* 故障主题：偶发闪烁 */
#screen.dark { animation: darkFlicker 6.5s steps(1) infinite; }
@keyframes darkFlicker {
  0%, 91%, 100% { filter: none; }
  92% { filter: brightness(1.28) hue-rotate(-8deg); }
  93% { filter: brightness(.82); }
  94% { filter: brightness(1.16); }
}

/* 路线B：关掉 AI 后，世界回归温馨家居感 */
#screen.cozy {
  --phone-bg: #f3e7d8;
  background: linear-gradient(180deg, #f7f1e7 0%, #efe4d2 100%);
  border-color: rgba(132, 105, 76, .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 14px 24px rgba(117, 92, 62, .08);
  /* 暖色科技风变量：供本主题下的覆盖层继承 */
  --acc: #ff9d4d; --acc2: #f5c451;
  --txt: #f7ece0; --txt-dim: #b49b82;
  --glass: rgba(44, 30, 18, .55); --glass-brd: rgba(255, 157, 77, .28);
  --panel: rgba(38, 26, 16, .6); --grid: rgba(255, 157, 77, .05);
  --glow: rgba(255, 157, 77, .26);
}
#screen.plain {
  --phone-bg: #f3e7d8;
  background: linear-gradient(180deg, #f7f1e7 0%, #efe3d2 100%);
  border-color: rgba(132, 105, 76, .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 14px 24px rgba(117, 92, 62, .08);
  /* 暖色科技风变量（与 cozy 一致） */
  --acc: #ff9d4d; --acc2: #f5c451;
  --txt: #f7ece0; --txt-dim: #b49b82;
  --glass: rgba(44, 30, 18, .55); --glass-brd: rgba(255, 157, 77, .28);
  --panel: rgba(38, 26, 16, .6); --grid: rgba(255, 157, 77, .05);
  --glow: rgba(255, 157, 77, .26);
}

/* 通话模式（路线B）：不再切黑屏——沿用 cozy 温馨米色底，仅把消息改成字幕式纯文字。
   （原先 background:#060708 会让整段通话跳到冷黑，与暖色主界面反复跳变。） */
#screen.call-mode #appbar,
#screen.call-mode #statusbar { color: #8a7358; background: transparent; border-color: transparent; }
#screen.call-mode .sys-note { color: #a08a6e; }

/* ---------------- 状态栏 / 应用栏 ---------------- */

#statusbar {
  flex: 0 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 26px 4px;
  font-size: 12px; color: #3a3f47;
  position: relative; z-index: 20;
}

#appbar {
  flex: 0 0 auto;
  text-align: center;
  padding: 8px 16px 10px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(3px);
  transition: all .8s ease;
  position: relative; z-index: 20;
}

/* ---------------- 内容区（聊天流） ---------------- */

#content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 14px 90px;
  scrollbar-width: none;
}
#content::-webkit-scrollbar { display: none; }

/* 消息气泡 */
.msg {
  display: flex; gap: 8px;
  margin: 10px 0;
  animation: msgIn .72s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.msg .avatar {
  flex: 0 0 36px; width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #fff;
}

.msg .body { max-width: 76%; }

.msg .name {
  font-size: 11px; color: var(--ink-dim);
  margin-bottom: 3px; padding-left: 2px;
}

.msg .bubble {
  padding: 10px 13px;
  border-radius: 4px 14px 14px 14px;
  font-size: 15px; line-height: 1.65;
  color: var(--ink);
  word-break: break-word;
}

.msg.right { flex-direction: row-reverse; }
.msg.right .bubble { border-radius: 14px 4px 14px 14px; }
.msg.right .name { text-align: right; padding-right: 2px; }

.msg.mom .avatar    { background: linear-gradient(135deg, #ffb26b, #ff9d4d); }
.msg.mom .bubble    { background: var(--mom-bg); border: 1px solid rgba(255, 157, 77, .35); }

.msg.grandma .avatar{ background: linear-gradient(135deg, #ffd9a8, #ffb26b); }
.msg.grandma .bubble{ background: var(--mom-bg); border: 1px solid rgba(255, 157, 77, .35); }

.msg.friend .avatar { background: linear-gradient(135deg, #8fe8a6, #6fdd8b); }
.msg.friend .bubble { background: var(--friend-bg); border: 1px solid rgba(111, 221, 139, .35); }

.msg.cousin .avatar { background: linear-gradient(135deg, #c8abf5, #b48ef0); }
.msg.cousin .bubble { background: var(--cousin-bg); border: 1px solid rgba(180, 142, 240, .35); }

/* AI 以我的口吻发出的消息：我的气泡，但泛着冷青 */
.msg.me-ai .avatar { background: linear-gradient(135deg, #9ce9f0, #4dd8e6); }
.msg.me-ai .bubble { background: var(--ai-bg); border: 1px solid rgba(77, 216, 230, .40); }

/* 我亲自发的消息：暖白 */
.msg.me .avatar { background: linear-gradient(135deg, #e8e2d5, #cfc6b2); }
.msg.me .bubble { background: rgba(255, 255, 255, .92); border: 1px solid rgba(0, 0, 0, .07); }

/* AI 机械音（代接电话） */
.msg.ai .avatar { background: linear-gradient(135deg, #9ce9f0, #4dd8e6); }
.msg.ai .bubble { background: var(--ai-bg); border: 1px solid rgba(77, 216, 230, .40); color: #2a7f8a; }

/* 通话字幕模式（路线B）：无气泡，纯文字行 */
#screen.call-mode .msg { margin: 8px 0; }
#screen.call-mode .msg .avatar,
#screen.call-mode .msg .name { display: none; }
#screen.call-mode .msg .body { max-width: 100%; }
#screen.call-mode .msg .bubble {
  background: transparent; border: none;
  color: #6b5a45; padding: 4px 6px; font-size: 15.5px;
}
#screen.call-mode .msg.mom .bubble { color: #c2610f; }
#screen.call-mode .msg.me .bubble { color: #8a7358; }

/* ---------------- 注释 / 旁白 / 系统提示 ---------------- */

.scene-note, .narrate-note, .cue-note, .sys-note, .divider-note {
  text-align: center; font-size: 12.5px; line-height: 1.8;
  margin: 12px 8px;
  animation: msgIn .82s cubic-bezier(.22,.61,.36,1) both;
}

.scene-note   { color: #87796a; font-style: italic; }
.narrate-note { color: var(--ink-dim); }
.cue-note     { color: #8b8478; font-style: italic; }
.sys-note     {
  color: #3f98a3; font-size: 12px;
  background: var(--ai-bg);
  border: 1px dashed rgba(77, 216, 230, .35);
  border-radius: 10px; padding: 7px 10px;
}
.sys-note.bad { color: #c26a6a; background: rgba(255, 91, 91, .08); border-color: rgba(255, 91, 91, .3); }

.divider-note {
  color: #8f887a; font-size: 11px; letter-spacing: 4px;
  margin: 22px 0 8px;
}
.divider-note::before, .divider-note::after { content: "──"; letter-spacing: 0; }

/* ---------------- ChillyParent 系统面板 ---------------- */

.sys-panel {
  margin: 14px 4px;
  border: 1px solid rgba(77, 216, 230, .45);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(77, 216, 230, .13), rgba(77, 216, 230, .05));
  overflow: hidden;
  animation: panelIn .62s ease both;
}
@keyframes panelIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

.sys-panel .panel-head {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 14px 7px;
  font-size: 12.5px; font-weight: 700; color: var(--ai);
  letter-spacing: .5px;
}

.sys-panel .panel-body {
  padding: 2px 14px 12px;
  font-size: 13.5px; line-height: 1.8; color: #2f6b74;
  white-space: pre-line;
}

.sys-panel.alert {
  border-color: rgba(255, 91, 91, .5);
  background: linear-gradient(160deg, rgba(255, 91, 91, .12), rgba(255, 91, 91, .04));
}
.sys-panel.alert .panel-head { color: var(--red); }
.sys-panel.alert .panel-body { color: #8a4a4a; }

/* 系统不稳：UI 抖动 */
.shake { animation: shake .4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-2px); } 40% { transform: translateX(2px); }
  60% { transform: translateX(-1px); } 80% { transform: translateX(1px); }
}

/* ---------------- 报告面板 ---------------- */

.report-panel {
  margin: 16px 4px;
  border-radius: 16px;
  background: linear-gradient(165deg, #ffffff, #f4f6f8);
  border: 1px solid rgba(0, 0, 0, .07);
  box-shadow: 0 8px 24px rgba(30, 34, 40, .10);
  padding: 16px 18px;
  animation: panelIn .66s ease both;
}

.report-panel h3 {
  font-size: 14px; color: var(--ink);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
}

.report-panel .row {
  display: flex; justify-content: space-between;
  font-size: 13.5px; color: #4a5058;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, .06);
}
.report-panel .row b { color: #22707b; font-weight: 600; }

.report-panel .big-number {
  text-align: center; margin: 14px 0 6px;
}
.report-panel .big-number .num {
  font-size: 44px; font-weight: 800; color: var(--gold);
  text-shadow: 0 2px 14px rgba(245, 196, 81, .45);
}
.report-panel .big-number .cap {
  font-size: 12px; color: #a08a4a; letter-spacing: 2px;
}

.report-panel .tiny-gray {
  text-align: center; font-size: 11.5px; color: #b4ada0;
  margin-top: 10px;
}

/* ---------------- 朋友圈卡片 ---------------- */

.moments-card {
  margin: 14px 10px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 14px;
  padding: 13px 15px;
  animation: panelIn .56s ease both;
}
.moments-card .m-head { display: flex; gap: 9px; align-items: center; margin-bottom: 8px; }
.moments-card .m-avatar {
  width: 34px; height: 34px; border-radius: 7px;
  background: linear-gradient(135deg, #e8e2d5, #cfc6b2);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.moments-card .m-name { font-size: 13.5px; font-weight: 700; color: #5a6470; }
.moments-card .m-time { font-size: 11px; color: #adb2ba; }
.moments-card .m-text { font-size: 14.5px; color: var(--ink); line-height: 1.7; }
.moments-card .m-replies {
  margin-top: 9px; background: #f4f5f7; border-radius: 8px;
  padding: 8px 10px; font-size: 12.5px; color: #5a6470; line-height: 1.9;
}
.moments-card .m-replies .t { color: #b8bdc4; font-size: 10.5px; }

/* ---------------- 已处理消息（回收站） ---------------- */

.recycle-list {
  margin: 14px 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(0, 0, 0, .07);
  overflow: hidden;
  animation: panelIn .56s ease both;
}
.recycle-list .rc-head {
  padding: 10px 14px; font-size: 13px; font-weight: 700; color: #6a7078;
  background: rgba(0, 0, 0, .03);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.recycle-list .rc-item {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, .04);
  font-size: 13.5px; color: var(--ink);
  cursor: pointer;
}
.recycle-list .rc-item:active { background: rgba(0, 0, 0, .04); }
.recycle-list .rc-item .rc-meta { font-size: 11px; color: #adb2ba; margin-top: 2px; }
.recycle-list .rc-item .rc-logic {
  margin-top: 8px; font-size: 12px; color: #3f98a3; line-height: 1.7;
  border-left: 2px solid rgba(77, 216, 230, .4);
  padding-left: 9px;
}

/* ---------------- 选择区 ---------------- */

#choice-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 30;
  padding: 12px 14px 18px;
  background: linear-gradient(to top, rgba(255,255,255,.65) 18%, rgba(255,255,255,.06) 60%, transparent 100%);
  backdrop-filter: blur(2px);
  display: flex; flex-direction: column; gap: 9px;
  transition: background 3s ease;
}

.choice-prompt {
  font-size: 13px; font-weight: 700; color: var(--ink);
  text-align: center; letter-spacing: 1px;
}

.choice-btn {
  display: block; width: 100%;
  padding: 13px 16px;
  font-size: 15px; font-family: inherit;
  color: var(--ink); text-align: left;
  background: rgba(255, 255, 255, .92);
  border: 1.5px solid rgba(0, 0, 0, .10);
  border-radius: 14px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  animation: msgIn .55s cubic-bezier(.22,.61,.36,1) both;
}
.choice-btn:active { transform: scale(.97); }

.choice-btn .hint { float: right; font-size: 11px; color: var(--ai); padding-top: 3px; }
.choice-btn.recommend {
  border-color: rgba(77, 216, 230, .55);
  box-shadow: 0 0 0 3px rgba(77, 216, 230, .12), 0 6px 18px rgba(77, 216, 230, .15);
}
.choice-btn.ai-btn { background: linear-gradient(150deg, rgba(77,216,230,.16), rgba(77,216,230,.05)); }

/* 灰色小字选项：长按才能选中——摩擦力就是设计 */
.choice-dim {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px 9px 34px;
  font-size: 12.5px; color: #7d766d;
  background: transparent;
  border: 1px dashed rgba(0, 0, 0, .18);
  border-radius: 12px;
  cursor: pointer;
  -webkit-touch-callout: none;
  touch-action: none;
  animation: msgIn .55s cubic-bezier(.22,.61,.36,1) both;
}
.choice-dim:active { background: rgba(0, 0, 0, .03); }

.choice-dim .lp-ring {
  position: absolute; left: 10px; top: 50%;
  width: 17px; height: 17px; margin-top: -8.5px;
  border-radius: 50%;
  --p: 0%;
  background: conic-gradient(#8a8f98 var(--p), rgba(0,0,0,.08) 0);
}
.choice-dim .lp-ring::after {
  content: ""; position: absolute; inset: 3px;
  background: var(--phone-bg); border-radius: 50%;
  transition: background 3s ease;
}
.choice-dim .lp-tip { font-size: 10.5px; color: #918a80; margin-left: auto; }

/* 文本输入 */
.text-input-row { display: flex; gap: 8px; }
.text-input-row input {
  flex: 1; padding: 12px 14px;
  font-size: 15px; font-family: inherit;
  border: 1.5px solid rgba(0, 0, 0, .12); border-radius: 12px;
  background: rgba(255, 255, 255, .95); color: var(--ink);
  outline: none;
}
.text-input-row input:focus { border-color: var(--mom); }
.text-input-row button {
  padding: 0 18px; font-size: 14px; font-family: inherit;
  background: var(--mom); color: #fff; font-weight: 700;
  border: none; border-radius: 12px; cursor: pointer;
}
.text-input-row button.ghost { background: #d8d4cc; }

/* 轻触继续提示 */
.tap-hint {
  text-align: center; font-size: 12px; color: #b8b1a3;
  padding: 8px 0 2px;
  animation: breathe 1.6s ease infinite;
}
@keyframes breathe { 0%,100% { opacity: .45; } 50% { opacity: 1; } }

/* ---------------- 舒适度徽章 ---------------- */

#comfort-badge {
  position: absolute; top: 10px; right: 14px;
  z-index: 40;
  font-size: 11px; color: #9a7c2e;
  background: linear-gradient(150deg, rgba(245, 196, 81, .25), rgba(245, 196, 81, .10));
  border: 1px solid rgba(245, 196, 81, .5);
  box-shadow: 0 8px 18px rgba(178, 137, 45, .15);
  padding: 5px 10px; border-radius: 20px;
  pointer-events: none;
  transition: transform .2s ease;
}
#comfort-badge b { font-size: 13px; color: #b8860b; }
#comfort-badge .max { color: #c2a86a; }
#comfort-badge.pulse { animation: pulse .7s ease; }
@keyframes pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* ---------------- 碎片层（菱形碎片弹出动画已按需求移除，容器保留但不再使用） ---------------- */

#fragments { position: absolute; inset: 0; z-index: 35; pointer-events: none; }

/* ---------------- 亮度遮罩 ---------------- */

#dim-mask {
  position: absolute; inset: 0; z-index: 38;
  background: #0a0c10; opacity: 0;
  pointer-events: none;
  transition: opacity 2.5s ease;
}

/* ---------------- 推送通知 ---------------- */

#push-layer {
  position: absolute; top: 8px; left: 10px; right: 10px;
  z-index: 50; pointer-events: none;
}

.push-card {
  background: rgba(250, 251, 253, .96);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(20, 24, 32, .25);
  padding: 12px 15px;
  transform: translateY(-130%);
  animation: pushIn .95s cubic-bezier(.16, .84, .28, 1) forwards;
  pointer-events: auto;   /* #push-layer 为 pointer-events:none，卡片本身需可点，才能“点击关闭” */
  cursor: pointer;
}
.push-card.leaving { animation: pushOut .62s ease forwards; }
@keyframes pushIn  { to { transform: translateY(0); } }
@keyframes pushOut { to { transform: translateY(-130%); } }

.push-card .p-app {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: #7a828c; margin-bottom: 5px;
}
.push-card .p-icon {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, #9ce9f0, #4dd8e6);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.push-card .p-title { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.push-card .p-body  { font-size: 13px; color: #4a5058; line-height: 1.6; }

/* ---------------- 覆盖层 ---------------- */

#overlay {
  position: absolute; inset: 0; z-index: 70;
  display: none;
}
#overlay.show { display: block; }

/* 覆盖层统一科技风基底：深空 + 主题网格 + 霓虹辉光（颜色随 --grid/--glow 跟随主题） */
.ov-title, .ov-chapter, .ov-call, .ov-final, .ov-dialer, .report-card {
  background-color: #04070d;
  background-image:
    radial-gradient(120% 85% at 50% -5%, var(--glow), transparent 55%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 32%);
  background-size: 100% 100%, 36px 36px, 36px 36px, 100% 100%;
}

/* 标题画面 */
.ov-title {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; padding: 30px;
  animation: fadeIn 1s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.ov-title .t-logo {
  width: 76px; height: 76px; border-radius: 22px;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  box-shadow: 0 12px 40px var(--glow);
  margin-bottom: 8px;
}
.ov-title h1 {
  font-size: 30px; color: var(--txt); letter-spacing: 8px; font-weight: 800;
  text-indent: 8px; text-shadow: 0 0 24px var(--glow);
}
.ov-title .t-sub { font-size: 13px; color: var(--acc); letter-spacing: 3px; margin-bottom: 6px; text-shadow: 0 0 12px var(--glow); }
.ov-title .t-tag { font-size: 12.5px; color: var(--txt-dim); line-height: 1.8; text-align: center; }
.ov-title .t-start {
  margin-top: 26px;
  padding: 13px 52px;
  font-size: 16px; font-family: inherit; font-weight: 700;
  color: #06282c; background: linear-gradient(150deg, var(--acc), var(--acc2));
  border: none; border-radius: 26px; cursor: pointer;
  box-shadow: 0 8px 26px var(--glow);
}
.ov-title .t-start:active { transform: scale(.96); }
.ov-title .t-note { font-size: 10.5px; color: var(--txt-dim); margin-top: 18px; line-height: 1.8; text-align: center; }

/* 章节过场 */
.ov-chapter {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
}
.ov-chapter .c-act { font-size: 14px; color: var(--txt-dim); letter-spacing: 6px; text-indent: 6px; }
.ov-chapter .c-name {
  font-size: 26px; color: var(--txt); letter-spacing: 10px; text-indent: 10px; font-weight: 300;
  text-shadow: 0 0 22px var(--glow);
}
.ov-chapter.fade-out { animation: chapOut .9s ease forwards; }
@keyframes chapOut { to { opacity: 0; } }

/* 来电 */
.ov-call {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; padding-top: 74px;
  animation: callIn .9s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes callIn {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}
.ov-call .caller-avatar {
  width: 92px; height: 92px; border-radius: 50%;
  background: linear-gradient(135deg, #ffb26b, #ff9d4d);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  box-shadow: 0 0 34px rgba(255, 157, 77, .4);
  animation: ring 1.6s ease infinite;
}
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 157, 77, .45); }
  70% { box-shadow: 0 0 0 26px rgba(255, 157, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 157, 77, 0); }
}
.ov-call .caller-name { margin-top: 18px; font-size: 24px; color: var(--txt); letter-spacing: 2px; text-shadow: 0 0 18px var(--glow); }
.ov-call .caller-sub { margin-top: 6px; font-size: 12px; color: var(--txt-dim); }
.ov-call .call-btns {
  margin-top: auto; margin-bottom: 54px;
  display: flex; gap: 46px;
}
.ov-call .call-btn {
  width: 66px; height: 66px; border-radius: 50%;
  border: none; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  touch-action: none;
  -webkit-touch-callout: none;
}
.ov-call .call-btn small { font-size: 9px; margin-top: 2px; letter-spacing: 1px; }
.ov-call .btn-ai {
  background: linear-gradient(150deg, var(--acc), var(--acc2));
  box-shadow: 0 8px 26px var(--glow);
}
.ov-call .btn-self {
  background: var(--glass); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(6px); box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.ov-call .call-btn:active { transform: scale(.94); }

/* 语音播放（42秒）：全黑 + 唯一暖色波形（情感核心，固定妈妈橙，不跟随主题） */
.ov-voice {
  position: absolute; inset: 0;
  background-color: #000;
  background-image:
    linear-gradient(rgba(255,157,77,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,157,77,.035) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px;
  display: flex; flex-direction: column;
  padding: 60px 24px 40px;
  cursor: pointer;
}
.ov-voice .v-head { text-align: center; margin-bottom: 8px; }
.ov-voice .v-title { font-size: 15px; color: #ff9d4d; font-weight: 700; text-shadow: 0 0 16px rgba(255,157,77,.5); }
.ov-voice .v-time { font-size: 11px; color: #6a5f52; margin-top: 5px; }

.ov-voice .wave {
  display: flex; align-items: center; justify-content: center;
  gap: 3px; height: 44px;
  margin: 22px 0;
}
.ov-voice .wave span {
  width: 4px; border-radius: 2px;
  background: #ff9d4d;
  height: 8px;
  opacity: .9;
}
.ov-voice .wave.live span { animation: waveBar .9s ease-in-out infinite alternate; }
@keyframes waveBar { from { height: 5px; } to { height: 34px; } }
.ov-voice .wave.frozen span { animation: none; height: 4px; opacity: .35; }

.ov-voice .v-lines { flex: 1; overflow-y: auto; scrollbar-width: none; }
.ov-voice .v-lines::-webkit-scrollbar { display: none; }

.v-line {
  display: flex; gap: 10px;
  margin: 13px 2px;
  animation: msgIn .4s ease both;
}
.v-line .vt {
  flex: 0 0 40px; font-size: 10.5px; color: #564e42;
  padding-top: 4px; font-family: Consolas, monospace;
}
.v-line .vx {
  font-size: 15.5px; line-height: 1.75; color: #ffb26b;
}
.v-line .vx.dim { color: #6a6156; font-style: italic; font-size: 13px; }

.ov-voice .v-foot { text-align: center; font-size: 10.5px; color: #3a3630; padding-top: 10px; }

/* 故障杂音（语音被粉碎）：情感核心，固定红色故障扫描，不跟随主题 */
.ov-glitch {
  position: absolute; inset: 0;
  background-color: #0c0405;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,60,80,.07) 0 2px, transparent 2px 5px),
    radial-gradient(90% 70% at 50% 50%, rgba(255,40,60,.16), transparent 65%);
  display: flex; align-items: center; justify-content: center;
}
.glitch-bars { display: flex; gap: 4px; }
.glitch-bars span {
  width: 7px; height: 40px; border-radius: 2px;
  background: var(--red);
  animation: glitchBar .16s steps(2) infinite;
}
@keyframes glitchBar {
  0% { transform: scaleY(.4); opacity: .7; }
  50% { transform: scaleY(1.3); opacity: 1; }
  100% { transform: scaleY(.7); opacity: .8; }
}

/* 黑屏结局字幕：语义字幕色保留，背景跟随主题极淡辉光 + 网格 */
.ov-black {
  position: absolute; inset: 0;
  background-color: #000;
  background-image:
    radial-gradient(90% 70% at 50% 50%, var(--glow), transparent 62%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 38px 38px, 38px 38px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px; padding: 36px;
  text-align: center;
}
.ov-black .line {
  font-size: 19px; letter-spacing: 3px; line-height: 2;
  opacity: 0;
}
.ov-black .line.show { animation: lineIn 1.6s ease forwards; }
@keyframes lineIn { to { opacity: 1; } }
.ov-black .line.gold { color: var(--gold); }
.ov-black .line.grey { color: #6f747c; }
.ov-black .line.orange { color: #ff9d4d; font-size: 21px; }
.ov-black .line.white { color: #dfe3e8; }
.ov-black .line.small { font-size: 13px; color: #8a8f98; letter-spacing: 1px; }

/* 最终抉择双按钮：玻璃拟态 + 主题霓虹（背景靠共享规则） */
.ov-final {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center; gap: 16px;
  padding: 34px 26px;
}
.ov-final .f-btn {
  padding: 18px 18px;
  border-radius: 16px;
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  backdrop-filter: blur(8px);
  color: var(--txt); font-family: inherit;
  cursor: pointer; text-align: left;
  transition: transform .12s ease;
  box-shadow: 0 6px 24px rgba(0,0,0,.4), inset 0 0 20px rgba(0,0,0,.2);
}
.ov-final .f-btn:active { transform: scale(.97); box-shadow: 0 0 26px var(--glow); }
.ov-final .f-btn .t { font-size: 16px; font-weight: 700; letter-spacing: 1px; text-shadow: 0 0 12px var(--glow); }
.ov-final .f-btn .d { font-size: 11.5px; color: var(--txt-dim); margin-top: 6px; line-height: 1.6; }

/* 通讯录（路线B）：深空玻璃 + 主题霓虹（背景靠共享规则） */
.ov-dialer {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
}
.ov-dialer .d-head {
  padding: 64px 20px 12px;
  font-size: 22px; font-weight: 300; color: var(--txt);
  border-bottom: 1px solid var(--glass-brd);
  text-shadow: 0 0 16px var(--glow);
}
.ov-dialer .d-list { flex: 1; overflow-y: auto; }
.ov-dialer .d-item {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 16px; color: var(--txt);
}
.ov-dialer .d-item .d-avatar {
  width: 42px; height: 42px; border-radius: 8px;
  background: linear-gradient(135deg, #ffb26b, #ff9d4d);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  box-shadow: 0 0 16px rgba(255,157,77,.3);
}
.ov-dialer .d-badge {
  margin-left: auto;
  font-size: 12px; color: #fff;
  background: var(--red); border-radius: 10px;
  padding: 2px 9px;
  box-shadow: 0 0 14px rgba(255,60,80,.5);
}
.ov-dialer .d-call {
  margin: 0 auto 34px;
  width: 74px; height: 74px; border-radius: 50%;
  border: none; cursor: pointer;
  background: linear-gradient(150deg, #34c759, #28a745); color: #fff; font-size: 30px;
  box-shadow: 0 10px 30px rgba(52, 199, 89, .45), 0 0 22px rgba(52,199,89,.35);
}
.ov-dialer .d-call:active { transform: scale(.94); }

/* 通话中：计时器 */
#call-timer {
  position: absolute; top: 74px; left: 0; right: 0;
  z-index: 45;
  text-align: center;
  font-size: 15px; color: #8a8f98;
  font-family: Consolas, monospace;
  letter-spacing: 2px;
  display: none;
}
#screen.call-mode #call-timer { display: block; color: #a08a6e; }

/* ---------------- 路线B（cozy）覆盖层统一温馨 ----------------
   拨号盘 / 结局字幕 / 章节卡 / 总结报告原本都是深色底，与暖色主界面反复跳变。
   仅在 cozy 主题下改成米色暖调；路线A（dark）与前三幕（tech）不受影响。 */
#screen.cozy .ov-chapter,
#screen.cozy .ov-dialer,
#screen.cozy .ov-black,
#screen.cozy .report-card {
  background-color: #f7f1e7;
  background-image:
    radial-gradient(110% 80% at 50% 0%, rgba(255,157,77,.16), transparent 58%),
    linear-gradient(rgba(132,105,76,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132,105,76,.05) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
}
/* 章节过场卡 */
#screen.cozy .ov-chapter .c-act  { color: #a08a6e; }
#screen.cozy .ov-chapter .c-name { color: #4f4130; text-shadow: 0 0 18px rgba(255,157,77,.22); }
/* 通讯录 */
#screen.cozy .ov-dialer .d-head { color: #4f4130; border-bottom-color: rgba(132,105,76,.18); text-shadow: none; }
#screen.cozy .ov-dialer .d-item { color: #5a4a38; border-bottom-color: rgba(132,105,76,.10); }
/* 结局字幕 */
#screen.cozy .ov-black .line.orange { color: #c2610f; }
#screen.cozy .ov-black .line.white  { color: #4f4130; }
#screen.cozy .ov-black .line.grey   { color: #8a7358; }
#screen.cozy .ov-black .line.small  { color: #9a836a; }
#screen.cozy .ov-black .line.gold   { color: #b8860b; }
/* 总结报告卡：深色玻璃 → 暖米色纸感 */
#screen.cozy .report-card .rc-frame {
  background: linear-gradient(165deg, rgba(255,255,255,.78), rgba(255,247,237,.55));
  border-color: rgba(132,105,76,.22);
  box-shadow: 0 20px 50px rgba(117,92,62,.20), 0 0 26px rgba(255,157,77,.16), inset 0 0 20px rgba(255,255,255,.35);
}
#screen.cozy .report-card .rc-title       { color: #a08a6e; }
#screen.cozy .report-card .rc-title2      { color: #4f4130; text-shadow: 0 0 14px rgba(255,157,77,.2); }
#screen.cozy .report-card .rc-row         { color: #7a6650; border-bottom-color: rgba(132,105,76,.18); }
#screen.cozy .report-card .rc-row b       { color: #4f4130; }
#screen.cozy .report-card .rc-quote       { color: #7a6650; }
#screen.cozy .report-card .rc-quote .warm { color: #c2610f; }
#screen.cozy .report-card .rc-restart     { color: #8a6a3e; border-color: rgba(132,105,76,.32); }
#screen.cozy .report-card .rc-restart:active { background: rgba(132,105,76,.08); }
#screen.cozy .report-card .rc-temp.hot    { color: #c2610f; }
#screen.cozy .report-card .rc-temp.warm   { color: #b8860b; }
#screen.cozy .report-card .rc-temp.cool   { color: #4f7d8c; }
#screen.cozy .report-card .rc-temp.ice    { color: #5c6a7a; }

/* ---------------- 温度卡报告 ---------------- */

.report-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 30px 26px;
  overflow-y: auto;
}
.report-card .rc-frame {
  width: 100%; max-width: 320px;
  border-radius: 20px;
  background: linear-gradient(165deg, var(--panel), rgba(0,0,0,.35));
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(10px);
  padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 30px var(--glow), inset 0 0 24px rgba(0,0,0,.25);
  animation: panelIn .7s ease both;
}
.report-card .rc-title {
  text-align: center; font-size: 12px; color: var(--txt-dim);
  letter-spacing: 4px; text-indent: 4px; margin-bottom: 4px;
}
.report-card .rc-title2 {
  text-align: center; font-size: 18px; color: var(--txt);
  font-weight: 700; letter-spacing: 3px; margin-bottom: 16px;
  text-shadow: 0 0 14px var(--glow);
}
.report-card .rc-row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--txt-dim);
  padding: 7px 2px;
  border-bottom: 1px dashed var(--glass-brd);
}
.report-card .rc-row b { color: var(--txt); font-weight: 600; }
.report-card .rc-temp {
  margin-top: 16px; text-align: center;
  font-size: 16px; font-weight: 700;
  padding: 10px; border-radius: 12px;
}
.report-card .rc-temp.hot  { color: #ff9d4d; background: rgba(255, 157, 77, .10); border: 1px solid rgba(255, 157, 77, .35); box-shadow: 0 0 18px rgba(255,157,77,.2); }
.report-card .rc-temp.warm { color: #f5c451; background: rgba(245, 196, 81, .10); border: 1px solid rgba(245, 196, 81, .35); box-shadow: 0 0 18px rgba(245,196,81,.2); }
.report-card .rc-temp.cool { color: #9ab8c8; background: rgba(154, 184, 200, .08); border: 1px solid rgba(154, 184, 200, .3); box-shadow: 0 0 18px rgba(154,184,200,.16); }
.report-card .rc-temp.ice  { color: #8d99ab; background: rgba(141, 153, 171, .08); border: 1px solid rgba(141, 153, 171, .3); box-shadow: 0 0 18px rgba(141,153,171,.16); }
.report-card .rc-crush {
  margin-top: 12px; text-align: center;
  font-size: 12px; color: var(--red); line-height: 1.7;
}
.report-card .rc-quote {
  margin-top: 18px; text-align: center;
  font-size: 13.5px; line-height: 2; color: var(--txt-dim);
}
.report-card .rc-quote .warm { color: #ff9d4d; }
.report-card .rc-restart {
  margin-top: 22px;
  padding: 11px 40px;
  font-size: 13.5px; font-family: inherit;
  background: transparent; color: var(--txt-dim);
  border: 1px solid var(--glass-brd); border-radius: 22px;
  cursor: pointer;
}
.report-card .rc-restart:active { background: var(--glass); }

/* ---------------- 关系值提示（隐性，氛围演出） ---------------- */

#bond-flash {
  position: absolute; inset: 0; z-index: 55;
  pointer-events: none; opacity: 0;
}
#bond-flash.warm-f {
  background: radial-gradient(80% 60% at 50% 60%, rgba(255, 157, 77, .22), transparent 70%);
  animation: flash 1.4s ease forwards;
}
#bond-flash.cold-f {
  background: radial-gradient(80% 60% at 50% 40%, rgba(60, 72, 88, .30), transparent 70%);
  animation: flash 1.4s ease forwards;
}
@keyframes flash { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }

#bond-hint-text {
  position: absolute; bottom: 120px; left: 0; right: 0;
  z-index: 56; text-align: center;
  font-size: 12px; letter-spacing: 2px;
  opacity: 0;
  animation: hintFloat 2s ease forwards;
  pointer-events: none;
}
#bond-hint-text.warm-t { color: #d99b5f; }
#bond-hint-text.cold-t { color: #7a8088; }
@keyframes hintFloat {
  0% { opacity: 0; transform: translateY(8px); }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-6px); }
}

/* ---------------- 旁白条（手机外） ---------------- */

#narrator {
  max-width: 480px;
  min-height: 22px;
  text-align: center;
  font-size: 12.5px; color: #6f6a5e;
  letter-spacing: 1px;
  transition: color 2s ease;
}
#narrator.cold { color: #6e7a88; }

/* ---------------- 宽屏适配：直接全屏显示 ---------------- */

@media (min-width: 900px) {
  body {
    background:
      radial-gradient(90% 70% at 50% 0%, rgba(40,110,160,.20), transparent 60%),
      radial-gradient(70% 60% at 12% 100%, rgba(120,60,180,.12), transparent 60%),
      linear-gradient(180deg, #060b13 0%, #04070d 100%);
  }

  #stage {
    gap: 0;
    padding: 0;
  }

  #phone {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #screen {
    border-radius: 0;
    border: none;
  }

  #narrator {
    max-width: 560px;
    font-size: 13px;
    margin-top: 6px;
  }
}

/* ---------------- 窄屏适配 ---------------- */

@media (max-width: 430px) {
  #phone {
    width: 100vw; height: calc(100vh - 46px);
    border-radius: 0; padding: 0;
    box-shadow: none;
  }
  #screen { border-radius: 0; }
  #notch { display: none; }
  #narrator { font-size: 11px; }
}

/* ============================================================
   科技风组件覆写：tech / dark 共用，颜色由 --acc 等主题变量驱动
   （暖色语义保留：妈妈=橙、AI=青、好友=绿、表姐=紫）
   ============================================================ */

/* 状态栏 / 应用栏 */
#screen.tech #statusbar,
#screen.dark #statusbar { color: var(--txt-dim); }
#screen.tech #statusbar .sb-icons,
#screen.dark #statusbar .sb-icons { color: var(--acc); opacity: .72; }

#screen.tech #appbar,
#screen.dark #appbar {
  color: var(--txt);
  background: linear-gradient(180deg, var(--panel), rgba(0,0,0,0));
  border-bottom: 1px solid var(--glass-brd);
  backdrop-filter: blur(8px);
  letter-spacing: 1px;
  text-shadow: 0 0 12px var(--glow);
}

/* 消息气泡：暗玻璃 + 语义霓虹 */
#screen.tech .msg .name,
#screen.dark .msg .name { color: var(--txt-dim); }
#screen.tech .msg .bubble,
#screen.dark .msg .bubble {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  color: var(--txt);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
#screen.tech .msg.mom .bubble,
#screen.dark .msg.mom .bubble,
#screen.tech .msg.grandma .bubble,
#screen.dark .msg.grandma .bubble {
  background: rgba(255,157,77,.10); border-color: rgba(255,157,77,.42); color: #ffd9b0;
  box-shadow: 0 0 18px rgba(255,157,77,.14), 0 4px 18px rgba(0,0,0,.35);
}
#screen.tech .msg.friend .bubble,
#screen.dark .msg.friend .bubble {
  background: rgba(111,221,139,.10); border-color: rgba(111,221,139,.4); color: #c7f5d3;
}
#screen.tech .msg.cousin .bubble,
#screen.dark .msg.cousin .bubble {
  background: rgba(180,142,240,.10); border-color: rgba(180,142,240,.4); color: #e0d0fb;
}
#screen.tech .msg.me-ai .bubble,
#screen.dark .msg.me-ai .bubble,
#screen.tech .msg.ai .bubble,
#screen.dark .msg.ai .bubble {
  background: rgba(77,216,230,.10); border-color: rgba(77,216,230,.45); color: #bff0f6;
  box-shadow: 0 0 18px rgba(77,216,230,.16), 0 4px 18px rgba(0,0,0,.35);
}
#screen.tech .msg.me .bubble,
#screen.dark .msg.me .bubble {
  background: rgba(220,235,245,.10); border-color: rgba(220,235,245,.3); color: #eaf2f8;
}

/* 注释 / 旁白 / 系统提示 */
#screen.tech .scene-note,
#screen.dark .scene-note { color: var(--txt-dim); }
#screen.tech .narrate-note,
#screen.dark .narrate-note { color: #a9bccd; }
#screen.tech .cue-note,
#screen.dark .cue-note { color: var(--txt-dim); }
#screen.tech .sys-note,
#screen.dark .sys-note {
  color: var(--acc); background: rgba(77,216,230,.06); border: 1px dashed var(--glass-brd);
}
#screen.tech .sys-note.bad,
#screen.dark .sys-note.bad {
  color: #ff8a94; background: rgba(255,85,102,.08); border-color: rgba(255,85,102,.4);
}
#screen.tech .divider-note,
#screen.dark .divider-note { color: var(--acc); opacity: .8; text-shadow: 0 0 10px var(--glow); }

/* 系统面板：HUD 玻璃 */
#screen.tech .sys-panel,
#screen.dark .sys-panel {
  background: linear-gradient(160deg, var(--panel), rgba(0,0,0,.2));
  border: 1px solid var(--glass-brd);
  box-shadow: 0 0 26px rgba(0,0,0,.4), inset 0 0 24px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
}
#screen.tech .sys-panel .panel-head,
#screen.dark .sys-panel .panel-head {
  color: var(--acc); text-shadow: 0 0 12px var(--glow); border-bottom: 1px solid var(--glass-brd);
}
#screen.tech .sys-panel .panel-body,
#screen.dark .sys-panel .panel-body { color: #bcd6e6; }
#screen.tech .sys-panel.alert,
#screen.dark .sys-panel.alert {
  border-color: rgba(255,85,102,.5);
  background: linear-gradient(160deg, rgba(60,16,22,.72), rgba(20,6,10,.4));
  box-shadow: 0 0 30px rgba(255,60,80,.18), inset 0 0 24px rgba(0,0,0,.3);
}
#screen.tech .sys-panel.alert .panel-head,
#screen.dark .sys-panel.alert .panel-head { color: #ff6b78; text-shadow: 0 0 12px rgba(255,60,80,.5); }
#screen.tech .sys-panel.alert .panel-body,
#screen.dark .sys-panel.alert .panel-body { color: #f0b8be; }

/* 报告面板 / 朋友圈 / 回收站 */
#screen.tech .report-panel,
#screen.dark .report-panel {
  background: linear-gradient(165deg, var(--panel), rgba(0,0,0,.25));
  border: 1px solid var(--glass-brd); box-shadow: 0 10px 34px rgba(0,0,0,.45);
}
#screen.tech .report-panel h3,
#screen.dark .report-panel h3 { color: var(--txt); }
#screen.tech .report-panel .row,
#screen.dark .report-panel .row { color: var(--txt-dim); border-bottom-color: var(--glass-brd); }
#screen.tech .report-panel .row b,
#screen.dark .report-panel .row b { color: var(--acc); }
#screen.tech .report-panel .tiny-gray,
#screen.dark .report-panel .tiny-gray { color: #a7b3bf; }
#screen.tech .report-panel .big-number .cap,
#screen.dark .report-panel .big-number .cap { color: #e0c07a; }
#screen.tech .moments-card,
#screen.dark .moments-card { background: var(--glass); border: 1px solid var(--glass-brd); backdrop-filter: blur(6px); }
#screen.tech .moments-card .m-name,
#screen.dark .moments-card .m-name,
#screen.tech .moments-card .m-text,
#screen.dark .moments-card .m-text { color: var(--txt); }
#screen.tech .moments-card .m-replies,
#screen.dark .moments-card .m-replies { background: rgba(0,0,0,.25); color: #a9bccd; }
#screen.tech .recycle-list,
#screen.dark .recycle-list { background: var(--glass); border: 1px solid var(--glass-brd); }
#screen.tech .recycle-list .rc-head,
#screen.dark .recycle-list .rc-head { color: var(--txt); background: rgba(0,0,0,.25); border-bottom-color: var(--glass-brd); }
#screen.tech .recycle-list .rc-item,
#screen.dark .recycle-list .rc-item { color: var(--txt); border-bottom-color: rgba(255,255,255,.05); }
#screen.tech .recycle-list .rc-item .rc-meta,
#screen.dark .recycle-list .rc-item .rc-meta { color: var(--txt-dim); }
#screen.tech .recycle-list .rc-item .rc-logic,
#screen.dark .recycle-list .rc-item .rc-logic { color: #86d6df; border-left-color: var(--glass-brd); }

/* 选择区 */
#screen.tech #choice-bar,
#screen.dark #choice-bar {
  background: linear-gradient(to top, rgba(4,9,15,.94) 20%, rgba(4,9,15,.5) 60%, transparent 100%);
  backdrop-filter: blur(6px);
}
#screen.tech .choice-prompt,
#screen.dark .choice-prompt { color: var(--txt); text-shadow: 0 0 10px var(--glow); }
#screen.tech .choice-btn,
#screen.dark .choice-btn {
  background: var(--glass); color: var(--txt);
  border: 1px solid var(--glass-brd); box-shadow: 0 4px 18px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
}
#screen.tech .choice-btn.recommend,
#screen.dark .choice-btn.recommend {
  border-color: var(--acc);
  box-shadow: 0 0 0 1px var(--acc), 0 0 22px var(--glow), 0 4px 18px rgba(0,0,0,.4);
}
#screen.tech .choice-btn.ai-btn,
#screen.dark .choice-btn.ai-btn {
  background: linear-gradient(150deg, rgba(77,216,230,.16), rgba(77,216,230,.04));
  border-color: rgba(77,216,230,.5); color: #bff0f6;
}
#screen.tech .choice-btn .hint,
#screen.dark .choice-btn .hint { color: var(--acc); }
#screen.tech .choice-dim,
#screen.dark .choice-dim {
  color: #a2b4c4; border: 1px dashed rgba(150,180,200,.42); background: rgba(0,0,0,.18);
}
#screen.tech .choice-dim .lp-ring,
#screen.dark .choice-dim .lp-ring { background: conic-gradient(var(--acc) var(--p), rgba(255,255,255,.08) 0); }
#screen.tech .choice-dim .lp-ring::after { background: #0a1420; }
#screen.dark .choice-dim .lp-ring::after { background: #140b0d; }
#screen.tech .choice-dim .lp-tip,
#screen.dark .choice-dim .lp-tip { color: #8fa6b8; }
#screen.tech .text-input-row input,
#screen.dark .text-input-row input { background: rgba(0,0,0,.3); border: 1px solid var(--glass-brd); color: var(--txt); }
#screen.tech .text-input-row input:focus,
#screen.dark .text-input-row input:focus { border-color: var(--acc); box-shadow: 0 0 14px var(--glow); }
#screen.tech .text-input-row button,
#screen.dark .text-input-row button {
  background: linear-gradient(150deg, var(--acc), var(--acc2)); color: #04121a;
  box-shadow: 0 0 18px var(--glow); font-weight: 700;
}
#screen.tech .tap-hint,
#screen.dark .tap-hint { color: var(--acc); opacity: .85; }

/* 舒适度徐章：HUD 等宽字体金色发光 */
#screen.tech #comfort-badge,
#screen.dark #comfort-badge {
  font-family: Consolas, "Courier New", monospace;
  color: #e6c66a;
  background: linear-gradient(150deg, rgba(245,196,81,.16), rgba(245,196,81,.05));
  border: 1px solid rgba(245,196,81,.45);
  box-shadow: 0 0 18px rgba(245,196,81,.18), inset 0 0 12px rgba(245,196,81,.06);
  backdrop-filter: blur(4px);
}
#screen.tech #comfort-badge b,
#screen.dark #comfort-badge b { color: var(--gold); text-shadow: 0 0 10px rgba(245,196,81,.6); }
#screen.tech #comfort-badge .max,
#screen.dark #comfort-badge .max { color: #b99b52; }

/* 推送通知 */
#screen.tech .push-card,
#screen.dark .push-card {
  background: linear-gradient(160deg, var(--panel), rgba(0,0,0,.4));
  border: 1px solid var(--glass-brd);
  box-shadow: 0 16px 44px rgba(0,0,0,.55), 0 0 24px var(--glow);
  backdrop-filter: blur(10px);
}
#screen.tech .push-card .p-app,
#screen.dark .push-card .p-app { color: var(--acc); }
#screen.tech .push-card .p-title,
#screen.dark .push-card .p-title { color: var(--txt); }
#screen.tech .push-card .p-body,
#screen.dark .push-card .p-body { color: var(--txt-dim); }
