/* ============================================
   赛博学委 - QQ PC 风格聊天界面样式（高度还原）
   ============================================ */

:root {
  /* QQ PC 核心色彩 */
  --qq-blue: #12B7F5;
  --qq-blue-hover: #0EA5E0;
  --qq-blue-light: #E8F7FE;
  --qq-blue-pale: #F0FAFF;

  /* 侧边栏 */
  --sidebar-bg: #F2F2F2;
  --sidebar-hover: #E2E2E2;
  --sidebar-active: #DADADA;
  --nav-rail-bg: #EBEBEB;
  --nav-rail-hover: #DEDEDE;
  --nav-rail-active: #FFFFFF;
  --nav-rail-active-bg: #12B7F5;

  /* 聊天区 */
  --chat-bg: #F5F5F5;
  --chat-header-bg: #FFFFFF;
  --msg-bg-other: #FFFFFF;
  --msg-bg-self: #CCEBFC;
  --msg-bg-system: #E8E8E8;

  /* 文字 */
  --text-primary: #1A1A1A;
  --text-secondary: #4D4D4D;
  --text-dim: #999999;
  --text-placeholder: #B3B3B3;

  /* 功能色 */
  --danger: #FF5959;
  --warning: #FF8C00;
  --success: #07C160;
  --online: #07C160;

  /* 边框与阴影 */
  --border-light: #E6E6E6;
  --border-medium: #DEDEDE;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-msg: 0 1px 2px rgba(0,0,0,0.04);

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* 尺寸 */
  --nav-rail-w: 54px;
  --conv-panel-w: 260px;
  --chat-header-h: 52px;
  --input-area-h: 152px;
  --demo-panel-w: 232px;
  --demo-panel-inset: 16px;
  --stage-gap: 24px;

  /* 过渡 */
  --ease-fast: 0.12s ease;
  --ease-normal: 0.18s ease;
  --ease-slow: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-drag: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background:
    linear-gradient(128deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.92) 23%, rgba(255,255,255,0) 23.4%, rgba(255,255,255,0) 100%),
    linear-gradient(35deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 62%, rgba(255,255,255,0.68) 62.4%, rgba(255,255,255,0.2) 83%, rgba(255,255,255,0) 83.5%),
    linear-gradient(142deg, #16BDFC 0%, #A4F4EF 20%, #F1DDF8 38%, #FBFDFF 56%, #D8FBFF 72%, #66BEFF 100%);
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  position: relative;
  padding-left: calc(var(--demo-panel-w) + var(--demo-panel-inset) + var(--stage-gap));
  transition: padding-left 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
}

body.demo-panel-collapsed {
  padding-left: 88px;
}

body::before {
  content: "";
  position: fixed;
  inset: -14vh -10vw;
  background:
    linear-gradient(118deg, rgba(28,190,255,0.42) 0%, rgba(28,190,255,0.16) 18%, rgba(255,255,255,0) 18.5%),
    linear-gradient(146deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,0.62) 35.4%, rgba(255,255,255,0.18) 56%, rgba(255,255,255,0) 56.5%),
    linear-gradient(42deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 64%, rgba(81,197,255,0.24) 64.4%, rgba(142,190,255,0.34) 100%);
  filter: blur(18px);
  opacity: 0.94;
  pointer-events: none;
  z-index: 0;
}

/* ===================== 主容器 ===================== */
.app-container {
  max-width: 1200px;
  width: calc(100vw - var(--demo-panel-w) - var(--demo-panel-inset) - 64px);
  height: 740px;
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(72, 142, 190, 0.15);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.82) inset,
    0 36px 96px rgba(54, 122, 176, 0.28),
    0 18px 42px rgba(13, 50, 88, 0.13);
  position: relative;
  background: #FFFFFF;
  background-clip: padding-box;
  z-index: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
  isolation: isolate;
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1), max-width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

body.demo-panel-collapsed .app-container {
  width: calc(100vw - 104px);
}


/* ===================== 欢迎页 ===================== */
.welcome-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(145deg, #EAF8FF 0%, #D4F4FF 34%, #F4ECFF 58%, #EAF4FF 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
  color: #333;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.welcome-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(18, 183, 245, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.welcome-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
}

.welcome-overlay .welcome-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(18, 183, 245, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(18, 183, 245, 0.15);
  position: relative;
  z-index: 1;
}

.welcome-overlay .welcome-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 2px;
  color: #2C3E50;
  position: relative;
  z-index: 1;
}

.welcome-overlay .welcome-subtitle {
  font-size: 15px;
  opacity: 0.7;
  margin-bottom: 36px;
  font-weight: 400;
  color: #555;
  position: relative;
  z-index: 1;
}

.welcome-overlay .welcome-btn {
  padding: 12px 48px;
  background: #12B7F5;
  border: none;
  border-radius: 24px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(18, 183, 245, 0.3);
}

.welcome-overlay .welcome-btn:hover {
  background: #0EA5E0;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(18, 183, 245, 0.4);
}

/* ===================== 侧边栏整体 ===================== */
.sidebar {
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
}

/* ===================== 左侧导航栏（浅色） ===================== */
.nav-rail {
  width: var(--nav-rail-w);
  background: linear-gradient(180deg, rgba(250,253,255,0.96) 0%, rgba(235,246,253,0.94) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 8px;
  flex-shrink: 0;
  border-right: 1px solid #D9DEE3;
}

.nav-top {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  position: relative;
  cursor: pointer;
  border-radius: 50%;
  overflow: visible;
}

.nav-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.nav-avatar .online-badge {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--online);
  border: 2px solid var(--nav-rail-bg);
  animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
  0%, 100% { box-shadow: 0 0 0 0 rgba(7, 193, 96, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(7, 193, 96, 0); }
}

.nav-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: auto;
}

.nav-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #808080;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease-fast);
  position: relative;
}

.nav-icon:hover {
  background: var(--nav-rail-hover);
  color: #555;
}

.nav-icon.active {
  color: #FFFFFF;
  background: var(--nav-rail-active-bg);
  border-radius: 10px;
}

.nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--danger);
  color: white;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 14px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.nav-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
}

/* ===================== 会话列表面板 ===================== */
.conv-panel {
  width: var(--conv-panel-w);
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  overflow: hidden;
  border-right: 1px solid #E4E4E4;
}

/* 搜索栏 */
.search-bar {
  height: var(--chat-header-h);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8F8F8;
  border-bottom: 1px solid #E6E6E6;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  background: #EBEBEB;
  border: 1px solid transparent;
  transition: all var(--ease-fast);
}

.search-input-wrap:focus-within {
  background: #EBEBEB;
  border-color: transparent;
  box-shadow: none;
}

