/* ============================================================
   盘古 · 视界教育平台 — 北疆生态与人文数字志
   Design system: ink green / parchment / brass gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Noto+Sans+SC:wght@300;400;500;600;700&family=Noto+Serif+SC:wght@400;500;600;700;900&display=swap');

:root {
  --ink: #0a1610;
  --ink-2: #0f241a;
  --pine: #173d2e;
  --pine-2: #1e4b39;
  --moss: #5f7f63;
  --sage: #a9bba5;
  --sand: #d9c6a5;
  --gold: #c9a15e;
  --gold-2: #e3c98f;
  --paper: #f5f0e6;
  --paper-2: #ece4d4;
  --cream: #fbf8f1;
  --white: #fffdf8;
  --line: rgba(23, 45, 32, .14);
  --line-dark: rgba(245, 240, 230, .14);
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --latin: 'Cormorant Garamond', 'Times New Roman', serif;
  --shadow: 0 24px 60px -30px rgba(10, 22, 16, .45);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

::selection { background: var(--gold); color: var(--ink); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--pine); border-radius: 99px; border: 2px solid var(--paper); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.container-wide { width: min(1400px, calc(100% - 48px)); margin-inline: auto; }

.serif { font-family: var(--serif); }
.latin { font-family: var(--latin); }
.gold { color: var(--gold); }
.muted { color: rgba(10, 22, 16, .58); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  padding: 10px 18px; background: var(--gold); color: var(--ink);
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ---------- shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.no-line::before { display: none; }

.display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.section { position: relative; padding: 112px 0; }
.section-sm { padding: 76px 0; }
.section-dark { background: var(--ink); color: var(--cream); }
.section-paper { background: var(--paper); }
.section-cream { background: var(--cream); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 56px;
}
.section-head .title-wrap { max-width: 720px; }
.section-head h2 {
  font-family: var(--serif); font-size: clamp(30px, 4vw, 52px);
  font-weight: 600; letter-spacing: -.02em; margin-top: 14px;
}
.section-head p {
  margin-top: 16px; max-width: 560px; color: rgba(10, 22, 16, .62);
  font-size: 15px; line-height: 1.9;
}
.section-dark .section-head p { color: rgba(245, 240, 230, .6); }
.section-head .head-link { flex-shrink: 0; margin-bottom: 6px; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  color: var(--pine); padding-bottom: 5px;
  border-bottom: 1px solid rgba(23, 61, 46, .35);
  transition: color .25s, border-color .25s, gap .25s;
}
.text-link svg { width: 15px; height: 15px; transition: transform .25s; }
.text-link:hover { color: var(--gold); border-color: var(--gold); gap: 14px; }
.section-dark .text-link { color: var(--gold-2); border-color: rgba(227, 201, 143, .4); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 2px;
  background: var(--gold); color: var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s; }
.btn:hover { background: var(--gold-2); transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(201, 161, 94, .8); }
.btn:hover svg { transform: translateX(4px); }
.btn-ghost {
  background: transparent; color: var(--cream);
  border-color: rgba(245, 240, 230, .32);
}
.btn-ghost:hover { background: rgba(245, 240, 230, .08); color: var(--white); border-color: rgba(245, 240, 230, .6); box-shadow: none; }
.btn-dark { background: var(--pine); color: var(--cream); }
.btn-dark:hover { background: var(--pine-2); color: var(--cream); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border: 1px solid var(--line);
  border-radius: 99px; font-size: 11px; font-weight: 500;
  letter-spacing: .08em; color: rgba(10, 22, 16, .68);
  background: rgba(255, 253, 248, .5);
}
.section-dark .chip { border-color: var(--line-dark); color: rgba(245, 240, 230, .7); background: rgba(255, 253, 248, .04); }
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 250;
  height: 2px; width: 0; background: var(--gold);
  box-shadow: 0 0 12px rgba(201, 161, 94, .7);
}

/* ---------- navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 200;
  height: 78px; display: flex; align-items: center;
  color: var(--cream);
  transition: background .35s var(--ease), border-color .35s, height .35s;
  border-bottom: 1px solid transparent;
}
.nav::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 17, 12, .55), transparent);
  transition: opacity .35s;
}
.nav.is-scrolled {
  height: 68px; background: rgba(9, 21, 15, .92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(245, 240, 230, .1);
}
.nav.is-scrolled::after { opacity: 0; }
.nav-inner {
  width: min(1360px, calc(100% - 56px)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(227, 201, 143, .6);
  padding: 2px; background: rgba(245, 240, 230, .06);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.brand-text h1 { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .1em; line-height: 1.2; }
.brand-text p { font-size: 9px; letter-spacing: .24em; color: rgba(245, 240, 230, .55); margin-top: 3px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; padding: 9px 14px; font-size: 13px;
  letter-spacing: .08em; color: rgba(245, 240, 230, .72);
  transition: color .2s;
}
.nav-link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 1px; background: var(--gold); transform: scaleX(0);
  transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--cream); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-cta .btn { min-height: 42px; padding: 0 20px; font-size: 11px; }
.nav-burger {
  display: none; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid rgba(245, 240, 230, .25);
  color: var(--cream);
}
.nav-burger span { display: block; width: 18px; height: 1px; background: currentColor; margin: 4px auto; transition: .3s; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(8, 18, 12, .97); backdrop-filter: blur(20px);
  padding: 110px 32px 40px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transition: .35s var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid rgba(245, 240, 230, .1);
  font-family: var(--serif); font-size: 24px; color: var(--cream);
}
.mobile-menu a span { font-family: var(--latin); font-size: 13px; color: var(--gold); letter-spacing: .1em; }
.mobile-menu .menu-note { margin-top: 32px; font-size: 12px; color: rgba(245, 240, 230, .45); letter-spacing: .16em; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 150px 0 84px; overflow: hidden; color: var(--cream);
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transform: scale(1.04); animation: heroDrift 18s ease-out forwards; }
@keyframes heroDrift { to { transform: scale(1); } }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 15, 10, .86) 0%, rgba(6, 15, 10, .48) 45%, rgba(6, 15, 10, .06) 75%),
    linear-gradient(0deg, rgba(6, 15, 10, .94) 0%, rgba(6, 15, 10, .08) 55%),
    radial-gradient(ellipse at 75% 40%, rgba(201, 161, 94, .12), transparent 55%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 48px; align-items: end; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2);
}
.hero-kicker .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 0 rgba(227, 201, 143, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(227, 201, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 201, 143, 0); } }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(54px, 8.4vw, 120px); line-height: 1.04; letter-spacing: -.035em;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .line > span { display: block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
@keyframes rise { to { transform: none; } }
.hero-sub {
  margin-top: 28px; max-width: 530px; font-size: 15px; line-height: 2;
  color: rgba(245, 240, 230, .74);
}
.hero-sub strong { color: var(--cream); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 46px;
  padding-top: 26px; border-top: 1px solid rgba(245, 240, 230, .16);
}
.hero-stat { min-width: 90px; }
.hero-stat b { display: block; font-family: var(--latin); font-size: 34px; font-weight: 500; color: var(--gold-2); line-height: 1; }
.hero-stat span { display: block; margin-top: 7px; font-size: 10px; letter-spacing: .18em; color: rgba(245, 240, 230, .52); }

/* mascot */
.mascot { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 470px; }
.mascot-img { position: relative; z-index: 2; width: min(270px, 70%); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); animation: floatSoft 5.5s ease-in-out infinite; }
/* 动图吉祥物：GIF 画布 320×568，人物本体占 292×507，按同比例放大以保持原视觉高度 */
.mascot-img.mascot-gif { width: min(292px, 72%); bottom: -20px; }
@keyframes floatSoft { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.mascot-halo { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 161, 94, .3), transparent 65%); filter: blur(14px); bottom: 40px; }
.mascot-bubble {
  position: absolute; top: 52px; right: calc(50% + 147px); z-index: 3; width: 230px; max-width: 230px;
  padding: 16px 18px; background: rgba(251, 248, 241, .96); color: var(--ink);
  border-radius: 14px 14px 2px 14px; font-size: 12.5px; line-height: 1.8;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .5);
  transform: rotate(-1.2deg);
}
.mascot-bubble b { display: block; font-family: var(--serif); font-size: 14px; margin-bottom: 3px; color: var(--pine); }
.mascot-bubble::after {
  content: ''; position: absolute; right: -6px; top: 36px;
  width: 12px; height: 12px; background: rgba(251, 248, 241, .96);
  transform: rotate(45deg); border-radius: 2px;
}
.mascot-tag {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  z-index: 3; padding: 6px 14px; border: 1px solid rgba(227, 201, 143, .45);
  background: rgba(10, 22, 16, .6); backdrop-filter: blur(8px);
  border-radius: 99px; font-size: 9px; letter-spacing: .26em; color: var(--gold-2); white-space: nowrap;
}
.hero-side-note {
  position: absolute; right: 26px; bottom: 90px; z-index: 3;
  writing-mode: vertical-rl; font-size: 9px; letter-spacing: .34em;
  color: rgba(245, 240, 230, .4); text-transform: uppercase;
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 8px; letter-spacing: .3em; color: rgba(245, 240, 230, .45);
}
.hero-scroll::after { content: ''; width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* marquee */
.marquee {
  position: relative; overflow: hidden; background: var(--ink);
  border-top: 1px solid rgba(245, 240, 230, .08);
  border-bottom: 1px solid rgba(245, 240, 230, .08);
  color: rgba(245, 240, 230, .45); padding: 15px 0;
}
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; font-size: 10px; letter-spacing: .28em; white-space: nowrap; }
.marquee span::after { content: '✦'; color: var(--gold); font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- interactive map section ---------- */
.map-section { background: var(--ink-2); color: var(--cream); overflow: hidden; }
.map-section::before {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    radial-gradient(circle at 78% 30%, rgba(201, 161, 94, .1), transparent 45%),
    radial-gradient(circle at 12% 75%, rgba(95, 127, 99, .12), transparent 40%);
}
.map-section .container { position: relative; z-index: 1; }
.map-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 56px; align-items: stretch; }
.map-copy { display: flex; flex-direction: column; }
.map-copy h2 { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 58px); line-height: 1.18; margin-top: 16px; }
.map-copy h2 em { font-style: normal; color: var(--gold-2); }
.map-copy > p { margin-top: 20px; color: rgba(245, 240, 230, .62); font-size: 14px; line-height: 1.95; max-width: 430px; }
.map-preview {
  margin-top: 34px; position: relative; overflow: hidden;
  border: 1px solid rgba(245, 240, 230, .12);
  background: rgba(245, 240, 230, .04);
  display: grid; grid-template-columns: 148px 1fr; min-height: 196px;
}
.map-preview-media { position: relative; overflow: hidden; background: var(--pine); }
.map-preview-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform .6s var(--ease); }
.map-preview:hover .map-preview-media img { transform: scale(1.05); }
.map-preview-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(15, 36, 26, .5)); }
.map-preview-body { padding: 20px 22px; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.map-preview-body .idx { font-family: var(--latin); font-size: 12px; letter-spacing: .18em; color: var(--gold); }
.map-preview-body h3 { font-family: var(--serif); font-size: 25px; margin-top: 3px; }
.map-preview-body .tagline { font-size: 11px; color: rgba(245, 240, 230, .55); letter-spacing: .08em; margin-top: 2px; }
.map-preview-body .mini-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.map-preview-body .mini-tags span { font-size: 9px; letter-spacing: .1em; padding: 3px 8px; border: 1px solid rgba(245, 240, 230, .18); color: rgba(245, 240, 230, .65); }
.map-preview-body .enter { margin-top: auto; padding-top: 12px; font-size: 10px; letter-spacing: .16em; color: var(--gold-2); display: inline-flex; align-items: center; gap: 7px; }
.map-preview-body .enter svg { width: 12px; height: 12px; }
.map-preview-link { position: absolute; inset: 0; z-index: 2; }
.map-preview-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.map-stage {
  position: relative; min-height: 560px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(245, 240, 230, .1);
  background:
    linear-gradient(rgba(245, 240, 230, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 230, .035) 1px, transparent 1px),
    radial-gradient(ellipse at 55% 45%, rgba(30, 75, 57, .55), rgba(10, 22, 16, .2) 70%);
  background-size: 54px 54px, 54px 54px, auto;
  overflow: hidden;
}
.map-stage::before, .map-stage::after {
  content: ''; position: absolute; width: 22px; height: 22px;
  border-color: rgba(227, 201, 143, .55); border-style: solid; z-index: 2;
}
.map-stage::before { left: 14px; top: 14px; border-width: 1px 0 0 1px; }
.map-stage::after { right: 14px; bottom: 14px; border-width: 0 1px 1px 0; }
.map-svg { width: 100%; height: auto; max-height: 620px; overflow: visible; }
.map-svg svg { width: 100%; height: auto; display: block; }
.city-region {
  fill: #214f3d; stroke: rgba(10, 22, 16, .72); stroke-width: 2;
  cursor: pointer; transition: fill .3s, filter .3s, transform .3s;
  transform-origin: center; vector-effect: non-scaling-stroke;
}
.city-region:nth-child(3n+2) { fill: #255743; }
.city-region:nth-child(3n+3) { fill: #1d4938; }
.city-region:hover, .city-region:focus-visible, .city-region.is-active {
  fill: var(--gold); filter: drop-shadow(0 8px 18px rgba(201, 161, 94, .35));
  outline: none;
}
.map-section .text-link, .heritage-section .text-link {
  color: var(--gold-2); border-color: rgba(227, 201, 143, .42);
}
.map-section .text-link:hover, .heritage-section .text-link:hover { color: var(--gold); border-color: var(--gold); }

.city-label {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  fill: rgba(251, 248, 241, .82); letter-spacing: .12em;
  pointer-events: none; paint-order: stroke;
  stroke: rgba(10, 22, 16, .55); stroke-width: 3px; stroke-linejoin: round;
}
.city-label.is-small { font-size: 10.5px; }
.city-dot { fill: var(--gold-2); pointer-events: none; }
.map-capital-star { fill: var(--gold-2); stroke: var(--ink); stroke-width: 1; pointer-events: none; }
.map-note {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  font-size: 8px; letter-spacing: .22em; color: rgba(245, 240, 230, .38);
}
.map-compass { position: absolute; right: 20px; top: 18px; width: 46px; height: 46px; opacity: .55; z-index: 2; }
.map-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.map-chip {
  padding: 7px 12px; border: 1px solid rgba(245, 240, 230, .16);
  background: transparent; color: rgba(245, 240, 230, .65);
  font-size: 10px; letter-spacing: .1em; transition: .2s;
}
.map-chip:hover, .map-chip.is-active { border-color: var(--gold); color: var(--gold-2); background: rgba(201, 161, 94, .08); }

/* ---------- city grid ---------- */
.city-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.city-card {
  position: relative; display: block; overflow: hidden; background: var(--pine);
  aspect-ratio: 3 / 4; color: var(--cream);
  isolation: isolate;
}
.city-card:nth-child(1), .city-card:nth-child(8) { grid-row: span 1; }
.city-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.88); }
.city-card::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8, 18, 12, .03) 30%, rgba(8, 18, 12, .82) 100%);
}
.city-card:hover img { transform: scale(1.07); filter: saturate(1.05); }
.city-card-top { position: absolute; z-index: 2; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: flex-start; }
.city-card-num { font-family: var(--latin); font-size: 13px; letter-spacing: .18em; color: var(--gold-2); }
.city-card-plus { width: 30px; height: 30px; border: 1px solid rgba(245, 240, 230, .26); display: grid; place-items: center; transition: .3s; }
.city-card-plus svg { width: 12px; height: 12px; }
.city-card:hover .city-card-plus { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: rotate(90deg); }
.city-card-body { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; }
.city-card-body h3 { font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: .04em; }
.city-card-body .en { font-family: var(--latin); font-size: 10px; letter-spacing: .24em; color: rgba(245, 240, 230, .5); margin-top: 2px; }
.city-card-body p { font-size: 11px; color: rgba(245, 240, 230, .68); margin-top: 9px; line-height: 1.7; }
.city-card-body .tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 11px; }
.city-card-body .tags span { font-size: 8.5px; letter-spacing: .08em; padding: 2px 7px; border: 1px solid rgba(245, 240, 230, .22); color: rgba(245, 240, 230, .68); }
.city-card-body .go { margin-top: 14px; font-size: 9px; letter-spacing: .18em; color: var(--gold-2); display: flex; align-items: center; gap: 6px; opacity: 0; transform: translateY(6px); transition: .35s var(--ease); }
.city-card:hover .go { opacity: 1; transform: none; }
.city-card-body .go svg { width: 11px; height: 11px; }

