:root {
  color-scheme: light;
  /* —— 深色温暖精修：炭棕基底 + 收窄金色 + 提高文字对比 —— */
  /* —— 雾蓝浅色：冷青灰底 + 青墨强调 + 鼠尾草绿，浅而有分量、清醒克制 —— */
  --bg: #eef1f4;
  --bg-soft: #e6ebef;
  --card: #f3f6f9;
  --card-strong: #f6f8fb;
  --text: #2b333b;
  --muted: rgba(43, 51, 59, 0.74);
  --faint: rgba(43, 51, 59, 0.78);
  --line: rgba(60, 80, 95, 0.16);
  --green: #4f7a5e;
  --green-deep: #d3e0d6;
  --gold: #2f6b78;
  --gold-soft: rgba(47, 107, 120, 0.12);
  --clay: #3f7b86;
  --sand: #5a6b74;
  --shadow: 0 18px 50px rgba(60, 80, 100, 0.14);
  --radius: 22px;
  --radius-lg: 28px;
  --bar-h: 64px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  /* app 外壳：整体不滚动，滚动只发生在屏内部 */
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f2f4f7 0%, #ebeff3 55%, #eef1f4 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button:focus-visible,
textarea:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(47, 107, 120, 0.5);
  outline-offset: 3px;
}

/* ===== 顶栏 ===== */
.app-bar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--bar-h);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 2px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
/* 品牌小太阳：整页雾蓝里唯一的暖色点。光晕缓缓呼吸 + 光芒极慢旋转，
   让人注意到它、想去点它——点 3 下会说话（彩蛋在 main.js）。 */
.brand-mark {
  position: relative;
  width: 18px;
  height: 18px;
  color: #eba33f;
  cursor: pointer;
  transition: transform 0.15s ease;
  animation: sun-glow 3.2s ease-in-out infinite;
}
.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: sun-breathe 3.2s ease-in-out infinite;
}
.brand-mark .sun-core { fill: currentColor; }
.brand-mark .sun-rays {
  stroke: currentColor;
  transform-origin: center;
  transform-box: fill-box;
  animation: sun-spin 26s linear infinite;
}
@keyframes sun-glow {
  0%, 100% { filter: drop-shadow(0 0 1px rgba(235, 163, 63, 0.3)); }
  50% { filter: drop-shadow(0 0 4px rgba(235, 163, 63, 0.55)); }
}
@keyframes sun-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes sun-spin { to { transform: rotate(360deg); } }
.brand-mark:hover { transform: scale(1.15); }
.brand-mark:active { transform: scale(0.9); }
@media (prefers-reduced-motion: reduce) {
  .brand-mark, .brand-mark svg, .brand-mark .sun-rays { animation: none; }
}

