/* ============================================================
 * 奖玩金 · 样式系统
 * 定调：复古邮局档案 × 编辑排版（Editorial Luxury）
 * 纸感米白 / 墨蓝 / 邮戳朱红 / 撕纸边 / 图章 / 翻牌明信片
 * ============================================================ */

:root {
  --paper: #f6f1e5;
  --paper-2: #efe7d4;
  --paper-3: #e7dcc4;
  --ink: #22303c;
  --ink-soft: #5a6672;
  --ink-faint: #8a8375;
  --red: #c0392b;
  --red-soft: rgba(192, 57, 43, 0.08);
  --line: #d8ccb2;
  --serif: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-soft: 0 24px 48px -24px rgba(34, 48, 60, 0.18);
}

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

/* ---------- 演示模式提示条（config.js demo:true 时注入，红线 §6） ---------- */
.jwj-demo {
  position: relative;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 16px;
  background: #fdf4e3;
  border-bottom: 1px dashed rgba(192, 57, 43, 0.55);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-align: center;
}
.jwj-demo b { color: var(--red); font-weight: 700; flex: none; }
.jwj-demo__dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.14);
}
@media (max-width: 640px) {
  .jwj-demo { font-size: 11px; gap: 7px; }
}

/* ---------- 开场幕布（字体就绪前遮住加载期） ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  background:
    radial-gradient(circle at 30% 20%, rgba(192, 57, 43, 0.05), transparent 50%),
    var(--paper);
  display: grid;
  place-items: center;
  transition: transform 0.75s var(--ease-out);
  will-change: transform;
  animation: bootFailsafe 0.6s var(--ease-out) 4s forwards; /* 无 JS 兜底 */
}
.boot--away { transform: translateY(-101%); }
.boot__seal {
  width: clamp(96px, 14vw, 128px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2.5px dashed var(--red);
  display: grid;
  place-items: center;
  color: var(--red);
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 52px);
  font-weight: 700;
  transform: rotate(-8deg);
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6.5px rgba(192, 57, 43, 0.35);
  animation: bootStamp 0.85s var(--ease-spring) 0.1s both;
}
.boot__text {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--ink-faint);
  animation: bootFade 0.6s var(--ease-out) 0.5s both;
}
@keyframes bootStamp {
  0% { transform: scale(1.9) rotate(-22deg); opacity: 0; filter: blur(3px); }
  60% { transform: scale(0.94) rotate(-6deg); opacity: 1; filter: blur(0); }
  100% { transform: scale(1) rotate(-8deg); }
}
@keyframes bootFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bootFailsafe { to { transform: translateY(-101%); visibility: hidden; } }
body:has(.boot:not(.boot--away)) { overflow: hidden; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: var(--paper); }

/* ---------- 全局纸纹颗粒 ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- 滚动入场（JS 加 .in） ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: none; will-change: auto; }

/* ---------- 悬浮胶囊导航 ---------- */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: top 0.3s var(--ease-out);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(246, 241, 229, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 48, 60, 0.08);
  box-shadow: 0 12px 32px -16px rgba(34, 48, 60, 0.25);
  transition: box-shadow 0.5s var(--ease-out), background 0.5s var(--ease-out);
}
.nav.scrolled {
  background: rgba(246, 241, 229, 0.88);
  box-shadow: 0 18px 44px -18px rgba(34, 48, 60, 0.35);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
}
.nav__logo i {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px dashed var(--red);
  display: grid; place-items: center;
  font-style: normal;
  font-size: 12px;
  color: var(--red);
  transition: transform 0.8s var(--ease-spring);
}
.nav__logo:hover i { transform: rotate(180deg); }
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.35s var(--ease-out), background 0.35s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); background: rgba(34, 48, 60, 0.06); }