/* ---------- ecology ---------- */
.eco-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.eco-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; color: var(--cream); padding: 22px; isolation: isolate;
}
.eco-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.eco-card:nth-child(6) { grid-column: span 2; }
.eco-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.eco-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 18, 12, .05), rgba(8, 18, 12, .82)); transition: background .4s; }
.eco-card:hover img { transform: scale(1.06); }
.eco-card:hover::after { background: linear-gradient(180deg, rgba(8, 18, 12, .1), rgba(8, 18, 12, .9)); }
.eco-card .eco-idx { position: absolute; top: 18px; right: 20px; font-family: var(--latin); font-size: 13px; color: rgba(245, 240, 230, .55); }
.eco-card h3 { font-family: var(--serif); font-size: 22px; }
.eco-card:nth-child(1) h3 { font-size: 34px; }
.eco-card p { margin-top: 6px; font-size: 11.5px; line-height: 1.7; color: rgba(245, 240, 230, .68); max-width: 340px; }
.eco-card .eco-link { margin-top: 14px; font-size: 9px; letter-spacing: .18em; color: var(--gold-2); display: inline-flex; gap: 6px; align-items: center; opacity: 0; transform: translateY(5px); transition: .3s; }
.eco-card:hover .eco-link { opacity: 1; transform: none; }
.eco-card .eco-link svg { width: 11px; height: 11px; }

/* ---------- heritage ---------- */
.heritage-section { background: var(--ink); color: var(--cream); }
.heritage-section .section-head p { color: rgba(245, 240, 230, .58); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filter-btn {
  padding: 8px 16px; background: transparent; border: 1px solid rgba(245, 240, 230, .16);
  color: rgba(245, 240, 230, .58); font-size: 11px; letter-spacing: .12em;
  transition: .25s;
}
.filter-btn:hover { border-color: rgba(227, 201, 143, .5); color: var(--gold-2); }
.filter-btn.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600; }
.heritage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.heritage-card {
  position: relative; overflow: hidden; background: #122a1e;
  border: 1px solid rgba(245, 240, 230, .08);
  display: flex; flex-direction: column; text-align: left; padding: 0; color: inherit;
  transition: border-color .3s, transform .3s var(--ease), opacity .3s;
}
.heritage-card:hover { border-color: rgba(201, 161, 94, .5); transform: translateY(-4px); }
.heritage-card.is-hidden { display: none; }
.heritage-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.heritage-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.heritage-card:hover .heritage-media img { transform: scale(1.06); }
.heritage-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 22, 16, .55), transparent 45%); }
.heritage-level {
  position: absolute; z-index: 2; left: 12px; top: 12px;
  padding: 4px 9px; background: rgba(10, 22, 16, .72); backdrop-filter: blur(6px);
  border: 1px solid rgba(227, 201, 143, .5);
  font-size: 8.5px; letter-spacing: .14em; color: var(--gold-2);
}
.heritage-body { padding: 17px 17px 19px; display: flex; flex-direction: column; flex: 1; }
.heritage-body .cat { font-size: 9px; letter-spacing: .18em; color: var(--gold); }
.heritage-body h3 { font-family: var(--serif); font-size: 19px; margin-top: 6px; line-height: 1.4; }
.heritage-body p { margin-top: 8px; font-size: 11.5px; line-height: 1.8; color: rgba(245, 240, 230, .56); }
.heritage-body .more { margin-top: auto; padding-top: 14px; font-size: 9px; letter-spacing: .16em; color: rgba(227, 201, 143, .8); display: inline-flex; align-items: center; gap: 6px; }
.heritage-body .more svg { width: 11px; height: 11px; }