/* 点击品牌小圆点的彩蛋：雾蓝粒子绽放 + 一圈淡光环 */
.spark {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  will-change: transform, opacity;
  animation: spark-fly 720ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes spark-fly {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.35); }
  65%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1); }
}
.spark-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  border: 2px solid #eba33f;
  opacity: 0.5;
  animation: spark-ring 620ms ease-out forwards;
}
@keyframes spark-ring {
  0%   { opacity: 0.5; transform: translate(-50%, -50%) scale(0.2); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .spark, .spark-ring { animation-duration: 1ms; }
}

/* 多轮彩蛋卡片：贴着品牌"未来探索"右边弹出（位置由 JS 按品牌定位） */
.brand-egg {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(80vw, 360px);
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 44px rgba(47, 107, 120, 0.18);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  opacity: 0;
  animation: brand-egg-in 320ms cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
.brand-egg.out { animation: brand-egg-out 300ms ease forwards; }
.brand-egg .egg-emoji { font-size: 20px; flex: none; line-height: 1; }
.brand-egg .egg-text { flex: 1; }
@keyframes brand-egg-in {
  from { opacity: 0; transform: translateX(-10px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes brand-egg-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateX(-6px); }
}
/* 手机版：贴在小太阳正下方，小卡片从上轻轻落下来；字大一点好读 */
.brand-egg.brand-egg-mobile {
  font-size: 15px;
  padding: 11px 14px;
  animation-name: brand-egg-in-mobile;
}
.brand-egg.brand-egg-mobile.out { animation: brand-egg-out-mobile 300ms ease forwards; }
@keyframes brand-egg-in-mobile {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes brand-egg-out-mobile {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-egg, .brand-egg.out,
  .brand-egg.brand-egg-mobile, .brand-egg.brand-egg-mobile.out { animation-duration: 1ms; }
}

/* 小巧思 ① 深夜关怀气泡：比普通气泡更柔，带一点暖意 */
.bubble-care {
  background: rgba(47, 107, 120, 0.06);
  border: 1px dashed rgba(47, 107, 120, 0.28);
  color: var(--clay);
}

/* 小巧思 ② 地图路径柔和浮现 */
.path-reveal { opacity: 0; animation: path-rise 460ms cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
@keyframes path-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 小巧思 ③ 里程碑：聊亮一格时节点跳一下 */
.progress-step.just-done .progress-node { animation: node-pop 600ms ease; }
@keyframes node-pop { 0% { transform: scale(1); } 40% { transform: scale(1.38); } 100% { transform: scale(1); } }

/* 小巧思 ④ 轻提示 toast（底部居中） */
.app-toast {
  position: fixed;
  left: 50%;
  bottom: 38px;
  z-index: 10000;
  max-width: min(86vw, 420px);
  padding: 11px 18px;
  background: rgba(36, 52, 58, 0.95);
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  opacity: 0;
  animation: app-toast-in 320ms ease forwards;
}
.app-toast.out { animation: app-toast-out 300ms ease forwards; }
@keyframes app-toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes app-toast-out { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, 8px); } }

@media (prefers-reduced-motion: reduce) {
  .path-reveal, .progress-step.just-done .progress-node, .app-toast, .app-toast.out { animation-duration: 1ms; }
}
.bar-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(47, 60, 72, 0.06);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.bar-back:hover { border-color: var(--gold); color: var(--text); }
.bar-back[hidden] { display: none; }
.back-arrow { font-size: 16px; line-height: 1; }
.bar-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.bar-action {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.bar-action:hover { border-color: var(--gold); color: var(--gold); }
.bar-action[hidden] { display: none; }
.bar-action[aria-disabled="true"] {
  opacity: 0.55;
}
.bar-action-report.is-ready {
  border-color: rgba(47, 107, 120, 0.46);
  background: rgba(47, 107, 120, 0.1);
  color: var(--gold);
  font-weight: 700;
}
.bar-action-report.is-stale {
  border-color: rgba(222, 161, 94, 0.62);
  background: rgba(222, 161, 94, 0.12);
  color: #9a6427;
}
.bar-action-small {
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(47, 60, 72, 0.035);
}
/* 当返回键存在时，品牌不再占据起点的弹性空间，让出动作到右侧 */
.app-bar .brand { margin-right: auto; }

/* ===== app 外壳 + 换屏 ===== */
.app-stack {
  position: relative;
  z-index: 10;
  width: min(1180px, calc(100% - 36px));
  height: calc(100vh - var(--bar-h));
  height: calc(100dvh - var(--bar-h));
  margin: 0 auto;
}
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 8px 2px 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity .34s cubic-bezier(.22,.61,.36,1),
              transform .34s cubic-bezier(.22,.61,.36,1),
              visibility 0s linear .34s;
}
.screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .34s cubic-bezier(.22,.61,.36,1),
              transform .34s cubic-bezier(.22,.61,.36,1);
}
/* 往回退时从左侧滑出/进 */
.screen.leaving-back { transform: translateX(24px); }
.screen.is-active.from-back { animation: screen-in-back .34s cubic-bezier(.22,.61,.36,1); }
@keyframes screen-in-back {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: none; }
}

/* ===== 排版基础 ===== */
.eyebrow {
  margin: 0 0 18px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
/* 内测小标（点开"创造者的话"） */
.beta-badge {
  display: inline-flex;
  align-items: center;
  margin: -6px 0 20px;
  padding: 5px 12px;
  border: 1px solid rgba(47, 107, 120, 0.30);
  border-radius: 999px;
  background: rgba(47, 107, 120, 0.06);
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.beta-badge:hover { background: rgba(47, 107, 120, 0.12); border-color: rgba(47, 107, 120, 0.5); }
.beta-from { margin: -6px 0 14px; color: var(--clay); font-size: 13px; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 18em;
  margin-bottom: 22px;
  font-size: clamp(24px, 2.8vw, 42px);
  line-height: 1.28;
  letter-spacing: 0.01em;
  font-weight: 700;
}
h2 {
  margin-bottom: 14px;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  font-weight: 700;
}
h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero-lead,
.explore-intro p,
.section-head p {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.85;
}
.hero-lead { max-width: 30em; font-size: 17px; }

/* ===== 按钮 ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 26px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #3f8593, #2f6b78);
  box-shadow: none;
}
.button-quiet {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(47, 60, 72, 0.07);
}
/* 顶栏「···」溢出菜单：把导出/存档/重开收进来，腾出对话空间 */
.bar-actions { position: relative; }
.bar-menu-btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(47, 60, 72, 0.05);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.bar-menu-btn:hover { border-color: var(--gold); color: var(--gold); }
.bar-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 172px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(47, 107, 120, 0.16);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
}
.bar-menu-item {
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}
.bar-menu-item:hover { background: rgba(47, 107, 120, 0.08); }
.bar-menu-item-danger { color: #b3543f; }
.bar-menu-item-danger:hover { background: rgba(179, 84, 63, 0.08); }
/* 次级操作：轻量文字链接，让主 CTA 独占主视觉（首页用） */
.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.button-link:hover { opacity: 1; text-decoration: underline; }
.button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== 屏1 · 首页 ===== */
.screen-home { justify-content: center; }
.home-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 380px;
  align-items: center;
  gap: 44px;
  margin: auto 0;
  width: 100%;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(244, 230, 210, 0.06), rgba(244, 230, 210, 0.025));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.panel-label { color: var(--gold); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.panel-title { font-size: 19px; font-weight: 700; line-height: 1.4; letter-spacing: 0.01em; }
.panel-line { height: 1px; margin: 24px 0; background: var(--line); }
.mini-flow { display: grid; gap: 16px; }
.mini-flow div { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center; }
.mini-flow span {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #ffffff; background: var(--gold);
  font-weight: 700; font-size: 13px;
}
.mini-flow p, .panel-note { margin: 0; color: var(--muted); }
.panel-note {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px; line-height: 1.7;
}

/* ===== 快捷状态药丸（对话屏内，输入框上方）===== */
.quickstart {
  flex-shrink: 0;
  margin-top: 12px;
}
.quickstart[hidden] { display: none; }
.quickstart-label {
  display: block;
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 12.5px;
  letter-spacing: .02em;
}
.quickstart-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quickstart-pills button {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 230, 210, 0.05);
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
.quickstart-pills button:hover {
  border-color: rgba(47, 107, 120, 0.7);
  background: rgba(47, 107, 120, 0.12);
  color: var(--text);
  transform: translateY(-1px);
}

/* ===== 系统提示（如网络断开，居中灰条，不是对话气泡）===== */
.sys-note {
  align-self: center;
  max-width: 92%;
  margin: 2px 0;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(47, 60, 72, 0.04);
  color: var(--faint);
  font-size: 12.5px;
  text-align: center;
  animation: bubble-in .35s ease both;
}
.sys-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.grounding-note {
  align-self: flex-start;
  max-width: 86%;
  margin-top: -7px;
  padding: 7px 11px;
  border: 1px solid rgba(47, 107, 120, 0.18);
  border-radius: 12px;
  background: rgba(47, 107, 120, 0.07);
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
  animation: bubble-in .3s ease both;
}
.grounding-note.is-miss {
  border-color: rgba(139, 112, 74, 0.22);
  background: rgba(139, 112, 74, 0.07);
}
.grounding-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--gold);
}
.grounding-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.grounding-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}
.grounding-sources a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== 屏2 · 对话（app 式聊天页，撑满一屏）===== */
.screen-chat { overflow: hidden; padding-bottom: 16px; }

