/* ════════════════════════════════════════════════════════
   闲时达 · Leisure Done  —  全端 UI v3
   设计语言：清新极简 / 翠绿+暖橙点缀 / 双端自适应
   ════════════════════════════════════════════════════════ */

/* ── Reset & Variables ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green:      #22c98a;
  --green-d:    #18a872;
  --green-bg:   #edfaf4;
  --orange:     #ff8c42;
  --orange-bg:  #fff4ec;
  --blue:       #3b82f6;
  --blue-bg:    #eff6ff;
  --bg:         #f5f6f8;
  --surface:    #ffffff;
  --border:     #e8eaed;
  --text:       #1a1d23;
  --text-2:     #5f6775;
  --text-3:     #9ba3af;
  --red:        #f56565;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12);
  --radius:     14px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --sidebar-w:  220px;
  --mob-tab-h:  60px;
  --transition: .2s cubic-bezier(.4,0,.2,1);
  --leo-avatar-art: url("assets/leo-avatar.png");
  --user-avatar-art: url("assets/default-user-avatar.png");
}

html, body { height: 100%; overflow: hidden; }
body {
  font-family: -apple-system, "PingFang SC", "HarmonyOS Sans", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════════════════════════
   APP SHELL
   ════════════════════════════════════════════════════════ */

.app {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════
   SIDEBAR — 桌面左导航
   ════════════════════════════════════════════════════════ */

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  animation: slideInLeft .3s var(--transition);
}

@keyframes slideInLeft { from{transform:translateX(-16px);opacity:0} to{transform:none;opacity:1} }

.sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}
.sb-logo {
  width: 38px; height: 38px;
  background: var(--green-bg);
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.sb-logo:hover { background: #d4f5e9; }
.sb-logo-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: none;
}
.sb-name { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.sb-en   { font-size: 10px; color: var(--text-3); letter-spacing: .5px; margin-top: 1px; }

.sb-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  text-align: left;
  width: 100%;
}
.sb-item:hover { background: var(--bg); color: var(--text); }
.sb-item.active {
  background: var(--green-bg);
  color: var(--green-d);
  font-weight: 600;
}
.sb-icon { width: 18px; height: 18px; flex-shrink: 0; }

.sb-bottom {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sb-loc {
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 5px;
}
.sb-leo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
}
.account-avatar-btn,
.chat-user-avatar {
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 999px;
  flex-shrink: 0;
}
.account-avatar-btn:focus-visible,
.chat-user-avatar:focus-visible,
.mob-logo:focus-visible {
  outline: 2px solid rgba(34,201,138,.35);
  outline-offset: 3px;
}
.sb-leo.is-guest {
  cursor: pointer;
}
.sb-leo.is-guest:hover span:not(.leo-dot) {
  color: var(--green-d);
}
.account-logout {
  border: 0;
  background: transparent;
  color: var(--text-3);
  font: inherit;
  cursor: pointer;
  padding: 2px 0;
  margin-left: auto;
}
.account-logout:hover { color: var(--green-d); }
.account-logout[hidden] { display: none; }
.sb-leo span:not(.leo-dot) { flex: 1; }
.leo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px #c6f7e2;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 2px #c6f7e2; }
  50%      { box-shadow: 0 0 0 4px rgba(34,201,138,.15); }
}

