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

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: transparent;
  color: #e0e0e0;
  overflow: hidden;
  height: 100vh;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ================================================================
   顶部状态栏
   ================================================================ */
#top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  background: transparent;
  border-bottom: 1px solid rgba(64,128,255,0.15);
  flex-shrink: 0;
  z-index: 100;
}

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

#logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(96,165,250,0.2), rgba(167,139,250,0.2));
  border-radius: 8px;
  color: #60a5fa;
}

#top-bar h1 {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.top-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.schedule-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  background: rgba(30,58,95,0.5);
  border: 1px solid rgba(96,165,250,0.2);
  border-radius: 20px;
  font-size: 13px;
  color: #93c5fd;
}

.schedule-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px #4CAF50; }
  50% { opacity: 0.5; box-shadow: 0 0 8px #4CAF50; }
}

.schedule-dot.broadcasting { background: #f97316; }
.schedule-dot.alerting { background: #dc2626; animation: pulse-dot 0.5s infinite; }

.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ====== P0: 全屏按钮 + 音量控制 ====== */
.btn-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30,58,95,0.5);
  border: 1px solid rgba(96,165,250,0.2);
  border-radius: 8px;
  color: #93c5fd;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-icon:hover {
  background: rgba(40,70,115,0.8);
  border-color: rgba(96,165,250,0.4);
  color: #fff;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  background: rgba(30,58,95,0.5);
  border: 1px solid rgba(96,165,250,0.2);
  border-radius: 8px;
}

.volume-slider {
  width: 60px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(96,165,250,0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #60a5fa;
  border-radius: 50%;
  cursor: pointer;
}
.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #60a5fa;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.voice-selector {
  display: flex;
  align-items: center;
}

.voice-selector select {
  width: 110px;
  height: 32px;
  padding: 0 8px;
  background: rgba(30,58,95,0.5);
  border: 1px solid rgba(96,165,250,0.2);
  border-radius: 8px;
  color: #93c5fd;
  font-size: 12px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2360a5fa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 22px;
}

.voice-selector select:hover {
  border-color: rgba(96,165,250,0.4);
  color: #fff;
}

.voice-selector select:focus {
  border-color: #60a5fa;
  color: #fff;
}

.voice-selector select option {
  background: #1a2d47;
  color: #e0e7ff;
}

.clock {
  font-size: 22px;
  font-weight: 700;
  color: #60a5fa;
  font-family: "Consolas", monospace;
  letter-spacing: 1px;
}

.date-display {
  font-size: 12px;
  color: #6b7280;
}

#config-status { display: flex; gap: 6px; }

.status-dot {
  width: 36px;
  height: 22px;
  border-radius: 4px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.status-dot.unknown { background: #374151; color: #9ca3af; }
.status-dot.ok { background: #065f46; color: #6ee7b7; }
.status-dot.off { background: #7f1d1d; color: #fca5a5; }

/* ================================================================
   主内容区（三栏布局）
   ================================================================ */
#main-area {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* ====== 左侧气象数据栏 ====== */
#weather-sidebar {
  width: 260px;
  background: transparent;
  border-right: 1px solid rgba(64,128,255,0.1);
  overflow-y: auto;
  padding: 12px;
  flex-shrink: 0;
}

#weather-sidebar::-webkit-scrollbar { width: 4px; }
#weather-sidebar::-webkit-scrollbar-thumb { background: rgba(96,165,250,0.3); border-radius: 2px; }

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(64,128,255,0.1);
}

.update-tag {
  margin-left: auto;
  font-size: 10px;
  color: #6b7280;
  font-weight: 400;
}

.weather-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: rgba(30,42,66,0.6);
  border: 1px solid rgba(64,128,255,0.08);
  border-radius: 8px;
  transition: all 0.3s;
}

.weather-card:hover {
  background: rgba(40,55,85,0.8);
  border-color: rgba(96,165,250,0.2);
}

.weather-card.warning {
  background: rgba(127,29,29,0.4);
  border-color: rgba(220,38,38,0.4);
  animation: card-warn 1.5s infinite;
}

@keyframes card-warn {
  0%, 100% { border-color: rgba(220,38,38,0.4); }
  50% { border-color: rgba(220,38,38,0.8); }
}

.card-icon {
  font-size: 22px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(64,128,255,0.1);
  border-radius: 8px;
  flex-shrink: 0;
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 2px;
}

.card-value {
  font-size: 20px;
  font-weight: 700;
  color: #e0e0e0;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.card-value .unit {
  font-size: 11px;
  color: #6b7280;
  font-weight: 400;
}

.card-sub {
  font-size: 10px;
  color: #6b7280;
  margin-top: 1px;
}

.weather-card.warning .card-value { color: #fca5a5; }

/* 异常预警提示 */
#weather-warnings {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(127,29,29,0.3);
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: 8px;
}

.warning-title {
  font-size: 12px;
  color: #fca5a5;
  font-weight: 600;
  margin-bottom: 4px;
}

#warning-list {
  font-size: 11px;
  color: #fca5a5;
  line-height: 1.8;
}