/* 地图屏：情绪从对话的"深夜"走到这里的"清晨"——顶部洒下一层更亮的暖金晨光 + 一丝希望绿，
   仍是暖色不刺眼，深色卡片照常工作，但整屏明显比对话区更开阔、更亮、更有"被托起来"的感觉。 */
.screen-map {
  background:
    linear-gradient(180deg, rgba(210, 230, 238, 0.5) 0%, transparent 46%),
    radial-gradient(1300px circle at 50% -10%, rgba(198, 226, 236, 0.45), transparent 54%),
    radial-gradient(760px circle at 84% -2%, rgba(170, 205, 180, 0.18), transparent 50%);
}
.chat-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 2px 12px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 700;
}
.chat-head-main { display: inline-flex; align-items: center; gap: 9px; }
.chat-title { color: var(--text); }
.avatar-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.current-entry-pill {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.current-entry-pill[hidden] { display: none; }
.understanding-progress {
  margin-bottom: 14px;
  flex-shrink: 0;
}
.understanding-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  padding: 0 2px;
}
.understanding-progress-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.dim-info-btn {
  margin-left: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--clay);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  vertical-align: baseline;
}
.dim-info-btn:hover { opacity: 1; }
.dialogue-progress {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}
.progress-track {
  position: relative;
  min-height: 44px;
  padding: 0 3px;
}
.progress-line {
  position: absolute;
  z-index: 0;
  top: 10px;
  right: 10%;
  left: 10%;
  height: 2px;
  overflow: hidden;
  background: rgba(47, 60, 72, 0.13);
}
.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--gold);
  transition: width .6s cubic-bezier(.22,.61,.36,1);
}
.progress-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.progress-step {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}
.progress-node {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(47, 60, 72, 0.22);
  border-radius: 50%;
  background: var(--bg);
  color: var(--faint);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.progress-label {
  max-width: 100%;
  white-space: nowrap;
}
.progress-step.is-done {
  color: var(--text);
  font-weight: 700;
}
.progress-step.is-done .progress-node {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
}
/* 半亮：聊到一点、还不够——雾蓝描边 + 浅底 + ◐ */
.progress-step.is-partial .progress-node {
  border-color: var(--gold);
  background: rgba(47, 107, 120, 0.12);
  color: var(--gold);
}
.progress-step.is-current .progress-node {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 5px rgba(47, 107, 120, 0.12);
  animation: progress-focus 2.2s ease-in-out infinite;
}
@keyframes progress-focus {
  0%, 100% { box-shadow: 0 0 0 4px rgba(47, 107, 120, 0.09); }
  50% { box-shadow: 0 0 0 7px rgba(47, 107, 120, 0.15); }
}

.clue-panel {
  flex-shrink: 0;
  margin: 0 0 8px;
  padding: 0;
  border: 1px solid rgba(47, 107, 120, 0.16);
  border-radius: 12px;
  background: rgba(244, 230, 210, 0.025);
}
.clue-panel[hidden] { display: none; }
.clue-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.clue-toggle-text { color: var(--gold); font-size: 12px; }
.clue-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 168px;
  overflow-y: auto;
  padding: 0 10px 10px;
  margin-top: 2px;
}
.clue-body[hidden] { display: none; }
.clue-group {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(47, 60, 72, 0.035);
}
.clue-title {
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.clue-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.clue-chip {
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 107, 120, 0.11);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}
.clue-chip.clue-new { animation: clue-flash 1.2s ease both; }
@keyframes clue-flash {
  0% { border-color: rgba(47, 107, 120, 0.7); background: rgba(47, 107, 120, 0.24); color: var(--text); }
  100% { background: rgba(47, 107, 120, 0.11); color: var(--muted); }
}