.search-input-wrap svg {
  flex-shrink: 0;
}

.search-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-placeholder);
  font-size: 12.5px;
  outline: none;
  min-width: 0;
  cursor: default;
  opacity: 1;
  -webkit-text-fill-color: var(--text-placeholder);
}

.search-input-wrap input:disabled {
  color: var(--text-placeholder);
  opacity: 1;
}

.search-input-wrap input::placeholder {
  color: var(--text-placeholder);
}

.add-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #808080;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease-fast);
  flex-shrink: 0;
  font-weight: 300;
  line-height: 1;
}

.add-btn:hover {
  background: #E0E0E0;
  color: #333;
}

/* 会话列表滚动区 */
.conversation-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 0;
}

.conversation-list::-webkit-scrollbar {
  display: none;
}

/* 会话条目 */
.conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 4px 1px;
  padding: 11px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s ease;
  position: relative;
}

.conv-item:hover {
  background: var(--sidebar-hover);
}

.conv-item.active {
  background: #D5D5D5;
}

.conv-item .conv-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  position: relative;
}

.conv-item .avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  font-weight: 600;
  overflow: hidden;
}

.conv-item .avatar-circle.group-avatar {
  font-size: 10px;
  text-align: center;
  line-height: 1.1;
}

.conv-item .conv-avatar .badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--sidebar-bg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.conv-item.active .conv-avatar .badge {
  border-color: #D5D5D5;
}

.conv-item .conv-avatar .dot-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--sidebar-bg);
}

.conv-item .conv-info {
  flex: 1;
  min-width: 0;
}

.conv-item .conv-name {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.conv-item .conv-name .name-text {
  color: #1A1A1A;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-item .conv-name .time {
  font-size: 11px;
  color: #ADADAD;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

.conv-item .conv-preview {
  color: #999999;
  font-size: 12px;
  margin-top: 3px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 3px;
}

.conv-item .conv-preview .preview-mute {
  font-size: 10px;
  flex-shrink: 0;
  opacity: 0.65;
}

/* ===================== AI 聊天区 ===================== */
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--chat-bg);
  min-width: 0;
  position: relative;
}

.chat-area.hidden {
  display: none;
}

/* 聊天头部 */
.chat-header {
  height: var(--chat-header-h);
  padding: 0 20px;
  background: var(--chat-header-bg);
  border-bottom: 1px solid #E9E9E9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-header .chat-title {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1A1A1A;
}

.chat-header .chat-title .online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
  flex-shrink: 0;
}

.chat-header .chat-actions {
  display: flex;
  gap: 4px;
}

.chat-header .chat-actions button {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #808080;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease-fast);
}

.chat-header .chat-actions button:hover {
  background: #F0F0F0;
  color: #333;
}

/* ===================== 消息列表 ===================== */
.chat-messages {
  flex: 1;
  overflow-y: overlay;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-messages::-webkit-scrollbar {
  width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #D0D0D0;
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #B8B8B8;
}

/* 时间分割线 */
.time-divider {
  text-align: center;
  padding: 4px 0;
}

.time-divider span {
  display: inline-block;
  padding: 3px 10px;
  background: #E0E0E0;
  color: #888888;
  font-size: 11px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}

/* 消息盒子 */
.message {
  display: flex;
  gap: 10px;
  max-width: 72%;
  animation: msgSlideIn 0.25s ease both;
  position: relative;
}

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

/* AI / 对方消息：左对齐 */
.message.ai {
  align-self: flex-start;
}

/* 用户 / 自己消息：右对齐 */
.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message .msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.message.ai .msg-avatar {
  background: linear-gradient(140deg, #12B7F5, #4A6FDC);
  color: white;
}

.message.user .msg-avatar {
  background: linear-gradient(140deg, #FF7676, #E85454);
  color: white;
}

.message .msg-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}

.message.user .msg-body {
  align-items: flex-end;
}

.message .msg-sender {
  font-size: 11.5px;
  color: var(--text-dim);
  padding: 0 6px;
  font-weight: 500;
}

.message .msg-content {
  padding: 9px 13px;
  border-radius: var(--radius-lg);
  line-height: 1.58;
  word-break: break-word;
  position: relative;
  font-size: 13.5px;
  letter-spacing: 0.2px;
}

/* AI 消息气泡：白色，左上角微尖 */
.message.ai .msg-content {
  background: var(--msg-bg-other);
  border-top-left-radius: 4px;
  box-shadow: var(--shadow-msg);
  color: #1A1A1A;
}

/* 用户消息气泡：蓝色，右上角微尖 */
.message.user .msg-content {
  background: var(--msg-bg-self);
  border-top-right-radius: 4px;
  color: #1A1A1A;
}

.message .msg-time {
  font-size: 10.5px;
  color: #B0B0B0;
  padding: 0 6px;
  opacity: 0;
  transition: opacity var(--ease-normal);
}

.message:hover .msg-time {
  opacity: 1;
}

/* ===================== 系统消息 ===================== */
.system-message {
  text-align: center;
  padding: 2px 0;
  animation: msgSlideIn 0.25s ease both;
}

.system-message span {
  display: inline-block;
  padding: 3px 12px;
  background: #E8E8E8;
  color: #999;
  font-size: 11.5px;
  border-radius: 3px;
}

/* ===================== AI Thinking 动画 ===================== */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  align-items: center;
}

.typing-indicator .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C0C0C0;
  animation: typingBounce 1.2s infinite ease;
}

.typing-indicator .dot:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-8px); opacity: 1; }
}

/* ===================== 卡片消息（作业/考试/活动等） ===================== */
.card-message {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  max-width: 360px;
  border: 1px solid #EEEEEE;
  transition: box-shadow var(--ease-fast);
}

.card-message:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-message.homework {
  border-left: 4px solid #FF8C00;
  border-radius: 4px 10px 10px 4px;
}

.card-message.exam {
  border-left: 4px solid var(--danger);
  border-radius: 4px 10px 10px 4px;
}

.card-message.activity {
  border-left: 4px solid #9B59B6;
  border-radius: 4px 10px 10px 4px;
}

.card-message.conflict {
  border-left: 4px solid var(--danger);
  border-radius: 4px 10px 10px 4px;
  background: #FFFAFA;
}

.card-message .card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
  color: #1A1A1A;
}

.card-message .card-header .card-icon {
  font-size: 17px;
  line-height: 1;
}

.card-message .card-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.card-message .card-body .field {
  display: flex;
  gap: 6px;
}