/* ---------- 通用版式 ---------- */
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
section { padding: clamp(96px, 12vh, 150px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}

h2.title {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 22px 0 14px;
}
h2.title em {
  font-style: normal;
  color: var(--red);
  position: relative;
}
h2.title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 10px;
  background: var(--red-soft);
  z-index: -1;
  transform: skewX(-8deg);
}
.sec-desc { color: var(--ink-soft); max-width: 560px; font-size: 15.5px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 140px 0 100px;
}
.hero__routes {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800'%3E%3Cg fill='none' stroke='%23c0392b' stroke-opacity='0.14' stroke-width='1.2' stroke-dasharray='3 7'%3E%3Cpath d='M80 620 Q 400 120 760 300 T 1180 180'/%3E%3Cpath d='M-40 300 Q 300 560 620 460 T 1240 520'/%3E%3Cpath d='M200 820 Q 520 480 900 560 T 1260 320'/%3E%3C/g%3E%3Cg fill='%23c0392b' fill-opacity='0.18'%3E%3Ccircle cx='760' cy='300' r='4'/%3E%3Ccircle cx='620' cy='460' r='3'/%3E%3Ccircle cx='900' cy='560' r='3.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(64px, 11vw, 132px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.08;
  margin: 26px 0 8px;
}
.hero h1 .dot { color: var(--red); }
.hero__sub {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.hero__desc { max-width: 460px; color: var(--ink-soft); font-size: 15.5px; margin-bottom: 36px; }

/* 盖章入场 */
.stamp {
  width: clamp(200px, 22vw, 264px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2.5px dashed var(--red);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--red);
  position: relative;
  justify-self: end;
  transform: rotate(-8deg);
  animation: stampIn 1.1s var(--ease-spring) 0.9s both;
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7.5px rgba(192, 57, 43, 0.35);
  background:
    radial-gradient(circle at 30% 30%, rgba(192,57,43,0.06), transparent 60%);
}
@keyframes stampIn {
  0% { transform: scale(2) rotate(-24deg); opacity: 0; filter: blur(4px); }
  60% { transform: scale(0.92) rotate(-6deg); opacity: 1; filter: blur(0); }
  100% { transform: scale(1) rotate(-8deg); }
}
.stamp b {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.1;
  display: block;
}
.stamp span {
  font-size: 11px;
  letter-spacing: 0.35em;
  display: block;
  margin-top: 8px;
  opacity: 0.85;
}
.stamp small {
  display: block;
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  opacity: 0.6;
}
/* 图章纹理缺口 */
.stamp::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 68% 24%, var(--paper) 0 5px, transparent 6px),
    radial-gradient(circle at 30% 76%, var(--paper) 0 4px, transparent 5px),
    radial-gradient(circle at 82% 66%, var(--paper) 0 3.5px, transparent 4.5px);
  mix-blend-mode: lighten;
  pointer-events: none;
}

/* CTA：按钮套按钮 */
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 18px 36px -18px rgba(34, 48, 60, 0.55);
}
.btn--primary:hover { box-shadow: 0 24px 44px -18px rgba(34, 48, 60, 0.65); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 7px 7px 7px 25px;
}
.btn i {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-style: normal;
  font-size: 15px;
  transition: transform 0.5s var(--ease-spring);
}
.btn--primary i { background: rgba(246, 241, 229, 0.14); color: var(--paper); }
.btn--ghost i { background: rgba(34, 48, 60, 0.06); color: var(--ink); }
.btn:hover i { transform: translateX(3px) rotate(-8deg) scale(1.08); }

/* ---------- 数据条 ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--paper-2), var(--paper));
  padding: 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 44px 20px;
  text-align: center;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: linear-gradient(transparent, var(--line), transparent);
}
.stat b {
  font-family: var(--serif);
  font-size: clamp(52px, 6.5vw, 80px);
  font-weight: 700;
  display: block;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.stat b small {
  font-size: 0.34em;  /* 数字：单位汉字 ≈ 3:1 */
  color: var(--red);
  margin-left: 4px;
  letter-spacing: 0.1em;
}
.stat > span { font-size: 12.5px; letter-spacing: 0.25em; color: var(--ink-faint); }  /* 仅底部标签，不再误伤数字 */