.chat-stream {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 4px 6px 4px 2px;
}
.bubble {
  max-width: 86%;
  padding: 16px 20px;
  border-radius: 22px;
  line-height: 1.8;
  white-space: pre-wrap;
  animation: bubble-in .45s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.bubble-ai {
  align-self: flex-start;
  color: var(--text);
  background: rgba(47, 60, 72, 0.08);
  border-bottom-left-radius: 8px;
}
.bubble-user {
  align-self: flex-end;
  color: #ffffff;
  background: linear-gradient(135deg, #3f8593, #2f6b78);
  border-bottom-right-radius: 8px;
  font-weight: 600;
}
.bubble-typing { display: inline-flex; gap: 5px; align-items: center; }
.bubble-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--faint);
  animation: typing 1.2s infinite ease-in-out;
}
.bubble-typing span:nth-child(2) { animation-delay: .2s; }
.bubble-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-5px); opacity: 1; }
}
/* 联网检索态（GPT 式"正在联网查阅…"）：地球轻转 + 文字带柔和呼吸 */
.bubble-searching {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 14px;
}
.bubble-searching .searching-globe {
  display: inline-block;
  animation: searching-spin 2.4s linear infinite;
}
.bubble-searching .searching-text { animation: searching-breathe 1.6s ease-in-out infinite; }
@keyframes searching-spin { to { transform: rotate(360deg); } }
@keyframes searching-breathe { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .bubble-searching .searching-globe, .bubble-searching .searching-text { animation: none; }
}
.bubble-map-thinking {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(520px, 92%);
  text-align: center;
}

