/* ============================================================
 * 南京市雨花台区人民政府 · 走进雨花
 * 内容区最大宽度 1300px，响应式自适应；手写原生 CSS，无任何框架
 * 本页含滚动入场、悬浮、错峰等动画
 * 配色：
 *   主蓝 #2a5caa  深蓝 #1d3f77  高亮蓝 #3b82d6
 *   正文 #333 / 次要 #666 / 日期 #999 / 分割线 #e5e5e5
 * ============================================================ */

:root {
  --primary: rgba(50, 93, 146, 1);
  --deep: #1d3f77;
  --accent: #3b82d6;
  --side-bg: #e9f1fb;
  --bullet: #6fb4ea;
  --text: #333333;
  --sub: #666666;
  --date: #999999;
  --line: #e5e5e5;
  --container: 1320px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* 防横向溢出保险 */
html,
body {
  overflow-x: hidden;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

img {
  border: 0;
  display: block;
}

button,
input {
  font-family: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  /* padding: 0 20px; */
}

/* 近满宽容器：智汇雨花 / 老地名 两侧只留少量边距 */
.wide {
  max-width: 1860px;
  margin: 0 auto;
  /* padding: 0 30px; */
}

/* ===== 图片占位盒：后期补图时直接给内部 img 填 src 即可 ===== */
.img-slot {
  position: relative;
  /* background: #f2f5f9;
  border: 1px dashed #c6d2e2;
  border-radius: 4px;
  overflow: hidden; */
}

.img-slot>img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
}

.img-slot.skin-transparent {
  background: transparent;
  border: 0;
  border-radius: 0;
}

/* ===== 通用：区块标题（水墨风装饰线） ===== */
.sec-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 28px;
  font-weight: 700;
  color: #2b3a4d;
  letter-spacing: 3px;
}

.sec-title em {
  font-style: normal;
  color: var(--primary);
}

.st-deco {
  width: 90px;
  height: 14px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.st-left {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 14'><path d='M2 7h52M40 3l8 4-8 4' fill='none' stroke='%239db8d6' stroke-width='1.4' stroke-linecap='round'/><circle cx='78' cy='7' r='4' fill='none' stroke='%239db8d6' stroke-width='1.2'/></svg>");
}

.st-right {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 14'><circle cx='12' cy='7' r='4' fill='none' stroke='%239db8d6' stroke-width='1.2'/><path d='M36 7h52M50 3l-8 4 8 4' fill='none' stroke='%239db8d6' stroke-width='1.4' stroke-linecap='round'/></svg>");
}

/* ===== 区块标题图：文字标题改为整图展示（src 留空，补图即可） ===== */
.sec-pic {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 671px;
  height: auto;
  aspect-ratio: 671 / 190;
}

/* 未填 src 时显示占位盒，补上图后占位样式自动消失 */
.sec-pic[src=""],
.sec-pic:not([src]) {
  background: #f2f5f9;
  border: 1px dashed #c6d2e2;
  border-radius: 4px;
}

/* ===== 概况 ===== */
.hero {
  position: relative;
  padding: 50px 0 0;
  background: url(./bodyBg-20261019.png)no-repeat top center;
  background-size: 100% 100%;
  /* background:
    radial-gradient(1200px 320px at 50% -60px, #e6f0fb 0%, rgba(230, 240, 251, 0) 70%),
    linear-gradient(180deg, #f3f8fd 0%, #eef4fb 60%, #f7fbff 100%); */
}

.hero-main {
  display: flex;
  position: relative;
  align-items: flex-start;   /* 不写默认 stretch，会被 700px 高的地图拉满 */
  /* gap: 36px; */
}

.hero-map {
  margin-left: -40px;
  /* flex: 1 1 58%; */
  /* min-width: 0; */
  /* height: 370px; */
  /* border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; */
  /* border: 0; */
}

.hero-info {
  position: relative;
  flex: 1 1 42%;
  display: flex;
  gap: 28px;
  padding-top: 50px;
  margin-left: -40px;
  /* min-width: 0;
  background: rgba(255, 255, 255, .88);
  border: 1px solid #dde8f5;
  border-radius: 14px;
  padding: 30px 30px 28px;
  box-shadow: 0 12px 30px rgba(42, 92, 170, .08); */
}

.hero-book {
  flex: 0 0 210px;
  max-width: 210px;
  max-height: 282px;
  /* position: absolute;
  top: -30px;
  right: 18px;
  width: 150px;
  height: 196px;
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(42, 92, 170, .22); */
  /* 读本轻轻上下浮动 */
  animation: bookFloat 6s ease-in-out infinite;
}

@keyframes bookFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-text {
  font-size: 18px;
  line-height: 2.1;
  color: rgba(30, 45, 57, 1);
  text-align: justify;
  padding: 30px 0 0 50px;
  position: relative;
}

.hero-text img {
  position: absolute;
  top: 0;
  left: 0;
}

/* 查看详情 */
.detail-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  color: #fff;
  font-size: 16px;
  padding: 0px 21px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(47, 229, 255, 0.7), rgba(126, 188, 242, 1));
  transition: transform .25s ease, box-shadow .25s ease;
}

.detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(47, 124, 201, .38);
}

/* 五个地标：压在波浪虚线上 */
.pin-stage {
  position: absolute;
  right: 0;
  bottom: 120px;          /* 给“下”的图标留出悬垂空间 */
  width: min(1043px, 100%);
}

.pin-wave {
  display: block;
  width: 100%;
  height: auto;
}

.pin-row {
  position: absolute;
  inset: 0;
}

/* 每个落点由 --x / --y 决定：--y 是虚线在图片该横向位置的线高，
   按 dashedBorder-20261021.png (1043×112) 逐列量出，用百分比跟随图片缩放。
   transform 里必须带上 translateX(-50%)，否则 .reveal 的出入场动画会把定位冲掉 */
.pin-row .pin-item {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%) translateY(30px);
}

.pin-row .pin-item.in {
  transform: translateX(-50%);
}

/* 上：整条入口踩在线上（图片在上、文字在下，文字底边贴线） */
.pin-row .pin-item:nth-child(even) {
  transform: translateX(-50%) translateY(-100%) translateY(30px);
}

.pin-row .pin-item:nth-child(even).in {
  transform: translateX(-50%) translateY(-100%);
}

/* 五个落点：下 · 上 · 下 · 上 · 下（x 落在虚线的谷/峰上） */
.pin-item:nth-child(1) { --x: 12.46%; --y: 15%; }
.pin-item:nth-child(2) { --x: 30.78%; --y: 80%; }
.pin-item:nth-child(3) { --x: 49.09%; --y: 15%; }
.pin-item:nth-child(4) { --x: 67.50%; --y: 80%; }
.pin-item:nth-child(5) { --x: 85.81%; --y: 15%; }

.pin-drop {
  display: block;
  width: 88px;            /* 图标原始尺寸，窄屏再缩 */
  line-height: 0;
  /* 悬浮只动 translate / scale —— transform 已经被定位和入场动画占用了 */
  transition: translate .35s cubic-bezier(.34, 1.56, .64, 1),
              scale .35s cubic-bezier(.34, 1.56, .64, 1),
              filter .35s ease;
}

.pin-item:hover .pin-drop,
.pin-item:focus-visible .pin-drop {
  translate: 0 -8px;
  scale: 1.07;
  filter: drop-shadow(0 10px 14px rgba(42, 92, 170, .3));
}

.pin-drop img {
  display: block;
  width: 100%;
  height: auto;
}

.pin-label {
  font-size: 24px;
  color: rgba(30, 45, 57, 1);
  font-weight: bold;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: color .25s ease, letter-spacing .35s ease;
}

.pin-item:hover .pin-label,
.pin-item:focus-visible .pin-label {
  color: var(--pin);
  letter-spacing: 2px;
}

@keyframes pinFloat {

  0%,
  100% {
    transform: rotate(-45deg) translateY(0);
  }

  50% {
    transform: rotate(-45deg) translateY(-7px);
  }
}