/* 播报时间表 */
#schedule-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  transition: background 0.2s;
}

.schedule-item .sched-time {
  color: #60a5fa;
  font-weight: 600;
  font-family: monospace;
  width: 42px;
  flex-shrink: 0;
}

.schedule-item .sched-title {
  color: #9ca3af;
  flex: 1;
}

.schedule-item.next {
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.2);
}

.schedule-item.next .sched-title { color: #93c5fd; }

.schedule-item .sched-badge {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(76,175,80,0.2);
  color: #6ee7b7;
}

/* ====== 中央3D区域 ====== */
#scene-panel {
  flex: 1;
  position: relative;
  background: transparent;
  overflow: hidden;
}

#canvas-container {
  width: 100%;
  height: 100%;
}

#canvas-container canvas {
  display: block;
}

#scene-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.badge.idle { background: rgba(100,100,100,0.6); color: #ccc; }
.badge.listening { background: rgba(255,152,0,0.8); color: #fff; }
.badge.thinking { background: rgba(33,150,243,0.8); color: #fff; }
.badge.speaking { background: rgba(76,175,80,0.8); color: #fff; }
.badge.alert { background: rgba(220,38,38,0.9); color: #fff; animation: pulse-badge 0.8s infinite; }

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
}

#model-tip {
  background: rgba(255,193,7,0.85);
  color: #333;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  max-width: 320px;
  line-height: 1.6;
}

/* 加载遮罩 */
#loading-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(13,27,42,0.9);
  z-index: 10;
  transition: opacity 0.4s;
}
#loading-overlay.hidden { opacity: 0; pointer-events: none; }

.loading-spinner {
  width: 48px; height: 48px;
  border: 4px solid rgba(96,165,250,0.2);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#loading-text {
  font-size: 14px;
  color: #60a5fa;
}

#loading-progress {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
#loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  border-radius: 2px;
  transition: width 0.3s;
}

/* 播报状态浮层 */
#broadcast-overlay {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(96,165,250,0.3);
  border-radius: 12px;
  max-width: 80%;
  z-index: 5;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.broadcast-icon {
  font-size: 24px;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.broadcast-text {
  font-size: 14px;
  color: #93c5fd;
  line-height: 1.5;
  max-height: 60px;
  overflow: hidden;
}

/* ====== 右侧控制面板 ====== */
#control-panel {
  width: 360px;
  display: flex;
  flex-direction: column;
  background: transparent;
  border-left: 1px solid rgba(64,128,255,0.1);
  flex-shrink: 0;
}

/* 通用Section */
.section {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(64,128,255,0.08);
}

.section-title {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 摄像头 */
#camera-wrapper {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

#camera-video {
  width: 100%;
  display: block;
  transform: scaleX(-1);
}

#camera-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
}

#age-result {
  text-align: center;
  padding: 6px;
  font-size: 12px;
  color: #60a5fa;
  background: rgba(30,58,95,0.5);
  border-radius: 0 0 8px 8px;
}

/* 聊天 */
#chat-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}

#chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

#chat-log::-webkit-scrollbar { width: 4px; }
#chat-log::-webkit-scrollbar-thumb { background: rgba(96,165,250,0.3); border-radius: 2px; }

