/* 文物保护网站 - 主样式文件 */

/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Georgia:wght@400;700&display=swap');

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基础样式 */
body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #8b4513;
  background: linear-gradient(135deg, #faf8f5 0%, #f5f1eb 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 */
.header {
  background: linear-gradient(135deg, #d4af8c 0%, #c9a96e 50%, #b8860b 100%);
  color: #8b4513;
  padding: 60px 0;
  text-align: left;
  position: relative;
  box-shadow: 0 8px 32px rgba(139, 69, 19, 0.15);
}

.header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  font-family: 'Georgia', serif;
  color: #8b4513;
}

.header p {
  font-size: 1.3rem;
  opacity: 0.9;
  font-weight: 400;
  letter-spacing: 1px;
  color: #a0522d;
  font-style: italic;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* 导航栏样式 */
.navbar {
  background: linear-gradient(135deg, #fefefe 0%, #f5f1eb 100%);
  box-shadow: 0 8px 32px rgba(139, 69, 19, 0.08);
  border: 2px solid #e8d5c4;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 50px;
}

.nav-item {
  position: relative;
}

.nav-item a {
  text-decoration: none;
  color: #8b4513;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.nav-item a:hover {
  background: linear-gradient(135deg, #d4af8c 0%, #c9a96e 100%);
  color: #8b4513;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 69, 19, 0.25);
  border-color: #d4af8c;
}

.nav-item a.active {
  background: linear-gradient(135deg, #d4af8c 0%, #c9a96e 100%);
  color: #8b4513;
  border-color: #d4af8c;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
}

.nav-item a:active {
  transform: translateY(-1px);
  transition: transform 0.1s ease;
}

.nav-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #bdc3c7;
  border-radius: 50%;
  opacity: 0.6;
}

/* 副导航（二级小导航）- 仅首页 */
.sub-nav {
  background: linear-gradient(180deg, #faf8f5 0%, #f5f1eb 100%);
  border-bottom: 1px solid #e8d5c4;
  box-shadow: 0 2px 12px rgba(139, 69, 19, 0.06);
  padding: 10px 0;
  z-index: 99;
}

.sub-nav .container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.sub-nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.sub-nav-item {
  position: relative;
}

.sub-nav-item > a {
  display: inline-block;
  padding: 8px 18px;
  color: #8b4513;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 20px;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.sub-nav-item > a:hover {
  color: #6b3410;
  background: rgba(212, 175, 140, 0.25);
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
}

.sub-nav-item > a:hover + .sub-nav-dropdown,
.sub-nav-dropdown:hover {
  opacity: 1;
  visibility: visible;
}

.sub-nav-has-dropdown > a::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  border: 5px solid transparent;
  border-top-color: currentColor;
  vertical-align: middle;
}

.sub-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  margin: 4px 0 0;
  padding: 8px 0;
  list-style: none;
  background: linear-gradient(135deg, #fefefe 0%, #f5f1eb 100%);
  border: 1px solid #e8d5c4;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(139, 69, 19, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}

.sub-nav-dropdown li {
  margin: 0;
}

.sub-nav-dropdown a {
  display: block;
  padding: 10px 18px;
  color: #8b4513;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.sub-nav-dropdown a:hover {
  background: rgba(212, 175, 140, 0.3);
  color: #6b3410;
}

/* 登录/退出按钮样式 */
.auth-buttons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 10;
}

.auth-btn {
  padding: 5px 10px;
  border: none;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.login-btn {
  background: rgba(255, 255, 255, 0.25);
  color: #8b4513;
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.logout-btn {
  background: rgba(231, 76, 60, 0.8);
  color: white;
  border: 2px solid rgba(231, 76, 60, 0.8);
  font-weight: 600;
}

.logout-btn:hover {
  background: rgba(192, 57, 43, 0.9);
  border-color: rgba(192, 57, 43, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* 主要内容区域 */
.main-content {
  padding: 80px 0;
  animation-delay: 0.3s;
}

/* 混合内容区域 */
.mixed-content-section {
  background: linear-gradient(135deg, #fefefe 0%, #f5f1eb 100%);
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(139, 69, 19, 0.08);
  border: 2px solid #e8d5c4;
  position: relative;
}

.mixed-content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d4af8c, #c9a96e, #b8860b);
  border-radius: 25px 25px 0 0;
}

.section-title {
  font-size: 2.2rem;
  color: #8b4513;
  margin-bottom: 35px;
  text-align: left;
  position: relative;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: 'Georgia', serif;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #d4af8c, #c9a96e, #b8860b);
  border-radius: 2px;
}

/* 副导航对应示例内容区块 */
.sub-nav-example-section {
  margin-top: 40px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #fefefe 0%, #f5f1eb 100%);
  border: 1px solid #e8d5c4;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.06);
}

.sub-nav-example-section .section-title {
  margin-bottom: 16px;
}

.sub-nav-example-p {
  color: #6b4410;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.home-header-image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid #e8d5c4;
}

.sub-nav-example-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid #e8d5c4;
}

.content-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-item {
  display: flex;
  align-items: center;
  padding: 20px;
  min-height: 120px;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: linear-gradient(135deg, #fefefe 0%, #f5f1eb 100%);
  border: 2px solid #e8d5c4;
  position: relative;
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.05);
}

.content-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 175, 140, 0.1), rgba(201, 169, 110, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 20px;
}

.content-item:hover::before {
  opacity: 1;
}

.content-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(139, 69, 19, 0.15);
  border-color: #d4af8c;
}

.content-item.image-news .item-image {
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: 15px;
  margin-right: 25px;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.content-item.image-news:hover .item-image {
  transform: scale(1.05);
}

.content-item.image-news .item-content {
  flex: 1;
}

.item-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #8b4513;
  margin-bottom: 8px;
  line-height: 1.3;
  font-family: 'Georgia', serif;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.item-description {
  font-size: 1rem;
  color: #a0522d;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-date {
  font-size: 0.9rem;
  color: #8b4513;
  font-weight: 500;
  opacity: 0.8;
}

/* 纯文字类型 */
.content-item.text-only .item-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.content-item.text-only .item-description {
  margin-bottom: 12px;
}

/* AI助手气泡 */
.ai-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #d4af8c 0%, #c9a96e 100%);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.25);
  transition: all 0.3s ease;
  z-index: 1000;
  user-select: none;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.ai-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(139, 69, 19, 0.35);
}

.ai-bubble.dragging {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.bubble-text {
  color: #8b4513;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* 侧边栏对话框 */
.chat-sidebar {
  position: fixed;
  top: 20px;
  right: -350px;
  width: 350px;
  height: calc(100vh - 40px);
  background: linear-gradient(135deg, #fefefe 0%, #f5f1eb 100%);
  box-shadow: -5px 0 20px rgba(139, 69, 19, 0.15);
  border: 2px solid #e8d5c4;
  border-radius: 25px;
  transition: right 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 300px;
  min-height: 400px;
  max-width: 80vw;
  max-height: calc(100vh - 40px);
}

/* 调整大小手柄 */
.resize-handle {
  position: absolute;
  background: transparent;
  z-index: 1000;
}

.resize-handle.nw {
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  cursor: nw-resize;
}

.resize-handle.ne {
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  cursor: ne-resize;
}

.resize-handle.sw {
  bottom: 0;
  left: 0;
  width: 20px;
  height: 20px;
  cursor: sw-resize;
}

.resize-handle.se {
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  cursor: se-resize;
}

/* 拖动状态样式 */
.chat-sidebar.dragging {
  transition: none;
}

.chat-sidebar.open {
  right: 20px;
}

/* 侧边栏头部 */
.chat-header {
  padding: 20px;
  border-bottom: 3px solid #d4af8c;
  background: linear-gradient(135deg, #d4af8c 0%, #c9a96e 50%, #b8860b 100%);
  color: #8b4513;
  border-radius: 25px 25px 0 0;
  cursor: move;
}

.chat-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 5px;
  font-family: 'Georgia', serif;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.chat-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  font-style: italic;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #8b4513;
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 聊天消息区域 */
.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 200px;
}

.message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #d4af8c 0%, #c9a96e 100%);
  color: #8b4513;
  border-bottom-right-radius: 8px;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.message.ai {
  align-self: flex-start;
  background: linear-gradient(135deg, #fefefe 0%, #f5f1eb 100%);
  color: #8b4513;
  border: 2px solid #e8d5c4;
  border-bottom-left-radius: 8px;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.08);
}

.message-time {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 5px;
}

/* 输入区域 */
.chat-input-area {
  padding: 20px;
  border-top: 3px solid #d4af8c;
  background: linear-gradient(135deg, #fefefe 0%, #f5f1eb 100%);
  border-radius: 0 0 25px 25px;
}

.input-container {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e8d5c4;
  border-radius: 25px;
  font-size: 0.9rem;
  resize: none;
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Georgia', serif;
  max-height: 100px;
  min-height: 40px;
  color: #8b4513;
  background: #fefefe;
}

.chat-input:focus {
  border-color: #d4af8c;
  box-shadow: 0 0 0 3px rgba(212, 175, 140, 0.15);
}

.send-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #d4af8c 0%, #c9a96e 100%);
  color: #8b4513;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.25);
  background: linear-gradient(135deg, #c9a96e 0%, #b8860b 100%);
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 遮罩层 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.header, .navbar, .main-content {
  animation: fadeInUp 0.8s ease-out;
}

.ai-bubble.pulse {
  animation: bounce 2s infinite;
}

/* 阅读更多样式 */
.read-more {
  font-size: 0.9rem;
  color: #d4af8c;
  font-weight: 600;
  margin-top: 8px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.content-item:hover .read-more {
  opacity: 1;
  color: #b8860b;
  transform: translateX(5px);
}

/* 点击效果 */
.content-item {
  cursor: pointer;
}

.content-item:active {
  transform: translateY(-2px);
  transition: transform 0.1s ease;
}

/* 文档模态框样式 */
.document-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: linear-gradient(135deg, #fefefe 0%, #f5f1eb 100%);
  border-radius: 20px;
  max-width: 800px;
  max-height: 80vh;
  width: 100%;
  box-shadow: 0 20px 60px rgba(139, 69, 19, 0.3);
  border: 2px solid #e8d5c4;
  overflow: hidden;
  animation: slideIn 0.3s ease;
}

.modal-header {
  background: linear-gradient(135deg, #d4af8c 0%, #c9a96e 100%);
  color: #8b4513;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #d4af8c;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  font-family: 'Georgia', serif;
}

.close-modal {
  background: none;
  border: none;
  color: #8b4513;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body {
  padding: 30px;
  max-height: 60vh;
  overflow-y: auto;
  color: #8b4513;
  line-height: 1.6;
}

.modal-body h2 {
  color: #8b4513;
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-family: 'Georgia', serif;
  border-bottom: 2px solid #d4af8c;
  padding-bottom: 10px;
}

.modal-body h3 {
  color: #8b4513;
  font-size: 1.3rem;
  margin: 25px 0 15px 0;
  font-family: 'Georgia', serif;
}

.modal-body p {
  margin-bottom: 15px;
  font-size: 1rem;
}

.modal-body ul {
  margin: 15px 0;
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.modal-body strong {
  color: #b8860b;
  font-weight: 600;
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .content-grid {
    gap: 15px;
  }
  
  .navbar .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  
  .navbar {
    padding: 15px 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  
  .nav-item:not(:last-child)::after {
    display: none;
  }

  .sub-nav {
    padding: 8px 0;
  }

  .sub-nav-list {
    flex-wrap: wrap;
    gap: 6px;
  }

  .sub-nav-item > a {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .sub-nav-dropdown {
    position: static;
    min-width: 100%;
    margin: 4px 0 0 0;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border: none;
    box-shadow: none;
    background: rgba(245, 241, 235, 0.95);
    border-radius: 8px;
    transition: max-height 0.25s ease, padding 0.25s ease;
  }

  .sub-nav-item.sub-nav-open .sub-nav-dropdown {
    max-height: 200px;
    padding: 8px 0;
    margin-top: 6px;
    border: 1px solid #e8d5c4;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
  }

  .sub-nav-has-dropdown > a::after {
    transition: transform 0.2s ease;
  }

  .sub-nav-item.sub-nav-open > a::after {
    transform: rotate(180deg);
  }
  
  .auth-buttons {
    position: static;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }
  
  .header h1 {
    font-size: 2.5rem;
  }
  
  .header p {
    font-size: 1.1rem;
  }
  
  .main-content {
    padding: 40px 0;
  }
  
  .mixed-content-section {
    padding: 25px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .content-item {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }
  
  .content-item.image-news .item-image {
    width: 100%;
    height: 150px;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .content-item.image-news .item-content {
    width: 100%;
  }
  
  .item-title {
    font-size: 1.2rem;
  }
  
  .item-description {
    -webkit-line-clamp: 3;
  }
  
  .ai-bubble {
    width: 70px;
    height: 70px;
    bottom: 20px;
    right: 20px;
  }
  
  .bubble-text {
    font-size: 0.8rem;
  }
  
  .chat-sidebar {
    width: calc(100% - 40px);
    right: -100%;
    top: 20px;
    height: calc(100vh - 40px);
    min-width: calc(100% - 40px);
    max-width: calc(100% - 40px);
  }
  
  .chat-sidebar.open {
    right: 20px;
  }
}
