/**
 * 首页专属样式。通用组件在 components.css，这里只放只有首页会用到的东西。
 */

/* 从地图页「查看详情」跳过来时，对应卡片闪一下 */
.card.hl {
  box-shadow: var(--sh-ring);
}

/* ============================================================
   分享海报弹窗
   ============================================================ */

.poster-panel {
  position: relative;
  width: 86%;
  max-width: 330px;
}

/* canvas 只当绘制画布用，画完转成 <img> 显示 —— 手机上长按才能存图 */
.poster-canvas.is-offscreen {
  position: absolute;
  width: 1px;
  height: 1px;
  left: -9999px;
  top: 0;
  opacity: 0;
  pointer-events: none;
}

.poster-img {
  width: 100%;
  display: block;
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-poster);
  background: #fff;
}

.poster-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  color: var(--c-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
  z-index: 2;
}

.poster-hint {
  color: #ddd;
  text-align: center;
  font-size: var(--fs-md);
  margin: 14px 0 10px;
}

.poster-save {
  width: 100%;
  height: 48px;
  border-radius: var(--r-2xl);
  background: #fff;
  color: var(--c-primary);
  font-size: var(--fs-lg);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