/* ---------- routes ---------- */
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.route-card { position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.route-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.route-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.route-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(10, 22, 16, .32)); pointer-events: none; }
.route-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.route-card:hover .route-media img { transform: scale(1.05); }
.route-days { position: absolute; left: 14px; top: 14px; padding: 5px 10px; background: rgba(10, 22, 16, .72); backdrop-filter: blur(6px); color: var(--gold-2); font-size: 9px; letter-spacing: .14em; }
.route-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.route-body .region { font-size: 9px; letter-spacing: .2em; color: var(--gold); }
.route-body h3 { font-family: var(--serif); font-size: 23px; margin-top: 8px; }
.route-body p { margin-top: 10px; font-size: 12.5px; line-height: 1.85; color: var(--muted); }
.route-stops { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.route-stop { display: flex; gap: 10px; font-size: 10.5px; color: rgba(10, 22, 16, .6); }
.route-stop b { color: var(--pine); font-weight: 500; flex-shrink: 0; width: 42px; font-family: var(--latin); font-size: 11px; letter-spacing: .04em; }
.route-body .text-link { margin-top: 18px; align-self: flex-start; }

/* ---------- learning / quiz ---------- */
.learn-section { position: relative; background: var(--paper); overflow: hidden; }
.learn-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.learn-mascot { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 460px; }
.learn-mascot::before {
  content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 161, 94, .22), transparent 66%);
  bottom: 20px; filter: blur(8px);
}
.learn-mascot img { position: relative; z-index: 2; width: min(310px, 72%); filter: drop-shadow(0 26px 30px rgba(23, 61, 46, .22)); animation: floatSoft 6s ease-in-out infinite; }
.learn-mascot .ring-text { position: absolute; inset: 20px 0 0; border: 1px dashed rgba(23, 61, 46, .2); border-radius: 50%; width: 430px; height: 430px; margin: auto; animation: rotate 40s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.learn-badge {
  position: absolute; z-index: 3; padding: 8px 14px; background: var(--white);
  border: 1px solid var(--line); font-size: 9px; letter-spacing: .14em; color: var(--pine);
  box-shadow: 0 12px 30px -18px rgba(10, 22, 16, .35);
}
.learn-badge.b1 { left: 2%; top: 18%; }
.learn-badge.b2 { right: 0; top: 36%; }
.learn-badge.b3 { left: 8%; bottom: 18%; }
.learn-copy h2 { font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); line-height: 1.2; margin-top: 14px; }
.learn-copy > p { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.95; max-width: 520px; }
.learn-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.learn-mode {
  display: flex; flex-direction: column; gap: 5px; padding: 16px;
  border: 1px solid var(--line); background: rgba(255, 253, 248, .55);
  transition: border-color .25s, background .25s;
  text-align: left;
}
.learn-mode:hover { border-color: var(--gold); background: var(--white); }
.learn-mode b { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.learn-mode span { font-size: 10.5px; color: var(--muted); line-height: 1.6; }
.learn-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(245, 240, 230, .58); padding: 76px 0 30px; position: relative; overflow: hidden; }
.footer::before {
  content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 161, 94, .12), transparent 65%);
}
.footer-top { display: grid; grid-template-columns: 1.4fr .7fr .7fr .8fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(245, 240, 230, .1); position: relative; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 12px; line-height: 1.9; max-width: 300px; }
.footer-col h4 { color: var(--cream); font-family: var(--serif); font-size: 14px; letter-spacing: .1em; margin-bottom: 16px; font-weight: 500; }
.footer-col a { display: block; font-size: 12px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 24px; font-size: 10px; letter-spacing: .08em; }
.footer-bottom .mono { font-family: var(--latin); letter-spacing: .16em; }
.footer-big {
  font-family: var(--serif); font-size: clamp(48px, 10vw, 140px); line-height: 1;
  color: rgba(245, 240, 230, .04); letter-spacing: .06em; margin-top: 40px;
  white-space: nowrap; pointer-events: none; user-select: none;
}

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal.is-open { opacity: 1 !important; visibility: visible !important; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 15, 10, .86); }
.modal-panel {
  position: relative; z-index: 2; width: min(880px, 100%); max-height: min(86vh, 860px);
  overflow: auto; background: var(--cream); color: var(--ink);
  transform: translateY(20px) scale(.98); transition: transform .35s var(--ease);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .55);
}
.modal.is-open .modal-panel { transform: none; }
.modal-media { position: relative; height: 300px; overflow: hidden; background: var(--pine); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 22, 16, .72), transparent 60%); }
.modal-media-text { position: absolute; z-index: 2; left: 30px; right: 60px; bottom: 24px; color: var(--cream); }
.modal-media-text .cat { font-size: 9px; letter-spacing: .22em; color: var(--gold-2); }
.modal-media-text h2 { font-family: var(--serif); font-size: clamp(26px, 4vw, 38px); margin-top: 6px; }
.modal-media-text p { font-size: 12px; color: rgba(245, 240, 230, .72); margin-top: 4px; }
.modal-close {
  position: absolute; z-index: 3; right: 16px; top: 16px;
  width: 40px; height: 40px; border: 1px solid rgba(245, 240, 230, .3);
  background: rgba(10, 22, 16, .5); color: var(--cream); display: grid; place-items: center;
  transition: .2s;
}
.modal-close:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.modal-close svg { width: 16px; height: 16px; }
.modal-content { padding: 30px 34px 34px; }
.modal-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.modal-meta div { font-size: 11px; color: var(--muted); }
.modal-meta b { display: block; font-size: 9px; letter-spacing: .16em; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.modal-content .lead { font-family: var(--serif); font-size: 19px; line-height: 1.8; color: var(--pine); margin-bottom: 16px; }
.modal-content p { font-size: 13.5px; line-height: 1.95; color: rgba(10, 22, 16, .7); }
.modal-tip { margin-top: 20px; padding: 16px 18px; border-left: 2px solid var(--gold); background: rgba(201, 161, 94, .1); font-size: 12px; line-height: 1.8; color: rgba(10, 22, 16, .7); }
.modal-tip b { color: var(--pine); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- quiz ---------- */
.quiz-shell { padding: 28px 30px 32px; }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 20px; }
.quiz-progress span { flex: 1; height: 2px; background: var(--line); }
.quiz-progress span.is-on { background: var(--gold); }
.quiz-q { font-family: var(--serif); font-size: 21px; line-height: 1.6; margin-bottom: 18px; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt {
  text-align: left; padding: 13px 16px; background: var(--white);
  border: 1px solid var(--line); font-size: 13px; transition: .2s;
}
.quiz-opt:hover { border-color: var(--gold); background: rgba(201, 161, 94, .08); }
.quiz-opt.is-correct { border-color: #3c7a58; background: rgba(60, 122, 88, .12); }
.quiz-opt.is-wrong { border-color: #a6533c; background: rgba(166, 83, 60, .1); }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; font-size: 11px; color: var(--muted); }
.quiz-result { text-align: center; padding: 22px 10px 8px; }
.quiz-result .score { font-family: var(--latin); font-size: 64px; line-height: 1; color: var(--gold); }
.quiz-result h3 { font-family: var(--serif); font-size: 24px; margin-top: 10px; }
.quiz-result p { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* ---------- floating guide ---------- */
.guide {
  position: fixed; right: 22px; bottom: 22px; z-index: 180;
  display: flex; align-items: flex-end; gap: 10px;
}
.guide-toggle {
  position: relative; width: 62px; height: 62px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(201, 161, 94, .6); background: var(--paper);
  box-shadow: 0 16px 34px -16px rgba(10, 22, 16, .5); overflow: visible;
  transition: transform .25s;
}
.guide-toggle:hover { transform: translateY(-3px); }
.guide-toggle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.guide-toggle::after {
  content: ''; position: absolute; right: 2px; top: 2px; width: 10px; height: 10px;
  border-radius: 50%; background: #5f9b6f; border: 2px solid var(--paper);
}
.guide-panel {
  position: absolute; right: 74px; bottom: 0; width: 320px;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(10, 22, 16, .45);
  padding: 20px; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: .3s var(--ease);
}
.guide-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.guide-panel .gp-head { display: flex; align-items: center; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.guide-panel .gp-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.guide-panel .gp-head b { display: block; font-family: var(--serif); font-size: 15px; }
.guide-panel .gp-head span { display: block; font-size: 8.5px; letter-spacing: .14em; color: var(--gold); }
.guide-panel p { font-size: 11.5px; line-height: 1.8; color: var(--muted); margin-top: 12px; }
.guide-links { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.guide-links a, .guide-links button {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 11px; background: var(--paper); border: 0; text-align: left;
  font-size: 11px; color: var(--pine); transition: .2s;
}
.guide-links a:hover, .guide-links button:hover { background: var(--paper-2); color: var(--gold); }
.guide-links svg { width: 11px; height: 11px; }

/* ============================================================
   CITY PAGE
   ============================================================ */
.city-hero {
  position: relative; min-height: 86svh; display: flex; align-items: flex-end;
  padding: 150px 0 64px; color: var(--cream); overflow: hidden; background: var(--ink);
}
.city-hero-media { position: absolute; inset: 0; }
.city-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transform: scale(1.03); animation: heroDrift 16s ease-out forwards; }
.city-hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(6, 15, 10, .96) 0%, rgba(6, 15, 10, .45) 55%, rgba(6, 15, 10, .22) 100%),
    linear-gradient(90deg, rgba(6, 15, 10, .6), transparent 60%);
}
.city-hero-inner { position: relative; z-index: 2; width: 100%; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .12em; color: rgba(245, 240, 230, .5); margin-bottom: 28px; }
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb .sep { opacity: .4; }
.city-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.city-hero .city-index { font-family: var(--latin); font-size: 14px; letter-spacing: .24em; color: var(--gold-2); }
.city-hero h1 { font-family: var(--serif); font-size: clamp(52px, 9vw, 118px); line-height: 1; letter-spacing: -.03em; margin-top: 8px; }
.city-hero h1 small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .4em; color: rgba(245, 240, 230, .48); margin-top: 14px; }
.city-hero .city-quote { max-width: 600px; margin-top: 20px; font-size: 14px; line-height: 1.95; color: rgba(245, 240, 230, .7); }
.city-hero-seal {
  width: 112px; height: 112px; border: 1px solid rgba(227, 201, 143, .5);
  display: grid; place-items: center; text-align: center; color: var(--gold-2);
  font-family: var(--serif); font-size: 22px; line-height: 1.2; letter-spacing: .12em;
  background: rgba(10, 22, 16, .25); backdrop-filter: blur(6px); flex-shrink: 0;
  position: relative;
}
.city-hero-seal::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(227, 201, 143, .22); }
.city-hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(245, 240, 230, .15); }
.city-hero-stats div b { display: block; font-family: var(--latin); font-size: 21px; font-weight: 500; color: var(--gold-2); }
.city-hero-stats div span { display: block; font-size: 9px; letter-spacing: .16em; color: rgba(245, 240, 230, .45); margin-top: 2px; }

.city-subnav {
  position: sticky; top: 68px; z-index: 120;
  background: rgba(251, 248, 241, .94); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.city-subnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 58px; }
.city-subnav nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.city-subnav nav::-webkit-scrollbar { display: none; }
.city-subnav a { padding: 8px 14px; font-size: 11px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; transition: color .2s; }
.city-subnav a:hover, .city-subnav a.active { color: var(--gold); }
.city-subnav .back { font-size: 10px; letter-spacing: .12em; color: var(--pine); display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.city-subnav .back svg { width: 12px; height: 12px; }

.city-intro { padding: 90px 0 76px; }
.city-intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.city-intro-copy .eyebrow { margin-bottom: 22px; }
.city-intro-copy .lead { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 31px); line-height: 1.6; color: var(--pine); }
.city-intro-copy p + p { margin-top: 16px; }
.city-intro-copy p { font-size: 14px; line-height: 2; color: rgba(10, 22, 16, .68); }
.city-intro-copy .impressions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.city-side { border-left: 1px solid var(--line); padding-left: 32px; }
.city-side .side-label { font-size: 9px; letter-spacing: .2em; color: var(--gold); margin-bottom: 12px; }
.city-side h3 { font-family: var(--serif); font-size: 21px; line-height: 1.5; }
.city-side p { font-size: 12.5px; line-height: 1.9; color: var(--muted); margin-top: 10px; }
.city-side .eco-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.city-side .side-block + .side-block { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.city-side .season b { color: var(--pine); font-weight: 500; }

.section-city { padding: 84px 0; }
.section-city .section-head { margin-bottom: 38px; }
.section-city .section-head h2 { font-size: clamp(28px, 3.6vw, 42px); }

.spot-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.spot-card {
  position: relative; grid-column: span 6; background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column; text-align: left; padding: 0; color: inherit;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.spot-card:nth-child(1), .spot-card:nth-child(4) { grid-column: span 7; }
.spot-card:nth-child(2), .spot-card:nth-child(3) { grid-column: span 5; }
.spot-card:nth-child(n+7) { grid-column: span 4; }
.spot-card:last-child:nth-child(3n+1) { grid-column: span 12; }
.spot-card:last-child:nth-child(3n+1) .spot-media { aspect-ratio: 21 / 8; }
.spot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.spot-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.spot-card:nth-child(1) .spot-media, .spot-card:nth-child(4) .spot-media { aspect-ratio: 16 / 9; }
.spot-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.spot-card:hover .spot-media img { transform: scale(1.05); }
.spot-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 22, 16, .45), transparent 55%); }
.spot-cat { position: absolute; z-index: 2; left: 14px; top: 14px; padding: 4px 9px; background: rgba(10, 22, 16, .68); backdrop-filter: blur(6px); border: 1px solid rgba(245, 240, 230, .22); font-size: 8.5px; letter-spacing: .14em; color: var(--cream); }
.spot-num { position: absolute; z-index: 2; right: 16px; bottom: 12px; font-family: var(--latin); font-size: 26px; color: rgba(245, 240, 230, .7); }
.spot-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.spot-body .sub { font-size: 9px; letter-spacing: .16em; color: var(--gold); }
.spot-body h3 { font-family: var(--serif); font-size: 25px; margin-top: 6px; }
.spot-body p { margin-top: 9px; font-size: 12.5px; line-height: 1.85; color: var(--muted); }
.spot-body .spot-foot { margin-top: auto; padding-top: 15px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 16px; }
.spot-body .spot-foot .meta { font-size: 9.5px; letter-spacing: .06em; color: rgba(10, 22, 16, .45); }
.spot-body .spot-foot .more { font-size: 9px; letter-spacing: .14em; color: var(--pine); display: inline-flex; align-items: center; gap: 6px; }
.spot-body .spot-foot .more svg { width: 11px; height: 11px; }

