/* ============================================================
 * 游武汉 · Pop Art 波普艺术聊天界面
 * 撞色 / 3px黑边 / 实心偏移阴影 / 半色调网点 / 暖白底 / 全中文
 * ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --orange: #FF6B35;
  --yellow: #FFD23F;
  --blue: #1B9CFC;
  --green: #27AE60;
  --pink: #FF5DA2;
  --purple: #9B5DE5;
  --ink: #1a1a1a;
  --cream: #fff7ed;
  --paper: #fffdf8;
  --gray: #5a5a5a;
}

html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background-color: #faf8ff;
  /* 武汉主题紫色版背景：浅紫渐变 + SVG（黄鹤楼/樱花/长江波浪）+ 浅紫半色调网点 */
  background-image:
    radial-gradient(rgba(157,93,229,0.10) 1.2px, transparent 1.2px),
    url('wuhan-purple.svg');
  background-size: 22px 22px, cover;
  background-position: 0 0, center center;
  background-attachment: fixed, fixed;
  background-repeat: repeat, no-repeat;
  -webkit-font-smoothing: antialiased;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 860px;
  margin: 0 auto;
  /* 主体半透明浅紫，让武汉紫色背景从两侧透出 */
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid #e8def8;
  border-radius: 20px;
  box-shadow: 0 6px 30px rgba(157,93,229,0.10);
}

/* ---- 顶栏（统一浅紫卡片风格，移除 Pop Art 黑底） ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, #ffffff 0%, #faf6ff 100%);
  color: var(--ink);
  border-bottom: 1px solid #ece4fa;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  box-shadow: 0 3px 12px rgba(157,93,229,0.30);
}
.brand-text h1 {
  font-size: 22px; font-weight: 900; letter-spacing: 1px;
  color: #6C3FBF;
}
.brand-text p {
  font-size: 12px; color: #9B5DE5; margin-top: 2px; font-weight: 600;
}
.mode-badge {
  font-size: 12px; font-weight: 700;
  padding: 5px 12px 5px 10px;
  border: 1.5px solid #C9A6F0;
  border-radius: 20px;
  color: #6C3FBF;
  background: #f4edff;
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.mode-badge::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%;
  background: #B57FE5;
}
.mode-badge.local { color: #0a7a3d; border-color: #7BCFA1; background: #e6f9ee; }
.mode-badge.local::before { background: #27AE60; }

/* ---- 消息区 ---- */
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.messages::-webkit-scrollbar { width: 6px; }
.messages::-webkit-scrollbar-thumb { background: #B57FE5; border-radius: 3px; }
.messages::-webkit-scrollbar-track { background: transparent; }

/* ---- 消息项（用户/助手统一结构） ---- */
.msg { display: flex; width: 100%; align-items: flex-start; gap: 10px; }
.msg.msg-user { justify-content: flex-end; }
.msg.msg-bot { justify-content: flex-start; }

.msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  padding: 1px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(157, 93, 229, 0.18);
}
.msg-avatar img { width: 100%; height: 100%; border-radius: 50%; display: block; }

