/* ========= 主题 CSS 变量 ========= */
:root {
  --accent: #9c6bff;
  --accent-light: rgba(156, 107, 255, 0.15);
  --bubble-me: #e8d9ff;
  --bubble-me-arrow: #e8d9ff;
  --chat-bg: linear-gradient(135deg, #f5f0ff, #e8f4ff);
  --font-size-chat: 15px;
}

/* ========= 全局 ========= */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #eef2f6 0%, #dfe5ed 100%);
  min-height: 100vh;
  color: #111;
  overflow-x: hidden;
}

.hidden { display: none !important; }

/* ========= 手机外框 ========= */
.phone-frame {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  max-height: 900px;
  margin: 0 auto;
  background: #ededed;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 60px rgba(0,0,0,.15);
  border-radius: 0;
}
@media (min-width: 640px) {
  body { display: flex; align-items: center; justify-content: center; padding: 20px 0; }
  .phone-frame {
    border-radius: 36px;
    height: 860px;
    border: 10px solid #111;
  }
}

/* ========= 状态栏 ========= */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 22px 4px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  background: transparent;
  z-index: 10;
}
.status-bar .status-icons i { margin-left: 6px; font-size: 14px; }

/* ========= 屏幕 ========= */
.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ededed;
  min-height: 0;
}