.heritage-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.heritage-row {
  display: grid; grid-template-columns: 260px 1fr auto; gap: 0;
  background: rgba(245, 240, 230, .04); border: 1px solid rgba(245, 240, 230, .1);
  color: var(--cream); text-align: left; padding: 0; overflow: hidden;
  transition: border-color .3s, background .3s;
}
.heritage-row:hover { border-color: rgba(201, 161, 94, .45); background: rgba(245, 240, 230, .06); }
.heritage-row-media { position: relative; min-height: 190px; overflow: hidden; }
.heritage-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.heritage-row:hover .heritage-row-media img { transform: scale(1.05); }
.heritage-row-body { padding: 22px 26px; display: flex; flex-direction: column; justify-content: center; }
.heritage-row-body .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.heritage-row-body .cat { font-size: 9px; letter-spacing: .16em; color: var(--gold); }
.heritage-row-body h3 { font-family: var(--serif); font-size: 24px; margin-top: 7px; }
.heritage-row-body p { margin-top: 8px; font-size: 12.5px; line-height: 1.85; color: rgba(245, 240, 230, .58); max-width: 640px; }
.heritage-row-side { padding: 22px 26px 22px 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 14px; }
.heritage-row-side .level { font-size: 9px; letter-spacing: .14em; color: var(--gold-2); border: 1px solid rgba(227, 201, 143, .4); padding: 4px 9px; white-space: nowrap; }
.heritage-row-side .more { font-size: 9px; letter-spacing: .14em; color: rgba(245, 240, 230, .6); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.heritage-row-side .more svg { width: 11px; height: 11px; }

.food-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.food-card { padding: 22px; border: 1px solid var(--line); background: rgba(255, 253, 248, .55); transition: border-color .25s, background .25s; }
.food-card:hover { border-color: var(--gold); background: var(--white); }
.food-card .food-icon { width: 36px; height: 36px; border: 1px solid rgba(201, 161, 94, .5); display: grid; place-items: center; color: var(--gold); margin-bottom: 14px; }
.food-card .food-icon svg { width: 17px; height: 17px; }
.food-card h4 { font-family: var(--serif); font-size: 18px; }
.food-card p { margin-top: 6px; font-size: 11.5px; line-height: 1.8; color: var(--muted); }

.route-timeline { position: relative; margin-top: 8px; }
.route-timeline::before { content: ''; position: absolute; left: 79px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline-stop { display: grid; grid-template-columns: 64px 24px 1fr; gap: 0; padding: 12px 0; align-items: start; }
.timeline-time { font-family: var(--latin); font-size: 13px; color: var(--gold); letter-spacing: .05em; padding-top: 2px; text-align: right; padding-right: 14px; }
.timeline-dot { position: relative; display: flex; justify-content: center; padding-top: 7px; }
.timeline-dot::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--cream); border: 1px solid var(--gold); box-shadow: 0 0 0 4px var(--cream); position: relative; z-index: 2; }
.timeline-body { padding-left: 18px; }
.timeline-body h4 { font-family: var(--serif); font-size: 19px; }
.timeline-body p { margin-top: 4px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.route-note { margin-top: 22px; padding: 16px 18px; border-left: 2px solid var(--gold); background: rgba(201, 161, 94, .08); font-size: 12px; line-height: 1.85; color: rgba(10, 22, 16, .66); }

.city-tip { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 34px; background: var(--paper); border: 1px solid var(--line); margin-top: 34px; }
.city-tip img { width: 92px; height: 100px; object-fit: contain; }
.city-tip .tip-label { font-size: 9px; letter-spacing: .2em; color: var(--gold); margin-bottom: 7px; }
.city-tip p { font-family: var(--serif); font-size: 18px; line-height: 1.8; color: var(--pine); }

.next-city { position: relative; display: block; min-height: 360px; overflow: hidden; color: var(--cream); display: flex; align-items: flex-end; padding: 46px 0; }
.next-city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.next-city::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 18, 12, .92), rgba(8, 18, 12, .25)); }
.next-city:hover img { transform: scale(1.04); }
.next-city .container { position: relative; z-index: 2; }
.next-city .next-label { font-size: 9px; letter-spacing: .24em; color: var(--gold-2); }
.next-city h2 { font-family: var(--serif); font-size: clamp(34px, 5vw, 58px); margin-top: 8px; }
.next-city .next-arrow { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 11px; letter-spacing: .14em; color: rgba(245, 240, 230, .7); }
.next-city .next-arrow svg { width: 15px; height: 15px; }

/* ============================================================
   MAP PAGE
   ============================================================ */
.map-page { height: 100svh; min-height: 700px; padding-top: 68px; background: var(--ink); color: var(--cream); overflow: hidden; }
.map-page-inner { display: grid; grid-template-columns: 340px 1fr; height: calc(100svh - 68px); min-height: 632px; }
.map-side { border-right: 1px solid rgba(245, 240, 230, .1); padding: 32px 28px 24px; overflow-y: auto; background: rgba(245, 240, 230, .025); }
.map-side .eyebrow { margin-bottom: 12px; }
.map-side h1 { font-family: var(--serif); font-size: 34px; line-height: 1.25; }
.map-side .side-sub { margin-top: 10px; font-size: 11.5px; line-height: 1.8; color: rgba(245, 240, 230, .5); }
.map-search { position: relative; margin-top: 22px; }
.map-search input {
  width: 100%; height: 42px; padding: 0 36px 0 13px;
  background: rgba(245, 240, 230, .05); border: 1px solid rgba(245, 240, 230, .16);
  color: var(--cream); font-size: 12px; outline: none; transition: border-color .2s;
}
.map-search input::placeholder { color: rgba(245, 240, 230, .34); }
.map-search input:focus { border-color: var(--gold); }
.map-search svg { position: absolute; right: 12px; top: 13px; width: 15px; height: 15px; color: rgba(245, 240, 230, .4); }
.city-list { margin-top: 20px; display: flex; flex-direction: column; }
.city-list-item {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 4px; border-bottom: 1px solid rgba(245, 240, 230, .08);
  background: transparent; border-left: 0; border-right: 0; border-top: 0;
  color: rgba(245, 240, 230, .65); text-align: left; transition: color .2s, padding-left .2s;
}
.city-list-item:hover, .city-list-item.is-active { color: var(--cream); padding-left: 8px; }
.city-list-item .li-num { font-family: var(--latin); font-size: 11px; color: var(--gold); letter-spacing: .08em; }
.city-list-item .li-name { font-family: var(--serif); font-size: 16px; }
.city-list-item .li-name small { display: block; font-family: var(--sans); font-size: 8.5px; letter-spacing: .12em; color: rgba(245, 240, 230, .34); margin-top: 1px; }
.city-list-item .li-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(245, 240, 230, .25); }
.city-list-item.is-active .li-dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 161, 94, .15); }
.map-side-foot { margin-top: 22px; font-size: 9px; letter-spacing: .1em; color: rgba(245, 240, 230, .3); line-height: 1.9; }

.map-canvas { position: relative; overflow: hidden; background: radial-gradient(ellipse at 55% 45%, #163a2b, #0a1610 72%); cursor: grab; }
.map-canvas.is-dragging { cursor: grabbing; }
.map-canvas .map-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(245, 240, 230, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 240, 230, .04) 1px, transparent 1px);
  background-size: 64px 64px;
}
.map-canvas .map-svg-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform-origin: center; transition: transform .25s var(--ease); }
.map-canvas .map-svg-wrap svg { width: min(92%, 1040px); height: auto; max-height: 90%; }
#fullMapSvg svg { width: 100%; height: auto; max-height: 100%; }
.map-toolbar { position: absolute; top: 22px; right: 22px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.map-tool-btn { width: 38px; height: 38px; border: 1px solid rgba(245, 240, 230, .2); background: rgba(10, 22, 16, .55); backdrop-filter: blur(8px); color: var(--cream); font-size: 16px; display: grid; place-items: center; transition: .2s; }
.map-tool-btn:hover { border-color: var(--gold); color: var(--gold-2); }
.map-tool-btn svg { width: 15px; height: 15px; }
.map-badge { position: absolute; top: 22px; left: 22px; z-index: 3; display: flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: .18em; color: rgba(245, 240, 230, .45); }
.map-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.map-tooltip {
  position: absolute; z-index: 5; pointer-events: none; padding: 8px 12px;
  background: rgba(251, 248, 241, .96); color: var(--ink); font-size: 11px;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .5);
  opacity: 0; transform: translate(-50%, -130%); transition: opacity .15s;
  white-space: nowrap;
}
.map-tooltip.is-on { opacity: 1; }
.map-tooltip b { font-family: var(--serif); font-size: 13px; margin-right: 6px; }
.map-detail {
  position: absolute; left: 22px; top: 56px; z-index: 4; width: 380px;
  background: rgba(251, 248, 241, .97); color: var(--ink);
  display: grid; grid-template-columns: 118px 1fr; overflow: hidden;
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, .6);
  transition: opacity .3s, transform .3s;
}
.map-detail[hidden] { display: none; }
.map-detail-media { position: relative; min-height: 150px; }
.map-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.map-detail-body { padding: 16px 17px; }
.map-detail-body .idx { font-family: var(--latin); font-size: 10px; color: var(--gold); letter-spacing: .1em; }
.map-detail-body h3 { font-family: var(--serif); font-size: 21px; margin-top: 2px; }
.map-detail-body p { font-size: 10.5px; line-height: 1.7; color: var(--muted); margin-top: 5px; }
.map-detail-body .go { margin-top: 9px; font-size: 9px; letter-spacing: .12em; color: var(--pine); display: inline-flex; align-items: center; gap: 5px; }
.map-detail-body .go svg { width: 10px; height: 10px; }
.map-legend {
  position: absolute; right: 22px; bottom: 22px; z-index: 3;
  display: flex; flex-wrap: wrap; gap: 10px 16px; max-width: 330px;
  padding: 12px 14px; background: rgba(10, 22, 16, .55); backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 240, 230, .12);
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 8.5px; letter-spacing: .08em; color: rgba(245, 240, 230, .55); }
.map-legend i { width: 9px; height: 9px; display: block; }
.map-hint { position: absolute; right: 22px; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: right center; font-size: 8px; letter-spacing: .26em; color: rgba(245, 240, 230, .26); z-index: 2; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .nav-links { gap: 0; }
  .nav-link { padding-inline: 10px; font-size: 12px; }
  .map-layout { gap: 36px; }
  .city-grid { grid-template-columns: repeat(3, 1fr); }
  .heritage-grid { grid-template-columns: repeat(3, 1fr); }
  .eco-grid { grid-template-columns: repeat(3, 1fr); }
  .eco-card:nth-child(6) { grid-column: span 1; }
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-col:last-child { display: none; }
  .map-page-inner { grid-template-columns: 300px 1fr; }
}

