/* ============================================================
   思明招商助手 · 首页（参考图重制版）
   ============================================================ */

/* 自托管书法字体：华文行楷（优先）/ 华文新魏（备选），无需网络 */
@font-face {
  font-family: 'XingKai';
  src: url('../fonts/STXINGKA.TTF') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'XinWei';
  src: url('../fonts/STXINWEI.TTF') format('truetype');
  font-display: swap;
}

.main {
  position: relative;
  z-index: 1;
  max-width: 480px;          /* 参考图是移动端单列布局 */
  margin: 0 auto;
  /* 主体内容起始位置：由 JS 动态计算，使其落在背景图“动画人物（思明战士）”正下方
     初始兜底值（约人物底部，会在 JS 中按分辨率精确覆盖）；
     顶部 80px 留给透明 topbar */
  padding: calc(80px + 36vw) clamp(0.9rem, 2.4vw, 1.4rem) clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
  background: transparent;   /* 不添加任何蒙层，背景图完整透出 */
  border-radius: 0;
  /* 不再强制 100vh - 80px，让主体根据内容自然高度，避免底部巨大留白 */
}

/* ---------- 顶部 banner：左 logo + 右动画人物 ---------- */
.hero-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.2rem 0 0.4rem;
  min-height: clamp(110px, 18vw, 150px);
}
.hero-logo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
.logo-title {
  font-family: "STKaiti", "KaiTi", "楷体", "Microsoft YaHei", serif;
  font-size: clamp(2.4rem, 7vw, 3.2rem);
  font-weight: 900;
  color: #0c4a6e;
  letter-spacing: 0.1em;
  line-height: 1;
  margin: 0;
  text-shadow:
    -2px -2px 0 #fff,
    2px -2px 0 #fff,
    -2px 2px 0 #fff,
    2px 2px 0 #fff,
    0 4px 12px rgba(14, 165, 233, 0.25);
}
.logo-sub {
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  color: #075985;
  letter-spacing: 0.18em;
  margin: 0;
  font-weight: 500;
}
.logo-sub-em {
  color: #0EA5E9;
  font-weight: 700;
}
.logo-underline {
  width: clamp(180px, 50vw, 240px);
  height: 12px;
  display: block;
  margin-top: 0.15rem;
}
.hero-char-fixed {
  flex-shrink: 0;
  width: clamp(80px, 22vw, 120px);
  aspect-ratio: 1 / 1;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  filter: drop-shadow(0 6px 14px rgba(7, 89, 133, 0.25));
  z-index: 3;
  position: relative;
}
.hero-char-fixed:active { cursor: grabbing; }
.hero-char-fixed img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* ---------- 视频卡片 ---------- */
.video-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
  box-shadow: 0 10px 28px rgba(7, 89, 133, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem;
}
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #bae6fd;
  overflow: hidden;
  border-radius: 0.7rem;
}
.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}
.video-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 60%, #60a5fa 100%);
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.3s ease;
}
.video-cover.is-hidden { opacity: 0; pointer-events: none; }
.play-btn {
  position: relative;
  width: clamp(56px, 12vw, 72px);
  height: clamp(56px, 12vw, 72px);
  border-radius: 50%;
  border: 3px solid #fff;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-primary-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}
.play-btn:hover { transform: scale(1.06); background: #fff; }
.play-btn svg { margin-left: 3px; }

.video-time {
  position: absolute;
  left: 0.6rem;
  bottom: 0.5rem;
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  z-index: 3;
  pointer-events: none;
}
.video-fullscreen {
  position: absolute;
  right: 0.6rem;
  bottom: 0.5rem;
  color: #fff;
  z-index: 3;
  pointer-events: none;
  opacity: 0.95;
}

/* ---------- 文字介绍卡片（独立卡片，左侧图标） ---------- */
.intro-card {
  position: relative;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.86));
  box-shadow: 0 8px 24px rgba(7, 89, 133, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(1rem, 2.4vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.intro-title {
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  color: #0937C1;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin: 0 0 0.2rem;
  font-family: "Microsoft YaHei", "微软雅黑", "STSong", serif;
  text-align: center;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(14, 165, 233, 0.2);
}
.intro-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.intro-icon {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}
.intro-text {
  flex: 1;
  min-width: 0;
  font-size: clamp(0.92rem, 1.6vw, 1rem);
  color: #1a3a5c;
  line-height: 1.85;
  margin: 0;
  text-align: justify;
  padding-top: 0.15rem;
}
.intro-text + .intro-row {
  border-top: 1px dashed rgba(14, 165, 233, 0.15);
  padding-top: 0.85rem;
}
.hl-blue {
  color: #256DE3;
  font-weight: 700;
}
/* “2025赛迪百强区”专属配色 */
.hl-caid {
  color: #256DE3;
  font-weight: 700;
}
.hl-gold {
  color: #D9B25F;
  font-weight: 700;
  background: linear-gradient(180deg, transparent 60%, rgba(217, 178, 95, 0.2) 60%);
  padding: 0 0.15rem;
}

/* ---------- 底部快捷入口（4图标） ---------- */
.quick-actions {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.5rem;
  padding: 0.8rem 0.5rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  box-shadow: 0 6px 18px rgba(7, 89, 133, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.qa-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--ink-700);
  font-size: clamp(0.78rem, 1.4vw, 0.88rem);
  font-weight: 500;
  flex: 1;
  cursor: pointer;
  transition: transform 0.18s ease;
}
.qa-item:hover { transform: translateY(-2px); }
.qa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 10px rgba(7, 89, 133, 0.2);
}
.qa-blue   { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.qa-green  { background: linear-gradient(135deg, #34D399, #059669); }
.qa-purple { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.qa-orange { background: linear-gradient(135deg, #FB923C, #EA580C); }
.qa-item.is-active .qa-label {
  color: var(--brand-primary-deep);
  font-weight: 700;
}

/* ---------- 底部白框区域（三栏布局：左 头像 / 中 输入栏 / 右 与头像等宽） ---------- */
.bottom-frame {
  display: flex;
  align-items: stretch;       /* 子列拉伸到全高，让右侧按钮 absolute 撑满 */
  width: 100%;
  min-height: 70px;           /* 固定高度：外部框大小不随内容变化（头像 50px + padding 上下 20px） */
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  box-shadow: 0 6px 18px rgba(7, 89, 133, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: clamp(0.35rem, 0.8vw, 0.55rem);
  gap: clamp(0.6rem, 1.6vw, 1.1rem);     /* 左右与中间边距拉开 */
  position: relative;
  overflow: hidden;
}
.bottom-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.bottom-left  { flex: 0 0 auto; justify-content: flex-start; }
.bottom-center{ flex: 1 1 auto; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: clamp(0.15rem, 0.5vw, 0.3rem); min-width: 0; min-height: 0; }
.bottom-right { flex: 0 0 50px; position: relative; }

.bottom-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 6px 14px rgba(7, 89, 133, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.9);
  display: block;
}

/* ---------- 底部右栏：竖向长方形按钮（50px 宽，图标+文字竖排） ---------- */
.bottom-cta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.1rem, 0.3vw, 0.2rem);
  padding: 0.2rem 0.15rem;
  border: 0;
  border-radius: clamp(0.5rem, 1.2vw, 0.75rem);
  /* 截图同款纯色蓝背景（sky-500） */
  background: #0EA5E9;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  z-index: 2;
}
.bottom-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: ctaShine 3.2s linear infinite;
}
.bottom-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(29, 78, 216, 0.45);
}
.bottom-cta:active { transform: translateY(0); }
.bottom-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(1.1rem, 2.6vw, 1.4rem);
  height: clamp(1.1rem, 2.6vw, 1.4rem);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}
.bottom-cta-icon svg { display: block; }
.bottom-cta-text {
  font-size: clamp(0.6rem, 1.4vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@keyframes ctaShine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ---------- 底部中间：书法文字"选择思明，选择成功" ---------- */
.slogan-text {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(0.1em + 2px);               /* 原 0.1em 基础上拉大 2px */
  margin-top: clamp(0.2rem, 0.6vw, 0.4rem);   /* 与上方边框留间距 */
  padding: 0;
  /* 自托管书法字体优先：XingKai（华文行楷）→ XinWei（华文新魏）→ 系统书法 */
  font-family: "XingKai", "XinWei", "STXingkai", "华文行楷", "STXinwei", "华文新魏", "STKaiti", "华文楷体", "KaiTi", "楷体", "STLiti", "华文隶书", serif;
  font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  font-weight: 700;
  color: #0EA5E9;
  letter-spacing: 0.04em;
  user-select: none;
  white-space: nowrap;
  /* 笔锋效果：白色描边 + 蓝色光晕（增强书法设计感） */
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.95),
    2px 2px 0 rgba(255, 255, 255, 0.6),
    3px 3px 0 rgba(255, 255, 255, 0.25),
    0 0 14px rgba(14, 165, 233, 0.3),
    0 2px 8px rgba(7, 89, 133, 0.25);
  line-height: 1;
}
.slogan-text span {
  display: inline-block;
  transition: transform 0.2s ease;
}
.slogan-text span:nth-child(1) { transform: translateY(-0.05em) rotate(-2.5deg); }
.slogan-text span:nth-child(2) { transform: translateY(0.04em)  rotate(1.5deg); }
.slogan-text span:nth-child(3) { transform: translateY(-0.04em) rotate(-1.5deg); }
.slogan-text span:nth-child(4) { transform: translateY(0.05em)  rotate(2.5deg); }
.slogan-text span:hover { transform: scale(1.08) rotate(0); }

/* ---------- 底部中间：语音输入栏（蓝色背景上） ---------- */
.center-bottom {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.2rem, 0.5vw, 0.3rem);
  min-height: 0;
  width: 100%;
}
.input-row,
.text-row {
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 0.8vw, 0.5rem);
  width: 100%;
  min-width: 0;
}
.text-row[hidden] { display: none; }
.input-mode-switch {
  flex-shrink: 0;
  width: clamp(1.6rem, 3.6vw, 2.1rem);
  height: clamp(1.6rem, 3.6vw, 2.1rem);
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-primary-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(7, 89, 133, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.18s ease;
}
.input-mode-switch:hover {
  background: #fff;
  transform: translateY(-1px);
}
.input-mode-switch.is-text {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.voice-input-btn {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: clamp(0.3rem, 0.8vw, 0.42rem) clamp(0.7rem, 1.6vw, 0.95rem);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-primary-deep);
  font-size: clamp(0.62rem, 1.2vw, 0.78rem);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(7, 89, 133, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.18s ease;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.voice-input-btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(7, 89, 133, 0.25);
}
.voice-input-btn[hidden] { display: none; }   /* 防御：确保 hidden 生效 */
.voice-input-btn .pulse {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.voice-input-btn .pulse i {
  width: 3px;
  height: clamp(8px, 1.8vw, 12px);
  background: var(--brand-primary);
  border-radius: 2px;
  animation: voiceWave 0.9s ease-in-out infinite;
}
.voice-input-btn .pulse i:nth-child(2) { animation-delay: 0.15s; }
.voice-input-btn .pulse i:nth-child(3) { animation-delay: 0.3s; }
.voice-input-btn .pulse i:nth-child(4) { animation-delay: 0.45s; }
.voice-input-btn .pulse i:nth-child(5) { animation-delay: 0.6s; }
.voice-hint {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
@keyframes voiceWave {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1.4); }
}

/* ---------- 文字输入（键盘模式） ---------- */
.chat-input-el {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: #fff;
  border-radius: 999px;
  padding: clamp(0.4rem, 1vw, 0.55rem) clamp(0.9rem, 2vw, 1.2rem);
  font-family: var(--font-family);
  font-size: clamp(0.7rem, 1.3vw, 0.85rem);
  color: var(--ink-900);
  box-shadow: 0 2px 6px rgba(7, 89, 133, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.22);
}
.chat-input-el::placeholder { color: var(--ink-300); }
.chat-input-el[hidden] { display: none; }
.chat-send-btn {
  flex-shrink: 0;
  width: clamp(1.8rem, 4vw, 2.4rem);
  height: clamp(1.8rem, 4vw, 2.4rem);
  border: 0;
  border-radius: 50%;
  background: #0EA5E9;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.35);
  transition: transform 0.18s ease;
}
.chat-send-btn:hover { transform: scale(1.05); }
.chat-send-btn[hidden] { display: none; }

/* ---------- 对话过程区域（参考 chat.html 中间区域） ---------- */
.chat-area {
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.86));
  box-shadow: 0 8px 24px rgba(7, 89, 133, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(0.7rem, 1.6vw, 1rem);
}
.chat-stream {
  display: flex;
  flex-direction: column;
  gap: clamp(0.4rem, 1vw, 0.7rem);
  max-height: clamp(200px, 38vh, 320px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
.msg {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  max-width: 92%;
  animation: msgIn 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.msg--user { align-self: flex-end; flex-direction: row-reverse; }
.msg--bot  { align-self: flex-start; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.avatar {
  flex-shrink: 0;
  width: clamp(30px, 4.5vw, 38px);
  height: clamp(30px, 4.5vw, 38px);
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(7, 89, 133, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar img { width: 100%; height: 100%; display: block; object-fit: contain; }
.avatar--user {
  background: linear-gradient(135deg, #0EA5E9, #0369A1);
  color: #fff;
}
.avatar--user svg { width: 60%; height: 60%; }
.bubble {
  position: relative;
  padding: clamp(0.5rem, 1.2vw, 0.7rem) clamp(0.7rem, 1.4vw, 0.95rem);
  border-radius: var(--radius-lg);
  font-size: clamp(0.88rem, 1.4vw, 0.98rem);
  line-height: 1.8;
  color: var(--ink-900);
  word-break: break-word;
  white-space: pre-wrap;
}
.msg--bot .bubble {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  border-top-left-radius: 4px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(14, 165, 233, 0.12);
}
.msg--user .bubble {
  background: linear-gradient(135deg, #0EA5E9 0%, #0369A1 100%);
  color: #fff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.28);
}
.msg-head {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  color: var(--ink-500);
}
.msg-head .time {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  opacity: 0.9;
  letter-spacing: 0.05em;
}
.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.4rem 0.6rem;
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
  animation: typingBlink 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.18s; }
.typing-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingBlink {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30%           { opacity: 1;    transform: translateY(-3px); }
}

/* 富文本回复（参考 chat.html） */
.bubble--rich { white-space: normal; }
.bubble--rich p { margin: 0 0 0.35rem; line-height: 1.55; }
.bubble--rich p strong { color: var(--brand-primary-deep); }
.response-section {
  margin: 0.35rem 0;
  padding: 0.45rem 0.6rem;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.6), rgba(186, 230, 253, 0.3));
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-primary);
}
.response-section-title {
  font-weight: 700;
  color: var(--brand-primary-deep);
  font-size: 0.9em;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.response-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--brand-primary);
  border-radius: 2px;
}
.response-item {
  padding: 0.2rem 0;
  font-size: 0.88em;
  color: var(--ink-700);
  line-height: 1.5;
  border-bottom: 1px solid rgba(14, 165, 233, 0.08);
}
.response-item:last-child { border-bottom: 0; }
.response-highlight {
  color: var(--brand-primary-deep);
  font-weight: 700;
  background: rgba(14, 165, 233, 0.1);
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
}
.response-tip {
  margin-top: 0.35rem !important;
  font-size: 0.83em !important;
  color: var(--ink-500) !important;
  padding: 0.3rem 0.5rem;
  background: rgba(254, 243, 199, 0.4);
  border-radius: var(--radius-sm);
  border-left: 2px solid #FBBF24;
}
/* 服务分类 */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(0.45rem, 1.2vw, 0.6rem) clamp(0.6rem, 1.4vw, 0.85rem);
  background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(14, 165, 233, 0.22);
  color: var(--brand-primary-deep);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92em;
  transition: all 0.18s ease;
}
.service-item:hover {
  background: linear-gradient(135deg, #BAE6FD 0%, #7DD3FC 100%);
  transform: translateX(4px);
}
.service-item .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-primary);
  font-size: 0.9em;
  font-weight: 800;
  flex-shrink: 0;
}
.service-item .svc-label { flex: 1; min-width: 0; }
/* FAQ 短句 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.faq-item {
  padding: clamp(0.45rem, 1.2vw, 0.6rem) clamp(0.6rem, 1.4vw, 0.85rem);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(14, 165, 233, 0.3);
  font-size: 0.92em;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.5;
}
.faq-item:hover { border-style: solid; background: rgba(14, 165, 233, 0.06); }
.faq-item .more {
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--brand-primary);
  font-size: 0.85em;
  white-space: nowrap;
}
/* 来源卡片 */
.source-card {
  margin-top: 0.45rem;
  padding: 0.5rem 0.65rem;
  background: linear-gradient(135deg, rgba(217, 178, 95, 0.12), rgba(255, 251, 235, 0.6));
  border: 1px solid rgba(217, 178, 95, 0.25);
  border-left: 3px solid var(--brand-gold);
  border-radius: var(--radius-md);
  font-size: 0.85em;
}
.source-card-title { font-weight: 700; color: var(--brand-primary-deep); margin-bottom: 0.2rem; font-size: 0.93em; }
.source-card-path { color: var(--ink-500); font-size: 0.8em; margin-bottom: 0.2rem; }
.source-card-quote {
  color: var(--ink-700);
  font-style: italic;
  padding: 0.2rem 0;
  border-top: 1px solid rgba(217, 178, 95, 0.15);
  border-bottom: 1px solid rgba(217, 178, 95, 0.15);
  margin: 0.2rem 0;
  line-height: 1.45;
}
.source-card-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.2rem; }
.source-tag {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  background: rgba(14, 165, 233, 0.1);
  color: var(--brand-primary-deep);
  border-radius: 999px;
  font-size: 0.8em;
}
.source-section { padding: 0.1rem 0; color: var(--ink-700); font-size: 0.83em; }
.source-card-meta { color: var(--ink-400); font-size: 0.76em; text-align: right; }
.source-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.78em;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(3, 105, 161, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.source-link:hover { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(3, 105, 161, 0.35); }
/* 分类推荐 */
.rec-section {
  margin-top: 0.45rem;
  padding: 0.45rem 0.6rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(14, 165, 233, 0.2);
}
.rec-section-title { font-weight: 700; color: var(--brand-primary-deep); font-size: 0.88em; margin-bottom: 0.25rem; }
.rec-item { padding: 0.25rem 0; border-bottom: 1px solid rgba(14, 165, 233, 0.06); cursor: pointer; transition: all 0.15s ease; }
.rec-item:last-child { border-bottom: 0; }
.rec-item:hover { background: rgba(14, 165, 233, 0.06); padding-left: 0.3rem; }
.rec-item-title { color: var(--ink-800); font-size: 0.88em; font-weight: 500; line-height: 1.5; }
.rec-item-meta { color: var(--ink-400); font-size: 0.78em; margin-top: 0.15rem; }

/* ---------- 底部"对话成功！"按钮 ---------- */
.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0 0.5rem;
  width: 100%;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: clamp(0.9rem, 2vw, 1.1rem) clamp(2.4rem, 8vw, 3.6rem);
  border: 0;
  border-radius: 999px;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 45%, #1D4ED8 100%);
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
}
.cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: ctaShine 3.2s linear infinite;
}
@keyframes ctaShine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(29, 78, 216, 0.5);
}
.cta-btn:active { transform: translateY(0); }
.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

/* ---------- 响应式 ---------- */
@media (max-width: 480px) {
  .main {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
}
@media (min-width: 720px) {
  .main {
    max-width: 520px;
  }
  .hero-char-fixed {
    width: clamp(100px, 14vw, 140px);
  }
}