/* 郑州旅游指南 · 封面轮播 */
:root {
  --ink: #f4efe2;
  --ink-2: rgba(244, 239, 226, 0.72);
  --muted: rgba(244, 239, 226, 0.48);
  --line: rgba(244, 239, 226, 0.16);
  --gold: #e8c98a;
  --bg: #08110e;
  --max: 620px;
  --ease: cubic-bezier(0.22, 0.68, 0.28, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
  overscroll-behavior: none;
}

/* 进入详情后才允许滚动 */
html.is-detail,
body.is-detail {
  height: auto;
  overflow-y: auto;
  overscroll-behavior: auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 背景 ---------- */
.bg {
  position: fixed;
  inset: 0;
  background-image: url('../img/bg/panorama.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
  background-attachment: fixed;
  z-index: 0;
  pointer-events: none;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(62% 40% at 50% 44%, rgba(4, 10, 8, 0.3), transparent 76%),
    radial-gradient(120% 70% at 50% 6%, rgba(5, 12, 10, 0.94), rgba(5, 12, 10, 0.45) 52%, transparent 76%),
    linear-gradient(180deg, rgba(5, 12, 10, 0.78) 0%, rgba(5, 12, 10, 0.14) 26%, rgba(4, 10, 8, 0.22) 62%, rgba(4, 10, 8, 0.82) 100%);
}

/* ---------- 顶栏 ---------- */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(14px + env(safe-area-inset-top)) 18px 14px;
}

.hdr__logo {
  display: block;
  width: 38px;
  height: 38px;
  background: #f2efe3;
  border-radius: 3px;
  overflow: hidden;
  flex: none;
}

.hdr__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  mix-blend-mode: multiply;
}

.hdr__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hdr__meta {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- 舞台 ---------- */
.stage {
  position: relative;
  z-index: 20;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.stage.is-drag { cursor: grabbing; }

.track {
  position: relative;
  width: 100%;
  height: 46vh;
  min-height: 280px;
  max-height: 420px;
}

.item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--disc);
  height: var(--disc);
  margin-left: calc(var(--disc) / -2);
  margin-top: calc(var(--disc) / -2);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  transition: transform 0.52s var(--ease), opacity 0.52s var(--ease), filter 0.52s var(--ease);
}

.stage.is-drag .item { transition: none; }

.disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #0d1a16;
  box-shadow:
    0 0 0 1px rgba(244, 239, 226, 0.22),
    0 24px 60px -20px rgba(0, 0, 0, 0.9),
    inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}

.disc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 12%, rgba(255, 255, 255, 0.14), transparent 42%);
  pointer-events: none;
}

.item.is-active .disc {
  box-shadow:
    0 0 0 1.5px rgba(232, 201, 138, 0.75),
    0 28px 70px -22px rgba(0, 0, 0, 0.95),
    0 0 70px -10px rgba(232, 201, 138, 0.22);
}

/* ---------- 文案 ---------- */
.cap {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 18px 24px 14px;
  margin-top: 14px;
  min-height: 118px;

}

.cap__no {
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.cap__title {
  margin: 0;
  font-size: clamp(24px, 7.4vw, 34px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}

.cap__tag {
  margin: 8px 0 0;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.8);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.hint {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hint__arrow {
  color: var(--gold);
  animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(4px); opacity: 1; }
}

.nav {
  position: absolute;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 3;
}

.nav__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 20, 16, 0.5);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.nav__btn:hover { border-color: var(--gold); color: var(--gold); }
.nav__btn:active { transform: scale(0.94); }

.nav__idx {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  min-width: 68px;
  text-align: center;
}

/* ---------- 详情页 ---------- */
.detail {
  position: relative;
  z-index: 50;
  min-height: 100svh;
  background: rgba(6, 13, 11, 0.94);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: none;
}

.detail.is-open {
  display: block;
  animation: detailIn 0.36s var(--ease);
}

@keyframes detailIn {
  from { opacity: 0; transform: translateY(14px); }
}

/* 打开详情时隐藏封面层 */
body.is-detail { overflow: auto; }
body.is-detail .stage,
body.is-detail .hdr { display: none; }
body.is-detail .bg,
body.is-detail .veil { display: block; }

.detail__bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: linear-gradient(180deg, rgba(7, 15, 13, 0.96), rgba(7, 15, 13, 0.72) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.detail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 239, 226, 0.04);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.detail__back:hover { border-color: var(--gold); color: var(--gold); }

.detail__crumb {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-left: auto;
}

.detail__hero {
  position: relative;
  height: min(46vh, 380px);
  overflow: hidden;
}

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

.detail__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 15, 13, 0.35), rgba(7, 15, 13, 0.1) 40%, #070f0d 100%);
}

.detail__head {
  position: relative;
  margin-top: -64px;
  padding: 0 22px 8px;
  z-index: 2;
}

.detail__no {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 8px;
}

.detail__title {
  margin: 0;
  font-size: clamp(26px, 8vw, 36px);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.16;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.7);
}