.msg {
  margin-bottom: 8px;
  max-width: 90%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg.user {
  margin-left: auto;
  background: #2563eb;
  color: #fff;
}

.msg.bot {
  margin-right: auto;
  background: #1e3a5f;
  color: #e0e0e0;
}

.msg.alert {
  margin-right: auto;
  background: #7f1d1d;
  color: #fca5a5;
  border: 1px solid #ef4444;
}

.msg.broadcast {
  margin-right: auto;
  background: rgba(96,165,250,0.15);
  color: #93c5fd;
  border: 1px solid rgba(96,165,250,0.2);
}

.msg.system {
  margin: 4px auto;
  background: rgba(16,185,129,0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16,185,129,0.25);
  font-size: 12px;
  text-align: center;
  max-width: 90%;
}

.msg .role {
  font-size: 10px;
  color: #6b7280;
  margin-bottom: 2px;
}

/* 预警 */
#alert-section { padding: 8px 16px; }

.btn-alert {
  width: 100%;
  padding: 8px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-alert:hover { background: #b91c1c; }

#alert-display {
  margin-top: 8px;
  padding: 10px;
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.4);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}

#alert-display .alert-level {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  margin-right: 6px;
}

/* 输入区域 */
#input-section {
  display: flex;
  gap: 8px;
  padding: 10px 16px 14px;
  background: transparent;
  border-top: 1px solid rgba(64,128,255,0.08);
}

#text-input {
  flex: 1;
  padding: 10px 14px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 13px;
  outline: none;
  transition: border 0.2s;
}

#text-input:focus { border-color: #3b82f6; }

.btn-send {
  padding: 0 16px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-send:hover { background: #1d4ed8; }

.btn-mic {
  width: 42px;
  height: 42px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 50%;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-mic:hover { background: #374151; color: #fff; }

.btn-mic.recording {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(220,38,38,0); }
}

/* ====== 语音对话模式（长亮）====== */
.btn-mic {
  position: relative;
}

.btn-mic.active {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 0 12px rgba(16,185,129,0.55);
}

.btn-mic.active.recording {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: #dc2626;
  box-shadow: 0 0 14px rgba(220,38,38,0.6);
}

/* 脉冲环（对话模式常驻） */
.mic-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-mic.active .mic-pulse {
  opacity: 1;
  border: 2px solid rgba(16,185,129,0.6);
  animation: micPulseRing 1.6s ease-out infinite;
}

.btn-mic.active.recording .mic-pulse {
  border-color: rgba(220,38,38,0.7);
  animation-duration: 1s;
}

@keyframes micPulseRing {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ====== 对话模式下的输入区域 ====== */
#input-section.conversation-mode {
  background: transparent;
  border-top-color: rgba(16,185,129,0.35);
}

#input-section.conversation-mode #text-input {
  border-color: rgba(16,185,129,0.5);
  background: rgba(16,185,129,0.06);
}

#input-section.conversation-mode #text-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}

#input-section.listening #text-input::placeholder {
  color: #10b981;
  opacity: 0.85;
}

.btn-small {
  padding: 2px 10px;
  background: #374151;
  color: #d1d5db;
  border: none;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.btn-small:hover { background: #4b5563; }
.btn-small.active { background: #2563eb; color: #fff; }

/* ====== 调试面板 ====== */
#debug-panel {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 11px;
  color: #aaa;
  max-width: 340px;
  line-height: 1.8;
  font-family: monospace;
}
#debug-panel > div { white-space: pre-wrap; word-break: break-all; }
#debug-mouth-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0;
}
#debug-mouth-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4CAF50, #FF9800, #f44336);
  border-radius: 3px;
  transition: width 0.05s;
}
#test-mouth-btn {
  margin-top: 4px;
  background: #2563eb;
  color: #fff;
}

