/* ============ 小羊陪你游 · 打卡地图 + 回忆卷轴 ============ */
.tour-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px 60px;
}

.tour-hero {
  text-align: center;
  padding: 34px 0 24px;
}
.tour-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2.4px;
  color: #c08a9c;
  margin-bottom: 10px;
}
.tour-hero h1 {
  font-size: 34px;
  margin: 0 0 10px;
  color: var(--pink-deep, #d43a63);
  letter-spacing: 3px;
}
.tour-hero p {
  margin: 0;
  font-size: 14px;
  color: #9c818b;
}

/* ---------- 左右布局：地图 7 / 卷轴 3 ---------- */
.tour-layout {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 18px;
  align-items: start;
}
.tour-sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #ffd9e3;
}
.tour-sec-head h2 {
  margin: 0;
  font-size: 16px;
  color: #4a3b40;
}
.tour-count {
  margin-left: auto;
  font-size: 12px;
  color: #b596a1;
}

/* ---------- 可玩性地图 ---------- */
.tour-map {
  position: relative;
  height: 620px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid #ecd6b6;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .75), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(255, 240, 214, .8), transparent 46%),
    linear-gradient(165deg, #fdf5e7 0%, #f8e8d1 48%, #f3dfc2 100%);
  box-shadow: inset 0 0 60px rgba(196, 165, 120, .22), 0 16px 34px rgba(150, 120, 90, .14);
}
.tour-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(190, 155, 105, .22) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .55;
  pointer-events: none;
}
.tour-map::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26%;
  background: linear-gradient(180deg, rgba(214, 235, 196, 0), rgba(190, 216, 168, .55));
  pointer-events: none;
}
.map-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: .8;
}
.map-deco.cloud { font-size: 26px; opacity: .55; }
.map-deco.cloud.c1 { left: 8%; top: 8%; }
.map-deco.cloud.c2 { right: 10%; top: 16%; font-size: 21px; animation: mapFloat 9s ease-in-out infinite; }
.map-deco.star { font-size: 14px; color: #c9a06a; opacity: .7; }
.map-deco.star.s1 { left: 26%; top: 34%; animation: mapTwinkle 3.2s ease-in-out infinite; }
.map-deco.star.s2 { right: 22%; top: 46%; animation: mapTwinkle 4.4s ease-in-out infinite; }
.map-deco.tree { font-size: 30px; opacity: .65; }
.map-deco.tree.t1 { left: 12%; bottom: 16%; }
.map-deco.tree.t2 { right: 16%; bottom: 22%; font-size: 26px; }
.map-deco.tree.t3 { left: 48%; bottom: 9%; font-size: 24px; }
.map-deco.hill { right: 32%; top: 10%; font-size: 40px; opacity: .5; }

@keyframes mapFloat {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(14px); }
}
@keyframes mapTwinkle {
  0%, 100% { opacity: .25; transform: scale(.9); }
  50% { opacity: .85; transform: scale(1.15); }
}

.map-pins { position: absolute; inset: 0; z-index: 3; }
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.map-pin .pin-icon {
  font-size: 25px;
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(175, 125, 80, .35));
  transition: transform .18s ease;
}
.map-pin .pin-label {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #7a5a3a;
  background: #fffbf3;
  border: 1px solid #e8d3b2;
  border-radius: 999px;
  padding: 2px 9px;
  box-shadow: 0 2px 6px rgba(160, 125, 85, .12);
}
.map-pin:hover .pin-icon { transform: translateY(-5px) scale(1.16); }
.map-pin.pulse .pin-icon { animation: pinPulse 1.8s ease-in-out infinite; }
@keyframes pinPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.map-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  margin: 0;
  z-index: 2;
  font-size: 12px;
  color: #9b7c5c;
  background: rgba(255, 251, 240, .85);
  border: 1px dashed #e2cba8;
  border-radius: 999px;
  padding: 6px 16px;
  white-space: nowrap;
}

