:root {
  --primary-bg: #FFFFFF;          /* 白色背景，仿微信 */
  --secondary-bg: #F8F8F8;        /* 微信灰色背景 */
  --border-color: #E5E5E5;        /* 浅灰色边框 */
  --text-primary: #1A1A1A;        /* 主要文字 - 近黑色 */
  --text-secondary: #888888;      /* 次要文字 - 中灰色 */
  --text-muted: #B2B2B2;          /* 弱化文字 - 浅灰色 */
  --accent-color: #07C160;        /* 强调色改为微信绿色 */
  --user-bubble: #95EC69;         /* 用户气泡改为微信浅绿色 */
  --staff-bubble: #212529;        /* 客服气泡保持深色 */
  --system-bubble: #F8F8F8;       /* 系统气泡改为微信灰色 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --sum-color: #FA5151;           /* 求和颜色改为微信红色 */
  
  /* 新增链接颜色变量 - 使用微信风格 */
  --link-color: #576B95;          /* 微信蓝灰色链接 */
  --link-hover: #07C160;          /* 悬停使用微信绿 */
  --link-active: #06AD56;         /* 激活使用深微信绿 */
  --link-visited: #7D7D7D;        /* 已访问使用中灰色 */
  --link-focus-ring: rgba(7, 193, 96, 0.3); /* 微信绿透明光环 */
  
  /* 原有的其他变量保持不变 */
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 链接样式 - 现代简约风格 */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  font-weight: 500;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:focus {
  outline: 2px solid var(--link-focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

a:active {
  color: var(--link-active);
  transform: translateY(1px);
}

a:visited {
  color: var(--link-visited);
}
.chat-container {
  max-width: auto;
  width: 80%;
  height: 96vh;
  max-height: 96vh;
  margin: 2 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--secondary-bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.chat-form {
  margin: 0;
  background: var(--primary-bg);
  padding: 1.25rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border: none;
  border-top: 1px solid var(--border-color);
  box-shadow: none;
  flex-shrink: 0;
}

.chat-container:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.chat-header {
  padding: 0.8rem 0.5rem;
  background: var(--primary-bg);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  position: relative;
}

.chat-title {
  color: #be002f;
  text-align: center;
  margin: 0; 
  padding: 0;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-bottom: none;
  display: inline-block;
}

.chat-status {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.chat-group {
  margin-bottom: 0.3rem;
  width: 100%; 
}

.chat-group form {
  width: 100%;
  max-width: 100%;
}

.chat-group input,
.chat-group textarea {
  width: 100%;
  min-width: 0;
  padding: 0.75rem 1rem; 
  border: 1px solid var(--border-color); 
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  background: var(--secondary-bg);
  box-sizing: border-box; 
  transition: var(--transition);
  line-height: 1.5;
    margin-bottom: 0.3rem;
}

.chat-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.chat-group input:focus,
.chat-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}
.chat-submit {
  /* 圆形按钮样式 */
  width: 48px;
  height: 48px;
  border-radius: 50%; /* 圆形 */
  
  /* 背景和边框 */
  background: var(--accent-color); /* 使用微信绿色 */
  color: white;
  border: none;
  
  /* 内部布局 */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* 交互效果 */
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  
  /* 图标大小 */
  font-size: 1.25rem;
  padding: 0; /* 移除padding，使用固定尺寸 */
  
  /* 定位（如果需要固定在右下角） */
  position: relative;
  overflow: hidden; /* 用于可能的动效 */
}

/* 悬停效果 */
.chat-submit:hover {
  background: #06AD56; /* 微信深绿色 */
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 点击效果 */
.chat-submit:active {
  transform: translateY(0);
  transition: transform 0.1s;
}

/* 禁用状态 */
.chat-submit:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  .chat-submit {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  
  .chat-submit:hover {
    background: #5CD189; /* 微信浅绿色 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
}

/* 如果需要在按钮内显示上传图标 */
.chat-submit::before {
  content: "↑"; /* 上传箭头图标 */
  font-weight: bold;
}
.chat-submit.with-text {
  width: auto;
  padding: 0.75rem 1.5rem;
  border-radius: 24px;
  gap: 0.5rem;
}

.chat-submit.with-text::before {
  content: ""; /* 清除伪元素内容 */
}
.chat-input-container {
  display: flex;
  gap: 10px; /* 设置间距 */
  align-items: flex-end; /* 底部对齐 */
  width: 100%;
}

.chat-input-container textarea {
  flex: 1; /* 让textarea占据剩余空间 */
  min-height: 80px;
  resize: vertical; /* 允许垂直调整大小 */
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--primary-bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  transition: var(--transition);
}

.chat-input-container textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--link-focus-ring);
}

/* 调整按钮样式 */
.chat-submit.with-text {
  height: fit-content; /* 根据内容自适应高度 */
  padding: 12px 20px;
  white-space: nowrap; /* 防止文字换行 */
}
.chat-case {
  padding: 1.25rem;
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}


/* 确保输入框在固定底部内正常显示 */
.fixedBottom .chat-group input,
.fixedBottom .chat-group textarea {
  width: 100%;
  box-sizing: border-box;
}

.chat-form.fixedBottom {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 1.25rem;
  background: var(--primary-bg);
  border-top: 1px solid var(--border-color);
  border-radius: 0;
  border-left: none;
  border-right: none;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.fullscreen-iframe {
  width: 100%;
  height: 100vh; 
  border: none;
}

/* Animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}


/* 响应式设计 */
@media (max-width: 768px) {
  .chat-container {
    width: 100%;
    height: 96vh;
  }
  
  iframe {
    height: 400px;
  }
  
  .fixedBottom {
    padding: 0.75rem 1rem;
  }
  
  .fixedBottom .chat-group {
    margin-bottom: 0.5rem;
  }
  
  /* 响应式调整 */
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
  
  .chat-form {
    position: sticky;
    bottom: 0;
    background: var(--primary-bg);
    z-index: 10;
  }
  
  .notification-panel {
    top: 10px;
    right: 10px;
    left: 10px;
    padding: 12px 16px;
  }

  .chat-header {
    padding: 1rem 0.75rem;
  }
  
  .chat-title {
    font-size: 1.3rem;
    padding: 0.5rem 0;
    color: #be002f;
  }
  
  .chat-status {
    right: 1rem;
    font-size: 0.7rem;
  }
  
  
  .chat-group input,
  .chat-group textarea {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .chat-submit {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .chat-form.fixedBottom {
    padding: 0.75rem 0.5rem;
  }
  
  .chat-container {
    height: 96vh;
  }
  
  .chat-header {
    padding: 0.8rem 0.5rem;
  }
  
  .chat-title {
    font-size: 1.1rem;
  }
  
  .chat-status {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 0.3rem;
    font-size: 0.65rem;
  }
  
  .chat-form {
    padding: 0.75rem 0.5rem;
  }
  
  .chat-group {
    margin-bottom: 0.5rem;
  }
  
  .chat-group input,
  .chat-group textarea {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    min-height: 44px;
  }
  
  .chat-submit {
    padding: 0.5rem;
    font-size: 0.85rem;
    min-height: 44px;
  }
  
  .chat-case {
    padding: 0.75rem;
    margin: 0.75rem 0;
    font-size: 0.85rem;
  }
}

/* 超小屏幕手机 (360px 及以下) */
@media (max-width: 360px) {
  .chat-title {
    font-size: 1rem;
  }
  
  
  .chat-form {
    padding: 0.5rem;
  }
  
  .chat-submit {
    font-size: 0.8rem;
  }
}

/* 平板竖屏模式优化 */
@media (min-width: 481px) and (max-width: 768px) and (orientation: portrait) {
  .chat-container {
    max-width: 100%;
  }
  
}

/* 平板横屏模式优化 */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .chat-container {
    max-width: 100%;
    height: 96vh;
  }
  
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .chat-submit:hover {
    transform: none;
    background: var(--sum-color);
  }
  
  .chat-container:hover {
    box-shadow: var(--shadow-md);
  }
  
  
  .chat-group input,
  .chat-group textarea,
  .chat-submit {
    min-height: 44px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {

  
  .chat-header {
    padding: 0.5rem;
  }
  
  .chat-title {
    font-size: 1.1rem;
  }
}

/* 深色模式 - 仿微信深色主题 */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-bg: #1A1A1A;        /* 微信深色模式主背景色 */
    --secondary-bg: #121212;      /* 更深一点的背景色 */
    --border-color: #2D2D2D;      /* 深色边框 */
    --text-primary: #E0E0E0;      /* 主文本颜色 */
    --text-secondary: #B0B0B0;    /* 次要文本颜色 */
    --text-muted: #888888;        /* 弱化文本颜色 */
    --accent-color: #07C160;      /* 微信绿色保持不变 */
    --user-bubble: #2A6E3F;       /* 用户消息气泡改为深墨绿色 */
    --staff-bubble: #2D2D2D;      /* 客服消息气泡改为深灰色 */
    --system-bubble: #333333;     /* 系统消息气泡改为灰黑色 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.5);
    --sum-color: #FF6B6B;         /* 求和相关颜色调整为亮红色 */
    
    /* 深色模式链接颜色 */
    --link-color: #7D9DCC;        /* 浅蓝灰色链接 */
    --link-hover: #5CD189;        /* 悬停使用微信浅绿 */
    --link-active: #07C160;       /* 激活使用微信绿 */
    --link-visited: #A0A0A0;      /* 已访问使用浅灰色 */
    --link-focus-ring: rgba(92, 209, 137, 0.4); /* 浅绿透明光环 */
  }
}
  .chat-title {
    color: #FFF; /* 深色模式下标题颜色改为亮色 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  /* 输入框深色模式优化 */
  .chat-group input,
  .chat-group textarea {
    background: #2d2d2d;
    color: #e0e0e0;
    border-color: #3d3d3d;
  }
  
  .chat-group input:focus,
  .chat-group textarea:focus {
    background: #333333;
    border-color: #07C160;
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.2);
  }
  
  /* 提交按钮深色模式优化 */
  .chat-submit {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  }
  
  .chat-submit:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff3d3d 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
  }
  
  /* 案例展示深色模式 */
  .chat-case {
    background: #2d2d2d;
    border-color: #3d3d3d;
    color: #e0e0e0;
  }
  
  /* 状态指示器深色模式 */
  .chat-status::before {
    background: #07C160;
    box-shadow: 0 0 8px rgba(7, 193, 96, 0.5);
  }
  
  .chat-status {
    color: #888888;
  }
  
  /* 固定底部表单深色模式 */
  .chat-form.fixedBottom {
    background: #1a1a1a;
    border-top-color: #2d2d2d;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  }
  
  /* 聊天容器悬停效果深色模式 */
  .chat-container:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  }
}

/* 链接样式 - 现代简约风格 */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  font-weight: 500;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:focus {
  outline: 2px solid var(--link-focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

a:active {
  color: var(--link-active);
  transform: translateY(1px);
}

a:visited {
  color: var(--link-visited);
}

.chat-container {
  max-width: auto;
  width: 80%;
  height: 96vh;
  max-height: 96vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--secondary-bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.chat-form {
  margin: 0;
  background: var(--primary-bg);
  padding: 1.25rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border: none;
  border-top: 1px solid var(--border-color);
  box-shadow: none;
  flex-shrink: 0;
}

.chat-container:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.chat-header {
  padding: 0.8rem 0.5rem;
  background: var(--primary-bg);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  position: relative;
}

.chat-title {
  color: #FFF;
  text-align: center;
  margin: 0; 
  padding: 0;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-bottom: none;
  display: inline-block;
}

.chat-status {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-status::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.chat-group {
  margin-bottom: 0.3rem;
  width: 100%; 
}

.chat-group form {
  width: 100%;
  max-width: 100%;
}

.chat-group input,
.chat-group textarea {
  width: 100%;
  min-width: 0;
  padding: 0.75rem 1rem; 
  border: 1px solid var(--border-color); 
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  background: var(--secondary-bg);
  box-sizing: border-box; 
  transition: var(--transition);
  line-height: 1.5;
  margin-bottom: 0.3rem;
}

.chat-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.chat-group input:focus,
.chat-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.chat-submit {
  background: var(--sum-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.chat-submit:hover {
  background: #9A1F1C;
  transform: translateY(-1px);
}

.chat-case {
  padding: 1.25rem;
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

/* 确保输入框在固定底部内正常显示 */
.fixedBottom .chat-group input,
.fixedBottom .chat-group textarea {
  width: 100%;
  box-sizing: border-box;
}

.chat-form.fixedBottom {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 1.25rem;
  background: var(--primary-bg);
  border-top: 1px solid var(--border-color);
  border-radius: 0;
  border-left: none;
  border-right: none;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.fullscreen-iframe {
  width: 100%;
  height: 100vh; 
  border: none;
}

/* Animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .chat-container {
  width: 100%;
    height: 96vh;
  }
  
  iframe {
    height: 400px;
  }
  
  .fixedBottom {
    padding: 0.75rem 1rem;
  }
  
  .fixedBottom .chat-group {
    margin-bottom: 0.5rem;
  }
  
  /* 响应式调整 */
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
  
  .chat-form {
    position: sticky;
    bottom: 0;
    background: var(--primary-bg);
    z-index: 10;
  }
  
  .chat-header {
    padding: 1rem 0.75rem;
  }
  
  .chat-title {
    font-size: 1.3rem;
    padding: 0.5rem 0;
    color: #FFF;
  }
  
  .chat-status {
    right: 1rem;
    font-size: 0.7rem;
  }
  
  .chat-group input,
  .chat-group textarea {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .chat-submit {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .chat-form.fixedBottom {
    padding: 0.75rem 0.5rem;
  }
  
  .chat-container {
    height: 96vh;
  }
  
  .chat-header {
    padding: 0.8rem 0.5rem;
  }
  
  .chat-title {
    font-size: 1.1rem;
  }
  
  .chat-status {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 0.3rem;
    font-size: 0.65rem;
  }
  
  .chat-form {
    padding: 0.75rem 0.5rem;
  }
  
  .chat-group {
    margin-bottom: 0.5rem;
  }
  
  .chat-group input,
  .chat-group textarea {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    min-height: 44px;
  }
  
  .chat-submit {
    padding: 0.5rem;
    font-size: 0.85rem;
    min-height: 44px;
  }
  
  .chat-case {
    padding: 0.75rem;
    margin: 0.75rem 0;
    font-size: 0.85rem;
  }
}

/* 超小屏幕手机 (360px 及以下) */
@media (max-width: 360px) {
  .chat-title {
    font-size: 1rem;
  }
  
  .chat-form {
    padding: 0.5rem;
  }
  
  .chat-submit {
    font-size: 0.8rem;
  }
}

/* 平板竖屏模式优化 */
@media (min-width: 481px) and (max-width: 768px) and (orientation: portrait) {
  .chat-container {
    max-width: 100%;
  }
}

/* 平板横屏模式优化 */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .chat-container {
    max-width: 100%;
    height: 96vh;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .chat-submit:hover {
    transform: none;
    background: var(--sum-color);
  }
  
  .chat-container:hover {
    box-shadow: var(--shadow-md);
  }
  
  .chat-group input,
  .chat-group textarea,
  .chat-submit {
    min-height: 44px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .chat-header {
    padding: 0.5rem;
  }
  
  .chat-title {
    font-size: 1.1rem;
  }
}

/* 深色模式响应式调整 */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
  .chat-title {
    color: #ff6b6b;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
  
  .chat-submit {
    background: #ff6b6b;
  }
  
  .chat-submit:hover {
    background: #ff5252;
  }
}

@media (prefers-color-scheme: dark) and (max-width: 480px) {
  .chat-title {
    font-size: 1.1rem;
    color: #ff6b6b;
  }
}
/* 简单文本链接版本 */
.home-link {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--link-color);
  text-decoration: none;
  transition: var(--transition);
  z-index: 10;
}

.home-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .home-link {
    left: 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .home-link {
    left: 0.75rem;
    font-size: 0.8rem;
  }
}
/* 自定义细滚动条 - 只在滚动时显示 */
fullscreen-iframe,
.chat-container {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  overflow-y: auto;
}
fullscreen-iframe,
.chat-container::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
fullscreen-iframe,
.chat-container::-webkit-scrollbar-track {
  background: transparent;
}
fullscreen-iframe,
.chat-container::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 2px;
  opacity: 0.3;
}
fullscreen-iframe,
.chat-container::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
  opacity: 0.5;
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
fullscreen-iframe,  .chat-container::-webkit-scrollbar-thumb {
    background: var(--text-muted);
  }
}

/* 文本区域的细滚动条 */
.chat-group textarea::-webkit-scrollbar {
  width: 4px;
}

.chat-group textarea::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}