/* 鲸鱼娘移动端 — 完整聊天界面（豆包风格，flex 三段式布局） */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden; /* 锁死横纵向页面滚动（内部消息区自己滚） */
  overflow-x: hidden;
  overscroll-behavior-x: none; /* iOS 禁止横向弹性滑动 */
  background: linear-gradient(180deg, #0f1b33 0%, #0b1220 55%, #0e1a2e 100%);
  color: #e2e8f0;
  user-select: none;
  -webkit-user-select: none;
}

body {
  display: flex;
  flex-direction: column;
  /* 页面高度保持全视口（不随键盘收缩，避免第三方输入法高度计算异常
     导致输入框被顶飞）；输入栏用 fixed 贴底 + JS 计算键盘偏移 */
  height: 100dvh;
}

/* ---------- 顶部导航（flex 第一段） ---------- */
.chat-header {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  background: rgba(15, 23, 42, 0.97);
  border-bottom: 1px solid rgba(125, 211, 252, 0.18);
  z-index: 10;
}

.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(125, 211, 252, 0.6);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.menu-btn {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.6);
  color: #7dd3fc;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.menu-btn:active {
  background: rgba(56, 189, 248, 0.25);
}

.header-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.header-name {
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-status {
  font-size: 11px;
  color: #34d399;
}

.header-status.busy {
  color: #fbbf24;
}

.clear-btn {
  flex: none;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}

.clear-btn:active {
  background: rgba(148, 163, 184, 0.15);
}

/* ---------- 消息列表（flex 第二段，可滚动） ---------- */
.messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* 底部留出输入栏空间 + 键盘偏移（键盘弹起时 --kb 由 JS 设置） */
  padding: 16px 14px calc(84px + var(--kb, 0px) + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 26px 0 8px;
  color: #94a3b8;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}

.welcome-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(125, 211, 252, 0.5);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

/* 快捷提问 */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.chip {
  border: 1px solid rgba(125, 211, 252, 0.4);
  background: rgba(30, 41, 59, 0.7);
  color: #bae6fd;
  font-size: 12px;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.chip:active {
  background: rgba(56, 189, 248, 0.25);
  transform: scale(0.96);
}

/* 消息行 */
.msg-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 88%;
  min-width: 0; /* 关键：允许 flex 子项收缩，防止长内容撑破气泡 */
  animation: msg-in 0.22s ease-out;
}

.msg-row.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

/* 气泡 + 下方小字信息（时间/朗读）的纵向容器 */
.msg-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: none;
  border: 1.5px solid rgba(125, 211, 252, 0.45);
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 16px; /* 微信正文尺寸 */
  line-height: 1.65;
  word-break: break-word;
  overflow-wrap: anywhere; /* 长 URL/长单词也能断行 */
  white-space: pre-wrap;
  user-select: text;
  -webkit-user-select: text;
  min-width: 0;
  width: fit-content; /* 内容自适应宽度，像微信 */
  max-width: 100%;
}

/* 气泡下方小字行（时间 + 朗读），不占气泡宽度 */
.msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  padding: 0 4px;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.6);
}

.msg-meta .read-btn {
  border: none;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  padding: 2px;
  opacity: 0.65;
  transition: opacity 0.15s ease;
}

.msg-meta .read-btn:active {
  opacity: 1;
  transform: scale(0.9);
}

.msg-row.user .msg-bubble {
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
}

/* 消息时间戳（位于 msg-meta 内） */
.msg-meta .msg-time {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.6);
}

.msg-row.ai .msg-bubble {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-bottom-left-radius: 4px;
}

/* ---------- AI 消息 Markdown 样式 ---------- */
.msg-bubble.md > :first-child {
  margin-top: 0;
}

.msg-bubble.md > :last-child {
  margin-bottom: 0;
}

.msg-bubble.md p {
  margin: 0 0 8px;
}

.msg-bubble.md h1,
.msg-bubble.md h2,
.msg-bubble.md h3,
.msg-bubble.md h4 {
  margin: 10px 0 6px;
  line-height: 1.4;
}

