/* =========================================================
   周末去哪 · 静态 App 层
   基于 weekend-ui.css 的设计系统；这里只补充：
   - 应用外壳 / 滚动 / 路由容器
   - 地图层、底部弹层、Toast、表单等交互组件
   - 移动端全屏与无障碍（可点击、可聚焦）细节
   ========================================================= */

html,
body {
  height: 100%;
}

body.wq-body {
  align-items: center;
  min-height: 100dvh;
  margin: 0;
  background: var(--wq-page-bg);
  -webkit-tap-highlight-color: transparent;
}

/* ---------- App shell ---------- */
.wq-phone.wq-app {
  height: min(var(--wq-phone-h), calc(100dvh - 64px));
  min-height: 0;
}

.wq-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--wq-surface);
  animation: wq-screen-in 0.24s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes wq-screen-in {
  from {
    opacity: 0.4;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 视图滚动根：DOM 是 #screen.wq-screen > .wq-view > main.wq-content，
   .wq-content 是 .wq-view 的子元素，不是 .wq-screen 的直接子元素。
   之前写成 .wq-screen > .wq-content 从未匹配，整页内容被 .wq-view 的
   overflow:hidden 裁掉 —— 这就是「页面不能向下滚动」的根因。 */
.wq-view > .wq-content,
.wq-view > .wq-empty {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.wq-view.wq-map > .wq-content,
.wq-view--detail > .wq-content,
.wq-view--detail > .wq-empty {
  overflow-y: visible;
  overflow-x: visible;
}

.wq-content::-webkit-scrollbar,
.wq-empty::-webkit-scrollbar,
.wq-detail-body::-webkit-scrollbar,
.wq-action-sheet::-webkit-scrollbar,
.wq-sheet__body::-webkit-scrollbar {
  display: none;
}

.wq-detail-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

/* ---------- Clickable affordances ---------- */
button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

[data-action],
[data-nav] {
  cursor: pointer;
}

.wq-btn,
.wq-chip,
.wq-tab,
.wq-date,
.wq-pill,
.wq-icon-btn,
.wq-card,
.wq-menu__row,
.wq-sheet-row,
.wq-pin-wrap {
  transition:
    transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

/* 按钮与 Chip 文字居中对齐与基线矫正（修复中英文与图标错位） */
.wq-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  box-sizing: border-box;
  line-height: 1.2;
}

.wq-chip .wq-ico {
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  flex-shrink: 0;
}

/* 无论分类是 peach/lilac/lemon/coral 哪个撞色，active 时都保持统一深薄荷绿主色 */
.wq-chip.active,
.wq-chip--active {
  background: var(--wq-accent) !important;
  color: #fff !important;
  border-color: var(--wq-accent) !important;
  box-shadow: var(--wq-shadow-accent) !important;
  font-weight: 700;
}

.wq-chip.active .wq-ico,
.wq-chip--active .wq-ico {
  color: #fff !important;
}

/* 分类条支持左右滑动，保证全部选项都能划出来 */
.wq-filters {
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.wq-filters:active {
  cursor: grabbing;
}

.wq-btn:active,
.wq-chip:active,
.wq-date:active,
.wq-pill:active,
.wq-icon-btn:active,
.wq-pin-wrap:active {
  transform: scale(0.96);
}

.wq-card:active {
  transform: scale(0.995);
}

:focus-visible {
  outline: 2px solid var(--wq-accent);
  outline-offset: 2px;
}

@media (hover: hover) {
  .wq-card[data-action]:hover {
    box-shadow: var(--wq-shadow-lg);
  }
  .wq-menu__row:hover {
    background: var(--wq-accent-pale);
  }
  .wq-chip:hover {
    filter: brightness(0.98);
  }
  .wq-btn--want:hover {
    background: var(--wq-accent);
    color: #fff;
  }
}

/* ---------- Home search + district filter (精简排版，突显杂志感) ---------- */
.home-search-row {
  margin: 0 var(--wq-page-x) 8px;
  display: flex;
  flex-shrink: 0;
}

.home-search {
  width: 100%;
  background: var(--wq-surface);
  border: 1px solid var(--wq-hairline);
  box-shadow: 0 2px 8px rgba(42, 80, 72, 0.04);
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--wq-radius-pill);
  box-sizing: border-box;
}

.home-search .wq-ico {
  flex-shrink: 0;
  margin-right: 6px;
  color: var(--wq-text-muted);
}

.home-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: var(--wq-fs-sm);
  line-height: 36px;
  color: var(--wq-text);
  padding: 0;
}

.home-search input::placeholder {
  color: var(--wq-text-muted);
  font-size: var(--wq-fs-xs);
}

.home-search input::-webkit-search-cancel-button {
  display: none;
}

.home-search__clear {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 12px;
  font-weight: 700;
  background: var(--wq-hairline);
  color: var(--wq-text-secondary);
  cursor: pointer;
}

/* 分类条精简：去除厚重背景框与冗余 padding，呼吸感更强 */
.wq-filters {
  margin: 0 var(--wq-page-x) 6px !important;
  padding: 2px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  gap: 6px !important;
}

.wq-filters .wq-chip {
  padding: 4px 10px;
  font-size: 12px;
  height: 28px;
  box-sizing: border-box;
}

.wq-card__row--top {
  align-items: center;
}

.wq-card__dist {
  flex-shrink: 0;
  font-size: var(--wq-fs-xs);
  color: var(--wq-text-muted);
}

.wq-hero-card__dist {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: var(--wq-radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--wq-text);
  font-size: var(--wq-fs-xs);
  font-weight: 700;
}

/* ---------- City switcher ---------- */
button.wq-city {
  display: flex;
  align-items: center;
  gap: var(--wq-space-1);
  font-size: var(--wq-fs-md);
  font-weight: 600;
  color: var(--wq-text-secondary);
  border-radius: var(--wq-radius-pill);
  padding: 2px 4px 2px 0;
}

button.wq-city:hover {
  color: var(--wq-accent-deep);
}

/* ---------- Status bar live clock ---------- */
.wq-status {
  font-variant-numeric: tabular-nums;
}

.wq-status__right {
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 1px;
}

/* ---------- Tabbar as buttons ---------- */
.wq-tabbar button.wq-tab {
  background: none;
  border: 0;
  padding: 0;
  -webkit-appearance: none;
}

.wq-tabbar button.wq-tab:active .wq-tab__icon {
  transform: scale(0.92);
}

/* ---------- Want button states & layout (添加要去名单) ---------- */
.wq-btn--want {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--wq-accent-deep);
  background: var(--wq-accent-soft);
  border: 1.5px solid var(--wq-accent);
  border-radius: var(--wq-radius-pill);
  box-sizing: border-box;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(61, 184, 154, 0.12);
}

.wq-btn--want:active {
  transform: scale(0.92);
}

.wq-btn--want .wq-btn__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.wq-btn--want.is-on {
  background: var(--wq-accent);
  border-color: var(--wq-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(61, 184, 154, 0.35);
}

.wq-btn--want.is-on .wq-btn__ico {
  filter: brightness(0) invert(1);
}

.wq-btn--planned {
  background: #f0f4f3;
  border: 1px solid #d5e2de;
  color: var(--wq-text-muted);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

.wq-btn--planned .wq-btn__ico {
  font-size: 11px;
  font-weight: 800;
  color: var(--wq-accent-deep);
}

/* ---------- Home Hero Foot ---------- */
.wq-hero-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wq-hero-card__foot .wq-meta {
  flex: 1;
  min-width: 0;
}

.wq-hero-card__want {
  flex-shrink: 0;
}

.wq-empty-block {
  display: flex;
  flex-direction: column;
  gap: var(--wq-space-3);
  padding: var(--wq-space-6) var(--wq-space-4);
  text-align: center;
  border: 1.5px dashed var(--wq-hairline);
  border-radius: var(--wq-radius-xl);
  background: var(--wq-surface-soft);
  align-items: center;
}

/* 无数据 / 空态通用胶囊按钮组 */
.wq-empty-actions,
.wq-empty__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.wq-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: var(--wq-fs-md);
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
  text-decoration: none;
}
.wq-empty-btn:active {
  transform: scale(0.96);
  opacity: 0.9;
}

.wq-empty-btn--primary {
  background: linear-gradient(135deg, #3db89a 0%, #1f8f74 100%);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(61, 184, 154, 0.32);
}

.wq-empty-btn--secondary {
  background: linear-gradient(135deg, #e8f7f2 0%, #ffffff 100%);
  color: var(--wq-accent-deep);
  border-color: var(--wq-accent);
  box-shadow: 0 4px 12px rgba(31, 90, 78, 0.08);
}

/* 地图底部卡片空态按钮组 */
.map-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.map-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: var(--wq-fs-sm);
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.map-empty-btn:active {
  transform: scale(0.96);
}

.map-empty-btn--primary {
  background: linear-gradient(135deg, #3db89a 0%, #1f8f74 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(61, 184, 154, 0.28);
}

.map-empty-btn--secondary {
  background: linear-gradient(135deg, #e8f7f2 0%, #ffffff 100%);
  color: var(--wq-accent-deep);
  border-color: var(--wq-accent);
  box-shadow: 0 3px 8px rgba(31, 90, 78, 0.08);
}

/* ---------- Map ---------- */
.wq-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
}

.map-photo,
.map-svg,
.map-board {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(148px + env(safe-area-inset-top, 0px));
  bottom: calc(78px + env(safe-area-inset-bottom, 0px) + 116px);
  width: 100%;
  height: calc(100% - 148px - env(safe-area-inset-top, 0px) - 78px - env(safe-area-inset-bottom, 0px) - 116px);
  object-fit: cover;
  pointer-events: none;
  background: transparent;
}

.map-photo {
  opacity: 0.82;
}

.map-svg {
  opacity: 0.4;
}

/* 分区分片底图：区插画本身是淡彩，不再额外淡化 */
.map-board {
  opacity: 1;
}

/* ---------- 地图舞台：铺满搜索框/选择框与下方滑动框之间的剩余空间 ---------- *
 * 上方搜索框与选择框占所在行，地图为透明色并铺满剩余展示空间；
 * 下方滑动框背景为透明色，不遮挡地图数据；
 * 底图与点位坐标都是 1200×1600（3:4）归一化坐标，
 * 缩放平移只作用在 zoom 层（transform）。 */
.map-stage {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(148px + env(safe-area-inset-top, 0px));
  bottom: calc(78px + env(safe-area-inset-bottom, 0px) + 116px);
  z-index: 1;
  overflow: hidden;
  touch-action: none;
  background: transparent;
}

.map-stage__zoom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  will-change: transform;
  background: transparent;
}

.map-stage__base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  background: transparent;
  /* 底图稍微降饱和，上面的区色块才读得出来；不压暗，插画质感还在 */
  filter: saturate(0.85) brightness(1.02);
}

/* 11 个区的色块与区界：底图是无字插画，区界必须前端叠上去才有「分区」观感 */
.map-districts {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-district {
  pointer-events: auto;
  cursor: pointer;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.6;
  stroke-linejoin: round;
  transition:
    fill-opacity 0.18s ease,
    stroke 0.18s ease;
}

.map-district--mint {
  fill: #3db89a;
  fill-opacity: 0.3;
}

.map-district--lilac {
  fill: #9b7fe0;
  fill-opacity: 0.3;
}

.map-district--peach {
  fill: #ff9f8a;
  fill-opacity: 0.3;
}

.map-district--lemon {
  fill: #d4a93a;
  fill-opacity: 0.3;
}

.map-district--coral {
  fill: #e87898;
  fill-opacity: 0.3;
}

.map-district--sky {
  fill: #5aa9d6;
  fill-opacity: 0.3;
}

.map-district:hover {
  fill-opacity: 0.48;
  stroke: #fff;
  stroke-width: 2.2;
}

.map-district.is-active {
  fill: #3db89a;
  fill-opacity: 0.5;
  stroke: #1f8f74;
  stroke-width: 2;
}

.map-stage__points {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 区名：不跟随缩放变大的小胶囊，点一下进这一区的分片 */
.map-anchor {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #1f8f74;
  font-family: var(--wq-font-sans, inherit);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(42, 80, 72, 0.16);
  /* 反向缩放：地图放大 n 倍，区名保持原大小 */
  transform: translate(-50%, -50%) scale(calc(1 / var(--z, 1)));
  transition:
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.map-anchor:hover,
.map-anchor:focus-visible {
  background: #3db89a;
  color: #fff;
  box-shadow: 0 5px 14px rgba(61, 184, 154, 0.34);
  outline: none;
}

.map-anchor:active {
  transform: translate(-50%, -50%) scale(calc(0.94 / var(--z, 1)));
}

.map-anchor--off {
  color: var(--wq-ink-3);
  background: rgba(255, 255, 255, 0.78);
  cursor: default;
}

.map-anchor__n {
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(61, 184, 154, 0.16);
  color: #1f8f74;
  font-size: 9px;
  font-weight: 700;
}

.map-anchor:hover .map-anchor__n,
.map-anchor:focus-visible .map-anchor__n {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* 缩放按钮：右下角两个小圆钮 */
.map-zoom {
  position: absolute;
  right: 14px;
  bottom: calc(208px + env(safe-area-inset-bottom, 0px));
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-zoom__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1.5px solid var(--wq-hairline);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--wq-ink-2);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(42, 80, 72, 0.12);
}

.map-zoom__btn svg {
  width: 15px;
  height: 15px;
}

.map-zoom__btn:hover {
  color: #1f8f74;
  border-color: rgba(61, 184, 154, 0.5);
}

.map-zoom__btn:active {
  transform: scale(0.92);
}

.map-stage.is-panning {
  cursor: grabbing;
}

/* 「回全市」：清新可爱的小胶囊 — 薄荷渐变底、回旋箭头图标、区名 + 副文案 */
.map-board-tip {
  position: absolute;
  left: 50%;
  bottom: calc(208px + env(safe-area-inset-bottom, 0px));
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px 7px 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: linear-gradient(135deg, #3db89a 0%, #46c9a6 55%, #6ad9bb 100%);
  color: #fff;
  font-family: var(--wq-font-sans, inherit);
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 8px 22px rgba(31, 143, 116, 0.32),
    0 2px 6px rgba(31, 143, 116, 0.18);
  transform: translateX(-50%);
  animation: board-tip-in 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.map-board-tip__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  flex-shrink: 0;
}

.map-board-tip__ico svg {
  width: 15px;
  height: 15px;
  animation: board-tip-nudge 2.2s ease-in-out infinite;
}

.map-board-tip__txt {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1;
}

.map-board-tip__sub {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
}

.map-board-tip:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.04);
  box-shadow:
    0 12px 28px rgba(31, 143, 116, 0.38),
    0 3px 8px rgba(31, 143, 116, 0.22);
  filter: saturate(1.06);
}

.map-board-tip:active {
  transform: translateX(-50%) scale(0.94);
  transition-duration: 0.09s;
}

.map-board-tip:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@keyframes board-tip-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.86);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* 图标轻轻左右摆，提示「可以回去」 */
@keyframes board-tip-nudge {
  0%,
  62%,
  100% {
    transform: translateX(0);
  }
  72% {
    transform: translateX(-2px);
  }
  82% {
    transform: translateX(1.5px);
  }
  92% {
    transform: translateX(-1px);
  }
}

/* 切区时底图淡入、点位逐颗退场，避免硬切 */
.map-stage--board .map-stage__base {
  animation: board-fade-in 0.45s ease both;
}

@keyframes board-fade-in {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.wq-point {
  animation: point-pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* 图标反向缩放：地图放大时点位保持原来的大小，
   放大后点与点之间才会真正拉开，而不是一起变大挤在一起 */
@keyframes point-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(calc(1 / var(--z, 1)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-board-tip,
  .map-board-tip__ico svg,
  .map-stage--board .map-stage__base,
  .wq-point {
    animation: none !important;
    transition: none !important;
  }
}

.wq-map--board .map-road,
.wq-map--board .map-deco {
  display: none;
}

/* 分片区位：归一化坐标 + 区原型包里的分类针脚 */
.wq-point {
  position: absolute;
  transform: translate(-50%, -50%) scale(calc(1 / var(--z, 1)));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  pointer-events: auto;
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.wq-point:active {
  transform: translate(-50%, -50%) scale(calc(0.94 / var(--z, 1)));
}

.wq-point__icon {
  width: 34px;
  height: 34px;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(42, 80, 72, 0.14));
}

.wq-point__label {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--wq-accent-deep);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 2px 6px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(42, 80, 72, 0.08);
}

.wq-point.sel .wq-point__icon {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0))
    drop-shadow(0 8px 16px rgba(61, 184, 154, 0.45));
}

.wq-point.sel .wq-point__label {
  background: var(--wq-accent-soft);
  color: var(--wq-accent-deep);
}

/* 全市总览上 22 个代表点：平时只露图标，选中才给名字，免得挤成一团 */
.wq-map--overview .wq-point__label {
  display: none;
}

.wq-map--overview .wq-point.sel .wq-point__label {
  display: inline-block;
}

.map-road {
  position: absolute;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  pointer-events: none;
}

.map-road--r1 {
  top: 180px;
  left: -20px;
  width: 460px;
  height: 10px;
  transform: rotate(-8deg);
}
.map-road--r2 {
  top: 320px;
  left: -40px;
  width: 500px;
  height: 8px;
  transform: rotate(12deg);
}
.map-road--r3 {
  top: 120px;
  left: 180px;
  width: 10px;
  height: 520px;
  transform: rotate(6deg);
}
.map-road--r4 {
  top: 250px;
  left: 60px;
  width: 8px;
  height: 420px;
  transform: rotate(-4deg);
}

.map-deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.map-deco--park {
  width: 120px;
  height: 90px;
  border-radius: 40px;
  background: rgba(61, 184, 154, 0.22);
  top: 400px;
  left: 40px;
}
.map-deco--water {
  width: 220px;
  height: 70px;
  border-radius: 40px;
  background: rgba(155, 127, 224, 0.2);
  top: 520px;
  right: 20px;
  transform: rotate(-10deg);
}
.map-deco--lemon {
  width: 90px;
  height: 70px;
  border-radius: 36px;
  background: rgba(255, 224, 138, 0.28);
  top: 280px;
  right: 48px;
}
.map-deco--coral {
  width: 70px;
  height: 54px;
  border-radius: 28px;
  background: rgba(232, 120, 152, 0.16);
  top: 360px;
  left: 200px;
}

.map-topbar {
  position: absolute;
  top: 52px;
  left: 16px;
  right: 16px;
  z-index: 6;
  display: flex;
  gap: 8px;
  align-items: center;
}

.map-chips {
  position: absolute;
  top: 108px;
  left: 16px;
  right: 16px;
  z-index: 6;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  cursor: grab;
  user-select: none;
}

.map-chips:active {
  cursor: grabbing;
}

.map-chips .wq-chip {
  flex-shrink: 0;
  white-space: nowrap;
}

/* 修复「周末灵感」副标题错位与挤压问题 */
.wq-section-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--wq-space-2);
  min-height: 40px;
}

.wq-section-bar .wq-section-label {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: 1;
  min-width: 0;
  margin: 0;
  width: auto;
  line-height: 1.25;
}

.wq-section-bar .wq-section-label span {
  font-size: var(--wq-fs-xs);
  color: var(--wq-text-muted);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: normal;
}

.wq-section-bar .wq-link,
.wq-section-bar button {
  flex-shrink: 0;
  white-space: nowrap;
}

.map-chips::-webkit-scrollbar {
  display: none;
}

.map-search {
  display: flex;
  align-items: center;
  gap: var(--wq-space-2);
  flex: 1;
  min-width: 0;
}

.map-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: var(--wq-fs-base);
  color: var(--wq-text);
}

.map-search input::placeholder {
  color: var(--wq-text-muted);
}

.wq-pin-wrap {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
}

.wq-pin-wrap .wq-pin__label {
  pointer-events: none;
}

/* ---------- 地图底部可滑动去处卡片流 (Sliding Cards Deck) ---------- */
/* 滑动框背景为透明色，白底卡片在底部轻盈悬浮、左右流畅横滑。
   桌面端用鼠标拖拽横滑（Pointer Events），移动端手机走原生平滑横滑。 */
.map-cards-deck {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  z-index: 7;
  padding: 6px 0 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: auto;
}

.map-cards-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 18px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
  touch-action: pan-x pan-y;
}

