/* ============ APP 框架（移动端优先，桌面居中为手机列） ============ */
:root {
  --tab-h: 62px;
  --bar-h: 54px;
  --app-max: 460px;
}

/* APP 外壳：整体不滚动，只有内容区 .app-body 内部滚动，
   顶栏与底部 Tab 作为 flex 常驻项，永远不会被内容推走 */
html, body { height: 100%; }
html { scroll-behavior: auto; }
body { background: #e9eef3; overflow: hidden; }

.app {
  position: relative;
  max-width: var(--app-max);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 60px rgba(15, 23, 42, .10);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---- 顶部栏 ---- */
.app-bar {
  position: relative; z-index: 30;
  flex: 0 0 var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; gap: 10px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.abar-title { font-size: 16.5px; font-weight: 700; letter-spacing: .3px; }
.abar-actions { display: flex; align-items: center; gap: 6px; }

/* 唯一滚动容器：滚的是这一块，顶栏与 Tab 不受影响 */
.app-body {
  flex: 1 1 auto; min-height: 0;
  padding: 12px 14px 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* ---- 底部 Tab ---- */
.tabbar {
  flex: 0 0 auto; position: relative; z-index: 35;
  display: flex; align-items: stretch;
  height: var(--tab-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
}
.tab-btn {
  flex: 1; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--ink-3); font-size: 11px; padding: 6px 0 4px;
  transition: color .2s var(--ease);
}
.tab-btn .ti { font-size: 21px; font-style: normal; line-height: 1; filter: grayscale(1); opacity: .75; transition: all .22s var(--ease); }
.tab-btn.on { color: var(--brand); font-weight: 600; }
.tab-btn.on .ti { filter: none; opacity: 1; transform: translateY(-1px) scale(1.08); }
.tab-plus {
  flex: 0 0 62px; justify-content: center; position: relative;
}
.tab-plus .ti {
  font-size: 26px; width: 48px; height: 48px; border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  display: flex; align-items: center; justify-content: center; filter: none; opacity: 1;
  box-shadow: 0 6px 18px rgba(13, 148, 136, .38); margin-top: -14px;
}
.tab-plus.on .ti { transform: none; }

.pad-b { height: 24px; }
.pad-t { padding-top: 14px; }
.center { text-align: center; }
.app-body .card { padding: 16px; }

/* ---- 区块 ---- */
.sec { margin-top: 18px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-head.solo { margin-bottom: 12px; }
.sec-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.link-btn { border: 0; background: none; color: var(--brand); font-size: 13px; cursor: pointer; padding: 0; }

/* ---- 首页 Hero ---- */
.home-hero {
  border-radius: 22px; padding: 20px 18px; overflow: hidden; position: relative;
  background: linear-gradient(150deg, #0f766e 0%, #0d9488 45%, #06b6d4 100%);
  box-shadow: 0 12px 30px rgba(13, 148, 136, .28); color: #fff;
}
.home-hero::after {
  content: ''; position: absolute; right: -50px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .28), transparent 70%); pointer-events: none;
}
.hh-tag {
  display: inline-block; font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); margin-bottom: 10px;
}
.hh-title { margin: 0 0 8px; font-size: 24px; line-height: 1.35; font-weight: 700; }
.hh-sub { margin: 0 0 16px; font-size: 13px; opacity: .92; line-height: 1.6; }
.hh-quick { display: flex; gap: 8px; margin-top: 10px; }
.home-hero .btn-ghost { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .38); color: #fff; }
.home-hero .btn-ghost:hover { background: rgba(255, 255, 255, .26); }
.home-hero .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.hh-ai {
  margin-top: 14px; font-size: 13px; color: #fff; background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 7px 14px; display: inline-block;
}
.hh-ai b { font-weight: 700; }

.btn-block { width: 100%; display: block; }
.btn-lg { padding: 12px 18px; font-size: 15px; border-radius: 14px; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }

/* ---- 话题 / 横滑 ---- */
.topic-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.topic-row::-webkit-scrollbar, .hscroll::-webkit-scrollbar { display: none; }
.topic-pill {
  flex: 0 0 auto; border: 0; cursor: pointer; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); white-space: nowrap;
}
.topic-pill.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); font-weight: 600; }

.hscroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.hcard {
  flex: 0 0 232px; scroll-snap-align: start; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.hcard-cover { height: 128px; position: relative; }
.hcard-cover .cover-badge {
  position: absolute; left: 10px; top: 10px; font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, .42); color: #fff; backdrop-filter: blur(4px);
}
.hcard-body { padding: 10px 12px 12px; }
.hcard-title { font-size: 14.5px; font-weight: 600; line-height: 1.45; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcard-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }

/* ---- 瀑布流（小红书式：两列、统一竖图、标题两行截断） ---- */
.masonry { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-items: stretch; }
.ms-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer; animation: fadeUp .3s var(--ease);
}
.ms-cover { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; }
.ms-cover img, .ms-cover > div { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.ms-cover-in { display: flex; align-items: center; justify-content: center; font-size: 30px; color: rgba(255, 255, 255, .95); }
.ms-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-body { padding: 9px 10px 11px; }
.ms-title { font-size: 13.5px; font-weight: 600; line-height: 1.45; margin-bottom: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ms-meta { font-size: 11.5px; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ms-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); }
.ms-author { display: flex; align-items: center; gap: 5px; min-width: 0; }
.ms-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70px; }
.ms-like { display: flex; align-items: center; gap: 3px; }
.ms-like.on { color: #e11d48; }

.avatar { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; flex: 0 0 auto; overflow: hidden; background: linear-gradient(135deg, #94a3b8, #64748b); }
.avatar.lg { width: 58px; height: 58px; font-size: 22px; }
.avatar.md { width: 38px; height: 38px; font-size: 15px; }

/* ---- 单列推荐 ---- */
.feed-list { display: flex; flex-direction: column; gap: 12px; }
.hm-card { display: flex; gap: 12px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; box-shadow: var(--shadow-sm); }
.hm-cover { flex: 0 0 92px; height: 92px; border-radius: 11px; overflow: hidden; position: relative; }
.hm-cover-in { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; }
.hm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hm-title { font-size: 14.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.hm-meta { font-size: 12px; color: var(--ink-3); margin-top: 5px; display: flex; gap: 8px; flex-wrap: wrap; }
.hm-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-3); padding-top: 6px; }

/* ---- 发现页 ---- */
.search-bar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.search-bar svg { width: 17px; height: 17px; color: var(--ink-3); flex: 0 0 auto; }
.search-bar input { flex: 1; border: 0; outline: none; font-size: 14px; background: none; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.mini-select {
  flex: 1 1 28%; min-width: 0; appearance: none; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; padding: 7px 8px; font-size: 12.5px; color: var(--ink-2); cursor: pointer;
}
.loc-cascade { display: flex; flex-wrap: wrap; gap: 8px; }
.loc-cascade select {
  flex: 1 1 40%; min-width: 88px; appearance: none; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; padding: 8px 9px; font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.loc-cascade select:disabled { background: #f5f7f9; color: var(--ink-3); }
.sort-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.sort-tabs::-webkit-scrollbar { display: none; }
.sort-tab { flex: 0 0 auto; border: 0; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.sort-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

.empty-box { text-align: center; padding: 50px 20px; color: var(--ink-3); }
.eb-emoji { font-size: 40px; margin-bottom: 8px; }

/* ---- 列表卡片 / 空状态 ---- */
.list-card { display: flex; flex-direction: column; gap: 10px; }
.list-row { display: flex; gap: 12px; align-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.list-row .lr-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--brand-soft); flex: 0 0 auto; }
.list-row .lr-ico.lr-img { padding: 0; overflow: hidden; background: #e2e8f0; }
.list-row .lr-ico.lr-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-title { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .lr-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.list-row .lr-act { display: flex; gap: 6px; flex: 0 0 auto; }
.pick-row { cursor: pointer; border: 2px solid transparent; }
.pick-row.on { border-color: var(--brand); background: var(--brand-soft); }

.need-login { text-align: center; padding: 40px 20px; }
.nl-emoji { font-size: 42px; margin-bottom: 10px; }

/* ---- 表单 ---- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password], .field input[type=search], .field textarea, .auth-pane input {
  width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 13px;
  font-size: 15px; font-family: inherit; outline: none; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .auth-pane input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13, 148, 136, .12); }
.field textarea { resize: vertical; line-height: 1.6; }
.field-err { margin: 6px 0 0; font-size: 12.5px; color: #dc2626; }
.otp-row { display: flex; gap: 8px; }
.otp-row input { flex: 1; }
.otp-row .btn { flex: 0 0 auto; }
.switch-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 16px; }
.switch-line input { accent-color: var(--brand); }

.cover-pick { display: flex; gap: 10px; }
.cover-preview { flex: 0 0 108px; height: 108px; border-radius: 12px; overflow: hidden; position: relative; }
.cover-preview .cp-in { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; }
.cover-side { flex: 1; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.mini-hues { display: flex; gap: 6px; flex-wrap: wrap; }
.hue-dot { width: 26px; height: 26px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.hue-dot.on { border-color: var(--ink); }

/* ---- 分段控件 ---- */
.seg { display: flex; background: #eef2f6; border-radius: 12px; padding: 3px; gap: 3px; margin-bottom: 14px; }
.seg-btn { flex: 1; border: 0; background: none; padding: 8px 6px; font-size: 13.5px; border-radius: 10px; cursor: pointer; color: var(--ink-2); }
.seg-btn.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }

/* ---- 会员卡 ---- */
.me-card {
  background: linear-gradient(135deg, #0f766e, #0d9488 55%, #06b6d4);
  border-radius: 18px; padding: 18px; color: #fff; display: flex; gap: 14px; align-items: center;
  box-shadow: 0 10px 26px rgba(13, 148, 136, .26);
}
.me-card .mc-main { flex: 1; min-width: 0; }
.me-card .mc-name { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.me-card .mc-sub { font-size: 12.5px; opacity: .9; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
.mc-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .3); }
.me-guest { display: flex; align-items: center; gap: 12px; }
.me-guest .mg-text { flex: 1; }
.me-guest .btn { background: #fff; color: var(--brand-dark); border: 0; }

.stat-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.stat-grid-4 .stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-grid-4 .stat b { display: block; font-size: 17px; font-weight: 700; }
.stat-grid-4 .stat span { font-size: 11.5px; color: var(--ink-3); }

.vip-card { background: linear-gradient(135deg, #1f2937, #111827); color: #fff; border-radius: 18px; padding: 16px; margin-bottom: 12px; }
.vip-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.vip-level { font-size: 16px; font-weight: 700; background: linear-gradient(90deg, #fbbf24, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vip-tip { margin: 3px 0 0; font-size: 12px; opacity: .78; }
.vip-badge { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); }
.vip-bar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .16); margin: 12px 0 10px; overflow: hidden; }
.vip-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #fbbf24, #f59e0b); transition: width .5s var(--ease); }
.vip-rights { display: flex; gap: 6px; flex-wrap: wrap; }
.vip-rights span { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); }

.menu-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.menu-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 0; background: none; cursor: pointer; font-size: 14.5px; border-bottom: 1px solid var(--line); text-align: left; }
.menu-item:last-child { border-bottom: 0; }
.menu-item i { font-style: normal; font-size: 17px; width: 24px; }
.menu-item span { flex: 1; }
.menu-item em { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.menu-item b { font-weight: 400; color: var(--ink-3); }
.menu-item.danger { color: #dc2626; justify-content: flex-start; }
.foot-note { text-align: center; font-size: 11.5px; color: var(--ink-3); padding: 6px 10px 0; }

/* ---- 全屏页（Sheet） ---- */
.sheet {
  position: fixed; top: 0; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--bg);
  max-width: var(--app-max); margin: 0 auto;
  display: flex; flex-direction: column; animation: sheetIn .28s var(--ease);
  box-shadow: 0 0 60px rgba(15, 23, 42, .18);
}
@keyframes sheetIn { from { transform: translateY(22px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
/* 登录层可叠加在向导/详情之上，登录完原路返回 */
#authPage { z-index: 90; }
#aiModal { z-index: 100; }
.sheet-bar {
  flex: 0 0 var(--bar-h); display: flex; align-items: center; justify-content: space-between; padding: 0 12px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.sheet-title { font-size: 15.5px; font-weight: 600; }
.sheet-spacer { width: 32px; }
.sheet-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 14px 0; }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.icon-btn:active { background: var(--line); }
.sheet-scroll.wizard-wide { padding: 18px 14px 0; }

.auth-wrap { max-width: 380px; margin: 0 auto; width: 100%; }
.auth-logo {
  width: 62px; height: 62px; margin: 20px auto 12px; border-radius: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(13, 148, 136, .32);
}
.auth-lead { text-align: center; color: var(--ink-2); font-size: 13.5px; margin: 0 0 18px; }
.auth-seg { margin-bottom: 16px; }
.auth-pane { animation: fadeUp .28s var(--ease); }
.auth-more { margin-top: 22px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 12px; margin-bottom: 14px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn-wechat { display: flex; align-items: center; justify-content: center; gap: 8px; background: #07c160; color: #fff; border: 0; }
.btn-wechat svg { width: 18px; height: 18px; fill: #fff; }

/* 向导与结果：沿用旧站卡片样式，仅回收外边距 */
#wizardPage .wizard { padding: 22px 18px 16px; }
#wizardPage .steps { margin-bottom: 18px; }
#wizardPage .steps-track { left: 8%; right: 8%; }
#result { animation: fadeUp .3s var(--ease); }
#result .side-grid { grid-template-columns: 1fr; }
#result .card.side-card { padding: 16px; }
.save-bar { display: flex; gap: 10px; margin-bottom: 12px; }
.save-bar .btn { flex: 1; }

/* ---- 详情页 ---- */
.detail-cover { width: 100%; height: 210px; position: relative; overflow: hidden; border-radius: 0 0 20px 20px; }
.detail-cover .dc-in { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 52px; color: #fff; }
.detail-cover .dc-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-cover .dc-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .38)); }

/* ---- 目的地图片卡 ---- */
.city-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.city-row::-webkit-scrollbar { display: none; }
.city-card {
  flex: 0 0 118px; scroll-snap-align: start; border: 0; padding: 0; cursor: pointer;
  position: relative; border-radius: 16px; overflow: hidden; background: #e2e8f0;
  height: 148px; text-align: left;
}
.city-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease); }
.city-card:active img { transform: scale(1.06); }
.city-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, .62)); }
.city-card .cc-name { position: absolute; left: 10px; bottom: 9px; z-index: 1; color: #fff; font-size: 14px; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.city-card .cc-tag { position: absolute; left: 10px; bottom: 27px; z-index: 1; color: rgba(255, 255, 255, .92); font-size: 10.5px; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }

/* 联想下拉与标签里的城市缩略图 */
.sg-img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.chip-thumb { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; vertical-align: -5px; margin-right: 5px; }
.chip-lg .chip-thumb { width: 26px; height: 26px; border-radius: 8px; vertical-align: -8px; margin-right: 7px; }

/* 生成结果页顶部城市图集 */
.res-hero { display: flex; gap: 6px; height: 168px; border-radius: 18px; overflow: hidden; margin-bottom: 14px; position: relative; }
.res-hero img { height: 100%; object-fit: cover; display: block; flex: 1 1 0; min-width: 0; }
.res-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, .38)); pointer-events: none; }
/* 生成等待页的目的地图集 */
.load-hero { display: flex; gap: 5px; height: 132px; border-radius: 14px; overflow: hidden; margin-bottom: 14px; position: relative; }
.load-hero img { height: 100%; object-fit: cover; display: block; flex: 1 1 0; min-width: 0; }
.load-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(13, 148, 136, .28)); }
.detail-head { padding: 14px 2px 0; }
.dh-title { font-size: 20px; font-weight: 700; line-height: 1.4; margin: 0 0 8px; }
.dh-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.mini-tag { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe; }
.mini-tag.g { background: var(--brand-soft); color: var(--brand-dark); border-color: #b7ece5; }
.mini-tag.ds { background: #eef2ff; color: #4f46e5; border-color: #e0e7ff; font-weight: 600; }
.author-row { display: flex; align-items: center; gap: 10px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.author-row .ar-main { flex: 1; min-width: 0; }
.author-row .ar-name { font-weight: 600; font-size: 14.5px; }
.author-row .ar-sub { font-size: 12px; color: var(--ink-3); }
.btn-follow { border: 1px solid var(--brand); color: var(--brand); background: #fff; border-radius: 999px; padding: 5px 14px; font-size: 13px; cursor: pointer; }
.btn-follow.on { background: #fff; border-color: var(--line-2); color: var(--ink-3); }
.detail-text { font-size: 14.5px; line-height: 1.8; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; white-space: pre-wrap; }
.detail-sec-title { font-size: 15px; font-weight: 700; margin: 18px 0 10px; }
.plan-day { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.pd-head { font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.pd-item { display: flex; gap: 10px; font-size: 13.5px; padding: 5px 0; border-top: 1px dashed var(--line); }
.pd-item:first-of-type { border-top: 0; }
.pd-time { color: var(--ink-3); flex: 0 0 62px; font-variant-numeric: tabular-nums; }
.pd-main { flex: 1; }
.pd-note { color: var(--ink-3); font-size: 12.5px; }

.action-bar {
  position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  margin: 18px -14px 0; border-radius: 16px 16px 0 0;
}
.act-btn { flex: 0 0 auto; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--ink-2); padding: 0 6px; }
.act-btn i { font-style: normal; font-size: 20px; }
.act-btn.on { color: #e11d48; }
.act-main { flex: 1; }

.comment-box { margin-top: 14px; }
.cmt-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cmt-item:last-child { border-bottom: 0; }
.cmt-main { flex: 1; min-width: 0; }
.cmt-name { font-size: 13px; font-weight: 600; }
.cmt-text { font-size: 14px; line-height: 1.6; }
.cmt-time { font-size: 11.5px; color: var(--ink-3); }
.cmt-del { border: 0; background: none; color: var(--ink-3); font-size: 12px; cursor: pointer; }
.cmt-input { display: flex; gap: 8px; margin-top: 10px; }
.cmt-input input { flex: 1; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 14px; font-size: 14px; outline: none; }

/* ---- Toast / 提示条 ---- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + 20px); transform: translateX(-50%);
  background: rgba(15, 23, 42, .93); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; z-index: 90; box-shadow: var(--shadow-lg); animation: fadeUp .25s var(--ease);
  max-width: 86%; text-align: center;
}
.global-warn {
  position: fixed; left: 50%; transform: translateX(-50%); top: 12px; z-index: 95;
  max-width: 92%; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  padding: 10px 14px; border-radius: 12px; font-size: 13px; box-shadow: var(--shadow);
}

/* ---- 加载占位 ---- */
.skeleton { background: linear-gradient(90deg, #eef2f6 25%, #f8fafc 37%, #eef2f6 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 12px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---- 打印 / 桌面微调 ---- */
@media (min-width: 720px) {
  .app {
    margin: 24px auto; border-radius: 28px; overflow: hidden;
    height: calc(100vh - 48px); height: calc(100dvh - 48px);
  }
  .tabbar { border-bottom-left-radius: 28px; border-bottom-right-radius: 28px; }
  /* 整屏浮层在桌面上也收成手机框内的模样 */
  .sheet {
    top: 24px; bottom: 24px; border-radius: 28px;
    max-width: var(--app-max); max-height: calc(100dvh - 48px);
  }
  .toast { position: absolute; }
}
@media print {
  .app-bar, .tabbar, .sheet-bar, .action-bar, .save-bar, .result-actions { display: none !important; }
  .sheet { position: static; box-shadow: none; }
}

/* ---- 全球自定义目的地 ---- */
.chip-globe {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(135deg, #0d9488, #0ea5e9); color: #fff; font-size: 13px;
}
.chip-lg .chip-globe + * { margin-left: 6px; }

/* 搜索联想里的「自定义目的地」行 */
.sg-item.sg-custom { border: 1px dashed #cbd5e1; }
.sg-item.sg-custom .sg-pin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, #0d9488, #0ea5e9); color: #fff; font-size: 18px;
}

/* 结果页未启用 AI 的提示条 */
.gen-note {
  margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.6;
  background: #f0fdfa; border: 1px solid #99f6e4; color: #0f766e; display: flex;
  align-items: center; flex-wrap: wrap; gap: 6px;
}
.gen-note .link-btn { padding: 0 2px; font-size: 12.5px; }