.card-message .card-body .field .label {
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.card-message .card-footer {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.card-message .card-footer button {
  padding: 5px 15px;
  border-radius: 4px;
  border: 1px solid #D0D0D0;
  background: #FFF;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
  transition: all var(--ease-fast);
  font-family: inherit;
}

.card-message .card-footer button:hover {
  border-color: var(--qq-blue);
  color: var(--qq-blue);
  background: var(--qq-blue-pale);
}

.card-message .card-footer button.primary {
  background: var(--qq-blue);
  border-color: var(--qq-blue);
  color: white;
}

.card-message .card-footer button.primary:hover {
  background: var(--qq-blue-hover);
}

/* ===================== 课表卡片 ===================== */
.schedule-card {
  background: #FFF;
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow-md);
  max-width: 460px;
  border: 1px solid #EEEEEE;
}

.schedule-card .schedule-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1A1A1A;
}

.schedule-card .schedule-grid {
  display: grid;
  grid-template-columns: 52px repeat(5, 1fr);
  gap: 3px;
  font-size: 11px;
}

.schedule-card .schedule-grid .grid-header {
  background: var(--qq-blue);
  color: white;
  padding: 6px 3px;
  text-align: center;
  font-weight: 600;
  border-radius: 4px;
  font-size: 11px;
}

.schedule-card .schedule-grid .grid-time {
  background: #F0F0F0;
  padding: 8px 4px;
  text-align: center;
  font-size: 10px;
  color: var(--text-dim);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}

.schedule-card .schedule-grid .grid-cell {
  padding: 6px 4px;
  text-align: center;
  border-radius: 4px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1.3;
  color: white;
  font-weight: 500;
  transition: transform 0.1s ease;
}

.schedule-card .schedule-grid .grid-cell:hover {
  transform: scale(1.05);
}

.schedule-card .schedule-grid .grid-cell.empty {
  background: #F8F8F8;
}

/* ===================== 今日日程卡片 ===================== */
.today-card {
  background: #FFF;
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow-md);
  max-width: 380px;
  border: 1px solid #EEEEEE;
}

.today-card .today-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1A1A1A;
}

.today-card .today-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #F5F5F5;
  transition: background var(--ease-fast);
}

.today-card .today-item:hover {
  background: #FAFAFA;
  margin: 0 -8px;
  padding: 9px 8px;
  border-radius: 6px;
}

.today-card .today-item:last-child {
  border-bottom: none;
}

.today-card .today-item .time-badge {
  background: var(--qq-blue-light);
  color: var(--qq-blue);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.today-card .today-item .course-name {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
}

.today-card .today-item .course-location {
  font-size: 12px;
  color: var(--text-dim);
}

/* ===================== 输入区 ===================== */
.chat-input-area {
  padding: 0;
  background: #FFF;
  border-top: 1px solid #E9E9E9;
  flex-shrink: 0;
}

.input-toolbar {
  display: flex;
  gap: 2px;
  padding: 6px 16px 4px;
}

.input-toolbar button {
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 17px;
  color: #808080;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease-fast);
  position: relative;
}

.input-toolbar button:hover {
  color: var(--qq-blue);
  background: #F0F8FF;
}

.input-toolbar button:active {
  transform: scale(0.92);
}

.input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 0 16px 12px;
}

.input-row textarea {
  flex: 1;
  border: none;
  padding: 8px 0;
  font-size: 13.5px;
  font-family: inherit;
  resize: none;
  outline: none;
  min-height: 36px;
  max-height: 96px;
  line-height: 1.55;
  background: transparent;
  color: #1A1A1A;
}

.input-row textarea::placeholder {
  color: var(--text-placeholder);
}

.input-row .send-btn {
  padding: 7px 18px;
  background: var(--qq-blue);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--ease-fast);
  height: 35px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.input-row .send-btn:hover {
  background: var(--qq-blue-hover);
}

.input-row .send-btn:active {
  transform: scale(0.96);
}

.input-row .send-btn:disabled {
  background: #D6D6D6;
  color: #999;
  cursor: not-allowed;
}

/* ===================== Demo 场景按钮栏 ===================== */
.demo-bar {
  padding: 7px 16px 8px;
  background: #FAFAFA;
  border-top: 1px solid #F0F0F0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.demo-bar .demo-btn {
  order: 1;
  padding: 4px 12px;
  border: 1px solid #E2E2E2;
  border-radius: 4px;
  background: #FFF;
  cursor: pointer;
  font-size: 11.5px;
  color: #666;
  transition: all var(--ease-fast);
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}

.demo-bar .demo-btn:hover {
  border-color: var(--qq-blue);
  color: var(--qq-blue);
  background: var(--qq-blue-pale);
}

.demo-bar .demo-btn:active {
  transform: scale(0.96);
}

.warm-realtime-notice {
  order: 2;
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #FED7AA;
  border-radius: 6px;
  background: #FFF7ED;
  color: #9A3412;
  font-size: 10.5px;
  line-height: 1.4;
}

.warm-realtime-notice[hidden] {
  display: none;
}

.warm-realtime-notice::before {
  content: "提示";
  flex-shrink: 0;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(234, 88, 12, 0.12);
  color: #C2410C;
  font-size: 10px;
  font-weight: 700;
}