@media (max-width: 980px) {
  .container { width: calc(100% - 40px); }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-burger { display: block; }
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .mascot { min-height: 340px; order: -1; justify-content: flex-end; }
  .mascot-img { width: 210px; }
  .mascot-img.mascot-gif { width: 226px; }
  .mascot-halo { width: 240px; height: 240px; bottom: 10px; }
  .mascot-bubble { top: auto; bottom: 34px; right: auto; left: -4px; width: 190px; max-width: 190px; font-size: 11.5px; transform: rotate(-1.2deg); }
  .mascot-bubble::after { display: none; }
  .hero h1 { font-size: clamp(46px, 12vw, 82px); }
  .map-layout { grid-template-columns: 1fr; }
  .map-stage { min-height: 480px; }
  .city-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .eco-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .eco-card:nth-child(1) { grid-column: span 2; }
  .heritage-grid { grid-template-columns: repeat(2, 1fr); }
  .route-grid { grid-template-columns: 1fr; }
  .learn-layout { grid-template-columns: 1fr; gap: 20px; }
  .learn-mascot { min-height: 360px; }
  .learn-mascot .ring-text { width: 340px; height: 340px; }
  .section { padding: 78px 0; }
  .city-intro-grid { grid-template-columns: 1fr; gap: 34px; }
  .city-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .city-side .side-block + .side-block { margin-top: 0; padding-top: 0; border-top: 0; }
  .spot-card, .spot-card:nth-child(1), .spot-card:nth-child(2), .spot-card:nth-child(3), .spot-card:nth-child(4) { grid-column: span 6; }
  .spot-media, .spot-card:nth-child(1) .spot-media, .spot-card:nth-child(4) .spot-media { aspect-ratio: 4 / 3; }
  .food-grid { grid-template-columns: repeat(2, 1fr); }
  .map-page { height: auto; min-height: 0; padding-top: 68px; overflow: visible; }
  .map-page-inner { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .map-side { border-right: 0; border-bottom: 1px solid rgba(245, 240, 230, .1); padding: 24px 20px; }
  .city-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .map-canvas { height: 66svh; min-height: 460px; }
  .map-detail { width: calc(100% - 32px); left: 16px; top: auto; bottom: 16px; }
  .map-legend { display: none; }
  .map-hint { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .nav-inner { width: calc(100% - 32px); }
  .brand-text h1 { font-size: 16px; }
  .brand-text p { font-size: 8px; }
  .brand-mark { width: 38px; height: 38px; }
  .hero { min-height: 100svh; padding-bottom: 60px; }
  .hero h1 { font-size: clamp(42px, 13.5vw, 64px); }
  .hero-sub { font-size: 13.5px; }
  .hero-meta { gap: 18px; }
  .hero-stat b { font-size: 27px; }
  .hero-side-note { display: none; }
  .hero-scroll { display: none; }
  .mascot { min-height: 290px; }
  .mascot-img { width: 180px; }
  .mascot-img.mascot-gif { width: 194px; }
  .mascot-bubble { left: 0; right: auto; bottom: 24px; font-size: 10.5px; padding: 12px 14px; }
  .map-stage { min-height: 360px; }
  .city-label { font-size: 9px; }
  .city-label.is-small { font-size: 7px; }
  .city-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .city-card-body h3 { font-size: 19px; }
  .city-card-body p { display: none; }
  .city-card-body .tags { display: none; }
  .city-card-body .go { opacity: 1; transform: none; }
  .eco-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .eco-card:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .eco-card h3 { font-size: 18px; }
  .eco-card:nth-child(1) h3 { font-size: 26px; }
  .eco-card p { display: none; }
  .heritage-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .heritage-body { padding: 12px; }
  .heritage-body h3 { font-size: 15px; }
  .heritage-body p { display: none; }
  .heritage-body .more { padding-top: 8px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .section-head h2 { font-size: 30px; }
  .map-preview { grid-template-columns: 110px 1fr; }
  .map-preview-body { padding: 14px; }
  .map-preview-body h3 { font-size: 20px; }
  .learn-modes { grid-template-columns: 1fr; }
  .learn-mascot { min-height: 300px; }
  .learn-mascot img { width: 200px; }
  .learn-mascot .ring-text { width: 280px; height: 280px; }
  .learn-badge { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-col:last-child { display: block; }
  .footer-bottom { font-size: 9px; }
  .footer-big { font-size: 48px; }
  .city-hero { min-height: 78svh; padding: 120px 0 40px; }
  .city-hero-grid { grid-template-columns: 1fr; }
  .city-hero-seal { display: none; }
  .city-hero-stats { gap: 20px; }
  .city-hero-stats div b { font-size: 18px; }
  .city-subnav { top: 60px; }
  .city-subnav-inner { height: 50px; }
  .city-subnav .back { display: none; }
  .city-intro { padding: 58px 0 40px; }
  .city-intro-copy .lead { font-size: 21px; }
  .city-side { grid-template-columns: 1fr; }
  .section-city { padding: 56px 0; }
  .spot-grid { gap: 12px; }
  .spot-card, .spot-card:nth-child(1), .spot-card:nth-child(2), .spot-card:nth-child(3), .spot-card:nth-child(4) { grid-column: span 12; }
  .spot-body h3 { font-size: 21px; }
  .heritage-row { grid-template-columns: 1fr; }
  .heritage-row-media { min-height: 200px; }
  .heritage-row-body { padding: 18px; }
  .heritage-row-side { padding: 0 18px 18px; flex-direction: row; align-items: center; }
  .food-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .food-card { padding: 16px; }
  .food-card h4 { font-size: 16px; }
  .city-tip { grid-template-columns: 1fr; padding: 22px; gap: 10px; }
  .city-tip img { width: 68px; height: 76px; }
  .city-tip p { font-size: 16px; }
  .next-city { min-height: 300px; }
  .guide { right: 14px; bottom: 14px; }
  .guide-toggle { width: 52px; height: 52px; }
  .guide-panel { position: fixed; right: 14px; bottom: 76px; width: calc(100vw - 28px); }
  .map-detail { grid-template-columns: 96px 1fr; }
  .map-detail-body { padding: 12px; }
  .map-detail-body h3 { font-size: 18px; }
  .map-detail-body p { display: none; }
  .map-page .map-canvas { height: 58svh; min-height: 400px; }
  .map-toolbar { top: 12px; right: 12px; }
  .map-badge { top: 14px; left: 14px; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-panel { max-height: 92svh; width: 100%; }
  .modal-media { height: 220px; }
  .modal-content { padding: 22px; }
  .modal-meta { grid-template-columns: 1fr; gap: 8px; }
  .quiz-shell { padding: 22px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 40px; }
  .city-grid { grid-template-columns: 1fr 1fr; }
  .city-card { aspect-ratio: 3 / 4.2; }
  .heritage-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MENGYIXING PHOTO VIEWER · 左右滑动看照片
   ============================================================ */
:root { --blue: #2f6fa3; --blue-2: #79b4d6; }

.city-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.city-hero-actions .btn { min-height: 46px; }
.city-subnav .gallery-btn {
  padding: 8px 15px; border: 1px solid rgba(201, 161, 94, .55);
  background: rgba(201, 161, 94, .1); color: var(--pine);
  font-size: 10px; letter-spacing: .12em; white-space: nowrap; flex-shrink: 0;
  transition: .2s;
}
.city-subnav .gallery-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.city-subnav nav .gallery-btn { margin-left: 6px; }

.photo-viewer {
  position: fixed; inset: 0; z-index: 320; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.photo-viewer.is-open { opacity: 1; visibility: visible; }
.photo-backdrop { position: absolute; inset: 0; background: rgba(6, 15, 10, .84); backdrop-filter: blur(10px); }
.photo-panel {
  position: relative; z-index: 2; width: min(1040px, 100%); max-height: 92vh; overflow: auto;
  background: var(--cream); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6);
  transform: translateY(18px); transition: transform .35s var(--ease);
}
.photo-viewer.is-open .photo-panel { transform: none; }
.photo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.photo-eyebrow { font-size: 9px; letter-spacing: .22em; color: var(--blue); }
.photo-head h2 { font-family: var(--serif); font-size: 26px; margin-top: 4px; }
.photo-close {
  width: 38px; height: 38px; flex-shrink: 0; border: 1px solid var(--line);
  background: transparent; color: var(--ink); display: grid; place-items: center; transition: .2s;
}
.photo-close:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.photo-close svg { width: 16px; height: 16px; }
.photo-slider {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px;
  padding: 14px 24px; font-size: 11px; letter-spacing: .08em; color: var(--muted);
}
.photo-slider input[type="range"] { width: 100%; accent-color: var(--blue); cursor: pointer; }
.photo-slider #photoCount { color: var(--pine); font-weight: 600; }
.photo-pano-btn { padding: 5px 10px; border: 1px solid rgba(47,111,163,.4); background: rgba(47,111,163,.08); color: var(--blue); font-size: 9px; letter-spacing: .1em; white-space: nowrap; }
.photo-pano-btn[hidden] { display: none; }
.photo-pano-btn.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.photo-stage { position: relative; aspect-ratio: 16 / 9; max-height: 58vh; background: var(--ink); overflow: hidden; }
.photo-pan { position: absolute; top: 0; left: 0; height: 100%; width: 160%; will-change: transform; }
.photo-pan.is-pano { width: 220%; }
.photo-pan[hidden] { display: none; }
.pano360 { position: absolute; inset: 0; overflow: hidden; background: #0b1711; }
.pano360[hidden] { display: none; }
.pano360-track { display: flex; height: 100%; width: max-content; will-change: transform; }
.pano360-track img { height: 100%; width: auto; flex: 0 0 auto; }
.pano360 canvas { width: 100%; height: 100%; display: block; }
.pano-angle { position: absolute; left: 14px; top: 14px; z-index: 3; padding: 5px 10px; background: rgba(10,22,16,.55); color: #fff; font-size: 10px; letter-spacing: .1em; backdrop-filter: blur(6px); }
.pano-hint { position: absolute; right: 14px; top: 14px; z-index: 3; padding: 5px 10px; background: rgba(10,22,16,.45); color: rgba(255,255,255,.75); font-size: 9px; letter-spacing: .08em; }
.photo-viewer.is-360 .photo-caption, .photo-viewer.is-360 .photo-thumbs { display: none; }
.photo-viewer.is-360 .photo-stage { max-height: 64vh; }


.photo-pan img { width: 100%; height: 100%; object-fit: cover; transition: transform .08s linear; }
.photo-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .45); background: rgba(10, 22, 16, .5); color: #fff;
  font-size: 28px; line-height: 1; backdrop-filter: blur(6px); transition: .2s;
}
.photo-arrow:hover { background: var(--blue); border-color: var(--blue); }
.photo-arrow.prev { left: 14px; }
.photo-arrow.next { right: 14px; }
.photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 40px 24px 18px; color: #fff;
  background: linear-gradient(transparent, rgba(6, 15, 10, .88));
}
.photo-caption > span:first-child { font-size: 9px; letter-spacing: .2em; color: var(--blue-2); }
.photo-caption h3 { font-family: var(--serif); font-size: 25px; margin-top: 4px; }
.photo-caption #photoHint { display: block; margin-top: 5px; font-size: 9px; letter-spacing: .14em; color: rgba(255, 255, 255, .55); }
.photo-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 24px 18px; background: var(--cream); }
.photo-thumbs button { flex: 0 0 92px; height: 62px; padding: 0; border: 2px solid transparent; overflow: hidden; background: var(--pine); }
.photo-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumbs button.is-active { border-color: var(--blue); }

@media (max-width: 640px) {
  .photo-viewer { padding: 0; align-items: flex-end; }
  .photo-panel { max-height: 94svh; width: 100%; }
  .photo-head { padding: 16px; }
  .photo-head h2 { font-size: 21px; }
  .photo-slider { padding: 12px 16px; grid-template-columns: 1fr auto; gap: 8px 12px; }
  .photo-slider > span:first-child { grid-column: 1 / -1; }
  .photo-stage { aspect-ratio: 4 / 3; max-height: 52vh; }
  .photo-arrow { width: 38px; height: 38px; font-size: 23px; }
  .photo-caption { padding: 30px 16px 14px; }
  .photo-caption h3 { font-size: 20px; }
  .photo-thumbs { padding: 10px 16px 14px; }
  .photo-thumbs button { flex-basis: 72px; height: 50px; }
  .city-subnav nav .gallery-btn { margin-left: 0; }
}

/* ============================================================
   HOME 360 PANORAMA
   ============================================================ */
.pano-home {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 80% at 85% 0%, #1b4432 0%, #0a1610 58%, #08120d 100%);
  color: var(--cream);
  padding: 96px 0 92px;
}
.pano-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 18% 82%, rgba(201,161,94,.12), transparent 46%);
  pointer-events: none;
}
.pano-home .container { position: relative; z-index: 1; }
.pano-home .section-head { align-items: flex-end; }
.pano-home .eyebrow { color: var(--gold-2); }
.pano-home h2 { color: var(--cream); font-family: var(--serif); font-size: clamp(34px, 4.4vw, 62px); font-weight: 600; letter-spacing: -.02em; }
.pano-home h2 em { color: var(--gold-2); font-family: var(--latin); font-style: italic; font-weight: 500; }
.pano-home .section-head p { color: rgba(245,240,230,.62); max-width: 560px; }
.pano-count { color: rgba(245,240,230,.45); font-size: 9px; letter-spacing: .22em; line-height: 1.7; text-align: right; white-space: nowrap; }

.pano-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 40px; }
.pano-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(245,240,230,.14);
  background: #0d1c14;
  color: var(--cream);
  text-align: left;
  isolation: isolate;
}
.pano-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .7s var(--ease); filter: saturate(.88) contrast(1.03) brightness(.9); }
.pano-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6,14,9,.06) 0%, rgba(6,14,9,.12) 42%, rgba(6,14,9,.86) 100%);
}
.pano-card:hover img { transform: scale(1.06); filter: saturate(1.04) contrast(1.05) brightness(1); }
.pano-card:focus-visible { outline: 1px solid var(--gold-2); outline-offset: 3px; }
.pano-card-badge {
  position: absolute;
  top: 12px; left: 12px; z-index: 2;
  padding: 4px 8px;
  border: 1px solid rgba(245,240,230,.34);
  background: rgba(8,18,13,.32);
  backdrop-filter: blur(6px);
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1;
}
.pano-card-body { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: block; }
.pano-card-city { display: block; color: var(--gold-2); font-size: 8px; letter-spacing: .17em; text-transform: uppercase; }
.pano-card-body h3 { margin: 5px 0 3px; font-family: var(--serif); font-size: clamp(17px, 1.45vw, 22px); font-weight: 600; line-height: 1.3; }
.pano-card-sub { display: block; color: rgba(245,240,230,.58); font-size: 10px; letter-spacing: .04em; }
.pano-card-go {
  display: flex; align-items: center; gap: 5px;
  margin-top: 10px;
  color: rgba(245,240,230,.72);
  font-size: 9px; letter-spacing: .1em;
  opacity: 0; transform: translateY(4px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.pano-card-go svg { width: 12px; height: 12px; }
.pano-card:hover .pano-card-go, .pano-card:focus-visible .pano-card-go { opacity: 1; transform: none; }
.pano-source { margin: 22px 0 0; text-align: right; color: rgba(245,240,230,.3); font-size: 9px; letter-spacing: .12em; }

.pano-home-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s var(--ease);
}
.pano-home-modal.is-open { opacity: 1; visibility: visible; }
.pano-home-backdrop { position: absolute; inset: 0; background: rgba(4,10,7,.88); backdrop-filter: blur(12px); }
.pano-home-panel {
  position: relative;
  width: min(1180px, 94vw);
  background: #0a1610;
  border: 1px solid rgba(245,240,230,.16);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.9);
  transform: translateY(18px) scale(.985);
  transition: transform .55s var(--ease);
}
.pano-home-modal.is-open .pano-home-panel { transform: none; }
.pano-home-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 24px 16px; border-bottom: 1px solid rgba(245,240,230,.1); }
.pano-home-eyebrow { display: block; color: var(--gold-2); font-size: 8px; letter-spacing: .22em; margin-bottom: 5px; }
.pano-home-head h2 { color: var(--cream); font-family: var(--serif); font-size: clamp(21px, 2.3vw, 32px); font-weight: 600; }
.pano-home-close { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(245,240,230,.2); background: transparent; color: var(--cream); transition: background .25s, border-color .25s; }
.pano-home-close:hover { background: rgba(245,240,230,.08); border-color: rgba(245,240,230,.4); }
.pano-home-close svg { width: 17px; height: 17px; }
.pano-home-stage { position: relative; height: min(62vh, 600px); overflow: hidden; background: #0b1a12; cursor: grab; }
.pano-home-stage:active { cursor: grabbing; }
.pano-home-stage canvas { width: 100%; height: 100%; display: block; }
.pano-home-angle, .pano-home-hint {
  position: absolute; z-index: 2;
  padding: 5px 9px;
  background: rgba(8,18,13,.52);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.88);
  font-size: 9px; letter-spacing: .09em;
  pointer-events: none;
}
.pano-home-angle { left: 12px; top: 12px; }
.pano-home-hint { right: 12px; top: 12px; color: rgba(255,255,255,.66); }
.pano-home-controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 13px 24px; border-top: 1px solid rgba(245,240,230,.1); }
.pano-home-controls > span { color: rgba(245,240,230,.6); font-size: 9px; letter-spacing: .1em; white-space: nowrap; }
.pano-home-controls input[type=range] { width: 100%; height: 2px; appearance: none; background: rgba(245,240,230,.22); accent-color: var(--gold-2); cursor: pointer; }
.pano-home-controls input[type=range]::-webkit-slider-thumb { appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--gold-2); border: 2px solid #0a1610; box-shadow: 0 0 0 1px var(--gold-2); }
.pano-home-controls input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--gold-2); border: 2px solid #0a1610; }
.pano-home-note { margin: 0; padding: 0 24px 16px; color: rgba(245,240,230,.34); font-size: 9px; letter-spacing: .08em; }

