:root {
  --bg: #f2f6fc;
  --panel: #ffffff;
  --ink: #1e2a3a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-soft: #e7f0ff;
  --cyan: #22d3ee;
  --dark: #0b1220;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --shadow: 0 12px 30px rgba(30, 42, 58, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  background:
    radial-gradient(1200px 600px at 78% -10%, #e8f1ff 0%, rgba(232, 241, 255, 0) 60%),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans GB", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 22px 26px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; }

.logo {
  width: 40px; height: 40px; border-radius: 14px;
  background: radial-gradient(circle at 30% 25%, #1e3a5f, #0b1220);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(11, 18, 32, 0.28);
}

.logo-core {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.9);
}

.brand h1 { font-size: 21px; margin: 0; letter-spacing: 0.5px; }
.brand .sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); }

.chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.chip {
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  white-space: nowrap;
}
.chip.on { color: var(--green); border-color: #c7f3e0; background: #f0fdf8; }
.chip.warn { color: var(--amber); border-color: #fde8c4; background: #fffaf0; }

/* ---------- 布局 ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 16px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.face-card,
.panel {
  background: var(--panel);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.face-card { padding: 16px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- 屏幕脸 ---------- */
.face-wrap {
  position: relative;
  background: radial-gradient(140% 120% at 50% 0%, #121c33 0%, var(--dark) 55%);
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 880 / 500;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.55), 0 10px 26px rgba(11, 18, 32, 0.25);
}

#face { display: block; width: 100%; height: 100%; }

.face-hud {
  position: absolute; top: 14px; left: 18px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: #8fa3bf; letter-spacing: 0.5px;
}

.hud-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3b4b66;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.hud-dot.on { background: var(--cyan); box-shadow: 0 0 10px rgba(34, 211, 238, 0.9); }
.hud-dot.think { background: var(--amber); box-shadow: 0 0 10px rgba(245, 158, 11, 0.8); }

.face-hint {
  position: absolute; bottom: 12px; left: 0; right: 0;
  text-align: center; font-size: 11.5px; color: #526684; letter-spacing: 0.4px;
}

/* ---------- 控制区 ---------- */
.controls { display: flex; flex-direction: column; gap: 10px; }
.controls-row { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-family: inherit;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { box-shadow: 0 6px 16px rgba(30, 42, 58, 0.1); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.btn.primary {
  background: linear-gradient(180deg, #3b82f6, var(--blue));
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}
.btn.primary:hover { box-shadow: 0 10px 24px rgba(37, 99, 235, 0.36); }

.btn.big {
  height: 52px; min-width: 190px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 600;
}

.btn.ghost { background: #fff; }
.btn.sm { padding: 7px 12px; font-size: 12.5px; border-radius: 10px; }

.mic-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; opacity: 0.9;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}
#btnTalk.live .mic-dot {
  background: #ffd5d5;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  animation: pulse 1.1s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}

.type-row { display: flex; gap: 8px; }
.type-row input {
  flex: 1;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  background: #fbfcfe;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.type-row input:focus {
  border-color: #9cc1ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  background: #fff;
}

.hint { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* ---------- 侧栏 ---------- */
.side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.panel { padding: 14px; display: flex; flex-direction: column; min-height: 0; }

.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 8px;
}
.panel-head h2 { font-size: 14px; margin: 0; letter-spacing: 0.4px; }

.badge {
  font-size: 11px; color: var(--muted);
  background: #f4f7fc; border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 9px;
}
.badge.on { color: var(--green); background: #f0fdf8; border-color: #c7f3e0; }

.link {
  appearance: none; border: 0; background: none; padding: 0;
  font-size: 12px; color: var(--blue); cursor: pointer; font-family: inherit;
}
.link.danger { color: var(--red); font-size: 12px; margin-top: 4px; }

.chat-panel { flex: 1; min-height: 200px; }
.chat {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  padding-right: 4px; min-height: 0;
}

.bubble {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble.me {
  align-self: flex-end;
  background: var(--blue-soft);
  color: #1e3a5f;
  border-bottom-right-radius: 5px;
}
.bubble.bot {
  align-self: flex-start;
  background: #f6f8fc;
  border: 1px solid #eef2f9;
  border-bottom-left-radius: 5px;
}
.bubble.sys {
  align-self: center;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  padding: 2px;
}

.mem-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.tab {
  appearance: none; border: 1px solid var(--line); background: #fff;
  color: var(--muted); font-size: 12px; font-family: inherit;
  border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.tab.active { background: #eef4ff; border-color: #c7dbff; color: var(--blue); font-weight: 600; }

.mem-list { overflow-y: auto; max-height: 150px; display: flex; flex-direction: column; gap: 6px; }
.mem-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 10px; border-radius: 12px;
  background: #f8fafd; border: 1px solid #eef2f9;
}
.mem-item .txt { flex: 1; font-size: 12.5px; line-height: 1.45; }
.mem-item .meta { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.mem-item button {
  appearance: none; border: 0; background: none; cursor: pointer;
  color: #a3b1c6; font-size: 14px; padding: 0 2px; line-height: 1;
}
.mem-item button:hover { color: var(--red); }
.mem-empty { font-size: 12px; color: var(--muted); padding: 8px 2px; line-height: 1.6; }

.cam-panel { flex: 0 0 auto; }
.head-panel { flex: 0 0 auto; }
.head-readout { display: flex; gap: 14px; margin: 2px 0 10px; }
.head-readout > div { display: flex; align-items: baseline; gap: 5px; }
.head-readout .hl { font-size: 11px; color: var(--muted); }
.head-readout b { font-size: 15px; color: #1e3a5f; font-variant-numeric: tabular-nums; }
.head-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.head-btns .btn { padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.cam-wrap {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #0b1220; aspect-ratio: 4 / 3;
}
#video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scaleX(-1);
  display: block;
}
#camOverlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam-off {
  position: absolute; inset: 0; display: grid; place-items: center;
  gap: 10px; text-align: center;
  background: radial-gradient(circle at 50% 40%, #17233b, #0b1220);
  color: #8fa3bf; font-size: 12px;
}
.cam-off p { margin: 0 0 10px; }

.hidden { display: none !important; }

/* ---------- 设置弹窗 ---------- */
.modal {
  border: 0; border-radius: 22px; padding: 0;
  width: min(560px, 92vw);
  box-shadow: 0 30px 80px rgba(11, 18, 32, 0.35);
  color: var(--ink);
}
.modal::backdrop { background: rgba(11, 18, 32, 0.42); backdrop-filter: blur(2px); }
.modal-inner { padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.modal-inner h2 { margin: 0; font-size: 18px; }
.modal-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.modal-note code { background: #f1f5fb; padding: 1px 5px; border-radius: 5px; font-size: 11.5px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
label input {
  height: 38px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 11px; font-size: 13px; font-family: inherit; color: var(--ink);
  background: #fbfcfe; outline: none;
}
label input:focus { border-color: #9cc1ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); background: #fff; }

fieldset {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px;
  display: flex; flex-direction: column; gap: 10px; margin: 0;
}
legend { font-size: 12.5px; color: var(--ink); font-weight: 600; padding: 0 6px; }

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: rgba(11, 18, 32, 0.92); color: #fff;
  font-size: 12.5px; padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(11, 18, 32, 0.3);
  z-index: 99; max-width: 80vw; text-align: center;
}

@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: 1fr 1fr; }
  .cam-panel { grid-column: span 2; }
}

@media (max-width: 620px) {
  .app { padding: 12px; }
  .side { grid-template-columns: 1fr; }
  .cam-panel { grid-column: auto; }
  .brand .sub { display: none; }
  .btn.big { min-width: 0; flex: 1; }
}

/* ---------------- 灵魂面板 ---------------- */
.soul-panel .panel-head h2 { color: #8a6a32; }
.soul-profile { padding: 2px 0 10px; }
.soul-fam {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}
.soul-fam b { color: #a06b20; font-size: 16px; font-weight: 700; }
.soul-bar {
  height: 4px; margin: 7px 0 8px; border-radius: 4px;
  background: var(--line); overflow: hidden;
}
.soul-bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #b07a2a, #e0bd78);
  border-radius: 4px; transition: width .4s ease;
}
.soul-selects { display: flex; gap: 6px; }
.soul-selects select {
  flex: 1; background: #f8fafc; color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 5px 6px; font-size: 11px; outline: none;
}
.soul-btns { display: flex; gap: 6px; margin: 2px 0 10px; }
.soul-btns .btn { flex: 1; padding: 7px 4px; font-size: 11px; }
.soul-list { max-height: 190px; overflow: auto; }
.soul-item {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: 12px; line-height: 1.45;
}
.soul-item .txt { flex: 1; min-width: 0; }
.soul-item .kind {
  display: inline-block; margin-right: 4px; padding: 0 4px;
  font-size: 9px; color: #8a6a32; border: 1px solid #e7d6b8;
  border-radius: 3px; vertical-align: 1px;
}
.soul-item .meta { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.soul-item button {
  border: 0; background: transparent; color: #94a3b8;
  font-size: 13px; cursor: pointer; padding: 0 2px; line-height: 1.2;
}
.soul-item button:hover { color: #a06b20; }
.soul-empty { color: var(--muted); font-size: 12px; padding: 10px 0; line-height: 1.6; }

/* 声音设置 */
.form-grid select, .modal-inner select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 13px;
  outline: none;
}
#setVoiceRate { width: 100%; margin-top: 8px; accent-color: var(--blue); }
#voiceRateVal { color: var(--muted); font-size: 12px; margin-left: 4px; }
#btnVoiceTest { margin-top: 10px; }

/* 灵魂调校 */
.soul-addr { font-size: 11px; color: var(--muted); margin: 0 0 6px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); margin-top: 8px; }
.check-row input { width: auto; accent-color: var(--blue); }

/* ---------- 桌面小窗 / 仅显示屏模式 ---------- */
body.compact { background: #0b1220; }
.compact .app {
  max-width: none;
  padding: 8px;
  gap: 8px;
  min-height: 100vh;
  background: radial-gradient(900px 500px at 50% 0%, #14223a, #070b12 70%);
}
.compact .topbar {
  height: auto;
  padding: 4px 8px;
  border-bottom: 0;
  background: transparent;
}
.compact .brand .logo { width: 28px; height: 28px; border-radius: 9px; }
.compact .brand h1 { font-size: 15px; margin: 0; }
.compact .brand .sub { display: none; }
.compact .chips .chip { display: none; }
.compact .chips { gap: 4px; }
.compact .stage { display: block; }
.compact .side { display: none; }
.compact .face-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 16px;
  background: #0e1624;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.compact .face-wrap { border-radius: 12px; overflow: hidden; }
.compact .controls { padding: 8px 2px 2px; }
.compact .controls-row { gap: 6px; }
.compact .btn.primary.big { padding: 11px 10px; font-size: 13px; }
.compact .btn.ghost { padding: 9px 8px; font-size: 12px; }
.compact .type-row { margin-top: 7px; }
.compact .hint { display: none; }
.compact .face-hint { font-size: 11px; bottom: 6px; }

/* 桌面小窗宽度修正 */
body.compact { overflow-x: hidden; }
.compact .app { width: 100%; overflow: hidden; }
.compact .face-card { width: 100%; max-width: 100%; box-sizing: border-box; }
.compact .chips { position: static; }
.compact #btnSettings {
  position: fixed; top: 8px; right: 8px; z-index: 30;
  padding: 6px 10px; font-size: 12px;
}
.compact .brand { padding-right: 58px; }
.compact .controls-row { flex-wrap: wrap; }
.compact .btn.primary.big { flex: 1 1 100%; }

/* 小窗字幕：只显示它的回复文字 */
.subtitle { display: none; }
.compact .subtitle {
  display: block;
  position: absolute;
  left: 12px; right: 12px; bottom: 30px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(4, 8, 14, 0.82);
  border: 1px solid rgba(34, 211, 238, 0.22);
  color: #e8f6ff;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.compact .subtitle.show { opacity: 1; transform: translateY(0); }
.compact .face-hint { bottom: 6px; }

.listen-hint { display: none; margin: 6px 0 0; font-size: 11px; color: #9aa7b8; }
.compact .listen-hint {
  display: block; margin: 2px 2px 0; font-size: 11px; color: #8fb6d8;
}
.compact #btnListen, .compact #btnListen.ghost {
  flex: 1 1 100%;
  background: #eef4ff;
  border-color: #93b4f5;
  color: #1d4ed8;
  font-weight: 600;
}
.compact #btnListen.primary {
  background: #2563eb; color: #fff; border-color: #2563eb;
}

.modal-inline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---------- 混合模式：极简 + 信息抽屉 ---------- */
.compact-only { display: none; }
.compact .compact-only { display: inline-block; }
.info-drawer { display: none; }
.compact .info-drawer {
  display: flex; flex-direction: column;
  position: absolute; left: 8px; right: 8px; top: 214px; bottom: 8px;
  background: rgba(10, 16, 26, 0.97);
  border: 1px solid rgba(70, 92, 118, 0.55);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
  z-index: 60;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.compact .info-drawer.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.info-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid rgba(70, 92, 118, 0.35);
  color: #e7eef8; font-size: 13px;
}
.info-head button {
  border: 0; background: transparent; color: #8ea4bb;
  font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.info-scroll { overflow-y: auto; padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.info-card {
  background: #111b29; border: 1px solid rgba(70, 92, 118, 0.40);
  border-radius: 11px; padding: 9px 11px;
}
.info-card-title {
  display: flex; align-items: center; justify-content: space-between;
  color: #d8b26a; font-size: 11px; font-weight: 700; margin-bottom: 5px;
}
.info-card-title .link { font-size: 10px; color: #7fa8c9; }
.info-card div { font-size: 12px; line-height: 1.55; color: #c6d3e1; }
.info-card .big { font-size: 20px; color: #eaf6ff; font-weight: 700; }
.info-card .muted { color: #7f93a8; font-size: 10px; }
.info-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.info-quick .btn { flex: 1 1 44%; padding: 7px 4px; font-size: 11px; }
.info-reminder { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.info-reminder:last-child { border-bottom: 0; }
.info-reminder b { color: #eaf6ff; font-weight: 600; }
.compact .app { position: relative; }

/* 信息按钮：只在桌面小窗出现 */
#btnInfo { display: none; }
body.compact #btnInfo { display: inline-block !important; }
body.compact #btnInfo {
  position: fixed; top: 8px; right: 62px; z-index: 30;
  display: inline-block !important;
}

/* ==================== 灵动屏模式 ==================== */
body.screen-mode {
  background: #07111b;
  overflow: hidden;
}
.screen-mode .app {
  width: 100vw; height: 100vh; max-width: none; padding: 0;
  background: #07111b; display: block;
}
.screen-mode .topbar, .screen-mode .side, .screen-mode .controls { display: none; }
.screen-mode .stage { display: block; height: 100vh; }
.screen-mode .face-card {
  width: 100vw; height: 100vh; max-width: none; padding: 0;
  border: 0; border-radius: 0; background: #07111b; box-shadow: none;
}
.screen-mode .face-wrap {
  position: absolute; inset: 0; width: 100%; height: 100%;
  aspect-ratio: auto; border-radius: 0;
  background:
    radial-gradient(90% 80% at 50% 42%, rgba(34,211,238,0.10) 0%, rgba(34,211,238,0) 62%),
    radial-gradient(120% 100% at 50% 8%, #16283d 0%, #0b1724 55%, #060d16 100%);
  box-shadow: inset 0 0 140px rgba(34, 211, 238, 0.07);
  animation: screenFloat 8s ease-in-out infinite;
}
.screen-mode #face { width: 100%; height: 100%; }
.screen-mode .face-hud, .screen-mode .face-hint { display: none; }
.screen-mode .subtitle { display: none !important; }
.screen-ui { display: none; }
.screen-mode .screen-ui { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.screen-mode .screen-ui::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 45%, transparent 60%, rgba(0,0,0,0.38) 100%);
  opacity: .65;
}
.screen-corner {
  position: absolute; z-index: 8; pointer-events: auto;
  color: #e2f2ff;
  border: 1px solid rgba(80, 130, 165, 0.42);
  background: rgba(9, 21, 34, 0.72);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
}
.pos-tl { top: 16px; left: 16px; text-align: left; }
.pos-tr { top: 16px; right: 16px; text-align: right; }
.pos-bl { left: 16px; bottom: 16px; max-width: 44%; }
.pos-br { right: 16px; bottom: 16px; }

.screen-status {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; cursor: pointer; text-align: left;
  border-color: rgba(34, 211, 238, 0.38);
}
.screen-status:hover { background: rgba(18, 38, 56, 0.88); }
.screen-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #667;
  box-shadow: 0 0 0 4px rgba(110,130,145,.12);
}
.screen-dot.on { background: #3ee6ff; box-shadow: 0 0 0 4px rgba(62,230,255,.18), 0 0 16px rgba(62,230,255,.65); }
.screen-dot.think { background: #ffd77a; box-shadow: 0 0 0 4px rgba(255,215,122,.18), 0 0 16px rgba(255,215,122,.6); }
.screen-tl-text { display: flex; flex-direction: column; gap: 1px; }
.screen-tl-text b { font-size: 12px; font-weight: 600; color: #f1fbff; }
.screen-tl-text small { font-size: 10px; color: #91b2c6; }

.screen-weather-box { padding: 8px 13px; border-color: rgba(216,178,106,.38); text-align: left; cursor: pointer; }
.screen-time { font-size: 21px; font-weight: 700; letter-spacing: 1px; color: #f3fbff; }
.screen-date { font-size: 10px; color: #98b4c8; margin-top: 1px; letter-spacing: .4px; }
.screen-weather { font-size: 11px; color: #b9d6e8; margin-top: 3px; }
.screen-reminder-box { padding: 8px 12px; }
.screen-reminder-box small { font-size: 9px; color: #8faec2; display: block; margin-bottom: 3px; }
.screen-reminder-box div { font-size: 12px; color: #eef8ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-memory { margin-top: 4px; color: #8faec2 !important; font-size: 9px !important; }
.screen-actions { display: flex; gap: 6px; padding: 5px; }
.screen-icon {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid rgba(80,130,165,.45); background: rgba(13,28,44,.78);
  color: #c6e0f2; font-size: 14px; cursor: pointer;
}
.screen-icon:hover { color: #fff; border-color: rgba(62,230,255,.65); background: rgba(18,40,60,.9); }
.screen-subtitle {
  position: absolute; left: 10%; right: 10%; bottom: 66px;
  text-align: center; color: #eaf7ff; font-size: 14px; line-height: 1.55;
  padding: 8px 14px; border-radius: 10px;
  background: rgba(3, 8, 14, 0.72);
  opacity: 0; transform: translateY(5px); transition: .2s ease;
  z-index: 7;
}
.screen-subtitle.show { opacity: 1; transform: translateY(0); }
.screen-wave {
  position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%);
  display: flex; gap: 3px; height: 14px; align-items: end;
  opacity: 0; transition: opacity .2s; z-index: 7;
}
.screen-wave i {
  display: block; width: 3px; height: 5px; border-radius: 2px;
  background: #22d3ee; animation: wave 0.9s ease-in-out infinite;
}
.screen-wave i:nth-child(2){animation-delay:.1s}.screen-wave i:nth-child(3){animation-delay:.2s}
.screen-wave i:nth-child(4){animation-delay:.3s}.screen-wave i:nth-child(5){animation-delay:.4s}
.screen-speaking .screen-wave { opacity: 1; }
.screen-input {
  position: absolute; left: 12%; right: 12%; bottom: 52px;
  display: none; z-index: 9; gap: 6px; pointer-events: auto;
}
.screen-input.show { display: flex; }
.screen-input input {
  flex: 1; min-width: 0; background: rgba(8,16,26,.94); color: #eaf6ff;
  border: 1px solid rgba(34,211,238,.35); border-radius: 9px;
  padding: 8px 10px; font-size: 13px; outline: none;
}
.screen-input button {
  border: 0; border-radius: 9px; padding: 0 14px; background: #2563eb;
  color: #fff; font-size: 12px; cursor: pointer;
}
.screen-reply { animation: replyFlash .8s ease; }
.screen-reply .face-wrap { box-shadow: inset 0 0 80px rgba(34,211,238,.16); }
@keyframes screenFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.003); }
}
@keyframes wave { 0%,100%{height:5px;opacity:.5} 50%{height:14px;opacity:1} }
@keyframes replyFlash { 0%{filter:brightness(1)} 30%{filter:brightness(1.15)} 100%{filter:brightness(1)} }
.screen-keyboard .screen-subtitle { bottom: 100px; }
.screen-mode #face { cursor: pointer; }
.screen-status.screen-cta {
  border-color: rgba(216,178,106,.65);
  box-shadow: 0 0 0 1px rgba(216,178,106,.18), 0 0 24px rgba(216,178,106,.12);
  animation: ctaPulse 2.2s ease-in-out infinite;
}
@keyframes ctaPulse { 0%,100%{box-shadow:0 0 0 1px rgba(216,178,106,.18),0 0 18px rgba(216,178,106,.08)} 50%{box-shadow:0 0 0 2px rgba(216,178,106,.35),0 0 28px rgba(216,178,106,.20)} }
.screen-date { font-size: 10px; color: #7f97a8; margin-top: 1px; letter-spacing: .5px; }
.screen-memory { margin-top: 4px; color: #6d899b !important; font-size: 9px !important; }

/* ==================== JARVIS HUD ==================== */
.screen-mode .hud-top {
  position: absolute; top: 0; left: 0; right: 0; height: 46px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(3,8,14,.92), rgba(3,8,14,.35));
  border-bottom: 1px solid rgba(120,190,220,.18);
  z-index: 12; pointer-events: auto;
}
.screen-mode .hud-mic {
  display: flex; align-items: center; gap: 8px;
  background: rgba(6,16,26,.72); border: 1px solid rgba(80,180,220,.35);
  border-radius: 8px; padding: 5px 10px; cursor: pointer;
}
.screen-mode .hud-mic.screen-cta {
  border-color: rgba(255,215,140,.65);
  animation: ctaPulse 2.2s ease-in-out infinite;
}
.screen-mode .hud-mic-text { display: flex; flex-direction: column; text-align: left; }
.screen-mode .hud-mic-text b { color: #f2fbff; font-size: 11px; font-weight: 600; }
.screen-mode .hud-mic-text small { color: #8fb6ca; font-size: 9px; }
.screen-mode .hud-title {
  color: #e9f8ff; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  white-space: nowrap;
}
.screen-mode .hud-title span { color: #7fa8bd; font-weight: 400; letter-spacing: 1px; }
.screen-mode .hud-tabs {
  display: flex; gap: 2px; margin-left: 14px;
}
.screen-mode .hud-tabs button {
  border: 0; background: transparent; color: #7fa2b7;
  font-size: 10px; padding: 5px 10px; border-radius: 6px; cursor: pointer;
}
.screen-mode .hud-tabs button.active {
  color: #dff8ff; background: rgba(34,211,238,.12);
  box-shadow: inset 0 0 0 1px rgba(34,211,238,.22);
}
.screen-mode .hud-stats {
  margin-left: auto; display: flex; align-items: center; gap: 12px;
  color: #7e9fb3; font-size: 9px; white-space: nowrap;
}
.screen-mode .hud-stats b { color: #dff8ff; font-weight: 600; }
.screen-mode .hud-clock { color: #f4fcff; font-size: 14px; letter-spacing: 1px; }
.screen-mode .hud-stats .screen-icon { width: 26px; height: 26px; font-size: 13px; }

.screen-mode .hud-left {
  position: absolute; left: 18px; top: 64px; width: 210px;
  padding: 12px; z-index: 10; pointer-events: auto;
  border-left: 1px solid rgba(34,211,238,.18);
  background: linear-gradient(90deg, rgba(4,10,17,.55), rgba(4,10,17,0));
}
.screen-mode .hud-eyebrow {
  color: #7fd4e8; font-size: 9px; letter-spacing: 2px; margin-bottom: 9px;
}
.screen-mode .hud-row {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 5px 0; border-bottom: 1px solid rgba(120,180,210,.10);
  color: #7f9fb2; font-size: 10px;
}
.screen-mode .hud-row b { color: #e4f8ff; font-weight: 600; }
.screen-mode .hud-spark {
  display: flex; align-items: flex-end; gap: 2px; height: 26px;
  margin: 10px 0 6px; opacity: .65;
}
.screen-mode .hud-spark i {
  flex: 1; background: rgba(170,235,255,.55); border-radius: 1px;
  animation: hudSpark 2.4s ease-in-out infinite;
}
.screen-mode .hud-spark i:nth-child(3n){height:40%; animation-delay:.3s}
.screen-mode .hud-spark i:nth-child(3n+1){height:75%; animation-delay:.6s}
.screen-mode .hud-spark i:nth-child(3n+2){height:55%; animation-delay:.9s}
.screen-mode .hud-counter {
  color: #7f9fb2; font-size: 10px; margin-top: 8px;
}
.screen-mode .hud-counter b { color: #f0fbff; }
.screen-mode .hud-prompt {
  width: 100%; margin-top: 9px; padding: 8px; text-align: left;
  border: 1px solid rgba(120,190,220,.25); border-radius: 7px;
  background: rgba(8,20,32,.55); color: #b9d8e8; font-size: 10px; cursor: pointer;
}
.screen-mode .hud-prompt:hover { border-color: rgba(100,230,255,.55); color: #effdff; }
.screen-mode .hud-coords {
  color: #587b8f; font-size: 8px; line-height: 1.5; margin-top: 10px; letter-spacing: 1px;
}

.screen-mode .hud-right {
  position: absolute; right: 18px; top: 64px; width: 252px;
  display: flex; flex-direction: column; gap: 8px; z-index: 10; pointer-events: auto;
}
.screen-mode .hud-panel {
  background: rgba(5,14,24,.66); border: 1px solid rgba(110,180,210,.22);
  border-radius: 10px; padding: 9px 11px; backdrop-filter: blur(10px);
}
.screen-mode .hud-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  color: #94c9dd; font-size: 9px; letter-spacing: 1px; margin-bottom: 6px;
}
.screen-mode .hud-panel-head .link { font-size: 9px; color: #6fa8c2; }
.screen-mode .hud-temp { display: flex; align-items: baseline; justify-content: space-between; }
.screen-mode .hud-temp span { color: #f5fdff; font-size: 24px; font-weight: 700; }
.screen-mode .hud-temp small { color: #84a6b8; font-size: 9px; }
.screen-mode .hud-weather-detail { color: #b9d8e8; font-size: 10px; line-height: 1.5; margin-top: 4px; }
.screen-mode .hud-reminder { color: #e9f8ff; font-size: 11px; line-height: 1.4; }
.screen-mode .hud-muted { color: #7e9fb3; font-size: 9px; margin-top: 4px; }
.screen-mode .hud-brain { color: #d8f6ff; font-size: 11px; letter-spacing: .5px; }

.screen-mode .hud-bottom {
  position: absolute; left: 18px; right: 18px; bottom: 12px;
  display: flex; flex-direction: column; gap: 5px;
  z-index: 12; pointer-events: auto;
}
.screen-mode .hud-transcript {
  align-self: center; max-width: 74%; min-height: 22px;
  padding: 6px 14px; border-radius: 7px;
  background: rgba(4,10,17,.72); border: 1px solid rgba(110,180,210,.18);
  color: #e9f8ff; font-size: 13px; text-align: center; line-height: 1.5;
  opacity: 0; transform: translateY(4px); transition: .2s;
}
.screen-mode .hud-transcript.show { opacity: 1; transform: translateY(0); }
.screen-mode .hud-chips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.screen-mode .hud-chips button {
  background: rgba(5,14,24,.72); border: 1px solid rgba(110,180,210,.22);
  color: #9fc4d8; border-radius: 999px; padding: 5px 11px;
  font-size: 9px; cursor: pointer;
}
.screen-mode .hud-chips button:hover { color: #eafdff; border-color: rgba(34,211,238,.5); }
.screen-mode .hud-input {
  display: flex; align-items: center; gap: 6px;
  max-width: 620px; width: 100%; margin: 2px auto 0;
}
.screen-mode .hud-input .screen-icon { width: 30px; height: 30px; flex: 0 0 30px; }
.screen-mode .hud-input input {
  flex: 1; min-width: 0; height: 32px; border-radius: 8px;
  border: 1px solid rgba(110,180,210,.25); background: rgba(6,16,27,.75);
  color: #eafaff; padding: 0 11px; font-size: 11px; outline: none;
}
.screen-mode .hud-input input:focus { border-color: rgba(34,211,238,.6); }
.screen-mode .hud-input button#screenSendBtn {
  height: 30px; border: 0; border-radius: 8px; padding: 0 14px;
  background: rgba(34,211,238,.18); color: #dffbff; font-size: 10px; cursor: pointer;
}
.screen-mode .hud-status {
  text-align: center; color: #52788d; font-size: 8px; letter-spacing: 1.5px;
}
.screen-mode .hud-status b { color: #7fd4e8; font-weight: 500; }
.screen-mode .screen-speaking .hud-transcript { border-color: rgba(34,211,238,.35); }
@keyframes hudSpark { 0%,100%{opacity:.35} 50%{opacity:.9} }

/* ==================== HUD 色彩增强 ==================== */
.screen-mode .hud-top {
  background:
    linear-gradient(90deg, rgba(34,211,238,.10), rgba(70,140,255,.06) 45%, rgba(255,170,90,.06) 100%),
    linear-gradient(180deg, rgba(3,8,14,.94), rgba(3,8,14,.35));
  border-bottom-color: rgba(80,220,255,.32);
}
.screen-mode .hud-title {
  background: linear-gradient(90deg, #7ff4ff 0%, #b59bff 48%, #ffcf8a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.screen-mode .hud-title span { color: #8a9fce; }
.screen-mode .hud-tabs button.active {
  color: #eaffff;
  background: linear-gradient(90deg, rgba(34,211,238,.20), rgba(140,100,255,.18));
  box-shadow: inset 0 0 0 1px rgba(80,220,255,.40), 0 0 16px rgba(80,220,255,.10);
}
.screen-mode .hud-stats b { color: #9ff4ff; }
.screen-mode .hud-clock {
  background: linear-gradient(90deg, #8ff6ff, #b7a4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.screen-mode .hud-left {
  border-left-color: rgba(80,235,255,.45);
  background:
    linear-gradient(90deg, rgba(20,70,90,.35), rgba(4,10,17,0) 82%),
    linear-gradient(180deg, rgba(4,10,17,.55), rgba(4,10,17,.10));
}
.screen-mode .hud-eyebrow {
  color: #ffd28a; text-shadow: 0 0 14px rgba(255,190,90,.30);
}
.screen-mode .hud-row:nth-of-type(2) b { color: #7ff4ff; }
.screen-mode .hud-row:nth-of-type(3) b { color: #ffd28a; }
.screen-mode .hud-row:nth-of-type(4) b { color: #c3a8ff; }
.screen-mode .hud-spark i {
  background: linear-gradient(180deg, #7ff4ff, #8d7bff);
  box-shadow: 0 0 8px rgba(80,220,255,.35);
}
.screen-mode .hud-counter b { color: #ffd28a; }
.screen-mode .hud-prompt {
  border-color: rgba(80,220,255,.32);
  background: linear-gradient(90deg, rgba(20,75,95,.40), rgba(30,25,70,.30));
}
.screen-mode .hud-prompt:hover {
  border-color: rgba(120,240,255,.7);
  box-shadow: 0 0 18px rgba(80,220,255,.12);
}
.screen-mode .hud-coords { color: #5d8fa8; }

.screen-mode .hud-panel:nth-child(1) {
  border-color: rgba(255,190,90,.30);
  background: linear-gradient(145deg, rgba(45,30,12,.38), rgba(6,14,24,.70));
}
.screen-mode .hud-panel:nth-child(2) {
  border-color: rgba(80,220,255,.28);
}
.screen-mode .hud-panel:nth-child(3) {
  border-color: rgba(110,170,255,.32);
  background: linear-gradient(145deg, rgba(35,22,75,.32), rgba(6,14,24,.70));
}
.screen-mode .hud-panel:nth-child(1) .hud-panel-head { color: #ffd28a; }
.screen-mode .hud-panel:nth-child(2) .hud-panel-head { color: #7ff4ff; }
.screen-mode .hud-panel:nth-child(3) .hud-panel-head { color: #c3a8ff; }
.screen-mode .hud-temp span {
  background: linear-gradient(180deg, #fff6dc, #ffc46b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 22px rgba(255,185,80,.20);
}
.screen-mode .hud-weather-detail { color: #d7c4a4; }
.screen-mode .hud-reminder { color: #c9f8ff; }
.screen-mode .hud-brain {
  color: #b9d7ff; text-shadow: 0 0 14px rgba(150,110,255,.28);
}
.screen-mode .hud-muted { color: #8ca6bd; }

.screen-mode .hud-chips button:nth-child(1) { border-color: rgba(80,220,255,.30); color: #a8eaff; }
.screen-mode .hud-chips button:nth-child(2) { border-color: rgba(255,190,90,.30); color: #f1d39a; }
.screen-mode .hud-chips button:nth-child(3) { border-color: rgba(110,170,255,.32); color: #a9c9ff; }
.screen-mode .hud-chips button:nth-child(4) { border-color: rgba(90,255,210,.28); color: #9ff4dc; }
.screen-mode .hud-input input:focus { box-shadow: 0 0 18px rgba(80,220,255,.10); }
.screen-mode .hud-input button#screenSendBtn {
  background: linear-gradient(90deg, rgba(34,211,238,.30), rgba(70,140,255,.30));
  border: 1px solid rgba(120,230,255,.30);
}
.screen-mode .hud-status b { color: #8df5ff; }
.screen-mode .hud-transcript { border-color: rgba(100,220,255,.24); }
.screen-mode #face { filter: saturate(1.22) contrast(1.03) brightness(1.03); }
.screen-mode .hud-top { box-shadow: 0 1px 26px rgba(80,220,255,.12); }
.screen-mode .hud-left { box-shadow: inset 2px 0 26px rgba(34,211,238,.07); }
.screen-mode .hud-panel:nth-child(1) { box-shadow: 0 0 26px rgba(255,180,80,.06); }
.screen-mode .hud-panel:nth-child(2) { box-shadow: 0 0 24px rgba(80,220,255,.06); }
.screen-mode .hud-panel:nth-child(3) { box-shadow: 0 0 24px rgba(150,110,255,.08); }
.screen-mode .hud-input input { box-shadow: inset 0 0 24px rgba(70,130,255,.06); }

/* ==================== 说话时整屏呼吸 ==================== */
.screen-mode .screen-ui::before {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(48% 42% at 50% 45%, rgba(80,225,255,.16), transparent 68%),
    radial-gradient(70% 60% at 50% 100%, rgba(120,80,255,.10), transparent 72%);
  opacity: 0;
  mix-blend-mode: screen;
}
body.screen-speaking .screen-ui::before {
  animation: uiBreathe 2.4s ease-in-out infinite;
}
body.screen-speaking .hud-top {
  animation: hudTopBreathe 2.4s ease-in-out infinite;
}
body.screen-speaking .hud-left {
  animation: hudLeftBreathe 2.4s .12s ease-in-out infinite;
}
body.screen-speaking .hud-right .hud-panel:nth-child(1) {
  animation: panelBreathe 2.4s .22s ease-in-out infinite;
}
body.screen-speaking .hud-right .hud-panel:nth-child(2) {
  animation: panelBreathe 2.4s .34s ease-in-out infinite;
}
body.screen-speaking .hud-right .hud-panel:nth-child(3) {
  animation: panelBreathe 2.4s .46s ease-in-out infinite;
}
body.screen-speaking .hud-bottom {
  animation: hudBottomBreathe 2.4s .16s ease-in-out infinite;
}
body.screen-speaking .hud-spark i {
  animation-duration: .55s !important;
}
body.screen-speaking .hud-mic {
  border-color: rgba(120,245,255,.75);
  box-shadow: 0 0 20px rgba(80,225,255,.22);
}
body.screen-speaking .hud-transcript {
  border-color: rgba(120,240,255,.48);
  box-shadow: 0 0 30px rgba(70,210,255,.10);
}
body.screen-speaking .hud-title {
  filter: brightness(1.25) saturate(1.25);
}
@keyframes uiBreathe {
  0%, 100% { opacity: .18; }
  50% { opacity: .72; }
}
@keyframes hudTopBreathe {
  0%, 100% { border-bottom-color: rgba(80,220,255,.28); box-shadow: 0 1px 22px rgba(80,220,255,.08); }
  50% { border-bottom-color: rgba(120,245,255,.62); box-shadow: 0 1px 34px rgba(80,230,255,.22); }
}
@keyframes hudLeftBreathe {
  0%, 100% { border-left-color: rgba(80,235,255,.36); filter: brightness(1); }
  50% { border-left-color: rgba(120,245,255,.80); filter: brightness(1.18); }
}
@keyframes panelBreathe {
  0%, 100% { border-color: rgba(120,190,220,.22); filter: brightness(1); }
  50% { border-color: rgba(120,235,255,.55); filter: brightness(1.20); box-shadow: 0 0 28px rgba(70,210,255,.10); }
}
@keyframes hudBottomBreathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

/* ==================== 霓虹赛博配色 ==================== */
.screen-mode {
  --cy: #00f0ff;
  --mg: #ffb020;
  --lm: #7cf5c8;
  --vi: #3f7dff;
  --or: #ff8a2a;
}
.screen-mode #face { filter: saturate(1.32) contrast(1.06) brightness(1.02); }
.screen-mode .hud-top {
  background:
    linear-gradient(90deg, rgba(0,240,255,.14), rgba(255,176,32,.09) 46%, rgba(100,245,200,.06) 100%),
    linear-gradient(180deg, rgba(2,6,14,.95), rgba(2,6,14,.36));
  border-bottom-color: rgba(0,240,255,.50);
  box-shadow: 0 1px 30px rgba(0,240,255,.18), 0 1px 0 rgba(255,176,32,.22);
}
.screen-mode .hud-title {
  background: linear-gradient(90deg, #00f0ff 0%, #ffb020 52%, #7cf5c8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 180% 100%;
  animation: titleShift 7s linear infinite;
  filter: drop-shadow(0 0 10px rgba(0,240,255,.22));
}
@keyframes titleShift { 0%{background-position:0% 50%} 100%{background-position:180% 50%} }
.screen-mode .hud-title span { color: #8f86c9; }
.screen-mode .hud-tabs button.active {
  color: #eaffff;
  background: linear-gradient(100deg, rgba(0,240,255,.22), rgba(255,176,32,.22));
  box-shadow: inset 0 0 0 1px rgba(0,240,255,.55), 0 0 18px rgba(255,176,32,.16);
}
.screen-mode .hud-stats b { color: #8ffbff; text-shadow: 0 0 10px rgba(0,240,255,.25); }
.screen-mode .hud-stats span:nth-child(2) b { color: #7cf5c8; }
.screen-mode .hud-stats span:nth-child(3) b { color: #ffc45c; }
.screen-mode .hud-clock {
  background: linear-gradient(90deg, #00f0ff, #ffb020);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 8px rgba(255,176,32,.25));
}
.screen-mode .hud-left {
  border-left-color: rgba(0,240,255,.62);
  background:
    linear-gradient(90deg, rgba(0,120,150,.28), rgba(4,10,17,0) 84%),
    linear-gradient(180deg, rgba(4,10,17,.62), rgba(4,10,17,.12));
  box-shadow: inset 2px 0 26px rgba(0,240,255,.10);
}
.screen-mode .hud-eyebrow {
  color: #7cf5c8; text-shadow: 0 0 14px rgba(100,245,200,.40);
}
.screen-mode .hud-row:nth-of-type(1) b { color: #7cf5c8; text-shadow: 0 0 10px rgba(100,245,200,.30); }
.screen-mode .hud-row:nth-of-type(2) b { color: #00f0ff; text-shadow: 0 0 10px rgba(0,240,255,.30); }
.screen-mode .hud-row:nth-of-type(3) b { color: #ffc45c; text-shadow: 0 0 10px rgba(255,176,32,.28); }
.screen-mode .hud-row:nth-of-type(4) b { color: #86b4ff; }
.screen-mode .hud-spark i {
  background: linear-gradient(180deg, #00f0ff, #ffb020);
  box-shadow: 0 0 10px rgba(0,240,255,.45);
}
.screen-mode .hud-counter b { color: #ffc45c; text-shadow: 0 0 12px rgba(255,176,32,.30); }
.screen-mode .hud-prompt {
  border-color: rgba(255,176,32,.45);
  background: linear-gradient(90deg, rgba(0,85,110,.45), rgba(8,40,60,.40));
  color: #dffaff;
}
.screen-mode .hud-prompt:hover {
  border-color: rgba(0,240,255,.85);
  box-shadow: 0 0 22px rgba(255,176,32,.16);
}
.screen-mode .hud-coords { color: #4f8fa8; }
.screen-mode .hud-panel:nth-child(1) {
  border-color: rgba(255,176,32,.42);
  background: linear-gradient(150deg, rgba(70,10,58,.42), rgba(4,14,24,.72));
  box-shadow: 0 0 30px rgba(255,176,32,.08);
}
.screen-mode .hud-panel:nth-child(2) {
  border-color: rgba(0,240,255,.40);
  box-shadow: 0 0 26px rgba(0,240,255,.07);
}
.screen-mode .hud-panel:nth-child(3) {
  border-color: rgba(95,135,255,.50);
  background: linear-gradient(150deg, rgba(8,28,52,.55), rgba(4,14,24,.72));
  box-shadow: 0 0 28px rgba(95,135,255,.12);
}
.screen-mode .hud-panel-head { letter-spacing: 1.5px; }
.screen-mode .hud-panel:nth-child(1) .hud-panel-head { color: #ffc45c; text-shadow: 0 0 12px rgba(255,176,32,.30); }
.screen-mode .hud-panel:nth-child(2) .hud-panel-head { color: #8ffbff; text-shadow: 0 0 12px rgba(0,240,255,.26); }
.screen-mode .hud-panel:nth-child(3) .hud-panel-head { color: #86b4ff; text-shadow: 0 0 12px rgba(95,135,255,.30); }
.screen-mode .hud-temp span {
  background: linear-gradient(180deg, #fff3d0, #ff8a2a 55%, #ffb020);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(255,60,180,.25));
}
.screen-mode .hud-weather-detail { color: #ffe1b0; }
.screen-mode .hud-reminder { color: #b8fbff; text-shadow: 0 0 10px rgba(0,240,255,.14); }
.screen-mode .hud-brain {
  color: #b9d7ff; text-shadow: 0 0 16px rgba(95,135,255,.45);
}
.screen-mode .hud-chips button:nth-child(1) { border-color: rgba(0,240,255,.45); color: #9ffbff; }
.screen-mode .hud-chips button:nth-child(2) { border-color: rgba(255,176,32,.45); color: #ffd28a; }
.screen-mode .hud-chips button:nth-child(3) { border-color: rgba(100,245,200,.42); color: #d4ff8a; }
.screen-mode .hud-chips button:nth-child(4) { border-color: rgba(95,135,255,.50); color: #a9c9ff; }
.screen-mode .hud-chips button:hover { background: rgba(255,176,32,.10); }
.screen-mode .hud-input input {
  border-color: rgba(0,240,255,.34);
  box-shadow: inset 0 0 26px rgba(0,120,220,.08);
}
.screen-mode .hud-input input:focus {
  border-color: rgba(255,176,32,.72);
  box-shadow: 0 0 20px rgba(255,176,32,.14);
}
.screen-mode .hud-input button#screenSendBtn {
  border: 1px solid rgba(255,176,32,.50);
  background: linear-gradient(90deg, rgba(0,240,255,.28), rgba(255,176,32,.34));
  color: #f4ffff;
  box-shadow: 0 0 18px rgba(255,176,32,.10);
}
.screen-mode .hud-status b { color: #8ffbff; text-shadow: 0 0 10px rgba(0,240,255,.35); }
.screen-mode .hud-transcript {
  border-color: rgba(255,176,32,.32);
  box-shadow: 0 0 26px rgba(255,176,32,.08), inset 0 0 24px rgba(0,240,255,.04);
}
.screen-mode .hud-mic { border-color: rgba(0,240,255,.55); }
.screen-mode .screen-ui::after {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, rgba(0,0,0,0) 1px 4px),
    radial-gradient(120% 120% at 50% 45%, transparent 58%, rgba(0,0,0,.50) 100%);
  opacity: .55;
}

/* ==================== 冷钢战术 HUD ==================== */
.screen-mode .hud-title {
  background: linear-gradient(90deg, #eafcff 0%, #9feeff 34%, #00e5ff 62%, #ffb020 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: titleShift 9s linear infinite;
  filter: drop-shadow(0 0 10px rgba(0,229,255,.20));
}
.screen-mode .hud-title span { color: #8fa6b8; }
.screen-mode .hud-panel {
  position: relative;
  border-radius: 3px;
  background:
    linear-gradient(rgba(0,229,255,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.032) 1px, transparent 1px),
    linear-gradient(150deg, rgba(10,20,30,.88), rgba(4,10,16,.78));
  background-size: 18px 18px, 18px 18px, auto;
}
.screen-mode .hud-panel::before,
.screen-mode .hud-panel::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  pointer-events: none;
}
.screen-mode .hud-panel::before {
  left: -1px; top: -1px;
  border-left: 1px solid var(--cy, #00e5ff);
  border-top: 1px solid var(--cy, #00e5ff);
}
.screen-mode .hud-panel::after {
  right: -1px; bottom: -1px;
  border-right: 1px solid #ffb020;
  border-bottom: 1px solid #ffb020;
}
.screen-mode .hud-left { border-left: 1px solid rgba(0,229,255,.55); }
.screen-mode .hud-left::before {
  content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 64px;
  background: linear-gradient(180deg, #00e5ff, transparent);
}
.screen-mode .hud-mic { border-radius: 3px; }
.screen-mode .hud-tabs button { border-radius: 2px; letter-spacing: 1px; }
.screen-mode .hud-tabs button.active {
  background: linear-gradient(100deg, rgba(0,229,255,.20), rgba(255,176,32,.12));
  box-shadow: inset 0 0 0 1px rgba(0,229,255,.55), 0 0 18px rgba(0,229,255,.12);
}
.screen-mode .hud-prompt { border-radius: 3px; }
.screen-mode .hud-chips button { border-radius: 3px; }
.screen-mode .hud-input input { border-radius: 3px; }
.screen-mode .hud-input button#screenSendBtn { border-radius: 3px; }
.screen-mode .hud-transcript { border-radius: 3px; }
.screen-mode .hud-panel:nth-child(1) { box-shadow: 0 0 25px rgba(255,176,32,.07); }
.screen-mode .hud-panel:nth-child(2) { box-shadow: 0 0 22px rgba(0,229,255,.07); }
.screen-mode .hud-panel:nth-child(3) { box-shadow: 0 0 22px rgba(63,125,255,.09); }

/* ==================== 更暗的战术背景 ==================== */
.screen-mode { background: #03070c; }
.screen-mode .app { background: #03070c; }
.screen-mode .face-card { background: #03070c; }
.screen-mode .face-wrap {
  background:
    radial-gradient(90% 80% at 50% 42%, rgba(0, 180, 220, 0.06) 0%, rgba(0, 180, 220, 0) 60%),
    radial-gradient(120% 100% at 50% 8%, #0d1b2b 0%, #07111c 55%, #03070c 100%);
}
.screen-mode .hud-top {
  background:
    linear-gradient(90deg, rgba(0, 180, 220, .08), rgba(255, 145, 40, .04) 50%, rgba(0, 0, 0, .10) 100%),
    linear-gradient(180deg, rgba(1, 4, 8, .97), rgba(1, 4, 8, .45));
}
.screen-mode .hud-left {
  background:
    linear-gradient(90deg, rgba(0, 55, 75, .20), rgba(2, 6, 10, 0) 84%),
    linear-gradient(180deg, rgba(2, 6, 10, .72), rgba(2, 6, 10, .18));
}
.screen-mode .hud-panel {
  background:
    linear-gradient(rgba(0, 200, 230, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 230, .022) 1px, transparent 1px),
    linear-gradient(150deg, rgba(4, 12, 20, .94), rgba(1, 5, 9, .90));
  background-size: 18px 18px, 18px 18px, auto;
}
.screen-mode .hud-panel:nth-child(1) {
  background:
    linear-gradient(rgba(255, 160, 30, .020) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 160, 30, .020) 1px, transparent 1px),
    linear-gradient(150deg, rgba(24, 12, 4, .55), rgba(2, 6, 10, .92));
  background-size: 18px 18px, 18px 18px, auto;
}
.screen-mode .hud-panel:nth-child(3) {
  background:
    linear-gradient(rgba(60, 130, 255, .020) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 130, 255, .020) 1px, transparent 1px),
    linear-gradient(150deg, rgba(4, 14, 30, .60), rgba(1, 5, 10, .92));
  background-size: 18px 18px, 18px 18px, auto;
}
.screen-mode .hud-transcript { background: rgba(2, 6, 10, .82); }
.screen-mode .hud-chips button { background: rgba(2, 7, 11, .82); }
.screen-mode .hud-input input { background: rgba(2, 7, 11, .86); }
.screen-mode .screen-ui::after {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.20) 0 1px, rgba(0,0,0,0) 1px 4px),
    radial-gradient(110% 100% at 50% 45%, transparent 50%, rgba(0,0,0,.66) 100%);
  opacity: .7;
}