.map-cards-rail.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.map-cards-rail.is-dragging .map-place-card {
  cursor: grabbing;
}

.map-cards-rail:active {
  cursor: grabbing;
}

.map-cards-rail::-webkit-scrollbar {
  display: none;
}

.map-place-card {
  touch-action: pan-x pan-y;
  flex: 0 0 calc(100% - 44px);
  max-width: 334px;
  scroll-snap-align: center;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--wq-surface, #ffffff);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(42, 80, 72, 0.12);
  border: 1.5px solid transparent;
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  flex-shrink: 0;
}

.map-place-card:hover {
  box-shadow: 0 10px 28px rgba(42, 80, 72, 0.16);
}

.map-place-card.is-selected {
  border-color: var(--wq-accent, #3db89a);
  box-shadow: 0 10px 28px rgba(61, 184, 154, 0.24);
  transform: translateY(-2px);
}

.map-place-card__thumb {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--wq-surface-soft);
}

.map-place-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-place-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-place-card__row-t {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.map-place-card__title {
  font-size: var(--wq-fs-base);
  font-weight: 700;
  color: var(--wq-text);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.map-place-card__sub {
  font-size: var(--wq-fs-xs);
  color: var(--wq-text-muted);
  margin: 3px 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-place-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.map-place-card--empty {
  flex: 0 0 100%;
  max-width: 100%;
  justify-content: center;
  padding: 20px;
  flex-direction: column;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px dashed var(--wq-hairline);
  box-shadow: var(--wq-shadow-sm);
}

.map-place-card__empty-t {
  font-size: var(--wq-fs-base);
  font-weight: 700;
  color: var(--wq-text);
}

.map-place-card__empty-s {
  font-size: var(--wq-fs-xs);
  color: var(--wq-text-muted);
  margin-top: 4px;
}

/* 兼容旧样式规则 */
.wq-sheet {
  display: none;
}

/* ---------- Detail ---------- */
.wq-detail-body {
  padding-bottom: 120px;
}

.wq-detail-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wq-nav-actions {
  display: flex;
  gap: var(--wq-space-2);
}

.wq-map-card {
  cursor: pointer;
}

/* ---------- Wishlist ---------- */
.seg-button {
  border: 0;
  background: none;
  font: inherit;
}

/* ---------- Plan ---------- */
.wq-date {
  border: 1px solid var(--wq-hairline);
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
}

.wq-pill {
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.wq-timeline__card {
  position: relative;
}

.wq-step-tools {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.wq-mini-btn {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wq-surface-soft);
  border: 1px solid var(--wq-hairline);
  color: var(--wq-text-muted);
  font-size: 14px;
  line-height: 1;
}

.wq-mini-btn:hover {
  background: var(--wq-coral);
  color: var(--wq-coral-deep);
  border-color: var(--wq-coral-mid);
}

/* 轻计划 · 每站可见的调整操作（顺序 / 换站 / 时间 / 移出） */
.wq-plan-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wq-plan-manage {
  border: 1px solid var(--wq-accent);
  background: var(--wq-accent-soft);
  color: var(--wq-accent-deep);
  font: inherit;
  font-size: var(--wq-fs-sm);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--wq-radius-pill);
  cursor: pointer;
  white-space: nowrap;
}

.wq-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 2px;
}

.wq-step-act {
  border: 1px solid var(--wq-hairline);
  background: var(--wq-surface-soft);
  color: var(--wq-accent-deep);
  font: inherit;
  font-size: var(--wq-fs-xs);
  font-weight: 700;
  line-height: 1;
  padding: 7px 10px;
  border-radius: var(--wq-radius-pill);
  cursor: pointer;
  white-space: nowrap;
}

.wq-step-act:hover:not(:disabled) {
  border-color: var(--wq-accent);
  background: var(--wq-accent-soft);
}

.wq-step-act:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wq-step-act--danger:hover:not(:disabled) {
  border-color: var(--wq-coral-mid, var(--wq-coral));
  background: var(--wq-coral-soft, var(--wq-coral));
  color: var(--wq-coral-deep);
}

/* 轻计划 · 时间轴上的时间本身可点开编辑 */
.wq-timeline__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px dashed transparent;
  background: transparent;
  font: inherit;
  font-size: var(--wq-fs-sm);
  font-weight: 700;
  color: var(--wq-text);
  padding: 3px 8px 3px 4px;
  margin: 0 0 6px -4px;
  border-radius: var(--wq-radius-pill);
  cursor: pointer;
  text-align: left;
}

.wq-timeline__time:hover,
.wq-timeline__time:focus-visible {
  border-color: var(--wq-accent);
  background: var(--wq-accent-soft);
  color: var(--wq-accent-deep);
}

.wq-timeline__time .wq-ico {
  color: var(--wq-accent-deep);
}

.wq-timeline__time-edit {
  font-size: 10px;
  font-weight: 600;
  color: var(--wq-text-muted);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.wq-timeline__time:hover .wq-timeline__time-edit,
.wq-timeline__time:focus-visible .wq-timeline__time-edit {
  opacity: 1;
}

/* 轻计划 · 日期条：共 60 天可选项，横向滚动而不是挤成一片 */
.wq-dates {
  display: flex;
  gap: var(--wq-space-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 2px 0 4px;
  scroll-snap-type: x proximity;
}

.wq-dates::-webkit-scrollbar {
  display: none;
}

.wq-dates .wq-date {
  flex: 0 0 auto;
  min-width: 58px;
  scroll-snap-align: start;
}

/* 工作日（含调休补班）在「全部日期」里的弱化样式 */
.wq-date--work {
  opacity: 0.62;
}

.wq-date--work.wq-date.active {
  opacity: 1;
}

/* 只看休息日 / 全部日期 切换 */
.wq-rest-toggle {
  border: 1px solid var(--wq-hairline);
  background: var(--wq-surface-soft);
  color: var(--wq-text-muted);
  font: inherit;
  font-size: var(--wq-fs-xs);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--wq-radius-pill);
  cursor: pointer;
  white-space: nowrap;
}

.wq-rest-toggle.active {
  border-color: var(--wq-accent);
  background: var(--wq-accent-soft);
  color: var(--wq-accent-deep);
}

.wq-btn--danger {
  height: 52px;
  border-radius: var(--wq-radius-lg);
  background: var(--wq-coral);
  color: var(--wq-coral-deep);
  font-size: var(--wq-fs-lg);
  font-weight: 800;
  border: 1.5px solid var(--wq-coral-mid, var(--wq-coral));
  padding: 0 var(--wq-space-4);
  cursor: pointer;
}

.wq-timeline__card {
  padding-right: var(--wq-space-3, 12px);
}

/* 首页 · 当前出行日行程提醒条（「通知」开关控制） */
.wq-home-remind {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 2 * var(--wq-page-pad, 20px));
  margin: 0 var(--wq-page-pad, 20px) 4px;
  padding: 9px 12px;
  border: 1px solid var(--wq-accent-soft);
  border-radius: var(--wq-radius-lg, 14px);
  background: var(--wq-accent-soft);
  color: var(--wq-accent-deep);
  font: inherit;
  font-size: var(--wq-fs-sm, 13px);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.wq-home-remind__txt {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wq-home-remind:hover {
  border-color: var(--wq-accent, #3db89a);
}

/* 「我的」头像上的编辑角标变成可点按钮 */
button.wq-avatar-badge {
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

button.wq-avatar-badge:hover {
  background: var(--wq-accent-soft);
}

.wq-plan-empty {
  margin-left: 56px;
  padding: var(--wq-space-4);
  border: 1.5px dashed var(--wq-hairline);
  border-radius: var(--wq-radius-xl);
  font-size: var(--wq-fs-md);
  color: var(--wq-text-muted);
  text-align: center;
  line-height: 1.6;
}

/* ---------- Me ---------- */
button.wq-menu__row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--wq-surface-soft);
  background: transparent;
  font: inherit;
  text-align: left;
}

button.wq-menu__row:last-child {
  border-bottom: none;
}

.wq-menu__row .wq-ico {
  transition: transform 0.18s ease;
}

@media (hover: hover) {
  button.wq-menu__row:hover .wq-menu__chev .wq-ico {
    transform: translateX(2px);
  }
}

/* ---------- Bottom sheet / modal ---------- */
.wq-mask {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(24, 46, 41, 0.34);
  animation: wq-fade-in 0.18s ease both;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.wq-action-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 31;
  background: var(--wq-surface);
  border-radius: var(--wq-radius-4xl) var(--wq-radius-4xl) 0 0;
  padding: 10px var(--wq-space-5) calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -16px 48px rgba(31, 60, 54, 0.16);
  max-height: 80%;
  overflow-y: auto;
  animation: wq-rise 0.26s cubic-bezier(0.2, 0.75, 0.3, 1) both;
  scrollbar-width: none;
}

@keyframes wq-rise {
  from {
    transform: translateY(28px);
    opacity: 0.4;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes wq-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.wq-as__handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--wq-accent-mid);
  margin: 0 auto 14px;
}

.wq-as__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wq-space-3);
  font-size: var(--wq-fs-2xl);
  font-weight: 800;
  color: var(--wq-text);
  margin-bottom: var(--wq-space-3);
}

.wq-as__close {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background: var(--wq-surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--wq-text-muted);
  flex-shrink: 0;
}

.wq-as__row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--wq-space-3);
  padding: 11px 8px;
  border-radius: var(--wq-radius-lg);
  text-align: left;
  font: inherit;
}

