/*
  ==============================
  一、CSS 样式区
  ==============================
  CSS 负责“长什么样”：颜色、字体、卡片、地图、按钮、底部导航等。

  你可以先重点看：
  1. :root              统一管理颜色、圆角、阴影等全局变量
  2. .view              控制不同页面的显示/隐藏
  3. .hero              首页顶部大标题区域
  4. .map-shell         地图区域
  5. .bottom-nav        底部导航栏
  bg 页面总背景；paper 首页卡片背景；card 各种信息卡片背景；text 主要文字颜色；muted 次要文字颜色；
  line 分割线颜色；brand 品牌色；brand-2 品牌强调色；orange 购物暖橙；green 休闲绿色；blue 服务蓝色；
  brown 记忆棕红；purple 扩展紫；shadow 强阴影； shadow-soft：轻阴影；radius 圆角；
  safe-bottom 适配 iPhone 底部安全区域（防止底部导航被 iPhone 手势条挡住）。
  font-family：字体列表，逗号分隔。-apple-system 是苹果系统默认字体，BlinkMacSystemFont 是 Chrome 浏览器在 Mac 上的默认字体，Segoe UI 是 Windows 系统默认字体，PingFang SC、Hiragino Sans GB、Microsoft YaHei 都是常见的中文字体。

  如果只是改点位、电话、简介，一般不用动 CSS，主要改下方 JS 里的 POINTS / CONTACTS。

*/

:root {
  --bg: #fff8ef; 
  --paper: #fffdf8;
  --card: rgba(255,255,255,.92);
  --text: #37281e;
  --muted: #8d7c70;
  --line: rgba(139, 95, 66, .14);
  --brand: #c7431f;
  --brand-2: #f2672a;
  --orange: #f59d32;
  --green: #78aa63;
  --blue: #5b91ca;
  --brown: #a85e48;
  --purple: #8764d9;
  --shadow: 0 16px 40px rgba(110, 76, 49, .14);
  --shadow-soft: 0 8px 22px rgba(110, 76, 49, .10);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
} 

/*
  box-sizing: border-box 的作用：
  让元素的 width 包含 padding 和 border，布局时更直观。
  对初学者来说，可以理解为“宽度更好算”，这个计算方式就是按照由外往内计算的，明确了width之后就会向内作减法；
  。
*/
* { box-sizing: border-box; }
/*
  页面真正显示出来的内容；
  min-height: 100% 确保内容区至少占满整个屏幕高度，避免内容过少时页面顶部出现空白；
  100vh应该是更加稳妥的选择；
  背景是由css画出来的：
  第一层：左上角一团浅橙色光晕 在15% 4%位置，半径为28%透明度，颜色是rgba(255, 218, 169, .38)，向外渐变为透明
  第二层：右上角一团浅绿色光晕
  第三层：从上到下的米白渐变底色
  linear-graient是线性渐变；color整个网页默认文字用--text变量，也就是#37281e这个深棕色；
  html,body这里的意思是并列选择的意思 html和body都应用这些样式
  html中一定有

*/
html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 15% 4%, rgba(255, 218, 169, .38), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(167, 204, 156, .22), transparent 24%),
    linear-gradient(180deg, #fff7e9 0%, #fffaf2 45%, #fdf6ec 100%);
  color: var(--text);
}



/*
  -webkit-font-smoothing: antialiased; # 在 WebKit 内核的浏览器（如 Safari 和 Chrome）中启用抗锯齿字体渲染，使字体边缘更平滑。
  antialiased 可以理解为“抗锯齿”。
  text-rendering: optimizeLegibility; 启用一些字体排版优化，比如字距、连字

  button,input：所有按钮和输入框，都继承父元素的字体。

*/
body {
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


button, input { font-family: inherit; }

/*
  .app 是整个手机 H5 的外壳。为了在电脑网页端看起来合理，让底部导航、地图、列表都放在一个页面里面。
  max-width: 430px 表示即使在电脑上打开，也会保持接近手机屏幕的宽度。
  .是一个class选择器，表示HTML中class属性包含app的元素；position: relative 让它成为一个定位上下文，方便内部绝对定位的元素（比如首页头图、地图点位信息卡片）以它为参考进行定位；overflow: hidden 隐藏超出 app 边界的部分，保持界面整洁；box-shadow 给 app 添加一个细微的边框阴影，让它在白色背景上更有层次感。
  .app理解为手机里的整个小应用
  relaticve定位：元素相对于其正常位置进行定位，可以使用top、right、bottom、left属性来调整位置，但不会脱离文档流。
  app成为内部绝对定位元素的参照物
  overflow的意思是 超出.app边界的内容隐藏掉
  box-shadow是给外壳加一圈淡淡的阴影
  */
.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(122, 88, 61, .08);
}

/*
  .view 是 app 内的一个子容器，表示一个独立的页面视图。每个页面视图都有自己的内容，当切换页面时，通过切换 active 类来显示或隐藏相应的视图。
  .是 class 的选择器
  .view 表示一个“页面”：首页、地图页、列表页、电话页。
  默认 display: none 隐藏；当有 active 类时才显示。
  animation: fadeIn（淡入动画） .18s ease（动画时长 0.18秒，动画速度是 ease）; 给页面切换添加一个淡入动画，让界面切换更流畅自然。
  JS 里的 setView() 函数就是通过切换 active 来切换页面。
*/
.view {
  display: none;
  min-height: 100vh;
  padding: 18px 16px calc(96px + var(--safe-bottom));
  animation: fadeIn .18s ease;
}

.view.active { display: block; } /* 当 .view 元素具有 active 类时，display 就是 block 了，显示该页面视图 */
/* fadeIn 是一个关键帧动画，定义了从透明度为 0 且向下偏移 8px，到透明度为 1 且回到原位的动画效果。 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 顶部导航栏  flex的意思是变成弹性布局即横向布局  flex的默认主轴是横向 不写 flex div块级元素通查会独占一行
align-items: center 让导航栏内的元素垂直居中；gap: 12px 导航栏内元素之间的间距；min-height: 44px 导航栏的最小高度；margin-bottom: 10px 导航栏与下方内容的间距。
section有语义，是一个独立内容区块；
div 没有什么语义 是一个盒子
class = 'view active' 这说明这个 HTML 元素有两个 class 名 view 和 active ；class 和 data-view 是两个属性
.view 可以选中 clasa 中有 view 的元素 同时需要注意两个元素之间的空格是分隔符  .view.active 选中同时具有 view 和 active 的元素
*/
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 10px;
}

.back-btn,
.icon-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.68);
  color: var(--text);
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(130, 91, 52, .08);
  cursor: pointer;
}

.topbar-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .02em;
}

/*
  首页头图区域。
  包括“稼享指南”标题、副标题、导语，以及用 CSS 画出来的街区插画。
*/
.hero {
  position: relative;
  min-height: 340px;
  border-radius: 0 0 34px 34px;
  margin: -18px -16px 18px;
  padding: 58px 22px 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 248, 234, .95), rgba(255, 242, 220, .88)),
    radial-gradient(circle at 85% 20%, rgba(127, 166, 104, .18), transparent 25%);
  border-bottom: 1px solid rgba(170, 113, 65, .12);
}

.hero h1 {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 42px;
  line-height: 1;
  letter-spacing: .03em;
  font-weight: 900;
}

.hero h2 {
  margin: 0 0 12px;
  color: #4a3427;
  font-size: 17px;
  font-weight: 800;
}

.hero p {
  margin: 0;
  max-width: 230px;
  color: #70594a;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 500;
}