@media (max-width: 1180px) {
  .pano-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .pano-grid { grid-template-columns: repeat(3, 1fr); }
  .pano-home { padding: 78px 0; }
  .pano-count { display: none; }
}
@media (max-width: 680px) {
  .pano-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .pano-home { padding: 64px 0; }
  .pano-home-modal { padding: 0; }
  .pano-home-panel { width: 100%; height: 100%; display: flex; flex-direction: column; border: 0; }
  .pano-home-head { padding: 16px; }
  .pano-home-stage { height: auto; min-height: 260px; flex: 1; }
  .pano-home-controls { padding: 12px 16px; }
  .pano-home-note { padding: 0 16px 12px; }
  .pano-source { text-align: left; }
}

/* ============================================================
   QUIZ — larger, 10 random of 50
   ============================================================ */
.modal.is-open.is-quiz { opacity: 1 !important; visibility: visible !important; }
.modal.is-quiz .modal-backdrop { background: rgba(6,15,10,.9); backdrop-filter: none; }
.modal.is-quiz .modal-panel { background: #fbf8f1; }

.modal.is-quiz .modal-panel { width: min(1080px, 96vw); max-height: 92vh; }
.modal.is-quiz .modal-media { height: 220px; }
.modal.is-quiz .quiz-shell { padding: 34px 40px 38px; }
.modal.is-quiz .quiz-progress { gap: 8px; margin-bottom: 26px; }
.modal.is-quiz .quiz-progress span { height: 3px; }
.modal.is-quiz .quiz-q { font-size: 24px; margin-bottom: 22px; }
.modal.is-quiz .quiz-opt { padding: 15px 18px; font-size: 14px; }
.modal.is-quiz .quiz-foot { margin-top: 24px; font-size: 12px; }
.quiz-kicker { font-size: 9px; letter-spacing: .22em; color: var(--gold); margin-bottom: 6px; }
.quiz-result .score span { font-family: var(--sans); font-size: 18px; color: var(--muted); letter-spacing: .04em; }
.quiz-result h3 { font-size: 28px; }
.quiz-result p { max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.9; }
.quiz-result-bar { width: min(420px, 100%); height: 4px; margin: 22px auto 0; background: var(--line); overflow: hidden; }
.quiz-result-bar span { display: block; height: 100%; background: var(--gold); transition: width .6s var(--ease); }
.quiz-result-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .modal.is-quiz { padding: 0; }
  .modal.is-quiz .modal-panel { width: 100%; max-height: 100vh; }
  .modal.is-quiz .modal-media { height: 150px; }
  .modal.is-quiz .quiz-shell { padding: 24px 22px 28px; }
  .modal.is-quiz .quiz-q { font-size: 20px; }
  .modal.is-quiz .quiz-opt { padding: 13px 14px; font-size: 13px; }
}

/* heritage video */
.heritage-video { margin: 0 0 22px; background: #000; border: 1px solid var(--line); }
.heritage-video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.heritage-video { position: relative; }
.heritage-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -62%);
  z-index: 2; padding: 12px 20px; border: 1px solid rgba(255,255,255,.55);
  background: rgba(8,18,13,.62); color: #fff; font-size: 11px; letter-spacing: .12em;
  backdrop-filter: blur(6px); transition: opacity .3s, background .3s;
}
.heritage-play:hover { background: rgba(201,161,94,.88); color: var(--ink); border-color: var(--gold); }
.heritage-play.is-hidden { opacity: 0; pointer-events: none; }
.heritage-video-note { display: block; padding: 7px 10px; background: var(--ink); color: rgba(245,240,230,.55); font-size: 9px; letter-spacing: .1em; }

/* ============================================================
   VR TOOLS + PASSPORT
   ============================================================ */
.pano-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 14px; }
.pano-tool {
  padding: 8px 13px; border: 1px solid rgba(245,240,230,.22);
  background: rgba(245,240,230,.04); color: rgba(245,240,230,.78);
  font-size: 9px; letter-spacing: .1em; transition: .25s;
}
.pano-tool:hover { border-color: var(--gold-2); color: var(--cream); }
.pano-tool.is-active { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.pano-tool span { margin-left: 4px; color: var(--gold-2); }
.pano-tool.is-active span { color: var(--ink); }

.vr-passport-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 24px; padding: 16px 18px;
  border: 1px solid rgba(245,240,230,.14);
  background: rgba(245,240,230,.035);
}
.vr-passport-id span { display: block; color: var(--gold-2); font-size: 8px; letter-spacing: .22em; }
.vr-passport-id b { display: block; margin-top: 3px; font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--cream); }
.vr-passport-id b span { display: inline; color: var(--gold-2); font-family: var(--latin); font-size: 26px; }
.vr-passport-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.vr-passport-cta > span { color: rgba(245,240,230,.42); font-size: 9px; letter-spacing: .08em; }
.vr-passport-cta .text-link { color: var(--gold-2); font-size: 10px; }
.vr-passport-cta .text-link:hover { color: var(--cream); }