/* ========= SaySo首页 ========= */
.sayso-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 10px;
  background: #ededed;
}
.sayso-header-title { font-size: 22px; font-weight: 600; color: #111; }
.sayso-header-actions i { font-size: 22px; margin-left: 18px; color: #333; cursor: pointer; }

.chat-list {
  flex: 1;
  overflow-y: auto;
  background: #fff;
  min-height: 0;
}
.chat-list-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background .15s;
  position: relative;
}
.chat-list-item:active { background: #e5e5e5; }
.chat-list-item.pinned { background: #f7f7f7; }
.cl-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  position: relative;
}
.fallback-avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffe0ed, #e3f2fd);
  color: #5c3d5f;
  font-weight: 800;
}
.cl-avatar-wrap { position: relative; }
.cl-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}
.cl-badge {
  flex-shrink: 0;
  background: #fa5151;
  color: #fff;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}
.cl-content { flex: 1; margin-left: 12px; min-width: 0; }
.cl-top { display: flex; justify-content: space-between; align-items: center; }
.cl-name { font-size: 16px; font-weight: 500; color: #111; }
.cl-time { font-size: 12px; color: #999; flex-shrink: 0; margin-left: 8px; }
.cl-msg {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 1.4;
}
.cl-msg-en { color: #576b95; }

/* ========= 底部 tab ========= */
.sayso-tabbar {
  display: flex;
  border-top: 1px solid #ddd;
  background: #f7f7f7;
}
.tab-item {
  flex: 1;
  text-align: center;
  padding: 6px 0 8px;
  color: #7a7a7a;
  font-size: 10px;
  position: relative;
  cursor: pointer;
}
.tab-item i { font-size: 22px; display: block; margin-bottom: 2px; }
.tab-item.active { color: #FF9500; }
.tab-badge {
  position: absolute;
  top: 2px;
  left: 56%;
  background: #fa5151;
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========= 聊天详情页 ========= */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px 10px;
  background: #ededed;
  border-bottom: 1px solid #e0e0e0;
}
.back-btn { font-size: 28px; color: #111; cursor: pointer; padding: 2px 6px; }
.chat-header-center { flex: 1; text-align: center; }
.chat-header-name { font-size: 17px; font-weight: 500; color: #111; }
.chat-header-status { font-size: 11px; color: #888; margin-top: 2px; }
.chat-header-more { font-size: 22px; color: #111; cursor: pointer; padding: 2px 12px; }

/* 消息区域 */
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  background: var(--chat-bg);
}
.msg-row { display: flex; margin-bottom: 14px; align-items: flex-start; }
.msg-row.me { flex-direction: row-reverse; }
.msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.msg-bubble-wrap {
  max-width: 72%;
  margin: 0 10px;
  display: flex;
  flex-direction: column;
}
.msg-row.me .msg-bubble-wrap { align-items: flex-end; }
.msg-bubble {
  padding: 9px 13px;
  border-radius: 6px;
  font-size: var(--font-size-chat);
  line-height: 1.45;
  color: #111;
  word-wrap: break-word;
  word-break: break-word;
  position: relative;
  white-space: pre-wrap;
}
.msg-bubble.them {
  background: #fff;
  border-top-left-radius: 2px;
}
.msg-bubble.them::before {
  content: '';
  position: absolute;
  left: -5px; top: 10px;
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #fff;
}
.msg-bubble.me {
  background: var(--bubble-me);
  border-top-right-radius: 2px;
}
.msg-bubble.me::before {
  content: '';
  position: absolute;
  right: -5px; top: 10px;
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid var(--bubble-me-arrow);
}
.msg-translation {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
  padding: 0 4px;
  line-height: 1.4;
}
.msg-time-divider {
  text-align: center;
  margin: 12px auto;
  font-size: 11px;
  color: #9a9a9a;
  background: rgba(0,0,0,.05);
  padding: 2px 8px;
  border-radius: 3px;
  display: table;
}
.msg-system {
  text-align: center;
  color: #8a8a8a;
  font-size: 12px;
  margin: 10px auto;
  padding: 4px 10px;
  background: rgba(0,0,0,.04);
  border-radius: 3px;
  display: table;
  max-width: 80%;
}
.msg-system .link {
  color: #576b95;
  cursor: pointer;
}

/* 语音气泡 */
.voice-bubble {
  display: flex;
  align-items: center;
  min-width: 80px;
  gap: 6px;
  cursor: pointer;
}
.voice-bubble i { font-size: 18px; color: #FF9500; }
.msg-bubble.me .voice-bubble i { color: #333; }
.voice-duration { font-size: 13px; color: #666; }

/* 打字指示器 */
.typing-bubble {
  background: #fff;
  border-radius: 16px;
  padding: 10px 14px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.typing-bubble span {
  width: 6px; height: 6px;
  background: #999;
  border-radius: 50%;
  animation: typing 1.3s infinite ease-in-out;
}
.typing-bubble span:nth-child(2) { animation-delay: .15s; }
.typing-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 80%, 100% { transform: scale(.6); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}

/* 消息操作（翻译/纠正） */
.msg-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  padding: 0 4px;
  flex-wrap: wrap;
}
.msg-action-btn {
  font-size: 11px;
  color: #576b95;
  cursor: pointer;
  background: rgba(255,255,255,.7);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #e0e7ef;
}
.msg-action-btn:hover { background: #fff; }
.msg-action-btn i { margin-right: 2px; }

/* 无痕辅助：微型提示条 */
.msg-hint {
  margin-top: 4px;
  padding: 5px 10px;
  background: rgba(255,149,0,.08);
  border-radius: 8px;
  font-size: 12px;
  color: #b07800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background .15s;
  user-select: none;
}
.msg-hint:hover { background: rgba(255,149,0,.15); }
.msg-hint.high {
  background: rgba(255,81,81,.1);
  color: #c62828;
}
.msg-hint .msg-hint-arrow {
  margin-left: auto;
  font-size: 14px;
  transition: transform .2s;
}
.msg-hint.expanded .msg-hint-arrow { transform: rotate(180deg); }
.msg-hint-detail {
  display: none;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,149,0,.15);
  font-size: 12px;
  line-height: 1.6;
  color: #666;
}
.msg-hint-detail .hint-fix { color: #c62828; text-decoration: line-through; }
.msg-hint-detail .hint-new { color: #2e7d32; font-weight: 500; }
.msg-hint-detail .hint-tip { color: #1565c0; }
.msg-hint-detail .hint-native { color: #7c4dff; font-weight: 500; }
.msg-hint.expanded .msg-hint-detail { display: block; }

.correction-card {
  margin-top: 6px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #fff7e6, #fff1d4);
  border-left: 3px solid #ff9f43;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  max-width: 260px;
}
.correction-card .tag {
  font-size: 11px;
  font-weight: 600;
  color: #ff9f43;
  margin-bottom: 4px;
  display: block;
}
.correction-card .old { color: #c62828; text-decoration: line-through; }
.correction-card .new { color: #2e7d32; font-weight: 500; }
.correction-card .tip { margin-top: 6px; color: #666; font-size: 12px; line-height: 1.4; }

/* 快捷话题 */
.quick-topics {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  background: #f7f7f7;
  overflow-x: auto;
  border-top: 1px solid #eaeaea;
  scrollbar-width: none;
}
.quick-topics::-webkit-scrollbar { display: none; }
.quick-topic-chip {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.quick-topic-chip:hover { background: #FF9500; color: #fff; border-color: #FF9500; }

/* 输入区 */
.chat-input-area {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  gap: 8px;
  background: #f7f7f7;
  border-top: 1px solid #ddd;
}
.input-icon {
  font-size: 26px;
  color: #333;
  cursor: pointer;
  flex-shrink: 0;
}
.input-wrapper {
  flex: 1;
  position: relative;
}
.input-wrapper input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background: #fff;
  font-size: 15px;
  outline: none;
}
.hold-to-talk {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background: #fff;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  user-select: none;
}
.hold-to-talk.recording { background: #d5d5d5; }
.send-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

/* 录音遮罩 */
.voice-overlay {
  position: absolute;
  bottom: 60px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  z-index: 50;
}
.voice-wave {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  height: 30px;
  margin-bottom: 8px;
}
.voice-wave span {
  width: 3px;
  background: #FFCC80;
  border-radius: 2px;
  animation: wave 1s infinite ease-in-out;
}
.voice-wave span:nth-child(1) { height: 10px; animation-delay: 0s; }
.voice-wave span:nth-child(2) { height: 20px; animation-delay: .1s; }
.voice-wave span:nth-child(3) { height: 28px; animation-delay: .2s; }
.voice-wave span:nth-child(4) { height: 18px; animation-delay: .3s; }
.voice-wave span:nth-child(5) { height: 12px; animation-delay: .4s; }
@keyframes wave {
  0%, 100% { transform: scaleY(.4); }
  50% { transform: scaleY(1); }
}
.voice-hint { font-size: 12px; opacity: .9; }

/* ========= 资料页 ========= */
.profile-modal {
  position: absolute;
  inset: 0;
  background: #ededed;
  z-index: 40;
  display: flex;
  flex-direction: column;
  animation: slideRight .25s;
}
@keyframes slideRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #ededed;
  border-bottom: 1px solid #e0e0e0;
  font-size: 17px;
  font-weight: 500;
}
.profile-header i { font-size: 26px; cursor: pointer; }
.profile-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.profile-top {
  display: flex;
  gap: 14px;
  padding: 18px 16px;
  background: #fff;
}
.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}
.profile-name { font-size: 20px; font-weight: 600; color: #111; }
.profile-id { font-size: 13px; color: #888; margin-top: 4px; }
.profile-region { font-size: 12px; color: #666; margin-top: 4px; }

.profile-card {
  margin-top: 12px;
  background: #fff;
  padding: 14px 16px;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f2f2f2;
}
.profile-row:last-child { border-bottom: none; }
.profile-row span:last-child { color: #888; max-width: 60%; text-align: right; }
.profile-row-title { font-size: 14px; font-weight: 600; color: #111; margin-bottom: 8px; }
.profile-bio { font-size: 14px; color: #333; line-height: 1.6; margin: 0; }

.moment-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}
.moment-item:last-child { border-bottom: none; }
.moment-time {
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.moment-day { font-size: 20px; font-weight: 600; color: #333; }
.moment-month { font-size: 10px; color: #999; }
.moment-text { font-size: 13px; color: #444; line-height: 1.5; }
.moment-emoji { font-size: 15px; margin-right: 4px; }

/* 反馈弹窗 */
.feedback-modal {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.feedback-box {
  width: 88%;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  animation: popUp .25s;
}
@keyframes popUp {
  from { transform: scale(.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fff7e6, #ffeed1);
  font-weight: 600;
  color: #d68910;
}
.feedback-header i:first-child { font-size: 20px; margin-right: 8px; }
.feedback-header span { flex: 1; }
.feedback-header i:last-child { font-size: 22px; color: #888; cursor: pointer; }
.feedback-body { padding: 14px 16px; font-size: 14px; color: #333; line-height: 1.6; }
.feedback-body .block { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed #eee; }
.feedback-body .block:last-child { border-bottom: none; margin-bottom: 0; }
.feedback-body .label {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
  font-weight: 500;
}
.feedback-body .label.fix { background: #ffebee; color: #c62828; }
.feedback-body .label.better { background: #e8f5e9; color: #2e7d32; }
.feedback-body .label.tip { background: #e3f2fd; color: #1565c0; }
.feedback-body .old-text { color: #c62828; text-decoration: line-through; }
.feedback-body .new-text { color: #2e7d32; font-weight: 500; }

/* ========= 考试模式特殊样式 ========= */
.exam-banner {
  background: linear-gradient(135deg, #5b8df5, #4768c4);
  color: #fff;
  padding: 14px 16px;
  margin: 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(91,141,245,.3);
}
.exam-banner .exam-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.exam-banner .exam-progress {
  margin-top: 8px;
  font-size: 12px;
  opacity: .9;
}

/* 滚动条 */
.chat-body::-webkit-scrollbar,
.chat-list::-webkit-scrollbar,
.profile-content::-webkit-scrollbar {
  width: 0;
}

/* 红点闪烁 */
.online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #4caf50;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* ====================================================== */
/* ========= 🆕 Tab 面板 ========= */
/* ====================================================== */
.tab-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ededed;
  min-height: 0;
}
.tab-scroll-area {
  flex: 1;
  overflow-y: auto;
  background: #ededed;
}
.tab-scroll-area::-webkit-scrollbar { width: 0; }

/* ====================================================== */
/* ========= 🆕 通讯录页 ========= */
/* ====================================================== */
.ct-root { padding-bottom: 20px; }
.ct-search {
  margin: 8px 12px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 6px;
  color: #aaa;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #eee;
}
.ct-search i { font-size: 16px; }
.ct-headers {
  background: #fff;
  padding: 4px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.ct-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  cursor: pointer;
  gap: 12px;
  transition: background .15s;
  position: relative;
}
.ct-item:active { background: #f0f0f0; }
.ct-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  flex-shrink: 0;
}
.ct-avatar {
  width: 40px; height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.ct-info { flex: 1; min-width: 0; }
.ct-name { font-size: 15px; color: #111; }
.ct-desc { font-size: 11px; color: #999; margin-top: 2px; }
.ct-ai-badge {
  font-size: 10px; background: #FF950020; color: #FF9500;
  padding: 1px 5px; border-radius: 4px; margin-left: 4px; font-weight: 500;
}
.ct-persona-tags { display: flex; gap: 4px; margin-top: 3px; flex-wrap: wrap; }
.ct-persona-tag {
  font-size: 10px; padding: 1px 6px; border-radius: 8px; line-height: 1.4;
}
.ct-tag-edit:hover { color: #FF9500; }
.ct-tag-bar {
  display: flex; gap: 6px; padding: 8px 14px;
  overflow-x: auto; scrollbar-width: none; align-items: center;
  background: #ededed;
}
.ct-tag-bar::-webkit-scrollbar { display: none; }
.ct-tag-chip {
  flex-shrink: 0; padding: 4px 10px; border-radius: 12px;
  font-size: 12px; border: 1px solid; cursor: pointer;
  background: #fff; transition: all .15s; user-select: none;
}
.ct-tag-chip.active, .ct-tag-chip:hover { background: #FF950015; }
.ct-tag-all {
  border-color: #ddd; color: #666;
}
.ct-tag-all.active { border-color: #FF9500; color: #FF9500; background: #fff8f0; }
.ct-tag-manage {
  flex-shrink: 0; padding: 4px 8px; font-size: 11px; color: #999; cursor: pointer;
}
.ct-tag-manage:hover { color: #FF9500; }
.ct-tag-manage i { margin-right: 2px; }

/* 标签编辑面板 */
.tag-edit-panel {
  position: absolute; inset: 0; background: #fff; z-index: 50;
  display: flex; flex-direction: column;
  animation: slideRight .25s;
}
.tag-edit-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid #eee; font-size: 16px; font-weight: 500;
}
.tag-edit-header i { font-size: 22px; cursor: pointer; color: #888; }
.tag-edit-body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.tag-edit-item {
  padding: 8px 0; border-bottom: 1px solid #f3f3f3;
}
.tag-edit-check {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.tag-edit-check input { width: 18px; height: 18px; accent-color: #FF9500; }
.tag-edit-name { font-size: 14px; font-weight: 500; }
.tag-edit-empty { text-align: center; color: #aaa; padding: 20px; font-size: 13px; }
.tag-edit-new {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.tag-edit-new input {
  flex: 1; padding: 8px 10px; border: 1px solid #e8e8e8; border-radius: 8px;
  font-size: 13px; outline: none; min-width: 100px;
}
.tag-edit-new input:focus { border-color: #FF9500; }
.tag-edit-color-pick { display: flex; gap: 4px; }
.tag-color-dot {
  width: 20px; height: 20px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: all .15s;
}
.tag-color-dot.active { border-color: #333; transform: scale(1.15); }
.tag-edit-add {
  padding: 7px 14px; border: none; border-radius: 8px;
  background: #FF9500; color: #fff; font-size: 13px; cursor: pointer;
}

/* 标签管理页 */
.tag-manage-panel {
  position: absolute; inset: 0; background: #fff; z-index: 50;
  display: flex; flex-direction: column;
  animation: slideRight .25s;
}
.tag-manage-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid #eee; font-size: 16px; font-weight: 500;
}
.tag-manage-header i { font-size: 24px; cursor: pointer; color: #111; }
.tag-manage-body { flex: 1; overflow-y: auto; padding: 8px 16px; }
.tag-manage-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 0;
  border-bottom: 1px solid #f3f3f3;
}
.tag-manage-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.tag-manage-name { flex: 1; font-size: 15px; }
.tag-manage-count { font-size: 12px; color: #999; }
.tag-manage-actions { display: flex; gap: 12px; }
.tag-manage-actions i { font-size: 18px; color: #999; cursor: pointer; }
.tag-manage-actions i:hover { color: #FF9500; }
.tag-manage-new { margin-top: 16px; }
.ct-group { margin-top: 8px; background: #fff; }
.ct-letter {
  padding: 4px 14px;
  font-size: 12px;
  color: #888;
  background: #f7f7f7;
  font-weight: 500;
}
.ct-highlight { background: linear-gradient(90deg, #fff8f0, #fff); }
.ct-highlight .ct-name::after {
  content: '点击开始聊天';
  margin-left: 8px;
  font-size: 10px;
  color: #FF9500;
  background: #fff3e0;
  padding: 1px 6px;
  border-radius: 8px;
}
.ct-video-icon {
  font-size: 20px;
  color: #FF9500;
  flex-shrink: 0;
  padding: 4px;
}
.ct-tag-edit {
  font-size: 18px; color: #bbb; cursor: pointer; padding: 4px;
  flex-shrink: 0;
}
/* ====================================================== */
/* ========= 🆕 发现页 ========= */
/* ====================================================== */
.dc-root { padding-bottom: 30px; }
.dc-header {
  padding: 10px 16px 12px;
  font-size: 22px;
  font-weight: 600;
  background: #ededed;
  display: none; /* 用 sayso-header 代替 */
}
.dc-group {
  margin-top: 10px;
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.dc-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f3f3;
  cursor: pointer;
  transition: background .15s;
  gap: 14px;
}
.dc-item:last-child { border-bottom: none; }
.dc-item:active { background: #f6f6f6; }
.dc-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}
.dc-label { flex: 1; font-size: 15px; color: #111; }
.dc-badge {
  background: #ffebee;
  color: #e53935;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 6px;
}
.dc-arrow { color: #c0c0c0; font-size: 20px; }

/* ====================================================== */
/* ========= 🆕 "我"页 ========= */
/* ====================================================== */
.me-root { padding-bottom: 20px; }
.me-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  background: linear-gradient(135deg, #fff, #f8f8f8);
  position: relative;
}
.me-avatar {
  width: 56px; height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #a8edea, #fed6e3);
  flex-shrink: 0;
}
.me-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.me-name {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.me-id {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.me-motto {
  font-size: 12px;
  color: #666;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.me-qr {
  font-size: 20px;
  color: #bbb;
  flex-shrink: 0;
  margin-left: 4px;
}
.me-edit-icon {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 14px;
  color: #bbb;
  background: rgba(255,255,255,.8);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}
.me-edit-icon:hover { color: #FF9500; background: #fff; }

.me-stats {
  display: flex;
  background: #fff;
  padding: 14px 0;
  margin-top: 8px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.me-stat {
  flex: 1;
  text-align: center;
  border-right: 1px solid #eee;
}
.me-stat:last-child { border-right: none; }
.me-stat-num {
  font-size: 22px;
  font-weight: 600;
  color: #FF9500;
}
.me-stat-label {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

.me-group {
  margin-top: 10px;
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.me-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 12px;
  border-bottom: 1px solid #f3f3f3;
  cursor: pointer;
  transition: background .15s;
}
.me-item:last-child { border-bottom: none; }
.me-item:active { background: #f6f6f6; }
.me-item i:first-child { font-size: 20px; width: 22px; }
.me-item span { flex: 1; font-size: 15px; color: #111; }
.me-arrow { color: #c0c0c0; font-size: 20px; }

/* ====================================================== */
/* ========= 🆕 视频通话 — 沉浸式3D升级 ========= */
/* ====================================================== */
#screen-video-call {
  background: #0d0d2b;
  color: #fff;
  position: relative;
  overflow: hidden;
}
#videoCallRoot {
  width: 100%;
  height: 100%;
}

/* 沉浸式全屏根容器 */
.vc3d-immersive {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

/* 全屏3D背景 */
.vc3d-fullscreen-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.vc3d-fullscreen-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* 悬浮UI层 */
.vc3d-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.vc3d-overlay > * { pointer-events: auto; }

/* Glass-morphism 顶部栏 */
.vc3d-glass-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.15);
  flex-shrink: 0;
  z-index: 5;
}
.vc3d-glass-header .vc3d-back {
  width: 36px; height: 36px; border: none;
  background: rgba(255,255,255,.15); border-radius: 50%;
  font-size: 24px; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.vc3d-glass-header .vc3d-back:hover { background: rgba(255,255,255,.25); }
.vc3d-glass-header .vc3d-brand { flex: 1; text-align: center; }
.vc3d-glass-header .vc3d-logo {
  font-size: 20px; font-weight: 700; letter-spacing: .08em;
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.vc3d-glass-header .vc3d-scene {
  max-width: 108px; font-size: 12px; padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 8px;
  background: rgba(255,255,255,.1); color: #fff;
  backdrop-filter: blur(8px);
}
.vc3d-glass-header .vc3d-scene option { background: #333; color: #fff; }

/* 3D头像小窗（glass） */
.vc3d-avatar-window {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: clamp(180px, 38vw, 240px);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
}
.vc3d-avatar-window .vc3d-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.vc3d-avatar-window .vc3d-stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.vc3d-avatar-window .vc3d-status {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.15);
  z-index: 2;
}

/* 背景风格切换器 */
.vc3d-bg-switcher {
  position: absolute;
  top: 70px;
  right: 8px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.vc3d-bg-switcher-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  transition: all .2s;
}
.vc3d-bg-switcher-toggle:hover { background: rgba(255,255,255,.25); }
.vc3d-bg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 160px;
  padding: 8px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  animation: vc3dChipIn .2s ease;
}
@keyframes vc3dChipIn {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}
.vc3d-bg-chip {
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 11px;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.vc3d-bg-chip:hover { background: rgba(255,255,255,.2); }
.vc3d-bg-chip.active {
  background: var(--chip-color, rgba(124,77,255,.5));
  border-color: var(--chip-color, #7c4dff);
  box-shadow: 0 0 8px var(--chip-color, rgba(124,77,255,.4));
}

/* 聊天气泡区（glass） */
.vc3d-chat-glass {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 8px;
  border-radius: 16px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
}
.vc3d-chat-glass .vc3d-bubbles {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}
.vc3d-chat-glass .vc3d-bubbles::-webkit-scrollbar { width: 0; }
.vc3d-chat-glass .vc3d-feedback {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(255,247,230,.95), rgba(255,241,212,.95));
  border-top: 1px solid rgba(255,224,178,.5);
  border-left: 3px solid #ff9f43;
  font-size: 12px;
  color: #664;
}

/* Glass底部输入区 */
.vc3d-glass-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.vc3d-glass-footer .vc3d-input {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  background: rgba(255,255,255,.12);
  color: #fff;
}
.vc3d-glass-footer .vc3d-input::placeholder { color: rgba(255,255,255,.4); }
.vc3d-glass-footer .vc3d-input:focus { background: rgba(255,255,255,.18); }
.vc3d-glass-footer .vc3d-mic,
.vc3d-glass-footer .vc3d-send {
  width: 44px; height: 44px; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer; flex-shrink: 0;
}
.vc3d-glass-footer .vc3d-mic {
  background: #FF9500;
  color: #fff;
  box-shadow: 0 2px 10px rgba(255,149,0,.35);
}
.vc3d-glass-footer .vc3d-mic.active {
  background: #fa5151;
  animation: vc3dMicPulse .8s infinite;
}
.vc3d-glass-footer .vc3d-send { background: #FF9500; color: #fff; }
.vc3d-glass-footer .vc3d-mic.hidden,
.vc3d-glass-footer .vc3d-send.hidden { display: none; }

/* 气泡样式（暗色适配） */
.vc3d-chat-glass .vc3d-bubble { margin-bottom: 10px; display: flex; align-items: flex-start; gap: 8px; }
.vc3d-chat-glass .vc3d-bubble.me { justify-content: flex-end; }
.vc3d-chat-glass .vc3d-bubble-avatar {
  width: 32px; height: 32px; border-radius: 6px;
  object-fit: cover; flex-shrink: 0;
}
.vc3d-chat-glass .vc3d-bubble-inner {
  max-width: 80%; padding: 8px 12px; border-radius: 12px;
  font-size: 14px; line-height: 1.45; word-wrap: break-word;
}
.vc3d-chat-glass .vc3d-bubble-inner.me {
  background: rgba(255,149,0,.85); color: #fff;
  border-top-right-radius: 4px;
}
.vc3d-chat-glass .vc3d-bubble-inner.ai {
  background: rgba(255,255,255,.15); color: #fff;
  border-top-left-radius: 4px;
}
.vc3d-chat-glass .vc3d-bubble-inner.ai .zh { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }
.vc3d-chat-glass .vc3d-bubble-inner.system {
  background: transparent; color: rgba(255,255,255,.5);
  font-size: 12px; text-align: center; max-width: 100%; padding: 4px;
}

/* ========= 保留旧版vc3d样式用于兼容 ========= */
.vc3d-root {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
}
.vc3d-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
  z-index: 5;
}
.vc3d-back {
  width: 36px; height: 36px; border: none; background: transparent;
  border-radius: 50%; font-size: 28px; color: #111; cursor: pointer;
}
.vc3d-brand { flex: 1; display: flex; flex-direction: column; line-height: 1.2; text-align: center; justify-content: center; }
.vc3d-logo { font-size: 20px; font-weight: 700; letter-spacing: .08em; color: #FF9500; text-transform: lowercase; }
.vc3d-scene {
  max-width: 108px; font-size: 12px; padding: 6px 8px;
  border: 1px solid #e8e0d4; border-radius: 8px; background: #fffbf2;
  color: #666;
}
.vc3d-stage-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: clamp(240px, 52vw, 300px);
  background: linear-gradient(180deg, #fffbf2 0%, #ffe8cc 45%, #fff5e6 100%);
  border-bottom: 1px solid #f0e6d8;
  overflow: hidden;
}
.vc3d-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.vc3d-stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.vc3d-status {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255,255,255,.92);
  border-radius: 16px;
  font-size: 12px;
  color: #666;
  box-shadow: 0 2px 8px rgba(255,149,0,.12);
  border: 1px solid #ffe0b2;
  z-index: 2;
}
.vc3d-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #FF9500;
  animation: vc3dPulse 1.5s infinite;
}
@keyframes vc3dPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}
.vc3d-bubbles {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  -webkit-overflow-scrolling: touch;
}
.vc3d-bubble { margin-bottom: 14px; display: flex; align-items: flex-start; gap: 8px; }
.vc3d-bubble.me { justify-content: flex-end; }
.vc3d-bubble-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.vc3d-bubble-inner {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.45;
  word-wrap: break-word;
}
.vc3d-bubble-inner.me {
  background: #FFCC80;
  color: #111;
  border-top-right-radius: 2px;
}
.vc3d-bubble-inner.ai {
  background: #fff;
  color: #111;
  border-top-left-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.vc3d-bubble-inner.ai .zh { font-size: 12px; color: #888; margin-top: 4px; }
.vc3d-bubble-inner.system {
  background: transparent;
  color: #999;
  font-size: 12px;
  text-align: center;
  max-width: 100%;
  padding: 4px;
}
.vc3d-feedback {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 12px;
  background: linear-gradient(135deg, #fff7e6, #fff1d4);
  border-top: 1px solid #ffe0b2;
  border-left: 3px solid #ff9f43;
  font-size: 12px;
  color: #664;
}
.vc3d-feedback i { color: #FF9500; font-size: 18px; flex-shrink: 0; }
.vc3d-feedback .fix { display: block; margin-bottom: 4px; }
.vc3d-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: #f7f7f7;
  border-top: 1px solid #ddd;
  flex-shrink: 0;
}
.vc3d-input {
  flex: 1;
  border: none;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
  outline: none;
  background: #fff;
}
.vc3d-input:focus { box-shadow: 0 0 0 1px #FF9500; }
.vc3d-mic, .vc3d-send {
  width: 44px; height: 44px; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer; flex-shrink: 0;
}
.vc3d-mic {
  background: #FF9500;
  color: #fff;
  box-shadow: 0 2px 10px rgba(255,149,0,.35);
}
.vc3d-mic.active {
  background: #fa5151;
  animation: vc3dMicPulse .8s infinite;
}
@keyframes vc3dMicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250,81,81,.45); }
  50% { box-shadow: 0 0 0 10px rgba(250,81,81,0); }
}
.vc3d-send { background: #FF9500; color: #fff; }
.vc3d-mic.hidden, .vc3d-send.hidden { display: none; }

/* legacy video (unused) */
.vc-root {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  overflow: hidden;
}
.vc-avatar-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,150,200,.25), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(100,200,255,.2), transparent 60%);
  animation: vcBgShift 12s infinite ease-in-out;
}
@keyframes vcBgShift {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.2) rotate(3deg); }
}
.vc-main {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vc-avatar-container {
  width: 78%;
  max-width: 340px;
  position: relative;
  z-index: 2;
  animation: vcAvatarFloat 5s infinite ease-in-out;
}
@keyframes vcAvatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.lily-avatar-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(255,150,200,.3));
}

/* 字幕 */
.vc-caption {
  position: absolute;
  bottom: 30px;
  left: 20px;
  right: 20px;
  z-index: 5;
  text-align: center;
  background: rgba(0,0,0,.55);
  border-radius: 14px;
  padding: 12px 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: vcFade .4s;
}
@keyframes vcFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.vc-caption-en {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
}
.vc-caption-zh {
  display: block;
  font-size: 12px;
  color: #ddd;
  margin-top: 4px;
}

/* 情绪标签 */
.vc-emotion-tag {
  position: absolute;
  top: 80px;
  left: 20px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  z-index: 5;
}
.vc-emotion-tag i { margin-right: 3px; }

/* 通话信息 */
.vc-info {
  position: absolute;
  top: 30px;
  left: 0; right: 0;
  padding: 0 18px;
  z-index: 5;
  pointer-events: none;
}
.vc-info-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.vc-info-name { font-size: 18px; font-weight: 600; }
.vc-info-timer { font-size: 14px; opacity: .9; font-feature-settings: 'tnum'; }
.vc-info-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.8);
}
.vc-network {
  display: flex;
  align-items: center;
  gap: 2px;
}
.vc-net-bar {
  width: 3px;
  border-radius: 1px;
  background: rgba(255,255,255,.3);
  transition: all .3s;
}
.vc-net-bar:nth-child(1) { height: 5px; }
.vc-net-bar:nth-child(2) { height: 8px; }
.vc-net-bar:nth-child(3) { height: 11px; }
.vc-net-bar:nth-child(4) { height: 14px; }
.vc-net-bar.active { background: #4caf50; }
.vc-net-label { margin-left: 6px; font-size: 11px; }

/* 本地小窗 */
.vc-local {
  position: absolute;
  top: 80px;
  right: 16px;
  width: 90px;
  height: 130px;
  background: #222;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  z-index: 10;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,.15);
}
#vcLocalVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  transform: scaleX(-1); /* 镜像 */
}
.vc-local-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 10px;
  text-align: center;
  padding: 6px;
}
.vc-local-placeholder i { font-size: 26px; margin-bottom: 4px; }
.vc-local-label {
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  color: rgba(255,255,255,.8);
  background: linear-gradient(transparent, rgba(0,0,0,.5));
  padding: 4px 0 2px;
}

/* 控制面板 */
.vc-controls {
  padding: 14px 10px 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.5));
  z-index: 5;
}
.vc-ctrl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 10px;
  cursor: pointer;
  user-select: none;
  transition: all .2s;
}
.vc-ctrl-btn i {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all .2s;
}
.vc-ctrl-btn:active i { transform: scale(.9); }
.vc-ctrl-btn.off i { background: rgba(255,255,255,.08); color: #888; }
.vc-ctrl-btn.hangup i { background: #ff3b30; }
.vc-ctrl-btn.hangup i.ri-phone-fill { transform: rotate(135deg); }
.vc-ctrl-btn.flipping i { transform: rotateY(180deg); }

/* 挂断按钮稍大 */
.vc-ctrl-btn.hangup i { width: 54px; height: 54px; }

/* ====================================================== */
/* ========= 🆕 视频入口按钮（聊天页头） ========= */
/* ====================================================== */
.chat-header-video {
  font-size: 22px;
  color: #FF9500;
  cursor: pointer;
  padding: 2px 8px;
}

/* ====================================================== */
/* ========= 🆕 语言选择器 ========= */
/* ====================================================== */
.me-lang-current {
  margin-left: auto;
  font-size: 12px;
  color: #FF9500;
  margin-right: 4px;
  font-weight: 500;
}
.lang-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.lang-modal-overlay.show {
  opacity: 1; pointer-events: auto;
}
.lang-modal {
  width: 100%; max-width: 430px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 20px 16px 32px;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.lang-modal-overlay.show .lang-modal {
  transform: translateY(0);
}
.lang-modal-title {
  font-size: 17px; font-weight: 600;
  text-align: center; margin-bottom: 16px;
  color: #333;
}
.lang-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 12px; border-radius: 12px;
  cursor: pointer; transition: background .15s;
}
.lang-option:hover { background: #fff8f0; }
.lang-option.active { background: #fff3e0; }
.lang-option-flag {
  font-size: 28px; width: 40px; text-align: center;
}
.lang-option-info { flex: 1; }
.lang-option-name { font-size: 15px; font-weight: 500; color: #333; }
.lang-option-desc { font-size: 12px; color: #999; margin-top: 2px; }
.lang-option-check {
  font-size: 20px; color: #FF9500;
  opacity: 0; transition: opacity .15s;
}
.lang-option.active .lang-option-check { opacity: 1; }
.lang-modal-cancel {
  margin-top: 12px; text-align: center;
  padding: 12px; font-size: 15px; color: #999;
  cursor: pointer; border-radius: 12px;
}
.lang-modal-cancel:hover { background: #f5f5f5; }

.ai-settings-modal { max-height: 85vh; overflow-y: auto; padding-bottom: 24px; }
.ai-settings-hint {
  font-size: 13px; color: #888; line-height: 1.5; margin: -8px 0 14px;
}
.ai-settings-note {
  font-size: 12px; color: #999; margin-top: 8px; line-height: 1.5;
}
.ai-settings-note code {
  background: #f0f0f0; padding: 2px 6px; border-radius: 4px; font-size: 11px;
}
.ai-field { margin-bottom: 16px; }
.ai-field label {
  display: block; font-size: 13px; color: #666; margin-bottom: 8px;
}
.ai-field input,
.ai-field select {
  width: 100%; padding: 10px 12px; border: 1px solid #e8e8e8;
  border-radius: 10px; font-size: 14px; box-sizing: border-box;
  background: #fafafa;
}
.ai-field input:focus,
.ai-field select:focus {
  outline: none; border-color: #07c160; background: #fff;
}
.ai-test-btn,
.ai-save-btn {
  width: 100%; padding: 12px; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 8px;
}
.ai-test-btn {
  background: #f5f5f5; color: #333;
}
.ai-save-btn {
  background: linear-gradient(135deg, #9c6bff, #7c4dff); color: #fff;
}
.ai-field input[type="number"] {
  width: 100%; padding: 10px 12px; border: 1px solid #e8e8e8;
  border-radius: 10px; font-size: 14px; box-sizing: border-box;
  background: #fafafa;
}

/* 背景色选择网格 */
.theme-bg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.theme-bg-item {
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
}
.theme-bg-item:hover { transform: scale(1.04); }
.theme-bg-item.active {
  border-color: #9c6bff;
  box-shadow: 0 0 0 3px rgba(156,107,255,.25);
}

/* 主题色圆点 */
.theme-color-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.theme-color-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  flex-shrink: 0;
}
.theme-color-dot:hover { transform: scale(1.15); }
.theme-color-dot.active {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,.25);
  transform: scale(1.1);
}

/* 字体大小按钮 */
.theme-font-row {
  display: flex;
  gap: 8px;
}
.theme-font-btn {
  flex: 1;
  padding: 8px;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  transition: all .2s;
}
.theme-font-btn:hover { border-color: #9c6bff; color: #9c6bff; }
.theme-font-btn.active {
  border-color: #9c6bff;
  background: rgba(156,107,255,.1);
  color: #9c6bff;
  font-weight: 600;
}

/* ====================================================== */
/* ========= 🆕 学习圈 ========= */
/* ====================================================== */
#screen-moments { background: #ededed; }
.moments-body {
  flex: 1;
  overflow-y: auto;
  background: #ededed;
}
.moments-body::-webkit-scrollbar { width: 0; }
.mm-root { padding-bottom: 20px; }

.mm-header {
  position: relative;
  margin-bottom: 60px;
}
.mm-cover {
  height: 220px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.1), transparent 40%),
    linear-gradient(135deg, #ff9a9e, #fad0c4, #a1c4fd);
  background-size: cover;
  position: relative;
}
.mm-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><circle cx="40" cy="50" r="12" fill="%23fff" opacity=".3"/><circle cx="160" cy="120" r="18" fill="%23fff" opacity=".2"/><circle cx="100" cy="80" r="8" fill="%23fff" opacity=".4"/></svg>');
}
.mm-profile {
  position: absolute;
  right: 16px;
  bottom: -40px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.mm-name {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
  margin-bottom: 6px;
}
.mm-avatar {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  border: 2px solid #fff;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.mm-list { background: #fff; }
.mm-post {
  display: flex;
  padding: 16px 14px;
  gap: 12px;
  border-bottom: 1px solid #f3f3f3;
}
.mm-post-avatar {
  width: 42px; height: 42px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.mm-post-body { flex: 1; min-width: 0; }
.mm-post-name {
  color: #5a73a6;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 5px;
}
.mm-post-text {
  font-size: 15px;
  color: #111;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
}
.mm-images {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  max-width: 240px;
}
.mm-images-1 { grid-template-columns: 1fr; max-width: 180px; }
.mm-images-1 .mm-img-wrap { aspect-ratio: 1 / 1; }
.mm-images-2 { grid-template-columns: repeat(2, 1fr); max-width: 200px; }
.mm-images-3 { grid-template-columns: repeat(3, 1fr); }
.mm-images-4 { grid-template-columns: repeat(2, 1fr); max-width: 200px; }
.mm-images-5, .mm-images-6 { grid-template-columns: repeat(3, 1fr); }
.mm-img-wrap {
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}
.mm-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.mm-img-wrap:active img { transform: scale(.96); }

.mm-learning-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: #ff7043;
  background: #fff3e0;
  padding: 2px 8px;
  border-radius: 10px;
}
.mm-post-footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #a0a0a0;
}
.mm-post-time { font-size: 12px; color: #a0a0a0; }
.mm-post-actions { display: flex; gap: 8px; }
.mm-act-btn {
  background: #f4f4f4;
  border-radius: 4px;
  padding: 4px 8px;
  color: #666;
  cursor: pointer;
  font-size: 12px;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.mm-act-btn:active { background: #e6e6e6; }
.mm-act-btn.mm-practice {
  background: #fff3e0;
  color: #FF9500;
}
.mm-act-btn.liked {
  background: #ffe0e0;
  color: #e53935;
}
.mm-social {
  margin-top: 10px;
  padding: 8px 10px;
  background: #f7f7f7;
  border-radius: 4px;
}
.mm-likes {
  font-size: 13px;
  color: #5a73a6;
  padding-bottom: 6px;
  border-bottom: 1px dashed #e0e0e0;
  word-break: break-word;
}
.mm-likes i { color: #5a73a6; margin-right: 4px; font-size: 12px; }
.mm-comments { padding-top: 6px; }
.mm-comment {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  padding: 2px 0;
  word-break: break-word;
}
.mm-cmt-name { color: #5a73a6; }

.moments-header { background: linear-gradient(135deg, #ff9a9e, #fecfef); color: #fff; border-bottom: none; }
.moments-header .chat-header-name, .moments-header .back-btn, .moments-header .chat-header-more { color: #fff; }

/* ====================================================== */
/* ========= 🆕 照片/情境图页 ========= */
/* ====================================================== */
#screen-photos { background: #f5f7fa; }
.photos-body {
  flex: 1;
  overflow-y: auto;
  background: #f5f7fa;
}
.photos-body::-webkit-scrollbar { width: 0; }
.pg-root { padding: 0 0 30px; }
.pg-hero {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  padding: 22px 18px;
  margin-bottom: 14px;
}
.pg-hero-title { font-size: 20px; font-weight: 600; }
.pg-hero-sub { font-size: 13px; opacity: .9; margin-top: 4px; }

.pg-upload-card {
  margin: 0 12px 16px;
  padding: 20px;
  background: #fff;
  border: 2px dashed #c0c4cc;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.pg-upload-card:hover { border-color: #667eea; background: #f0f3ff; }
.pg-upload-card i { font-size: 36px; color: #667eea; }
.pg-upload-title { font-size: 15px; color: #333; margin-top: 6px; font-weight: 500; }
.pg-upload-desc { font-size: 12px; color: #888; margin-top: 3px; }

.pg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px;
}
.pg-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  cursor: pointer;
  transition: all .2s;
}
.pg-card:active { transform: scale(.97); }
.pg-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}
.pg-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.pg-card:hover .pg-img-wrap img { transform: scale(1.05); }
.pg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  padding-bottom: 10px;
  opacity: 0;
  transition: opacity .2s;
}
.pg-card:hover .pg-overlay { opacity: 1; }
.pg-overlay i { margin-right: 4px; color: #ffd86b; }
.pg-info { padding: 10px; }
.pg-title { font-size: 14px; font-weight: 500; color: #111; }
.pg-desc { font-size: 12px; color: #666; margin-top: 3px; }
.pg-desc-zh { font-size: 11px; color: #999; margin-top: 2px; }

/* 聊天中的情境图消息 */
.scene-img-msg {
  max-width: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
  cursor: pointer;
}
.scene-img-msg img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.scene-img-msg.me { margin-left: auto; }

/* ====================================================== */
/* ========= 🆕 每日一句弹窗 ========= */
/* ====================================================== */
.daily-modal {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
}
.daily-box {
  width: 86%;
  background: linear-gradient(135deg, #fff, #f8f4ff);
  border-radius: 16px;
  overflow: hidden;
  animation: popUp .25s;
}
.daily-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #a18cd1, #fbc2eb);
  color: #fff;
  font-weight: 600;
}
.daily-header i:first-child { font-size: 22px; }
.daily-header span { flex: 1; }
.daily-header i:last-child { font-size: 22px; cursor: pointer; }
.daily-body { padding: 18px; }
.daily-en {
  font-size: 20px;
  color: #333;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}
.daily-zh {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
  text-align: center;
}
.daily-tip {
  font-size: 13px;
  color: #a18cd1;
  margin-top: 14px;
  padding: 10px;
  background: #faf5ff;
  border-radius: 8px;
  text-align: center;
}
.daily-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.daily-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #666;
  font-size: 14px;
  cursor: pointer;
}
.daily-btn.primary {
  background: linear-gradient(135deg, #a18cd1, #fbc2eb);
  color: #fff;
  border: none;
}

/* ====================================================== */
/* ========= 🆕 图片查看器 ========= */
/* ====================================================== */
.img-viewer {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.img-viewer img {
  max-width: 100%;
  max-height: 70%;
  object-fit: contain;
  border-radius: 8px;
}
.img-close {
  position: absolute;
  top: 20px; right: 20px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}
.img-actions { margin-top: 20px; }
.img-btn {
  background: #FF9500;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

/* ====================================================== */
/* ========= 🆕 + 菜单 ========= */
/* ====================================================== */
.more-menu {
  position: absolute;
  bottom: 60px;
  left: 10px;
  right: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.1);
  z-index: 30;
  padding: 16px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  animation: slideUpMenu .2s;
}
@keyframes slideUpMenu {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.mm-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 0;
}
.mm-item i {
  width: 44px; height: 44px;
  background: #f2f2f2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #555;
  transition: all .15s;
}
.mm-item:active i { background: #e0e0e0; }
.mm-item span { font-size: 11px; color: #666; }

/* ====================================================== */
/* ========= 🆕 资料页 快捷按钮 ========= */
/* ====================================================== */
.profile-quick-actions {
  display: flex;
  justify-content: space-around;
  padding: 14px 16px;
  margin-top: 10px;
  background: #fff;
}
.pq-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: #333;
  font-size: 12px;
}
.pq-btn i {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #FF9500, #FFA500);
  color: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.pq-btn:nth-child(2) i { background: linear-gradient(135deg, #5b8df5, #4768c4); }
.pq-btn:nth-child(3) i { background: linear-gradient(135deg, #ff9a9e, #fad0c4); }

/* ====================================================== */
/* ========= 🆕 Toast ========= */
/* ====================================================== */
.app-toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.8);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 300;
  max-width: 80%;
  text-align: center;
  animation: toastIn .2s;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -40%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* ========= 创建语伴向导 ========= */
.creator-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center;
}
.creator-modal {
  width: 100%; max-width: 420px; max-height: 92vh;
  background: #fff; border-radius: 20px 20px 0 0;
  display: flex; flex-direction: column; overflow: hidden;
  animation: creatorSlideUp .3s ease;
}
@keyframes creatorSlideUp {
  from { transform: translateY(100%); } to { transform: translateY(0); }
}
.creator-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 8px;
}
.creator-title { font-size: 18px; font-weight: 600; color: #333; }
.creator-close {
  background: none; border: none; font-size: 22px; color: #999; cursor: pointer; padding: 4px;
}
.creator-steps {
  display: flex; padding: 4px 20px 12px; gap: 0;
}
.creator-step {
  flex: 1; text-align: center; font-size: 12px; color: #aaa; position: relative;
  padding: 6px 0; border-bottom: 2px solid #eee; transition: all .2s;
}
.creator-step.active { color: #7c4dff; border-bottom-color: #7c4dff; font-weight: 600; }
.cr-step-num {
  display: inline-block; width: 18px; height: 18px; line-height: 18px;
  border-radius: 50%; background: #eee; color: #999; font-size: 11px;
  margin-right: 4px; text-align: center;
}
.creator-step.active .cr-step-num { background: #7c4dff; color: #fff; }

.creator-panel {
  flex: 1; overflow-y: auto; padding: 8px 20px 12px;
}
.creator-field { margin-bottom: 16px; }
.creator-field label {
  display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px;
}
.cr-required { color: #ff5252; }
.cr-hint { font-size: 11px; color: #aaa; font-weight: 400; margin-left: 6px; }
.creator-field input[type="text"],
.creator-field select,
.creator-field textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid #e8e8e8; border-radius: 12px;
  font-size: 14px; outline: none; transition: border .2s; background: #fafafa;
}
.creator-field input:focus, .creator-field select:focus, .creator-field textarea:focus {
  border-color: #b388ff; background: #fff;
}
.creator-field textarea { resize: vertical; min-height: 60px; }

/* 性别选择 */
.cr-gender-group { display: flex; gap: 10px; }
.cr-gender {
  flex: 1; padding: 10px; text-align: center; border-radius: 12px;
  border: 1.5px solid #e8e8e8; cursor: pointer; font-size: 14px; transition: all .2s;
}
.cr-gender.active { border-color: #7c4dff; background: #f3e5f5; }

/* Chips */
.cr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-chip {
  padding: 6px 14px; border-radius: 20px; border: 1.5px solid #e8e8e8;
  font-size: 13px; cursor: pointer; transition: all .2s; user-select: none;
}
.cr-chip.active { border-color: #7c4dff; background: #ede7f6; color: #5e35b1; }

/* 头像选择 */
.cr-avatar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cr-avatar-item {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  border: 2.5px solid transparent; cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center; background: #f5f5f5;
}
.cr-avatar-item img { width: 100%; height: 100%; object-fit: cover; }
.cr-avatar-item.active { border-color: #7c4dff; box-shadow: 0 0 0 3px rgba(124,77,255,.2); }
.cr-upload-btn { font-size: 20px; color: #aaa; }
.cr-upload-btn:hover { color: #7c4dff; }

/* 预览卡 */
.creator-preview {
  padding: 8px 20px; border-top: 1px solid #f0f0f0; background: #fafafa;
}
.cr-preview-card {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.cr-preview-avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #e8e8e8;
}
.cr-preview-info { flex: 1; min-width: 0; }
.cr-preview-name { font-size: 15px; font-weight: 600; color: #333; }
.cr-preview-lang { font-size: 11px; color: #7c4dff; margin: 2px 0; }
.cr-preview-bio { font-size: 12px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-preview-tags { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.cr-preview-tag {
  font-size: 10px; padding: 2px 8px; border-radius: 10px;
  background: #ede7f6; color: #5e35b1;
}
.cr-preview-tag-empty { background: #f5f5f5; color: #ccc; }

/* 底部按钮 */
.creator-actions {
  display: flex; gap: 10px; padding: 12px 20px 24px; border-top: 1px solid #f0f0f0;
}
.cr-btn {
  flex: 1; padding: 12px; border: none; border-radius: 14px; font-size: 15px;
  font-weight: 600; cursor: pointer; transition: all .2s;
}
.cr-prev { background: #f5f5f5; color: #666; }
.cr-next { background: #7c4dff; color: #fff; }
.cr-next:hover { background: #651fff; }
.cr-create { background: linear-gradient(135deg, #7c4dff, #e040fb); color: #fff; }
.cr-create:hover { opacity: .9; }

/* shake 动画 */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ====================================================== */
/* ========= 🆕 雅思考试独立页 ========= */
/* ====================================================== */
#screen-ielts {
  background: #f5f6fa;
  color: #111;
  position: relative;
  overflow: hidden;
}

.ielts-root {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #f5f6fa;
}

.ielts-topbar {
  display: flex;
  align-items: center;
  padding: 10px 8px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
  z-index: 5;
  gap: 8px;
}
.ielts-back {
  font-size: 28px;
  color: #111;
  cursor: pointer;
  padding: 2px 6px;
}
.ielts-topbar-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: center;
}
.ielts-topbar-title {
  font-size: 17px;
  font-weight: 600;
  color: #111;
}
.ielts-topbar-phase {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}
.ielts-timer {
  font-size: 16px;
  font-weight: 600;
  color: #5b8df5;
  font-feature-settings: 'tnum';
  min-width: 52px;
  text-align: center;
}

/* 进度条 */
.ielts-progress-wrap {
  height: 3px;
  background: #e8e8e8;
  flex-shrink: 0;
}
.ielts-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #5b8df5, #7c4dff);
  width: 0%;
  transition: width .4s ease;
  border-radius: 0 2px 2px 0;
}

/* Part 指示器 */
.ielts-parts {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.ielts-part-dot {
  padding: 4px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  background: #f0f2f5;
  color: #999;
  transition: all .3s;
}
.ielts-part-dot.active {
  background: #5b8df5;
  color: #fff;
  box-shadow: 0 2px 8px rgba(91, 141, 245, .3);
}
.ielts-part-dot.done {
  background: #e8f5e9;
  color: #4caf50;
}

/* 主内容区 */
.ielts-main {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 20px;
  background: #f5f6fa;
  min-height: 0;
}
.ielts-main::-webkit-scrollbar { width: 0; }

/* 消息 */
.ielts-msg {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  animation: ieltsMsgIn .25s ease;
  flex-shrink: 0;
}
@keyframes ieltsMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ielts-msg.user { justify-content: flex-end; }
.ielts-msg.system { justify-content: center; }
.ielts-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.ielts-msg-body { max-width: 78%; min-width: 0; }
.ielts-msg-name {
  font-size: 12px;
  color: #888;
  margin-bottom: 3px;
  font-weight: 500;
}
.ielts-examiner-badge {
  font-size: 10px;
  background: #5b8df520;
  color: #5b8df5;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}
.ielts-msg-bubble {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.ielts-msg-bubble.examiner {
  background: #fff;
  color: #111;
  border-top-left-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.ielts-msg-bubble.user {
  background: #5b8df5;
  color: #fff;
  border-top-right-radius: 2px;
}
.ielts-msg-translation {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
  padding: 0 4px;
  line-height: 1.4;
}
.ielts-system-text {
  font-size: 12px;
  color: #888;
  padding: 4px 12px;
  background: rgba(0,0,0,.04);
  border-radius: 12px;
}
.ielts-bullet {
  color: #5b8df5;
  margin-right: 4px;
}

/* 话题卡 */
.ielts-topic-card {
  background: linear-gradient(135deg, #e8eaf6, #ede7f6);
  border: 1px solid #c5cae9;
  border-radius: 12px;
  padding: 14px 16px;
  max-width: 92%;
  text-align: left;
}
.ielts-topic-title {
  font-size: 15px;
  font-weight: 600;
  color: #3949ab;
  margin-bottom: 8px;
}
.ielts-topic-content {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}

/* 准备倒计时 */
.ielts-prep-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}
.ielts-prep-ring {
  position: relative;
  width: 60px;
  height: 60px;
}
.ielts-prep-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ielts-prep-ring circle {
  transition: stroke-dashoffset 1s linear, stroke .3s;
}
.ielts-prep-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #5b8df5;
}
.ielts-prep-label {
  font-size: 12px;
  color: #888;
}

/* 底部输入区 */
.ielts-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.ielts-mic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5b8df5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(91, 141, 245, .3);
  transition: all .2s;
}
.ielts-mic:active { transform: scale(.92); }
.ielts-mic.recording {
  background: #ff4757;
  box-shadow: 0 0 0 0 rgba(255, 71, 87, .6);
  animation: mic-pulse 1s infinite;
}
@keyframes mic-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,71,87,.6); }
  70%  { box-shadow: 0 0 0 10px rgba(255,71,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,71,87,0); }
}
.ielts-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.ielts-input-wrap input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  background: #f7f7f7;
  font-size: 14px;
  outline: none;
}
.ielts-input-wrap input:focus {
  border-color: #5b8df5;
  background: #fff;
}
.ielts-send {
  position: absolute;
  right: 6px;
  background: #5b8df5;
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.ielts-next-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #5b8df5, #7c4dff);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s;
  white-space: nowrap;
}
.ielts-next-btn:active { transform: scale(.95); }

/* 成绩单 */
.ielts-score-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  max-width: 92%;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.ielts-score-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, #5b8df5, #7c4dff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}
.ielts-score-overall {
  padding: 20px 16px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}
.ielts-score-big {
  font-size: 48px;
  font-weight: 700;
  color: #5b8df5;
  line-height: 1;
}
.ielts-score-label {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}
.ielts-score-breakdown {
  padding: 12px 16px;
}
.ielts-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}
.ielts-score-row:last-child { border-bottom: none; }
.ielts-score-criterion {
  flex: 1;
  font-size: 12px;
  color: #555;
  min-width: 0;
}
.ielts-score-val {
  font-size: 16px;
  font-weight: 700;
  color: #5b8df5;
  min-width: 32px;
  text-align: center;
}
.ielts-score-bar-wrap {
  width: 60px;
  height: 4px;
  background: #e8e8e8;
  border-radius: 2px;
  overflow: hidden;
}
.ielts-score-bar {
  height: 100%;
  background: linear-gradient(90deg, #5b8df5, #7c4dff);
  border-radius: 2px;
  transition: width .6s ease;
}
.ielts-score-tips,
.ielts-score-answers {
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
}
.ielts-tip-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}
.ielts-score-tips ul,
.ielts-rubric-tips ul {
  padding-left: 16px;
  margin: 0;
}
.ielts-score-tips li,
.ielts-rubric-tips li {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 4px;
}
.ielts-answer-item {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}
.ielts-answer-item:last-child { border-bottom: none; }
.ielts-answer-q {
  font-size: 12px;
  color: #888;
  margin-bottom: 3px;
}
.ielts-answer-a {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
}

/* 评分标准页 */
.ielts-rubric-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 20px;
}
.ielts-rubric-scroll::-webkit-scrollbar { width: 0; }

.ielts-rubric-hero {
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, #e8eaf6, #ede7f6);
}
.ielts-rubric-hero-icon {
  font-size: 40px;
  margin-bottom: 8px;
}
.ielts-rubric-hero-title {
  font-size: 20px;
  font-weight: 700;
  color: #3949ab;
}
.ielts-rubric-hero-sub {
  font-size: 13px;
  color: #7986cb;
  margin-top: 4px;
}
.ielts-rubric-section {
  margin: 12px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.ielts-rubric-criterion {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #3949ab;
  background: #f5f5ff;
  border-bottom: 1px solid #e8e8e8;
}
.ielts-rubric-row {
  display: flex;
  padding: 10px 16px;
  border-bottom: 1px solid #f3f3f3;
  gap: 10px;
}
.ielts-rubric-row:last-child { border-bottom: none; }
.ielts-rubric-band {
  font-size: 13px;
  font-weight: 700;
  color: #5b8df5;
  min-width: 56px;
  flex-shrink: 0;
}
.ielts-rubric-desc {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}
.ielts-rubric-tips {
  margin: 0 12px 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

/* ========= 视频通话沉浸式陪聊优化 ========= */
#screen-video-call {
  background: #F7F1E8;
  color: #2A2A2A;
}

.vc3d-immersive {
  background:
    radial-gradient(circle at 22% 8%, rgba(245,199,126,.42), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(255,255,255,.82), transparent 30%),
    linear-gradient(180deg, #F7F1E8 0%, #f3e5d2 100%);
}

.vc3d-fullscreen-bg {
  background:
    radial-gradient(circle at 16% 20%, rgba(245,199,126,.38), transparent 30%),
    radial-gradient(circle at 78% 10%, rgba(255,255,255,.72), transparent 34%),
    linear-gradient(135deg, #F7F1E8 0%, #f0ddc3 100%) !important;
}

.vc3d-fullscreen-bg canvas {
  opacity: .18;
  filter: saturate(.8) blur(.2px);
}

.vc3d-overlay {
  gap: 10px;
  padding: 10px 12px 12px;
}

.vc3d-glass-header {
  margin: 0;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 14px 36px rgba(92,62,25,.12);
  color: #2A2A2A;
}

.vc3d-glass-header .vc3d-back {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.62);
  color: #2A2A2A;
  transition: transform .16s ease, background .16s ease;
}

.vc3d-glass-header .vc3d-back:active,
.vc3d-glass-footer button:active,
.vc3d-prompt-chip:active {
  transform: scale(.94);
}

.vc3d-glass-header .vc3d-brand {
  flex: 1;
  min-width: 0;
}

.vc3d-glass-header .vc3d-logo,
.vc3d-logo {
  color: #2A2A2A;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: none;
  text-transform: none;
}

.vc3d-mode-pill {
  flex: 0 0 auto;
  max-width: 116px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(245,199,126,.32);
  color: rgba(42,42,42,.78);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vc3d-scene-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.vc3d-avatar-window {
  position: relative;
  flex: 0 0 50%;
  width: 100%;
  min-height: 330px;
  height: auto;
  margin: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.78), transparent 24%),
    linear-gradient(145deg, rgba(255,255,255,.58), rgba(245,199,126,.28));
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 22px 60px rgba(96,64,28,.18);
  overflow: hidden;
}

.vc3d-avatar-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(42,42,42,.16), transparent 42%);
  z-index: 1;
}

.vc3d-avatar-glow {
  position: absolute;
  inset: -22%;
  background:
    radial-gradient(circle at 36% 28%, rgba(245,199,126,.42), transparent 28%),
    radial-gradient(circle at 72% 42%, rgba(255,255,255,.62), transparent 24%),
    radial-gradient(circle at 50% 78%, rgba(53,229,139,.16), transparent 26%);
  animation: vc3dGlowDrift 9s ease-in-out infinite;
}

.vc3d-live-dot {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #35E58B;
  box-shadow: 0 0 0 4px rgba(53,229,139,.18), 0 0 18px rgba(53,229,139,.68);
  animation: vc3dOnlinePulse 1.6s ease-in-out infinite;
  z-index: 4;
}

.vc3d-avatar-window .vc3d-stage,
.vc3d-stage {
  inset: 6px 0 0;
  animation: vc3dBreath 4.8s ease-in-out infinite, vc3dFloat 5.4s ease-in-out infinite;
  transform-origin: center bottom;
  z-index: 2;
}

.vc3d-avatar-window .vc3d-stage canvas,
.vc3d-stage canvas {
  filter: drop-shadow(0 24px 30px rgba(94,61,26,.2));
}

.vc3d-avatar-window .vc3d-status,
.vc3d-status {
  left: 14px;
  right: 14px;
  bottom: 14px;
  transform: none;
  justify-content: flex-start;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.72);
  color: #2A2A2A;
  box-shadow: 0 12px 28px rgba(63,42,18,.14);
  animation: vc3dStatusFade .28s ease both;
  z-index: 5;
}

.vc3d-status-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vc3d-status-main {
  font-size: 14px;
  font-weight: 800;
  color: #2A2A2A;
}

.vc3d-status-sub {
  font-size: 12px;
  color: rgba(42,42,42,.6);
}

.vc3d-status-dot {
  width: 9px;
  height: 9px;
  background: #35E58B;
  box-shadow: 0 0 12px rgba(53,229,139,.7);
}

.vc3d-bg-switcher {
  display: none;
}

.vc3d-chat-glass {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 18%, rgba(245,199,126,.16), transparent 28%),
    rgba(40,40,40,.35);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 18px 42px rgba(80,50,18,.14);
}

.vc3d-guide-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 14px 6px;
  padding: 13px;
  border-radius: 18px;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.24);
  color: rgba(255,255,255,.94);
  box-shadow: 0 12px 28px rgba(0,0,0,.1);
  animation: vc3dBubbleIn .34s ease both;
}

.vc3d-guide-card.hidden {
  display: none;
}

.vc3d-guide-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(245,199,126,.72);
  color: #2A2A2A;
  font-size: 21px;
}

.vc3d-guide-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.vc3d-guide-copy strong {
  font-size: 14px;
}

.vc3d-guide-copy span {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,.72);
}

.vc3d-chat-glass .vc3d-bubbles,
.vc3d-bubbles {
  flex: 1;
  padding: 10px 14px 8px;
}

.vc3d-bubble {
  animation: vc3dBubbleIn .34s ease both;
}

.vc3d-chat-glass .vc3d-bubble-inner,
.vc3d-bubble-inner {
  max-width: 82%;
  border-radius: 16px;
  padding: 10px 13px;
  font-size: 14px;
  line-height: 1.45;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.38);
  color: #2A2A2A;
  box-shadow: 0 10px 24px rgba(0,0,0,.1);
}

.vc3d-chat-glass .vc3d-bubble-inner.ai,
.vc3d-bubble-inner.ai {
  background: rgba(255,255,255,.62);
  color: #2A2A2A;
  border-top-left-radius: 6px;
}

.vc3d-chat-glass .vc3d-bubble-inner.me,
.vc3d-bubble-inner.me {
  background: rgba(245,199,126,.82);
  color: #2A2A2A;
  border-top-right-radius: 6px;
}

.vc3d-chat-glass .vc3d-bubble-inner.ai .zh,
.vc3d-bubble-inner.ai .zh {
  color: rgba(42,42,42,.58);
}

.vc3d-chat-glass .vc3d-bubble-inner.system,
.vc3d-bubble-inner.system {
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.82);
  border-radius: 999px;
  max-width: 100%;
}

.vc3d-chat-glass .vc3d-bubble-avatar,
.vc3d-bubble-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.62);
}

.vc3d-prompt-strip {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.vc3d-prompt-strip::-webkit-scrollbar {
  display: none;
}

.vc3d-prompt-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255,255,255,.22);
  color: rgba(255,255,255,.94);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0,0,0,.1);
  transition: transform .16s ease, background .16s ease;
  white-space: nowrap;
}

.vc3d-prompt-chip:hover {
  background: rgba(255,255,255,.3);
}

.vc3d-chat-glass .vc3d-feedback,
.vc3d-feedback {
  margin: 0 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(245,199,126,.35);
  border-left: 0;
  background: rgba(255,255,255,.74);
  color: rgba(42,42,42,.78);
}

.vc3d-glass-footer {
  margin: 0;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  border-radius: 24px;
  background: rgba(255,255,255,.46);
  border: 1px solid rgba(255,255,255,.68);
  box-shadow: 0 18px 44px rgba(78,48,18,.14);
}

.vc3d-spark {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,.62);
  color: #8b63ce;
  font-size: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 22px rgba(64,40,16,.1);
  transition: transform .16s ease, box-shadow .16s ease;
}

.vc3d-glass-footer .vc3d-input,
.vc3d-input {
  height: 44px;
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255,255,255,.58);
  color: #2A2A2A;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,.64);
  transition: box-shadow .18s ease, background .18s ease;
}

.vc3d-glass-footer .vc3d-input::placeholder,
.vc3d-input::placeholder {
  color: rgba(42,42,42,.42);
}

.vc3d-glass-footer .vc3d-input:focus,
.vc3d-input:focus {
  background: rgba(255,255,255,.74);
  box-shadow: 0 0 0 3px rgba(245,199,126,.35), 0 0 24px rgba(245,199,126,.28);
}

.vc3d-glass-footer .vc3d-mic,
.vc3d-glass-footer .vc3d-send,
.vc3d-mic,
.vc3d-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F5C77E;
  color: #2A2A2A;
  box-shadow: 0 12px 26px rgba(245,199,126,.38);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.vc3d-glass-footer .vc3d-mic.active,
.vc3d-mic.active {
  background: #35E58B;
  color: #11331f;
  animation: vc3dMicPulse .8s infinite;
}

.vc3d-glass-footer .vc3d-send {
  background: #F5C77E;
  color: #2A2A2A;
}

@keyframes vc3dBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

@keyframes vc3dFloat {
  0%, 100% { translate: 0 -4px; }
  50% { translate: 0 4px; }
}

@keyframes vc3dGlowDrift {
  0%, 100% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(3%, 2%, 0) scale(1.04); }
}

@keyframes vc3dOnlinePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(53,229,139,.18), 0 0 18px rgba(53,229,139,.68); }
  50% { transform: scale(1.16); box-shadow: 0 0 0 8px rgba(53,229,139,.06), 0 0 26px rgba(53,229,139,.85); }
}

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

@keyframes vc3dBubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-height: 760px) {
  .vc3d-overlay {
    gap: 8px;
    padding: 8px 10px 10px;
  }
  .vc3d-avatar-window {
    flex-basis: 46%;
    min-height: 280px;
  }
  .vc3d-status-main {
    font-size: 13px;
  }
}