.hero-badge {
  position: absolute;
  right: 12px;
  top: 72px;
  padding: 6px 5px;
  writing-mode: vertical-rl;
  letter-spacing: .1em;
  color: var(--brand);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(199, 67, 31, .14);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.street-illustration {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 185px;
  pointer-events: none;
}

/*  ::表示伪元素 可以通过 css 在特定的元素前生成一个虚拟元素
: 一个冒号可以表示伪类.hover active 之类
*/
.tree {
  position: absolute;
  right: 28px;
  bottom: 64px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #bfd39d 0 18%, transparent 19%),
    radial-gradient(circle at 64% 32%, #adc988 0 18%, transparent 19%),
    radial-gradient(circle at 48% 58%, #9fbd77 0 24%, transparent 25%);
  filter: drop-shadow(0 10px 12px rgba(76,91,45,.12));
}
.tree::after {
  content: "";
  position: absolute;
  left: 45px;
  bottom: -36px;
  width: 9px;
  height: 54px;
  border-radius: 6px;
  background: #8e6240;
}

.building {
  position: absolute;
  bottom: 32px;
  border-radius: 8px 8px 0 0;
  border: 2px solid rgba(139, 82, 47, .28);
  background: linear-gradient(180deg, #e8a66c, #c7794d);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.15);
}
.building.b1 { left: 24px; width: 94px; height: 78px; background: linear-gradient(180deg, #cb6a40, #ad5136); }
.building.b2 { left: 138px; width: 118px; height: 98px; background: linear-gradient(180deg, #dfb276, #b97b51); }
.building.b3 { right: 88px; width: 70px; height: 70px; background: linear-gradient(180deg, #d59463, #a8644a); }
.building::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 14px;
  height: 20px;
  border-radius: 3px;
  background: rgba(255,245,220,.8);
  box-shadow: 26px 0 rgba(255,245,220,.8), 52px 0 rgba(255,245,220,.75), 0 32px rgba(255,245,220,.7), 26px 32px rgba(255,245,220,.65);
}

.gate {
  position: absolute;
  left: -8px;
  bottom: 34px;
  width: 120px;
  height: 86px;
  opacity: .92;
}
.gate::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 110px;
  height: 18px;
  border-radius: 18px 18px 4px 4px;
  background: #7b4635;
  box-shadow: 0 8px 0 #bd6a3e;
  transform: skewX(-12deg);
}
.gate::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 0;
  width: 16px;
  height: 72px;
  border-radius: 3px;
  background: #8c4c36;
  box-shadow: 64px 0 #8c4c36;
}

.road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  background: linear-gradient(180deg, rgba(229, 196, 156, .42), rgba(212, 176, 135, .36));
  clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
}

.bird {
  position: absolute;
  width: 22px;
  height: 8px;
  border-top: 2px solid rgba(124, 92, 70, .28);
  border-radius: 50%;
  transform: rotate(-10deg);
}
.bird::after {
  content: "";
  position: absolute;
  right: -12px;
  top: -2px;
  width: 20px;
  height: 8px;
  border-top: 2px solid rgba(124, 92, 70, .28);
  border-radius: 50%;
  transform: rotate(20deg);
}
.bird.one { right: 92px; top: 74px; }
.bird.two { right: 62px; top: 102px; transform: scale(.75) rotate(-8deg); }

/*
  首页点位分类快捷入口。
  这些按钮不是写死在 HTML 里，而是由 JS 根据 CATEGORIES 自动生成。
*/
.quick-card {
  position: relative;
  margin-top: -64px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 28px;
  padding: 18px 12px 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 4);
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 12px;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  z-index: 3;
}
.quick-card::-webkit-scrollbar { display: none; }

/* 首页一行社区动态：两份消息衔接，持续从左向右滚动。 */
.home-news {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-top: 14px;
  padding: 0 5px 0 12px;
  border: 1px solid rgba(230, 133, 66, .18);
  border-radius: 14px;
  color: #815235;
  background: linear-gradient(110deg, #fff0dc, #fff8ed);
}
.home-news-label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding-right: 10px;
  border-right: 1px solid rgba(193, 108, 52, .2);
  color: #c85629;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.home-news-label svg { width: 16px; height: 16px; }
.home-news-window { flex: 1; min-width: 0; overflow: hidden; }
.home-news-track {
  display: flex;
  width: max-content;
  min-width: 200%;
  font-size: 12px;
  line-height: 22px;
  white-space: nowrap;
}
.home-news-track.is-ready { animation: home-news-right 12s linear infinite; }
.home-news-item { flex: 1 0 auto; padding-right: 56px; }
@keyframes home-news-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.home-news.is-paused .home-news-track { animation-play-state: paused; }
.home-news-toggle {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #b57e55;
  background: transparent;
  cursor: pointer;
}
.home-news-toggle:hover { background: rgba(223, 143, 73, .1); }
.home-news-toggle:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -2px; }
.home-news-toggle svg { width: 14px; height: 14px; }
.home-news-play-icon,
.home-news.is-paused .home-news-pause-icon { display: none; }
.home-news.is-paused .home-news-play-icon { display: block; }
@media (prefers-reduced-motion: reduce) {
  .home-news-track.is-ready { width: 100%; min-width: 0; animation: none; }
  .home-news-item { padding-right: 0; white-space: normal; }
  .home-news-item[aria-hidden="true"], .home-news-toggle { display: none; }
}

.quick-item {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  scroll-snap-align: start;
}
.quick-icon {
  width: min(58px, 100%);
  height: auto;
  aspect-ratio: 1;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  color: #fff;
  font-size: 25px;
  box-shadow: 0 10px 18px rgba(113, 68, 31, .12);
}
.quick-label {
  display: block;
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 700;
  white-space: nowrap;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 2px 12px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 900;
}
.section-title::before {
  content: "";
  width: 5px;
  height: 18px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--brand-2), #f7a642);
}
.more-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

body.more-routes-open { overflow: hidden; }
.more-routes-lightbox[hidden] { display: none; }
.more-routes-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10004;
  display: grid;
  place-items: center;
  padding: 24px;
}
.more-routes-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(55, 39, 29, .46);
  backdrop-filter: blur(3px);
}
.more-routes-dialog {
  position: relative;
  width: min(100%, 310px);
  padding: 26px 24px 22px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 26px;
  background: #fffaf3;
  box-shadow: 0 24px 70px rgba(55, 38, 28, .28);
  text-align: center;
}
.more-routes-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-2), #e64f1e);
  box-shadow: 0 8px 18px rgba(226, 79, 31, .24);
  font-size: 25px;
}
.more-routes-dialog h2 { margin: 0; color: var(--text); font-size: 20px; }
.more-routes-dialog p { margin: 8px 0 20px; color: var(--muted); font-size: 14px; }
.more-routes-dialog .btn { width: 100%; }

.recommend-card,
.route-card,
.place-card,
.contact-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.recommend-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 12px;
  padding: 12px;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(255, 238, 205, .96), rgba(255, 248, 230, .92)),
    radial-gradient(circle at 80% 55%, rgba(193, 122, 69, .18), transparent 26%);
}

.thumb-river, .thumb-street {
  min-height: 108px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #cce7ef 0 42%, #84b4ce 43% 55%, #e9cf93 56% 100%);
}
.thumb-river::before {
  display: none;
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 90px;
  height: 52px;
  background: #acd083;
  border-radius: 0 70px 0 0;
  box-shadow: 45px -6px 0 rgba(142, 190, 109, .72);
}
.thumb-river::after {
  display: none;
  content: "";
  position: absolute;
  right: 20px;
  top: 18px;
  width: 10px;
  height: 48px;
  background: rgba(255,255,255,.55);
  box-shadow: -18px 14px 0 rgba(255,255,255,.45), 18px 9px 0 rgba(255,255,255,.5), -35px 24px 0 rgba(255,255,255,.4);
}