/* ===================== 转发消息样式 ===================== */
.forward-msg {
  background: #F5F5F5;
  border-radius: 6px;
  padding: 10px 12px;
  border-left: 3px solid var(--qq-blue);
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.forward-msg .forward-from {
  color: var(--qq-blue);
  font-size: 11.5px;
  font-weight: 500;
  margin-bottom: 4px;
}

/* ===================== 群聊预览视图 ===================== */
.group-chat-view {
  flex: 1;
  display: none;
  flex-direction: column;
  background: var(--chat-bg);
  min-width: 0;
}

.group-chat-view.active {
  display: flex;
}

.group-chat-header {
  height: var(--chat-header-h);
  padding: 0 20px;
  background: #FFF;
  border-bottom: 1px solid #E9E9E9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.group-chat-header .group-title {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1A1A1A;
}

.group-chat-header .group-title .member-count {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
}

.group-chat-header .chat-actions button {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #808080;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.group-chat-header .chat-actions button:hover {
  background: #F0F0F0;
  color: #333;
}

.group-chat-msgs {
  flex: 1;
  overflow-y: overlay;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.group-chat-msgs::-webkit-scrollbar {
  width: 5px;
}

.group-chat-msgs::-webkit-scrollbar-thumb {
  background: #D0D0D0;
  border-radius: 3px;
}

/* 群消息条目 */
.group-msg {
  display: flex;
  gap: 10px;
  animation: msgSlideIn 0.2s ease both;
}

.group-msg .gm-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
  font-weight: 500;
}

.group-msg .gm-body {
  flex: 1;
  min-width: 0;
}

.group-msg .gm-name {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
  font-weight: 400;
}

.group-msg .gm-bubble {
  display: inline-block;
  padding: 8px 12px;
  background: white;
  border-radius: 4px 10px 10px 10px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 75%;
  box-shadow: var(--shadow-sm);
  word-break: break-word;
}

.group-msg .gm-time {
  font-size: 11px;
  color: #B0B0B0;
  margin-top: 3px;
}

/* 转发提示栏 */
.group-hint-bar {
  padding: 14px 20px;
  background: linear-gradient(135deg, #E8F7FE 0%, #F0E6FF 100%);
  border-top: 1px solid #E5E5E5;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--ease-fast);
}

.group-hint-bar:hover {
  background: linear-gradient(135deg, #DAF2FD 0%, #E8DAFF 100%);
}

.group-hint-bar:active {
  transform: scale(0.995);
}

.group-hint-bar .hint-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.group-hint-bar .hint-text {
  flex: 1;
}

.group-hint-bar .hint-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.group-hint-bar .hint-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.group-hint-bar .hint-arrow {
  color: var(--qq-blue);
  font-size: 20px;
  font-weight: 300;
}

/* ===================== 课表/日程右侧面板 ===================== */
.schedule-panel {
  position: absolute;
  top: 0; right: 0;
  width: 400px;
  height: 100%;
  background: #FFF;
  box-shadow: -2px 0 20px rgba(0,0,0,0.08);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #E5E5E5;
}

.schedule-panel.open {
  transform: translateX(0);
}

.schedule-panel .panel-header {
  padding: 15px 18px;
  border-bottom: 1px solid #E9E9E9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}

.schedule-panel .panel-header button {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease-fast);
}

.schedule-panel .panel-header button:hover {
  background: #F0F0F0;
  color: #333;
}

.schedule-panel .panel-body {
  flex: 1;
  overflow-y: overlay;
  padding: 16px 18px;
}

.schedule-panel .panel-body::-webkit-scrollbar {
  width: 5px;
}

.schedule-panel .panel-body::-webkit-scrollbar-thumb {
  background: #D0D0D0;
  border-radius: 3px;
}

/* 课表全览 */
.full-schedule {
  width: 100%;
}

.full-schedule .fs-grid {
  display: grid;
  grid-template-columns: 62px repeat(5, 1fr);
  gap: 3px;
  font-size: 11.5px;
}

.full-schedule .fs-header {
  background: var(--qq-blue);
  color: white;
  padding: 7px 3px;
  text-align: center;
  font-weight: 600;
  border-radius: 4px;
  font-size: 11px;
}

.full-schedule .fs-time {
  background: #F0F0F0;
  padding: 12px 4px;
  text-align: center;
  font-size: 10.5px;
  color: var(--text-dim);
  border-radius: 4px;
  line-height: 1.5;
}

.full-schedule .fs-cell {
  padding: 8px 4px;
  text-align: center;
  border-radius: 4px;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1.4;
  color: white;
  font-weight: 500;
  gap: 2px;
  transition: transform 0.1s ease;
}

.full-schedule .fs-cell:hover {
  transform: scale(1.04);
}

.full-schedule .fs-cell.empty {
  background: #F8F8F8;
}

.full-schedule .fs-cell .fs-loc {
  font-size: 9.5px;
  opacity: 0.85;
  font-weight: 400;
}

/* ===================== 待办列表 ===================== */
.todo-section {
  margin-top: 22px;
}

.todo-section h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1A1A1A;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #F8F8F8;
  border-radius: 8px;
  margin-bottom: 6px;
  transition: background var(--ease-fast);
}

.todo-item:hover {
  background: #F0F0F0;
}

.todo-item .todo-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.todo-item .todo-info {
  flex: 1;
  min-width: 0;
}

.todo-item .todo-title {
  font-size: 13px;
  font-weight: 500;
  color: #1A1A1A;
}

.todo-item .todo-deadline {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.todo-item .todo-priority {
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 600;
  flex-shrink: 0;
}

.todo-item .todo-priority.high {
  background: #FEE2E2;
  color: var(--danger);
}

.todo-item .todo-priority.medium {
  background: #FFF3E0;
  color: var(--warning);
}

.todo-item .todo-priority.low {
  background: #E8F5E9;
  color: var(--success);
}

/* ===================== 群消息源配置 ===================== */
.source-config {
  margin-top: 22px;
}

.source-config h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.source-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #F8F8F8;
  border-radius: 8px;
  margin-bottom: 6px;
  transition: background var(--ease-fast);
}

.source-item:hover {
  background: #F0F0F0;
}

.source-item .source-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.source-item .source-info {
  flex: 1;
  min-width: 0;
}

.source-item .source-name {
  font-size: 13px;
  font-weight: 500;
}

.source-item .source-desc {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.toggle-switch {
  position: relative;
  width: 42px;
  height: 24px;
  background: #D6D6D6;
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--ease-fast);
  flex-shrink: 0;
}

.toggle-switch.active {
  background: var(--qq-blue);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-switch.active::after {
  transform: translateX(18px);
}

/* ===================== 群消息流 ===================== */
.group-feed {
  margin-top: 14px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #EEEEEE;
  border-radius: 6px;
  background: #FFF;
}

.group-feed::-webkit-scrollbar {
  width: 4px;
}

.group-feed::-webkit-scrollbar-thumb {
  background: #D0D0D0;
  border-radius: 2px;
}

.feed-item {
  padding: 8px 12px;
  border-bottom: 1px solid #F4F4F4;
  font-size: 12px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  transition: background var(--ease-fast);
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-item:hover {
  background: #FAFAFA;
}

.feed-item .feed-sender {
  color: var(--qq-blue);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.feed-item .feed-text {
  color: var(--text-secondary);
  flex: 1;
  min-width: 0;
}

.feed-item.captured {
  background: #F0FFF4;
}

.feed-item.ignored {
  opacity: 0.4;
}

/* ===================== 右键菜单 ===================== */
.context-menu {
  position: fixed;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border: 1px solid #E5E5E5;
  min-width: 140px;
  padding: 4px 0;
  z-index: 300;
  animation: menuIn 0.12s ease both;
  transform-origin: top left;
}

@keyframes menuIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.context-menu .menu-item {
  padding: 7px 16px;
  cursor: pointer;
  font-size: 12.5px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--ease-fast);
}

.context-menu .menu-item:hover {
  background: #F0F8FF;
  color: var(--qq-blue);
}

.context-menu .menu-item.danger {
  color: var(--danger);
}

.context-menu .menu-item.danger:hover {
  background: #FFF0F0;
}

.context-menu .menu-divider {
  height: 1px;
  background: #EEEEEE;
  margin: 4px 0;
}

/* ===================== 拖拽上传区域高亮 ===================== */
.chat-area.drag-over::after {
  content: "释放以发送图片";
  position: absolute;
  inset: 0;
  background: rgba(18, 183, 245, 0.06);
  border: 2px dashed var(--qq-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--qq-blue);
  font-weight: 600;
  z-index: 50;
  pointer-events: none;
}

/* ===================== 图片消息 ===================== */
.message .msg-content img.msg-image {
  max-width: 240px;
  max-height: 240px;
  border-radius: 6px;
  display: block;
  cursor: pointer;
  transition: transform var(--ease-fast);
}

.message .msg-content img.msg-image:hover {
  transform: scale(1.02);
}

/* ===================== 响应式（移动端） ===================== */
@media (max-width: 768px) {
  .app-container {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .nav-rail {
    width: 46px;
  }

  .nav-icon {
    width: 36px;
    height: 36px;
  }

  .conv-panel {
    display: none;
  }

  .demo-bar {
    padding: 6px 12px 7px;
    gap: 4px;
  }

  .demo-bar .demo-btn {
    padding: 3px 8px;
    font-size: 10.5px;
  }

  .schedule-panel {
    width: 100%;
  }

  .message {
    max-width: 85%;
  }

  .chat-messages {
    padding: 12px 14px;
    gap: 12px;
  }

  .chat-header {
    padding: 0 14px;
  }

  .input-toolbar {
    padding: 6px 10px 4px;
  }

  .input-row {
    padding: 0 10px 10px;
  }
}

@media (max-width: 480px) {
  .nav-rail {
    display: none;
  }
}

/* ===================== Demo 控制面板（浮动玻璃侧边栏） ===================== */
.demo-control-panel {
  position: fixed;
  left: var(--demo-panel-inset);
  top: var(--demo-panel-inset);
  width: var(--demo-panel-w);
  height: calc(100vh - var(--demo-panel-inset) * 2);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.74) 0%, rgba(255,255,255,0.56) 46%, rgba(255,255,255,0.42) 100%);
  backdrop-filter: blur(30px) saturate(1.7);
  -webkit-backdrop-filter: blur(30px) saturate(1.7);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow:
    0 24px 56px rgba(42, 126, 178, 0.2),
    0 8px 20px rgba(13, 58, 88, 0.1),
    1px 0 0 rgba(255,255,255,0.88) inset,
    0 1px 0 rgba(255,255,255,0.76) inset,
    -1px 0 0 rgba(18,183,245,0.1) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #333;
  z-index: 100;
  transform: translate3d(0, 0, 0);
  transform-origin: left top;
  will-change: transform, opacity, filter;
  transition:
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease,
    filter 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

body.demo-panel-collapsed .demo-control-panel {
  opacity: 0;
  pointer-events: none;
  filter: blur(2px);
  transform: translate3d(calc(-100% - var(--demo-panel-inset) - 12px), 0, 0) scale(0.985);
}

.demo-control-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(132deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.12) 42%, rgba(39,199,255,0.08) 100%),
    linear-gradient(18deg, rgba(18,183,245,0.12) 0%, rgba(18,183,245,0.03) 33%, rgba(255,255,255,0) 33.5%),
    linear-gradient(150deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 57%, rgba(116,151,238,0.09) 57.5%, rgba(116,151,238,0.03) 100%);
  pointer-events: none;
}

.dcp-header {
  padding: 15px 17px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,0.62) inset;
  position: relative;
  z-index: 1;
}

.dcp-logo {
  width: 20px;
  height: 20px;
  background: none;
  color: #174C70;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
}

.dcp-logo svg {
  width: 20px;
  height: 20px;
  display: block;
}

.dcp-title {
  flex: 1;
  font-size: 14px;
  font-weight: 800;
  color: #174C70;
  letter-spacing: 0;
  overflow: hidden;
}

.dcp-collapse-btn {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #174C70;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  padding: 0;
  appearance: none;
  box-shadow: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dcp-collapse-btn:hover {
  background: rgba(255,255,255,0.24);
  color: #0B8FC5;
}

.dcp-collapse-btn:active {
  transform: scale(0.94);
}

.dcp-collapse-btn:focus-visible,
.dcp-restore-btn:focus-visible {
  outline: 2px solid rgba(18,183,245,0.72);
  outline-offset: 3px;
}

.dcp-collapse-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.dcp-restore-btn {
  position: fixed;
  left: var(--demo-panel-inset);
  top: var(--demo-panel-inset);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.66);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.31) 54%, rgba(188,232,255,0.24) 100%);
  color: #174C70;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  backdrop-filter: blur(24px) saturate(1.55);
  -webkit-backdrop-filter: blur(24px) saturate(1.55);
  box-shadow:
    0 16px 32px rgba(36, 111, 165, 0.18),
    0 1px 0 rgba(255,255,255,0.78) inset,
    0 -1px 0 rgba(80, 159, 208, 0.12) inset,
    0 0 0 1px rgba(51, 132, 185, 0.1);
  transform: translate3d(-10px, 0, 0) scale(0.74);
  transform-origin: center;
  transition:
    opacity 0.22s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.18s ease,
    color 0.18s ease;
}

