/* ========== 顶部栏橙黄主题美化（篮球 & 三角裤点缀 + 动态光影） ========== */
.sticky.w-full.top-0.flex.items-center {
  position: relative !important;
  background: linear-gradient(135deg, #ff8a00 0%, #ffd700 100%) !important;
  box-shadow: 0 2px 12px rgba(255, 140, 0, 0.25) !important;
  overflow: visible !important;
  /* 关键：为动态光影准备大尺寸背景，并应用动画 */
  background-size: 200% 200% !important;
  animation: shimmerTopBar 8s ease-in-out infinite !important;
}

/* 动态光影关键帧：从左至右的微妙流动感 */
@keyframes shimmerTopBar {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* 左上篮球点缀 */
.sticky.w-full.top-0.flex.items-center::before {
  content: "🏀";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  pointer-events: none;
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  z-index: 0;
  /* 可选：为篮球增加一个旋转动画，与动态背景呼应 */
  transition: transform 0.3s ease;
}
.sticky.w-full.top-0.flex.items-center:hover::before {
  transform: translateY(-50%) rotate(15deg);
}

/* 右下男孩三角内裤点缀 */
.sticky.w-full.top-0.flex.items-center::after {
  content: "🩲";
  position: absolute;
  right: 10px;
  bottom: 2px;
  font-size: 20px;
  pointer-events: none;
  opacity: 0.65;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
  z-index: 0;
  /* 可选：内裤的轻微浮动动画，增加俏皮感 */
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* ----- 内部文字与图标改为深色（保证在亮色背景上的可读性） ----- */

/* 模型名称 */
#ai-model-selector .truncate.text-\[13px\] {
  color: #1a202c !important;
  font-weight: 500 !important;
}

/* 模型下拉箭头 */
#ai-model-selector .shrink-0.flex.items-center svg {
  color: #1a202c !important;
}

/* 历史记录图标（移动端） */
.sticky.w-full.top-0 svg.lucide-clock-8 {
  color: #1a202c !important;
}

/* 移动端设置图标 */
.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]) {
  color: #1a202c !important;
}

/* 设置按钮图标 */
#header-setting-button svg {
  color: #1a202c !important;
}

/* 音乐按钮图标 */
.sticky.w-full.top-0 button.MuiIconButton-root svg.lucide-music-2 {
  color: #1a202c !important;
}

/* 为所有图标按钮增加半透明背景，提升视觉层次和交互反馈 */
.sticky.w-full.top-0 button.MuiIconButton-root {
  background-color: rgba(255, 255, 255, 0.3) !important;
  border-radius: 6px !important;
  transition: all 0.25s ease !important;
}
.sticky.w-full.top-0 button.MuiIconButton-root:hover {
  background-color: rgba(255, 255, 255, 0.7) !important;
  transform: scale(1.05);
}

/* 未读角标（移动端）保持醒目 */
.sticky.w-full.top-0 span.MuiBadge-dot.md\:hidden {
  background-color: #ef4444 !important;
}
/* 聊天框美化 - 太阳色渐变 + 篮球立绘 */
.bg-gray-100\/90.relative.inline-block {
    /* 太阳色系渐变背景 */
    background: linear-gradient(145deg, #FFD93D 0%, #FFAA33 40%, #FF8C42 100%) !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    padding:馈 14px !important;
    border: none !important;
}

/* 篮球立绘装饰 */
.bg-gray-100\/90.relative.inline-block::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 150px !important;
    height: 150px !important;
    transform: translate(-50%, -50%) !important;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSI0OCIgZmlsbD0iI0ZGNkIzNSIgc3Ryb2tlPSIjMWUzYTVmIiBzdHJva2Utd2lkdGg9IjQiLz48cGF0aCBkPSJNMiA1MCBRNTAgMTUgOTggNTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzFlM2E1ZiIgc3Ryb2tlLXdpZHRoPSIyLjUiLz48cGF0aCBkPSJNMiA1MCBRNTAgODUgOTggNTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzFlM2E1ZiIgc3Ryb2tlLXdpZHRoPSIyLjUiLz48cGF0aCBkPSJNNTAgMiBRMTUgNTAgNTAgOTgiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzFlM2E1ZiIgc3Ryb2tlLXdpZHRoPSIyLjUiLz48cGF0aCBkPSJNNTAgMiBRODUgNTAgNTAgOTgiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzFlM2E1ZiIgc3Ryb2tlLXdpZHRoPSIyLjUiLz48Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSI0OCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjRkY0NTAwIiBzdHJva2Utd2lkdGg9IjEiIG9wYWNpdHk9IjAuMyIvPjwvc3ZnPg==') !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    opacity: 0.25 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    animation: rotateBall 18s linear infinite !important;
}

/* CSS旋转动画 */
@keyframes rotateBall {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 文本内容 */
.markdown-body {
    color: #2c1810 !important;
    background: transparent !important;
    position: relative !important;
    z-index: 1 !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7) !important;
}

/* 底部附加元素 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary,
.MuiTypography-root.MuiTypography-body2.css-6c0gf2,
.text-orange-500 {
    color: #8B4513 !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.4) !important;
    border-radius: 6px !important;
    padding: 2px 8px !important;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .bg-gray-100\/90.relative.inline-block::before {
        width: 120px !important;
        height: 120px !important;
    }
    .bg-gray-100\/90.relative.inline-block {
        padding: 10px !important;
    }
}

/* 低动效偏好 */
@media (prefers-reduced-motion: reduce) {
    .bg-gray-100\/90.relative.inline-block::before {
        animation-duration: 36s !important;
    }
}