.recommend-content h3,
.route-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
}
.recommend-content p,
.route-card p {
  margin: 0 0 10px;
  color: #6d5b4e;
  font-size: 13px;
  line-height: 1.5;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 12px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.tag.service { color: #d44c22; background: #fff0e8; }
.tag.shopping { color: #d48219; background: #fff4df; }
.tag.leisure { color: #5a984e; background: #edf8e9; }
.tag.memory { color: #9b4c3a; background: #fff0ec; }
.tag.bussiness { color: #416b96; background: #eaf3fb; }

.new-point-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff6a2f, #f09a35);
  box-shadow: 0 4px 10px rgba(237, 101, 42, .2);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.route-card {
  margin-top: 14px;
  padding: 18px;
  background:
    linear-gradient(100deg, rgba(255, 238, 205, .96), rgba(255, 248, 230, .92)),
    radial-gradient(circle at 80% 55%, rgba(193, 122, 69, .18), transparent 26%);
  min-height: 112px;
  position: relative;
}
.route-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 8px;
  width: 150px;
  height: 64px;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(166, 95, 61, .24) 10% 12%, transparent 12% 24%, rgba(166, 95, 61, .24) 24% 26%, transparent 26%),
    linear-gradient(180deg, transparent 0 48%, rgba(166, 95, 61, .32) 49% 53%, transparent 54%);
  opacity: .75;
  border-radius: 12px;
}

.pill-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
}
.pill-row[hidden] { display: none; }
.pill-row::-webkit-scrollbar { display: none; }
.pill {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(125, 82, 48, .12);
  background: rgba(255,255,255,.7);
  color: #5a4637;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(115, 79, 52, .05);
}
.pill.active {
  border-color: transparent;
  background: linear-gradient(180deg, #ff7a36, #ed4e20);
  color: #fff;
  box-shadow: 0 8px 20px rgba(237, 78, 32, .24);
}

/* 真实高德地图与下方点位卡片的外层容器。 */
.map-shell {
  position: relative;
  height: auto;
  min-height: 0;
  margin: 0 -16px;
  padding-bottom: 8px;
  overflow: visible;
  border-top: 1px solid rgba(138, 96, 62, .1);
  border-bottom: 1px solid rgba(138, 96, 62, .1);
  background: #fff8ee;
}

.map-canvas {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(147, 203, 122, .45), transparent 18%),
    radial-gradient(circle at 88% 28%, rgba(125, 185, 207, .45), transparent 22%),
    linear-gradient(135deg, #f6ead7 0%, #f2e5d2 100%);
}
.map-canvas::before {
  content: "";
  position: absolute;
  inset: -20px;
  background:
    linear-gradient(28deg, transparent 0 41%, rgba(255,255,255,.95) 42% 45%, transparent 46% 100%),
    linear-gradient(92deg, transparent 0 46%, rgba(255,255,255,.8) 47% 49%, transparent 50% 100%),
    linear-gradient(150deg, transparent 0 35%, rgba(255,255,255,.82) 36% 38%, transparent 39% 100%),
    linear-gradient(62deg, transparent 0 56%, rgba(255,255,255,.72) 57% 59%, transparent 60% 100%),
    linear-gradient(0deg, transparent 0 27%, rgba(255,255,255,.82) 28% 30%, transparent 31% 100%),
    linear-gradient(0deg, transparent 0 68%, rgba(255,255,255,.78) 69% 71%, transparent 72% 100%);
  opacity: .95;
}
.river {
  position: absolute;
  right: -60px;
  top: -20px;
  width: 180px;
  height: 620px;
  background: linear-gradient(90deg, rgba(126, 191, 207, .32), rgba(87, 170, 205, .55));
  transform: rotate(14deg);
  border-left: 10px solid rgba(255,255,255,.55);
}
.park {
  position: absolute;
  left: -36px;
  top: 30px;
  width: 165px;
  height: 116px;
  border-radius: 34px;
  background: rgba(159, 204, 134, .52);
  transform: rotate(-15deg);
}
.park.two {
  left: auto;
  right: 42px;
  top: 248px;
  width: 126px;
  height: 96px;
  transform: rotate(18deg);
  background: rgba(154, 196, 122, .42);
}
.map-label {
  position: absolute;
  color: rgba(83, 69, 56, .65);
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,.85);
  z-index: 2;
  white-space: nowrap;
  pointer-events: none;
}

/*
  地图上的点位图标。
  每一个 marker 都由 JS 根据 POINTS 数据动态创建。
  marker 的 left/top 对应点位数据里的 x/y。
*/
.marker {
  position: absolute;
  z-index: 6;
  width: 42px;
  height: 42px;
  border: 0;
  padding: 0;
  border-radius: 50% 50% 50% 8px;
  transform: translate(-50%, -100%) rotate(-45deg);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 22px rgba(96, 61, 35, .24), inset 0 0 0 3px rgba(255,255,255,.45);
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}
.marker span {
  transform: rotate(45deg);
  font-size: 18px;
}
.marker.active {
  transform: translate(-50%, -100%) rotate(-45deg) scale(1.18);
  filter: saturate(1.08);
}
.marker.active::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: rgba(238, 87, 35, .18);
  z-index: -1;
  animation: pulse 1.3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(.88); opacity: .8; }
  50% { transform: scale(1.18); opacity: .35; }
}

.locate-btn {
  position: absolute;
  left: 16px;
  bottom: 204px;
  z-index: 8;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  font-size: 22px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

/*
  地图底部弹出的点位信息卡片。
  点击不同地图点位时，JS 会重新渲染这里的名称、简介、地址、电话和导航按钮。
*/
.sheet {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 10;
  min-height: 158px;
  margin: 12px 12px 9px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: transform .28s cubic-bezier(.22, .8, .24, 1), opacity .2s ease, visibility .2s ease;
}
.sheet.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* 点位头部信息 */
.sheet-handle {
  display: none;
}
.sheet-selection-label {
  display: block;
  margin: 0 3px 9px;
  color: #8e796b;
  font-size: 11px;
}
.sheet-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.sheet-title-row h3 {
  flex: 1;
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.map-sheet-compact {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  min-height: 142px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 13px 30px rgba(82, 56, 37, .16);
}
.map-sheet-compact.no-photo { grid-template-columns: 1fr; min-height: 126px; }
.map-sheet-summary {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.map-sheet-summary .sheet-title-row { margin-bottom: 5px; }
.map-sheet-summary .tag { padding: 4px 7px; font-size: 9px; }
.map-place-photo {
  position: relative;
  margin: 0 0 11px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(145deg, #d8e9ef, #9fc4c9 55%, #d9c18c);
  box-shadow: 0 8px 18px rgba(74, 59, 46, .12);
}
.map-place-photo img {
  display: block;
  width: 100%;
  height: 128px;
  background: #e8dfd5;
  object-fit: cover;
  object-position: center;
}
.map-place-photo img[hidden] { display: none; }
.map-place-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 12px 9px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(39, 31, 26, .76));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}
.map-place-photo-fallback[hidden] { display: none; }
.map-place-photo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 128px;
  padding: 14px;
  color: #5f5045;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 210, 114, .72) 0 9%, transparent 9.5%),
    linear-gradient(145deg, #dcecf0, #c5d9c2 58%, #ead3aa);
  text-align: center;
}
.map-place-photo-fallback > span { color: #e86129; font-size: 25px; }
.map-place-photo-fallback strong { margin-top: 5px; color: #3d3027; font-size: 14px; }
.map-place-photo-fallback small { margin-top: 4px; font-size: 9px; }
.map-place-photo-fallback + figcaption { display: none; }
.map-place-photo img:not([hidden]) ~ figcaption { display: block; }
.map-sheet-compact .map-place-photo {
  height: 120px;
  margin: 0;
  align-self: center;
  border-radius: 17px;
}
.map-sheet-compact .map-place-photo img,
.map-sheet-compact .map-place-photo-fallback { height: 120px; }
.map-sheet-compact .map-place-photo figcaption { display: none !important; }
.sheet-description {
  margin-bottom: 4px !important;
  overflow: hidden;
  color: #4e3d32 !important;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.45 !important;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sheet-address {
  margin-bottom: 5px !important;
  overflow: hidden;
  color: #7c695c !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.map-sheet-compact-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.map-sheet-compact-actions .btn {
  flex: 0 0 auto;
  min-height: 38px;
  padding-inline: 15px;
  border-radius: 15px;
  font-size: 12px;
}
.sheet-details-btn {
  padding: 8px 2px;
  border: 0;
  color: #e45b29;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.sheet-details-btn span { font-size: 17px; vertical-align: -1px; }
.sheet-detail-extra[hidden] { display: none; }
.sheet-detail-extra {
  display: grid;
  gap: 7px;
  margin-top: 9px;
  padding: 12px 14px;
  border: 1px solid rgba(130, 91, 62, .1);
  border-radius: 18px;
  color: #746155;
  background: rgba(255,255,255,.76);
  font-size: 10px;
  line-height: 1.5;
}
.sheet-detail-extra span { display: grid; grid-template-columns: 52px 1fr; gap: 7px; }
.sheet-detail-extra b { color: #47352a; }
.cluster-sheet-card {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 13px 30px rgba(82, 56, 37, .16);
}
.fav {
  border: 0;
  background: transparent;
  color: #9b8c82;
  font-size: 24px;
  cursor: pointer;
}
.sheet p {
  margin: 0 0 12px;
  color: #655247;
  font-size: 14px;
  line-height: 1.55;
}
.sheet-meta {
  display: grid;
  gap: 8px;
  color: #6b5c51;
  font-size: 14px;
  margin-bottom: 12px;
}
/* 动作包含了一键导航 查看列表等*/
.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 10px;
}

.map-sheet-actions {
  grid-template-columns: 1.1fr 1fr;
  margin-top: 14px;
}
.map-sheet-actions .btn {
  min-height: 46px;
  border-radius: 15px;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(93, 61, 39, .1);
  transition: transform .16s ease, box-shadow .16s ease;
}
.map-sheet-actions .btn:active {
  transform: scale(.98);
  box-shadow: 0 4px 10px rgba(93, 61, 39, .08);
}

.btn {
  border: 0;
  min-height: 42px;
  border-radius: 16px;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}
/* 主要按钮 */
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #ff7a36, #ed4e20);
  box-shadow: 0 10px 22px rgba(237, 78, 32, .28);
}
/* 次要按钮 */
.btn-ghost {
  color: #5e7a48;
  background: #fff;
  border: 1px solid rgba(94, 122, 72, .26);
}
.btn-mini {
  min-height: 34px;
  border-radius: 13px;
  font-size: 13px;
  padding: 0 12px;
}

.search {
  position: relative;
  margin: 4px 0 14px;
}
.search input {
  width: 100%;
  height: 46px;
  border-radius: 18px;
  border: 1px solid rgba(140, 102, 75, .12);
  background: rgba(255,255,255,.82);
  padding: 0 16px 0 42px;
  outline: 0;
  font-size: 15px;
  color: var(--text);
  box-shadow: 0 6px 20px rgba(115, 79, 52, .06);
}
.search::before {
  content: "⌕";
  position: absolute;
  left: 16px;
  top: 10px;
  color: #a1948a;
  font-size: 22px;
  z-index: 2;
}

.list {
  display: grid;
  gap: 14px;
}
.place-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
}
.place-icon,
.contact-icon {
  width: 54px;
  height: 54px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #fff;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.35);
}
.place-main h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.3;
}
.place-main p {
  margin: 0 0 8px;
  color: #66564c;
  font-size: 13px;
  line-height: 1.45;
}
.place-lines {
  display: grid;
  gap: 4px;
  color: #77685d;
  font-size: 12px;
  margin-bottom: 10px;
}
.place-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  align-items: center;
}
.contact-card h3 { margin: 0 0 3px; font-size: 16px; }
.contact-card p { margin: 0; color: var(--muted); font-size: 13px; }
.contact-card a { margin-left: auto; color: #fff; text-decoration: none; }
.contact-call-button { flex: 0 0 auto; margin-left: auto; }

body.phone-choice-open { overflow: hidden; }
.phone-choice-lightbox[hidden] { display: none; }
.phone-choice-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: grid;
  place-items: end center;
  padding: 16px;
}
.phone-choice-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(44, 31, 23, .48);
  backdrop-filter: blur(3px);
}
.phone-choice-dialog {
  position: relative;
  width: min(100%, 398px);
  padding: 20px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 26px;
  background: #fffaf3;
  box-shadow: 0 24px 70px rgba(55, 38, 28, .3);
}
.phone-choice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.phone-choice-head small {
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.phone-choice-head h2 { margin: 4px 0 0; color: var(--text); font-size: 20px; }
.phone-choice-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  color: #765f50;
  background: #f3e8dc;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.phone-choice-list { display: grid; gap: 10px; }
.phone-choice-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 14px 15px;
  border: 1px solid rgba(91, 145, 202, .2);
  border-radius: 18px;
  color: var(--text);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(76, 55, 40, .06);
}
.phone-choice-option span:first-child { display: grid; gap: 4px; }
.phone-choice-option strong { font-size: 15px; }
.phone-choice-option small { color: var(--muted); font-size: 14px; }
.phone-choice-dial {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-2);
  font-size: 12px;
  font-weight: 800;
}
.phone-choice-cancel {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  border: 0;
  border-radius: 14px;
  color: #76675d;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.empty {
  padding: 42px 18px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,.62);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(138, 96, 62, .22);
}

/*

新增地图式样的相关空间

*/

.real-design-map {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(36, 28, 20, .18);
  background: #eef2ef;
  height: clamp(390px, 105vw, 470px);
}