/* ===== 智汇雨花（居中舞台式循环轮播） ===== */
/* ===== 智汇雨花 + 微游雨花：页面最右侧背景图（压在这两个区块下面） ===== */
.zy-side {
  position: relative;
  background-color: #fff;
  background-image: url("./zhyhRightBg-20261021.png");
  background-position: right 65px;
  background-repeat: no-repeat;
  /* 原图 736×937，按设计尺寸贴页面右边缘，不缩放 */
  background-size: auto;
}

/* 白底挪到外层，区块自身透明，右侧背景图才能透出来 */
.zy-side .zhihui {
  background: transparent;
}

.zhihui {
  padding: 0 0 50px;
  background: #fff;
}

.zhihui .sec-title {
  /* margin-bottom: 20px; */
}

.pic-carousel {
  position: relative;
  padding: 10px 0 4px;
  /* --stage 由 JS 按当前缩放下发；--arrow-gap 是箭头距容器边的距离 */
  --stage: 300px;
  --arrow-gap: 40px;
}

@keyframes haloPulse {

  0%,
  100% {
    opacity: .65;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

.pc-viewport {
  position: relative;
  height: var(--stage);
  overflow: hidden;
  z-index: 1;
}

.pc-track {
  position: absolute;
  inset: 0;
}

.pc-item {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(42, 92, 170, .20);
  opacity: 0;
  cursor: pointer;
  transition:
    transform .65s cubic-bezier(.22, .75, .25, 1),
    width .65s cubic-bezier(.22, .75, .25, 1),
    height .65s cubic-bezier(.22, .75, .25, 1),
    opacity .5s ease, filter .5s ease, box-shadow .35s ease;
  will-change: transform, width, height, opacity;
}

/* 位置槽位（transform/尺寸由 JS 按当前索引下发） */
.pc-item.is-center {
  opacity: 1;
  z-index: 30;
  box-shadow: 0 24px 46px rgba(31, 82, 155, .34);
}

.pc-item.is-near {
  opacity: 1;
  z-index: 20;
  filter: brightness(.9);
}

.pc-item.is-far {
  opacity: .85;
  z-index: 10;
  filter: brightness(.78);
}

.pc-item.is-beyond {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.pc-item.is-near:hover,
.pc-item.is-far:hover {
  filter: brightness(1);
}

.pc-item img {
  transition: transform .6s ease;
}

.pc-item.is-center:hover img {
  transform: scale(1.045);
}

.pc-arrow {
  position: absolute;
  top: calc(10px + var(--stage) / 2);
  transform: translateY(-50%);
  z-index: 40;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, .92);
  color: #5b86bd;
  box-shadow: 0 6px 16px rgba(42, 92, 170, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, transform .2s;
}

.pc-arrow svg {
  width: 22px;
  height: 22px;
}

.pc-arrow:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.pc-arrow:active {
  transform: translateY(-50%) scale(.95);
}

/* 箭头压在左右两张最外副图（360×220）上，距容器边固定 40px */
.pc-prev {
  left: var(--arrow-gap);
}

.pc-next {
  right: var(--arrow-gap);
}

/* 两大按钮 */
.big-btns {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 38px;
}

.big-btn {
  width: 420px;
  height: 93px;
  display: flex;
  background: url(./yqtjgnzx-20261019.png)top center no-repeat;
  font-family: YOUSHEhaoshenti;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  letter-spacing: 22px;
  color: rgba(40, 106, 206, 1);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: color .3s, border-color .3s, box-shadow .3s;
}

/* 扫光层 */
.big-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(74, 159, 230, .18), transparent);
  transform: skewX(-20deg);
}

.big-btn:hover {
  color: #fff;
  border-color: var(--primary);
  background: linear-gradient(180deg, #4a9fe6, #2f7cc9);
  box-shadow: 0 12px 24px rgba(47, 124, 201, .3);
}

.big-btn:hover::after {
  animation: btnShine .8s ease;
}

@keyframes btnShine {
  from {
    left: -80%;
  }

  to {
    left: 130%;
  }
}

/* ===== 微游雨花 ===== */
.weiyou {
  position: relative;
  padding: 0 0 60px;
  background-image: url(./wyyhBg-20261021.png);
  background-repeat: no-repeat;
  background-position: center 120px;
  /* 三层背景（靠前者在上）：
     1 城市全景 → 贴底
     2 浅蓝弧面 → 压在 3 上面
     3 深蓝弧面 → 横向居中
     注：3 号图自身的弧线比 2 号深 29px，所以 2 要比 3 多下移 29px 才能拉开真实落差 */
  /* background-image:
    url("./wyyh1-20261019.png"),
    url("./wyyh2-20261019.png"),
    url("./wyyh3-20261019.png");
  background-position: center bottom, center 220px, center 160px; */
  /* 1、2 号按页宽等比缩放；3 号保持原图尺寸（1800×609）居中 */
  /* background-size: 100% auto, 100% auto, auto;
  
  background-color: #fff; */
}

.weiyou .sec-title {
  margin-bottom: 10px;
}

/* 选项卡 */
.wy-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 58px;
}

.wy-tab {
  position: relative;
  font-size: 26px;
  color: rgba(30, 45, 57, 1);
  padding: 6px 2px;
  transition: color .2s;
}

.wy-tab:hover {
  color: rgba(40, 106, 206, 1);
}

.wy-tab.is-active {
  color: rgba(40, 106, 206, 1);
  font-weight: 600;
}

/* 选中态底部的点状装饰：直接用切图，不再手写圆点 */
.wy-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 42px;
  height: 12px;
  background: url("./wyyhActive-20261019.png") center / contain no-repeat;
  animation: tabMarkIn .35s ease-out;
}