.vr-passport-modal { position: fixed; inset: 0; z-index: 520; display: flex; align-items: center; justify-content: center; padding: 22px; opacity: 0; visibility: hidden; }
.vr-passport-modal.is-open { opacity: 1; visibility: visible; }
.vr-passport-backdrop { position: absolute; inset: 0; background: rgba(4,10,7,.9); }
.vr-passport-panel {
  position: relative; z-index: 2; width: min(760px, 96vw); max-height: 92vh; overflow: auto;
  background: var(--paper); color: var(--ink); padding: 26px 30px 28px;
  border: 1px solid rgba(245,240,230,.2); box-shadow: 0 40px 100px -30px rgba(0,0,0,.7);
}
.vr-passport-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.vr-passport-head span { color: var(--gold); font-size: 8px; letter-spacing: .22em; }
.vr-passport-head h2 { font-family: var(--serif); font-size: clamp(24px,3vw,34px); margin-top: 4px; }
.vr-passport-close { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; }
.vr-passport-close svg { width: 16px; height: 16px; }
.vr-passport-sub { margin: 12px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.vr-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.vr-stamp {
  aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px dashed rgba(23,45,32,.25); color: rgba(23,45,32,.32); text-align: center; padding: 6px;
  font-size: 8px; letter-spacing: .06em; line-height: 1.45; transition: .3s;
}
.vr-stamp b { display: block; font-family: var(--serif); font-size: 11px; font-weight: 500; color: rgba(23,45,32,.5); }
.vr-stamp.is-on { border: 1px solid var(--gold); background: rgba(201,161,94,.12); color: var(--pine); }
.vr-stamp.is-on b { color: var(--pine); }
.vr-stamp.is-on::before { content: '✓'; display: block; color: var(--gold); font-size: 12px; margin-bottom: 3px; }
.vr-cert { display: none; margin-top: 22px; }
.vr-cert.is-unlocked { display: block; }
.vr-cert-inner {
  position: relative; overflow: hidden; padding: 30px 34px 152px;
  background: #fbf6e8; border: 1px solid #c9a15e;
  box-shadow: inset 0 0 0 5px #fbf6e8, inset 0 0 0 6px rgba(201,161,94,.45);
}
.vr-cert-inner::before { content: ''; position: absolute; inset: 11px; border: 1px solid rgba(201,161,94,.38); pointer-events: none; z-index: 2; }
.vr-cert-knot { position: absolute; width: 58px; height: 58px; color: rgba(201,161,94,.55); z-index: 2; pointer-events: none; }
.vr-cert-knot path { fill: none; stroke: currentColor; stroke-width: 1.1; }
.vr-cert-knot.tl { left: 10px; top: 10px; }
.vr-cert-knot.tr { right: 10px; top: 10px; transform: scaleX(-1); }
.vr-cert-knot.bl { left: 10px; bottom: 10px; transform: scaleY(-1); opacity: .35; }
.vr-cert-knot.br { right: 10px; bottom: 10px; transform: scale(-1); opacity: .35; }
.vr-cert-crest { display: block; width: 72px; height: 40px; margin: 0 auto 2px; color: var(--gold); }
.vr-cert-cloud { position: absolute; top: 12px; width: 88px; color: rgba(201,161,94,.45); z-index: 2; }
.vr-cert-cloud.tl { left: 16px; }
.vr-cert-cloud.tr { right: 16px; transform: scaleX(-1); }
.vr-cert-head { position: relative; z-index: 3; text-align: center; }
.vr-cert-eyebrow { display: block; color: var(--gold); font-size: 8px; letter-spacing: .24em; }
.vr-cert-head h3 { font-family: var(--serif); font-size: clamp(27px, 3.4vw, 38px); font-weight: 500; color: var(--pine); letter-spacing: .08em; margin: 7px 0 5px; }
.vr-cert-en { color: rgba(23,45,32,.42); font-family: var(--latin); font-size: 9px; letter-spacing: .22em; }
.vr-cert-body { position: relative; z-index: 3; text-align: center; margin-top: 14px; }
.vr-cert-to { color: var(--muted); font-size: 9px; letter-spacing: .3em; }
.vr-cert-name { display: inline-block; margin: 4px 0 8px; padding: 0 20px 5px; border-bottom: 1px solid rgba(201,161,94,.65); color: var(--pine); font-family: var(--serif); font-size: 22px; letter-spacing: .08em; }
.vr-cert-desc { color: var(--muted); font-size: 11px; line-height: 1.95; }
.vr-cert-desc b { color: var(--gold); font-family: var(--latin); font-size: 22px; }
.vr-cert-tags { margin-top: 8px; color: var(--gold); font-size: 8px; letter-spacing: .16em; }
/* 日期 / 证书编号：放在证书下部留白带（太阳与山形图标右侧），与插画同一条水平线 */
.vr-cert-meta {
  position: absolute; left: 22%; bottom: 120px; z-index: 4; width: 25%;
  display: flex; justify-content: flex-start; align-items: baseline; gap: 26px;
  padding-top: 7px; border-top: 1px solid rgba(201,161,94,.45);
  color: rgba(23,45,32,.72); font-family: var(--sans); font-weight: 500; font-size: 9.5px;
  letter-spacing: .16em; font-variant-numeric: tabular-nums;
}
.vr-cert-meta b { color: var(--gold); }
.vr-cert-seal { position: absolute; right: 46px; bottom: 108px; z-index: 4; width: 88px; height: 88px; border: 2px solid rgba(166,83,60,.72); border-radius: 50%; color: rgba(166,83,60,.8); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-8deg); }
.vr-cert-seal::before { content: '✦'; font-size: 9px; margin-bottom: 1px; }
.vr-cert-seal svg { width: 28px; height: 28px; margin-bottom: 1px; }
.vr-cert-seal span { font-family: var(--serif); font-size: 14px; letter-spacing: .06em; }
.vr-cert-seal small { font-size: 7px; letter-spacing: .12em; margin-top: 1px; }
.vr-cert-scene { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; z-index: 1; }
.vr-cert-foot { position: absolute; left: 0; right: 0; bottom: 7px; z-index: 3; text-align: center; color: rgba(23,45,32,.3); font-size: 7px; letter-spacing: .16em; }
.vr-passport-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.vr-passport-actions .btn { min-height: 44px; padding: 0 18px; font-size: 11px; }
.vr-passport-actions .btn[disabled] { opacity: .4; pointer-events: none; }
.vr-toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 700; transform: translate(-50%, 14px);
  padding: 10px 16px; background: var(--ink); color: var(--cream); border: 1px solid var(--gold);
  font-size: 10px; letter-spacing: .08em; opacity: 0; visibility: hidden; transition: .3s;
}
.vr-toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (max-width: 680px) {
  .vr-passport-bar { align-items: flex-start; flex-direction: column; }
  .vr-stamps { grid-template-columns: repeat(3, 1fr); }
  .vr-passport-panel { padding: 20px 18px; }
  .vr-cert-meta { left: 15%; width: 64%; gap: 14px; font-size: 8.5px; }
}
/* 证书打印：只输出一页 A4 横向，页面里其余内容整体不参与排版（用 display 而不是 visibility，
   否则隐藏的整站仍会撑出十几页空白） */