.amap-map-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.amap-map-status {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px;
  color: #52615a;
  background:
    linear-gradient(35deg, transparent 0 47%, rgba(255,255,255,.76) 48% 51%, transparent 52%),
    linear-gradient(125deg, transparent 0 44%, rgba(255,255,255,.72) 45% 48%, transparent 49%),
    radial-gradient(circle at 74% 27%, rgba(120,170,99,.24) 0 11%, transparent 11.5%),
    linear-gradient(145deg, #eef2ed, #dfe9e6);
  text-align: center;
  transition: opacity .22s ease, visibility .22s ease;
}
.amap-map-status[hidden] { display: none; }
.amap-map-status.is-error { color: #6a4d3e; }
.amap-map-status-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 17px;
  color: #fff;
  background: #f2672a;
  box-shadow: 0 10px 24px rgba(242,103,42,.25);
  font-size: 25px;
  font-weight: 900;
}
.amap-map-status strong { color: #3d4e46; font-size: 17px; }
.amap-map-status small { max-width: 270px; font-size: 11px; line-height: 1.6; }
.amap-map-status code {
  padding: 2px 5px;
  border-radius: 5px;
  color: #b54725;
  background: rgba(255,255,255,.68);
  font-family: Consolas, monospace;
}

/* 高德地图中的四类社区点位。 */
.amap-community-marker {
  position: relative;
  width: 30px;
  height: 38px;
  display: grid;
  place-items: start center;
  cursor: pointer;
  filter: drop-shadow(0 7px 7px rgba(57, 43, 34, .2));
  transition: transform .18s ease, filter .18s ease;
}
.amap-community-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 25px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--marker-color);
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
.amap-community-marker-core {
  position: relative;
  z-index: 1;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--marker-color);
  box-shadow: 0 0 0 1px rgba(42, 36, 31, .08);
  font-size: 12px;
  line-height: 1;
}
.amap-community-marker-label {
  position: absolute;
  left: 50%;
  bottom: 43px;
  max-width: 190px;
  display: none;
  padding: 6px 9px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 10px;
  color: #3c2d24;
  background: rgba(255,255,255,.96);
  box-shadow: 0 7px 18px rgba(55,42,33,.17);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}
.amap-community-marker-new {
  position: absolute;
  right: -18px;
  top: -9px;
  z-index: 2;
  padding: 3px 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #f05b2c;
  box-shadow: 0 4px 9px rgba(76, 43, 28, .2);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.amap-community-marker.is-selected {
  transform: scale(1.18) translateY(-2px);
  filter: drop-shadow(0 9px 10px rgba(57,43,34,.3));
}
.amap-community-marker.is-selected .amap-community-marker-label { display: block; }
.amap-community-marker.is-center .amap-community-marker-core {
  box-shadow: 0 0 0 5px rgba(242,103,42,.17), 0 0 0 1px rgba(42,36,31,.08);
}
.amap-community-marker.is-route-stop .amap-community-marker-core {
  font-weight: 900;
  box-shadow: 0 0 0 4px rgba(239,91,42,.18), 0 0 0 1px rgba(42,36,31,.08);
}
.amap-community-marker.is-route-stop .amap-community-marker-label { display: block; }

.real-design-map .amap-logo,
.real-design-map .amap-copyright { opacity: .7; }

.real-design-map .locate-btn {
  left: 14px;
  bottom: 14px;
  z-index: 8;
}

@media (max-width: 374px) {
  .real-design-map { height: 390px; }
}

@media (max-width: 374px) {
  .sheet { min-height: 148px; margin-inline: 10px; }
  .map-sheet-compact { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; min-height: 136px; padding: 10px; }
  .map-sheet-compact.no-photo { min-height: 120px; }
  .map-sheet-compact .map-place-photo,
  .map-sheet-compact .map-place-photo img,
  .map-sheet-compact .map-place-photo-fallback { height: 116px; }
  .map-sheet-summary .sheet-title-row h3 { font-size: 15px; }
  .map-sheet-compact-actions .btn { min-height: 37px; padding-inline: 12px; }
}

.map-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--hit-size, 34px);
  height: var(--hit-size, 34px);
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .01);
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.map-hotspot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
  box-shadow: 0 0 0 2px rgba(237, 78, 32, .38);
  opacity: .25;
}

.map-hotspot.active {
  background: rgba(255, 255, 255, .12);
}

.map-hotspot.active::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: rgba(238, 87, 35, .28);
  animation: pulse 1.25s ease-in-out infinite;
}

.map-hotspot.active::after {
  width: 16px;
  height: 16px;
  background: #ff5a24;
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .72);
}