.wq-as__row:hover {
  background: var(--wq-accent-pale);
}

.wq-as__row.is-current {
  background: var(--wq-accent-soft);
}

.wq-as__row-thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.wq-as__row-ico {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wq-accent-soft);
  color: var(--wq-accent-deep);
  flex-shrink: 0;
}

.wq-as__row-body {
  flex: 1;
  min-width: 0;
}

.wq-as__row-t {
  font-size: var(--wq-fs-lg);
  font-weight: 700;
  color: var(--wq-text);
}

.wq-as__row-s {
  font-size: var(--wq-fs-xs);
  color: var(--wq-text-muted);
  margin-top: 2px;
}

.wq-as__check {
  color: var(--wq-accent-deep);
  font-weight: 800;
  font-size: var(--wq-fs-sm);
}

.wq-as__hint {
  font-size: var(--wq-fs-sm);
  color: var(--wq-text-muted);
  line-height: 1.6;
  margin: var(--wq-space-2) 0 var(--wq-space-3);
}

.wq-as__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wq-space-2);
}

.wq-form-actions {
  display: flex;
  gap: var(--wq-space-2);
  margin-top: var(--wq-space-4);
}

.wq-field {
  margin-bottom: var(--wq-space-3);
}

.wq-field__label {
  font-size: var(--wq-fs-xs);
  font-weight: 700;
  color: var(--wq-text-muted);
  margin-bottom: 6px;
  display: block;
}