.msg-bubble.md h1 {
  font-size: 17px;
}

.msg-bubble.md h2 {
  font-size: 16px;
}

.msg-bubble.md h3,
.msg-bubble.md h4 {
  font-size: 15px;
}

.msg-bubble.md ul,
.msg-bubble.md ol {
  margin: 0 0 8px;
  padding-left: 20px;
}

.msg-bubble.md li {
  margin: 3px 0;
}

.msg-bubble.md li.task-item {
  list-style: none;
  margin-left: -20px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.msg-bubble.md li.task-item input[type='checkbox'] {
  margin-top: 3px;
  accent-color: #38bdf8;
  flex: none;
}

.msg-bubble.md li.task-item:has(input:checked) {
  color: #64748b;
  text-decoration: line-through;
}

.msg-bubble.md strong {
  color: #bae6fd;
}

.msg-bubble.md em {
  color: #93c5fd;
}

.msg-bubble.md a {
  color: #38bdf8;
  text-decoration: underline;
}

.msg-bubble.md blockquote {
  margin: 6px 0;
  padding: 6px 10px;
  border-left: 3px solid rgba(56, 189, 248, 0.6);
  background: rgba(15, 23, 42, 0.5);
  border-radius: 0 8px 8px 0;
  color: #94a3b8;
}

.msg-bubble.md hr {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  margin: 10px 0;
}

.msg-bubble.md code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(15, 23, 42, 0.75);
  padding: 1px 5px;
  border-radius: 5px;
  color: #7dd3fc;
}

.msg-bubble.md pre {
  margin: 8px 0;
  padding: 10px 12px;
  max-width: 100%;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: 10px;
  overflow: hidden; /* 长代码自动换行，不做横向滚动（微信/QQ 风格） */
}

.msg-bubble.md pre code {
  background: transparent;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #e2e8f0;
  white-space: pre-wrap; /* 长代码行自动换行 */
  word-break: break-all; /* 超长无空格内容也断行 */
}

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

/* 思考指示器：贴在消息区底部（不占布局空间） */
.typing {
  position: sticky;
  bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  margin-top: auto;
  padding-top: 6px;
}

.typing.hidden {
  display: none;
}

.typing-dots {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dd3fc;
  animation: dot-bounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

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

/* ---------- 底部输入区（fixed 贴底，键盘弹起时按 --kb 上移） ---------- */
.input-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--kb, 0px) + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 10px;
  background: rgba(15, 23, 42, 0.97);
  border-top: 1px solid rgba(125, 211, 252, 0.18);
  z-index: 10;
  /* 键盘收起时平滑下落（跟手，QQ 手感）；弹起时 JS 临时禁用过渡 */
  transition: bottom 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

#ask-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
  font-size: 15px;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
  caret-color: #7dd3fc;
}

#ask-input:focus {
  border-color: #38bdf8;
}

#ask-input::placeholder {
  color: rgba(148, 163, 184, 0.65);
}

#send-btn {
  flex: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(180deg, #7dd3fc, #38bdf8);
  color: #0f172a;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

#send-btn:active {
  transform: scale(0.92);
}

#send-btn:disabled {
  opacity: 0.5;
}

/* 发送按钮 = 停止按钮（生成中） */
#send-btn.stop-mode {
  background: rgba(248, 113, 113, 0.9);
  color: #fff;
  font-size: 13px;
}

/* ---------- 会话列表面板（bottom sheet） ---------- */
.session-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: overlay-in 0.2s ease-out;
}

.session-overlay.hidden {
  display: none;
}