/* 嘴巴位置调整控件 */
#mouth-controls {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mouth-ctrl-title {
  font-size: 11px;
  color: #60a5fa;
  margin-bottom: 6px;
  font-weight: 600;
}
.mouth-ctrl-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.mouth-ctrl-row label {
  width: 32px;
  font-size: 10px;
  color: #888;
  text-align: right;
  flex-shrink: 0;
}
.mouth-ctrl-row input[type="range"] {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
}
.mouth-ctrl-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #60a5fa;
  border-radius: 50%;
  cursor: pointer;
}
.mouth-ctrl-row span {
  width: 36px;
  font-size: 10px;
  color: #60a5fa;
  text-align: right;
  flex-shrink: 0;
}
#mouth-toggle {
  margin-left: 0;
}

/* ================================================================
   底部滚动字幕栏
   ================================================================ */
#ticker-bar {
  display: flex;
  align-items: center;
  height: 40px;
  background: transparent;
  border-top: 1px solid rgba(64,128,255,0.15);
  flex-shrink: 0;
  z-index: 100;
  overflow: hidden;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 100%;
  background: rgba(96,165,250,0.1);
  border-right: 1px solid rgba(64,128,255,0.15);
  font-size: 12px;
  font-weight: 600;
  color: #60a5fa;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
  animation: pulse-dot 1s infinite;
}

#ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

#ticker-text {
  white-space: nowrap;
  font-size: 13px;
  color: #9ca3af;
  padding-left: 100%;
  animation: ticker-scroll 30s linear infinite;
}

#ticker-text.alert-mode {
  color: #fca5a5;
  animation-duration: 15s;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.ticker-right {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 100%;
  border-left: 1px solid rgba(64,128,255,0.15);
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  flex-shrink: 0;
}

#ticker-status {
  color: #4CAF50;
  font-size: 10px;
}

#ticker-status.alerting { color: #dc2626; animation: pulse-dot 0.5s infinite; }

/* ================================================================
   P0: 对话记录操作按钮
   ================================================================ */
.chat-actions {
  display: flex;
  gap: 4px;
}

.btn-icon-sm {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  background: rgba(55,65,81,0.6);
  border: 1px solid rgba(96,165,250,0.15);
  border-radius: 4px;
  color: #9ca3af;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-icon-sm:hover {
  background: rgba(40,55,85,0.8);
  color: #fff;
  border-color: rgba(96,165,250,0.3);
}

/* ================================================================
   P1: 生活指数卡片
   ================================================================ */
.life-index-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 5px;
  background: rgba(30,42,66,0.6);
  border: 1px solid rgba(64,128,255,0.08);
  border-radius: 8px;
  transition: all 0.3s;
}
.life-index-card:hover {
  background: rgba(40,55,85,0.8);
  border-color: rgba(96,165,250,0.2);
}

.li-icon {
  font-size: 18px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(64,128,255,0.1);
  border-radius: 6px;
  flex-shrink: 0;
}

.li-body {
  flex-shrink: 0;
  min-width: 70px;
}

.li-label {
  font-size: 10px;
  color: #6b7280;
}

.li-level {
  font-size: 13px;
  font-weight: 700;
}

.li-advice {
  flex: 1;
  font-size: 10px;
  color: #9ca3af;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

/* ================================================================
   P1: 24h温湿度趋势图表
   ================================================================ */
.hourly-chart {
  width: 100%;
  height: 120px;
  background: rgba(30,42,66,0.4);
  border: 1px solid rgba(64,128,255,0.08);
  border-radius: 8px;
}

/* ================================================================
   P1: 表情指示器
   ================================================================ */
.expression-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  font-size: 12px;
  color: #93c5fd;
}

#expr-emoji {
  font-size: 16px;
}

/* ================================================================
   P0: 触摸屏适配
   ================================================================ */
@media (pointer: coarse) {
  .btn-mic {
    width: 48px;
    height: 48px;
  }
  .btn-send {
    padding: 0 20px;
    font-size: 14px;
  }
  #text-input {
    padding: 12px 14px;
    font-size: 14px;
  }
  .btn-alert {
    padding: 12px;
    font-size: 14px;
  }
  .weather-card {
    padding: 12px;
  }
  .btn-small, .btn-icon-sm {
    padding: 6px 10px;
    font-size: 11px;
  }
}