.wq-input {
  width: 100%;
  height: 46px;
  border-radius: var(--wq-radius-sm);
  border: 1.5px solid var(--wq-hairline);
  background: var(--wq-surface-soft);
  padding: 0 14px;
  font: inherit;
  font-size: var(--wq-fs-base);
  color: var(--wq-text);
}

.wq-input:focus {
  outline: none;
  border-color: var(--wq-accent);
  background: var(--wq-surface);
}

.wq-switch {
  width: 52px;
  height: 30px;
  border-radius: 15px;
  background: var(--wq-hairline);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.wq-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(31, 60, 54, 0.18);
  transition: transform 0.2s ease;
}

.wq-switch.is-on {
  background: var(--wq-accent);
}

.wq-switch.is-on::after {
  transform: translateX(22px);
}

.wq-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wq-space-3);
  padding: var(--wq-space-3) 4px;
}

.wq-toggle-row__t {
  font-size: var(--wq-fs-lg);
  font-weight: 700;
  color: var(--wq-text);
}

.wq-toggle-row__s {
  font-size: var(--wq-fs-xs);
  color: var(--wq-text-muted);
  margin-top: 2px;
}

/* ---------- Toast ---------- */
.wq-toast {
  position: absolute;
  left: 50%;
  bottom: 108px;
  transform: translate(-50%, 10px);
  max-width: 82%;
  padding: 10px 16px;
  border-radius: var(--wq-radius-pill);
  background: rgba(30, 52, 47, 0.94);
  color: #fff;
  font-size: var(--wq-fs-md);
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.wq-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
  body.wq-body {
    padding: 0;
    align-items: stretch;
  }

  .wq-phone.wq-app {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .wq-tabbar {
    bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .wq-bottom-bar {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .wq-status {
    height: calc(var(--wq-status-h) + env(safe-area-inset-top, 0px));
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
  }

  .map-topbar {
    top: calc(52px + env(safe-area-inset-top, 0px));
  }

  .map-chips {
    top: calc(108px + env(safe-area-inset-top, 0px));
  }

  .wq-detail-nav {
    top: calc(52px + env(safe-area-inset-top, 0px));
  }
}

@media (max-width: 380px) {
  .wq-hero-card__img {
    height: 150px;
  }
  .wq-detail-hero {
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
/* ---------- App view wrapper ---------- */
.wq-view {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--wq-surface);
  animation: wq-screen-in 0.24s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.wq-view.wq-map {
  position: absolute;
  inset: 0;
  height: auto;
  background: transparent;
}

.map-pin-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(148px + env(safe-area-inset-top, 0px));
  bottom: calc(78px + env(safe-area-inset-bottom, 0px) + 116px);
  z-index: 3;
}

/* ---------- Sheet content ---------- */
.wq-as__row-t,
.wq-as__row-s {
  display: block;
}

.wq-as__row-body {
  min-width: 0;
}

button.wq-timeline__add {
  display: block;
  width: calc(100% - 56px);
  font: inherit;
  cursor: pointer;
}

button.wq-tip {
  width: auto;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

a.wq-map-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.wq-empty .wq-link {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.wq-detail-body {
  min-height: 0;
}

/* 详情页滚动容器：覆盖通用视图的 body 内部滚动，让面板随滚动上滑盖住大图 */
.wq-view--detail > .wq-detail-scroll > .wq-detail-body {
  flex: none;
  min-height: 0;
  overflow-x: visible;
  overflow-y: visible;
  overscroll-behavior: visible;
}
.wq-view--detail > .wq-detail-top .wq-status {
  --wq-status-h: 44px;
}
.wq-view--detail > .wq-detail-top .wq-detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.wq-summary {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wq-timeline__card img {
  display: block;
}

/* ---------- 首页左上角「城市 · 区」清新下拉选择器 ---------- */
.wq-city--pick {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  border-radius: var(--wq-radius-pill);
  border: 1.5px solid var(--wq-accent-soft);
  background: linear-gradient(135deg, #f2fbf7 0%, #eef8ff 100%);
  color: var(--wq-accent-deep);
  font: inherit;
  font-size: var(--wq-fs-sm);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(61, 184, 154, 0.1);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.wq-city--pick:hover {
  transform: translateY(-1px);
  border-color: var(--wq-accent-mid, #bfe8dc);
  box-shadow: 0 4px 12px rgba(61, 184, 154, 0.18);
}

.wq-city--pick .wq-city__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(61, 184, 154, 0.16);
}

.wq-city--pick .wq-city__ico .wq-ico {
  width: 11px;
  height: 11px;
}

.wq-city--pick .wq-city__txt {
  letter-spacing: 0.2px;
}

.wq-city--pick .wq-city__caret {
  display: inline-flex;
  align-items: center;
  color: var(--wq-text-muted);
  transform: rotate(90deg);
}

.wq-city--pick .wq-city__caret .wq-ico {
  width: 10px;
  height: 10px;
}

/* 下拉浮层 */
.wk-picker-root {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.wk-picker__mask {
  position: absolute;
  inset: 0;
  background: rgba(42, 80, 72, 0.12);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: auto;
}

.wk-picker-root.is-open .wk-picker__mask {
  opacity: 1;
}

.wk-picker {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 58px;
  max-height: min(66%, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: var(--wq-surface);
  border-radius: 22px;
  padding: 12px 12px 10px;
  box-shadow: 0 18px 44px rgba(42, 80, 72, 0.18);
  border: 1.5px solid #e8f5f0;
  pointer-events: auto;
  transform: translateY(-8px) scale(0.97);
  transform-origin: 22px 0;
  opacity: 0;
  transition:
    transform 0.2s cubic-bezier(0.2, 0.8, 0.3, 1),
    opacity 0.18s ease;
  box-sizing: border-box;
}

.wk-picker::-webkit-scrollbar {
  display: none;
}

.wk-picker-root.is-open .wk-picker {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.wk-picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 8px;
}

.wk-picker__hint {
  font-size: var(--wq-fs-xs);
  font-weight: 700;
  color: var(--wq-text-muted);
  letter-spacing: 0.3px;
}

.wk-picker__close {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--wq-surface-soft);
  color: var(--wq-text-secondary);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.wk-picker__search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  margin-bottom: 10px;
  border-radius: var(--wq-radius-pill);
  background: var(--wq-surface-soft);
  border: 1px solid transparent;
  box-sizing: border-box;
}

.wk-picker__search .wq-ico {
  width: 14px;
  height: 14px;
  color: var(--wq-text-muted);
  flex-shrink: 0;
}

.wk-picker__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: var(--wq-fs-sm);
  color: var(--wq-text);
}

.wk-picker__search input::placeholder {
  color: var(--wq-text-muted);
  font-size: var(--wq-fs-xs);
}

.wk-picker__group {
  padding: 6px 4px 10px;
  border-radius: 16px;
}

.wk-picker__group.is-current {
  background: linear-gradient(135deg, #f5fdfa 0%, #f2f9ff 100%);
}

.wk-picker__city {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 4px 6px 8px;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.wk-picker__emoji {
  font-size: 15px;
  line-height: 1;
}

.wk-picker__city-t {
  font-size: var(--wq-fs-base);
  font-weight: 800;
  color: var(--wq-text);
}

.wk-picker__city-s {
  font-size: var(--wq-fs-xs);
  color: var(--wq-text-muted);
}

.wk-picker__badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  color: var(--wq-accent-deep);
  background: #e4f7f1;
  border-radius: var(--wq-radius-pill);
  padding: 2px 8px;
  line-height: 1.4;
}

.wk-picker__districts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.wk-picker__d {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: var(--wq-radius-pill);
  border: 1.5px solid #e8f2ee;
  background: #fff;
  color: var(--wq-text-secondary);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.wk-picker__d:hover {
  transform: translateY(-1px);
  border-color: #cfeee3;
}

.wk-picker__d.is-active {
  background: var(--wq-accent) !important;
  border-color: var(--wq-accent) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(61, 184, 154, 0.26);
}

.wk-picker__d-emoji {
  font-size: 11px;
  line-height: 1;
}

.wk-picker__n {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 1px 5px;
  border-radius: var(--wq-radius-pill);
  background: #f2f7f5;
  color: var(--wq-text-muted);
}

.wk-picker__d.is-active .wk-picker__n {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.wk-picker__empty {
  padding: 18px 8px;
  text-align: center;
  font-size: var(--wq-fs-sm);
  color: var(--wq-text-muted);
}

.wk-picker__foot {
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