@keyframes overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.session-sheet {
  width: 100%;
  max-height: 72vh;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 18px 18px 0 0;
  padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: sheet-up 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sheet-up {
  from {
    transform: translateY(40px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-title {
  font-size: 15px;
  font-weight: 600;
  color: #bae6fd;
}

.sheet-close {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  border-radius: 50%;
}

.sheet-close:active {
  background: rgba(148, 163, 184, 0.15);
}

.new-session-btn {
  border: 1px dashed rgba(125, 211, 252, 0.55);
  background: rgba(56, 189, 248, 0.08);
  color: #7dd3fc;
  font-size: 13px;
  border-radius: 12px;
  padding: 11px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.new-session-btn:active {
  background: rgba(56, 189, 248, 0.2);
}

.session-list {
  overflow-y: auto;
  max-height: 52vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
  -webkit-overflow-scrolling: touch;
}

.session-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.session-item:active {
  background: rgba(56, 189, 248, 0.12);
}

.session-item.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(125, 211, 252, 0.45);
}

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

.session-title {
  font-size: 13.5px;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-meta {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.session-del {
  flex: none;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  border-radius: 50%;
}

.session-del:active {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.session-empty {
  text-align: center;
  color: #64748b;
  font-size: 13px;
  padding: 24px 0;
}

/* ---------- 朗读音色选择 ---------- */
.voice-section {
  border-top: 1px solid rgba(125, 211, 252, 0.15);
  padding-top: 10px;
}

.voice-title {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.voice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.voice-chip {
  border: 1px solid rgba(125, 211, 252, 0.3);
  background: rgba(30, 41, 59, 0.6);
  color: #94a3b8;
  font-size: 11.5px;
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.voice-chip.active {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.65);
}

.voice-chip:active {
  background: rgba(56, 189, 248, 0.3);
}

/* ---------- 导出按钮 ---------- */
.export-btn {
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(56, 189, 248, 0.08);
  color: #7dd3fc;
  font-size: 12.5px;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.export-btn:active {
  background: rgba(56, 189, 248, 0.2);
}

/* ---------- 海底风美学增强 ---------- */
.chat-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.input-bar {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.welcome-avatar {
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.4), 0 0 60px rgba(56, 189, 248, 0.15);
}

.typing-dots span {
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.6);
}

/* 消息气泡柔和阴影 */
.msg-row.ai .msg-bubble {
  box-shadow: 0 2px 10px rgba(2, 6, 23, 0.35);
}

/* ---------- 日期分组条 ---------- */
.date-divider {
  align-self: center;
  font-size: 11px;
  color: #64748b;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 999px;
  padding: 3px 12px;
  margin: 2px 0;
}

/* ---------- 打字机光标 ---------- */
.typing-cursor {
  display: inline-block;
  color: #7dd3fc;
  animation: cursor-blink 0.8s step-end infinite;
}

@keyframes cursor-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* 朗读按钮（样式见 .msg-meta .read-btn） */

/* ---------- 重试按钮 ---------- */
.retry-btn {
  display: inline-block;
  margin: 6px 8px 2px 0;
  border: 1px solid rgba(125, 211, 252, 0.5);
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 14px;
  cursor: pointer;
}

.retry-btn:active {
  background: rgba(56, 189, 248, 0.25);
}

/* ---------- 表格 ---------- */
.md-table-wrap {
  margin: 8px 0;
  overflow-x: hidden;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 10px;
}

.md-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.md-table-wrap th,
.md-table-wrap td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.md-table-wrap th {
  background: rgba(56, 189, 248, 0.1);
  color: #bae6fd;
  font-weight: 600;
}

.md-table-wrap tr:last-child td {
  border-bottom: none;
}

/* ---------- 代码块头部 + 复制 ---------- */
.code-wrap {
  position: relative;
  margin: 8px 0;
}

.code-lang {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 10.5px;
  color: #64748b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  pointer-events: none;
}

.code-copy {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(15, 23, 42, 0.8);
  color: #7dd3fc;
  font-size: 10.5px;
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  z-index: 1;
}

.code-copy:active {
  background: rgba(56, 189, 248, 0.25);
}

.code-wrap pre {
  margin: 0;
  padding: 26px 12px 12px; /* 顶部留出语言标签 + 复制按钮空间 */
}

/* ---------- 分享按钮 ---------- */
.share-btn {
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.6);
  color: #7dd3fc;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.share-btn:active {
  background: rgba(56, 189, 248, 0.25);
}

/* ---------- 滚动条美化（移动端隐藏） ---------- */
.messages::-webkit-scrollbar,
.session-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.messages {
  scrollbar-width: none;
}

.session-list {
  scrollbar-width: none;
}

/* ============================================================
   深海美学升级（鲸鱼娘最终版）
   ============================================================ */

/* 海底氛围：多角度光晕 + 深海渐变背景 */
body {
  background:
    radial-gradient(60% 40% at 80% 8%, rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(50% 35% at 12% 28%, rgba(99, 102, 241, 0.08), transparent 60%),
    radial-gradient(70% 50% at 50% 112%, rgba(14, 165, 233, 0.14), transparent 65%),
    linear-gradient(180deg, #0e1a33 0%, #0b1220 55%, #0f1c30 100%);
}

/* AI 气泡：深蓝→深紫微渐变，柔和多层阴影 */
.msg-row.ai .msg-bubble {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.97) 0%, rgba(39, 43, 78, 0.95) 100%);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 12px rgba(2, 6, 23, 0.45), 0 0 0 1px rgba(125, 211, 252, 0.04);
}

/* 用户气泡：更透亮的蓝渐变 + 柔光 */
.msg-row.user .msg-bubble {
  background: linear-gradient(135deg, #3cc5ff 0%, #0ea5e9 100%);
  border-bottom-right-radius: 4px;
  box-shadow: 0 3px 14px rgba(56, 189, 248, 0.32), 0 1px 3px rgba(2, 6, 23, 0.35);
}

/* 头像呼吸光晕 */
.msg-avatar {
  border: 1.5px solid rgba(125, 211, 252, 0.5);
  animation: avatar-breathe 4.5s ease-in-out infinite;
}

.welcome-avatar {
  animation: avatar-breathe 3.6s ease-in-out infinite;
}

@keyframes avatar-breathe {
  0%, 100% {
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.25);
  }
  50% {
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.55);
  }
}

/* 欢迎语卡片化 */
.welcome p {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.09), rgba(99, 102, 241, 0.09));
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 16px;
  padding: 12px 18px;
  line-height: 1.7;
}

/* 快捷提问 chips：呼吸边框 */
.chip {
  border-color: rgba(125, 211, 252, 0.45);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.12), rgba(30, 41, 59, 0.65));
  box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.1);
}

/* 输入栏：聚焦光效 + 微光边框 */
.input-bar {
  border-top: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow: 0 -6px 24px rgba(2, 6, 23, 0.35);
}

#ask-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15), 0 0 14px rgba(56, 189, 248, 0.22);
}

