/* 提取自 index.html 的样式，时间：2025-10-18 */
/* 全局样式 */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #fefcff;
  min-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 聊天容器样式 */
.chat-container { min-height: 100vh; display: flex; flex-direction: column; background: transparent; max-width: 414px; margin: 0 auto; box-shadow: none; }

/* 状态栏样式 */
.status-bar { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); padding: 0.5rem 1rem 0.3rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; color: #333; font-weight: 500; }
.status-time { display: flex; align-items: center; gap: 0.25rem; }
.status-icons { display: flex; align-items: center; gap: 0.35rem; }
.status-icons i { font-size: 0.875rem; }
.battery { display: flex; align-items: center; gap: 0.2rem; background: #333; color: white; padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.75rem; }

/* 头部样式 */
.chat-header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); color: #333; height: 47px; text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); position: relative; }
.back-button { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; display: none; align-items: center; justify-content: center; background: rgba(167, 139, 250, 0.15); color: #7c3aed; border: 1px solid rgba(167, 139, 250, 0.3); cursor: pointer; transition: all 0.3s ease; }
.back-button:hover { background: rgba(167, 139, 250, 0.25); transform: translateY(-50%) scale(1.05); }
.voice-button { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(167, 139, 250, 0.12); color: #7c3aed; border: 1px solid rgba(167, 139, 250, 0.2); cursor: pointer; transition: all 0.3s ease; flex-shrink: 0; }
.voice-button:hover { background: rgba(167, 139, 250, 0.25); border-color: rgba(167, 139, 250, 0.4); transform: scale(1.05); }
.chat-header h1 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.25rem; color: #333; }
.chat-header p { font-size: 0.875rem; opacity: 0.7; color: #666; }

/* 消息区域 */
.messages-container { flex: 1; overflow-y: auto; padding: 0.75rem 0.75rem 90px 0.75rem; background: transparent; }

/* 消息气泡 */
.message { margin-bottom: 1rem; animation: fadeInUp 0.3s ease-out; display: flex; align-items: flex-start; gap: 0.5rem; }
.message.user { flex-direction: row-reverse; }
.message.bot { flex-direction: row; }
.message-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.message.user .message-avatar { background: linear-gradient(135deg, #a78bfa, #c4b5fd); color: white; }
.message.bot .message-avatar { background: linear-gradient(135deg, #a78bfa, #c4b5fd); color: white; padding: 0; overflow: hidden; }
.message.bot .message-avatar img { width: 100%; height: 100%; object-fit: cover; }
.message-content { display: flex; }
.message.user .message-content, .message.bot .message-content { display: flex; }
.message.user .message-bubble, .message.bot .message-bubble { margin: 0; }

/* 全宽内容（如项目卡片） */
.message-content.full-width { max-width: 100%; width: 100%; }

/* 聊天气泡最大宽度限制 */
.message-bubble { max-width: 640px; }

.message.no-avatar { padding-left: 0; margin-left: 44px; }
.message.no-avatar .message-content { max-width: 100%; }
.message.no-avatar { margin-bottom: 0.5rem; }

.message-bubble { display: inline-block; max-width: 100%; padding: 0.6rem 0.85rem; border-radius: 18px; position: relative; word-wrap: break-word; font-size: 0.82rem; line-height: 1.35; }
.message.user .message-bubble { background: linear-gradient(135deg, #a78bfa, #c4b5fd); color: white; border-radius: 18px 18px 4px 18px; }
.message.bot .message-bubble { background: white; color: #333; border: 1px solid #e5e7eb; border-radius: 18px 18px 18px 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }

/* 项目卡片样式（精简 & 统一高度） */
.restaurant-card { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-radius: 16px; margin: 0.4rem 0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); display: flex; align-items: stretch; width: 100%; overflow: hidden; transition: box-shadow .25s, transform .25s; min-height: 116px; }
.restaurant-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }

/* 固定图片宽高；不足拉伸，超出裁切 */
/* 左侧图片容器，保证与卡片同高 */
.restaurant-media { width: 120px; flex: 0 0 120px; align-self: stretch; overflow: hidden; position: relative; }
.restaurant-image { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 距离徽标 */
.distance-badge { position: absolute; top: 6px; left: 6px; background: rgba(0, 0, 0, 0.55); color: #fff; padding: 2px 6px; border-radius: 999px; font-size: 11px; line-height: 1; display: flex; align-items: center; gap: 4px; pointer-events: none; }

.restaurant-content { padding: 0.55rem 1rem 0.6rem 0.95rem; flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.restaurant-name { font-weight: 600; color: #111; margin-bottom: 0.2rem; font-size: 0.9rem; line-height: 1.2; }
.restaurant-info { font-size: 0.66rem; color: #555; margin-bottom: 0.12rem; line-height: 1.25; display: flex; }
.restaurant-info i, .restaurant-info::before { margin-right: 0.35rem; flex-shrink: 0; }

.restaurant-tags { display: flex; flex-wrap: nowrap; gap: 0.35rem; margin: 0.25rem 0 0.15rem 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.restaurant-tags::-webkit-scrollbar { display: none; }
.tag { background: #f3f3f3; color: #555; padding: 0.16rem 0.45rem; border-radius: 9px; font-size: 0.58rem; border: 1px solid #e2e2e2; white-space: nowrap; flex: 0 0 auto; }

.card-actions { margin-top: 0.4rem; display: flex; gap: 0.5rem; }
.action-btn { flex: 1; background: rgba(255, 255, 255, 0.8); border: 1px solid #e5e7eb; padding: 0.35rem 0.55rem; font-size: 0.62rem; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 4px; color: #666; cursor: pointer; transition: background .25s, box-shadow .25s, transform .25s; outline: none; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.action-btn.primary { background: linear-gradient(135deg, #a78bfa, #c4b5fd); color: #fff; border: none; }
.action-btn:hover { background: rgba(255, 255, 255, 1); }
.action-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3); }
.action-btn:active { transform: scale(0.98); }
.action-btn.primary:active { transform: translateY(0) scale(0.98); }

/* 输入区域 */
.input-container { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 414px; background: transparent; padding: 1rem; border-top: none; box-shadow: none; }
.input-wrapper { display: flex; align-items: center; background: white; border-radius: 28px; padding: 0.375rem 0.5rem; border: 1px solid #e5e7eb; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.footer-text { text-align: center; font-size: 0.7rem; color: #999; margin-top: 0.35rem; opacity: 0.7; line-height: 1; }
.input-field { flex: 1; border: none; outline: none; background: transparent; padding: 0.625rem 0.5rem; font-size: 0.95rem; color: #333; }
.input-field::placeholder { color: #999; }
.send-button { background: linear-gradient(135deg, #a78bfa, #c4b5fd); color: white; border: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(167, 139, 250, 0.3); }
.send-button:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(167, 139, 250, 0.4); }
.send-button:disabled { background: #ccc; cursor: not-allowed; transform: none; }

/* 打字动画 */
.typing-indicator { display: flex; align-items: center; padding: 1rem; }
.typing-dots { display: flex; gap: 4px; }
.typing-dot { width: 8px; height: 8px; border-radius: 50%; background: #999; animation: typing 1.4s infinite ease-in-out; }
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing { 0%,80%,100% { transform: scale(0); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* 滚动条样式 */
.messages-container::-webkit-scrollbar { width: 4px; }
.messages-container::-webkit-scrollbar-track { background: #f1f1f1; }
.messages-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

/* 欢迎消息样式 */
.welcome-message { padding: 0rem 1rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.text-group_1 { width: 235px; height: 76px; }
.text_2 { background-image: linear-gradient(91deg, rgba(124, 160, 249, 1) 0, rgba(171, 156, 253, 1) 100%); width: 235px; height: 60px; overflow-wrap: break-word; font-size: 48px; font-family: YouSheBiaoTiYuan-Regular; font-weight: normal; text-align: left; white-space: nowrap; line-height: 60px; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text_3 { width: 104px; height: 20px; overflow-wrap: break-word; color: rgba(51, 51, 51, 1); font-size: 16px; font-family: YouSheBiaoTiYuan-Regular; font-weight: normal; text-align: left; white-space: nowrap; line-height: 20px; margin: -4px 0 0 66px; }
.welcome-content { display: flex; align-items: flex-start; justify-content: flex-start; gap: 0; width: 100%; max-width: 400px; position: relative; padding-left: 0; }
.avatar-section { position: relative; flex-shrink: 0; margin-left: -2rem; }
.welcome-icon { width: 260px; height: 340px; display: flex; align-items: center; justify-content: center; position: relative; }
.avatar-image { width: 100%; height: 100%; object-fit: contain; border: none; outline: none; }
.video-play-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, #a78bfa, #c4b5fd); color: white; border: none; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; cursor: pointer; box-shadow: 0 4px 16px rgba(167, 139, 250, 0.4); transition: all 0.3s ease; z-index: 10; }
.video-play-button:hover { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 6px 20px rgba(167, 139, 250, 0.5); }
.video-play-button:active { transform: translate(-50%, -50%) scale(0.95); }
.sparkle { position: absolute; top: -5px; left: 30px; font-size: 1.8rem; animation: sparkle 2s infinite; }
@keyframes sparkle { 0%,100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; } }
.chat-bubble { background: linear-gradient(135deg, #a78bfa, #c4b5fd); color: white; padding: 1rem 0.5rem 1rem 1rem; border-radius: 20px 20px 20px 4px; box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3); font-size: 0.8rem; line-height: 1.6; max-width: 220px; position: absolute; top: 20px; right: 0px; }
.chat-bubble p { margin: 0; }
.suggestions-section { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 0.6rem; }
.suggestions-hint { font-size: 0.85rem; color: #999; text-align: left; margin-bottom: 0.2rem; padding-left: 0.5rem; }
.suggestion-chip { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border: 1px solid rgba(167, 139, 250, 0.3); color: #333; padding: 0.7rem 1.2rem; border-radius: 20px; cursor: pointer; transition: all 0.25s ease; font-size: 0.85rem; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
.suggestion-chip:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(167, 139, 250, 0.25); background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.5); }

/* 继续提问提示样式 */
.continue-asking { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-radius: 16px; padding: 1rem; margin: 0.5rem 0.25rem; border: 1px solid #e5e7eb; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); }
.continue-asking-title { font-size: 0.85rem; color: #666; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.4rem; }
.continue-chip { background: rgba(167, 139, 250, 0.08); color: #7c3aed; padding: 0.6rem 1rem; border-radius: 20px; cursor: pointer; transition: all 0.25s ease; font-size: 0.8rem; display: block; border: 1px solid rgba(167, 139, 250, 0.2); text-align: center; margin-bottom: 0.5rem; }
.continue-chip:last-child { margin-bottom: 0; }
.continue-chip:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(167, 139, 250, 0.25); background: rgba(167, 139, 250, 0.15); border-color: rgba(167, 139, 250, 0.4); }

/* 系统导航样式 */
.daily-report-section { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.report-nav-cards { display: flex; flex-direction: column; gap: 0.75rem; }
.nav-card { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border: 1px solid rgba(167, 139, 250, 0.3); border-radius: 16px; padding: 1rem; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 1rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.nav-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(167, 139, 250, 0.25); background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.5); }
.nav-card-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #a78bfa, #c4b5fd); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.nav-card-content h4 { margin: 0 0 0.25rem 0; font-size: 1rem; font-weight: 600; color: #1f2937; }
.nav-card-content p { margin: 0; font-size: 0.85rem; color: #6b7280; line-height: 1.4; }