/* Leo 头像（多处复用） */
.leo-avatar, .leo-av-sm, .leo-av-msg {
  border-radius: 10px;
  background-image: var(--leo-avatar-art);
  background-size: cover;
  background-position: center;
  color: transparent;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0;
  letter-spacing: 0;
  box-shadow: 0 3px 10px rgba(34, 201, 138, .24);
}
.leo-avatar { width: 28px; height: 28px; }
.leo-av-sm  { width: 24px; height: 24px; border-radius: 8px; }
.leo-av-msg { width: 30px; height: 30px; flex-shrink: 0; margin-top: 2px; }
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-image: var(--user-avatar-art);
  background-size: cover;
  background-position: center;
  color: transparent;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0;
  box-shadow: 0 3px 10px rgba(95, 103, 117, .18);
}
.user-avatar.initial {
  background-image: none;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.leo-nav-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background-image: var(--leo-avatar-art);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════
   MAIN CONTENT
   ════════════════════════════════════════════════════════ */

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* 移动端顶栏（桌面隐藏） */
.mob-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mob-brand { display: flex; align-items: center; gap: 8px; }
.mob-logo  {
  width: 28px;
  height: 28px;
  background: var(--green-bg);
  border: 0;
  padding: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.mob-logo-avatar { width: 24px; height: 24px; border-radius: 7px; box-shadow: none; }
.mob-title-wrap { display: flex; flex-direction: column; line-height: 1.1; }
.mob-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.mob-en { font-size: 10px; color: var(--text-3); letter-spacing: .5px; margin-top: 2px; }
.mob-loc   { font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; }

/* 页面切换容器 */
.pages { flex: 1; position: relative; overflow: hidden; }

.page {
  position: absolute; inset: 0;
  display: none; overflow: hidden;
  /* 移动端：允许子元素滚动 */
  -webkit-overflow-scrolling: touch;
}
.page.active { display: flex; }

/* 淡入动画 */
.page.active { animation: fadeUp .25s var(--transition); }
@keyframes fadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

/* 移动端底导航（桌面隐藏） */
.mob-tabbar { display: none; }

/* ════════════════════════════════════════════════════════
   规划页 — 双栏布局
   ════════════════════════════════════════════════════════ */

#page-chat {
  flex-direction: row;
}

/* 左：对话 */
.chat-col {
  width: 420px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.chat-col-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.leo-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.leo-online {
  font-size: 11px;
  color: var(--green);
  background: var(--green-bg);
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 500;
  margin-left: 2px;
}

/* 对话消息区 */
.chat {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.chat::-webkit-scrollbar { width: 4px; }
.chat::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.msg { display: flex; gap: 10px; }
.chat > .msg.bot > .leo-av-msg {
  display: none;
}
.msg.user { flex-direction: row-reverse; gap: 0; }

.bubble {
  max-width: 80%;
  padding: 11px 15px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg.bot .bubble {
  background: var(--bg);
  border-top-left-radius: 4px;
  color: var(--text);
}
.msg.user .bubble {
  background: linear-gradient(135deg, #25d496, #22c98a);
  color: #fff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(34,201,138,.25);
}
.msg.user .bubble strong { color: #fff; }

/* 思考动画 */
.thinking {
  display: flex; gap: 5px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border-top-left-radius: 4px;
  width: fit-content;
}
.thinking span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  opacity: .4;
  animation: blink 1.4s ease-in-out infinite;
}
.thinking span:nth-child(2){ animation-delay: .2s }
.thinking span:nth-child(3){ animation-delay: .4s }
@keyframes blink { 0%,80%,100%{opacity:.2} 40%{opacity:1} }

/* 快捷示例 */
.quick-examples {
  display: flex; flex-direction: column; gap: 8px;
  padding: 4px 0 6px;
}
.chip {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-2);
  text-align: left;
  transition: all var(--transition);
  font-family: inherit;
}
.chip:hover {
  border-color: var(--green);
  color: var(--green-d);
  background: var(--green-bg);
  transform: translateX(3px);
}

/* 输入栏 */
.inputbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.inputbar input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 11px 18px;
  font-size: 14px;
  outline: none;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition);
}
.inputbar input:focus {
  border-color: var(--green);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(34,201,138,.1);
}
.inputbar input::placeholder { color: var(--text-3); }
.inputbar #send {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d496, #22c98a);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(34,201,138,.3);
}
.inputbar #send:hover  { transform: scale(1.08); box-shadow: 0 6px 16px rgba(34,201,138,.4); }
.inputbar #send:active { transform: scale(.95); }

/* ── 右：结构化需求分析面板 ── */
.analysis-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg);
  padding: 24px;
  gap: 16px;
}
.analysis-col::-webkit-scrollbar { width: 4px; }
.analysis-col::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.analysis-col [hidden] { display: none !important; }