.dcp-restore-btn:hover {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.4) 56%, rgba(196,237,255,0.32) 100%);
  color: #0B8FC5;
}

.dcp-restore-btn:active {
  transform: scale(0.92);
}

.dcp-restore-btn svg {
  width: 25px;
  height: 25px;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.55));
}

body.demo-panel-collapsed .dcp-restore-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 0.14s, 0.12s, 0s, 0s;
}

body.demo-panel-collapsed .dcp-restore-btn:active {
  transform: translate3d(0, 0, 0) scale(0.94);
}

.dcp-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 12px 14px 14px;
  position: relative;
  z-index: 1;
}

.dcp-body::-webkit-scrollbar {
  display: none;
}

.dcp-section {
  padding: 12px 11px;
  border: 1px solid rgba(255,255,255,0.76);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.48));
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 10px 24px rgba(50, 121, 165, 0.08);
  margin-bottom: 12px;
}

.dcp-section:last-child { margin-bottom: 0; }

.dcp-section-title {
  font-size: 14px;
  font-weight: 800;
  color: #164966;
  margin-bottom: 8px;
  letter-spacing: 0;
  line-height: 1.2;
}

.dcp-section-desc {
  font-size: 11.5px;
  color: #486C80;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* 平台列表 */
.platform-list { display: flex; flex-direction: column; gap: 6px; }

.platform-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  transition: background 0.15s;
}