/* ---------- 地图 ---------- */
.map-shell {
  border-radius: 32px;
  background: rgba(34, 48, 60, 0.035);
  border: 1px solid rgba(34, 48, 60, 0.07);
  padding: 10px;
}
.map-inner {
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,0.7), transparent 50%),
    linear-gradient(160deg, #f2ebdb, #ece2cc);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), inset 0 -1px 1px rgba(34, 48, 60, 0.05);
  overflow: hidden;
  position: relative;
}
#mapChart { width: 100%; height: min(72vh, 660px); }
.map-tools {
  position: absolute;
  right: 18px; bottom: 18px;
  display: flex;
  gap: 10px;
  z-index: 5;
}
.map-tools button {
  border: 1px solid var(--line);
  background: rgba(246, 241, 229, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}
.map-tools button:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.map-legend {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(246, 241, 229, 0.9);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}
.map-legend i {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px dashed var(--red);
  background: var(--red-soft);
}

/* ---------- 目的地抽屉 ---------- */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(34, 48, 60, 0.35);
  backdrop-filter: blur(4px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(480px, 100%);
  z-index: 96;
  background: var(--paper);
  box-shadow: -30px 0 80px -30px rgba(34, 48, 60, 0.4);
  transform: translateX(105%);
  transition: transform 0.6s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: none; }
.drawer__head {
  padding: 34px 34px 22px;
  border-bottom: 1px dashed var(--line);
  position: relative;
}
.drawer__close {
  position: absolute;
  top: 22px; right: 22px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink-soft);
  transition: all 0.4s var(--ease-spring);
}
.drawer__close:hover { transform: rotate(90deg); background: rgba(34,48,60,0.06); color: var(--ink); }
.drawer__city {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
}
.drawer__meta { color: var(--ink-faint); font-size: 13px; margin-top: 6px; letter-spacing: 0.05em; }
.drawer__body { flex: 1; overflow-y: auto; padding: 26px 34px 40px; }

.trip-mini {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(34, 48, 60, 0.07);
  padding: 8px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  opacity: 0;
  transform: translateY(18px);
}
.drawer.open .trip-mini {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease-out) var(--d, 0ms), transform 0.6s var(--ease-out) var(--d, 0ms), box-shadow 0.4s var(--ease-out);
}
.trip-mini:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.trip-mini__row { display: flex; gap: 14px; align-items: center; }
.trip-mini__img {
  width: 86px; height: 86px;
  border-radius: 16px;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 30px;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.trip-mini h4 { font-size: 15px; line-height: 1.45; margin-bottom: 4px; }
.trip-mini p { font-size: 12.5px; color: var(--ink-faint); }
.trip-mini__tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- 攻略墙（瀑布 + 轻微旋转堆叠） ---------- */
.masonry {
  column-count: 3;
  column-gap: 24px;
  margin-top: 56px;
}
.gcard {
  break-inside: avoid;
  margin-bottom: 24px;
  border-radius: 28px;
  background: rgba(34, 48, 60, 0.035);
  border: 1px solid rgba(34, 48, 60, 0.07);
  padding: 9px;
  cursor: pointer;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.gcard:hover { transform: translateY(-8px) rotate(0.4deg); box-shadow: var(--shadow-soft); }
.gcard__core {
  border-radius: 21px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7);
}
.gcard__cover {
  height: 190px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gcard__cover .big-city {
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.12em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.7s var(--ease-out);
}
.gcard:hover .big-city { transform: scale(1.07); }
.gcard__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(255,255,255,0.28), transparent 42%),
    radial-gradient(circle at 15% 85%, rgba(0,0,0,0.14), transparent 45%);
}
/* 日期角标 = 贴在照片上的“纸质票根”（不透明米白纸片 + 红虚线边 + 墨字）
 * 原因：原来是白虚线 + 90% 白字，压在亮部/花图上实测最坏对比度仅 1.13:1
 * （WCAG 正文需 ≥4.5）。换成不透明纸片后与照片无关，恒定 12.7:1；
 * 沿用原本的“虚线邮戳”语言，纯 CSS、零性能成本。
 * 三处共用：首页精选卡 / 攻略墙卡 / 攻略详情页横幅右上角。 */
.gcard__cover .date-stamp,
.article__banner .date-stamp {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  padding: 4px 11px;
  background: #fbf8ef;
  color: var(--ink);
  font-weight: 600;
  border: 1.5px dashed rgba(192, 57, 43, 0.55);
  border-radius: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transform: rotate(-3deg);
  box-shadow: 0 5px 14px -4px rgba(10, 18, 27, 0.5);
}
.article__banner .date-stamp { top: 18px; right: 18px; font-size: 12px; }
.gcard__body { padding: 22px 22px 24px; }
.gcard__body h3 {
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.gcard__body p {
  font-size: 13.5px;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gcard__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--ink-faint);
}
.gcard__foot b { color: var(--red); font-family: var(--serif); font-size: 15px; }
.tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(192, 57, 43, 0.18);
}

/* ---------- 图片体系（v2.1） ----------
 * 层级：图片(0) < 可读性遮罩(1) < 文字/邮戳(2) */