.ac-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-3);
  gap: 10px;
  animation: fadeUp .4s var(--transition);
}
.ac-empty-icon { font-size: 42px; margin-bottom: 4px; }
.ac-empty-title { font-size: 16px; font-weight: 600; color: var(--text-2); }
.ac-empty-sub { font-size: 13px; line-height: 1.7; }

/* 分析内容 */
.ac-content { display: flex; flex-direction: column; gap: 14px; }

.ac-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 4px;
}

/* 意图分析卡 */
.intent-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  animation: fadeUp .3s var(--transition);
}
.ic-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ic-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.ic-title { font-size: 13px; font-weight: 700; color: var(--green-d); }
.con-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}
.con-row:last-child { border-bottom: none; padding-bottom: 0; }
.con-check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.con-check svg { width: 10px; height: 10px; }
.con-key { font-weight: 600; color: var(--text); min-width: 60px; }
.con-val { color: var(--text-2); flex: 1; }

/* 方案卡 */
.plan-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  transition: box-shadow var(--transition), border-color var(--transition);
  animation: fadeUp .35s var(--transition);
  width: 100%;
}
.plan-card:hover { box-shadow: var(--shadow-md); }
.plan-card.recommended { border-color: var(--green); }

.plan-head {
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f9fffb, #fff);
  border-bottom: 1px solid var(--border);
}
.plan-head .pt { font-size: 15px; font-weight: 700; color: var(--text); }
.badge {
  font-size: 11px;
  background: var(--green);
  color: #fff;
  padding: 2px 9px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: .3px;
}
.plan-meta { padding: 8px 16px; font-size: 12px; color: var(--text-3); border-bottom: 1px solid var(--border); }

