/* Duomee Chat - Additional Styles */

/* 消息发送动画 */
@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.message-animate-in {
  animation: message-in 0.2s ease-out;
}

/* 按钮点击反馈 */
.btn-press {
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}
.btn-press:active {
  transform: scale(0.95);
}

/* 列表加载动画 */
@keyframes list-skeleton {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}
.skeleton-loading {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200px 100%;
  animation: list-skeleton 1.5s ease-in-out infinite;
}

/* 页面切换动画 */
.page-transition {
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

/* 滚动流畅性优化 */
.scroll-smooth {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* 未读数脉冲动画（减弱版，避免干扰） */
@keyframes badge-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
.badge-pulse {
  animation: badge-pulse 2s ease-in-out infinite;
}

/* ==================== */
/* 移动端底部导航栏样式 */
/* ==================== */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #051611;
  border-top: 1px solid rgba(201, 154, 5, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 1000;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
}

.mobile-nav-item .material-symbols-outlined {
  font-size: 24px;
}

.mobile-nav-item .label {
  font-size: 10px;
  font-weight: 500;
}

.mobile-nav-item.active {
  color: #c99a05;
}

.mobile-nav-item.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
}

.mobile-nav-item:active {
  transform: scale(0.95);
  background: rgba(201, 154, 5, 0.1);
}

/* 移动端页面容器 - 预留底部导航空间 */
@media (max-width: 768px) {
  .app-container {
    padding-bottom: 70px;
  }
}