/* 组合点位详情：一个热点内列出多个可独立导航的地点。 */
.cluster-sheet-intro { margin-bottom: 10px !important; }
.cluster-location-list {
  display: grid;
  gap: 7px;
  max-height: 210px;
  overflow-y: auto;
}
.cluster-location {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid rgba(125, 82, 48, .12);
  border-radius: 13px;
  background: rgba(255, 250, 244, .88);
}
.cluster-location-index {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff0e8;
  color: #d44c22;
  font-size: 11px;
  font-weight: 900;
}
.cluster-location-info { min-width: 0; }
.cluster-location-info strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cluster-location-info small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cluster-nav-btn {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: #f2672a;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.cluster-sheet-actions { margin-top: 10px; }
.cluster-sheet-actions .btn { width: 100%; }

/*
  地图临时校准工具。
  只有 MAP_CALIBRATION_MODE 为 true 时才会显示，不影响正式浏览模式。
*/
.map-calibrator[hidden] { display: none; }
.map-calibrator {
  margin: 14px 0 0;
  padding: 14px;
  border: 2px solid rgba(238, 87, 35, .28);
  border-radius: 18px;
  background: rgba(255, 250, 243, .98);
  box-shadow: 0 10px 28px rgba(82, 56, 37, .12);
}
.map-calibrator h3 { margin: 0 0 6px; font-size: 16px; }
.map-calibrator p { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.calibration-select {
  width: 100%;
  min-height: 40px;
  margin-bottom: 10px;
  padding: 0 10px;
  border: 1px solid rgba(125, 82, 48, .18);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.calibration-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.calibration-fields label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.calibration-fields input {
  width: 100%;
  min-width: 0;
  padding: 9px 7px;
  border: 1px solid rgba(125, 82, 48, .18);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
}
.calibration-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.calibration-actions .btn { min-height: 38px; padding: 8px; font-size: 12px; }
.calibration-output {
  width: 100%;
  min-height: 74px;
  margin-top: 10px;
  padding: 9px;
  resize: vertical;
  border: 1px solid rgba(125, 82, 48, .16);
  border-radius: 10px;
  background: #2f2925;
  color: #fff7eb;
  font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.view.is-calibrating #mapFilters { opacity: .45; pointer-events: none; }
.view.is-calibrating #mapSheet { display: none; }
.real-design-map.is-calibrating .map-hotspot {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, .9);
  background: rgba(238, 87, 35, .26);
  color: #fff;
  touch-action: none;
  user-select: none;
  box-shadow: 0 0 0 1px rgba(173, 54, 18, .5);
}
.real-design-map.is-calibrating .map-hotspot.active {
  border: 2px solid #fff;
  background: rgba(255, 90, 36, .68);
  box-shadow: 0 0 0 3px #ff5a24, 0 6px 16px rgba(36, 28, 20, .28);
}
.real-design-map.is-calibrating .map-hotspot::before,
.real-design-map.is-calibrating .map-hotspot::after { display: none; }
.map-hotspot-label {
  position: relative;
  z-index: 1;
  pointer-events: none;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

/*
  底部导航栏。
  通过 data-go="home/map/phone" 告诉 JS 点击后要切换到哪个页面。
*/
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(72px + var(--safe-bottom));
  padding: 8px 10px calc(8px + var(--safe-bottom));
  background: rgba(255,253,248,.9);
  border-top: 1px solid rgba(132, 91, 61, .12);
  box-shadow: 0 -14px 34px rgba(91, 58, 33, .08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  z-index: 30;
  backdrop-filter: blur(18px);
}
.nav-item {
  border: 0;
  background: transparent;
  color: #8c7c72;
  border-radius: 18px;
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.nav-item .nav-icon { font-size: 21px; line-height: 1; }
.nav-item.active { color: var(--brand-2); background: #fff0e7; }
/* 轻提示 短暂提示框 临时提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + var(--safe-bottom));
  transform: translateX(-50%) translateY(14px);
  max-width: 360px;
  width: calc(100% - 48px);
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(54, 38, 27, .92);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 99;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 760px) {
  body { padding: 28px 0; }
  .app {
    border-radius: 34px;
    min-height: calc(100vh - 56px);
    box-shadow: 0 20px 70px rgba(67, 42, 24, .2), 0 0 0 1px rgba(122, 88, 61, .08);
  }
  .bottom-nav { border-radius: 0 0 34px 34px; }
}


/* 首页纸质《稼享指南》电子版入口 */
.guide-promo {
  position: relative;
  width: 100%;
  min-height: 122px;
  margin-top: 16px;
  padding: 20px 164px 18px 20px;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 105%, rgba(241, 180, 35, .34), transparent 34%),
    linear-gradient(115deg, #0b2948 0%, #113a63 56%, #174d7e 100%);
  box-shadow: 0 14px 30px rgba(12, 43, 73, .2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: transform .18s ease, box-shadow .18s ease;
}
.guide-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(255,255,255,.08), transparent 42%);
}
.guide-promo:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(12, 43, 73, .26); }
.guide-promo:focus-visible { outline: 3px solid rgba(242, 171, 48, .45); outline-offset: 3px; }
.guide-promo-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.guide-promo-copy strong { font-size: 18px; line-height: 1.25; letter-spacing: .02em; white-space: nowrap; }
.guide-promo-copy small { margin-top: 5px; color: rgba(255,255,255,.75); font-size: 11px; line-height: 1.5; white-space: nowrap; }
.guide-promo-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 5px 11px; border: 1px solid rgba(255,255,255,.48); border-radius: 999px; color: #fff; font-size: 12px; font-weight: 700; }
.guide-promo-link b { font-size: 18px; line-height: .7; }
.guide-promo > img { position: absolute; z-index: 1; right: -26px; bottom: -99px; width: 185px; max-width: none; pointer-events: none; filter: drop-shadow(-10px 8px 12px rgba(0,0,0,.22)); }

.activity-section.home-registration { margin-top: 20px; }
.home-registration + .section-head { margin-top: 21px; }

.activity-section.home-feedback { margin-top: 20px; }
.activity-feedback-date { color: #4e8a55; background: #edf7e9; }
.home-end-marker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 8px 4px;
  color: #a99b90;
  font-size: 10px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.home-end-marker::before,
.home-end-marker::after {
  height: 1px;
  flex: 1;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(151, 132, 118, .35));
}
.home-end-marker::after { transform: scaleX(-1); }

body.feedback-open { overflow: hidden; }
.feedback-lightbox[hidden] { display: none; }
.feedback-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
}
.feedback-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(24, 21, 18, .78);
  backdrop-filter: blur(9px);
  cursor: zoom-out;
}
.feedback-dialog {
  position: relative;
  z-index: 1;
  width: min(390px, 100%);
  padding: 20px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 26px;
  background: #fffaf4;
  box-shadow: 0 25px 72px rgba(35, 26, 20, .36);
}
.feedback-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.feedback-dialog-head small { color: #39806f; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.feedback-dialog-head h2 { margin: 4px 0 6px; color: #382a22; font-size: 23px; }
.feedback-dialog-head p { margin: 0; color: #816e61; font-size: 10px; line-height: 1.55; }
.feedback-dialog-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(81, 65, 53, .1);
  border-radius: 50%;
  color: #5c4b40;
  background: #fff;
  font: 300 27px/1 Arial, sans-serif;
  cursor: pointer;
}
.feedback-qr-grid { display: flex; justify-content: center; }
.feedback-channel { width: min(270px, 100%); padding: 12px 12px 14px; border: 1px solid rgba(85, 116, 103, .13); border-radius: 19px; background: #fff; text-align: center; }
.feedback-qr-frame { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 900 / 1026; overflow: hidden; border-radius: 13px; background: #f3f5ef; }
.feedback-qr-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.feedback-channel > strong { display: block; margin-top: 9px; color: #3e3028; font-size: 13px; }
.feedback-channel > small { display: block; margin-top: 4px; color: #908074; font-size: 9px; }

/* 纸质《稼享指南》电子版详情页 */
.guide-view {
  padding: 0 14px calc(102px + var(--safe-bottom));
  background:
    radial-gradient(circle at 100% 0, rgba(246, 186, 69, .2), transparent 26%),
    linear-gradient(180deg, #fffaf0 0%, #fffdf8 54%, #f8f0e5 100%);
}
.guide-topbar {
  display: grid;
  grid-template-columns: 48px 1fr 64px;
  align-items: center;
  min-height: 82px;
}
.guide-back-btn {
  width: 42px;
  height: 42px;
  border: 0;
  color: #36291f;
  background: transparent;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}
.guide-topbar > div { text-align: center; line-height: 1.1; }
.guide-topbar strong { display: block; color: #d94b22; font-size: 23px; font-weight: 950; letter-spacing: .09em; }
.guide-topbar div span { display: block; margin-top: 5px; color: #755f51; font-size: 11px; letter-spacing: .12em; }
.guide-topbar-mark { justify-self: end; padding: 7px 8px; border: 1px solid #f09c67; border-radius: 999px; color: #dc5c2a; background: rgba(255,255,255,.66); font-size: 10px; font-weight: 800; }

.guide-cover-card {
  position: relative;
  min-height: 292px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 104%, rgba(245,183,29,.88) 0 25%, transparent 25.5%),
    linear-gradient(145deg, #092743 0%, #103d67 60%, #175385 100%);
  box-shadow: 0 18px 42px rgba(9, 39, 67, .23);
}
.guide-cover-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,25,45,.08), transparent 55%);
  pointer-events: none;
}
.guide-cover-copy { position: relative; z-index: 2; width: 58%; padding: 32px 0 24px 25px; }
.guide-edition { display: inline-block; padding-bottom: 7px; border-bottom: 1px solid rgba(241,183,53,.7); color: #f5c24d; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.guide-cover-copy h2 { margin: 16px 0 12px; font-size: 31px; line-height: 1.18; letter-spacing: .04em; }
.guide-cover-copy p { margin: 0; color: rgba(255,255,255,.76); font-size: 12px; line-height: 1.7; }
.guide-cover-card > img { position: absolute; z-index: 1; right: -62px; bottom: -83px; width: 285px; max-width: none; filter: drop-shadow(-13px 12px 16px rgba(0,0,0,.28)); }

.guide-intro-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 17px 18px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-soft);
}
.guide-intro-number { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: #123b62; background: #f4bd35; font-size: 17px; font-weight: 950; }
.guide-intro-card h3 { margin: 0 0 5px; color: #30251e; font-size: 17px; }
.guide-intro-card p { margin: 0; color: #7e6c60; font-size: 11px; line-height: 1.6; }

.guide-gallery { margin-top: 24px; }
.guide-gallery-head { margin-bottom: 11px; }
.guide-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.guide-gallery-item {
  padding: 7px 7px 11px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 20px;
  color: #3d3028;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-soft);
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
}
.guide-gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-gallery-item:focus-visible { outline: 3px solid rgba(236,169,43,.4); outline-offset: 2px; }
.guide-gallery-photo { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: #102e4d; }
.guide-gallery-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.guide-gallery-caption { position: relative; display: block; padding: 9px 25px 0 4px; }
.guide-gallery-caption b { display: block; color: #34271f; font-size: 14px; }
.guide-gallery-caption small { display: block; margin-top: 3px; color: #8c7a6e; font-size: 9px; }
.guide-gallery-caption i { position: absolute; right: 3px; top: 11px; color: #c18d2a; font-size: 16px; font-style: normal; }

body.guide-lightbox-open { overflow: hidden; }
.guide-lightbox[hidden] { display: none; }
.guide-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: stretch;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.guide-lightbox.is-open { opacity: 1; pointer-events: auto; }
.guide-lightbox-backdrop { position: absolute; inset: 0; border: 0; background: rgba(2,10,18,.91); backdrop-filter: blur(12px); cursor: zoom-out; }
.guide-lightbox-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 68px minmax(0,1fr) 58px;
  width: 100%;
  height: 100%;
  color: #fff;
  pointer-events: none;
}
.guide-lightbox-head { display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 18px 8px; pointer-events: auto; }
.guide-lightbox-head > div { display: flex; align-items: baseline; gap: 10px; }
.guide-lightbox-head strong { font-size: 15px; letter-spacing: .04em; }
.guide-lightbox-head span { color: rgba(255,255,255,.58); font-size: 10px; }
.guide-lightbox-close { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: #fff; background: rgba(255,255,255,.1); font: 300 28px/1 Arial, sans-serif; cursor: pointer; }
.guide-lightbox-stage { display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; pointer-events: auto; }
.guide-lightbox-stage:active { cursor: grabbing; }
.guide-lightbox-stage img { display: block; max-width: 92vw; max-height: calc(100vh - 150px); object-fit: contain; transform: translate3d(0,0,0) scale(1); transform-origin: center; will-change: transform; filter: drop-shadow(0 18px 34px rgba(0,0,0,.44)); pointer-events: none; -webkit-user-drag: none; }
.guide-lightbox-stage.is-animating img { transition: transform .2s ease; }
.guide-lightbox-arrow { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; background: rgba(8,23,37,.58); font: 300 32px/1 Arial, sans-serif; cursor: pointer; pointer-events: auto; backdrop-filter: blur(8px); transform: translateY(-50%); }
.guide-lightbox-arrow.previous { left: 14px; }
.guide-lightbox-arrow.next { right: 14px; }
.guide-lightbox-foot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding-bottom: max(10px, env(safe-area-inset-bottom)); color: rgba(255,255,255,.58); font-size: 9px; pointer-events: auto; }
.guide-lightbox-dots { display: flex; gap: 7px; }
.guide-lightbox-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.32); cursor: pointer; }
.guide-lightbox-dots button.active { width: 20px; border-radius: 999px; background: #f2b72e; }

.guide-chapters { margin-top: 24px; }
.guide-section-head { display: flex; align-items: end; justify-content: space-between; margin: 0 3px 11px; }
.guide-section-head span { color: #d96932; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.guide-section-head h3 { margin: 3px 0 0; color: #34271f; font-size: 20px; }
.guide-section-head > small { padding-bottom: 2px; color: #9a887b; font-size: 10px; }
.guide-chapter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.guide-chapter {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 9px;
  align-items: start;
  min-height: 108px;
  padding: 15px 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 20px;
  color: #382b23;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-soft);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.guide-chapter:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.guide-chapter-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: #fff; font-size: 19px; }
.guide-chapter.service .guide-chapter-icon { background: #f26b2c; }
.guide-chapter.shopping .guide-chapter-icon { background: #f2a532; }
.guide-chapter.leisure .guide-chapter-icon { background: #70a85b; }
.guide-chapter.memory .guide-chapter-icon { background: #a55c48; }
.guide-chapter b { display: block; margin-top: 2px; font-size: 14px; }
.guide-chapter small { display: block; margin-top: 6px; color: #8a786c; font-size: 9px; line-height: 1.5; }
.guide-chapter i { position: absolute; right: 12px; bottom: 8px; color: #b9a99e; font-size: 22px; font-style: normal; }

.guide-note { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 14px 16px; border: 1px solid rgba(228,174,60,.26); border-radius: 20px; background: linear-gradient(110deg, #fff2cf, #fff9ea); }
.guide-note > span { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: #e8a72d; }
.guide-note p { margin: 0; color: #795f49; font-size: 10px; line-height: 1.55; }
.guide-note strong { color: #473426; font-size: 12px; }

@media (max-width: 374px) {
  .guide-promo { padding-right: 132px; }
  .guide-promo-copy strong { font-size: 15px; }
  .guide-promo-copy small { white-space: normal; }
  .guide-promo > img { right: -42px; bottom: -96px; width: 180px; }
  .guide-cover-card { min-height: 270px; }
  .guide-cover-copy { width: 61%; padding-left: 20px; }
  .guide-cover-copy h2 { font-size: 27px; }
  .guide-cover-card > img { right: -78px; width: 262px; }
  .guide-gallery-item { padding: 5px 5px 9px; border-radius: 17px; }
  .guide-gallery-photo { border-radius: 12px; }
  .guide-gallery-caption { padding-inline: 3px 19px; }
  .guide-gallery-caption small { font-size: 8px; }
  .guide-lightbox-arrow { width: 36px; height: 36px; font-size: 27px; }
  .guide-lightbox-arrow.previous { left: 8px; }
  .guide-lightbox-arrow.next { right: 8px; }
  .guide-chapter { grid-template-columns: 36px 1fr; padding-inline: 10px; }
  .guide-chapter-icon { width: 34px; height: 34px; font-size: 16px; }
  .feedback-lightbox { padding: 10px; }
  .feedback-dialog { padding: 17px 13px; border-radius: 22px; }
  .feedback-channel { padding-inline: 7px; }
}

/* 滨江散步路线详情页 */
.recommend-card[type="button"] {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.recommend-card[type="button"]:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.recommend-card[type="button"]:focus-visible { outline: 3px solid rgba(242, 103, 42, .3); outline-offset: 3px; }
.thumb-river {
  background-color: #cce7ef;
  background-image:
    linear-gradient(180deg, rgba(204, 231, 239, .08), rgba(132, 180, 206, .12)),
    url("assets/routes/binjiang/hero.jpg"),
    linear-gradient(180deg, #cce7ef 0 42%, #84b4ce 43% 55%, #e9cf93 56% 100%);
  background-size: cover;
  background-position: center;
}

.route-view {
  padding: 0 14px calc(96px + var(--safe-bottom));
  background:
    radial-gradient(circle at 8% 2%, rgba(255, 207, 148, .3), transparent 24%),
    linear-gradient(180deg, #fffaf1 0%, #fffdf9 62%, #fff7ec 100%);
}
.route-topbar {
  display: grid;
  grid-template-columns: 58px 1fr 104px;
  align-items: center;
  gap: 8px;
  min-height: 82px;
}
.route-back-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #38291f;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}
.route-brand { text-align: center; line-height: 1.15; }
.route-brand strong { display: block; color: #e75025; font-size: 25px; font-weight: 950; letter-spacing: .08em; }
.route-brand span { display: block; margin-top: 5px; color: #6d5547; font-size: 13px; letter-spacing: .08em; }
.route-location {
  justify-self: end;
  padding: 9px 11px;
  border: 1px solid #ff9a63;
  border-radius: 999px;
  color: #eb632c;
  background: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.route-location span { font-size: 9px; }

.route-hero-card {
  position: relative;
  min-height: 238px;
  overflow: hidden;
  border-radius: 22px;
  background-color: #dcebf1;
  background-image:
    linear-gradient(90deg, rgba(255,250,240,.96) 0%, rgba(255,250,240,.76) 29%, rgba(255,250,240,.12) 58%, rgba(255,250,240,.03) 74%),
    linear-gradient(180deg, rgba(255,248,236,.24), rgba(255,241,220,.10)),
    url("assets/routes/binjiang/hero.jpg"),
    linear-gradient(145deg, #dcecf3 0 44%, #9fc6d7 45% 62%, #dfc997 63% 100%);
  background-size: cover;
  background-position: center, center, center 70%, center;
  box-shadow: var(--shadow);
}
.route-hero-copy { position: relative; z-index: 1; padding: 27px 28px 0; }
.route-hero-copy h2 { margin: 0 0 8px; color: #34271f; font-size: 28px; line-height: 1.08; letter-spacing: .035em; text-shadow: 0 1px 0 rgba(255,255,255,.32); }
.route-category { display: inline-flex; padding: 5px 11px; border-radius: 999px; color: #fff; background: #69a851; box-shadow: 0 3px 8px rgba(79,130,59,.14); font-size: 13px; font-weight: 800; }
.route-hero-copy p { margin: 10px 0 0; color: #4f3b2e; font-size: 14px; line-height: 1.55; font-weight: 600; }
.route-stats {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 2px;
  padding: 12px 8px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 20px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 12px 28px rgba(73, 48, 30, .13);
  backdrop-filter: blur(12px);
}
.route-stat { min-width: 0; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; align-items: center; padding: 0 4px; border-right: 1px solid rgba(116,83,60,.14); }
.route-stat:last-child { border-right: 0; }
.route-stat-icon { position: relative; grid-row: 1 / 3; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 0; font-weight: 900; }
.route-stat-icon.orange { color: #f26824; background: #fff0e2; }
.route-stat-icon.orange::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: currentColor; }
.route-stat-icon.orange::after { content: "◷"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 700; }
.route-stat-icon.green { color: #659b4e; background: #edf6e6; }
.route-stat-icon.green::before { content: ""; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; background: currentColor; transform: translateY(-2px) rotate(-45deg); }
.route-stat-icon.green::after { content: ""; position: absolute; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.route-stat-icon.coral { color: #ed612b; background: #fff0e7; }
.route-stat-icon.coral::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 11px 0 0 currentColor; transform: translate(-5px,-5px); }
.route-stat-icon.coral::after { content: ""; position: absolute; bottom: 6px; width: 10px; height: 8px; border-radius: 8px 8px 3px 3px; background: currentColor; box-shadow: 11px 0 0 currentColor; transform: translateX(-5px); }
.route-stat strong { overflow: hidden; color: #37281e; font-size: 12px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.route-stat small { margin-top: 2px; color: #8d7c70; font-size: 10px; }

.route-section { margin-top: 22px; }
.route-section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 10px; }
.route-section-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 19px; }
.route-section-head h3::before { content: ""; width: 5px; height: 22px; border-radius: 999px; background: linear-gradient(180deg, #ff5c24, #ff9e46); }
.route-text-btn { border: 0; background: transparent; color: #79685b; font-size: 13px; cursor: pointer; }
.route-stops {
  display: grid;
  grid-template-columns: 1fr 18px 1fr 18px 1fr 18px 1fr;
  align-items: center;
  padding: 16px 10px 14px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 24px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow-soft);
}
.route-stop { min-width: 0; text-align: center; }
.route-stop strong { display: block; min-height: 28px; margin-top: 8px; font-size: 10.5px; line-height: 1.35; overflow-wrap: anywhere; }
.route-stop-photo {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  padding: 0;
  border: 3px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background-color: #d9e9e8;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 14px rgba(72, 78, 54, .12);
  cursor: zoom-in;
}
.route-stop-photo.walkway { background-image: url("assets/routes/binjiang/stop-walkway.webp"), linear-gradient(145deg, #dcebf2, #9fc2d2 52%, #d7c493 53%); }
.route-stop-photo.flower-bridge { background-image: url("assets/routes/binjiang/highlight-photo.webp"), linear-gradient(150deg, #dcebf0 0 44%, #89b5c8 45% 60%, #d9bf83 61%); }
.route-stop-photo.lujiabang-ferry { background-image: url("assets/routes/binjiang/stop-platform.webp"), linear-gradient(145deg, #e4eef0, #8ab8c9 50%, #c8d3a7 51%); }
.route-stop-photo.ferry-space { background-image: url("assets/routes/binjiang/ferry-space.webp"), linear-gradient(145deg, #d7e8ef, #83b2c5 58%, #d9c795 59%); }
.route-arrow { color: #69a74f; font-size: 21px; font-weight: 900; text-align: center; }

.route-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.route-highlight { overflow: hidden; padding: 7px 7px 11px; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: var(--shadow-soft); }
.route-highlight-photo { position: relative; display: block; width: 100%; height: 82px; padding: 0; border: 0; border-radius: 13px; background-color: #d6e7ed; background-size: cover; background-position: center; cursor: zoom-in; }
.route-highlight-photo.river-view { background-image: url("assets/routes/binjiang/highlight-river.webp"), linear-gradient(160deg, #d8e9ef 0 40%, #79aeca 41% 60%, #d7c48e 61%); }
.route-highlight-photo.photo-spot { background-image: url("assets/routes/binjiang/stop-park.webp"), linear-gradient(150deg, #dcebf0 0 44%, #89b5c8 45% 60%, #d9bf83 61%); }
.route-highlight-photo.night-view { background-image: url("assets/routes/binjiang/highlight-night.webp"), linear-gradient(150deg, #111d2d 0 55%, #174563 56% 70%, #d7a155 71%); }
.route-stop-photo:focus-visible,
.route-highlight-photo:focus-visible { outline: 3px solid rgba(242, 103, 42, .55); outline-offset: 3px; }
.route-highlight h4 { margin: 8px 3px 3px; font-size: 14px; }
.route-highlight p { margin: 0 3px; color: #806d5f; font-size: 10px; line-height: 1.45; }

.route-tips {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 13px 10px;
  border: 1px solid rgba(245, 187, 98, .36);
  border-radius: 24px;
  background: linear-gradient(100deg, #fff4d9, #fff9e9);
}
.route-tip-title, .route-tip { min-width: 0; display: flex; align-items: center; gap: 6px; }
.route-tip-title { flex-direction: column; justify-content: center; color: #473327; font-size: 13px; }
.route-tip-title span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(145deg, #ffad38, #f26b22); font-size: 20px; }
.route-tip { padding-left: 7px; border-left: 1px solid rgba(151,109,64,.18); }
.route-tip > span { color: #f68b2b; font-size: 20px; }
.route-tip:nth-child(3) > span { color: #55a4cf; }
.route-tip:nth-child(4) > span { color: #6ba45c; }
.route-tip p { margin: 0; color: #705b4c; font-size: 10px; line-height: 1.5; }
/* zyf增加了不显示*/
.route-start-btn {
  display: none;
}
.route-start-btn {
  width: 100%;
  min-height: 58px;
  margin: 16px 0 4px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #f14d16, #ff6d20, #ef4e18);
  box-shadow: 0 10px 24px rgba(239, 78, 24, .24);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
}
.route-start-btn:active { transform: translateY(1px); }

@media (max-width: 374px) {
  .route-brand strong { font-size: 24px; }
  .route-location { padding: 8px; font-size: 10px; }
  .route-hero-copy h2 { font-size: 26px; }
  .route-stop-photo { width: 56px; height: 56px; }
  .route-stop strong { font-size: 10px; }
  .route-stats { grid-template-columns: 1fr 1fr 1.3fr; padding-inline: 4px; }
  .route-stat { grid-template-columns: 26px 1fr; padding-inline: 2px; }
  .route-stat-icon { width: 24px; height: 24px; }
  .route-stat strong { font-size: 11.5px; }
}

/* 社区活动页：方案三“视频精彩回顾” */
.activity-view {
  padding: 0 14px calc(100px + var(--safe-bottom));
  background:
    radial-gradient(circle at 100% 0, rgba(255, 207, 139, .24), transparent 28%),
    linear-gradient(180deg, #fffaf2 0%, #fffdf8 56%, #fff6ea 100%);
}

.activity-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 5px 18px;
}
.activity-header h2 {
  margin: 0;
  color: #df4f22;
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: .03em;
}
.activity-header p {
  margin: 6px 0 0;
  color: #7d6758;
  font-size: 13px;
}
.activity-header-tag {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid #f2a273;
  border-radius: 999px;
  color: #e25a27;
  background: rgba(255,255,255,.7);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.activity-feature {
  position: relative;
  min-height: 248px;
  overflow: hidden;
  border-radius: 25px;
  background-color: #86a889;
  background-image:
    linear-gradient(0deg, rgba(24, 39, 48, .78) 0%, rgba(24, 39, 48, .06) 62%),
    linear-gradient(180deg, rgba(150, 199, 205, .05), rgba(103, 143, 104, .22)),
    url("assets/routes/binjiang/hero.jpg"),
    linear-gradient(145deg, #8ebbc8 0 52%, #88a976 53% 70%, #d3ad75 71%);
  background-size: cover;
  background-position: center, center, center 58%, center;
  box-shadow: 0 12px 28px rgba(70, 72, 56, .17);
}
.activity-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 50%, rgba(22, 34, 42, .72));
  pointer-events: none;
}
.activity-play-btn {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #ef5d29;
  background: rgba(255, 251, 245, .95);
  box-shadow: 0 9px 23px rgba(34, 40, 40, .24);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .16s ease, box-shadow .16s ease;
}
.activity-play-btn:hover { transform: translate(-50%, -50%) scale(1.05); }
.activity-play-btn:active { transform: translate(-50%, -50%) scale(.97); }
.activity-play-btn span { margin-left: 4px; font-size: 25px; line-height: 1; }
.activity-feature-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 3;
  color: #fffaf4;
  pointer-events: none;
}
.activity-feature-caption small { color: #ffdc99; font-size: 11px; font-weight: 700; }
.activity-feature-caption h3 { margin: 6px 0 0; font-size: 20px; line-height: 1.25; }

.activity-section { margin-top: 24px; }
.activity-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 4px 11px;
}
.activity-section-head h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #392a21;
  font-size: 19px;
}
.activity-section-head h3::before {
  content: "";
  width: 5px;
  height: 21px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff5b25, #ff9b42);
}
.activity-section-head > span { color: #927d6f; font-size: 11px; }

.activity-moments {
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr;
  grid-template-rows: repeat(2, 76px);
  gap: 8px;
}
.activity-moment {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 17px;
  background-color: #d6b078;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(76, 62, 46, .1);
  transition: transform .16s ease, box-shadow .16s ease;
}
.activity-moment:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(76, 62, 46, .16); }
.activity-moment::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(35,34,29,.58));
}
.activity-moment > span {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 1;
  display: grid;
  gap: 1px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.activity-moment > span small {
  font-size: 8px;
  font-weight: 500;
  opacity: .82;
}
.activity-moment-main {
  grid-row: 1 / 3;
  background-image: linear-gradient(145deg, #ee9355, #ce6040);
}
.activity-moment-green { background-image: linear-gradient(145deg, #a8c47f, #6e9b6c); }
.activity-moment-blue { background-image: linear-gradient(145deg, #9fcbd2, #587f9a); }
.activity-moment-gold { background-image: linear-gradient(145deg, #ebbd62, #b47242); }
.activity-moment-coral { background-image: linear-gradient(145deg, #f19a61, #cd5c3c); }

.activity-video-list { display: grid; gap: 10px; }
.activity-registration-list { display: grid; gap: 10px; }
.activity-video-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto 16px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 10px;
  border: 1px solid #f0e1d2;
  border-radius: 18px;
  color: #382a22;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-soft);
  font: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.activity-video-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.activity-video-date {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 6px;
  border-radius: 14px;
  color: #e85b28;
  background: #fff0e5;
  text-align: center;
}
.activity-video-date strong { font-size: 14px; line-height: 1.1; }
.activity-video-date small { margin-top: 3px; font-size: 9px; }
.activity-video-copy { min-width: 0; }
.activity-video-copy strong { display: block; overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.activity-video-copy small { display: block; margin-top: 6px; overflow: hidden; color: #89766a; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.activity-video-duration { color: #a08d80; font-size: 10px; }
.activity-video-arrow { color: #a28f81; font-size: 22px; line-height: 1; }
.activity-registration-item {
  border-color: rgba(236, 145, 54, .2);
  background: linear-gradient(110deg, rgba(255,255,255,.96), rgba(255,247,232,.96));
}
.activity-registration-date { color: #4e8a55; background: #edf7e9; }
.activity-registration-date strong { font-size: 12px; white-space: nowrap; }
.activity-registration-status {
  padding: 5px 8px;
  border-radius: 999px;
  color: #cb6b27;
  background: #fff0dd;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.activity-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(240, 174, 82, .26);
  border-radius: 20px;
  background: linear-gradient(110deg, #fff0dc, #fff8e9);
}
.activity-note > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ff9c35, #ed5927);
}
.activity-note p { margin: 0; color: #795f4f; font-size: 10px; line-height: 1.55; }
.activity-note strong { color: #473329; font-size: 12px; }

.activity-contribute {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  overflow: hidden;
  padding: 16px 18px 11px;
  border: 1px solid rgba(238, 110, 47, .14);
  border-radius: 25px;
  background:
    radial-gradient(circle at 0 0, rgba(255,255,255,.82), transparent 38%),
    linear-gradient(135deg, #fff1db 0%, #ffe4ca 52%, #ffd8bd 100%);
  box-shadow: 0 12px 28px rgba(139, 82, 45, .12);
}
.activity-contribute::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -38px;
  width: 110px;
  height: 110px;
  border: 22px solid rgba(255,255,255,.24);
  border-radius: 50%;
  pointer-events: none;
}
.activity-contribute-visual {
  position: relative;
  align-self: stretch;
  min-height: 128px;
}
.activity-contribute-photo {
  position: absolute;
  display: block;
  width: 72px;
  height: 94px;
  border: 4px solid #fffaf5;
  border-bottom-width: 14px;
  border-radius: 12px;
  background-color: #c98a62;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 22px rgba(95, 56, 34, .2);
}
.activity-contribute-photo-back {
  left: 3px;
  top: 5px;
  background-image: url("assets/routes/binjiang/stop-park.webp");
  transform: rotate(-8deg);
}
.activity-contribute-photo-front {
  right: 2px;
  bottom: 4px;
  z-index: 1;
  background-image: url("assets/routes/binjiang/highlight-photo.webp");
  transform: rotate(7deg);
}
.activity-contribute-camera {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,.9);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ff8b3e, #ed5729);
  box-shadow: 0 8px 18px rgba(169, 69, 29, .28);
  transform: translate(-50%, -42%);
}
.activity-contribute-camera svg { width: 18px; fill: currentColor; }
.activity-contribute-copy { position: relative; z-index: 1; min-width: 0; }
.activity-contribute-kicker {
  color: #d95c29;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}
.activity-contribute-copy h3 {
  margin: 5px 0 7px;
  color: #402b20;
  font-size: 18px;
  line-height: 1.22;
}
.activity-contribute-copy p {
  margin: 0;
  color: #826554;
  font-size: 10px;
  line-height: 1.55;
}
.activity-contribute-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 9px;
  padding: 9px 12px 9px 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f77334, #e64e24);
  box-shadow: 0 8px 16px rgba(213, 78, 31, .22);
  font: 800 11px/1 var(--font);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.activity-contribute-button:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(213, 78, 31, .28); }
.activity-contribute-button:active { transform: scale(.98); }
.activity-contribute-button > span:last-child { font-size: 20px; font-weight: 400; line-height: .7; }
.activity-contribute-note {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  margin: 1px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(163, 97, 57, .12);
  color: #8c6a57;
  font-size: 8px;
  line-height: 1.5;
}
.activity-contribute-note span { color: #4f955a; font-weight: 900; }

body.activity-upload-open,
body.activity-video-open,
body.activity-album-open,
body.activity-photo-open { overflow: hidden; }

.activity-upload-lightbox[hidden] { display: none; }
.activity-upload-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: grid;
  place-items: center;
  padding: 18px;
}
.activity-upload-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(39, 26, 19, .72);
  backdrop-filter: blur(9px);
  cursor: zoom-out;
}
.activity-upload-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 26px;
  background: #fffaf5;
  box-shadow: 0 26px 74px rgba(34, 21, 14, .36);
  overscroll-behavior: contain;
}
.activity-upload-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}
.activity-upload-head small {
  color: #e3602c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}
.activity-upload-head h2 {
  margin: 3px 0 5px;
  color: #39281f;
  font-size: 24px;
  line-height: 1.2;
}
.activity-upload-head p {
  margin: 0;
  color: #897367;
  font-size: 10px;
  line-height: 1.5;
}
.activity-upload-kingsoft {
  display: grid;
  justify-items: center;
  gap: 11px;
}
.activity-upload-qr-card {
  width: min(220px, 62vw);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #eee4dc;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(75, 48, 32, .11);
}
.activity-upload-qr-card img {
  display: block;
  width: 170%;
  max-width: none;
  height: auto;
  transform: translate(-20.5%, -24.5%);
}
.activity-upload-guide {
  display: grid;
  gap: 3px;
  color: #816b5e;
  text-align: center;
}
.activity-upload-guide strong {
  color: #4a352a;
  font-size: 13px;
}
.activity-upload-guide span {
  font-size: 9px;
  line-height: 1.5;
}
.activity-upload-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #ead9cb;
  border-radius: 50%;
  color: #70594b;
  background: #fff;
  font: 300 27px/1 Arial, sans-serif;
  cursor: pointer;
}
.activity-upload-form { display: grid; gap: 14px; }
.activity-upload-field { position: relative; display: grid; gap: 7px; }
.activity-upload-field > span:first-child {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #4a362b;
  font-size: 12px;
  font-weight: 800;
}
.activity-upload-field > span em {
  color: #e75d2a;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}
.activity-upload-field > span small {
  color: #9a887c;
  font-size: 8px;
  font-weight: 500;
}
.activity-upload-field select,
.activity-upload-field input[type="text"],
.activity-upload-field textarea {
  width: 100%;
  border: 1px solid #eaded4;
  border-radius: 13px;
  outline: none;
  color: #44332a;
  background: #fff;
  font: 12px/1.45 var(--font);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.activity-upload-field select,
.activity-upload-field input[type="text"] { height: 43px; padding: 0 12px; }
.activity-upload-field textarea { min-height: 76px; padding: 11px 12px 22px; resize: vertical; }
.activity-upload-field select:focus,
.activity-upload-field input[type="text"]:focus,
.activity-upload-field textarea:focus {
  border-color: #ef8a59;
  box-shadow: 0 0 0 3px rgba(239, 105, 48, .1);
}
.activity-upload-picker {
  display: grid;
  place-items: center;
  min-height: 116px;
  padding: 16px;
  border: 1.5px dashed #e5b28e;
  border-radius: 17px;
  color: #684b3b;
  background: linear-gradient(145deg, #fff9f1, #fff0e2);
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.activity-upload-picker:hover,
.activity-upload-picker.is-dragging { border-color: #ed6e34; background: #fff0df; transform: translateY(-1px); }
.activity-upload-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.activity-upload-picker-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  margin-bottom: 7px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ff9148, #ed5a28);
  box-shadow: 0 7px 15px rgba(226, 91, 37, .2);
}
.activity-upload-picker-icon svg { width: 18px; fill: currentColor; }
.activity-upload-picker strong { font-size: 12px; }
.activity-upload-picker > small { margin-top: 4px; color: #9a8273; font-size: 8px; }
.activity-upload-previews:empty { display: none; }
.activity-upload-previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.activity-upload-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 13px;
  background: #eee5dc;
  box-shadow: 0 4px 11px rgba(75, 48, 32, .1);
}
.activity-upload-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.activity-upload-preview.is-unpreviewable::before {
  content: "图片已选择";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  color: #8d7769;
  background: #f2e9e1;
  font-size: 9px;
  text-align: center;
}
.activity-upload-preview.is-unpreviewable img { opacity: 0; }
.activity-upload-preview button {
  position: absolute;
  right: 5px;
  top: 5px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 50%;
  color: #fff;
  background: rgba(42, 31, 25, .72);
  font: 700 17px/1 Arial, sans-serif;
  cursor: pointer;
}
.activity-upload-counter { position: absolute; right: 10px; bottom: 7px; color: #a39287; font-size: 8px; }
.activity-upload-consent {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: #725d51;
  font-size: 9px;
  line-height: 1.55;
  cursor: pointer;
}
.activity-upload-consent input { width: 17px; height: 17px; margin: 0; accent-color: #ed642d; }
.activity-upload-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  color: #85552f;
  background: #fff0dd;
  font-size: 9px;
  line-height: 1.5;
}
.activity-upload-status.is-error { color: #a13f2d; background: #ffebe6; }
.activity-upload-status.is-success { color: #3f7748; background: #eaf6e8; }
.activity-upload-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 45px;
  padding: 11px 16px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f47d3d, #e95425);
  box-shadow: 0 9px 20px rgba(214, 86, 35, .2);
  font: 800 13px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
}
.activity-upload-submit span:last-child { font-size: 20px; }
.activity-upload-submit:disabled { color: #b7aaa2; background: #e9e3de; box-shadow: none; cursor: not-allowed; }
.activity-upload-privacy { margin: -5px 0 0; color: #a18d80; font-size: 8px; line-height: 1.5; text-align: center; }

.activity-video-lightbox[hidden] { display: none; }
.activity-video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 20px;
}
.activity-video-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 13, 12, .88);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}
.activity-video-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  background: #171412;
  box-shadow: 0 26px 76px rgba(0,0,0,.48);
}
.activity-video-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  color: #fff;
  background: #241f1c;
}
.activity-video-dialog-head small {
  display: block;
  margin-bottom: 2px;
  color: #ffb181;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}
.activity-video-dialog-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}
.activity-video-dialog-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.08);
  font: 300 27px/1 Arial, sans-serif;
  cursor: pointer;
}
.activity-video-dialog video {
  display: block;
  width: 100%;
  max-height: min(76vh, 680px);
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
  object-fit: contain;
}
.activity-album-lightbox[hidden] { display: none; }
.activity-album-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: grid;
  place-items: center;
  padding: 20px;
}
.activity-album-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(31, 23, 18, .78);
  backdrop-filter: blur(9px);
  cursor: zoom-out;
}
.activity-album-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 26px;
  background: #fffaf5;
  box-shadow: 0 24px 70px rgba(28, 20, 15, .34);
  overscroll-behavior: contain;
}
.activity-album-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.activity-album-head small {
  color: #e3602c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}
.activity-album-head h2 {
  margin: 3px 0 4px;
  color: #3a2920;
  font-size: 25px;
}
.activity-album-head p {
  margin: 0;
  color: #8b7465;
  font-size: 11px;
}
.activity-album-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #ead9cb;
  border-radius: 50%;
  color: #70594b;
  background: #fff;
  font: 300 27px/1 Arial, sans-serif;
  cursor: pointer;
}
.activity-album-grid {
  column-count: 3;
  column-gap: 12px;
}
.activity-album-photo {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  border-radius: 17px;
  color: #4a382d;
  background: #fff;
  box-shadow: 0 7px 18px rgba(83, 58, 40, .1);
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
}
.activity-album-photo:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(83, 58, 40, .17);
}
.activity-album-photo img {
  display: block;
  width: 100%;
  height: auto;
  background: #eee5dd;
}
.activity-album-photo span {
  display: block;
  padding: 9px 11px 10px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}
.activity-album-empty {
  margin: 12px 0 0;
  padding: 42px 20px;
  border: 1px dashed #dfc9b8;
  border-radius: 18px;
  color: #947d6d;
  background: #fff;
  text-align: center;
}
.activity-photo-lightbox[hidden] { display: none; }
.activity-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}
.activity-photo-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(24, 18, 15, .9);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}
.activity-photo-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  margin: 0;
}
.activity-photo-dialog img {
  display: block;
  width: 100%;
  max-height: 78vh;
  border-radius: 20px;
  background: #2b241f;
  box-shadow: 0 22px 54px rgba(0,0,0,.38);
  object-fit: contain;
}
.activity-photo-dialog figcaption {
  padding-top: 13px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.activity-photo-close {
  position: absolute;
  right: -8px;
  top: -48px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.12);
  font: 300 27px/1 Arial, sans-serif;
  cursor: pointer;
}

@media (max-width: 640px) {
  .activity-upload-lightbox { align-items: end; padding: 0; }
  .activity-upload-dialog {
    width: 100%;
    max-height: 92vh;
    padding: 18px 16px calc(18px + var(--safe-bottom));
    border-radius: 24px 24px 0 0;
  }
  .activity-upload-head { margin-bottom: 14px; }
  .activity-upload-head h2 { font-size: 22px; }
  .activity-video-lightbox { padding: 10px; }
  .activity-video-dialog { border-radius: 19px; }
  .activity-video-dialog-head { padding: 11px 12px; }
  .activity-video-dialog-head h2 { font-size: 14px; }
  .activity-video-dialog video { max-height: 70vh; }
  .activity-album-lightbox { padding: 10px; }
  .activity-album-dialog {
    max-height: 92vh;
    padding: 17px 13px;
    border-radius: 22px;
  }
  .activity-album-head { margin-bottom: 14px; padding-inline: 3px; }
  .activity-album-head h2 { font-size: 22px; }
  .activity-album-grid { column-count: 2; column-gap: 9px; }
  .activity-album-photo { margin-bottom: 9px; border-radius: 14px; }
}

@media (max-width: 374px) {
  .activity-header { align-items: start; padding-inline: 2px; }
  .activity-header h2 { font-size: 26px; }
  .activity-header p { font-size: 11px; }
  .activity-header-tag { padding: 7px 9px; font-size: 10px; }
  .activity-feature { min-height: 224px; }
  .activity-moments { grid-template-rows: repeat(2, 68px); gap: 7px; }
  .activity-video-item { grid-template-columns: 56px minmax(0, 1fr) auto 12px; gap: 8px; padding: 9px; }
  .activity-video-duration { display: none; }
  .activity-contribute { grid-template-columns: 98px minmax(0, 1fr); gap: 11px; padding: 14px 14px 10px; }
  .activity-contribute-visual { min-height: 118px; }
  .activity-contribute-photo { width: 66px; height: 86px; }
  .activity-contribute-copy h3 { font-size: 18px; }
}