/* 时间线步骤 */
.plan-steps { padding: 8px 16px; }
.step {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 34px;
  width: 2px;
  bottom: 0;
  background: var(--border);
}
.step-time { font-size: 11px; color: var(--green-d); font-weight: 700; width: 44px; flex-shrink: 0; padding-top: 4px; }
.dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 2px solid var(--green);
  display: grid; place-items: center;
  font-size: 12px;
  flex-shrink: 0;
  z-index: 1;
}
.sbody { flex: 1; }
.sslot { font-size: 10px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; }
.sname { font-size: 14px; font-weight: 600; color: var(--text); margin: 2px 0 3px; }
.swhy  { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.saddr { font-size: 11px; color: var(--blue); margin-top: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.saddr:hover { text-decoration: underline; }

.plan-tags { padding: 6px 16px 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.plan-tags .t {
  font-size: 11px;
  background: var(--bg);
  color: var(--text-2);
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.relay-trigger { padding: 0 14px 8px; display: flex; gap: 8px; }
.relay-trigger .rt {
  flex: 1;
  padding: 9px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--green);
  background: var(--green-bg);
  color: var(--green-d);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.relay-trigger .rt:hover { background: #d4f5e9; }

.plan-actions { display: flex; gap: 8px; padding: 0 14px 14px; }
.btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, #25d496, #22c98a); color: #fff; box-shadow: 0 4px 10px rgba(34,201,138,.25); }
.btn-primary:hover { box-shadow: 0 6px 14px rgba(34,201,138,.35); }
.btn-ghost { background: var(--bg); color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--border); }
.btn-blue  { background: var(--blue-bg); color: var(--blue); border: 1px solid #bfdbfe; }
.btn-blue:hover  { background: #dbeafe; }

/* 额外选项 */
.extras { padding: 4px 14px 12px; }
.extras .el { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.extras .opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt {
  font-size: 13px;
  padding: 6px 13px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition);
  font-family: inherit;
}
.opt.on { background: var(--orange-bg); border-color: var(--orange); color: var(--orange); }

/* 执行结果 */
.exec-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  width: 100%;
  animation: fadeUp .3s var(--transition);
}
.exec-card .eh { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.exec-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
}
.exec-item:last-of-type { border-bottom: none; }
.ei { flex-shrink: 0; font-size: 16px; margin-top: 1px; }
.ed { flex: 1; line-height: 1.55; color: var(--text); }
.enote { font-size: 11.5px; color: var(--orange); margin-top: 3px; }
.exec-item.failed .ed { color: var(--red); }

.share-box {
  margin-top: 14px;
  background: var(--green-bg);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 12.5px;
  color: #2d6a4f;
  line-height: 1.8;
  white-space: pre-wrap;
  border-left: 3px solid var(--green);
}
.share-btn {
  margin-top: 10px;
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #25d496, #22c98a);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(34,201,138,.25);
}
.share-btn:hover { box-shadow: 0 6px 16px rgba(34,201,138,.35); }
.ask-btn {
  margin-top: 8px;
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--blue-bg);
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.ask-btn:hover { background: #dbeafe; }

/* ════════════════════════════════════════════════════════
   地图页
   ════════════════════════════════════════════════════════ */

#page-map { flex-direction: column; }

.map-header {
  flex-shrink: 0;
  padding: 16px 22px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.map-title { font-size: 17px; font-weight: 700; }
.map-meta  { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.map-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}
#map { flex: 1; z-index: 0; }
.map-steps {
  width: 320px;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 14px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.map-steps::-webkit-scrollbar { width: 4px; }
.map-steps::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.map-step-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  animation: fadeUp .2s var(--transition);
}
.ms-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.ms-body  { flex: 1; }
.ms-name  { font-size: 14px; font-weight: 600; color: var(--text); }
.ms-addr  { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.ms-dist  { font-size: 12px; color: var(--orange); margin-top: 4px; font-weight: 600; }
.ms-transit { display: block; color: var(--text-2); font-weight: 500; margin-top: 3px; line-height: 1.55; }

.map-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
  padding: 30px;
}
.map-empty-icon { font-size: 36px; }

/* Leo assistant page */
#page-assistant {
  flex-direction: column;
  background: var(--surface);
}
.leo-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.leo-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 32px 22px 18px;
}
.leo-thread::-webkit-scrollbar { width: 4px; }
.leo-thread::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.leo-thread .ask-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}
.leo-thread .ask-row-user {
  justify-content: flex-end;
}
.leo-thread .ask-row-bot {
  justify-content: flex-start;
}
.leo-thread .ask-avatar {
  width: 30px;
  height: 30px;
  margin-top: 2px;
}
.leo-thread .ask-bubble {
  max-width: 76%;
  font-size: 14px;
  line-height: 1.7;
  padding: 12px 15px;
  border-radius: 16px;
}
.leo-thread .ask-bubble.user {
  background: #f0f2f5;
  color: var(--text);
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}
.leo-thread .ask-bubble.bot {
  background: transparent;
  color: var(--text);
  align-self: flex-start;
  padding-left: 0;
}
.leo-composer {
  width: min(760px, calc(100% - 44px));
  margin: 0 auto 24px;
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.leo-composer input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  padding: 8px 10px;
  color: var(--text);
}
.leo-composer button {
  border: none;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  padding: 0 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.leo-composer button:hover { background: var(--green-d); }

/* AMap overlays */
.amap-pin {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(0,0,0,.22);
  border: 2px solid #fff;
}
.amap-pin.home { background: var(--green); font-size: 15px; }
.amap-pin.discover {
  width: 18px;
  height: 18px;
  background: var(--green);
  font-size: 0;
}
.amap-missing {
  height: 100%;
  display: grid;
  place-content: center;
}

/* ════════════════════════════════════════════════════════
   发现页
   ════════════════════════════════════════════════════════ */

.page-header {
  flex-shrink: 0;
  padding: 20px 22px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.ph-title { font-size: 18px; font-weight: 700; color: var(--text); }
.ph-sub   { font-size: 12px; color: var(--text-3); margin-top: 3px; }

.discover-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  align-content: start;
}
.discover-list::-webkit-scrollbar { width: 4px; }
.discover-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.disc-loading { grid-column: 1/-1; padding: 60px; text-align: center; color: var(--text-3); }

.disc-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.disc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--green); }

.disc-top { display: flex; align-items: flex-start; gap: 12px; }
.disc-emoji { font-size: 32px; flex-shrink: 0; width: 48px; text-align: center; }
.disc-body { flex: 1; min-width: 0; }
.disc-name { font-size: 14px; font-weight: 700; color: var(--text); }
.disc-cat  { font-size: 11px; color: var(--text-3); margin: 2px 0 4px; }
.disc-heat { font-size: 12px; color: var(--orange); }
.disc-tip  { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.disc-footer { display: flex; align-items: center; justify-content: space-between; }
.disc-price { font-size: 13px; font-weight: 700; color: var(--green-d); }
.disc-add button {
  border: 1.5px solid var(--green);
  background: var(--green-bg);
  color: var(--green-d);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.disc-add button:hover { background: #d4f5e9; }

/* ════════════════════════════════════════════════════════
   历史页
   ════════════════════════════════════════════════════════ */

.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.history-list.is-empty {
  justify-content: center;
  align-items: center;
}
.history-list::-webkit-scrollbar { width: 4px; }
.history-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.hist-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
  animation: fadeUp .25s var(--transition);
}
.hist-card:hover { box-shadow: var(--shadow-md); }
.hist-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hist-title { font-size: 14px; font-weight: 700; color: var(--text); }
.hist-time  { font-size: 11px; color: var(--text-3); }
.hist-steps { font-size: 12.5px; color: var(--text-2); line-height: 1.9; }
.hist-actions { display: flex; gap: 8px; margin-top: 12px; }
.hist-btn { flex: 1; padding: 8px; border-radius: var(--radius-sm); border: none; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all var(--transition); }
.hist-btn.primary { background: var(--green-bg); color: var(--green-d); border: 1.5px solid var(--green); }
.hist-btn.primary:hover { background: #d4f5e9; }
.hist-btn.ghost { background: var(--bg); color: var(--text-2); border: 1px solid var(--border); }
.hist-btn.ghost:hover { background: var(--border); }

.hist-empty {
  padding: 30px;
  text-align: center;
  color: var(--text-3);
  font-size: 15px;
  line-height: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hist-empty-icon { font-size: 40px; }

/* ════════════════════════════════════════════════════════
   浮层（通用）
   ════════════════════════════════════════════════════════ */

.overlay-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 300;
  padding: 20px;
  animation: fadein .2s;
}
.overlay-mask[hidden] { display: none; }
@keyframes fadein { from{opacity:0} to{opacity:1} }

.guide-mask {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(4px);
  animation: fadein .2s;
}
.guide-mask[hidden] { display: none; }
.guide-card {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.guide-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.guide-close:hover {
  background: var(--border);
  color: var(--text);
}
.guide-content {
  max-height: inherit;
  overflow-y: auto;
  padding: 28px 30px 30px;
  color: var(--text);
}
.guide-content h1 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 42px 20px 0;
}
.guide-content h2 {
  font-size: 15px;
  line-height: 1.4;
  margin: 20px 0 8px;
}
.guide-content p,
.guide-content li {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-2);
}
.guide-content ul {
  margin: 8px 0 0 18px;
}
.guide-content li + li { margin-top: 4px; }

.auth-mask {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(237,250,244,.96), rgba(255,255,255,.94)),
    var(--surface);
  backdrop-filter: blur(8px);
}
.auth-mask[hidden] { display: none; }
.confirm-mask {
  position: fixed;
  inset: 0;
  z-index: 620;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(26, 29, 35, .34);
  backdrop-filter: blur(6px);
}
.confirm-mask[hidden] { display: none; }
.confirm-card {
  width: min(320px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}
.confirm-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.confirm-text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.confirm-actions button {
  height: 38px;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.confirm-cancel {
  border: 1px solid var(--border);
  color: var(--text-2);
  background: var(--surface);
}
.confirm-primary {
  border: 0;
  color: #fff;
  background: var(--green);
}
.auth-card {
  width: min(380px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}
.auth-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: none;
}
.auth-title {
  color: var(--text);
}
.auth-name {
  font-size: 20px;
  line-height: 1.12;
  font-weight: 800;
  color: #101828;
}
.auth-en {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #667085;
}
.auth-subtitle {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  text-align: center;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.auth-tabs button {
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-tabs button.active {
  background: var(--surface);
  color: var(--green-d);
  box-shadow: var(--shadow-sm);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-form input {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font: inherit;
  outline: none;
  background: var(--surface);
}
.auth-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34,201,138,.12);
}
.auth-submit,
.guest-btn {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.auth-submit {
  margin-top: 2px;
  color: #fff;
  background: linear-gradient(135deg, #25d496, #22c98a);
  box-shadow: 0 5px 12px rgba(34,201,138,.24);
}
.auth-submit:disabled {
  cursor: wait;
  opacity: .72;
}
.guest-btn {
  margin-top: 10px;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
}
.guest-btn:hover { background: #eef1f4; }
.auth-error {
  min-height: 18px;
  margin-top: 10px;
  color: var(--red);
  font-size: 12px;
  line-height: 1.5;
}
.auth-error[hidden] { display: none; }

.overlay-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: popIn .25s var(--transition);
}
@keyframes popIn { from{transform:scale(.92);opacity:0} to{transform:scale(1);opacity:1} }

/* 接力卡 */
.relay-card-inner { padding: 24px 22px; }
.rh { font-size: 16px; font-weight: 700; line-height: 1.5; margin-bottom: 16px; color: var(--text); }
.rfocus {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.rfocus::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.rfocus:last-of-type { border-bottom: none; }
.ractions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.ra {
  padding: 13px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: inherit;
}
.ra.primary { background: linear-gradient(135deg, #25d496, #22c98a); color: #fff; box-shadow: 0 4px 12px rgba(34,201,138,.25); }
.ra.sec { background: var(--bg); color: var(--text-2); border: 1px solid var(--border); }
.ra:hover { opacity: .9; }
.relay-hint { text-align: center; font-size: 11px; color: var(--text-3); margin-top: 12px; }

/* 追问卡 */
.ask-bubble {
  font-size: 13px;
  line-height: 1.65;
  padding: 9px 13px;
  border-radius: 12px;
  max-width: 88%;
  word-break: break-word;
}
.ask-bubble.user {
  background: linear-gradient(135deg, #25d496, #22c98a);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.ask-bubble.bot {
  background: var(--bg);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* ════════════════════════════════════════════════════════
   响应式 — 移动端 (≤ 768px)
   ════════════════════════════════════════════════════════ */

@media (max-width: 767.98px) {
  /* 隐藏侧边栏 */
  .sidebar { display: none; }

  /* 显示移动端顶栏 */
  .mob-topbar { display: flex; }

  /* 显示移动端底导航 */
  .mob-tabbar {
    display: flex;
    flex-shrink: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 10;
  }
  .tab {
    flex: 1;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 0;
    color: var(--text-3);
    transition: color var(--transition);
  }
  .tab .ti { width: 22px; height: 22px; }
  .tab .tl { font-size: 10px; font-weight: 600; }
  .tab.active { color: var(--green); }

  /* 规划页变单栏 */
  #page-chat { flex-direction: column; overflow: hidden; }
  .chat-col { width: 100%; border-right: none; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  .chat { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; }
  .inputbar { flex-shrink: 0; }
  .analysis-col { display: none; }

  /* 地图页调整 */
  .map-body { flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  #map { height: 260px; flex: none; }
  .map-steps { width: 100%; border-left: none; border-top: 1px solid var(--border); flex: 1; max-height: none; overflow-y: auto; -webkit-overflow-scrolling: touch; }

  /* 发现页 */
  .discover-list { grid-template-columns: 1fr; padding: 12px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  #page-discover { overflow: hidden; flex-direction: column; }

  /* 历史页 */
  #page-history { overflow: hidden; flex-direction: column; }
  .history-list { overflow-y: auto; -webkit-overflow-scrolling: touch; }

  /* 浮层 */
  .overlay-mask { padding: 12px; align-items: flex-end; }
  .overlay-card { max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .overlay-mask { animation: slideUp .25s var(--transition); }
  @keyframes slideUp { from{transform:translateY(20px);opacity:0} to{opacity:1;transform:none} }
}

/* 中等屏幕：收窄侧边栏 */
@media (max-width: 767.98px) {
  :root { --mob-tab-h: 68px; }

  html, body {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body { background: var(--surface); }

  .app {
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .main-content {
    width: 100%;
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .mob-topbar {
    min-height: 52px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
    flex-shrink: 0;
  }
  .mob-loc {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
  }

  .pages {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .page {
    min-width: 0;
    height: 100%;
  }

  .mob-tabbar {
    height: calc(var(--mob-tab-h) + env(safe-area-inset-bottom, 0px));
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
    z-index: 20;
    box-shadow: 0 -6px 18px rgba(0,0,0,.05);
  }

  .tab {
    min-width: 0;
    gap: 0;
    padding: 0;
    border-radius: 14px;
    transition: color var(--transition), background var(--transition);
  }

  .tab .ti { width: 24px; height: 24px; }
  .tab .tl { display: none; }
  .tab.active {
    color: var(--green-d);
    background: var(--green-bg);
  }
  .tab .leo-nav-icon {
    width: 25px;
    height: 25px;
    border-radius: 8px;
  }

  .chat-col-header { min-height: 46px; padding: 10px 14px; }
  .chat { padding: 14px 14px 12px; gap: 12px; }
  .bubble { max-width: 88%; font-size: 14px; }
  .quick-examples { gap: 7px; }
  .chip { padding: 10px 12px; font-size: 13px; }
  .inputbar { padding: 10px 12px 12px; gap: 8px; }
  .inputbar input { height: 44px; font-size: 16px; }
  .inputbar #send { width: 44px; height: 44px; }

  #page-map { min-height: 0; overflow: hidden; }
  .map-head { padding: 12px 14px; }
  .map-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  #map {
    height: 44%;
    min-height: 240px;
    max-height: 360px;
  }
  .map-steps {
    min-height: 0;
    padding: 12px;
  }
  .map-step-card { padding: 11px 12px; }

  .page-header { padding: 14px 16px; flex-shrink: 0; }
  .discover-list { padding: 12px; }
  .disc-card { border-radius: 12px; }
  .history-list { padding: 12px; }

  #page-assistant { min-height: 0; overflow: hidden; }
  .leo-thread { width: 100%; padding: 18px 14px 12px; }
  .leo-composer {
    width: 100%;
    margin: 0;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--border);
  }
  .leo-composer input { height: 44px; font-size: 16px; }
  .leo-composer button { height: 44px; padding: 0 16px; }

  .guide-mask,
  .auth-mask {
    padding: 14px;
    align-items: stretch;
  }
  .guide-card,
  .auth-card {
    align-self: center;
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
  }
}

@media (max-width: 1100px) and (min-width: 768px) {
  .sidebar { width: 64px; }
  .mob-topbar {
    display: flex;
    justify-content: space-between;
    min-height: 46px;
    padding: 8px 16px;
  }
  .mob-brand { display: flex; }
  .mob-title-wrap {
    flex-direction: row;
    align-items: baseline;
    gap: 7px;
  }
  .mob-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
  .mob-en { font-size: 10px; color: var(--text-3); letter-spacing: .5px; margin-top: 0; }
  .mob-loc {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
  }
  .sb-brand {
    display: flex;
    justify-content: center;
    padding: 16px 8px 14px;
  }
  .sb-brand > div:not(.sb-logo) { display: none; }
  .sb-logo {
    width: 40px;
    height: 40px;
  }
  .sb-logo-avatar {
    width: 34px;
    height: 34px;
  }
  .sb-name, .sb-en, .sb-loc, .sb-leo span { display: none; }
  .account-logout { display: none; }
  .sb-item span { display: none; }
  .sb-item .leo-nav-icon { display: inline-block; }
  .sb-item { justify-content: center; padding: 12px; }
  .sb-nav { padding: 12px 8px; }
  .sb-bottom { padding: 12px 8px; }
  .sb-leo {
    justify-content: center;
    flex-direction: column;
    gap: 4px;
  }
  .account-avatar-btn { margin: 0 auto; }
  .sb-logo .leo-avatar { margin: 0 auto; }
  .leo-dot { margin: 4px auto 0; }
  .chat-col { width: 360px; }
  .auth-brand {
    justify-content: flex-start;
    text-align: left;
  }
  .auth-avatar { margin: 0; }
}

/* ── 执行结果：stagger 滑入动画 ── */
@keyframes execStaggerIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}
.exec-stagger { animation: execStaggerIn .28s cubic-bezier(.4,0,.2,1) both; }

/* 情感化文案行 */
.exec-emotional {
  margin: 10px 0 4px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #edfaf4, #f9fffb);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  color: #2d6a4f;
  line-height: 1.6;
}

/* 方案对比图容器 */
.plan-compare {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 4px;
  animation: fadeUp .3s var(--transition);
}
.pc-title { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 12px; }
.pc-row   { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pc-label { font-size: 12px; color: var(--text-2); width: 56px; flex-shrink: 0; }
.pc-bars  { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pc-bar-wrap { display: flex; align-items: center; gap: 6px; }
.pc-bar   { height: 8px; border-radius: 4px; transition: width .5s cubic-bezier(.4,0,.2,1); }
.pc-bar.p1 { background: var(--green); }
.pc-bar.p2 { background: var(--orange); }
.pc-val   { font-size: 11px; color: var(--text-3); min-width: 28px; }
.pc-legend { display: flex; gap: 14px; margin-top: 8px; justify-content: flex-end; }
.pc-dot   { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }

/* Leo 推理过程卡 */
.reasoning-card { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.rc-title { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.rc-step  { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 12.5px; }
.rc-step:last-child { border-bottom: none; }
.rc-num   { width: 20px; height: 20px; border-radius: 50%; background: var(--green-bg); color: var(--green-d); font-size: 11px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.rc-text  { flex: 1; color: var(--text-2); line-height: 1.55; }
.rc-text b { color: var(--text); }

/* 步骤替换备选卡 */
.step-alt-panel { margin-top: 8px; padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm); border: 1px dashed var(--border); }
.step-alt-title { font-size: 11px; color: var(--text-3); margin-bottom: 8px; font-weight: 600; }
.step-alt-opt   { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.step-alt-opt:last-child { border-bottom: none; }
.step-alt-opt:hover .alt-name { color: var(--green-d); }
.alt-name  { font-size: 13px; font-weight: 600; color: var(--text); }
.alt-why   { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.alt-btn   { flex-shrink: 0; border: 1px solid var(--green); background: var(--green-bg); color: var(--green-d); border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.step-swap-btn { margin-top: 4px; border: none; background: transparent; color: var(--text-3); font-size: 11.5px; cursor: pointer; font-family: inherit; padding: 2px 0; }
.step-swap-btn:hover { color: var(--green-d); }

/* 天气标签 */
.weather-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: var(--blue-bg); color: var(--blue); padding: 3px 10px; border-radius: 20px; margin-left: 8px; vertical-align: middle; }