.cover-img, .pc-img, .banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.gcard__cover .big-city,
.gcard__cover .date-stamp { z-index: 2; }
.pc__front .pc-city,
.pc__front .pc-stamp,
.pc__front .pc-hint { z-index: 2; }
.pc__front.with-photo .pc-city { display: none; }
.gcard__cover .cover-img ~ .big-city,
.gcard__cover picture ~ .big-city,
.article__banner .banner-img ~ .article__city,
.article__banner picture ~ .article__city {
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45), 0 1px 4px rgba(0, 0, 0, 0.3);
}
.trip-mini__img { position: relative; overflow: hidden; }
.trip-mini__img .mini-char { position: relative; z-index: 1; }
.trip-mini__img.has-photo .mini-char { display: none; }
.article__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-3);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  left: 14px; bottom: 10px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* ---------- 明信片邮局（翻牌） ---------- */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 300px);
  gap: 26px;
  overflow-x: auto;
  padding: 30px 6px 40px;
  scroll-snap-type: x mandatory;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.pc {
  scroll-snap-align: center;
  perspective: 1200px;
  height: 380px;
}
.pc__inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease-out);
  cursor: pointer;
}
.pc.flipped .pc__inner { transform: rotateY(180deg); }
.pc__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.pc__front {
  background: linear-gradient(150deg, var(--c1), var(--c2));
  display: grid;
  place-items: center;
}
.pc__front::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  pointer-events: none;
  z-index: 2;
}
.pc__front .pc-city {
  font-family: var(--serif);
  font-size: 52px;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.18em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.pc__front .pc-hint {
  position: absolute;
  bottom: 22px;
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 11.5px;
  letter-spacing: 0.3em;
}
.pc__front .pc-stamp {
  position: absolute;
  top: 26px; right: 26px;
  width: 62px; height: 74px;
  border: 1.5px dashed rgba(255,255,255,0.7);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.85);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-align: center;
  line-height: 1.6;
  transform: rotate(6deg);
}
.pc__back {
  transform: rotateY(180deg);
  background:
    linear-gradient(rgba(249, 245, 234, 0.97), rgba(243, 237, 222, 0.97));
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.pc__back::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 54%;
  height: 1px;
  background: var(--line);
}
.pc__back .pc-msg {
  flex: 1;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink);
  padding-right: 90px;
}
.pc__postmark {
  position: absolute;
  top: 18px; right: 18px;
  width: 84px; height: 84px;
  border: 2px solid rgba(192, 57, 43, 0.75);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(192, 57, 43, 0.85);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  transform: rotate(-12deg);
  background: radial-gradient(circle, transparent 55%, rgba(192,57,43,0.05) 56%);
}
.pc__from { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.08em; }