.msg-body {
  max-width: 76%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.msg.msg-user .msg-body { align-items: flex-end; }

.msg-time {
  font-size: 11px;
  color: #8b7aab;
  padding: 0 4px;
  letter-spacing: 0.3px;
}

/* ---- 气泡（含尖尾巴） ---- */
.bubble {
  position: relative;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.65;
  word-break: break-word;
  animation: msg-in 0.25s cubic-bezier(.2,.9,.3,1.2);
  max-width: 100%;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.msg-user .bubble {
  background: linear-gradient(135deg, #9B5DE5 0%, #6C3FBF 100%);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 4px 14px rgba(108, 63, 191, 0.24);
}
.msg-bot .bubble {
  background: #fff;
  color: #2a1a5e;
  border: 1px solid #ece4fa;
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 2px 10px rgba(157, 93, 229, 0.08);
}
.bubble-text { white-space: pre-wrap; }

/* 复制按钮（hover 才出现） */
.bubble-action {
  position: absolute;
  top: -10px;
  right: 8px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  background: #fff;
  color: #6C3FBF;
  border: 1px solid #ece4fa;
  border-radius: 10px;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  box-shadow: 0 2px 6px rgba(157, 93, 229, 0.12);
}
.msg:hover .bubble-action,
.bubble-action:focus { opacity: 1; }
.bubble-action:hover { background: #faf6ff; }

/* Loading 三点动画 */
.bubble-loading { padding: 16px 20px !important; min-width: 64px; }
.bubble-loading .dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin: 0 2px;
  background: #B57FE5;
  border-radius: 50%;
  animation: dot-pulse 1.2s infinite ease-in-out;
}
.bubble-loading .dot:nth-child(2) { animation-delay: 0.15s; }
.bubble-loading .dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-pulse {
  0%, 60%, 100% { transform: scale(1); opacity: 0.4; }
  30% { transform: scale(1.4); opacity: 1; }
}
.msg-loading { opacity: 0.85; }

/* ---- 空态（无消息时显示） ---- */
.empty-state {
  margin: auto;
  padding: 32px 20px;
  text-align: center;
  color: #4c2a8f;
}
.empty-avatar {
  width: 80px; height: 80px;
  margin: 0 auto 18px;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 6px 20px rgba(157, 93, 229, 0.20);
}
.empty-avatar img { width: 100%; height: 100%; border-radius: 50%; }
.empty-text { font-size: 15px; font-weight: 600; }
.empty-suggest { margin-top: 22px; }
.empty-suggest-label {
  font-size: 12px;
  color: #8b7aab;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.empty-chip {
  display: inline-block;
  margin: 4px 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #4c2a8f;
  background: #fff;
  border: 1px solid #ece4fa;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.18s;
}
.empty-chip:hover {
  background: #faf6ff;
  border-color: #B57FE5;
  transform: translateY(-1px);
}
.bubble.bubble-loading { color: var(--gray); font-style: italic; }
.bubble.bubble-loading::after {
  content: ""; display: inline-block; width: 6px; margin-left: 6px;
  animation: dots 1s steps(4) infinite;
}
@keyframes dots {
  0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; }
}

/* ---- 卡片 ---- */
.card-container { display: flex; flex-direction: column; gap: 12px; width: 100%; }

.pop-card {
  background: #fff;
  border: 1px solid #e8def8;
  border-radius: 14px;
  box-shadow: 0 3px 16px rgba(157,93,229,0.08);
  overflow: hidden;
  max-width: 100%;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  color: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.card-head h3 { font-size: 17px; font-weight: 800; }
.card-head .tag { font-size: 11px; font-weight: 700; background: rgba(0,0,0,0.25); padding: 3px 8px; border-radius: 10px; }
.attraction-card .card-head { background: var(--blue); }
.route-card .card-head { background: var(--purple); }
.food-card .card-head { background: var(--orange); }
.weather-card .card-head { background: var(--green); }
.utility-card .card-head { background: var(--ink); color: var(--yellow); }
.utility-card.emergency .card-head { background: #e74c3c; color: #fff; }
.welcome-card .card-head { background: var(--pink); }

.card-body { padding: 12px 14px; }
.card-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.12);
  flex-wrap: wrap;
}
.card-row:last-child { border-bottom: none; }
.label {
  font-size: 12px; font-weight: 800; color: #fff;
  background: var(--ink); padding: 2px 8px; border-radius: 10px;
  white-space: nowrap;
}
.card-row span:not(.label) { font-size: 14px; color: var(--ink); }
.meta { font-size: 12px; color: var(--gray); }

.crowd-bar {
  flex: 1; min-width: 80px; height: 12px;
  background: #eee; border: 2px solid var(--ink); border-radius: 8px;
  overflow: hidden;
}
.crowd-fill { height: 100%; transition: width 0.4s; }
.crowd-text { font-weight: 800; font-size: 13px; }

.card-history { margin-top: 8px; }
.card-history p { font-size: 13px; line-height: 1.6; color: var(--gray); margin-top: 4px; }
.card-tip {
  margin-top: 10px; padding: 8px 10px;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px;
  font-size: 13px; font-weight: 600;
}

/* 路线时间线 */
.route-summary { padding: 10px 14px; font-size: 14px; color: var(--gray); font-style: italic; border-bottom: 1px dashed rgba(0,0,0,0.1); }
.timeline { padding: 14px 14px 14px 8px; }
.timeline-item {
  display: flex; align-items: flex-start; gap: 10px;
  position: relative; padding-bottom: 14px;
}
.timeline-item:not(:last-child)::after {
  content: ""; position: absolute; left: 38px; top: 22px; bottom: 0;
  width: 3px; background: var(--purple);
}
.timeline-time {
  font-size: 12px; font-weight: 800; color: #fff;
  background: var(--purple); padding: 3px 8px; border-radius: 10px;
  white-space: nowrap; min-width: 64px; text-align: center;
  border: 2px solid var(--ink);
}
.timeline-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--ink);
  flex-shrink: 0; margin-top: 2px;
}
.timeline-body { flex: 1; }
.timeline-place { font-size: 15px; font-weight: 800; }
.timeline-act { font-size: 13px; color: var(--gray); margin: 2px 0; }
.timeline-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.timeline-meta span { font-size: 12px; background: #f0e6ff; padding: 2px 7px; border-radius: 8px; border: 1px solid var(--ink); }

/* 美食卡 */
.food-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tag-mini { font-size: 11px; font-weight: 700; background: var(--orange); color: #fff; padding: 2px 8px; border-radius: 10px; border: 2px solid var(--ink); }
.food-desc { font-size: 14px; line-height: 1.6; }
.food-flavor { font-size: 13px; color: var(--gray); margin-top: 6px; }
.food-shops { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.shop-chip { font-size: 12px; background: #fff3e0; border: 2px solid var(--ink); padding: 3px 9px; border-radius: 8px; font-weight: 600; }

/* 天气卡 */
.weather-main { display: flex; align-items: center; gap: 16px; padding: 16px; }
.weather-temp { font-size: 52px; font-weight: 900; color: var(--ink); line-height: 1; }
.weather-temp span { font-size: 18px; }
.weather-desc { font-size: 18px; font-weight: 700; color: var(--green); }
.weather-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 14px; }
.weather-grid > div { display: flex; flex-direction: column; gap: 2px; padding: 8px; background: #f4faf6; border: 2px solid var(--ink); border-radius: 8px; }
.weather-grid > div span:last-child { font-size: 15px; font-weight: 700; }
.weather-sim { text-align: center; font-size: 11px; color: var(--gray); padding: 6px; background: #fafafa; border-top: 1px dashed rgba(0,0,0,0.15); }
.weather-sim.real { color: var(--green); font-weight: 700; }

/* 实用信息卡 */
.util-item, .emerg-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed rgba(0,0,0,0.12); }
.util-item:last-child, .emerg-item:last-child { border-bottom: none; }
.util-name { font-weight: 800; font-size: 15px; }
.util-reason { font-size: 12px; color: var(--gray); max-width: 60%; text-align: right; }
.emerg-name { font-size: 14px; }
.emerg-tel { font-size: 18px; font-weight: 900; color: #e74c3c; }

/* 欢迎卡 */
.welcome-card { text-align: center; padding: 16px; }
.welcome-card .welcome-title { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.welcome-card .welcome-title span { color: var(--orange); }
.welcome-card p { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ---- 输入栏更紧贴消息区 ---- */
/* ---- 输入栏（统一浅紫风格） ---- */
.input-bar {
  display: flex; gap: 10px; padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #ece4fa;
}
#input {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid #d8cef5;
  border-radius: 12px;
  background: #fdfbff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#input:focus { border-color: #9B5DE5; box-shadow: 0 0 0 3px rgba(157,93,229,0.12); }
#sendBtn {
  padding: 0 22px;
  font-size: 15px; font-weight: 800;
  background: linear-gradient(135deg, #9B5DE5 0%, #6C3FBF 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.15s;
}
#sendBtn:hover { opacity: 0.88; }
#sendBtn:active { opacity: 0.72; }
#sendBtn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- 响应式 ---- */
@media (max-width: 600px) {
  .brand-text h1 { font-size: 18px; }
  .brand-text p { font-size: 11px; }
  .bubble { max-width: 90%; font-size: 14px; }
  .weather-grid { grid-template-columns: 1fr; }
  .weather-temp { font-size: 42px; }
  #sendBtn { padding: 0 16px; }
}

/* ---- 顶栏右侧 ---- */
.topbar-right { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.settings-btn {
  padding: 6px 14px;
  font-size: 13px; font-weight: 700;
  background: #f4edff;
  color: #6C3FBF;
  border: 1.5px solid #C9A6F0;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.settings-btn:hover { background: #9B5DE5; color: #fff; border-color: #9B5DE5; }
.settings-btn:active { background: #6C3FBF; }

/* ---- 内联设置区（可折叠，仿弹框内容但以流式展开，不打断浏览） ---- */
#settingsInline { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; background: #faf8ff; border: 0 solid #f0e8ff; }
body.settings-open #settingsInline { max-height: 999px; border-width: 2px; border-radius: 0 0 12px 12px; margin: 0 18px; }
.settings-inner { max-width: 720px; margin: 0 auto; padding: 18px; }
.settings-body { padding: 0; }
.settings-body { padding: 18px; }
.settings-section { margin-bottom: 18px; }
.settings-section-title {
  font-size: 15px; font-weight: 800;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.settings-section-title::before {
  content: ""; width: 12px; height: 12px;
  background: var(--orange); border: 2px solid var(--ink); border-radius: 50%;
}
.settings-field { margin-bottom: 12px; }
.settings-field label {
  display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px;
}
.settings-field input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px; font-family: inherit;
  border: 3px solid var(--ink); border-radius: 10px;
  background: #fff; outline: none;
  box-shadow: 3px 3px 0 var(--ink);
}
.settings-field input:focus { box-shadow: 3px 3px 0 var(--orange); }
.settings-hint { font-size: 12px; color: var(--gray); line-height: 1.6; margin-top: 5px; }
.settings-status {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 12px;
  border: 2px solid var(--ink);
  margin-left: 6px;
}
.settings-status.ok { background: #d4f5e2; color: #0a7a3d; }
.settings-status.warn { background: #ffe9c7; color: #b45f00; }
.settings-save-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px; font-weight: 900;
  background: var(--green); color: #fff;
  border: 3px solid var(--ink); border-radius: 12px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.1s, box-shadow 0.1s;
}
.settings-save-btn:hover { background: var(--blue); }
.settings-save-btn:active { transform: translate(4px,4px); box-shadow: 0 0 0 var(--ink); }
.settings-msg {
  margin-top: 10px; padding: 9px 12px;
  font-size: 13px; font-weight: 700;
  border: 3px solid var(--ink); border-radius: 10px;
  display: none;
}
.settings-msg.ok { display: block; background: #d4f5e2; color: #0a7a3d; }
.settings-msg.err { display: block; background: #ffd9d9; color: #c0392b; }
.settings-static-note {
  padding: 14px;
  background: #fff3d6;
  border: 3px solid var(--ink); border-radius: 12px;
  font-size: 14px; line-height: 1.7;
}

/* ---- 打字机光标 ---- */
.cursor-blink {
  display: inline-block;
  width: 9px; height: 18px;
  background: var(--orange);
  margin-left: 2px;
  vertical-align: -3px;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
 * 欢迎区 + 内容卡片（"AI游湖北"卡片瀑布风格）
 * 紫色主 #9B5DE5 / 黄色强调 #FFD23F / 渐变按钮
 * ============================================================ */
:root {
  --purple-1: #9B5DE5;
  --purple-2: #6C3FBF;
  --purple-soft: #C9A6F0;
  --gradient-warm: linear-gradient(135deg, #FFD23F 0%, #FF5DA2 50%, #9B5DE5 100%);
}

/* ---- 聊天模式切换 ---- */
body.chat-mode #welcome { max-height: 0; opacity: 0; padding: 0; margin: 0; overflow: hidden; transition: all 0.5s ease; }
body.chat-mode #messages { flex: 1; opacity: 1; transition: opacity 0.3s; }
body:not(.chat-mode) #messages { flex: 0 0 0; opacity: 0; pointer-events: none; }
body:not(.chat-mode) .input-bar { box-shadow: 0 -2px 12px rgba(157,93,229,0.18); }
#messages { transition: opacity 0.3s; }
#welcome { transition: all 0.5s ease; max-height: 9999px; }

/* ---- 欢迎区容器 ---- */
#welcome {
  flex: 1;
  overflow-y: auto;
  background: #faf8ff;
  padding: 0 0 24px;
}
#welcome::-webkit-scrollbar { width: 6px; }
#welcome::-webkit-scrollbar-thumb { background: var(--purple-soft); border-radius: 3px; }

/* ---- Hero 装饰背景区（极简：纯渐变，无装饰元素） ---- */
.welcome-hero {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, #e9defb 0%, #dccaf7 100%);
  overflow: hidden;
}
.welcome-greet {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}
.welcome-greet img, .welcome-greet svg {
  width: 72px; height: 88px;
  filter: drop-shadow(2px 4px 8px rgba(108,63,191,0.30));
  flex-shrink: 0;
}
.welcome-greet-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #4c2a8f;
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(108, 63, 191, 0.18);
}

/* ---- 标题区（统一浅紫胶囊风格） ---- */
.welcome-section-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 20px 10px;
  font-size: 16px; font-weight: 800;
  color: #4c2a8f;
  letter-spacing: 0.5px;
}
.welcome-section-title .label { display: flex; align-items: center; gap: 8px; }
.welcome-section-title .label::before {
  content: ""; width: 6px; height: 18px;
  background: linear-gradient(180deg, #B57FE5 0%, #6C3FBF 100%);
  border-radius: 3px;
}
.welcome-section-title .refresh {
  font-size: 12px; font-weight: 700;
  color: #6C3FBF; cursor: pointer;
  padding: 5px 12px; border-radius: 12px;
  background: rgba(201, 166, 240, 0.15);
  transition: background 0.15s;
}
.welcome-section-title .refresh:hover { background: rgba(201, 166, 240, 0.30); }

/* ---- 问题卡片（统一胶囊，更紧凑） ---- */
.welcome-questions {
  display: flex; gap: 8px;
  padding: 0 20px 18px;
  overflow-x: auto;
}
.welcome-questions::-webkit-scrollbar { display: none; }
.welcome-question {
  flex-shrink: 0;
  display: flex; align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 11px 14px 11px 16px;
  background: #fff;
  border: 1px solid #e8def8;
  border-radius: 12px;
  font-size: 13px; font-weight: 600;
  color: #2a1a5e;
  cursor: pointer;
  transition: all 0.18s;
  line-height: 1.4;
}
.welcome-question:hover {
  border-color: #B57FE5;
  background: #faf6ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(157, 93, 229, 0.12);
}
.welcome-question .arrow {
  color: #B57FE5;
  font-weight: 900;
  font-size: 14px;
}

/* ---- 分类网格 (2x2，图标与内容统一比例) ---- */
.welcome-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px 18px;
}
.welcome-category {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e8def8;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.18s;
  min-height: 76px;
  position: relative;
}
.welcome-category:hover {
  border-color: #B57FE5;
  background: #faf6ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(157, 93, 229, 0.12);
}
.welcome-category-text { flex: 1; min-width: 0; }
.welcome-category-title {
  font-size: 15px; font-weight: 800;
  color: #2a1a5e;
  letter-spacing: 0.2px;
}
.welcome-category-desc {
  font-size: 11px; color: #8b7aab;
  margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.welcome-category-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f0e8ff 0%, #e8def8 100%);
  border-radius: 12px;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.welcome-category:hover .welcome-category-icon {
  transform: scale(1.08);
}

/* ---- "立即体验" 按钮（紫色单一渐变，无黑边） ---- */
.welcome-cta {
  margin: 4px 20px 22px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #9B5DE5 0%, #6C3FBF 100%);
  color: #fff;
  font-size: 16px; font-weight: 800;
  border-radius: 28px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(157, 93, 229, 0.35);
}
.welcome-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(157, 93, 229, 0.45);
}
.welcome-cta:active { transform: translateY(0); }
.welcome-cta-icon { font-size: 18px; opacity: 0.95; }

/* ---- 卡片瀑布内容（聊天过程中插入） ---- */
.content-card {
  background: #fff;
  border: 2px solid #f0e8ff;
  border-radius: 14px;
  overflow: hidden;
  margin: 8px 0;
}
.content-card-cover {
  width: 100%; aspect-ratio: 16/9;
  background: var(--gradient-warm);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  position: relative;
}
.content-card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.content-card-cover .badge {
  position: absolute; top: 8px; left: 8px;
  padding: 2px 8px; font-size: 11px; font-weight: 700;
  background: var(--orange); color: #fff;
  border: 2px solid #1a1a1a; border-radius: 8px;
}
.content-card-body { padding: 12px; }
.content-card-title { font-size: 16px; font-weight: 800; color: #1a1a1a; }
.content-card-sub { font-size: 12px; color: #777; margin-top: 4px; }
.content-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.content-card-tag {
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 8px;
  background: #f0e8ff; color: var(--purple-2);
  border: 1px solid var(--purple-soft);
}