/* 出图等待：把"你"和几个方向用路径一条条连起来的小地图动画 */
.map-loader { width: 200px; height: 112px; }
.map-loader svg { width: 100%; height: 100%; overflow: visible; }
.ml-route {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 235;
  stroke-dashoffset: 235;
  opacity: 0;
  animation: ml-draw 3.6s ease-in-out infinite;
}
.ml-route-2 { stroke: var(--clay); animation-delay: 0.55s; }
@keyframes ml-draw {
  0%   { stroke-dashoffset: 235; opacity: 0; }
  12%  { opacity: 0.9; }
  55%  { stroke-dashoffset: 0; opacity: 0.9; }
  82%  { stroke-dashoffset: 0; opacity: 0.9; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.ml-node {
  fill: var(--gold);
  opacity: 0.4;
  animation: ml-twinkle 3.6s ease-in-out infinite;
}
.ml-n1 { animation-delay: 0.9s; }
.ml-n2 { animation-delay: 1.6s; fill: var(--clay); }
.ml-n3 { animation-delay: 1.1s; fill: var(--clay); }
.ml-n4 { animation-delay: 1.9s; }
@keyframes ml-twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.ml-start {
  fill: var(--gold);
  transform-box: fill-box;
  transform-origin: center;
  animation: ml-start-pulse 2s ease-in-out infinite;
}
@keyframes ml-start-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .ml-route, .ml-node, .ml-start { animation: none; opacity: 0.85; stroke-dashoffset: 0; }
}
.route-loader {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 52px;
  height: 18px;
}
.route-loader::before {
  content: "";
  position: absolute;
  left: 6px; right: 6px; top: 50%;
  border-top: 1px dashed rgba(47, 107, 120, 0.55);
}
.route-loader i {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--gold);
  animation: route-dot 1.5s infinite ease-in-out;
}
.route-loader i:nth-child(2) { animation-delay: .22s; }
.route-loader i:nth-child(3) { animation-delay: .44s; margin-right: 0; }
@keyframes route-dot {
  0%, 100% { transform: scale(.75); opacity: .45; }
  45% { transform: scale(1.25); opacity: 1; }
}

.composer {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  flex-shrink: 0;
}
textarea {
  width: 100%;
  min-height: 84px;
  max-height: 180px;
  margin-bottom: 12px;
  padding: 16px 18px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  outline: none;
  background: rgba(47, 60, 72, 0.08);
  color: var(--text);
  line-height: 1.7;
}
textarea::placeholder { color: var(--faint); }
textarea:focus { border-color: rgba(47, 107, 120, 0.7); }
textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.composer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.composer-hint { color: var(--faint); font-size: 13px; line-height: 1.6; }
.composer-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
/* hidden 属性必须能盖住 display（否则设了 hidden 的图标按钮如麦克风仍会显示） */
.icon-button[hidden] { display: none !important; }
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(47, 107, 120, 0.32);
  border-radius: 50%;
  background: rgba(47, 107, 120, 0.08);
  color: var(--gold);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.icon-button[hidden] { display: none !important; }
.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-button:hover {
  border-color: rgba(47, 107, 120, 0.62);
  background: rgba(47, 107, 120, 0.14);
  transform: translateY(-1px);
}
.icon-button.is-recording {
  border-color: rgba(192, 74, 64, 0.6);
  background: rgba(192, 74, 64, 0.13);
  color: #a83a30;
  animation: mic-pulse 1.1s ease-in-out infinite;
}
.icon-button.is-transcribing {
  border-color: rgba(47, 107, 120, 0.56);
  background: rgba(47, 107, 120, 0.16);
}
.icon-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(207, 99, 99, 0.28); }
  50% { box-shadow: 0 0 0 8px rgba(207, 99, 99, 0); }
}
.composer-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.to-map-btn {
  flex-shrink: 0;
  margin-top: 12px;
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(47, 107, 120, 0.5);
  border-radius: 16px;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  animation: bubble-in .4s ease both;
}
.to-map-btn:hover { background: rgba(47, 107, 120, 0.2); transform: translateY(-1px); }
.to-map-btn[hidden] { display: none; }

/* ===== 屏3 · 探索地图 ===== */
.map-inner { width: 100%; max-width: 1100px; margin: 0 auto; padding-top: 28px; }
.section-head { max-width: 780px; }
/* 地图屏标题：这是整个产品的情绪高潮（"原来我还有路"），给它更舒展的呼吸 */
.map-inner .section-head { margin-bottom: 6px; }
.map-inner .section-head h2 { margin-top: 10px; line-height: 1.5; }
.map-inner .section-head p { font-size: 16px; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.judgment-box {
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px solid rgba(47, 107, 120, 0.3);
  border-radius: 20px;
  background: rgba(47, 107, 120, 0.07);
}
.judgment-box[hidden] { display: none; }
.judgment-box .jb-label {
  display: block; margin-bottom: 8px;
  color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
.judgment-box p { margin: 0; color: var(--text); line-height: 1.8; }
.judgment-box .jb-missing { margin-top: 12px; color: var(--muted); font-size: 14px; }
.recommendation-box {
  position: relative;
  margin-top: 18px;
  padding: 22px 26px 22px 28px;
  border: 1px solid rgba(47, 107, 120, 0.32);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(47, 107, 120, 0.12), rgba(255, 255, 255, 0.035));
}
.recommendation-box[hidden] { display: none; }
.recommendation-label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}
.recommendation-box p {
  max-width: 880px;
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.85;
}