@keyframes tabMarkIn {
  from {
    opacity: 0;
    transform: translateX(-50%) scaleX(.35);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
}

/* 画廊：按实际输出张数（2 / 3 / 4）切换列数
   脚本读取每组 .g-card 数量后写入 data-count；
   高度统一、间距固定，横图 / 竖图统一 contain 完整显示，不裁切、不拉伸 */
.wy-gallery {
  display: grid;
  /* 默认 4 列：脚本未执行时也能正常显示最多 4 张 */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 300px;
  gap: 14px;
  margin-top: 80px;
}

/* 2 张：两等分并居中，单格最宽 430px，避免图片被拉成超宽横幅 */
.wy-gallery[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 430px));
  justify-content: center;
}

/* 3 张：三等分 */
.wy-gallery[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 4 张：四等分（与默认一致，显式声明便于维护） */
.wy-gallery[data-count="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 兜底：栏目只输出 1 张时居中单列 */
.wy-gallery[data-count="1"] {
  grid-template-columns: minmax(0, 430px);
  justify-content: center;
}

.g-card {
  border: 0;
  border-radius: 8px;
  display: block;
  overflow: hidden; /* 圆角裁切，标题渐变贴住格子底边 */
  background: #eef2f7;
  transition: box-shadow .3s, transform .3s, translate .3s;
}

/* 横图、竖图混排：完整显示整张图片，不裁切、不改变比例
   contain 留下的区域由卡片底色填充，四周不裁切 */
.g-card img {
  object-fit: contain;
  object-position: center;
}

.g-card:hover {
  /* 用 translate 抬高，避免和切换时的入场动画抢 transform */
  translate: 0 -4px;
  box-shadow: 0 16px 32px rgba(42, 92, 170, .2);
}

.g-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 30px 14px 10px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 1px;
  background: linear-gradient(180deg, rgba(10, 20, 40, 0) 0%, rgba(10, 20, 40, .7) 100%);
}

/* 切换选项卡时画廊淡入，卡片逐张浮出 */
.wy-gallery.is-fading {
  animation: galleryFade .45s ease;
}

@keyframes galleryFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.wy-gallery.is-fading .g-card {
  animation: cardIn .55s cubic-bezier(.22, .75, .25, 1) both;
}

.wy-gallery.is-fading .g-card:nth-child(2) {
  animation-delay: .07s;
}

.wy-gallery.is-fading .g-card:nth-child(3) {
  animation-delay: .14s;
}

.wy-gallery.is-fading .g-card:nth-child(4) {
  animation-delay: .21s;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== 雨花老地名（近满宽 · 蜂巢流动） ===== */
.laodiming {
  position: relative;
  overflow: hidden;
  padding: 42px 0 64px;
}

.laodiming .sec-title {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

/* 蜂巢：设计稿量（7 / 8 / 7，共 22 个，不重复），固定三排留缝咬合
   --hw 六边形宽度（随近满宽自适应）；--hg 相邻间隙 */
.laodiming .wide {
  position: relative;
  z-index: 1;
}

.hex-grid {
  /* 中排最宽：占位半步 + 8 格 + 8 间隙 = 8.5(宽+间隙) ≤ 容器宽 */
  --hw: min(196px, calc((100vw - 179px) / 8.5));
  --hg: 22px;
  position: relative;
  z-index: 1;
}

.hex-row {
  display: flex;
  justify-content: center;
  gap: var(--hg);
}

/* 尖顶六边形高 = 宽 × 236/204 ≈ 1.157；
   排间留 --hg 间隙时的负边距 = -(高/4 - 0.866×间隙) */
.hex-row+.hex-row {
  margin-top: calc(-0.2893 * var(--hw) + 0.866 * var(--hg));
}

.hex {
  position: relative;
  flex: none;
  width: var(--hw);
  aspect-ratio: 204 / 236;
  height: auto;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, #dce9f8, #aecfee);
  filter: drop-shadow(0 10px 16px rgba(42, 92, 170, .18));
  /* 入场：缩小 + 旋转弹出（错峰延迟由 nth-child 下发） */
  opacity: 0;
  transform: scale(.25) rotate(-28deg);
  transition:
    opacity .55s ease,
    transform .6s cubic-bezier(.2, .85, .25, 1.3),
    filter .35s ease;
}

.hex-grid.in .hex {
  opacity: 1;
  transform: none;
}

/* 入场结束后清掉错峰延迟，避免悬停放大也被延迟 */
.hex-grid.entered .hex {
  transition-delay: 0s;
}

/* 逐格错峰弹出（每排最多 9 个子项，中排首位是占位 span） */
.hex-row .hex:nth-child(2) {
  transition-delay: .05s;
}

.hex-row .hex:nth-child(3) {
  transition-delay: .10s;
}

.hex-row .hex:nth-child(4) {
  transition-delay: .15s;
}

.hex-row .hex:nth-child(5) {
  transition-delay: .20s;
}

.hex-row .hex:nth-child(6) {
  transition-delay: .25s;
}

.hex-row .hex:nth-child(7) {
  transition-delay: .30s;
}

.hex-row .hex:nth-child(8) {
  transition-delay: .35s;
}

.hex-row .hex:nth-child(9) {
  transition-delay: .40s;
}

.hex img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.hex-name {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  letter-spacing: 4px;
  color: #fff;
  font-size: 16px;
  text-shadow: 0 1px 5px rgba(20, 40, 70, .6);
  /* 文字底纹换成切图；文字与底纹一起右移 */
  background: url("./yhldmTextBg-20261019.png") center / auto no-repeat;
  transform: translateX(28px);
  transition: letter-spacing .3s;
}

.hex:hover {
  transform: scale(1.08);
  filter: brightness(1.08) drop-shadow(0 20px 32px rgba(42, 120, 210, .48));
  z-index: 6;
}

.hex:hover img {
  transform: scale(1.1);
}

.hex:hover .hex-name {
  letter-spacing: 7px;
}

/* ===== 滚动入场动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* 错峰延迟（由各模块内部结构控制） */
.pin-row .reveal:nth-child(2) {
  transition-delay: .08s;
}

.pin-row .reveal:nth-child(3) {
  transition-delay: .16s;
}

.pin-row .reveal:nth-child(4) {
  transition-delay: .24s;
}

.pin-row .reveal:nth-child(5) {
  transition-delay: .32s;
}

/* ============================================================
 * 响应式：窄屏堆叠，不写死宽度
 * ============================================================ */
/* 与首页保持一致：1360 以下留 16px 边距，640 以下收紧到 12px */
@media (max-width:1360px) {
  .container,
  .wide {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width:980px) {

  /* 概况堆叠 */
  .hero-main {
    flex-direction: column;
    gap: 40px;
  }

  /* 地图按原比例缩放，不再定高拉伸；桌面的 -40 出血也要收回 */
  .hero-map {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    margin-left: 0;
  }

  .hero-map img {
    width: 100%;
    height: auto;
  }

  .hero-info {
    flex: 0 0 auto;
    width: 100%;
    padding-top: 0;
    margin-left: 0;
  }

  /* 窄屏不再踩线：虚线整条展示，五个入口在下方居中换行 */
  .pin-stage {
    position: static;
    width: 100%;
  }

  .pin-row {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px;
    padding-top: 24px;
  }

  .pin-row .pin-item {
    position: static;
    transform: none;
  }

  .pin-row .pin-item.in {
    transform: none;
  }

  .pin-row .pin-item:nth-child(even) {
    transform: none;
  }

  .pin-row .pin-item:nth-child(even).in {
    transform: none;
  }

  .pc-arrow {
    width: 36px;
    height: 36px;
  }

  .big-btns {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  /* 按钮切图按可用宽度等比缩放（420×93），字号/字距同步收小 */
  .big-btn {
    width: min(320px, 80vw);
    height: auto;
    aspect-ratio: 420 / 93;
    font-size: 30px;
    letter-spacing: 12px;
    background-size: 100% 100%;
  }

  /* 右侧装饰图跟着屏幕收，别在窄屏上占掉半屏 */
  .zy-side {
    background-size: 55% auto;
    background-position: right 40px;
  }

  .wy-tab {
    font-size: 22px;
  }

  .wy-gallery {
    margin-top: 50px;
  }

  /* 微游选项卡横向滚动 */
  .wy-tabs {
    justify-content: flex-start;
    gap: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 6px;
  }

  .wy-tabs::-webkit-scrollbar {
    display: none;
  }

  /* 平板统一两列：2 张并排，3 张末图通栏，4 张 2×2 */
  .wy-gallery,
  .wy-gallery[data-count="2"],
  .wy-gallery[data-count="3"],
  .wy-gallery[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
    justify-content: stretch;
  }

  .wy-gallery[data-count="1"] {
    grid-template-columns: minmax(0, 430px);
  }

  .wy-gallery[data-count="3"] .g-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  /* 老地名：不再横向滚动。三排结构打散，22 个格子整体居中自动换行
     平板 4 个一排，手机 3 个一排（见下方 640 断点） */
  .hex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  /* 三排容器不参与布局，格子直接成为 .hex-grid 的 flex 项 */
  .hex-row {
    display: contents;
  }

  .hex-row+.hex-row {
    margin-top: 0;
  }

  .hex {
    flex: 0 0 auto;
    width: calc((100% - 24px) / 4);
  }

  .hex-name {
    font-size: 14px;
    letter-spacing: 3px;
  }
}

@media (max-width:640px) {

  /* 手机左右边距与首页保持一致（12px），跨页面点击时不再有位移 */
  .container,
  .wide {
    padding-left: 12px;
    padding-right: 12px;
  }

  .sec-title {
    font-size: 21px;
    letter-spacing: 2px;
    gap: 8px;
  }

  .st-deco {
    width: 44px;
  }

  .hero {
    padding: 24px 0 34px;
  }

  /* 手机：正文独占一行，读本挪到正文下方居中，优先保证文字完整可读 */
  .hero-info {
    flex-direction: column;
    gap: 18px;
  }

  .hero-map {
    height: auto;
  }

  .hero-book {
    flex: none;
    width: 132px;
    max-width: 132px;
    height: auto;
    max-height: none;
    align-self: center;
  }

  .hero-book img {
    height: auto;
  }

  .hero-text {
    font-size: 14px;
    line-height: 1.9;
    padding: 0;
  }

  /* 左上角的装饰描边图在窄屏会压住正文，小屏去掉 */
  .hero-text img {
    display: none;
  }

  /* 小屏让按钮回到文档流，不再压住最后一行 */
  .detail-btn {
    position: static;
    display: inline-block;
    margin-top: 12px;
    padding: 4px 18px;
    font-size: 13px;
  }

  /* 五个地标换行后收紧行距，别占掉大半屏 */
  .pin-row {
    gap: 16px 22px;
    padding-top: 18px;
  }

  .pin-drop {
    width: 46px;
  }

  .pin-label {
    font-size: 13.5px;
  }

  /* 轮播：手机只保留中间大图，两侧副图会直接贴到屏幕边 */
  .pc-item.is-near {
    display: none;
  }

  /* 轮播：箭头收到容器最边上，别咬住中间大图 */
  .pic-carousel {
    --arrow-gap: 8px;
  }

  .pc-arrow {
    width: 30px;
    height: 30px;
  }

  .pc-arrow svg {
    width: 18px;
    height: 18px;
  }

  .zhihui {
    padding: 26px 0 34px;
  }

  .big-btn {
    width: min(280px, 82vw);
    font-size: 22px;
    letter-spacing: 9px;
  }

  .weiyou {
    padding: 30px 0 38px;
  }

  /* 四个选项卡收进一行，不再横向滚动 */
  .wy-tabs {
    justify-content: space-between;
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }

  .wy-tab {
    font-size: 15px;
    padding: 4px 0;
    white-space: nowrap;
  }

  /* 手机统一两列：2 张并排，3 张末图通栏，4 张 2×2 */
  .wy-gallery,
  .wy-gallery[data-count="2"],
  .wy-gallery[data-count="3"],
  .wy-gallery[data-count="4"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 140px;
    gap: 8px;
    margin-top: 20px;
    justify-content: stretch;
  }

  .wy-gallery[data-count="1"] {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 200px;
    margin-top: 20px;
  }

  .wy-gallery[data-count="3"] .g-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .g-card {
    height: auto;
  }

  .g-cap {
    padding: 22px 10px 8px;
    font-size: 13px;
    letter-spacing: 0;
  }

  .laodiming {
    padding: 30px 0 44px;
  }

  .laodiming .sec-title {
    margin-bottom: 20px;
  }

  /* 手机一排三个，22 个老地名全部展示，不横向滚动 */
  .hex-grid {
    gap: 8px 6px;
  }

  .hex {
    width: calc((100% - 12px) / 3);
  }

  .hex-name {
    font-size: 12px;
    letter-spacing: 2px;
    transform: translateX(10px);
  }

  /* 右侧装饰图小屏再收一档，避免压住正文 */
  .zy-side {
    background-size: 46% auto;
    background-position: right 12px;
  }
}

/* ============================================================
 * 尊重系统“减少动态效果”：关闭全部动画与入场位移
 * ============================================================ */
@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hex {
    opacity: 1 !important;
    transform: none !important;
  }

  /* 地标的 transform 还承担“踩线”定位，不能被上面的 none 清掉 */
  .pin-row .pin-item.reveal {
    transform: translateX(-50%) !important;
  }

  .pin-row .pin-item.reveal:nth-child(even) {
    transform: translateX(-50%) translateY(-100%) !important;
  }

  /* 悬浮只留颜色反馈，不再位移 */
  .pin-item:hover .pin-drop,
  .pin-item:focus-visible .pin-drop {
    translate: none;
    scale: none;
    filter: none;
  }
}

/* 窄屏的地标是普通流布局，定位 transform 要清掉（放在 reduced-motion 之后覆盖） */
@media (max-width:980px) and (prefers-reduced-motion:reduce) {

  .pin-row .pin-item.reveal,
  .pin-row .pin-item.reveal:nth-child(even) {
    transform: none !important;
  }
}