.platform-item:hover { background: rgba(255,255,255,0.08); }
.platform-item.authorized { background: rgba(18,183,245,0.12); }

.platform-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.platform-info { flex: 1; min-width: 0; }
.platform-name { font-size: 13px; font-weight: 500; color: #E8E8E8; }
.platform-status { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 1px; }
.platform-item.authorized .platform-status { color: #12B7F5; }

.platform-toggle {
  position: relative;
  width: 40px; height: 22px;
  background: #CED7DD;
  border: 1px solid rgba(148, 166, 178, 0.45);
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.25s;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08) inset;
}

.platform-toggle.active {
  background: #12B7F5;
  border-color: #12B7F5;
}

.platform-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(28, 67, 92, 0.24);
  transition: transform 0.25s;
  transform: translateY(-50%);
}

.platform-toggle.active::after { transform: translate(18px, -50%); }

/* Demo 按钮组 */
.dcp-btn-group { display: flex; flex-direction: column; gap: 4px; }

.dcp-msg-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 10px;
  background: rgba(255,255,255,0.62);
  color: #22384A;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.dcp-msg-btn:hover { background: rgba(244,251,255,0.86); border-color: rgba(18,183,245,0.38); color: #0B8FC5; }
.dcp-msg-btn:active { transform: scale(0.97); }

.dcp-msg-btn .btn-icon {
  width: 24px; height: 24px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  color: white;
}

.dcp-msg-btn .platform-brand-icon {
  padding: 0;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(176, 214, 236, 0.48);
  box-shadow: 0 1px 0 rgba(255,255,255,0.84) inset, 0 2px 6px rgba(53, 123, 164, 0.06);
  overflow: hidden;
}

.dcp-msg-btn .platform-brand-icon img,
.pa-icon img,
.platform-msg-card .pmc-platform-icon img,
.digest-card .digest-platform-header .dp-icon img,
.msg-toast .toast-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dcp-action-btn {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(18,183,245,0.24);
  border-radius: 10px;
  background: rgba(244,250,255,0.74);
  color: #0B8FC5;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 5px;
  font-family: inherit;
}

.dcp-action-btn:hover { background: rgba(224,240,253,0.82); border-color: #12B7F5; }
.dcp-action-btn:active { transform: scale(0.97); }

/* ===================== 平台手风琴（二级菜单，浅色主题） ===================== */
.platform-accordion {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pa-item {
  border-radius: 12px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(255,255,255,0.76);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.pa-item:hover {
  background: rgba(255,255,255,0.78);
  border-color: rgba(18,183,245,0.26);
}

.pa-item.open {
  border-color: #12B7F5;
  box-shadow: 0 0 0 1px rgba(18,183,245,0.15);
}

.pa-header {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 44px 12px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 8px;
  cursor: pointer;
  user-select: none;
}

.pa-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(176, 214, 236, 0.46);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 2px 7px rgba(53, 123, 164, 0.08);
  overflow: hidden;
}

.pa-name {
  flex: 1;
  font-size: 12.5px;
  font-weight: 700;
  color: #173145;
  min-width: 0;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pa-name-multi {
  display: flex;
  flex-direction: column;
  gap: 1px;
  white-space: normal;
}

.pa-name-multi span {
  display: block;
  white-space: nowrap;
}

.pa-status {
  width: 44px;
  height: 19px;
  justify-self: end;
  padding: 0;
  border-radius: 999px;
  background: rgba(236, 243, 248, 0.8);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  color: #5C7385;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pa-item.authorized .pa-status {
  background: rgba(18, 183, 245, 0.12);
  color: #12B7F5;
}

/* 可视化下拉箭头 — CSS 三角形 */
.pa-arrow {
  width: 12px; height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.pa-arrow::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #A4B2BD;
  border-radius: 1px;
  transition: border-top-color 0.2s;
}

.pa-item.open .pa-arrow {
  transform: rotate(180deg);
}

.pa-item.open .pa-arrow::before {
  border-top-color: #12B7F5;
}

.pa-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 10px;
}

.pa-item.open .pa-body {
  max-height: 120px;
  padding: 0 10px 8px;
}

.pa-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 11.5px;
  color: #314B5D;
}

.pa-body .dcp-msg-btn {
  margin-top: 2px;
}

/* ===================== Toast 通知浮窗 ===================== */
.msg-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.msg-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  animation: toastIn 0.4s ease, toastOut 0.4s ease 2.6s forwards;
  pointer-events: auto;
  max-width: 340px;
  border-left: 4px solid #12B7F5;
}

.msg-toast .toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.msg-toast .toast-icon.brand-toast-icon {
  padding: 4px;
  background: rgba(246,251,255,0.96);
  border: 1px solid rgba(176, 214, 236, 0.58);
}

.msg-toast .toast-body { flex: 1; min-width: 0; }
.msg-toast .toast-title { font-size: 13px; font-weight: 600; color: #1A1A1A; }
.msg-toast .toast-desc { font-size: 11px; color: #888; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-toast .toast-time { font-size: 10px; color: #BBB; white-space: nowrap; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(80px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(80px); }
}

/* ===================== Badge 动画 ===================== */
@keyframes badgePop {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.conv-item .conv-avatar .badge.new { animation: badgePop 0.35s ease; }
.conv-item .conv-avatar .dot-badge.new { animation: badgePop 0.35s ease; }

@keyframes convFlash {
  0%, 100% { background: transparent; }
  50% { background: rgba(18,183,245,0.12); }
}

.conv-item.msg-flash { animation: convFlash 0.6s ease 2; }
.nav-badge.updated { animation: badgePop 0.35s ease; }

/* ===================== 平台消息卡片 ===================== */
.platform-msg-card {
  background: #FFF;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  max-width: 380px;
}

.platform-msg-card .pmc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F0F0F0;
}

.platform-msg-card .pmc-platform-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
  padding: 4px;
  background: rgba(246,251,255,0.98);
  border: 1px solid rgba(176, 214, 236, 0.58);
  box-shadow: 0 1px 0 rgba(255,255,255,0.84) inset;
  overflow: hidden;
}

