:root {
  --red: #e2412e;
  --red-deep: #a92a1a;
  --red-soft: #fdebe6;
  --amber: #f0a43a;
  --gold: #c99a3c;
  --indigo: #1d2448;
  --paper: #f6efe6;
  --paper-2: #ece2d3;
  --card: #fffdfa;
  --ink: #2a201b;
  --sub: #8a7b70;
  --line: #e7dbcb;
  --green: #3d8b63;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --shadow: 0 1px 2px rgba(60, 35, 20, .06), 0 6px 18px rgba(60, 35, 20, .08);
  --tabh: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body {
  font: 17px/1.6 -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  max-width: 560px; margin: 0 auto; min-height: 100vh;
}
/* 防横向溢出：不再写在 body 上（body 的 overflow 会被提到整个视口上，视口横向被锁死后，
   安卓「添加到桌面」打开的壳子会把横向手势交给自己的前进/后退手势，里面的横滑条就滑不动）。
   改成只在内容外层用 clip：裁掉溢出，但不产生滚动容器，顶栏 sticky 也不受影响。老内核不认 clip 时退回老写法。 */
#app { overflow-x: clip; }
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }
html { overscroll-behavior-x: none; }

/* ---------- 所有左右滑的条 ---------- */
/* overscroll-behavior-x: contain：滑到头也不把手势「漏」给页面 / 浏览器（安卓的左右滑前进后退、iOS 侧滑返回）；
   -webkit-overflow-scrolling: touch：iOS 12 及以下要它才有惯性滑动，新系统和安卓会忽略。
   不加 touch-action：页面上没有任何祖先元素限制 touch-action（默认 auto 已经允许横竖拖），
   加 pan-x pan-y 只会多禁掉在照片上双指放大，爸妈看图要用。 */
