/* ========== 校园恋爱游戏 - 聊天框美化 ========== */

/* 隐藏顶部颜色装饰条 */
[class*="bg-\\[#F1CBCB\\]"], 
[class*="bg-\\[#c9e1e9\\]"] {
    display: none !important;
}

/* 统一聊天框基础样式 */
.bg-gray-100\\/90.relative.inline-block {
    border-radius: 20px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
    padding: 18px 22px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid transparent !important;
    position: relative !important;
    overflow: visible !important;
}

.bg-gray-100\\/90.relative.inline-block:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2) !important;
}

/* 输入聊天框（用户消息）- 清新蓝色系 */
.bg-gray-100\\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\\/90) {
    background: linear-gradient(135deg, #e6f3ff 0%, #cce7ff 100%) !important;
    border-color: #99d6ff !important;
}

.bg-gray-100\\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\\/90):hover {
    border-color: #66c2ff !important;
}

/* 输出聊天框（AI消息）- 温柔粉色系 */
.chat-answer-container .bg-gray-100\\/90.relative.inline-block {
    background: linear-gradient(135deg, #fff5f9 0%, #ffe6f0 100%) !important;
    border-color: #ffb3d9 !important;
}

.chat-answer-container .bg-gray-100\\/90.relative.inline-block:hover {
    border-color: #ff99cc !important;
}

/* 聊天框内文本样式 */
.markdown-body {
    color: #2d3436 !important;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif !important;
    line-height: 1.8 !important;
    font-size: 15px !important;
}

.markdown-body strong {
    color: #ff69b4 !important;
    font-weight: 600 !important;
}

.markdown-body a {
    color: #667eea !important;
    text-decoration: none !important;
    border-bottom: 2px solid #667eea !important;
    transition: all 0.2s ease !important;
}

.markdown-body a:hover {
    color: #764ba2 !important;
    border-bottom-color: #764ba2 !important;
}

.markdown-body code {
    background: rgba(255, 182, 193, 0.15) !important;
    color: #e74c3c !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-family: 'Consolas', 'Monaco', monospace !important;
}

.markdown-body pre {
    background: rgba(102, 126, 234, 0.08) !important;
    border-left: 4px solid #667eea !important;
    border-radius: 8px !important;
    padding: 12px !important;
}

/* 底部操作按钮美化 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
    color: #ff69b4 !important;
    font-weight: 500 !important;
    border-radius: 12px !important;
    padding: 6px 14px !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    font-family: 'Microsoft YaHei', sans-serif !important;
}

.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    background: rgba(255, 105, 180, 0.1) !important;
    transform: scale(1.05) !important;
}

/* 模型名称文本美化 */
.MuiTypography-root.MuiTypography-body2.css-6c0gf2 {
    color: #667eea !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 4px 10px !important;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
    border-radius: 12px !important;
    display: inline-block !important;
}

/* Token消耗文本美化 */
.text-orange-500 {
    color: #ff6b9d !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    padding: 3px 8px !important;
    background: rgba(255, 107, 157, 0.1) !important;
    border-radius: 10px !important;
    display: inline-block !important;
}

/* 隐藏原始加载动画 */
.style_dot-flashing__8L91Q.style_text__zGhNq {
    display: none !important;
}

/* 自定义加载动画 - 跳动的心形 */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    height: 40px !important;
    width: auto !important;
}

.flex.items-center.justify-center.w-6.h-5::before {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 30px !important;
    height: 30px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff69b4'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    animation: heartbeat 1.2s ease-in-out infinite !important;
}

.flex.items-center.justify-center.w-6.h-5::after {
    content: '正在思考中...' !important;
    position: absolute !important;
    left: 50% !important;
    top: calc(100% + 5px) !important;
    transform: translateX(-50%) !important;
    font-size: 12px !important;
    color: #ff69b4 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    animation: fadeInOut 1.5s ease-in-out infinite !important;
}