/* ---------- 参与流程 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 64px;
  counter-reset: step;
  position: relative;
}
.step {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(34, 48, 60, 0.07);
  padding: 34px 28px;
  position: relative;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--red);
  display: block;
  line-height: 1;
  margin-bottom: 20px;
}
.step h4 { font-family: var(--serif); font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 13.5px; color: var(--ink-soft); }
.step .step-ico {
  position: absolute;
  top: 30px; right: 26px;
  font-size: 22px;
  opacity: 0.85;
}
.steps .step:nth-child(4) { background: var(--ink); border-color: var(--ink); }
.steps .step:nth-child(4) h4 { color: var(--paper); }
.steps .step:nth-child(4) p { color: rgba(246, 241, 229, 0.65); }
.steps .step:nth-child(4)::before { -webkit-text-stroke-color: var(--paper); }

/* ---------- 文章弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 97;
  background: rgba(34, 48, 60, 0.4);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
}
.modal-mask.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(720px, 100%);
  max-height: 86dvh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 30px;
  padding: 10px;
  transform: scale(0.94) translateY(20px);
  transition: transform 0.55s var(--ease-out);
  box-shadow: 0 40px 90px -30px rgba(34, 48, 60, 0.5);
}
.modal-mask.open .modal { transform: none; }
.modal__core {
  border-radius: 22px;
  background: #fbf8ef;
  padding: clamp(28px, 4vw, 48px);
  position: relative;
}
.modal__hero {
  height: 180px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
}
.modal__hero span {
  font-family: var(--serif);
  font-size: 52px;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.15em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.modal__meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.modal__meta b { color: var(--red); }
.modal__body {
  font-size: 15px;
  line-height: 2.1;
  color: var(--ink);
  white-space: pre-line;
}
.modal__quote {
  margin-top: 26px;
  padding: 18px 22px;
  border-left: 3px solid var(--red);
  background: var(--red-soft);
  border-radius: 0 14px 14px 0;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
}
.modal__close {
  position: sticky;
  top: 0;
  float: right;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.4s var(--ease-spring);
  z-index: 2;
}
.modal__close:hover { transform: rotate(90deg); color: var(--ink); }

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(var(--paper), var(--paper-2));
  padding: 70px 0 46px;
  text-align: center;
}
footer .foot-seal {
  width: 74px; height: 74px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 2px dashed var(--red);
  display: grid;
  place-items: center;
  color: var(--red);
  font-family: var(--serif);
  font-size: 20px;
  transform: rotate(-8deg);
}
footer p { color: var(--ink-faint); font-size: 13px; letter-spacing: 0.08em; }
footer .foot-links { display: flex; gap: 26px; justify-content: center; margin: 18px 0 26px; }
footer .foot-links a { color: var(--ink-soft); font-size: 13.5px; text-decoration: none; transition: color .3s; }
footer .foot-links a:hover { color: var(--red); }
/* 备案信息（config.js → icp / gongan，非空时才由 site.js 注入） */
footer .foot-beian { margin-top: 2px; }
footer .foot-beian a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-faint);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  transition: color .3s;
}
footer .foot-beian a:hover { color: var(--red); }
footer .foot-beian__icon { width: 14px; height: 15px; vertical-align: -2px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .stamp { justify-self: start; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .masonry { column-count: 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  #mapChart { height: 58vh; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 36px); }
  section { padding: 80px 0; }
  .masonry { column-count: 1; }
  .steps { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
  .map-legend { display: none; }
}

/* ============================================================
 * 多页架构扩展（v2）
 * ============================================================ */

/* ---------- 紧凑区块变体 ---------- */
section.tight { padding: clamp(56px, 8vh, 90px) 0; }
section.tight + section.tight { padding-top: 0; }
section.tight.alt {
  background: linear-gradient(var(--paper), var(--paper-2));
  border-top: 1px solid var(--line);
}

/* ---------- 内页页头 ---------- */
.page-hero {
  padding: 170px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 20px 0 16px;
}
.page-title em { font-style: normal; color: var(--red); }
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-faint);
  text-decoration: none;
  margin-bottom: 26px;
  transition: color 0.3s, transform 0.4s var(--ease-out);
}
.crumb:hover { color: var(--red); transform: translateX(-3px); }

/* ---------- 导航当前页 ---------- */
.nav__links a.active {
  color: var(--ink);
  background: rgba(192, 57, 43, 0.09);
  font-weight: 600;
}

/* ---------- 板块头（标题+查看全部） ---------- */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.sec-more { flex-shrink: 0; margin-bottom: 6px; }

/* ---------- 首页迷你地图 ---------- */
.map-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 32px;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.map-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.map-link:hover .map-legend b { color: var(--red); }
#mapMini { width: 100%; height: min(46vh, 420px); }

/* ---------- 筛选 chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}
.chip small {
  font-size: 11px;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.chip:hover { transform: translateY(-2px); border-color: var(--ink); color: var(--ink); }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.chip.active small { color: rgba(246, 241, 229, 0.75); }
.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--ink-faint);
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.08em;
}

/* ---------- 链接化卡片重置（v2 多页架构，卡片即 <a>） ---------- */
a.gcard, a.pc, a.trip-mini, a.tl-item {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.pc { perspective: 1200px; }

/* ---------- 时间线（出发档案 / 收信记录） ---------- */
.timeline {
  position: relative;
  margin-top: 56px;
  padding-left: 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 81px; top: 8px; bottom: 8px;
  border-left: 2px dashed var(--line);
}
.tl-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 0 36px 0;
  position: relative;
}
.tl-item:last-child { padding-bottom: 4px; }
.tl-date {
  width: 92px;
  flex-shrink: 0;
  text-align: right;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.tl-item::after {
  content: "";
  position: absolute;
  left: 77px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--red);
  transform: translateX(-50%);
  top: 50%;
  margin-top: -5px;
}
.tl-body {
  flex: 1;
  margin-left: 22px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(34, 48, 60, 0.07);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.tl-body:hover { transform: translateX(4px); box-shadow: var(--shadow-soft); }
.tl-title {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  display: block;
  line-height: 1.5;
}
.tl-title:hover { color: var(--red); }
.tl-meta { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; }
.tl-badge {
  width: 52px; height: 52px;
  border-radius: 16px;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 22px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transform: rotate(4deg);
}

/* ---------- 明信片网格（邮局页） ---------- */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.pc-grid .pc { height: 360px; }
.pc-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 0.06em;
}
.pc-link:hover { text-decoration: underline; }

/* ---------- 攻略详情页 ---------- */
.article { max-width: 820px; }
.article__banner {
  height: clamp(200px, 32vw, 300px);
  border-radius: 26px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 34px;
}
.article__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.3), transparent 44%),
    radial-gradient(circle at 12% 88%, rgba(0,0,0,0.16), transparent 48%);
}
.article__city {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 84px);
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.18em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.28);
  z-index: 1;
}
.article__meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-faint);
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px dashed var(--line);
}
.article__meta b { color: var(--red); }
.article__title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.4;
  margin-bottom: 28px;
}
.article__body {
  font-size: 15.5px;
  line-height: 2.2;
  color: var(--ink);
  white-space: pre-line;
}
.article .modal__quote { margin-top: 34px; }
.article__card-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 56px;
  padding-top: 44px;
  border-top: 1px dashed var(--line);
}
.article__pc { height: 340px; }
.article__aside h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 12px;
}
.article__aside p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 2;
}
.article__hint {
  margin-top: 10px;
  font-size: 12.5px !important;
  color: var(--ink-faint) !important;
}
.gcard__cover--slim { height: 120px; }