/* 发送按钮：透亮渐变 + 光晕 */
#send-btn {
  background: linear-gradient(180deg, #7dd3fc 0%, #0ea5e9 100%);
  box-shadow: 0 3px 10px rgba(56, 189, 248, 0.38);
}

/* 日期条细化 */
.date-divider {
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.16);
  box-shadow: 0 1px 6px rgba(2, 6, 23, 0.3);
}

/* 头部：顶部柔光 */
.chat-header {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
  border-bottom: 1px solid rgba(125, 211, 252, 0.22);
}

/* 会话面板卡片质感 */
.session-sheet {
  background: linear-gradient(180deg, rgba(17, 26, 46, 0.99), rgba(13, 20, 38, 0.99));
  border-top: 1px solid rgba(125, 211, 252, 0.3);
  box-shadow: 0 -8px 40px rgba(2, 6, 23, 0.6);
}

.session-item {
  background: linear-gradient(180deg, rgba(34, 46, 70, 0.6), rgba(26, 36, 58, 0.55));
}

/* 打字光标微光 */
.typing-cursor {
  text-shadow: 0 0 8px rgba(125, 211, 252, 0.8);
}

/* 代码块微光边框 */
.msg-bubble.md pre {
  border-color: rgba(125, 211, 252, 0.18);
  box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.06);
}