.path-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 3px solid rgba(45, 53, 61, 0.2);
  border-radius: 10px;
  background: rgba(244, 230, 210, 0.04);
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
}
.path-card:hover {
  border-color: rgba(47, 107, 120, 0.35);
  background: rgba(47, 107, 120, 0.06);
  transform: translateY(-3px);
}
.path-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.path-head h3 { margin: 0; font-size: 20px; line-height: 1.45; }

/* 推荐程度·小太阳 —— 亮的越多越推荐，暖金小太阳点在冷色卡上，一个可爱的小巧思 */
.sun-rating { display: inline-flex; align-items: center; gap: 4px; margin: 10px 0 2px; }
.sun-label { font-size: 12px; color: var(--faint); margin-right: 4px; letter-spacing: .04em; }
.sun-rating .sun { width: 19px; height: 19px; }
.sun-rating .sun circle { fill: currentColor; }
.sun-rating .sun .sun-rays line { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sun-rating .sun-on { color: #f0a92e; filter: drop-shadow(0 0 3px rgba(240, 169, 46, 0.55)); animation: sun-pop .35s ease both; }
.sun-rating .sun-off { color: #c5ccd3; }
.sun-rating .sun-off .sun-rays { opacity: 0; }
@keyframes sun-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.18); } 100% { transform: scale(1); opacity: 1; } }
.sun-rating .sun:nth-child(2) { animation-delay: .02s; }
.sun-rating .sun:nth-child(3) { animation-delay: .09s; }
.sun-rating .sun:nth-child(4) { animation-delay: .16s; }
.sun-rating .sun:nth-child(5) { animation-delay: .23s; }
.sun-rating .sun:nth-child(6) { animation-delay: .30s; }
.path-card.path-priority-primary { border-top-color: var(--gold); }
.path-card.path-priority-secondary { border-top-color: var(--green); }
.path-card.path-priority-watch { border-top-color: rgba(236, 217, 187, 0.55); }
.path-card.path-priority-caution { border-top-color: var(--clay); }
.path-card.path-priority-avoid { border-top-color: rgba(45, 53, 61, 0.22); opacity: 0.84; }
.priority-badge {
  flex-shrink: 0;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.priority-badge.path-priority-primary { color: #241508; background: var(--gold); }
.priority-badge.path-priority-secondary { color: #162012; background: var(--green); }
.priority-badge.path-priority-watch { color: var(--sand); background: rgba(236, 217, 187, 0.1); border-color: rgba(236, 217, 187, 0.24); }
.priority-badge.path-priority-caution { color: #8f4f24; background: rgba(207, 138, 99, 0.16); border-color: rgba(207, 138, 99, 0.4); }
.priority-badge.path-priority-avoid { color: var(--faint); background: rgba(45, 53, 61, 0.045); border-color: var(--line); }
.conf-badge { flex-shrink: 0; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.conf-高 { color: #1d2a17; background: var(--green); }
.conf-中 { color: #ffffff; background: var(--gold); }
.conf-低 { color: var(--text); background: rgba(47, 60, 72, 0.12); border: 1px solid var(--line); }
.ev-badge { align-self: flex-start; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.ev-official { color: #dff0d8; background: rgba(168, 196, 162, 0.16); border: 1px solid rgba(168, 196, 162, 0.45); }
.ev-jd { color: #f1d39f; background: rgba(47, 107, 120, 0.14); border: 1px solid rgba(47, 107, 120, 0.42); }
.ev-agg { color: #87592f; background: rgba(207, 138, 99, 0.14); border: 1px solid rgba(207, 138, 99, 0.36); }
.ev-community { color: rgba(45, 53, 61, 0.82); background: rgba(47, 60, 72, 0.07); border: 1px solid rgba(45, 53, 61, 0.18); }
.ev-usersample { color: var(--green); background: rgba(168, 196, 162, 0.12); border: 1px solid rgba(168, 196, 162, 0.35); }
.ev-sample { color: var(--green); background: rgba(168, 196, 162, 0.12); border: 1px solid rgba(168, 196, 162, 0.35); }
.ev-market { color: var(--gold); background: rgba(47, 107, 120, 0.12); border: 1px solid rgba(47, 107, 120, 0.35); }
.ev-model { color: var(--muted); background: rgba(47, 60, 72, 0.06); border: 1px solid var(--line); }
.path-field { display: flex; flex-direction: column; gap: 4px; }
.pf-label { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
/* 30 天行动卡：地图上最该被看到的字段，标签用强调色、条目排成清单 */
.path-actions30 .pf-label { color: var(--gold); }
.pf-action-list { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.pf-action-list li { line-height: 1.6; }
.map-return-note { color: var(--clay); }

/* 旧站点迁移横幅:只在 124(退役旧服务器)上由 JS 插入,置顶醒目 */
.old-host-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20000;
  padding: 10px 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  background: #b3541e;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
.old-host-banner a {
  color: #ffe2b8;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 6px;
}
.pf-value { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.75; }
.path-evidence {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.path-evidence-label { color: var(--faint); font-size: 12px; font-weight: 700; }
.path-fit-signal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.path-fit-signal strong { color: var(--green); font-size: 14px; }
.path-fit-signal.is-cautious strong { color: #a25a32; }
.path-timeline {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}
.tl-row {
  position: relative;
  min-height: 76px;
  padding: 0 0 18px 28px;
}
.tl-row:last-child { min-height: auto; padding-bottom: 0; }
.tl-row::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 3px;
  width: 9px;
  height: 9px;
  border: 3px solid var(--bg-soft);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(47, 107, 120, 0.7);
}
.tl-row:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  bottom: -1px;
  left: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(47, 107, 120, 0.7), rgba(47, 107, 120, 0.16));
}
.tl-content { min-width: 0; }
.tl-when { display: block; margin-bottom: 3px; color: var(--gold); font-size: 12.5px; font-weight: 800; }
.tl-task { margin: 0; color: var(--text); font-size: 14px; line-height: 1.65; }
.tl-growth { margin: 5px 0 0; color: var(--faint); font-size: 13px; line-height: 1.65; }
.path-details {
  display: grid;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px dashed rgba(45, 53, 61, 0.16);
}
.path-details[hidden] { display: none; }
.path-details-toggle {
  align-self: flex-start;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.path-details-toggle:hover { color: var(--sand); }
.dissect-card {
  align-self: stretch;
  max-width: 92%;
  padding: 18px;
  border: 1px solid rgba(47, 107, 120, 0.28);
  border-radius: 20px;
  background: rgba(47, 107, 120, 0.06);
  animation: bubble-in .45s cubic-bezier(.22,.61,.36,1) both;
}
.dissect-kicker {
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}
.dissect-card h3 {
  margin: 0 0 14px;
  line-height: 1.55;
}
.dissect-findings {
  display: grid;
  gap: 10px;
}
.dissect-finding,
.dissect-note {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(47, 60, 72, 0.04);
}
.dissect-finding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.dissect-finding p,
.dissect-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.dissect-note {
  margin-top: 10px;
}
.dissect-note span {
  display: block;
  margin-bottom: 5px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
}
.dissect-questions {
  margin-top: 12px;
}
.question-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.question-chip {
  padding: 7px 11px;
  border: 1px solid rgba(47, 107, 120, 0.28);
  border-radius: 999px;
  background: rgba(47, 107, 120, 0.08);
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
}
.question-chip:hover { color: var(--text); border-color: rgba(47, 107, 120, 0.5); }
.map-disclaimer {
  margin-top: 26px; padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint); font-size: 14px; line-height: 1.8;
}
.map-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.map-foot [hidden] { display: none; }

/* ===== 浮层 sheet（怎么工作 / 隐私）===== */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 40, 50, 0.42);
  backdrop-filter: blur(6px);
  animation: sheet-fade .25s ease both;
}
.sheet[hidden] { display: none; }
@keyframes sheet-fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-card {
  position: relative;
  width: min(580px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #f7f9fb, #eef2f6);
  box-shadow: var(--shadow);
  animation: bubble-in .3s cubic-bezier(.22,.61,.36,1) both;
}
.sheet-close {
  position: absolute;
  top: 16px; right: 18px;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.sheet-close:hover { border-color: var(--gold); color: var(--gold); }
.sheet-card h2 { margin-bottom: 22px; }
.sheet-card h3 { margin-bottom: 18px; }
.sheet-note {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.field-label {
  display: block;
  margin: 12px 0 7px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.material-type,
.material-input,
.material-file {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(47, 60, 72, 0.08);
  color: var(--text);
  outline: none;
}
.material-type {
  min-height: 44px;
  padding: 0 12px;
}
.material-file {
  padding: 11px 12px;
  font-size: 13px;
}
.file-hint {
  margin: 7px 0 10px;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.6;
}
.material-input {
  min-height: 170px;
  max-height: 280px;
  margin-bottom: 16px;
  padding: 14px;
  resize: vertical;
}
.material-type:focus,
.material-file:focus,
.material-input:focus {
  border-color: rgba(47, 107, 120, 0.7);
}
.how-steps { display: grid; gap: 16px; }
.how-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.how-step span {
  display: inline-flex; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(47, 107, 120, 0.14);
  border: 1px solid rgba(47, 107, 120, 0.3);
  font-weight: 700; font-size: 13px;
}
.how-step h3 { margin-bottom: 4px; }
.how-step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.sheet-card ul { margin: 0 0 22px; padding-left: 20px; }
.sheet-card li { margin-bottom: 12px; color: var(--muted); line-height: 1.8; font-size: 14.5px; }
.sheet-card li strong { color: var(--text); }
.sheet-card .button { width: 100%; }

/* ===== 页脚（极简，固定在底）===== */
.app-foot {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  /* 必须高于 .app-stack(z-index:10)，否则链接被屏幕层盖住、永远点不到 */
  z-index: 30;
  padding: 10px 24px;
  text-align: center;
  pointer-events: none;
}
/* 只在首页显示：对话/地图屏底部有输入框和按钮，浮着会抢点击 */
body[data-screen="chat"] .app-foot,
body[data-screen="map"] .app-foot { display: none; }
.app-foot a {
  pointer-events: auto;
  color: var(--faint);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.app-foot a:hover { color: var(--gold); }

/* ===== 开发者面板 ===== */
.dev-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px dashed rgba(168, 196, 162, 0.4);
  border-radius: 14px;
  background: rgba(168, 196, 162, 0.06);
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}
.dev-panel[hidden] { display: none; }
.dev-tag { padding: 2px 8px; border-radius: 6px; background: var(--green); color: #1d2a17; font-weight: 800; font-size: 11px; letter-spacing: .08em; }
.dev-panel select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); color: var(--text); font: inherit; font-size: 13px; }
.dev-status { color: var(--faint); }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .home-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  :root { --bar-h: 56px; }
  .app-bar, .app-stack { width: calc(100% - 24px); }
  .bar-actions { gap: 6px; }
  .bar-back:not([hidden]) + .brand { display: none; }
  .bar-action { padding: 7px 9px; font-size: 11.5px; }
  .bar-action-small { padding: 6px 8px; font-size: 11px; }
  h1 { font-size: clamp(24px, 7vw, 32px); }
  .hero-actions .button { flex: 1; }
  /* 手机端：提示语独占一行；[+][🎤] 与缩小的「发送」同排，发送靠右 */
  .composer-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
  .composer-hint { flex-basis: 100%; }
  .composer-tools { margin-left: 0; }
  .composer-actions { margin-left: auto; }
  .composer-actions .button { width: auto; min-height: 42px; padding: 0 22px; font-size: 14px; }
  .clue-body { grid-template-columns: 1fr; }
  .understanding-progress-head { gap: 8px; }
  .understanding-progress-kicker,
  .dialogue-progress { font-size: 11px; }
  .progress-track { padding: 0; }
  .progress-step { gap: 5px; font-size: 12px; }
  .progress-node { width: 20px; height: 20px; font-size: 12px; }
  .progress-line { top: 9px; }
  .dissect-card { max-width: 100%; }
  .result-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
  .recommendation-box { padding: 18px 18px 18px 20px; }
  .recommendation-box p { font-size: 15.5px; }
  .path-card { padding: 19px 17px; }
  .path-head h3 { font-size: 18px; }
  .path-fit-signal { align-items: flex-start; flex-direction: column; gap: 3px; }
  .map-foot .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-step.is-current .progress-node { animation: none; }
  .screen { transition: opacity .01s; transform: none; }
  .screen.is-active.from-back { animation: none; }
  .bubble, .sheet, .sheet-card, .to-map-btn, .route-loader i { animation: none; }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }
  .app-bar,
  .screen-home,
  .screen-chat,
  .app-foot,
  .map-foot {
    display: none !important;
  }
  .app-stack {
    position: static;
    width: 100%;
    min-height: auto;
    padding: 0;
  }
  .screen {
    display: none !important;
    position: static;
    opacity: 1;
    transform: none;
  }
  .screen-map {
    display: block !important;
  }
  .map-inner {
    max-width: none;
    padding: 0;
  }
  .result-grid {
    display: block;
  }
  .path-card,
  .judgment-box,
  .recommendation-box {
    page-break-inside: avoid;
    margin: 0 0 16px;
    border: 1px solid #bbb;
    background: #fff;
    color: #111;
  }
  .pf-value,
  .tl-task,
  .tl-growth,
  .map-disclaimer,
  .judgment-box p,
  .recommendation-box p {
    color: #222;
  }
  .path-details[hidden] { display: grid; }
  .path-details-toggle { display: none; }
}
