* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", "SF Pro Display", system-ui, -apple-system, sans-serif;
  background: #121019;
  color: #f5f6f8;
}
.app {
  max-width: 540px;
  margin: 0 auto;
  padding: 12px 16px 32px;
  min-height: 100vh;
  overflow-y: auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.brand { font-weight: 700; font-size: 18px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 12px;
}
.dot.live { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.status-text { color: #f5f6f8; }
.pill-btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #f5f6f8;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(180deg, #1f1929 0%, #0c0a10 100%);
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}
.hero-portrait {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-portrait img,
.hero-portrait video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.avatar-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: brightness(0.95);
}
/* 右上角小窗实时画面 */
video#camera.pip {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 110px;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  z-index: 3;
}
.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.icon-btn {
  position: absolute; right: 14px; top: 14px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  z-index: 3;
}
.bubbles {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  z-index: 4;
  display: grid;
  gap: 10px;
}
.bubble {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.bubble.user { background: rgba(255,255,255,0.08); color: #f5f6f8; max-width: 80%; }
.bubble.bot { background: rgba(76, 175, 80, 0.12); color: #d7fdd5; border: 1px solid rgba(76,175,80,0.35); max-width: 85%; }

.mic-section {
  margin: 18px 0 12px;
  display: flex; justify-content: center;
}
.mic-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #0b0c10;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(34,197,94,0.35);
}
.wave { display: inline-flex; align-items: flex-end; gap: 2px; }
.wave span {
  width: 3px; height: 8px; background: #0b0c10;
  display: block; border-radius: 999px; animation: pulse 1s ease-in-out infinite;
}
.wave span:nth-child(2){ animation-delay: 0.1s; }
.wave span:nth-child(3){ animation-delay: 0.2s; }
.wave span:nth-child(4){ animation-delay: 0.3s; }
.wave span:nth-child(5){ animation-delay: 0.4s; }
@keyframes pulse {
  0%,100% { height: 8px; opacity: 0.6; }
  50% { height: 16px; opacity: 1; }
}

.info {
  background: #181520;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.info-row { margin-bottom: 10px; }
.label {
  font-size: 12px;
  color: #9da4b5;
  margin-bottom: 6px;
}
.textbox {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 12px;
  min-height: 44px;
  color: #f5f6f8;
  font-size: 14px;
}

.hidden { display: none; }