.detail__tag {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.detail__intro {
  margin: 18px 22px 0;
  padding: 16px 18px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(244, 239, 226, 0.05), transparent);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

.detail__body {
  padding: 26px 22px calc(60px + env(safe-area-inset-bottom));
  max-width: var(--max);
  margin: 0 auto;
}

/* 景点 */
.spot {
  margin: 0 0 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(244, 239, 226, 0.09);
}

.spot:last-child { border-bottom: 0; }

.spot__fig {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #0d1a16;
  aspect-ratio: 4 / 3;
}

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

.spot__fig--none {
  display: grid;
  place-content: center;
  gap: 8px;
  aspect-ratio: 16 / 7;
  background:
    repeating-linear-gradient(135deg, rgba(244, 239, 226, 0.035) 0 10px, transparent 10px 20px),
    #0b1713;
  text-align: center;
}

.spot__fig--none span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(244, 239, 226, 0.5);
}

.spot__fig--none em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(244, 239, 226, 0.3);
}

.spot__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 16px 0 0;
}

.spot__name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.spot__dur {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.spot__hook {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gold);
  font-weight: 600;
}

.spot__block {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

.spot__block dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-top: 4px;
}

.spot__block dd { margin: 0; }

.transit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.transit div {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(244, 239, 226, 0.12);
  border-radius: 3px;
  font-size: 12px;
  color: var(--ink-2);
}

.transit b {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 600;
}

.spot__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.spot__link:hover { color: var(--gold); border-color: var(--gold); }

/* 走法 */
.guide {
  margin: 6px 0 0;
  padding: 18px;
  border: 1px solid rgba(244, 239, 226, 0.1);
  border-radius: 4px;
  background: rgba(244, 239, 226, 0.025);
}

.guide__title {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 12px;
}

.guide__item { margin-bottom: 14px; }

.guide__item h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.guide__item h4 span {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.guide__steps div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-2);
  padding: 3px 0;
}

.guide__steps b {
  color: var(--gold);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.guide__tip {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px dashed rgba(244, 239, 226, 0.12);
}

/* 美食 */
.foodgroup { margin: 0 0 30px; }

.foodgroup h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.foodgroup > p {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.shop {
  padding: 12px 0;
  border-top: 1px solid rgba(244, 239, 226, 0.08);
}

.shop__name { font-size: 14px; font-weight: 600; }

.shop__note {
  margin: 5px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.shop__meta {
  margin: 6px 0 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* 铁路 */
.railblock { margin: 0 0 30px; }

.railblock h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.railblock p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0 0;
}

.stats div {
  padding: 12px 14px;
  border: 1px solid rgba(244, 239, 226, 0.1);
  border-radius: 3px;
}

.stats b {
  display: block;
  font-size: 19px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.stats span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.raillist { margin-top: 14px; }

.raillist div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(244, 239, 226, 0.08);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.raillist b {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.detail__foot {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 239, 226, 0.1);
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}

/* 大屏 */
@media (min-width: 760px) {
  .track { height: 52vh; max-height: 460px; }
  .detail__hero { height: 52vh; }
  .detail__body { padding-left: 32px; padding-right: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .item, .detail { transition-duration: 0.12s; }
  .hint__arrow { animation: none; }
}

/* ---------- 背景动效：光尘、呼吸光、列车光带 ---------- */
.fx {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.fx__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.6;
  will-change: transform, opacity;
}

.fx__glow--a {
  width: 46vw;
  height: 46vw;
  left: 8%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(232, 201, 138, 0.28), transparent 68%);
  animation: breathe 11s ease-in-out infinite;
}

.fx__glow--b {
  width: 38vw;
  height: 38vw;
  right: 6%;
  bottom: 22%;
  background: radial-gradient(circle, rgba(120, 190, 170, 0.2), transparent 70%);
  animation: breathe 15s ease-in-out infinite reverse;
}


/* 缓慢漂移的雾 */
.fx__fog {
  position: absolute;
  width: 70vw;
  height: 26vh;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 196, 158, 0.16), transparent 72%);
  filter: blur(28px);
  will-change: transform, opacity;
}

.fx__fog--a {
  left: -18vw;
  top: 40%;
  animation: drift 26s ease-in-out infinite alternate;
}

.fx__fog--b {
  right: -22vw;
  top: 58%;
  animation: drift 34s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.5; }
  to { transform: translate3d(9vw, -3vh, 0) scale(1.18); opacity: 0.85; }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.32; }
  50% { transform: scale(1.22); opacity: 0.58; }
}

.fx__mote {
  position: absolute;
  left: var(--x);
  bottom: -6vh;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #f6e6bf;
  opacity: 0;
  box-shadow: 0 0 10px rgba(246, 230, 191, 0.75);
  animation: rise var(--t) linear infinite;
  animation-delay: var(--d);
  will-change: transform, opacity;
}

@keyframes rise {
  0% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
  12% { opacity: var(--o); }
  70% { opacity: var(--o); }
  100% { transform: translate3d(18px, -96vh, 0) scale(1); opacity: 0; }
}

/* 沿轨道扫过的列车灯光 */
.fx__streak {
  position: absolute;
  left: 50%;
  bottom: 17%;
  width: 42vw;
  height: 1.5px;
  margin-left: -21vw;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 170, 0.85), transparent);
  filter: blur(0.4px);
  opacity: 0;
  animation: streak 9s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes streak {
  0% { transform: translate3d(-30vw, 0, 0) scaleX(0.5); opacity: 0; }
  18% { opacity: 0.9; }
  55% { transform: translate3d(30vw, 0, 0) scaleX(1.2); opacity: 0.7; }
  100% { transform: translate3d(30vw, 0, 0) scaleX(1.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fx__glow, .fx__mote, .fx__streak, .fx__fog { animation: none; }
  .fx__mote { opacity: 0.25; }
}