/* ---------- 打卡点详情弹层 ---------- */
.spot-modal {
  position: relative;
  width: min(560px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 56px rgba(140, 100, 120, .28);
}
.spot-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .88);
  color: #8a6b76;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.spot-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0;
  background: linear-gradient(135deg, #fff3f7, #ffe6ee);
}
.spot-gallery img {
  width: 100%;
  flex: 0 0 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.spot-gallery .gallery-ph {
  width: 100%;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
  opacity: .7;
}
.spot-modal-body { padding: 16px 20px 22px; }
.spot-modal-body h3 { margin: 0 0 6px; font-size: 19px; color: #3f3336; }
.spot-loc { margin: 0 0 10px; font-size: 12.5px; color: #b0748a; }
.spot-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.spot-tag {
  font-size: 11px;
  color: #d43a63;
  background: #fff0f4;
  border-radius: 999px;
  padding: 3px 9px;
}
.spot-intro {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.85;
  color: #6d5b62;
}
.spot-tips {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: #8a7460;
  background: #fffaf0;
  border-radius: 12px;
  padding: 10px 12px;
}

/* ---------- 回忆卷轴（右侧窄栏） ---------- */
.scroll-board {
  position: relative;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.6), transparent 40%),
    linear-gradient(160deg, #f7efe2 0%, #f3e8d7 55%, #f6eee1 100%);
  border-radius: 20px;
  padding: 22px 14px 24px;
  box-shadow: inset 0 0 0 1px rgba(214, 195, 166, .55), 0 12px 26px rgba(150, 120, 90, .1);
  overflow: hidden;
}
.scroll-board::before,
.scroll-board::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(196,170,132,.35), rgba(226,207,174,.75), rgba(196,170,132,.35));
}
.scroll-board::before { top: 6px; }
.scroll-board::after { bottom: 6px; }

.scroll-body { position: relative; }
.scroll-line {
  position: absolute;
  left: 62px;
  top: 4px;
  bottom: 4px;
  border-left: 2px dotted #cbb89a;
}
.scroll-list { display: flex; flex-direction: column; gap: 16px; }
.scroll-item { display: flex; align-items: flex-start; position: relative; }
.scroll-time {
  width: 50px;
  flex-shrink: 0;
  font-size: 11px;
  color: #8d7a5f;
  text-align: right;
  padding-top: 13px;
  letter-spacing: .2px;
}
.scroll-node {
  position: absolute;
  left: 55px;
  top: 14px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.scroll-node i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #b9a17c;
  background: #fbf6ec;
  display: block;
}
.scroll-card {
  position: relative;
  margin-left: 22px;
  flex: 1;
  min-width: 0;
  background: #fdf9ef;
  border: 1px solid #eadfc9;
  border-radius: 12px;
  padding: 11px 36px 11px 13px;
  box-shadow: 0 3px 10px rgba(150, 125, 90, .07);
  color: #6d5c49;
}
.scroll-card h4 { margin: 0 0 5px; font-size: 13px; color: #5b4a38; }
.scroll-card p { margin: 0; font-size: 12.5px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.scroll-emoji { position: absolute; right: 10px; bottom: 8px; font-size: 18px; opacity: .8; }
.scroll-end {
  margin: 18px 0 0 84px;
  font-size: 11.5px;
  color: #a4906f;
  letter-spacing: 2px;
}

.tour-layout > * { min-width: 0; }

/* ---------- 旅游攻略（右栏） ---------- */
.guide-board {
  background: #fffaf2;
  border: 2px solid #f0dfc7;
  border-radius: 20px;
  padding: 16px 14px;
  max-height: 620px;
  overflow-y: auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 12px 26px rgba(150, 120, 90, .1);
}
.guide-list { display: flex; flex-direction: column; gap: 12px; }
.guide-card {
  background: #fff;
  border: 1px solid #f0e2cd;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(160, 125, 85, .08);
}
.guide-photo { width: 100%; height: 110px; object-fit: cover; display: block; }
.guide-body { padding: 11px 13px 13px; }
.guide-time {
  display: inline-block;
  font-size: 11px;
  color: #b2733f;
  background: #fff3e2;
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 6px;
}
.guide-body h4 { margin: 0 0 5px; font-size: 14px; color: #5b4433; }
.guide-body p { margin: 0; font-size: 12.5px; line-height: 1.8; color: #7d6a58; word-break: break-word; }
.guide-empty {
  margin: 30px 0;
  text-align: center;
  font-size: 12px;
  color: #b09a7d;
  line-height: 1.9;
}

@media (max-width: 720px) {
  .tour-layout { grid-template-columns: 1fr; }
  .tour-map { height: 460px; }
  .guide-board { max-height: none; }
}
@media (max-width: 520px) {
  .tour-hero { padding: 26px 0 18px; }
  .tour-hero h1 { font-size: 27px; }
  .tour-map { height: 400px; }
  .tour-map .map-deco.tree { font-size: 24px; }
  .map-pin .pin-label { max-width: 96px; font-size: 10px; }
  .scroll-line { left: 54px; }
  .scroll-time { width: 42px; font-size: 10.5px; }
  .scroll-node { left: 47px; }
  .scroll-card { margin-left: 18px; padding-right: 32px; }
  .scroll-end { margin-left: 70px; }
}
