/* ============================================================
   QLG-H5 首页
   画布：375×1940（Pixso iPhone 13 mini，#FDEB00 黄底）
   策略：aspect-ratio 锁比例 + 所有图层用 % 绝对定位（百分比以画布为基准）
   ============================================================ */

@font-face {
  font-family: 'Alimama DongFangDaKai';
  src: url('./assets/fonts/dongfangdakai/AlimamaDongFangDaKai-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body {
  font-family: "ZCOOL KuaiLe", "站酷快乐体", -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
  background: #2a2a2a;
  color: #1f1f1f;
  line-height: 1.5;
}
body.home { background: #fdeb00; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; -webkit-user-drag: none; }

@media (min-width: 768px) {
  body, body.home {
    background: linear-gradient(135deg, #fce7c8 0%, #ffd6d6 50%, #c8e6ff 100%);
  }
}

/* ---------- 画布 ---------- */
.canvas {
  position: relative;
  width: 100%;
  max-width: 414px;
  margin: 0 auto;
  aspect-ratio: 375 / 1940;
  background: #fdeb00;
  overflow: hidden;
}
@media (min-width: 768px) {
  .canvas {
    margin: 24px auto;
    border-radius: 36px;
    box-shadow: 0 0 0 10px #1a1a1a, 0 0 0 12px #333, 0 30px 60px rgba(0,0,0,.3);
  }
}

/* ---------- 通用绝对定位图层（--t/--l/--w/--h 以 375×1940 为设计值） ---------- */
.l {
  position: absolute;
  top:    calc(var(--t) / 1940 * 100%);
  left:   calc(var(--l) / 375  * 100%);
  width:  calc(var(--w) / 375  * 100%);
  height: calc(var(--h) / 1940 * 100%);
}

/* 图片层默认保持图像不变形（contain 以防切片带透明边导致溢出） */
.l.img { object-fit: contain; }

/* 顶部非 reveal 图片的淡入（reveal 图片由滚动观察器管理，不在此处理） */
.canvas img.l:not(.reveal) {
  opacity: 0;
  transition: opacity .35s ease;
}
.canvas img.l:not(.reveal).img-loaded {
  opacity: 1;
}

/* ---------- 介绍段（9:2 容器 350×350 @ 442,14） ---------- */
.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #1a1a1a;
  font-weight: 600;
  /* 设计 350 宽 × 350 高；字号按 375 基准 vw，封顶 414 */
  padding: 0 calc(6 / 350 * 100%);
}
.intro p { margin: 0; }
.intro .ln {
  font-size: clamp(11.5px, 3.55vw, 14.7px);
  line-height: 1.85;
  letter-spacing: .3px;
}
.intro .ln b { color: #0f172a; font-weight: 800; }
.intro .ln.em {
  color: #1d4ed8;
  font-weight: 800;
  font-size: clamp(15.5px, 4.8vw, 19.5px);
  line-height: 1.7;
  margin: 4px 0 2px;
}
.intro .hl {
  font-size: clamp(12px, 3.7vw, 15.3px);
  line-height: 1.9;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: .3px;
}
.intro mark {
  background: none;
  color: #1d4ed8;
  font-weight: 900;
  border-bottom: 2px solid #1d4ed8;
  padding: 0 2px;
  font-size: clamp(15.5px, 4.8vw, 19.5px);
}
@media (min-width: 414px) {
  .intro .ln { font-size: 14.7px; }
  .intro .ln.em { font-size: 19.5px; }
  .intro .hl { font-size: 15.3px; }
}

/* ---------- 线路编号圆圈（01~05） ---------- */
.rno {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 0;
  font-size: clamp(13px, 4.2vw, 17.4px);
  /* 默认绿色（2~5），线路 1 单独覆盖 */
  color: rgb(153, 183, 24);
}
.rno-1 { color: rgb(255, 168, 78); }  /* 01 橙/黄调（r=78 g=168 b=255 反推 Pixso bgr，这里按设计稿校准） */

/* ---------- 白色气泡（矩形 1~5） ---------- */
.bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  background: #fff;
  border-radius: 10px;
  padding: clamp(5px, 1.8vw, 8px) clamp(7px, 2.4vw, 10px);
  color: #1a1a1a;
  font-weight: 500;
  font-size: clamp(10.5px, 3.1vw, 13px);
  line-height: 1.45;
  letter-spacing: .2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;
}
.bubble b { color: #c2410c; font-weight: 800; }
.bubble-2 b { color: #1d4ed8; }
.bubble-3 b { color: #0284c7; }
.bubble-4 b { color: #db2777; }
.bubble-5 b { color: #059669; }

.bubble-age {
  display: inline-block;
  margin: 0 5px 2px 0;
  padding: 1px 6px;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 11px);
  color: #fff;
  background: #ffa84e;
  border-radius: 8px;
  letter-spacing: .5px;
  vertical-align: 1px;
}
.bubble-2 .bubble-age { background: #1d4ed8; }
.bubble-3 .bubble-age { background: #0284c7; }
.bubble-4 .bubble-age { background: #db2777; }
.bubble-5 .bubble-age { background: #059669; }
.bubble:active { transform: scale(.99); }

/* 线路编号角标（左上） */
.bubble { overflow: visible; }
.bubble::before {
  content: attr(data-no);
  position: absolute;
  top: -20px; left: -10px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fde047;
  color: #0f172a;
  font-weight: 900;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  border: 2px solid #fff;
  z-index: 2;
  letter-spacing: 0;
}
.bubble-1::before { background: #ffa84e; color: #fff; }
.bubble-2::before { background: #1d4ed8; color: #fff; }
.bubble-3::before { background: #0284c7; color: #fff; }
.bubble-4::before { background: #db2777; color: #fff; }
.bubble-5::before { background: #059669; color: #fff; }

/* 点击提示（右下），5 号气泡太矮，改右侧外挂 */
.bubble::after {
  content: "点击 →";
  position: absolute;
  right: 6px; bottom: 2px;
  font-size: 9px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: .3px;
  animation: tap-hint 1.6s ease-in-out infinite;
  pointer-events: none;
}
.bubble-5::after {
  right: 5px;
  bottom: 30%;
  transform: translateY(50%);
}
@keyframes tap-hint {
  0%,100% { opacity: .55; transform: translateX(0); }
  50%     { opacity: 1;   transform: translateX(3px); }
}
.bubble-5::after {
  animation-name: tap-hint-5;
}
@keyframes tap-hint-5 {
  0%,100% { opacity: .55; transform: translate(0, 50%); }
  50%     { opacity: 1;   transform: translate(2px, 50%); }
}

/* 线路 5 气泡很矮（33px），行高压缩 */
.bubble-5 {
  padding: 2px 8px;
  font-size: clamp(9.5px, 2.85vw, 12px);
  line-height: 1.25;
  -webkit-line-clamp: 2;
}

/* 整条线路的点击热区（覆盖 y 区间，不挡视觉层） */
.route-hit {
  z-index: 1;
  background: transparent;
  border-radius: 14px;
  transition: background .2s ease;
}
.route-hit:active { background: rgba(255,255,255,.18); }
.canvas > .l.img { z-index: 2; pointer-events: none; }
.canvas > .l.bubble { z-index: 3; }

/* 图层 41 半透明（DSL opacity 0.77） */
.op-77 { opacity: .77; }

/* ---------- 文字版横幅（替代 intro-label.png / theme-banner.png） ---------- */
.intro-label,
.theme-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  color: #0f172a;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
}
.intro-label {
  font-size: clamp(22px, 6.8vw, 28px);
}
.theme-banner {
  font-size: clamp(20px, 6.2vw, 26px);
}
.slogan-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: clamp(16px, 4.5vw, 20px);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 1px;
  line-height: 1;
}
.slogan-mini .dash {
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -2px;
}
.slogan-mini em {
  display: inline-block;
  margin: 0 2px;
  padding: 2px 8px;
  font-style: normal;
  color: #fff;
  background: #ff6b9d;
  border-radius: 10px;
  transform: rotate(-6deg);
  box-shadow: 0 2px 0 rgba(0,0,0,.08);
}
.intro-label .hl,
.theme-banner .hl {
  color: #1d4ed8;
  font-weight: 900;
  margin-right: 2px;
  display: inline-block;
  transform-origin: 50% 100%;
  animation: hl-bounce 2.2s ease-in-out infinite;
}
.theme-banner .hl {
  animation-delay: .3s;
  animation-duration: 2.6s;
}

@keyframes hl-bounce {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-5px) rotate(4deg); }
}

/* ---------- 详情页 ---------- */
body.detail { background: #2a2a2a; }
.detail-shell {
  position: relative;
  width: 100%;
  max-width: 414px;
  margin: 0 auto;
  background: #fdeb00;
  overflow: hidden;
}
@media (min-width: 768px) {
  body.detail { background: linear-gradient(135deg, #fce7c8 0%, #ffd6d6 50%, #c8e6ff 100%); }
  .detail-shell {
    margin: 24px auto 88px;
    border-radius: 36px;
    box-shadow: 0 0 0 10px #1a1a1a, 0 0 0 12px #333, 0 30px 60px rgba(0,0,0,.3);
  }
}

.poster-wrap { position: relative; width: 100%; line-height: 0; background: #fdeb00; }
.poster-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity .55s ease;
}
.poster-img.loaded { opacity: 1; }

/* 路线切换底栏（仅详情页） */
.route-switch {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,.08);
  z-index: 50;
}
.route-switch .rs {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: 10px;
  font-size: 11px;
  color: #6b7280;
  font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}
.route-switch .rs:active { transform: scale(.94); }
.route-switch .rs-no {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .5px;
}
.route-switch .rs-name { font-size: 10.5px; letter-spacing: .3px; }
.route-switch .rs-1 .rs-no { color: #ffa84e; }
.route-switch .rs-2 .rs-no { color: #1d4ed8; }
.route-switch .rs-3 .rs-no { color: #0284c7; }
.route-switch .rs-4 .rs-no { color: #db2777; }
.route-switch .rs-5 .rs-no { color: #059669; }
.route-switch .rs.active {
  background: #fdeb00;
  color: #0f172a;
}
.route-switch .rs.active .rs-name { color: #0f172a; }

/* ---------- 浮层控件 ---------- */
.float-back {
  position: fixed;
  top: 12px;
  z-index: 100;
  padding: 6px 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 13px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  transition: transform .2s ease, background .2s ease;
  left: 50%;
  transform: translateX(calc(-50% - 170px));
}
.float-back:active { background: rgba(0,0,0,.75); }
@media (max-width: 767px) {
  .float-back { left: 12px; transform: none; }
  .float-back:active { transform: scale(.93); }
}

/* .fab-top 默认隐藏（滚动超过 400px 才显示）——由 JS 加 .show 控制 */
.fab-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.9);
  transition: opacity .3s ease, transform .3s ease, background .2s ease, box-shadow .2s ease;
}
.fab-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* ---------- 顶部滚动进度条 ---------- */
.scroll-bar {
  position: fixed;
  left: 0; top: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #ff8a3d, #f59e0b, #ef4444);
  z-index: 999;
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(245, 158, 11, .6);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 纯透明度淡入（不覆盖元素自身 transform，用于有 rotate 的元素） */
.reveal-fade { opacity: 0; transition: opacity .7s ease; }
.reveal-fade.visible { opacity: 1; }

/* 错峰进场：同一条路线多个图层 stagger */
.reveal.d1, .reveal-fade.d1 { transition-delay: .05s; }
.reveal.d2, .reveal-fade.d2 { transition-delay: .12s; }
.reveal.d3, .reveal-fade.d3 { transition-delay: .19s; }
.reveal.d4, .reveal-fade.d4 { transition-delay: .26s; }
.reveal.d5, .reveal-fade.d5 { transition-delay: .33s; }

/* ---------- 浮动动画（卡通角色轻微飘动） ---------- */
@keyframes float-y {
  0%,100% { transform: translateY(0) rotate(var(--base-rot, 0deg)); }
  50%     { transform: translateY(-4px) rotate(var(--base-rot, 0deg)); }
}
@keyframes float-x {
  0%,100% { transform: translateX(0) rotate(var(--base-rot, 0deg)); }
  50%     { transform: translateX(3px) rotate(var(--base-rot, 0deg)); }
}
@keyframes wobble {
  0%,100% { transform: rotate(var(--base-rot, 0deg)); }
  50%     { transform: rotate(calc(var(--base-rot, 0deg) + 3deg)); }
}
.float-y { animation: float-y 3.2s ease-in-out infinite; }
.float-x { animation: float-x 4s  ease-in-out infinite; }
.wobble  { animation: wobble  3s  ease-in-out infinite; transform-origin: 50% 100%; }

/* 水平翻转（保留 wobble 动画，镜像方向） */
@keyframes wobble-flip {
  0%,100% { transform: scaleX(-1) rotate(var(--base-rot, 0deg)); }
  50%     { transform: scaleX(-1) rotate(calc(var(--base-rot, 0deg) + 3deg)); }
}
.flip-x.wobble { animation-name: wobble-flip; }
.flip-x:not(.wobble) { transform: scaleX(-1); }

/* 进场动画完成后才启动浮动，避免与 reveal transform 打架 */
.reveal.visible.float-y { animation-delay: .4s; }
.reveal.visible.float-x { animation-delay: .5s; }
.reveal.visible.wobble  { animation-delay: .6s; }

/* ---------- 气泡交互 ---------- */
.bubble {
  transition: transform .2s ease, box-shadow .2s ease;
}
.bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.14);
}
.bubble:active {
  transform: scale(.97);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

/* 气泡缓进（柔和淡入 + 微缩放 + 轻柔呼吸） */
@keyframes bubble-ease-in {
  0%   { transform: translateY(14px) scale(.92); opacity: 0; filter: blur(3px); }
  60%  { transform: translateY(-2px) scale(1.02); opacity: 1; filter: blur(0); }
  100% { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
}
@keyframes bubble-breathe {
  0%,100% { box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
  50%     { box-shadow: 0 6px 18px rgba(29,78,216,.18); }
}
.reveal.visible.bubble {
  animation:
    bubble-ease-in 1.1s cubic-bezier(.22,1,.36,1) both,
    bubble-breathe 3.2s ease-in-out 1.2s infinite;
}
.reveal.visible.bubble-1 { animation-delay: 0s, 1.2s; }
.reveal.visible.bubble-2 { animation-delay: .12s, 1.4s; }
.reveal.visible.bubble-3 { animation-delay: .24s, 1.6s; }
.reveal.visible.bubble-4 { animation-delay: .36s, 1.8s; }
.reveal.visible.bubble-5 { animation-delay: .48s, 2.0s; }

/* ---------- 入场整体轻微淡入 ---------- */
@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.canvas > .l { }
.canvas { animation: page-in .5s ease both; }

/* ---------- CTA 呼吸脉冲 ---------- */
@keyframes cta-pulse {
  0%,100% { box-shadow: 0 2px 8px rgba(138,209,62,.3); }
  50%     { box-shadow: 0 4px 20px rgba(138,209,62,.6); }
}
.foot-cta { animation: cta-pulse 2.5s ease-in-out infinite; }

/* ---------- 标签弹入 ---------- */
@keyframes tag-pop {
  0%   { transform: scale(0) rotate(var(--r,0deg)); opacity: 0; }
  60%  { transform: scale(1.15) rotate(var(--r,0deg)); opacity: 1; }
  100% { transform: scale(1) rotate(var(--r,0deg)); }
}
.day-tag.reveal-fade.visible {
  animation: tag-pop .6s cubic-bezier(.34,1.56,.64,1) both;
}
.day-tag-1.reveal-fade.visible { --r: -15deg; }
.day-tag-2.reveal-fade.visible { --r: 15deg; }

/* ---------- POI 卡片滑入 ---------- */
@keyframes slide-left {
  from { transform: translateX(-30px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes slide-right {
  from { transform: translateX(30px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.poi-title.reveal.visible { animation: slide-right .7s ease both; }
.poi-desc.reveal.visible  { animation: slide-right .7s ease .1s both; }
.poi-kicker.reveal.visible { animation: slide-left .6s ease both; }

/* ========== 详情页画布（设计 375×4140，含餐厅酒店推荐区 680px） ========== */
.canvas-detail {
  aspect-ratio: 375 / 4140;
  background: #F4F9E8;
}
/* 动态路由（id≠1）：在 JS 初始化前就隐藏手写的线路一画布，避免闪现 */
html.route-dynamic #canvasL1 { display: none !important; }

body.detail { background: #F4F9E8; }
body.detail .detail-shell { background: #F4F9E8; }
@media (min-width: 768px) {
  body.detail { background: #F4F9E8; }
}
/* 覆盖 .l 的基准高度：详情页用 4140 计算百分比（仅线路一手写画布） */
.canvas-detail > .l {
  top:    calc(var(--t) / 4140 * 100%);
  height: calc(var(--h) / 4140 * 100%);
}
/* 动态生成的路线画布（2-5）— aspect-ratio 由 JS 内联设置，.l 高度基准使用 CSS 变量 --ch
   此规则写在 .canvas-detail > .l 之后，同优先级下覆盖 /4140 的基准 */
.canvas-l2 > .l, .canvas-l3 > .l, .canvas-l4 > .l, .canvas-l5 > .l {
  top:    calc(var(--t) / var(--ch) * 100%);
  height: calc(var(--h) / var(--ch) * 100%);
}
/* 路线一（手写画布）基准：4220 = copyright 结束 4200 + 底部 20px 留白 */
.canvas-l1 {
  aspect-ratio: 375 / 4220;
}
.canvas-l1 > .l {
  top:    calc(var(--t) / 4220 * 100%);
  height: calc(var(--h) / 4220 * 100%);
}

/* 顶部撕纸条 image.png CSS 复现 */
.top-strip {
  background: #a3d66f;
  clip-path: polygon(0 0, 100% 0, 100% 78%,
    96% 100%, 90% 82%, 82% 96%, 74% 80%, 64% 94%,
    54% 78%, 44% 92%, 34% 80%, 24% 94%, 14% 82%, 6% 96%, 0 82%);
  display: flex; justify-content: flex-end; align-items: flex-start;
  padding: 6px 16px 0 0;
  z-index: 1;
}
.top-strip span {
  font-family: 'Arial', sans-serif;
  font-size: 9px; letter-spacing: 1px;
  color: #333; opacity: .6;
}

/* 来自：小绿标签 */
.tag-from {
  display: flex; align-items: center; justify-content: flex-end;
  background: #8ad13e; color: #ffffff;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 0 8px;
  border-radius: 0;
  transform: rotate(20deg);
  transform-origin: center;
  box-shadow: 1px 1px 0 rgba(0,0,0,.2);
  letter-spacing: 1px;
  z-index: 6;
  text-align: right;
}

/* 副标语包装：内部两个徽章按文字宽度撑开，位于 block004 之上 */
.tag-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 10px;
  z-index: 5;
  pointer-events: none;
}
.tag-main {
  display: inline-flex; flex-direction: column; align-items: center;
  width: auto; max-width: 75%;
  background: #ffffff; color: #8ad13e;
  border: 1.5px solid #000;
  font-family: 'ZCOOL KuaiLe', 'PingFang SC', sans-serif;
  border-radius: 4px;
  transform: rotate(20deg);
  transform-origin: center;
  padding: 4px 14px;
  box-shadow: 2px 2px 0 rgba(0,0,0,.2);
  white-space: nowrap;
}
.tag-main span { font-size: clamp(13px, 3.7vw, 16px); line-height: 1.2; letter-spacing: .5px; }
.tag-main small { font-size: clamp(8.5px, 2.3vw, 10px); letter-spacing: 1.5px; opacity: .85; margin-top: 2px; color: #8ad13e; }

/* 英文副标语：位于 tag-main 外侧，与其同角度 */
.tag-en {
  display: flex; align-items: center;
  font-family: 'Arial', sans-serif;
  font-size: clamp(14px, 4vw, 18px);
  font-weight: 900;
  letter-spacing: 0;
  transform: rotate(20deg);
  transform-origin: left center;
  z-index: 5;
  white-space: nowrap;
  font-style: normal;
}
.tag-en i { font-style: normal; }
.tag-en .g { color: #8ad13e; }
.tag-en .b { color: #1f517b; }
.tag-en .w { color: #ffffff; text-shadow: 1px 1px 0 rgba(0,0,0,.25); }

.tag-reject {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto;
  background: #ff5f7e; color: #ffffff;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: clamp(14px, 4vw, 17px);
  border-radius: 4px;
  transform: rotate(-25deg);
  transform-origin: center;
  box-shadow: 2px 2px 0 rgba(0,0,0,.2);
  padding: 4px 12px;
  white-space: nowrap;
  z-index: 7;
  letter-spacing: 1px;
}

/* 年龄/时长：灰色小字（位于主视觉下方） */
.info-age {
  display: flex; align-items: center; justify-content: center;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: clamp(9px, 2.4vw, 10.5px);
  color: #7c2d12;
  background: #ffffff;
  border-radius: 999px;
  padding: 0 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  white-space: nowrap;
  z-index: 6;
  letter-spacing: .5px;
  transform: rotate(-30deg);
  transform-origin: center;
}

/* 矩形 13：橘色胶带横幅（主视觉底部） */
.rect-13 {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fefefe;
  color: #c68b60;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 16px;
  letter-spacing: .5px;
  border-radius: 3px;
  transform: rotate(25deg);
  transform-origin: center;
  box-shadow: 2px 2px 0 rgba(0,0,0,.15);
  z-index: 4;
  padding: 4px 8px;
  line-height: 1.35;
  text-align: center;
}

/* 四段口号：粉底 + 棕字 ZCOOL */
.slogan-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px;
  align-content: center; justify-items: center;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: clamp(12px, 3.3vw, 14px);
  color: #c2410c;
}

/* block005 绿色区 文字：不费妈 / 指南 */
.block005-title {
  font-family: 'Alimama DongFangDaKai', 'ZCOOL KuaiLe', 'PingFang SC', sans-serif;
  font-size: 28px;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: 3px;
  text-align: center;
}

/* 不费妈指南：深棕手写（沉在 line1-block005 的米色气泡里） */
.guide-title {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: clamp(18px, 5vw, 22px);
  color: #7c2d12; line-height: 1.15;
  text-align: center;
  transform: rotate(-2deg);
}
.guide-list {
  margin: 0; padding: 0 0 0 1.2em;
  font-size: 14px;
  line-height: 1.65; color: #ffffff;
  list-style: decimal;
  z-index: 6;
}
.guide-list li { margin-bottom: 1px; }

/* DAY 胶片上的红标签 */
.day-tag {
  display: flex; align-items: center; justify-content: center;
  background: #ff5f7e; color: #ffffff;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 16px;
  letter-spacing: 3px;
  border-radius: 0;
  transform: rotate(-3deg);
  box-shadow: 1px 1px 0 rgba(0,0,0,.2);
}
.day-tag-1 { transform: rotate(-15deg); }
.day-tag-2 { transform: rotate(15deg); }
.day-tag-dark {
  background: #000; color: #fff;
  font-size: 24px; border-radius: 0;
}

/* 01/02 Part */
.day-part {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #1a1a1a;
  font-family: 'ZCOOL KuaiLe', sans-serif;
}
.day-part b { font-size: clamp(52px, 15vw, 64px); line-height: 1; color: #b45309; }
.day-part small { font-size: clamp(20px, 5vw, 22px); letter-spacing: 1px; color: #6b7280; }
.day-part-alt b { color: #b45309; }

/* DAY TWO 大标题 */
/* DAY TWO 绿色背景区 */
.day-two-bg {
  background: #8AD13E;
  border-radius: 0;
}

.day-two-title {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center; gap: 4px 10px;
  font-family: 'Alimama DongFangDaKai', 'ZCOOL KuaiLe', sans-serif;
  color: #0f172a;
}
.day-two-title .dd {
  grid-column: 1; font-size: clamp(30px, 8.5vw, 38px);
  background: #0f172a; color: #fff; padding: 2px 10px;
  border-radius: 4px; transform: rotate(-3deg);
  justify-self: start; letter-spacing: 1px;
}
.day-two-title .k {
  grid-column: 2; font-size: clamp(12px, 3.2vw, 14px);
  background: #e63946; color: #fff; padding: 2px 8px;
  border-radius: 3px; font-style: normal; justify-self: start;
  transform: rotate(-2deg);
}
.day-two-title .num {
  grid-column: 3; grid-row: 1 / span 2;
  font-size: clamp(34px, 9.5vw, 42px); color: #b45309;
  align-self: center;
}
.day-two-title small {
  grid-column: 3; grid-row: 2;
  font-size: clamp(10px, 2.6vw, 11px);
  color: #6b7280; align-self: start; letter-spacing: 1px;
}

/* DAY ONE 白色大字（叠在 day-block 黑胶带上） */
.day-one-title {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Alimama DongFangDaKai', 'ZCOOL KuaiLe', sans-serif;
  color: #fff;
  line-height: 1; letter-spacing: 2px;
  transform: rotate(-2deg);
}
.day-one-title span { font-size: clamp(56px, 16vw, 68px); }
.day-one-title span:nth-child(1) { transform: translateY(-17px); }
.day-one-title span:nth-child(2) {
  font-size: clamp(40px, 11vw, 48px);
  align-self: flex-end;
  margin-right: -14px;
  transform: translateY(-18px);
}

/* POI 名牌（叠在 location.png 棕色飘带上，所以透明） */
.poi-banner {
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  color: #fff;
  font-family: 'Alimama DongFangDaKai', 'ZCOOL KuaiLe', sans-serif;
  font-size: clamp(22px, 6.5vw, 28px);
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 rgba(0,0,0,.25);
  transform: rotate(-1deg);
}
/* POI 实景图：圆角裁切，位于 card.png 下层（与线路 1 手写版一致） */
.poi-photo {
  border-radius: 12px;
  object-fit: cover;
}

.poi-kicker {
  margin: 0;
  font-size: clamp(11px, 3.1vw, 12.5px);
  color: #ffffff; line-height: 1.2;
  text-align: center;
  letter-spacing: .3px;
  opacity: .92;
  z-index: 3;
}
.poi-title {
  margin: 0; font-family: 'Alimama DongFangDaKai', 'ZCOOL KuaiLe', sans-serif;
  font-size: clamp(14.5px, 4vw, 16px);
  font-weight: 700;
  color: #ffffff; line-height: 1.25;
  text-align: center;
  letter-spacing: .3px;
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3;
}
.poi-desc {
  margin: 0;
  font-size: clamp(12.5px, 3.6vw, 14px);
  line-height: 1.58;
  color: #5c2e1f;
  text-align: justify;
  letter-spacing: .2px;
  z-index: 3;
}
.poi-tips {
  margin: 0;
  background: transparent;
  border-left: 3px solid #e63946;
  padding: 6px 8px; border-radius: 4px;
  font-size: clamp(9.5px, 3.6vw, 14px);
  line-height: 1.55; color: #ffffff;
}

/* 坐标导航按钮 */
.coord-link {
  display: block; cursor: pointer; z-index: 5;
  animation: coord-pulse 2s ease-in-out infinite;
}
.coord-link img { display: block; }
@keyframes coord-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 6px rgba(255,95,126,.6)); }
}
/* 坐标提示气泡 */
.coord-link::after {
  content: '点击导航';
  position: absolute;
  bottom: 110%; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 10px; line-height: 1;
  padding: 4px 8px; border-radius: 10px;
  pointer-events: none;
}

/* 导航确认弹窗 */
.nav-modal-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  animation: nav-fade-in .2s;
}
@keyframes nav-fade-in { from { opacity: 0; } to { opacity: 1; } }
.nav-modal {
  width: 290px; background: #fff; border-radius: 16px;
  overflow: hidden; text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  animation: nav-pop .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes nav-pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.nav-modal-body { padding: 28px 20px 18px; }
.nav-modal-icon { font-size: 36px; margin-bottom: 10px; }
.nav-modal-title { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 6px; }
.nav-modal-sub { font-size: 13px; color: #888; line-height: 1.5; }
/* 地图选择列表 */
.nav-map-list {
  display: flex; flex-direction: column;
  border-top: 1px solid #eee;
}
.nav-map-btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%; border: none; background: none;
  padding: 14px 24px; font-size: 15px; color: #333;
  cursor: pointer; text-align: left;
  border-bottom: 1px solid #f5f5f5;
}
.nav-map-btn:active { background: #f7f7f7; }
.nav-map-btn:last-child { border-bottom: none; }

.nav-modal-btns { display: flex; border-top: 1px solid #eee; }
.nav-modal-btns button {
  flex: 1; border: none; background: none; padding: 14px 0;
  font-size: 15px; cursor: pointer;
}
.nav-modal-btns button:first-child { color: #999; }
.nav-modal-btns button:last-child { color: #07c160; font-weight: 700; border-left: 1px solid #eee; }

/* ======== 右侧浮动操作按钮（客服 / 收藏 / 分享） ======== */
.fab-group {
  position: fixed;
  right: 12px;
  bottom: 90px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.fab {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  color: #1f2937;
  box-shadow:
    0 6px 18px rgba(31,41,55,.18),
    inset 0 1px 0 rgba(255,255,255,.7);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fab { background: rgba(255,255,255,.9); }
}
.fab:active { transform: scale(.92); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.fab svg { width: 20px; height: 20px; }
.fab span {
  font-size: 9px;
  line-height: 1;
  margin-top: 2px;
  color: inherit;
}
.fab-fav { color: #ef4444; }
.fab-fav .icon-on { display: none; }
.fab-fav.active .icon-off { display: none; }
.fab-fav.active .icon-on { display: block; }
.fab-fav.active {
  background: rgba(239,68,68,.75);
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.fab-share { color: #10b981; }

/* ======== 简易 toast ======== */
.qlg-toast {
  position: fixed;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%) scale(.9);
  background: rgba(0,0,0,.8);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.qlg-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ======== 分享 / 收藏 共用遮罩 ======== */
.share-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: share-mask-in .25s ease both;
}
@keyframes share-mask-in { from { opacity: 0 } to { opacity: 1 } }

/* ======== 分享卡片（单一二维码，呼应整体设计） ======== */
.share-card {
  position: relative;
  width: min(86vw, 340px);
  padding: 22px 22px 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0%, #fff6c2 0%, transparent 55%),
    radial-gradient(circle at 100% 100%, #ffd6e7 0%, transparent 55%),
    #fdeb00;
  box-shadow: 0 24px 48px rgba(15,23,42,.28), 0 0 0 6px rgba(255,255,255,.35);
  text-align: center;
  animation: share-card-pop .35s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes share-card-pop {
  0% { opacity: 0; transform: translateY(30px) scale(.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.share-card-close {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px;
  border: none; border-radius: 50%;
  background: rgba(15,23,42,.08);
  color: #1f2937; font-size: 20px; line-height: 1;
  cursor: pointer;
}
.share-card-close:active { background: rgba(15,23,42,.15); }

.share-card-brand {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 22px;
  color: #0f172a;
  letter-spacing: 2px;
}
.share-card-slogan {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 14px;
  color: #334155;
  margin: 2px 0 16px;
}
.share-card-slogan em {
  display: inline-block;
  margin: 0 3px;
  padding: 1px 7px;
  font-style: normal;
  color: #fff;
  background: #ff6b9d;
  border-radius: 8px;
  transform: rotate(-6deg);
}

.share-card-qr-wrap {
  position: relative;
  display: inline-block;
  padding: 0;
  background: transparent;
  border-radius: 22px;
  box-shadow: 0 10px 22px rgba(15,23,42,.14);
}
.share-card-qr {
  display: block;
  width: 220px; height: 220px;
  border-radius: 22px;
  background: #fff;
}
.share-card-qr-logo {
  position: absolute;
  left: 50%; top: 50%;
  width: 48px; height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(15,23,42,.12);
  object-fit: contain;
  pointer-events: none;
}
.share-card-qr-corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 3px solid #1d4ed8;
  border-radius: 4px;
}
.share-card-qr-corner.tl { top: 4px; left: 4px; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.share-card-qr-corner.tr { top: 4px; right: 4px; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
.share-card-qr-corner.bl { bottom: 4px; left: 4px; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.share-card-qr-corner.br { bottom: 4px; right: 4px; border-left: none; border-top: none; border-bottom-right-radius: 8px; }

.share-card-tip {
  margin: 14px 0 6px;
  font-size: 12px;
  color: #64748b;
}
.share-card-save {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 8px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(239,68,68,.3);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.share-card-save:active { transform: scale(.96); box-shadow: 0 2px 6px rgba(239,68,68,.3); }
.share-card-save:disabled { opacity: .6; cursor: wait; }
.share-card-page {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 15px;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
}
.share-card-wx {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: rgba(255,255,255,.55);
  border: 1px dashed #10b981;
  border-radius: 10px;
  font-size: 12.5px;
  color: #065f46;
  line-height: 1.45;
}

/* ======== 收藏卡片 ======== */
.fav-card {
  position: relative;
  width: min(90vw, 360px);
  max-height: 80vh;
  padding: 20px 18px 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(15,23,42,.28);
  display: flex;
  flex-direction: column;
  animation: share-card-pop .35s cubic-bezier(.34,1.56,.64,1) both;
}
.fav-card-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(15,23,42,.12);
  margin-bottom: 10px;
}
.fav-card-icon { color: #ef4444; font-size: 20px; }
.fav-card-title {
  flex: 1;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 18px;
  color: #0f172a;
}
.fav-card-count {
  background: #fef3c7; color: #b45309;
  padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}

.fav-card-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -6px 12px;
  padding: 0 6px;
}
.fav-empty {
  padding: 28px 8px;
  text-align: center;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
}
.fav-empty span { font-size: 12px; color: #94a3b8; }

.fav-list { list-style: none; padding: 0; margin: 0; }
.fav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 10px;
  border-radius: 12px;
  background: #f9fafb;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background .15s ease;
}
.fav-item:active { background: #f1f5f9; }
.fav-item.is-current { background: #fef9c3; }
.fav-item-title {
  flex: 1;
  font-size: 13.5px;
  color: #0f172a;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.fav-item-badge {
  background: #fbbf24; color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 8px;
  flex-shrink: 0;
}
.fav-item-del {
  width: 24px; height: 24px;
  border: none; border-radius: 50%;
  background: rgba(15,23,42,.08);
  color: #64748b;
  font-size: 16px; line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.fav-item-del:active { background: #ef4444; color: #fff; }

.fav-toggle-btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  background: #0f172a; color: #fff;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 15px; letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15,23,42,.2);
}
.fav-toggle-btn:active { transform: scale(.97); }
.fav-toggle-btn.is-on {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

/* ======== 餐厅 & 酒店推荐区 ======== */
.rec-section-title {
  display: flex; align-items: center; gap: 6px;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: clamp(15px, 4vw, 18px); color: #1f2937;
  margin: 0; padding: 0 4px;
}
.rec-section-title i {
  font-style: normal; font-size: 20px;
}
.rec-section-title::after {
  content: ''; flex: 1; height: 2px;
  background: linear-gradient(90deg, #e63946 0%, transparent 100%);
  margin-left: 6px;
}

.rec-card {
  display: flex; gap: 10px;
  background: #fff; border-radius: 14px;
  padding: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.07);
  overflow: hidden;
}
.rec-card-img {
  width: 100px; min-height: 80px;
  border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.rec-card-info {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.rec-card-name {
  font-size: 14px; font-weight: 700; color: #1f2937; margin: 0;
}
.rec-tag {
  display: inline-block; align-self: flex-start;
  background: #fff0f5; color: #e63946;
  font-size: 10px; padding: 2px 8px; border-radius: 99px;
}
.rec-card-desc {
  font-size: 11px; color: #6b7280; line-height: 1.4; margin: 0;
}
.rec-btns {
  display: flex; gap: 8px; margin-top: 4px;
}
.rec-btn {
  display: inline-flex; align-items: center; gap: 3px;
  border: none; background: #f0fdf4; color: #16a34a;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 99px; cursor: pointer;
}
.rec-btn:active { transform: scale(.95); }
.rec-btn--phone {
  background: #eff6ff; color: #2563eb;
}

.group-box {
  background: #fff; border: 2px dashed #e63946;
  border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.group-box h4 {
  margin: 0 0 6px; font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: clamp(14px, 3.8vw, 16px); color: #c2410c;
}
.group-box p {
  margin: 0 0 4px; font-size: clamp(10.5px, 6vw, 16px);
  line-height: 1.6; color: #1f2937;
}

.foot-note {
  margin: 0; font-size: clamp(9px, 3vw, 16px);
  line-height: 1.55; color: #6b7280; text-align: justify;
}
.foot-cta {
  display: flex; align-items: center; justify-content: center;
  background: #0f172a; color: #fff;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: clamp(12px, 3.3vw, 14px);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(15,23,42,.25);
}
.foot-cta:active { transform: scale(.96); }

/* ---------- 全量 group-box（含提示/CTA/二维码） ---------- */
/* 用 !important 覆盖 .canvas-detail > .l 的百分比高度，让卡片随内容自然撑开 */
.group-box-full {
  height: auto !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 14px 16px 18px;
}
.group-box-full .foot-note {
  margin: 12px 0 0;
  font-size: clamp(9.5px, 3vw, 12px);
  line-height: 1.55;
  color: #6b7280;
  text-align: justify;
}
.group-box-full .foot-cta {
  align-self: center;
  width: 75%;
  max-width: 220px;
  height: 36px;
  margin: 14px 0 0;
  padding: 0 14px;
  text-decoration: none;
}
.group-box-full .foot-qr {
  display: block;
  width: 100px;
  height: 100px;
  margin: 12px auto 0;
  object-fit: contain;
}

/* ---------- 底部版权 ---------- */
.foot-copyright {
  margin: 0;
  text-align: center;
  font-size: clamp(10px, 2.8vw, 12px);
  color: #9ca3af;
  letter-spacing: 1px;
}
/* 首页版权（画布内 .l 图层，跟随滚动） */
body.home { padding-bottom: 70px; }
.home-copyright {
  margin: 0;
  text-align: center;
  font-size: clamp(10px, 2.8vw, 12px);
  color: #7a6a1e;
  letter-spacing: 1px;
  background: transparent;
}

/* 底部导航栏（沿用详情页 .route-switch 风格） */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 4px;
  padding: 6px 10px calc(8px + env(safe-area-inset-bottom, 0));
  background: #fff;
  border-top: 1px solid #ececec;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  z-index: 100;
}
.bottom-nav .bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: 10px;
  font-size: 11px;
  color: #6b7280;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.bottom-nav .bn-item:active { transform: scale(.94); }
.bottom-nav .bn-no {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .5px;
  line-height: 1;
}
.bottom-nav .bn-label {
  font-size: 11.5px;
  letter-spacing: .3px;
  line-height: 1;
  white-space: nowrap;
}
.bottom-nav .bn-1 .bn-no { color: #e53935; }
.bottom-nav .bn-2 .bn-no { color: #1d4ed8; }
.bottom-nav .bn-3 .bn-no { color: #0284c7; }
.bottom-nav .bn-4 .bn-no { color: #db2777; }
.bottom-nav .bn-5 .bn-no { color: #059669; }
.bottom-nav .bn-item.active {
  background: #fdeb00;
  color: #0f172a;
}
.bottom-nav .bn-item.active .bn-label { color: #0f172a; }

/* ---------- 子页占位（好玩/线路/吃/住） ---------- */
body.page-sub { background: #fdeb00; }
.canvas.canvas-placeholder {
  aspect-ratio: auto;
  min-height: calc(100vh - 76px);
  padding: 28px 24px 40px;
  box-sizing: border-box;
  background: #fdeb00;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible;
}

/* 子页顶部品牌区 */
.page-hero {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 4px 0 84px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.page-hero .hero-logo {
  width: 86%;
  max-width: 280px;
  height: auto;
  opacity: 0;
  animation: hero-logo-in .7s .05s ease-out forwards;
}
.page-hero .hero-banner {
  width: 100%;
  max-width: 340px;
  height: auto;
  transform-origin: center center;
  opacity: 0;
  animation:
    hero-banner-in .8s .25s cubic-bezier(.34,1.56,.64,1) forwards,
    hero-banner-sway 5.5s .9s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.08));
}
.page-hero .hero-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  animation: hero-deco-in .7s .6s ease-out forwards;
}
.page-hero .hero-deco-l {
  left: -6px;
  bottom: -8px;
  width: 78px;
}
.page-hero .hero-deco-r {
  right: -6px;
  bottom: -6px;
  width: 82px;
  animation-delay: .8s;
}
.page-hero .hero-deco-top {
  top: -12px;
  right: -10px;
  width: 58px;
  opacity: .92;
  animation-delay: .4s;
}

@keyframes hero-logo-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-banner-in {
  0%   { opacity: 0; transform: scale(.6) rotate(-8deg); }
  60%  { opacity: 1; transform: scale(1.06) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes hero-banner-sway {
  0%,100% { transform: rotate(0deg); }
  50%     { transform: rotate(-1.5deg); }
}
@keyframes hero-deco-in {
  from { opacity: 0; transform: translateY(18px) scale(.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.page-hero .spin-slow {
  animation: hero-deco-in .7s .4s ease-out forwards, spin-slow 14s 1.1s linear infinite;
  transform-origin: 50% 50%;
}
.page-hero .float-y {
  animation: hero-deco-in .7s .6s ease-out forwards, float-y 3.2s 1.3s ease-in-out infinite;
}
.page-hero .float-x {
  animation: hero-deco-in .7s .8s ease-out forwards, float-x 4s 1.5s ease-in-out infinite;
}
.page-hero .wobble {
  animation: hero-deco-in .7s .6s ease-out forwards, wobble 3s 1.3s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.sub-title {
  margin: 0 0 8px;
  font-family: 'ZCOOL KuaiLe', 'PingFang SC', system-ui, sans-serif;
  font-size: clamp(28px, 7.5vw, 36px);
  color: #1a1a1a;
  letter-spacing: 2px;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.sub-title-key {
  display: inline-block;
  font-size: 1.85em;
  line-height: 1;
  color: #e11d48;
  margin: 0 4px;
  transform-origin: 50% 90%;
  text-shadow:
    2px 2px 0 #fff,
    -2px -2px 0 #fff,
    3px 3px 0 rgba(0,0,0,0.1);
  animation: sub-title-sway 1.8s ease-in-out infinite;
}
body.page-sub .canvas-placeholder:has(.sub-title-key) .sub-title {
  /* 给大字腾出上下空间 */
  padding: 10px 0;
}
/* 吃 / 住 用不同的强调色 */
.page-sub[data-page="eat"] .sub-title-key,
.sub-title-key.key-eat   { color: #e11d48; }
.page-sub[data-page="stay"] .sub-title-key,
.sub-title-key.key-stay  { color: #059669; }
.page-sub[data-page="fun"] .sub-title-key,
.sub-title-key.key-fun   { color: #1d4ed8; }

@keyframes sub-title-sway {
  0%,100% { transform: rotate(-6deg) translateY(0); }
  25%     { transform: rotate(4deg)  translateY(-2px); }
  50%     { transform: rotate(-3deg) translateY(0); }
  75%     { transform: rotate(5deg)  translateY(-2px); }
}
.sub-kicker {
  margin: 0 0 22px;
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 700;
  letter-spacing: 3px;
  color: #e53935;
}
.sub-desc {
  margin: 0 0 28px;
  max-width: 320px;
  font-size: clamp(13px, 3.8vw, 15px);
  line-height: 1.8;
  color: #374151;
}
.sub-route-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}
.sub-route {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #1a1a1a;
  transition: transform .15s ease;
}
.sub-route:active { transform: scale(.97); }
.sub-route .sr-no {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
}
.sub-route .sr-name {
  font-family: 'ZCOOL KuaiLe', 'PingFang SC', system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
}
.sub-route.rs-1 .sr-no { color: #e53935; }
.sub-route.rs-2 .sr-no { color: #1d4ed8; }
.sub-route.rs-3 .sr-no { color: #0284c7; }
.sub-route.rs-4 .sr-no { color: #db2777; }
.sub-route.rs-5 .sr-no { color: #059669; }

/* ---------- 子页：内容区（吃 / 住 通用） ---------- */
.place-section {
  max-width: 414px;
  margin: 0 auto;
  padding: 24px 18px 40px;
  background: transparent;
  position: relative;
  z-index: 2;
}

.place-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 18px;
  border-bottom: 1px dashed #fde68a;
  margin-bottom: 18px;
}
.place-section-head .psh-no {
  font-size: 34px;
  font-weight: 900;
  color: #db2777;
  line-height: 1;
  letter-spacing: 1px;
}
.place-section-head .psh-no-alt { color: #059669; }
.place-section-head .psh-no-fun { color: #1d4ed8; }
.place-section-head .psh-main { flex: 1; }
.place-section-head .psh-title {
  margin: 0 0 4px;
  font-family: 'ZCOOL KuaiLe', 'PingFang SC', system-ui, sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  color: #1a1a1a;
}
.place-section-head .psh-sub {
  margin: 0;
  font-size: 11px;
  letter-spacing: 2px;
  color: #9ca3af;
  font-weight: 700;
}

.place-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.place-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fffdf5;
  border: 1px solid #fde68a;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.place-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
}
.place-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.place-cat {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: #1a1a1a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.place-cat.cat-chinese { background: #c2410c; }
.place-cat.cat-family  { background: #db2777; }
.place-cat.cat-fine    { background: #1d4ed8; }
.place-cat.cat-fusion  { background: #7c3aed; }
.place-cat.cat-cafe    { background: #78350f; }
.place-cat.cat-resort  { background: #059669; }
.place-cat.cat-villa   { background: #0284c7; }
.place-cat.cat-view    { background: #16a34a; }
.place-cat.cat-park    { background: #f97316; }
.place-cat.cat-tech    { background: #1d4ed8; }
.place-cat.cat-nature  { background: #16a34a; }
.place-cat.cat-art     { background: #a855f7; }
.place-cat.cat-study   { background: #0ea5e9; }
.place-cat.cat-culture { background: #b45309; }

.place-body {
  padding: 14px 16px 16px;
}
.place-name {
  margin: 0 0 6px;
  font-family: 'ZCOOL KuaiLe', 'PingFang SC', system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: 1.5px;
  color: #1a1a1a;
}
.place-addr {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #9ca3af;
  letter-spacing: .3px;
}
.place-addr::before {
  content: '📍 ';
  margin-right: 2px;
}
.place-desc {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: #4b5563;
}
.place-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.place-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 999px;
  letter-spacing: .5px;
}
.place-foot-note {
  margin: 20px 4px 0;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.7;
  color: #78350f;
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
}

.place-nav-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #1a1a1a;
  background: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(251,191,36,0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.place-nav-btn:active {
  transform: scale(.97);
  box-shadow: 0 2px 6px rgba(251,191,36,0.25);
}
.place-nav-btn .pnb-icon {
  font-size: 15px;
  line-height: 1;
}
.place-nav-btn .pnb-text {
  font-family: 'ZCOOL KuaiLe', 'PingFang SC', system-ui, sans-serif;
}

/* 当占位画布后面还接了内容区时，收短为仅 hero 高度 */
.canvas.canvas-placeholder:has(+ .place-section) {
  min-height: auto;
  padding: 28px 24px 40px;
}

/* ========== 首页 Hub 门户（index.html）========== */
body.page-hub .sub-title-key.key-hub { color: #c2410c; }

.canvas.canvas-placeholder:has(+ .hub-manifesto) {
  min-height: auto;
  padding: 28px 24px 24px;
}

.hub-manifesto {
  margin: 0 auto;
  padding: 8px 22px 22px;
  max-width: 414px;
  text-align: center;
}
.hub-manifesto .hm-lead {
  margin: 0 0 6px;
  font-size: clamp(13px, 3.8vw, 15.5px);
  line-height: 1.85;
  color: #1f2937;
}
.hub-manifesto .hm-lead b { color: #1d4ed8; font-weight: 800; }
.hub-manifesto .hm-pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0;
  list-style: none;
  padding: 0;
}
.hub-manifesto .hm-pillars li {
  padding: 4px 12px;
  border-radius: 999px;
  background: #fef3c7;
  font-family: 'ZCOOL KuaiLe', 'PingFang SC', system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: #78350f;
}
.hub-manifesto .hm-slogan {
  margin: 14px 0 0;
  font-family: 'ZCOOL KuaiLe', 'PingFang SC', system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  color: #0f172a;
}
.hub-manifesto .hm-slogan em {
  display: inline-block;
  margin: 0 2px;
  padding: 2px 8px;
  background: #fdeb00;
  transform: rotate(-6deg);
  font-style: normal;
}

/* Hub 入口卡片 */
.hub-portals { padding-bottom: 20px; }

.portal-list {
  list-style: none;
  margin: 0;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.portal-card {
  background: #fffdf5;
  border: 1px solid #fde68a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.portal-card:active { transform: scale(0.99); box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.portal-card > a {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
}
.portal-cover {
  position: relative;
  width: 38%;
  min-height: 140px;
  flex-shrink: 0;
  overflow: hidden;
}
.portal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portal-no {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 10px;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
  font-family: 'ZCOOL KuaiLe', 'PingFang SC', system-ui, sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1px;
}
.portal-body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.portal-name {
  margin: 0 0 8px;
  font-family: 'ZCOOL KuaiLe', 'PingFang SC', system-ui, sans-serif;
  font-size: 19px;
  letter-spacing: 1.5px;
  color: #0f172a;
  line-height: 1.1;
}
.portal-name small {
  display: block;
  font-family: inherit;
  font-size: 10px;
  color: #94a3b8;
  letter-spacing: 2px;
  margin-top: 3px;
  font-weight: 400;
}
.portal-desc {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #475569;
}
.portal-cta {
  align-self: flex-start;
  padding: 3px 12px;
  background: #fdeb00;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.portal-fun .portal-no    { color: #1d4ed8; }
.portal-routes .portal-no { color: #c2410c; }
.portal-eat .portal-no    { color: #e11d48; }
.portal-stay .portal-no   { color: #059669; }

.home-copyright-flow {
  text-align: center;
  margin: 16px 0 0;
  padding: 22px 0 calc(90px + env(safe-area-inset-bottom, 0));
  font-size: 12px;
  color: #7a6a1e;
  letter-spacing: 1px;
}