.mood, .rail, .chips, .gallery, .quotes, .dishes, .map-cards {
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; cursor: pointer; color: inherit; background: none; padding: 0; }
img { display: block; max-width: 100%; }
main { padding: 0 14px calc(var(--tabh) + 90px); }
.serif { font-family: var(--serif); }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(246, 239, 230, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.top h1 { font: 800 21px/1.2 var(--serif); margin: 0; flex: 1; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--card); box-shadow: var(--shadow); font-size: 24px; line-height: 1; }
.wish-pill { flex: none; background: var(--red); color: #fff; border-radius: 99px; padding: 6px 13px; font-size: 14px; font-weight: 700; box-shadow: 0 4px 12px rgba(226, 65, 46, .3); }
.top.float { position: absolute; left: 0; right: 0; max-width: 560px; margin: 0 auto; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.top.float .round { background: rgba(255, 253, 250, .9); }

/* ---------- 底部标签栏 + 问我 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabh) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 253, 250, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 13px; color: var(--sub); }
.tabbar a i { font-style: normal; font-size: 24px; line-height: 1.1; filter: grayscale(1); opacity: .65; }
.tabbar a.on { color: var(--red); font-weight: 700; }
.tabbar a.on i { filter: none; opacity: 1; }
.fab {
  position: fixed; z-index: 13; right: max(14px, calc(50vw - 266px)); bottom: calc(var(--tabh) + 14px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 6px; padding: 5px 16px 5px 5px; border-radius: 99px; background: var(--indigo); color: #fff; font-weight: 700;
  box-shadow: 0 8px 22px rgba(29, 36, 72, .4);
}
.fab img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }

/* ---------- 推荐页 ---------- */
.hero { position: relative; margin: 0 -14px; height: 270px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .cap { position: absolute; inset: auto 0 0; padding: 70px 18px 30px; color: #fff; background: linear-gradient(transparent, rgba(20, 15, 35, .85)); }
.hero .cap b { font: 900 46px/1 var(--serif); letter-spacing: 6px; }
.hero .cap span { display: block; margin-top: 8px; font-size: 15px; opacity: .92; }
.lift { position: relative; margin-top: -18px; background: var(--paper); border-radius: 20px 20px 0 0; padding-top: 16px; }

.mood { display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 4px; scrollbar-width: none; }
.mood::-webkit-scrollbar, .rail::-webkit-scrollbar, .chips::-webkit-scrollbar, .gallery::-webkit-scrollbar { display: none; }
.mood a { flex: none; display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 16px; }
.mood a i { font-style: normal; font-size: 22px; }

.prep { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 14px 10px 10px; border-radius: 18px; background: linear-gradient(110deg, #fff4dd, #fde3d6); box-shadow: var(--shadow); }
.prep img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.prep b { font: 800 18px var(--serif); }
.prep span { display: block; font-size: 14px; color: var(--sub); }
.prep .go { margin-left: auto; color: var(--red); font-weight: 700; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 26px 0 12px; }
.sec-head h2 { font: 900 23px/1.2 var(--serif); margin: 0; }
.sec-head h2 small { display: block; font: 500 13px -apple-system, sans-serif; color: var(--sub); margin-top: 3px; letter-spacing: 0; }
.sec-head a { color: var(--sub); font-size: 14px; flex: none; }

.rail { display: flex; gap: 12px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rank-card { position: relative; flex: none; width: 74%; max-width: 330px; scroll-snap-align: start; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--indigo); aspect-ratio: 4 / 5; }
.rank-card img { width: 100%; height: 100%; object-fit: cover; }
.rank-card .no { position: absolute; top: 8px; left: 14px; font: italic 900 58px/1 var(--serif); color: #fff; text-shadow: 0 3px 14px rgba(0, 0, 0, .45); }
.rank-card .cap { position: absolute; inset: auto 0 0; padding: 60px 16px 16px; color: #fff; background: linear-gradient(transparent, rgba(15, 10, 25, .85)); }
.rank-card .cap b { font: 900 25px/1.25 var(--serif); }
.rank-card .cap p { margin: 4px 0 0; font-size: 14px; opacity: .92; line-height: 1.45; }
.rank-card .cap .heat { display: inline-block; margin-top: 8px; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: rgba(255, 255, 255, .2); }

.eat-rank { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.eat-row { display: flex; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.eat-row:last-child { border: 0; }
.eat-row .n { font: italic 900 26px/1 var(--serif); color: var(--gold); width: 24px; text-align: center; flex: none; }
.eat-row:nth-child(-n+3) .n { color: var(--red); }
.eat-row img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; background: var(--paper-2); }
.eat-row .x { flex: 1; min-width: 0; }
.eat-row b { font: 800 18px var(--serif); }
.eat-row p { margin: 2px 0 0; font-size: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.must { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.must span { font-size: 12px; padding: 1px 8px; border-radius: 99px; background: var(--red-soft); color: var(--red-deep); }

/* ---------- 双列图片流 ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 2px -14px 12px; padding: 2px 14px; scrollbar-width: none; }
.chip { flex: none; padding: 7px 15px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.flow { display: flex; gap: 10px; align-items: flex-start; }
.flow > div { flex: 1; min-width: 0; }
.fcard { display: block; margin-bottom: 10px; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.fcard img { width: 100%; object-fit: cover; background: var(--paper-2); }
.fcard .t { padding: 8px 10px 10px; }
.fcard b { font: 800 17px/1.35 var(--serif); display: block; }
.fcard p { margin: 3px 0 0; font-size: 13px; color: var(--sub); line-height: 1.45; }
.fcard .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--sub); }
.fcard .foot .tag { font-size: 12px; }
.fcard .heart { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; font-size: 17px; }
.fcard .pill { position: absolute; top: 8px; left: 8px; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: rgba(20, 15, 35, .6); color: #fff; }
.heart { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 253, 250, .92); font-size: 20px; display: grid; place-items: center; box-shadow: var(--shadow); }
.tag { font-size: 13px; padding: 2px 9px; border-radius: 99px; background: var(--paper-2); color: var(--ink); }
.tag.g { background: #e3f1e8; color: var(--green); }
.tag.r { background: var(--red-soft); color: var(--red-deep); }

/* ---------- 详情页 ---------- */
.gallery { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px; scrollbar-width: none; background: var(--indigo); }
.gallery img { flex: none; width: 100%; aspect-ratio: 4 / 5; max-height: 62vh; object-fit: cover; scroll-snap-align: start; }
.g-wrap { position: relative; }
.g-count { position: absolute; right: 12px; bottom: 30px; z-index: 2; font-size: 13px; padding: 2px 10px; border-radius: 99px; background: rgba(0, 0, 0, .5); color: #fff; }
.d-title { position: relative; margin: -20px -14px 0; background: var(--paper); border-radius: 22px 22px 0 0; padding: 18px 16px 0; }
.d-title h1 { font: 900 28px/1.25 var(--serif); margin: 0; }
.d-title .sub { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.oneliner { margin: 14px 0 0; padding: 14px 16px; border-radius: 16px; background: linear-gradient(120deg, #fff1d6, #fde4da); position: relative; font-size: 17px; line-height: 1.6; }
.oneliner::before { content: "一句话攻略"; display: block; font: 800 13px -apple-system, sans-serif; color: var(--red); letter-spacing: 1px; margin-bottom: 2px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.fact { background: var(--card); border-radius: 14px; padding: 8px 6px; text-align: center; box-shadow: var(--shadow); }
.fact i { display: block; font-style: normal; font-size: 20px; }
.fact b { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; margin-top: 2px; }
.fact small { display: block; font-size: 11px; color: var(--sub); }
.block { margin-top: 24px; }
.block h2 { font: 900 20px/1.3 var(--serif); margin: 0 0 10px; }
.hl { display: flex; gap: 10px; background: var(--card); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
.hl .k { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--red-soft); color: var(--red); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.hl b { font-size: 16px; }
.hl p { margin: 1px 0 0; color: var(--sub); font-size: 14px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 14px 40px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.steps li::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.eats { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.eat { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px dashed var(--line); align-items: baseline; }
.eat:last-child { border: 0; }
.eat b { flex: none; min-width: 4.5em; }
.eat span { flex: 1; color: var(--sub); font-size: 14px; }
.eat em { font-style: normal; color: var(--red); font-size: 13px; flex: none; }
.quotes { display: flex; gap: 10px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 8px; scrollbar-width: none; }
.quote { flex: none; width: 78%; max-width: 330px; background: var(--card); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); font-size: 15px; line-height: 1.6; }
.quote .who { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--sub); }
.quote .av { width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 700; }
ul.tips { list-style: none; margin: 0; padding: 0; }
ul.tips li { position: relative; padding: 10px 14px 10px 38px; background: #fff5e3; border-radius: 12px; margin-bottom: 8px; font-size: 15px; }
ul.tips li::before { content: "!"; position: absolute; left: 11px; top: 11px; width: 19px; height: 19px; border-radius: 50%; background: var(--amber); color: #fff; font-weight: 900; font-size: 12px; display: grid; place-items: center; }
.mini { flex: none; width: 46%; scroll-snap-align: start; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.mini img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper-2); }
.mini b { display: block; padding: 6px 10px 10px; font: 800 15px var(--serif); }
.src { font-size: 12px; color: var(--sub); margin-top: 18px; }

.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 14; max-width: 560px; margin: 0 auto;
  display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246, 239, 230, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 12px; border-radius: 16px; font-size: 17px; font-weight: 800; background: var(--red); color: #fff; flex: 1; text-align: center; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.dark { background: var(--indigo); }
.btn.wide { width: 100%; margin-top: 14px; }
.actionbar .btn.ghost { flex: 0 0 52px; padding: 13px 0; }

/* ---------- 美食 ---------- */
.howto { background: #fff5e3; border-left: 4px solid var(--amber); border-radius: 12px; padding: 11px 14px; font-size: 15px; margin-bottom: 4px; }
.howto b { color: #9a5a00; }
.dishes { display: flex; gap: 10px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 8px; scrollbar-width: none; }
.dish { flex: none; width: 148px; background: var(--card); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
.dish b { font: 800 17px var(--serif); }
.dish .lv { display: block; font-size: 12px; margin-top: 2px; }
.dish p { margin: 4px 0 0; color: var(--sub); font-size: 13px; line-height: 1.45; }

/* ---------- 路线 ---------- */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper-2); border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.seg a { text-align: center; padding: 9px; border-radius: 11px; font-weight: 700; color: var(--sub); }
.seg a.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.plan-card { position: relative; display: block; border-radius: 20px; overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow); background: var(--indigo); aspect-ratio: 16 / 8; }
.plan-card img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.plan-card .cap { position: absolute; inset: 0; padding: 16px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(transparent 20%, rgba(15, 10, 25, .82)); }
.plan-card b { font: 900 24px var(--serif); }
.plan-card p { margin: 3px 0 0; font-size: 14px; opacity: .92; }
.day-title { font: 900 21px var(--serif); margin: 22px 0 10px; }
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 10px); }
.stop { position: relative; }
.stop::before { content: ""; position: absolute; left: -19px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--paper); }
.stop.eat::before { background: var(--amber); }
.stop.rest::before { background: var(--green); }
.move { font-size: 13px; color: var(--sub); padding: 4px 0 6px; }
.stop-card { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 14px; padding: 9px; box-shadow: var(--shadow); }
.stop-card img, .stop-card .ph { width: 66px; height: 66px; border-radius: 10px; object-fit: cover; flex: none; background: var(--paper-2); }
.stop-card .ph { display: grid; place-items: center; font-size: 28px; }
.stop-card .x { flex: 1; font-size: 16px; }
.stop-card .tm { font-weight: 900; color: var(--red); font-size: 14px; }
.stop-card .go { color: var(--sub); font-size: 22px; }
.sample { font-size: 12px; color: var(--sub); }

/* ---------- 其他 ---------- */
.row { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.row .ic { font-size: 26px; width: 48px; height: 48px; display: grid; place-items: center; background: var(--paper); border-radius: 13px; flex: none; }
.row .body { flex: 1; min-width: 0; }
.row h3 { margin: 0; font: 800 18px var(--serif); }
.row p { margin: 2px 0 0; color: var(--sub); font-size: 14px; }
.banner { border-radius: 20px; overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow); }
.banner img { width: 100%; aspect-ratio: 2.2 / 1; object-fit: cover; }
.note { color: var(--sub); font-size: 14px; margin: 4px 2px 12px; }
.empty { text-align: center; color: var(--sub); padding: 50px 10px; }
.empty .ic { font-size: 56px; }
.guide-body { white-space: pre-wrap; background: var(--card); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 16px; line-height: 1.75; }

/* ---------- 首页 ---------- */
.home-head { padding: 34px 18px 16px; padding-top: calc(34px + env(safe-area-inset-top)); }
.home-head small { color: var(--red); font-weight: 800; letter-spacing: 3px; }
.home-head h1 { font: 900 31px/1.3 var(--serif); margin: 6px 0; }
.home-head p { margin: 0; color: var(--sub); }
.city { position: relative; display: block; border-radius: 24px; overflow: hidden; margin-bottom: 14px; aspect-ratio: 16 / 11; box-shadow: var(--shadow); background: var(--indigo); }
.city img { width: 100%; height: 100%; object-fit: cover; }
.city .cap { position: absolute; inset: auto 0 0 0; padding: 60px 18px 16px; color: #fff; background: linear-gradient(transparent, rgba(15, 12, 30, .8)); }
.city .cap b { font: 900 40px/1 var(--serif); letter-spacing: 4px; }
.city .cap span { display: block; margin-top: 6px; opacity: .92; font-size: 14px; }
.city.soon { aspect-ratio: auto; background: var(--paper-2); box-shadow: none; padding: 18px; display: flex; justify-content: space-between; align-items: center; color: var(--sub); }
.city.soon b { font: 800 22px var(--serif); color: var(--ink); letter-spacing: 2px; }
.city.soon span { font-size: 15px; }

/* ---------- AI ---------- */
.chat { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.msg-row { display: flex; gap: 8px; align-items: flex-end; }
.msg-row img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.msg { max-width: 82%; padding: 11px 14px; border-radius: 18px; white-space: pre-wrap; word-break: break-word; box-shadow: var(--shadow); }
.msg.a { background: var(--card); border-bottom-left-radius: 6px; }
.msg.u { background: var(--red); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; }
.msg.err { background: var(--red-soft); color: var(--red-deep); }
.typing:empty::after { content: "正在想…"; color: var(--sub); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0 44px; }
.quick button { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; font-size: 15px; }
.composer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 14; max-width: 560px; margin: 0 auto; display: flex; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(246, 239, 230, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.composer input { flex: 1; font: inherit; padding: 12px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); min-width: 0; }
.composer button { background: var(--red); color: #fff; border-radius: 99px; padding: 0 22px; font-weight: 800; }
.composer button:disabled { opacity: .5; }
.call { position: fixed; left: max(14px, calc(50vw - 266px)); bottom: calc(var(--tabh) + 14px + env(safe-area-inset-bottom)); z-index: 13; background: var(--green); color: #fff; border-radius: 99px; padding: 11px 16px; font-weight: 800; box-shadow: 0 6px 16px rgba(61, 139, 99, .35); }

/* ---------- 地图 ---------- */
.mapbox { position: fixed; inset: 0; max-width: 560px; margin: 0 auto; z-index: 1; background: #eee8df; }
.map-top { position: fixed; top: 0; left: 0; right: 0; max-width: 560px; margin: 0 auto; z-index: 500; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); display: flex; gap: 8px; align-items: center; }
/* 分段选择：白色半透明底板 + 阴影，选中项实色填充，每项带数量 */
.map-seg { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 4px; border-radius: 16px;
  background: rgba(255, 253, 250, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 20px rgba(60, 35, 20, .22), 0 0 0 1px rgba(60, 35, 20, .06); }
.map-seg a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 3px 2px; border-radius: 12px; color: var(--ink); line-height: 1.15; transition: background .2s, color .2s; }
.map-seg b { font-size: 16px; font-weight: 800; white-space: nowrap; }
.map-seg small { font-size: 12px; color: var(--sub); font-weight: 600; }
.map-seg a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; margin-bottom: 2px; background: var(--k, var(--ink)); }
.map-seg .k-all { --k: linear-gradient(90deg, var(--red) 50%, var(--amber) 50%); }
.map-seg .k-all::before { background: var(--k); }
.map-seg .k-spots { --k: var(--red); }
.map-seg .k-food { --k: var(--amber); }
.map-seg .k-hotels { --k: var(--indigo); }
.map-seg a.on { background: var(--red); color: #fff; box-shadow: 0 3px 10px rgba(226, 65, 46, .35); }
.map-seg a.k-food.on { background: #e08a1e; box-shadow: 0 3px 10px rgba(240, 164, 58, .4); }
.map-seg a.k-hotels.on { background: var(--indigo); box-shadow: 0 3px 10px rgba(29, 36, 72, .35); }
.map-seg a.on small { color: rgba(255, 255, 255, .85); }
.map-seg a.on::before { background: #fff; }
.map-top .round { width: 44px; height: 44px; }
.map-tools { position: fixed; z-index: 500; right: max(12px, calc(50vw - 268px)); bottom: calc(210px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.map-hint { position: fixed; z-index: 500; left: max(14px, calc(50vw - 266px)); bottom: calc(146px + env(safe-area-inset-bottom)); max-width: calc(100% - 90px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; padding: 3px 10px; border-radius: 99px; background: rgba(42, 32, 27, .72); color: #fff; }
.map-hint[hidden] { display: none; }
.map-tools button { width: 44px; height: 44px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); font-size: 20px; }
.map-cards { position: fixed; z-index: 500; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; /* 底部留出 iPhone Home 条 / 安卓手势条 */
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.map-cards::-webkit-scrollbar { display: none; }
.mcard { flex: none; width: 84%; scroll-snap-align: center; display: flex; gap: 12px; padding: 10px; border-radius: 18px; background: var(--card); box-shadow: 0 8px 24px rgba(40, 25, 15, .2); border: 2px solid transparent; }
.mcard.on { border-color: var(--red); }
.mcard.fix { position: relative; }
.mcard.fix::after { content: "刚才看的"; position: absolute; top: -1px; right: 12px; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 0 0 8px 8px; background: var(--red); color: #fff; }
.mcard img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; flex: none; background: var(--paper-2); }
.mcard .x { flex: 1; min-width: 0; }
.mcard b { font: 800 18px/1.3 var(--serif); display: block; }
.mcard p { margin: 3px 0 0; font-size: 13px; color: var(--sub); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard .row2 { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; font-size: 12px; max-height: 50px; overflow: hidden; } /* 标签最多两行，卡片别被撑高挡地图 */
.map-cards { align-items: flex-end; }
.leaflet-container { font-family: inherit; }
.leaflet-div-icon { background: none; border: 0; }
.pin { display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -100%); width: max-content; }
.pin img.ph { display: block; width: 46px; height: 46px; object-fit: cover; background: var(--paper-2); box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.pin b { margin-top: 3px; font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: rgba(255, 253, 250, .95); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); white-space: nowrap; }
.pin-spot .ph { border-radius: 50%; border: 3px solid var(--red); }
.pin-food img.ph { width: 40px; height: 40px; border-radius: 12px; border: 3px solid var(--amber); }
.pin-hotel .ph { display: none; }
.pin-hotel b { margin: 0; font-size: 14px; padding: 4px 10px; background: var(--indigo); color: #fff; border-radius: 10px; position: relative; }
.pin-hotel b::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--indigo); }
.pin.on .ph { transform: scale(1.25); }
.pin.on b { background: var(--red); color: #fff; }
.pin.approx .ph { border-style: dashed; }
.pin-metro { transform: translate(-50%, -50%); font-size: 11px; font-weight: 700; color: #fff; background: #2f6fd6; padding: 1px 6px 1px 4px; border-radius: 6px; white-space: nowrap; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); width: max-content; }
.pin-metro::before { content: "Ⓜ "; }
.pin-me { width: 18px; height: 18px; border-radius: 50%; background: #2f80ed; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47, 128, 237, .25); transform: translate(-50%, -50%); }
/* 列表页「看地图」：暖红到橙的渐变胶囊 + 呼吸光晕，按下回弹。
   居中用 left/right + margin auto（不用 transform），transform 留给动效；宽度留够右下角「问我」的位置 */
.map-btn { position: fixed; z-index: 13; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: calc(var(--tabh) + 16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 7px; padding: 10px 20px 10px 16px; border-radius: 99px; font-size: 17px; font-weight: 900; letter-spacing: 1px; color: #fff;
  background: linear-gradient(115deg, var(--red-deep) 0%, var(--red) 45%, var(--amber) 100%);
  box-shadow: 0 8px 20px rgba(226, 65, 46, .38), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); animation: mapbtn-in .5s cubic-bezier(.34, 1.56, .64, 1) backwards; }
.map-btn svg { width: 22px; height: 22px; flex: none; }
.map-btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; box-shadow: 0 0 0 0 rgba(240, 120, 50, .55); animation: mapbtn-pulse 2.4s ease-out infinite; }
.map-btn:active { transform: scale(.92); transition-duration: .08s; }
@keyframes mapbtn-pulse { 0% { box-shadow: 0 0 0 0 rgba(240, 120, 50, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(240, 120, 50, 0); } }
@keyframes mapbtn-in { from { opacity: 0; transform: translateY(16px) scale(.9); } }
/* 窄屏（360 以下）往左挪一点，别碰到右下角「问我」 */
@media (max-width: 380px) { .map-btn { margin-left: 14px; } }
@media (prefers-reduced-motion: reduce) { .map-btn, .map-btn::before { animation: none; } }
.legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--sub); margin: -4px 2px 10px; }
.block h2 small .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 3px 0 6px; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); vertical-align: 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 3px; vertical-align: -1px; font-style: normal; }

/* ---------- 酒店 ---------- */
.hotel { background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 14px; }
.hotel .gallery { margin: 0; }
.hotel .gallery img { aspect-ratio: 16 / 10; max-height: none; }
.hotel .body { padding: 12px 14px 14px; }
.hotel h3 { margin: 0; font: 900 20px/1.3 var(--serif); }
.hotel .price { color: var(--red); font-weight: 900; font-size: 18px; }
.hotel ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.hotel ul.cons { color: var(--red-deep); }
.hotel .bed { margin-top: 8px; font-size: 14px; background: #eef2fb; color: var(--indigo); border-radius: 10px; padding: 6px 10px; }
.hotel .q { margin-top: 8px; font-size: 14px; color: var(--sub); }
.hotel .btns { display: flex; gap: 8px; margin-top: 12px; }
.hotel .btns .btn { font-size: 15px; padding: 11px 8px; }
.dish-ph { width: calc(100% + 24px); margin: -12px -12px 8px; aspect-ratio: 1; object-fit: cover; border-radius: 14px 14px 0 0; max-width: none; }
.dish { overflow: hidden; }

.walk, .kid { background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 14px; }
.walk img, .kid img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; background: var(--paper-2); }
.walk .body, .kid .body { padding: 12px 14px 14px; }
.walk h3, .kid h3 { margin: 0; font: 900 19px/1.35 var(--serif); }
.kid p { margin: 8px 0; font-size: 15px; }

/* ---------- 详情页加厚 ---------- */
.block h2 small { font: 500 13px -apple-system, sans-serif; color: var(--sub); margin-left: 4px; }
.story { background: var(--card); border-radius: 16px; padding: 4px 16px; box-shadow: var(--shadow); }
.story p { margin: 12px 0; font-size: 16px; line-height: 1.8; text-indent: 2em; }
.eat-cards { display: grid; gap: 10px; }
.eat-card { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 14px; padding: 10px; box-shadow: var(--shadow); }
.eat-card img, .eat-card .ph { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; flex: none; background: var(--paper-2); display: grid; place-items: center; font-size: 30px; }
.eat-card .x { flex: 1; min-width: 0; }
.eat-card b { font: 800 17px var(--serif); margin-right: 6px; }
.eat-card .tag { font-size: 12px; }
.eat-card p { margin: 4px 0 0; font-size: 14px; color: var(--sub); line-height: 1.5; }
.eat-card em { font-style: normal; color: var(--red); font-size: 13px; font-weight: 700; }
a.eat-card { border: 1px solid transparent; }
a.eat-card:active { border-color: var(--red); }
.mini.near { width: 40%; }
.mini.near b { padding-bottom: 0; }
.mini.near .d { display: block; padding: 2px 10px 0; font-size: 12px; color: var(--sub); }
.mini.near .m { display: block; padding: 2px 10px 10px; font-size: 12px; color: var(--red-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minimap { position: relative; display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.minimap #minimap { height: 240px; background: #eee8df; }
.minimap .open { position: absolute; right: 10px; bottom: 10px; z-index: 500; background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; padding: 7px 14px; border-radius: 99px; box-shadow: var(--shadow); }
ul.tips.elder li { background: #eaf3ee; }
ul.tips.elder li::before { content: "♥"; background: var(--green); }
.mcard.k-food img { border-radius: 12px; outline: 3px solid var(--amber); outline-offset: -3px; }
.mcard.k-spot img { outline: 3px solid var(--red); outline-offset: -3px; }
.d-title .bed { font-size: 14px; background: #eef2fb; color: var(--indigo); border-radius: 10px; padding: 8px 12px; }

/* 手机上长标签：整块换行，不要把最后一个字甩到下一行 */
.tag { display: inline-block; max-width: 100%; white-space: normal; line-height: 1.45; vertical-align: top; }
.walk .meta, .kid .meta { gap: 6px; }
.actionbar .btn { white-space: nowrap; font-size: 16px; }
.fab { padding: 4px 14px 4px 4px; font-size: 15px; }
.fab img { width: 36px; height: 36px; }

/* ---------- 酒店列表 ---------- */
.hrow { display: flex; gap: 12px; background: var(--card); border-radius: 16px; padding: 10px; margin-bottom: 10px; box-shadow: var(--shadow); }
.hrow img { width: 110px; height: 110px; border-radius: 12px; object-fit: cover; flex: none; background: var(--paper-2); }
.hrow .x { flex: 1; min-width: 0; }
.hrow b { font: 800 17px/1.35 var(--serif); display: block; }
.hrow p { margin: 4px 0 0; font-size: 13px; color: var(--sub); }
.hrow .meta { margin-top: 5px; }
.hrow.is-avoid { border: 1.5px solid #f3c2b8; }
.tag.bad { background: #fde3dc; color: var(--red-deep); font-weight: 700; }
.avoid { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #fde3dc; color: var(--red-deep); font-size: 15px; font-weight: 600; }
.quote.bad { background: #fff3f0; border: 1px solid #f6cfc6; }
.chips + .chips { margin-top: -6px; }
.eat-card.nopic { padding: 12px 14px; }

/* 横滑区域：浏览器只管竖向，横向由 app.js 自己处理（安卓桌面版原生横滑不可靠） */
.rail, .chips, .gallery, .quotes, .dishes, .mood, .map-cards { touch-action: pan-y; }
/* 地图页：锁住整页，拖地图不触发浏览器左右滑返回 / 下拉刷新 */
body:has(.mapbox) { overscroll-behavior: none; overflow: hidden; }

/* 导航菜单 */
.navsheet { position: fixed; inset: 0; z-index: 3000; }
.ns-mask { position: absolute; inset: 0; background: rgba(20, 12, 8, .5); }
.ns-body { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; background: var(--paper); border-radius: 22px 22px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 10px; animation: up .22s ease-out; }
.ns-title { font: 900 19px var(--serif); margin-bottom: 4px; }
.ns-body .btn { width: 100%; padding: 15px; font-size: 17px; }
.ns-tip { margin: 0; font-size: 14px; color: var(--sub); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