/* ---------- 参与页：细则 + FAQ ---------- */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.rule-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(34, 48, 60, 0.07);
  padding: 30px 28px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.rule-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.rule-card h4 {
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 10px;
}
.rule-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.95; }
.faq-wrap { max-width: 780px; }
.faq { margin-top: 40px; }
.faq details {
  border-bottom: 1px dashed var(--line);
  padding: 6px 4px;
}
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 16.5px;
  padding: 18px 34px 18px 0;
  position: relative;
  list-style: none;
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 20px;
  transition: transform 0.4s var(--ease-spring);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(135deg); }
.faq summary:hover { color: var(--red); }
.faq details p {
  padding: 0 30px 20px 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 2;
}
.cta-final { text-align: center; }
.cta-final .cta-row { display: flex; }

/* ---------- 公众号关注卡 ---------- */
.qr-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 12px;
  border-radius: 30px;
  background: rgba(34, 48, 60, 0.035);
  border: 1px solid rgba(34, 48, 60, 0.07);
  text-align: left;
}
.qr-card__core,
.qr-card > * {
  min-width: 0;
}
.qr-media {
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: #fbf8ef;
  position: relative;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7);
}
.qr-media .qr-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.qr-placeholder {
  position: absolute;
  inset: 10px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.9;
  padding: 10px;
}
.qr-placeholder__icon {
  font-size: 34px;
  color: var(--line);
  margin-bottom: 6px;
  font-family: var(--serif);
}
.qr-info h4 {
  font-family: var(--serif);
  font-size: 21px;
  margin: 14px 0 10px;
}
.qr-info p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 2;
}
.qr-info .article__hint { margin-top: 12px; }
@media (max-width: 640px) {
  .qr-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; }
  .qr-media { width: min(220px, 70%); }
}

/* ---------- 首页攻略预览（两列） ---------- */
.masonry--preview { column-count: 3; column-gap: 24px; }

@media (max-width: 900px) {
  .page-hero { padding: 140px 0 48px; }
  .article__card-row { grid-template-columns: 1fr; }
  .article__pc { max-width: 320px; }
  .rules-grid { grid-template-columns: 1fr; }
  .masonry--preview { column-count: 2; }
  .timeline::before { left: 14px; }
  .tl-item { flex-wrap: wrap; gap: 10px 16px; }
  .tl-date { width: auto; text-align: left; }
  .tl-item::after { left: 10px; top: 24px; margin-top: 0; }
  .tl-body { margin-left: 40px; }
  .tl-badge { margin-left: 40px; }
}
@media (max-width: 600px) {
  .masonry--preview { column-count: 1; }
  .pc-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pc-grid .pc, .article__pc { height: 300px; }
  .article__gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
}