@media print {
  @page { size: A4 landscape; margin: 0; }

  body.is-printing-cert { background: #fff !important; overflow: visible !important; }

  body.is-printing-cert > *:not(main) { display: none !important; }
  body.is-printing-cert main {
    display: block !important; position: static !important;
    margin: 0 !important; padding: 0 !important; overflow: visible !important; background: #fff !important;
  }
  body.is-printing-cert main > *:not(#vrPassportModal) { display: none !important; }

  body.is-printing-cert #vrPassportModal {
    position: static !important; inset: auto !important; display: block !important;
    width: auto !important; height: auto !important; padding: 0 !important; margin: 0 !important;
    background: #fff !important; opacity: 1 !important; visibility: visible !important;
  }
  body.is-printing-cert #vrPassportModal * { visibility: visible !important; }

  body.is-printing-cert .vr-passport-backdrop,
  body.is-printing-cert .vr-passport-head,
  body.is-printing-cert .vr-passport-sub,
  body.is-printing-cert .vr-stamps,
  body.is-printing-cert .vr-passport-actions { display: none !important; }

  body.is-printing-cert .vr-passport-panel {
    position: static !important; display: block !important;
    width: auto !important; max-width: none !important; max-height: none !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important;
    box-shadow: none !important; background: #fff !important; overflow: visible !important;
  }

  body.is-printing-cert .vr-cert { display: block !important; margin: 0 !important; padding: 0 !important; }

  /* 760px 设计宽度 × 1.32 ≈ 1003px，配合 538px 的最小高度正好落进 A4 横向可打印区 */
  body.is-printing-cert .vr-cert-inner {
    width: 760px !important; min-height: 538px; margin: 0 auto !important; zoom: 1.32;
    border: 2px solid #c9a15e !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
    break-inside: avoid; page-break-inside: avoid;
  }
}

/* ============================================================
   MASCOT INTERACTIVE CLASSROOM
   ============================================================ */
.mascot-img { cursor: pointer; }
.mascot-img:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 8px; border-radius: 18px; }
.mascot-chat {
  display: inline-block; margin-top: 8px; padding: 0; border: 0; background: none;
  color: var(--gold); font-size: 10px; letter-spacing: .1em; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.mascot-chat:hover { color: var(--pine); }

.mascot-modal { position: fixed; inset: 0; z-index: 540; display: flex; align-items: center; justify-content: center; padding: 22px; opacity: 0; visibility: hidden; }
.mascot-modal.is-open { opacity: 1; visibility: visible; }
.mascot-modal-bg { position: absolute; inset: 0; background: rgba(4,10,7,.88); }
.mascot-modal-panel { position: relative; z-index: 2; width: min(820px, 96vw); max-height: 90vh; overflow: auto; background: var(--cream); color: var(--ink); box-shadow: 0 40px 110px -30px rgba(0,0,0,.7); }
.mascot-modal-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 22px 26px 18px; background: radial-gradient(120% 160% at 0% 0%, #173d2e, #0a1610); color: var(--cream); }
.mascot-modal-head img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(227,201,143,.55); background: #dbe9f4; }
.mascot-modal-head span { display: block; color: var(--gold-2); font-size: 8px; letter-spacing: .2em; }
.mascot-modal-head h2 { font-family: var(--serif); font-size: clamp(20px,2.4vw,28px); font-weight: 500; margin-top: 4px; }
.mascot-modal-close { width: 36px; height: 36px; border: 1px solid rgba(245,240,230,.28); background: transparent; color: var(--cream); font-size: 22px; line-height: 1; }
.mascot-tabs { display: flex; gap: 4px; padding: 0 26px; border-bottom: 1px solid var(--line); background: var(--paper); }
.mascot-tabs button { padding: 14px 12px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.mascot-tabs button.is-active { color: var(--pine); border-bottom-color: var(--gold); font-weight: 600; }
.mascot-panels { padding: 24px 30px 30px; }
.mascot-panel { display: none; }
.mascot-panel.is-active { display: block; }
.mascot-quiz-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; letter-spacing: .1em; margin-bottom: 10px; }
.mascot-quiz-q { font-family: var(--serif); font-size: 21px; line-height: 1.6; margin: 4px 0 14px; }
.mascot-opts { display: flex; flex-direction: column; gap: 8px; }
.mascot-opt { text-align: left; padding: 12px 14px; border: 1px solid var(--line); background: var(--white); font-size: 12.5px; transition: .2s; }
.mascot-opt:hover { border-color: var(--gold); background: rgba(201,161,94,.08); }
.mascot-opt.is-correct { border-color: #3c7a58; background: rgba(60,122,88,.12); }
.mascot-opt.is-wrong { border-color: #a6533c; background: rgba(166,83,60,.1); }
.mascot-quiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: 10px; color: var(--muted); }
.mascot-quiz-foot .text-link { color: var(--pine); font-size: 10px; }
.mascot-quiz-result { text-align: center; padding: 12px 4px 4px; }
.mascot-quiz-result .score { font-family: var(--latin); color: var(--gold); font-size: 54px; line-height: 1; }
.mascot-quiz-result h3 { font-family: var(--serif); font-size: 24px; margin: 8px 0 4px; }
.mascot-quiz-result p { color: var(--muted); font-size: 11.5px; line-height: 1.9; }
.mascot-quiz-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.mascot-quiz-actions .btn { min-height: 40px; padding: 0 14px; font-size: 10px; }
.mascot-read { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mascot-read-card { display: block; padding: 18px 18px 16px; border: 1px solid var(--line); background: var(--white); transition: .3s; }
.mascot-read-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 18px 34px -26px rgba(0,0,0,.4); }
.mascot-read-card .tag { color: var(--gold); font-size: 8px; letter-spacing: .16em; }
.mascot-read-card h3 { font-family: var(--serif); font-size: 17px; line-height: 1.5; margin: 6px 0; }
.mascot-read-card p { color: var(--muted); font-size: 10.5px; line-height: 1.8; }
.mascot-read-card .more { display: inline-block; margin-top: 8px; color: var(--pine); font-size: 9px; letter-spacing: .08em; }
.mascot-go { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mascot-go .btn { min-height: 46px; justify-content: flex-start; padding: 0 16px; font-size: 11px; }
.mascot-go-note { margin-top: 16px; color: var(--muted); font-size: 10.5px; line-height: 1.8; }
@media (max-width: 700px) {
  .mascot-modal { padding: 0; align-items: flex-end; }
  .mascot-modal-panel { width: 100%; max-height: 92vh; }
  .mascot-modal-head { padding: 16px 18px; }
  .mascot-tabs { padding: 0 14px; overflow-x: auto; }
  .mascot-panels { padding: 18px; }
  .mascot-read, .mascot-go { grid-template-columns: 1fr; }
  .mascot-quiz-q { font-size: 19px; }
}

/* ============================================================
   ROUTE BUILDER
   ============================================================ */
.route-builder-section { background: linear-gradient(180deg, var(--cream), #f0e9da); }
.route-head-note { color: rgba(23,45,32,.4); font-size: 9px; letter-spacing: .22em; white-space: nowrap; }
.route-builder { display: grid; grid-template-columns: 1.12fr .88fr; gap: 22px; margin-top: 34px; align-items: start; }
.route-map-card { background: var(--paper); border: 1px solid var(--line); padding: 16px 16px 12px; }
.route-day-picker { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.route-day-picker > span { color: var(--gold); font-size: 9px; letter-spacing: .18em; }
.route-day-btns { display: flex; gap: 5px; flex-wrap: wrap; }
.route-day-btns button { min-width: 46px; height: 31px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 10px; transition: .2s; }
.route-day-btns button:hover { border-color: var(--gold); color: var(--pine); }
.route-day-btns button.is-active { background: var(--pine); border-color: var(--pine); color: var(--cream); }
.route-map { position: relative; margin-top: 12px; min-height: 460px; background: radial-gradient(120% 90% at 50% 20%, #1a3b2c, #0a1610); border: 1px solid rgba(23,45,32,.2); overflow: hidden; }
.route-map-svg { display: block; width: 100%; height: auto; }
.route-map-region { fill: #dfe7d2; stroke: #f5f0e6; stroke-width: 1.1; cursor: grab; transition: fill .25s; }
.route-map-region:hover { fill: #c9d8b4; }
.route-map-region:focus-visible { outline: none; fill: #c9d8b4; stroke: var(--gold); }
.route-map-region.is-picked { fill: var(--gold); stroke: #fffdf8; }
.route-map-label { fill: #173d2e; font-family: var(--sans); font-size: 10px; font-weight: 600; pointer-events: none; }
.route-map-dot { fill: #a6533c; pointer-events: none; }
.route-line { fill: none; stroke: #a6533c; stroke-width: 3; stroke-dasharray: 8 6; stroke-linecap: round; }
.route-map-hint { position: absolute; left: 13px; bottom: 13px; z-index: 3; padding: 6px 9px; background: rgba(9,20,14,.72); color: rgba(245,240,230,.78); font-size: 9px; letter-spacing: .05em; pointer-events: none; transition: .3s; }
.route-map-hint.is-hidden { opacity: 0; }
.route-map-hint.is-warn { color: #f1c894; }
.route-plan-card { background: var(--white); border: 1px solid var(--line); padding: 18px 18px 16px; }
.route-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.route-plan-head > div { flex: 1; min-width: 0; }
.route-plan-head > div > span { display: block; color: var(--gold); font-size: 8px; letter-spacing: .18em; }
.route-plan-head b span { display: inline; color: inherit; font-size: inherit; letter-spacing: 0; }
.route-plan-head b { display: block; margin-top: 3px; color: var(--pine); font-family: var(--serif); font-size: 18px; font-weight: 500; white-space: nowrap; }
.route-plan-head button { padding: 4px 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 9px; }
.route-plan-head button:hover { border-color: var(--gold); color: var(--pine); }
.route-slots { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.route-slot { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px dashed rgba(23,45,32,.24); background: rgba(245,240,230,.5); transition: .2s; }
.route-slot.is-filled { border-style: solid; border-color: rgba(201,161,94,.55); background: rgba(201,161,94,.09); }
.route-slot.is-over { border-color: var(--gold); background: rgba(201,161,94,.18); transform: translateX(2px); }
.slot-day { flex: 0 0 28px; color: var(--gold); font-family: var(--latin); font-size: 14px; }
.slot-empty { color: var(--muted); font-size: 10px; letter-spacing: .03em; }
.slot-city { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slot-city b { display: block; font-family: var(--serif); font-size: 15px; color: var(--pine); font-weight: 500; }
.slot-city small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.slot-city button { flex: 0 0 24px; width: 24px; height: 24px; border: 1px solid var(--line); background: transparent; color: var(--muted); line-height: 1; }
.slot-city button:hover { border-color: #a6533c; color: #a6533c; }
.route-plan-actions { margin-top: 12px; }
.route-plan-actions .btn { width: 100%; justify-content: center; min-height: 46px; font-size: 11px; }
.route-plan-tip { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.75; }
.route-result { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.route-result-head { text-align: center; margin-bottom: 20px; }
.route-result-head span { color: var(--gold); font-size: 8px; letter-spacing: .24em; }
.route-result-head h3 { font-family: var(--serif); font-size: clamp(24px,3vw,36px); font-weight: 500; color: var(--pine); margin: 7px 0 4px; }
.route-result-head p { color: var(--muted); font-size: 11px; }
.route-days-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.route-day-card { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 16px; background: var(--white); border: 1px solid var(--line); }
.route-day-card .day-no { color: var(--gold); font-family: var(--latin); font-size: 25px; line-height: 1; }
.route-city { color: var(--gold); font-size: 8px; letter-spacing: .14em; }
.route-day-card h4 { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--pine); margin: 3px 0 4px; }
.route-day-card p { color: var(--muted); font-size: 10.5px; line-height: 1.85; }
.route-spots { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.route-spots span { padding: 3px 6px; border: 1px solid rgba(23,45,32,.16); color: var(--pine); font-size: 8px; }
.route-day-card.is-free { border-style: dashed; opacity: .72; }
.route-result-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.route-empty { padding: 28px; text-align: center; border: 1px dashed var(--line); }
.route-empty b { display: block; font-family: var(--serif); font-size: 20px; color: var(--pine); }
.route-empty p { margin-top: 4px; color: var(--muted); font-size: 11px; }
@media (max-width: 980px) {
  .route-builder { grid-template-columns: 1fr; }
  .route-map { min-height: 420px; }
}
@media (max-width: 700px) {
  .route-map { min-height: 300px; }
  .route-days-grid { grid-template-columns: 1fr; }
  .route-day-card { grid-template-columns: 44px 1fr; }
  .route-head-note { display: none; }
  .route-plan-card { padding: 14px; }
}
@media print {
  body * { visibility: hidden !important; }
  #routeResult, #routeResult * { visibility: visible !important; }
  #routeResult { position: absolute !important; inset: 0 !important; margin: 0 !important; padding: 20px !important; border: 0 !important; }
  .route-result-actions { display: none !important; }
  .route-days-grid { grid-template-columns: 1fr 1fr !important; }
}

/* vertical day-by-day route */
.route-timeline { position: relative; max-width: 1000px; margin: 0 auto; }
.route-timeline::before { content: ''; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(180deg, rgba(201,161,94,.65), rgba(201,161,94,.12)); }
.route-day { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 20px; margin-bottom: 14px; }
.route-day-marker { position: relative; z-index: 2; width: 62px; height: 62px; border-radius: 50%; background: var(--paper); border: 1px solid rgba(201,161,94,.65); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.route-day-marker b { color: var(--gold); font-family: var(--latin); font-size: 20px; font-weight: 500; line-height: 1; }
.route-day-marker span { color: var(--muted); font-size: 7px; letter-spacing: .16em; margin-top: 2px; }
.route-day-body { background: var(--white); border: 1px solid var(--line); padding: 20px 24px 18px; }
.route-day-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.route-day-top .route-city { color: var(--gold); font-size: 8px; letter-spacing: .14em; }
.route-day-top h4 { font-family: var(--serif); font-size: 23px; font-weight: 500; color: var(--pine); margin: 2px 0 4px; flex-basis: 100%; }
.route-day-plan { color: rgba(23,45,32,.7); font-size: 12px; line-height: 1.9; }
.route-day-info { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.route-day-info > div > span { display: block; color: var(--gold); font-size: 8px; letter-spacing: .14em; margin-bottom: 4px; }
.route-day-info p { color: var(--muted); font-size: 10.5px; line-height: 1.8; }
.route-transport a { display: inline-block; margin-top: 5px; color: var(--pine); font-size: 9px; letter-spacing: .04em; border-bottom: 1px solid rgba(23,45,32,.35); }
.route-transport a:hover { color: var(--gold); border-color: var(--gold); }
.route-day.is-free { opacity: .78; }
.route-day.is-free .route-day-body { border-style: dashed; }
.route-result-note { text-align: center; color: var(--muted); font-size: 9px; letter-spacing: .04em; margin-top: 18px; }
@media (max-width: 760px) {
  .route-timeline::before { left: 21px; }
  .route-day { grid-template-columns: 44px 1fr; gap: 10px; }
  .route-day-marker { width: 42px; height: 42px; }
  .route-day-marker b { font-size: 15px; }
  .route-day-marker span { font-size: 6px; }
  .route-day-body { padding: 15px; }
  .route-day-top h4 { font-size: 19px; }
  .route-day-info { grid-template-columns: 1fr; gap: 10px; }
}
@media print {
  .route-timeline::before { display: none; }
  .route-day { grid-template-columns: 40px 1fr; }
  .route-day-marker { border: 0; }
  .route-day-body { break-inside: avoid; }
}

/* detailed daily schedule */
.route-schedule { position: relative; margin-top: 16px; padding-left: 18px; border-left: 1px solid rgba(201,161,94,.35); display: flex; flex-direction: column; gap: 12px; }
.schedule-row { display: grid; grid-template-columns: 98px 1fr; gap: 12px; position: relative; }
.schedule-row::before { content: ''; position: absolute; left: -23px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); border: 2px solid var(--paper); }
.schedule-time { color: #9a7434; font-family: var(--latin); font-size: 12px; font-weight: 600; padding-top: 1px; letter-spacing: .02em; }
.schedule-row b { display: block; color: var(--pine); font-family: var(--serif); font-size: 15px; font-weight: 600; }
.schedule-row p { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.route-day-note { margin-top: 14px; padding: 10px 12px; border-left: 2px solid var(--gold); background: rgba(201,161,94,.08); color: rgba(23,45,32,.65); font-size: 10px; line-height: 1.8; }
.route-day-info { grid-template-columns: 1fr 1fr; }
.route-day-info .route-focus { grid-column: 1 / -1; }
.route-day-info .route-transport { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
.route-day-plan { max-width: 880px; }
@media (max-width: 760px) {
  .schedule-row { grid-template-columns: 74px 1fr; gap: 8px; }
  .schedule-time { font-size: 10px; }
  .schedule-row b { font-size: 14px; }
  .schedule-row p { font-size: 10.5px; }
}

/* 360 pano: enable drag on touch devices */
.pano-home-stage, .pano-home-stage canvas, .pano360, .pano360 canvas { touch-action: none; }
.pano-home-stage canvas { background: #0b1a12; }
