/* 黑河科普场馆地图 · 手机端网页样式 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --blue: #4096ff;
  --blue-dark: #2b7de0;
  --bg: #f2f8ff;
  --ink: #1c2a44;
  --ink-2: #5a6a80;
  --line: #edf1f6;
  --card: #ffffff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  padding-bottom: 84px;
  max-width: 640px;
  margin: 0 auto;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

/* ===== 顶部 ===== */
.hero {
  position: relative;
  height: 172px;
  overflow: hidden;
  background: #bfe2ff;
}
.hero img { height: 100%; object-fit: cover; }
.hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 40, 80, .18) 0%, rgba(242, 248, 255, .92) 82%, #f2f8ff 100%);
}
.hero-txt {
  position: absolute; left: 18px; bottom: 14px; right: 18px;
}
.hero-title { font-size: 19px; font-weight: 800; letter-spacing: .5px; color: #0f2d4f; }
.hero-sub { font-size: 12px; color: #3d6288; margin-top: 3px; }

/* ===== 卡片 ===== */
.panel {
  background: var(--card);
  border-radius: 16px;
  margin: 12px 12px 0;
  padding: 14px 14px 12px;
  box-shadow: 0 4px 14px rgba(40, 90, 150, .06);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.panel-title { font-size: 16px; font-weight: 700; }
.panel-more { font-size: 12.5px; color: var(--blue); }

/* ===== 一览 ===== */
.spots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}
.spots-grid .item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: #2c3e56;
  padding: 3px 0;
  overflow: hidden;
}
.spots-grid .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); flex: 0 0 6px;
}
.spots-grid .nm {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ===== 地图 ===== */
.map-wrap { position: relative; border-radius: 12px; overflow: hidden; background: #fff; }
#regionCanvas { display: block; width: 100%; touch-action: manipulation; }
.map-tip { font-size: 12px; color: #8b9aae; text-align: center; margin-top: 6px; }
.map-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  font-size: 12.5px; padding: 5px 11px; border-radius: 999px;
  background: #eef6ff; color: #2b6fc4;
}
.chip.on { background: var(--blue); color: #fff; }

/* ===== 场馆卡片 ===== */
.spot-card {
  background: var(--card); border-radius: 16px; margin: 12px 12px 0;
  overflow: hidden; box-shadow: 0 4px 14px rgba(40, 90, 150, .07);
}
.spot-card .cover { height: 148px; position: relative; background: #dce9f5; }
.spot-card .cover img { height: 100%; object-fit: cover; }
.spot-card .meta { padding: 12px 14px 14px; }
.spot-card .name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.spot-card .name { font-size: 16px; font-weight: 700; }
.spot-card .fav-ico { font-size: 18px; color: #b9c6d6; }
.spot-card .fav-ico.on { color: #ff8a3d; }
.spot-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  font-size: 11.5px; padding: 2px 8px; border-radius: 6px;
  background: #f0f5fb; color: #5a7593;
}
.tag.free { background: #fff4e6; color: #e08a2b; }
.spot-card .addr { font-size: 12.5px; color: #7b8aa0; margin-top: 8px; display: flex; gap: 5px; }
.spot-card .actions { display: flex; gap: 8px; margin-top: 12px; }
.btn-sm {
  flex: 1; text-align: center; font-size: 13px; padding: 9px 0;
  border-radius: 10px; background: #eef6ff; color: #2b6fc4; font-weight: 600;
}
.btn-sm.primary { background: var(--blue); color: #fff; }
.btn-sm.fav-on { background: #fff1e6; color: #d9761f; }

/* ===== 筛选 ===== */
.filter-bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(242, 248, 255, .96);
  backdrop-filter: blur(6px);
  padding: 10px 12px 8px;
}
.search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 12px; padding: 9px 12px;
  box-shadow: 0 2px 10px rgba(40, 90, 150, .06);
}
.search input {
  flex: 1; border: 0; outline: 0; font-size: 14px; background: transparent; color: var(--ink);
}
.filter-row { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px; }
.filter-row::-webkit-scrollbar { display: none; }
.f-chip {
  flex: 0 0 auto; font-size: 12.5px; padding: 6px 13px; border-radius: 999px;
  background: #e9f2fd; color: #35618f; white-space: nowrap;
}
.f-chip.on { background: var(--blue); color: #fff; }

/* ===== 详情 ===== */
.gallery {
  position: relative; height: 250px; background: #0e1726; overflow: hidden;
}
.gallery-track { display: flex; height: 100%; transition: transform .28s ease; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; flex: 0 0 100%; }
.gallery-count {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px;
  padding: 3px 9px; border-radius: 999px;
}
.gallery-dots {
  position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 5px;
}
.gallery-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.gallery-dots i.on { background: #fff; }

.detail-card {
  background: #fff; border-radius: 18px; margin: -28px 12px 0; position: relative;
  padding: 16px 16px 14px; box-shadow: 0 6px 20px rgba(40, 90, 150, .1);
}
.detail-name { font-size: 19px; font-weight: 800; }
.info-row { display: flex; gap: 9px; font-size: 13px; color: #46566d; margin-top: 9px; line-height: 1.6; }
.info-row .ico { flex: 0 0 18px; text-align: center; }
.quick { display: flex; gap: 10px; margin-top: 14px; }
.quick .q {
  flex: 1; text-align: center; padding: 10px 0; border-radius: 12px;
  background: #eef6ff; font-size: 13px; color: #2b6fc4; font-weight: 600;
}
.quick .q.primary { background: var(--blue); color: #fff; }
.quick .q.fav-on { background: #fff1e6; color: #d9761f; }

.intro-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; padding-left: 9px; border-left: 3px solid var(--blue); }
.intro-body { font-size: 14px; line-height: 1.85; color: #3c4b60; }
.intro-body .ih { font-weight: 700; color: #1f3a5c; margin-top: 10px; }

.imgs-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.imgs-grid img { height: 84px; object-fit: cover; border-radius: 8px; }

/* ===== 我的 ===== */
.profile {
  padding: 26px 0 20px; text-align: center;
  background: linear-gradient(180deg, #bfe2ff 0%, #f2f8ff 100%);
}
.profile img.logo { width: 64px; height: 64px; border-radius: 14px; background: #fff; margin: 0 auto 10px; }
.profile .pn { font-size: 16px; font-weight: 700; }
.profile .ps { font-size: 12px; color: #5b7794; margin-top: 3px; }

.cell {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.cell:last-child { border-bottom: 0; }
.cell .arrow { color: #b4c0cf; }
.stat-mini { display: flex; gap: 10px; margin-top: 4px; }
.stat-mini .s { flex: 1; text-align: center; }
.stat-mini .s b { display: block; font-size: 19px; color: var(--blue); }
.stat-mini .s span { font-size: 12px; color: #7b8aa0; }

/* ===== 底部导航 ===== */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: 58px; display: flex; background: #fff;
  border-top: 1px solid #edf1f6;
  max-width: 640px; margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; color: #8a97a8; }
.tabbar a img { width: 21px; height: 21px; }
.tabbar a.on { color: var(--blue); font-weight: 600; }

/* ===== 弹层 ===== */
.mask {
  position: fixed; inset: 0; z-index: 60; background: rgba(10, 20, 35, .45);
  display: none; align-items: flex-end;
}
.mask.show { display: flex; }
.sheet {
  width: 100%; background: #fff; border-radius: 18px 18px 0 0; padding: 18px 16px 24px;
}
.sheet h3 { font-size: 16px; margin-bottom: 12px; }
.sheet textarea {
  width: 100%; height: 108px; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; font-size: 14px; font-family: inherit; resize: none; outline: 0;
}
.sheet input {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 10px; font-size: 14px; margin-top: 8px; outline: 0;
}
.sheet .submit {
  margin-top: 12px; height: 46px; line-height: 46px; text-align: center;
  background: var(--blue); color: #fff; border-radius: 23px; font-weight: 700; font-size: 15px;
}
.sheet .cancel { text-align: center; font-size: 13px; color: #8b9aae; margin-top: 10px; }

.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .78); color: #fff; padding: 10px 18px;
  border-radius: 10px; font-size: 13.5px; z-index: 80; display: none;
}

.empty { text-align: center; color: #9aa8ba; font-size: 13.5px; padding: 30px 0; }
.hint { font-size: 12px; color: #9aa8ba; text-align: center; padding: 16px 0 26px; }