@keyframes heartbeat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.7;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* 添加装饰性元素 - 聊天框左上角小标签 */
.bg-gray-100\\/90.relative.inline-block::before {
    content: '💬' !important;
    position: absolute !important;
    top: -8px !important;
    left: 15px !important;
    font-size: 16px !important;
    background: white !important;
    padding: 2px 6px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.chat-answer-container .bg-gray-100\\/90.relative.inline-block::before {
    content: '💕' !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bg-gray-100\\/90.relative.inline-block {
        border-radius: 15px !important;
        padding: 14px 18px !important;
    }
    
    .markdown-body {
        font-size: 14px !important;
    }
    
    .flex.items-center.justify-center.w-6.h-5::before {
        width: 24px !important;
        height: 24px !important;
    }
    
    .flex.items-center.justify-center.w-6.h-5::after {
        font-size: 11px !important;
    }
}
/* ========== 校园恋爱游戏状态栏美化样式 ========== */

/* 整体容器样式 */
.game-status-panel {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  max-width: 900px;
  margin: 20px auto;
  padding: 15px;
  background: linear-gradient(135deg, #ffeef8 0%, #e6f3ff 100%);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(255, 105, 180, 0.15);
}

/* 折叠面板通用样式 */
.game-status-panel details {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  margin-bottom: 15px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.game-status-panel details:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.2);
  border-color: #ffb3d9;
}

.game-status-panel details[open] {
  background: linear-gradient(135deg, #fff5f9 0%, #f0f8ff 100%);
  border-color: #ff69b4;
}

/* 标题样式 */
.game-status-panel summary {
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 12px 15px;
  border-radius: 10px;
  background: linear-gradient(90deg, #ff9a9e 0%, #fecfef 50%, #a8edea 100%);
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-status-panel summary::-webkit-details-marker {
  display: none;
}

.game-status-panel summary::before {
  content: '📋';
  font-size: 20px;
  transition: transform 0.3s ease;
}

.game-status-panel details[open] summary::before {
  transform: rotate(90deg);
}

.game-status-panel summary:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

/* 不同模块的emoji图标 */
.game-status-panel details:nth-child(1) summary::before { content: '⏰'; }
.game-status-panel details:nth-child(2) summary::before { content: '👤'; }
.game-status-panel details:nth-child(3) summary::before { content: '👥'; }
.game-status-panel details:nth-child(4) summary::before { content: '📅'; }
.game-status-panel details:nth-child(5) summary::before { content: '📱'; }
.game-status-panel details:nth-child(6) summary::before { content: '💭'; }
.game-status-panel details:nth-child(7) summary::before { content: '🎯'; }

/* 内容区域样式 - 修复这里的语法错误 */
.game-status-panel details > *:not(summary) {
  margin-top: 15px;
  line-height: 1.8;
  color: #333;
}

/* 表格美化 */
.game-status-panel table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 15px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.game-status-panel table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px;
  font-weight: bold;
  text-align: left;
}

.game-status-panel table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  background: white;
}

.game-status-panel table tr:last-child td {
  border-bottom: none;
}

.game-status-panel table tr:hover td {
  background: #fff5f9;
}

/* 列表美化 */
.game-status-panel ul,
.game-status-panel ol {
  padding-left: 25px;
}

.game-status-panel li {
  margin: 8px 0;
  padding: 8px 12px;
  background: rgba(255, 182, 193, 0.1);
  border-left: 3px solid #ff69b4;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.game-status-panel li:hover {
  background: rgba(255, 182, 193, 0.2);
  transform: translateX(5px);
}

/* 好感度进度条 */
.favorability-bar {
  display: inline-block;
  width: 150px;
  height: 20px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  vertical-align: middle;
  margin-left: 10px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.favorability-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b9d 0%, #c06c84 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* 消息未读红点 */
.unread-badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  background: #ff4757;
  color: white;
  border-radius: 9px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  line-height: 18px;
  margin-left: 8px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* 强调文本样式 */
.game-status-panel strong {
  color: #ff69b4;
  font-weight: 600;
}

/* 分隔线美化 */
.game-status-panel hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffb3d9, transparent);
  margin: 20px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .game-status-panel {
    padding: 10px;
    margin: 10px;
  }
  
  .game-status-panel summary {
    font-size: 16px;
    padding: 10px;
  }
  
  .favorability-bar {
    width: 100px;
  }
}

/* 特殊标签样式 */
.status-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  margin: 0 5px;
}

.status-tag.positive {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #ff69b4;
}

.status-tag.negative {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  color: #d63031;
}

.status-tag.neutral {
  background: linear-gradient(135deg, #dfe6e9 0%, #b2bec3 100%);
  color: #2d3436;
}