.platform-msg-card .pmc-platform-name { font-size: 12px; color: #999; }

.platform-msg-card .pmc-type {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}

.platform-msg-card .pmc-body { font-size: 13px; line-height: 1.7; color: #444; }
.platform-msg-card .pmc-body .pmc-field { display: flex; gap: 6px; margin-bottom: 2px; }
.platform-msg-card .pmc-body .pmc-label { color: #999; white-space: nowrap; flex-shrink: 0; }

.platform-msg-card .pmc-footer {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.platform-msg-card .pmc-footer button {
  padding: 5px 16px;
  border-radius: 14px;
  border: 1px solid #E0E0E0;
  background: #FFF;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  transition: all 0.15s;
  font-family: inherit;
}

.platform-msg-card .pmc-footer button:hover { border-color: #12B7F5; color: #12B7F5; }
.platform-msg-card .pmc-footer button.primary { background: #12B7F5; border-color: #12B7F5; color: white; }
.platform-msg-card .pmc-footer button.primary:hover { background: #0EA5E0; }

/* ===================== 日报卡片 ===================== */
.digest-card {
  background: #FFF;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  max-width: 400px;
}

.digest-card .digest-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.digest-card .digest-platform-section {
  margin-bottom: 12px;
  padding: 10px;
  background: #FAFAFA;
  border-radius: 8px;
}

.digest-card .digest-platform-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.digest-card .digest-platform-header .dp-icon {
  width: 22px; height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  padding: 3px;
  background: rgba(246,251,255,0.98);
  border: 1px solid rgba(176, 214, 236, 0.58);
  overflow: hidden;
}

.digest-card .digest-item {
  padding: 4px 0 4px 30px;
  font-size: 12px;
  color: #555;
  line-height: 1.6;
  position: relative;
}

.digest-card .digest-item::before {
  content: "•";
  position: absolute;
  left: 18px;
  color: #12B7F5;
  font-weight: bold;
}

.digest-card .digest-summary {
  margin-top: 10px;
  padding: 10px;
  background: linear-gradient(135deg, #E8F7FE, #F0E6FF);
  border-radius: 8px;
  font-size: 12px;
  color: #555;
  line-height: 1.6;
}

/* ===================== 电话提醒浮层 ===================== */
.phone-call-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.phone-call-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.phone-call-overlay.hanging-up {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.phone-call-card {
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 24px;
  padding: 56px 40px 40px;
  text-align: center;
  color: white;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  min-width: 300px;
  max-width: 380px;
  animation: phoneCallIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: visible;
}

@keyframes phoneCallIn {
  from { transform: scale(0.8) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* 来电波纹 */
.phone-call-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 100px; height: 100px;
  margin-left: -50px; margin-top: -84px;
  border-radius: 50%;
  border: 2px solid rgba(18, 183, 245, 0.5);
  animation: ringExpand 2s ease-out infinite;
  pointer-events: none;
}

.phone-call-ring.ring2 { animation-delay: 0.6s; }
.phone-call-ring.ring3 { animation-delay: 1.2s; }

@keyframes ringExpand {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.phone-call-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #12B7F5, #667eea);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 32px rgba(18, 183, 245, 0.4);
  animation: phoneAvatarPulse 1.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes phoneAvatarPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(18, 183, 245, 0.4); }
  50% { box-shadow: 0 8px 48px rgba(18, 183, 245, 0.7), 0 0 0 16px rgba(18, 183, 245, 0.1); }
}

.phone-call-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.phone-call-status {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
  font-weight: 500;
  animation: statusBlink 1.2s ease-in-out infinite;
}

@keyframes statusBlink {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.phone-call-detail {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 28px;
  line-height: 1.5;
  padding: 0 4px;
  min-height: 18px;
}

.phone-call-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.phone-call-hangup {
  background: #E53935;
  border: none;
  border-radius: 50%;
  width: 68px; height: 68px;
  color: white;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  font-size: 11px;
  position: relative;
}

.phone-call-hangup svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.phone-call-hangup:hover {
  background: #C62828;
  transform: scale(1.08);
}

.phone-call-hangup:active {
  transform: scale(0.94);
}

.phone-call-hangup span {
  position: absolute;
  bottom: -24px;
  white-space: nowrap;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ===================== 语音音量条 ===================== */
.voice-volume-bar {
  position: fixed;
  bottom: 210px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
  z-index: 400;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.voice-volume-bar.active {
  opacity: 1;
}

.voice-volume-fill {
  height: 100%;
  background: linear-gradient(90deg, #12B7F5, #07C160);
  border-radius: 2px;
  width: 0%;
  transition: width 0.08s ease;
}

/* ===================== 小暖安慰按钮 ===================== */
.demo-btn.comfort-btn {
  background: linear-gradient(135deg, #FFF0F5, #FFE4E8);
  border-color: #FFB6C1;
  color: #D6336C;
  font-weight: 600;
}

.demo-btn.comfort-btn:hover {
  background: linear-gradient(135deg, #FFE4E8, #FFD6DC);
  border-color: #FF6B8A;
  color: #C2185B;
}

.demo-btn.comfort-btn.active {
  background: linear-gradient(135deg, #FF6B8A, #E91E63);
  border-color: #E91E63;
  color: white;
  animation: comfortGlow 2s ease-in-out infinite;
}

@keyframes comfortGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(233, 30, 99, 0.3); }
  50% { box-shadow: 0 0 20px rgba(233, 30, 99, 0.6); }
}

/* ===================== 语音按钮录音状态 ===================== */
.input-toolbar button.recording {
  color: #E53935 !important;
  background: #FFEBEE !important;
  animation: micPulse 0.8s ease-in-out infinite;
}

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

/* ===================== 消息气泡中 pending 状态 ===================== */
.message.user.pending .msg-content {
  opacity: 0.6;
  font-style: italic;
}

/* ===================== 语音消息气泡（音频波形） ===================== */
.audio-bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  max-width: 280px;
  padding: 4px 0;
}

.audio-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--qq-blue);
  color: white;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.audio-play-btn:hover {
  transform: scale(1.1);
}
.audio-play-btn.playing {
  background: #E53935;
  animation: playPulse 1s ease-in-out infinite;
}
@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(229, 57, 53, 0); }
}

.audio-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  flex: 1;
}

.audio-waveform .wave-bar {
  width: 3px;
  background: var(--qq-blue);
  border-radius: 2px;
  transition: height 0.3s ease;
  animation: waveFloat 1.2s ease-in-out infinite;
}
.audio-waveform .wave-bar:nth-child(1) { animation-delay: 0s; height: 8px; }
.audio-waveform .wave-bar:nth-child(2) { animation-delay: 0.1s; height: 16px; }
.audio-waveform .wave-bar:nth-child(3) { animation-delay: 0.2s; height: 10px; }
.audio-waveform .wave-bar:nth-child(4) { animation-delay: 0.3s; height: 22px; }
.audio-waveform .wave-bar:nth-child(5) { animation-delay: 0.4s; height: 12px; }
.audio-waveform .wave-bar:nth-child(6) { animation-delay: 0.5s; height: 26px; }
.audio-waveform .wave-bar:nth-child(7) { animation-delay: 0.6s; height: 14px; }
.audio-waveform .wave-bar:nth-child(8) { animation-delay: 0.7s; height: 18px; }
.audio-waveform .wave-bar:nth-child(9) { animation-delay: 0.8s; height: 8px; }
.audio-waveform .wave-bar:nth-child(10) { animation-delay: 0.9s; height: 20px; }
.audio-waveform .wave-bar:nth-child(11) { animation-delay: 1.0s; height: 10px; }
.audio-waveform .wave-bar:nth-child(12) { animation-delay: 1.1s; height: 16px; }

@keyframes waveFloat {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}

.audio-bubble .audio-duration {
  font-size: 11px;
  color: var(--text-dim);
  flex-shrink: 0;
  white-space: nowrap;
}

/* 语音气泡上传中状态 */
.audio-bubble.uploading .audio-play-btn {
  background: #CCC;
  pointer-events: none;
}
.audio-bubble.uploading .audio-waveform .wave-bar {
  background: #CCC;
  animation: waveLoading 0.6s ease-in-out infinite;
}
@keyframes waveLoading {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ===================== 小暖语音通话浮层 ===================== */

.warm-call-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a1a2e 100%);
  flex-direction: column;
  gap: 0;
}
.warm-call-overlay.active {
  display: flex;
}

.warm-call-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* 背景脉冲 */
.warm-call-bg-pulse {
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,157,0.15) 0%, transparent 70%);
  animation: warmPulse 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes warmPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.6); opacity: 0; }
}

/* 头像 */
.warm-call-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  box-shadow: 0 0 40px rgba(255,107,157,0.4);
  position: relative;
  z-index: 2;
  transition: transform 0.6s ease;
}
.warm-call-avatar.speaking {
  animation: avatarSpeak 0.4s ease-in-out infinite alternate;
}
.warm-call-avatar.listening {
  animation: avatarListen 1.2s ease-in-out infinite;
}
@keyframes avatarSpeak {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
@keyframes avatarListen {
  0%, 100% { box-shadow: 0 0 40px rgba(255,107,157,0.4); }
  50% { box-shadow: 0 0 70px rgba(255,107,157,0.7); }
}

.warm-call-name {
  font-size: 22px; font-weight: 600; color: #fff; letter-spacing: 2px;
}

.warm-call-status {
  font-size: 14px; color: rgba(255,255,255,0.7); min-height: 20px;
}

.warm-call-env-note {
  width: min(360px, calc(100vw - 48px));
  padding: 10px 12px;
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 8px;
  background: rgba(120, 53, 15, 0.28);
  color: rgba(255,255,255,0.88);
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}

.warm-call-env-note[hidden] {
  display: none;
}

/* 实时字幕区 */
.warm-call-transcript-wrap {
  width: 320px; max-height: 140px; overflow-y: auto;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  margin-top: 4px;
  scroll-behavior: smooth;
}
.warm-call-transcript {
  font-size: 15px; color: rgba(255,255,255,0.9);
  line-height: 1.6; text-align: center;
  word-break: break-word;
  min-height: 24px;
}

/* 通话计时 */
.warm-call-timer {
  font-size: 13px; color: rgba(255,255,255,0.5);
  font-variant-numeric: tabular-nums;
}

/* 声波动画 */
.warm-call-wave {
  display: none;
  align-items: flex-end; justify-content: center;
  gap: 3px; height: 32px;
}
.warm-call-wave.active {
  display: flex;
}
.warm-call-wave .wave-bar {
  width: 4px; background: rgba(255,107,157,0.8);
  border-radius: 2px;
  animation: waveAnim 1.2s ease-in-out infinite;
}
.warm-call-wave .wave-bar:nth-child(1) { height: 12px; animation-delay: 0s; }
.warm-call-wave .wave-bar:nth-child(2) { height: 24px; animation-delay: 0.15s; }
.warm-call-wave .wave-bar:nth-child(3) { height: 32px; animation-delay: 0.3s; }
.warm-call-wave .wave-bar:nth-child(4) { height: 20px; animation-delay: 0.45s; }
.warm-call-wave .wave-bar:nth-child(5) { height: 14px; animation-delay: 0.6s; }
@keyframes waveAnim {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* 控制按钮区 */
.warm-call-controls {
  display: flex; align-items: center; gap: 36px;
  margin-top: 20px;
}

/* 麦克风按钮 */
.warm-call-mic-btn {
  width: 80px; height: 80px;
  border-radius: 50%; border: 4px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
}
.warm-call-mic-btn .mic-icon-circle {
  color: rgba(255,255,255,0.9);
  display: flex; align-items: center;
}
.warm-call-mic-btn .mic-label {
  font-size: 10px; color: rgba(255,255,255,0.6);
}
.warm-call-mic-btn:active,
.warm-call-mic-btn.recording {
  background: rgba(255,107,157,0.3);
  border-color: #ff6b9d;
  transform: scale(1.08);
}
.warm-call-mic-btn.muted {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.22);
  opacity: 0.72;
}
.warm-call-mic-btn.disabled,
.warm-call-mic-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.18);
}
.warm-call-mic-btn.recording .mic-icon-circle {
  color: #ff6b9d;
  animation: micGlow 1s ease-in-out infinite;
}
.warm-call-mic-btn.muted .mic-icon-circle {
  color: rgba(255,255,255,0.45);
  animation: none;
}
@keyframes micGlow {
  0%, 100% { filter: drop-shadow(0 0 4px #ff6b9d); }
  50% { filter: drop-shadow(0 0 12px #ff6b9d); }
}

/* 挂断按钮 */
.warm-call-hangup-btn {
  width: 56px; height: 56px;
  border-radius: 50%; border: none;
  background: #e74c3c;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.warm-call-hangup-btn:hover {
  background: #c0392b; transform: scale(1.05);
}
.warm-call-hangup-btn:active {
  transform: scale(0.95);
}

/* 音量条 */
.warm-call-volume-bar {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 4px; background: rgba(255,255,255,0.15);
  border-radius: 2px;
  opacity: 0; transition: opacity 0.2s;
}
.warm-call-volume-bar.active {
  opacity: 1;
}
.warm-call-volume-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #ff6b9d, #c44569);
  border-radius: 2px;
  transition: width 0.08s linear;
}

/* 结束通话动画 */
.warm-call-overlay.hanging-up {
  animation: hangupFade 0.5s ease forwards;
}
@keyframes hangupFade {
  to { opacity: 0; transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .app-container,
  .demo-control-panel,
  .dcp-restore-btn {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
