:root {
  --paper: #f3ead7;
  --paper-deep: #e3d2ae;
  --paper-light: #fbf6e9;
  --ink: #201c17;
  --ink-soft: #5f574d;
  --river: #b17a2d;
  --river-light: #d9aa58;
  --mineral: #155c58;
  --mineral-dark: #0d403f;
  --cinnabar: #a73528;
  --cinnabar-dark: #6f201a;
  --line: rgba(72, 54, 34, 0.2);
  --line-strong: rgba(72, 54, 34, 0.38);
  --shadow: 0 24px 70px rgba(65, 46, 24, 0.15);
  --shadow-small: 0 12px 28px rgba(65, 46, 24, 0.12);
  --display: "STKaiti", "KaiTi", "FZKai-Z03", serif;
  --serif: "Songti SC", "STSong", "SimSun", serif;
  --sans: "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --content: min(1240px, calc(100vw - 64px));
  --header-h: 76px;
}

* { box-sizing: border-box; }
small { font-size: 12px; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 12% 3%, rgba(255,255,255,.72), transparent 26rem),
    radial-gradient(circle at 90% 50%, rgba(177,122,45,.09), transparent 34rem),
    repeating-linear-gradient(93deg, rgba(65,46,24,.018) 0 1px, transparent 1px 6px),
    var(--paper);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .16;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(55,39,22,.22) 0 .5px, transparent .8px),
    radial-gradient(circle at 70% 60%, rgba(55,39,22,.18) 0 .5px, transparent .9px);
  background-size: 9px 11px, 13px 15px;
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid rgba(167,53,40,.55);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  color: #fff;
  background: var(--cinnabar);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.museum-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(243,234,215,.91);
  backdrop-filter: blur(18px) saturate(1.1);
}

.header-inner {
  width: var(--content);
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 280px;
  gap: 13px;
}

.brand-seal {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--paper-light);
  background: var(--cinnabar);
  border: 1px solid var(--cinnabar-dark);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.14);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.05;
  writing-mode: vertical-rl;
  letter-spacing: .08em;
}

.brand-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .08em;
  line-height: 1.25;
}

.brand-copy small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: .18em;
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav a {
  position: relative;
  padding: 12px 13px 10px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .22s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.active { color: var(--cinnabar-dark); }
.desktop-nav a:hover::after,
.desktop-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.desktop-nav a:active { transform: translateY(1px); }

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.25);
  font-size: 12px;
  font-weight: 700;
}

.header-action:hover { border-color: var(--cinnabar); color: var(--cinnabar-dark); }

.page-main { min-height: calc(100dvh - var(--header-h)); }
.content-width { width: var(--content); margin-inline: auto; }

.hero {
  position: relative;
  min-height: min(760px, calc(100dvh - var(--header-h)));
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
  background: #d9c79f url('../assets/visual/yellow-river-soundscape-wide.webp') center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248,241,224,.9) 0%, rgba(248,241,224,.64) 34%, rgba(248,241,224,.08) 67%), linear-gradient(0deg, rgba(28,25,20,.18), transparent 40%);
}

.hero-river-line {
  position: absolute;
  inset: auto -5% 4% 30%;
  height: 90px;
  border-top: 2px solid rgba(216,170,89,.62);
  border-radius: 50%;
  transform: rotate(-4deg);
  filter: drop-shadow(0 6px 10px rgba(117,72,22,.16));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: var(--content);
  min-height: inherit;
  margin: auto;
  padding: 100px 0 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--cinnabar-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
}

.eyebrow::before { content: ""; width: 38px; height: 1px; background: currentColor; }

.hero h1,
.display-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(54px, 7vw, 104px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .98;
  text-wrap: balance;
}

.hero h1 span { display: block; color: var(--mineral-dark); }

.hero-lede {
  max-width: 610px;
  margin: 28px 0 0;
  color: #51483c;
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.9;
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  background: none;
  font-weight: 700;
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { color: #fffaf0; background: var(--cinnabar); border-color: var(--cinnabar); box-shadow: 0 12px 24px rgba(116,33,26,.19); }
.btn-primary:hover { background: var(--cinnabar-dark); }
.btn-ink { color: #fffaf0; background: var(--ink); border-color: var(--ink); }
.btn-outline { border-color: var(--line-strong); background: rgba(251,246,233,.58); }
.btn-outline:hover { color: var(--cinnabar-dark); border-color: var(--cinnabar); }
.btn[disabled] { cursor: not-allowed; opacity: .45; transform: none; }

.hero-note {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 12px;
}
.hero-note::before { content: "视觉示意"; padding: 3px 7px; border: 1px solid var(--line-strong); color: var(--ink); font-weight: 700; }

.status-ribbon {
  position: relative;
  z-index: 3;
  margin-top: -60px;
  padding-bottom: 72px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  background: rgba(250,244,229,.95);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.stat {
  min-height: 128px;
  padding: 24px 26px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stat:last-child { border-right: 0; }
.stat:first-child { background: var(--mineral-dark); color: #fff8e9; }
.stat small { opacity: .72; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.stat strong { font-family: var(--serif); font-size: 36px; font-variant-numeric: tabular-nums; line-height: 1; }
.stat span { color: var(--ink-soft); font-size: 12px; }
.stat:first-child span { color: rgba(255,248,233,.7); }

.section { padding: 92px 0 110px; }
.section.compact { padding-block: 64px 80px; }
.section-dark { color: #f9f1df; background: var(--mineral-dark); }
.section-ochre { background: #dfc89b; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 46px;
}
.section-heading h2,
.page-heading h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.08;
  text-wrap: balance;
}
.section-heading p { margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 16px; line-height: 1.85; }
.section-dark .section-heading p { color: rgba(249,241,223,.68); }

.page-heading {
  padding: 70px 0 46px;
  border-bottom: 1px solid var(--line);
}
.page-heading .content-width { display: grid; grid-template-columns: 1fr minmax(280px, 430px); gap: 56px; align-items: end; }
.page-heading p { margin: 0; color: var(--ink-soft); font-family: var(--serif); }

.feature-mosaic {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  grid-template-rows: repeat(2, minmax(230px, auto));
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(251,246,233,.62);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.feature-card:first-child { grid-row: span 2; min-height: 480px; color: #fff7e6; background: var(--cinnabar-dark); }
.feature-card:nth-child(4) { grid-column: span 2; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-small); border-color: rgba(167,53,40,.45); }
.feature-card .number { color: var(--river); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; }
.feature-card:first-child .number { color: #e8bd6a; }
.feature-card h3 { max-width: 17ch; margin: 40px 0 12px; font-family: var(--display); font-size: 31px; line-height: 1.15; }
.feature-card:first-child h3 { margin-top: 160px; font-size: 48px; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.feature-card:first-child p { color: rgba(255,247,230,.72); }
.feature-card .arrow { position: absolute; right: 24px; top: 23px; font-size: 22px; transition: transform .2s var(--ease); }
.feature-card:hover .arrow { transform: translate(4px, -4px); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 18px;
}

.project-card {
  position: relative;
  min-height: 245px;
  padding: 24px;
  border-top: 1px solid var(--line-strong);
  background: rgba(251,246,233,.44);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.project-card::after { content: ""; position: absolute; right: 0; top: 0; width: 46px; height: 46px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); transform: translate(8px,-8px); opacity: 0; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.project-card:hover { background: rgba(255,250,239,.88); transform: translateY(-4px); }
.project-card:hover::after { opacity: 1; transform: translate(0,0); }
.project-card .project-kicker { color: var(--cinnabar-dark); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.project-card h3 { margin: 32px 0 14px; font-family: var(--serif); font-size: 25px; line-height: 1.2; }
.project-card p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--ink-soft); font-size: 13px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.project-card footer { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 12px; }

.province-strip { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid rgba(249,241,223,.22); }
.province-link { min-height: 150px; padding: 25px 20px; border-right: 1px solid rgba(249,241,223,.18); transition: background .2s var(--ease); }
.province-link:last-child { border-right: 0; }
.province-link:hover { background: rgba(255,255,255,.08); }
.province-link strong { display: block; font-family: var(--display); font-size: 31px; }
.province-link span { display: block; margin-top: 24px; color: rgba(249,241,223,.62); font-size: 12px; }

.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 45;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(243,234,215,.94);
  backdrop-filter: blur(15px);
}
.filter-grid { display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, .7fr)); gap: 12px; }
.field { position: relative; }
.field input, .field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(251,246,233,.72);
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--cinnabar); box-shadow: inset 3px 0 var(--cinnabar); }
.result-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 8px 0 30px; color: var(--ink-soft); font-size: 13px; }
.result-meta strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.empty-state {
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 42px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}
.empty-state strong { display: block; font-family: var(--serif); font-size: 22px; }
.empty-state p { max-width: 46ch; color: var(--ink-soft); }

.detail-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: #fff8e8;
  background: var(--mineral-dark) url('../assets/visual/yellow-river-soundscape-wide.webp') center/cover no-repeat;
}
.detail-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,35,34,.96), rgba(15,35,34,.15) 76%), linear-gradient(90deg, rgba(15,35,34,.55), transparent 70%); }
.detail-hero .content-width { position: relative; z-index: 2; padding-bottom: 54px; }
.detail-hero h1 { max-width: 900px; margin: 12px 0 0; font-family: var(--display); font-size: clamp(52px, 7vw, 92px); line-height: .98; }
.detail-hero .visual-label { position: absolute; right: 0; bottom: 54px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.5); font-size: 12px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.prose { font-family: var(--serif); font-size: 17px; line-height: 2; }
.prose p { margin: 0 0 1.3em; white-space: pre-line; }
.prose h2 { margin: 54px 0 20px; font-family: var(--display); font-size: 36px; line-height: 1.2; }
.detail-aside { position: sticky; top: calc(var(--header-h) + 28px); padding: 26px; border: 1px solid var(--line-strong); background: rgba(251,246,233,.62); }
.meta-list { margin: 0; }
.meta-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.meta-row:last-child { border-bottom: 0; }
.meta-row dt { color: var(--ink-soft); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.meta-row dd { margin: 4px 0 0; font-size: 14px; }

.record-timeline { margin-top: 36px; border-left: 1px solid var(--river); }
.record-item { position: relative; margin-left: 28px; padding: 0 0 34px 20px; }
.record-item::before { content: ""; position: absolute; left: -33px; top: 7px; width: 9px; height: 9px; background: var(--cinnabar); border: 4px solid var(--paper); box-shadow: 0 0 0 1px var(--river); }
.record-item h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 20px; }
.record-item p { margin: 4px 0; color: var(--ink-soft); font-size: 13px; }
.source-chip { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; padding: 4px 7px; color: var(--mineral-dark); border: 1px solid rgba(21,92,88,.35); font-size: 12px; }

.graph-layout, .map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: stretch; }
.graph-stage, .map-stage { position: relative; min-height: 650px; overflow: hidden; border: 1px solid var(--line-strong); background: rgba(251,246,233,.62); box-shadow: inset 0 0 90px rgba(177,122,45,.07); }
.graph-stage svg, .map-stage svg { width: 100%; height: 100%; min-height: 650px; }
.graph-side, .map-side { min-height: 650px; overflow: auto; padding: 24px; border: 1px solid var(--line-strong); background: rgba(251,246,233,.62); }
.graph-side h2, .map-side h2 { margin: 0 0 8px; font-family: var(--display); font-size: 30px; line-height: 1.25; }
.graph-side p, .map-side p { color: var(--ink-soft); font-size: 13px; }
.graph-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 20px 0; color: var(--ink-soft); font-size: 12px; }
.legend-dot { width: 9px; height: 9px; display: inline-block; margin-right: 5px; border-radius: 50%; }
.node-project { cursor: pointer; transition: opacity .2s, transform .2s; transform-box: fill-box; transform-origin: center; }
.node-project:hover { transform: scale(1.08); }
.graph-edge { stroke-dasharray: 320; stroke-dashoffset: 320; animation: drawEdge .55s var(--ease) forwards; }
@keyframes drawEdge { to { stroke-dashoffset: 0; } }
.graph-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.graph-pill { padding: 7px 10px; border: 1px solid var(--line); background: rgba(255,255,255,.35); font-size: 12px; }
.evidence-card { padding: 14px 0; border-top: 1px solid var(--line); }
.evidence-card strong { display: block; font-family: var(--serif); }
.evidence-card span { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 12px; }

.map-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mode-tab { padding: 8px 11px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 12px; }
.mode-tab.active { color: #fff8e8; background: var(--mineral-dark); border-color: var(--mineral-dark); }
.offline-map { width: 100%; height: 100%; }
.province-shape { cursor: pointer; transition: opacity .2s var(--ease), transform .2s var(--ease); transform-box: fill-box; transform-origin: center; }
.province-shape:hover, .province-shape.active { opacity: 1; transform: scale(1.025); }
.province-list { display: grid; gap: 8px; margin-top: 18px; }
.province-row { width: 100%; padding: 12px 0; display: flex; justify-content: space-between; gap: 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; text-align: left; }
.province-row:hover { color: var(--cinnabar-dark); }
.project-mini-list { margin-top: 20px; }
.project-mini { display: block; padding: 11px 0; border-top: 1px solid var(--line); }
.project-mini strong { display: block; font-family: var(--serif); font-size: 14px; }
.project-mini small { color: var(--ink-soft); }
.tdt-map { position: absolute; inset: 0; background: #e8dfcb; }
.map-badge { position: absolute; left: 16px; bottom: 16px; z-index: 3; padding: 7px 9px; color: #fff; background: rgba(32,28,23,.78); font-size: 12px; backdrop-filter: blur(8px); }

.news-list { border-top: 1px solid var(--line-strong); }
.news-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 160px; gap: 28px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding .2s var(--ease), color .2s var(--ease); }
.news-row:hover { padding-inline: 12px; color: var(--cinnabar-dark); }
.news-row time { font-family: var(--mono); font-size: 12px; }
.news-row h2 { margin: 0; font-family: var(--serif); font-size: 22px; }
.news-row p { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; }
.news-row .source { justify-self: end; color: var(--ink-soft); font-size: 12px; }

.source-panel { padding: 22px; border-left: 4px solid var(--river); background: rgba(255,250,239,.72); }
.source-panel h3 { margin: 0 0 8px; font-family: var(--serif); }
.source-panel p { margin: 4px 0; color: var(--ink-soft); font-size: 12px; }

.museum-footer { padding: 58px 0 30px; color: rgba(255,248,233,.75); background: #1d2f2e; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .8fr .8fr; gap: 60px; }
.footer-brand h2 { margin: 0; color: #fff8e9; font-family: var(--display); font-size: 32px; }
.footer-brand p { max-width: 52ch; font-size: 12px; }
.footer-links strong { display: block; margin-bottom: 12px; color: #fff8e9; font-family: var(--serif); }
.footer-links a { display: block; width: max-content; margin: 7px 0; font-size: 12px; }
.footer-links a:hover { color: #e9bd70; }
.footer-bottom { margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; }

.mobile-bottom-nav { display: none; }

.launcher {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(430px, .75fr);
  background: var(--paper);
}
.launcher-visual { position: relative; min-height: 100dvh; overflow: hidden; background: url('../assets/visual/yellow-river-soundscape-wide.webp') center/cover no-repeat; }
.launcher-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--paper)); }
.launcher-copy { position: relative; padding: 64px 7vw 48px 20px; display: flex; flex-direction: column; justify-content: center; }
.launcher-copy h1 { margin: 16px 0 0; font-family: var(--display); font-size: clamp(48px, 5.5vw, 82px); line-height: 1.02; letter-spacing: -.05em; }
.launcher-copy > p { color: var(--ink-soft); font-family: var(--serif); }
.launcher-options { margin-top: 34px; border-top: 1px solid var(--line-strong); }
.launcher-option { padding: 20px 4px; display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); transition: padding .2s var(--ease), color .2s var(--ease); }
.launcher-option:hover { padding-inline: 12px; color: var(--cinnabar-dark); }
.launcher-option .lo-index { font-family: var(--mono); color: var(--river); }
.launcher-option strong { display: block; font-family: var(--serif); font-size: 18px; }
.launcher-option small { color: var(--ink-soft); }

.admin-page { min-height: 100dvh; color: #e9e0cd; background: #102d2c; }
.admin-topbar { position: sticky; top: 0; z-index: 50; height: 70px; display: flex; align-items: center; gap: 24px; padding: 0 28px; border-bottom: 1px solid rgba(255,255,255,.13); background: rgba(16,45,44,.94); backdrop-filter: blur(16px); }
.admin-topbar .brand { min-width: auto; }
.admin-topbar .brand-copy strong { color: #fff8e8; }
.admin-topbar .brand-copy small { color: rgba(255,248,232,.55); }
.admin-badge { margin-left: auto; padding: 6px 9px; border: 1px solid rgba(255,255,255,.2); color: #e9bd70; font-size: 12px; }
.admin-shell { width: min(1500px, calc(100vw - 56px)); margin: auto; padding: 34px 0 70px; }
.admin-hero { display: grid; grid-template-columns: 1fr minmax(360px, .65fr); gap: 60px; align-items: end; margin-bottom: 34px; }
.admin-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(42px, 5vw, 72px); line-height: 1; }
.admin-hero p { margin: 0; color: rgba(233,224,205,.62); }
.admin-notice { margin: 18px 0 28px; padding: 12px 15px; color: #f5d28e; border: 1px solid rgba(233,189,112,.35); background: rgba(233,189,112,.07); font-size: 12px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.14); }
.admin-stat { min-height: 132px; padding: 22px; border-right: 1px solid rgba(255,255,255,.13); }
.admin-stat:last-child { border-right: 0; }
.admin-stat small { color: rgba(233,224,205,.55); font-size: 12px; letter-spacing: .12em; }
.admin-stat strong { display: block; margin-top: 28px; color: #fff8e8; font-family: var(--serif); font-size: 32px; font-variant-numeric: tabular-nums; }
.admin-grid { margin-top: 24px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; }
.admin-panel { padding: 24px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.035); }
.admin-panel h2 { margin: 0 0 18px; font-family: var(--display); font-size: 30px; }
.quality-row { display: grid; grid-template-columns: 160px 1fr 70px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.quality-track { height: 6px; background: rgba(255,255,255,.09); }
.quality-track span { display: block; height: 100%; background: #d2a85d; }
.quality-row b { text-align: right; font-family: var(--mono); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th, .admin-table td { padding: 13px 8px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: left; }
.admin-table th { color: rgba(233,224,205,.55); font-weight: 600; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.admin-action { padding: 9px 12px; color: #e9e0cd; border: 1px solid rgba(255,255,255,.16); background: transparent; cursor: pointer; }
.admin-action:hover { color: #1d2f2e; background: #e9bd70; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: 360px;
  padding: 14px 17px;
  color: #fff8e9;
  background: rgba(29,47,46,.96);
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.toast.show { transform: translateY(0); opacity: 1; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  :root { --content: min(100% - 40px, 1000px); }
  .brand { min-width: 230px; }
  .brand-copy strong { font-size: 14px; }
  .desktop-nav a { padding-inline: 9px; }
  .header-action { display: none; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-mosaic { grid-template-columns: 1fr 1fr; }
  .feature-card:first-child { grid-row: span 1; min-height: 330px; }
  .feature-card:first-child h3 { margin-top: 90px; }
  .feature-card:nth-child(4) { grid-column: auto; }
  .graph-layout, .map-layout { grid-template-columns: 1fr; }
  .graph-side, .map-side { min-height: auto; }
  .launcher { grid-template-columns: 1fr 460px; }
}

@media (max-width: 780px) {
  :root { --content: calc(100vw - 32px); --header-h: 62px; }
  body[data-app="h5"] { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .museum-header { height: var(--header-h); }
  .header-inner { gap: 12px; }
  .brand { min-width: 0; flex: 1; }
  .brand-seal { width: 34px; font-size: 12px; }
  .brand-copy strong { max-width: 190px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .brand-copy small { display: none; }
  .desktop-nav { display: none; }
  .mobile-header-link { display: inline-flex; padding: 7px 9px; border: 1px solid var(--line); font-size: 12px; }
  .hero { min-height: 690px; background-image: url('../assets/visual/yellow-river-soundscape-mobile.webp'); background-position: center 62%; }
  .hero::before { background: linear-gradient(180deg, rgba(248,241,224,.96) 0%, rgba(248,241,224,.74) 38%, rgba(248,241,224,.1) 70%), linear-gradient(0deg, rgba(20,31,30,.6), transparent 35%); }
  .hero-copy { justify-content: flex-start; padding-top: 68px; }
  .hero h1, .display-title { font-size: clamp(48px, 15vw, 66px); }
  .hero-lede { max-width: 90%; font-size: 15px; line-height: 1.8; }
  .hero-actions { margin-top: 24px; }
  .hero-note { margin-top: 18px; }
  .status-ribbon { margin-top: 0; padding-bottom: 32px; background: var(--mineral-dark); }
  .stat-grid { width: 100%; grid-template-columns: repeat(2, 1fr); border: 0; box-shadow: none; }
  .stat { min-height: 112px; border: 1px solid rgba(255,255,255,.12); color: #fff8e9; background: var(--mineral-dark); }
  .stat:first-child { grid-column: span 2; }
  .stat span { color: rgba(255,248,233,.62); }
  .section { padding: 62px 0 72px; }
  .section-heading, .page-heading .content-width { grid-template-columns: 1fr; gap: 18px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2, .page-heading h1 { font-size: 42px; }
  .page-heading { padding: 42px 0 30px; }
  .feature-mosaic { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; }
  .feature-card, .feature-card:first-child { min-height: 220px; }
  .feature-card:first-child h3 { margin-top: 70px; font-size: 36px; }
  .project-grid { grid-template-columns: 1fr; gap: 10px; }
  .project-card { min-height: 220px; }
  .province-strip { grid-template-columns: 1fr 1fr; }
  .province-link:nth-child(5) { grid-column: span 2; }
  .filter-bar { top: var(--header-h); padding-block: 12px; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .filter-grid .field:first-child { grid-column: span 2; }
  .detail-hero { min-height: 430px; background-image: url('../assets/visual/yellow-river-soundscape-mobile.webp'); }
  .detail-hero .content-width { padding-bottom: 36px; }
  .detail-hero .visual-label { right: 0; bottom: 18px; }
  .detail-layout { grid-template-columns: 1fr; gap: 38px; }
  .detail-aside { position: static; order: -1; }
  .prose { font-size: 16px; }
  .graph-stage, .map-stage, .graph-stage svg, .map-stage svg { min-height: 460px; }
  .graph-layout, .map-layout { gap: 12px; }
  .graph-side, .map-side { padding: 18px; }
  .news-row { grid-template-columns: 92px 1fr; gap: 12px; align-items: start; }
  .news-row .source { grid-column: 2; justify-self: start; }
  .news-row h2 { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 6px 10px env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(248,241,224,.96);
    backdrop-filter: blur(18px);
  }
  .mobile-bottom-nav a { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-soft); font-size: 12px; }
  .mobile-bottom-nav a svg { width: 20px; height: 20px; }
  .mobile-bottom-nav a.active { color: var(--cinnabar-dark); font-weight: 700; }
  .launcher { display: block; }
  .launcher-visual { min-height: 48dvh; background-image: url('../assets/visual/yellow-river-soundscape-mobile.webp'); background-position: center 60%; }
  .launcher-visual::after { background: linear-gradient(0deg, var(--paper), transparent 45%); }
  .launcher-copy { padding: 0 22px 50px; margin-top: -28px; }
  .launcher-copy h1 { font-size: 48px; }
  .admin-topbar { padding-inline: 16px; }
  .admin-shell { width: calc(100vw - 28px); padding-top: 24px; }
  .admin-hero { grid-template-columns: 1fr; gap: 15px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-stat:nth-child(2) { border-right: 0; }
  .admin-stat { border-bottom: 1px solid rgba(255,255,255,.13); }
  .admin-grid { grid-template-columns: 1fr; }
  .quality-row { grid-template-columns: 112px 1fr 52px; }
}

.btn-paper { color: var(--ink); border-color: rgba(255,248,232,.48); background: rgba(255,248,232,.9); }
.btn-paper:hover { background: #fffaf0; }
.section-cta { margin-top: 34px; }
.youth-heading p { max-width: 520px; }
.quest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quest-card { position: relative; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; overflow: hidden; color: var(--ink); border: 1px solid var(--line-strong); background: rgba(251,246,233,.7); transition: transform .24s var(--ease), background .24s var(--ease), border-color .24s var(--ease); }
.quest-card::after { content: ""; position: absolute; width: 160px; height: 160px; right: -50px; bottom: -70px; border: 1px solid rgba(167,53,40,.22); border-radius: 50%; box-shadow: 0 0 0 22px rgba(177,122,45,.06), 0 0 0 44px rgba(21,92,88,.04); }
.quest-card:hover { transform: translateY(-5px); border-color: var(--cinnabar); background: #fffaf0; }
.quest-card svg { color: var(--cinnabar); }
.quest-card h3 { margin: 18px 0 8px; font-family: var(--display); font-size: 34px; }
.quest-card p { margin: 0; color: var(--ink-soft); line-height: 1.75; }
.quest-card b { position: relative; z-index: 2; font-size: 13px; color: var(--cinnabar-dark); }
.quest-index { color: var(--river); font-family: var(--serif); font-size: 12px; letter-spacing: .18em; }
.youth-journey-section { position: relative; min-height: 660px; display: flex; align-items: center; overflow: hidden; color: #fff9ea; background: #153d3a url('../assets/visual/yellow-river-youth-journey.webp') center/cover no-repeat; }
.youth-journey-section::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,43,41,.9) 0%, rgba(10,43,41,.58) 34%, rgba(10,43,41,.08) 70%); }
.youth-journey-inner { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-block: 90px; }
.youth-journey-copy { max-width: 520px; padding: 34px; border: 1px solid rgba(255,255,255,.28); background: rgba(12,49,47,.72); backdrop-filter: blur(8px); }
.youth-journey-copy h2 { margin: 10px 0 18px; font-family: var(--display); font-size: clamp(48px, 5vw, 72px); line-height: 1.03; }
.youth-journey-copy p { color: rgba(255,249,234,.8); line-height: 1.9; }
.journey-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.journey-stamps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.journey-stamps span { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); background: rgba(167,53,40,.78); font-family: var(--display); font-size: 27px; transform: rotate(-3deg); }
.journey-stamps span:nth-child(2n) { transform: rotate(4deg); background: rgba(21,92,88,.85); }
.news-stage .section-heading { align-items: end; }
.news-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.22); }
.news-teaser { min-height: 250px; display: flex; flex-direction: column; padding: 24px; color: #fff8e8; border-right: 1px solid rgba(255,255,255,.18); }
.news-teaser:last-child { border-right: 0; }
.news-teaser > span, .news-teaser time { color: rgba(255,248,232,.52); font-size: 12px; }
.news-teaser time { margin-top: 36px; }
.news-teaser h3 { margin: 12px 0 auto; font-family: var(--serif); font-size: 24px; line-height: 1.45; }
.news-teaser b { margin-top: 24px; color: #f0c272; font-size: 12px; }
.news-visual-banner { min-height: 390px; display: flex; align-items: flex-end; margin-bottom: 36px; padding: 42px; color: #fff8e8; background: linear-gradient(90deg, rgba(13,64,63,.86), rgba(13,64,63,.1)), url('../assets/visual/yellow-river-youth-journey.webp') center/cover no-repeat; }
.news-visual-banner h2 { margin: 10px 0 0; font-family: var(--display); font-size: 54px; line-height: 1.05; }
.editorial-visual { width: 100%; aspect-ratio: 3/1.45; margin-bottom: 28px; background: url('../assets/visual/yellow-river-youth-journey.webp') center/cover no-repeat; border: 1px solid var(--line); }
.mine-progress { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 50px; border: 1px solid var(--line); }
.mine-progress div { min-height: 110px; display: flex; align-items: center; gap: 16px; padding: 20px; border-right: 1px solid var(--line); }
.mine-progress div:last-child { border-right: 0; }
.mine-progress span { color: var(--cinnabar); font-family: var(--serif); font-size: 28px; }
.mine-progress b { font-size: 15px; }

.graph-explorer { position: relative; }
.graph-explorer-top { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 14px; border: 1px solid var(--line-strong); border-bottom: 0; background: rgba(248,241,224,.88); }
.graph-breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.graph-breadcrumb button { padding: 6px 8px; color: var(--cinnabar); border: 0; background: transparent; cursor: pointer; }
.graph-breadcrumb span { color: var(--ink-soft); }
.graph-project-picker { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-soft); }
.graph-project-picker select { min-width: 190px; padding: 9px 30px 9px 10px; border: 1px solid var(--line); background: #fffaf0; }
.graph-stage-wrap { position: relative; min-width: 0; }
.graph-stage { height: 700px; min-height: 0; touch-action: none; cursor: grab; background: radial-gradient(circle at 50% 48%, rgba(255,250,240,.95), rgba(242,231,209,.72)); }
.graph-stage:active { cursor: grabbing; }
.graph-stage svg { min-height: 0; }
.graph-project-node, .graph-relation-node { cursor: pointer; }
.graph-project-node rect, .graph-relation-node circle, .graph-edge { transition: stroke-width .2s var(--ease), filter .2s var(--ease), opacity .2s var(--ease), transform .2s var(--ease); }
.graph-project-node:hover rect, .graph-project-node:focus rect { stroke-width: 2.5; filter: drop-shadow(0 8px 10px rgba(83,60,29,.15)); }
.graph-relation-node:hover circle:first-child, .graph-relation-node:focus circle:first-child, .graph-relation-node.selected circle:first-child { stroke: #fff8e8; stroke-width: 4; filter: drop-shadow(0 6px 7px rgba(32,28,23,.2)); }
.graph-edge.selected { stroke-width: 5; stroke-opacity: 1; }
.graph-river { stroke-dasharray: 22 12; animation: riverDrift 8s linear infinite; }
.graph-floating-controls { position: absolute; right: 15px; bottom: 15px; z-index: 6; display: flex; border: 1px solid var(--line-strong); background: rgba(255,250,240,.92); box-shadow: 0 10px 30px rgba(58,42,25,.12); }
.graph-floating-controls button { min-width: 42px; height: 42px; padding: 0 10px; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; }
.graph-floating-controls button:last-child { border-right: 0; }
.graph-floating-controls button:hover { color: #fff; background: var(--cinnabar); }
.graph-stage-back { position: absolute; left: 15px; top: 15px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; color: var(--ink); border: 1px solid var(--line); background: rgba(255,250,240,.93); cursor: pointer; }
.graph-side { height: 700px; min-height: 0; }
.graph-side-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.graph-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px 0; }
.graph-metrics span { min-height: 62px; display: flex; flex-direction: column; justify-content: center; padding: 9px; text-align: center; border: 1px solid var(--line); background: rgba(255,255,255,.4); font-size: 12px; }
.graph-metrics b { color: var(--cinnabar); font-family: var(--serif); font-size: 22px; }
.relation-detail { min-height: 142px; margin: 16px 0; padding: 16px; border-left: 3px solid var(--cinnabar); background: rgba(243,234,215,.9); }
.relation-detail h3 { margin: 5px 0 8px; font-family: var(--serif); font-size: 17px; }
.relation-source { display: flex; flex-wrap: wrap; gap: 6px; }
.relation-source span { padding: 4px 7px; background: #fffaf0; border: 1px solid var(--line); font-size: 12px; }
.graph-extension { margin: 22px 0; }
.extension-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.extension-grid button { position: relative; min-height: 82px; padding: 12px; text-align: left; color: var(--ink); border: 1px solid var(--line); background: rgba(255,255,255,.36); cursor: pointer; }
.extension-grid button:hover { border-color: var(--cinnabar); background: #fffaf0; }
.extension-grid b, .extension-grid span, .extension-grid em { display: block; }
.extension-grid b { font-family: var(--serif); font-size: 16px; }
.extension-grid span { margin-top: 4px; color: var(--ink-soft); font-size: 12px; }
.extension-grid em { position: absolute; right: 8px; top: 8px; color: var(--cinnabar); font-size: 12px; font-style: normal; }
.province-catalog { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 20px 0; }
.province-catalog button { min-height: 66px; padding: 12px; text-align: left; color: var(--ink); border: 1px solid var(--line); background: transparent; cursor: pointer; }
.province-catalog button:hover { border-color: var(--cinnabar); }
.province-catalog span, .province-catalog b { display: block; }
.province-catalog b { margin-top: 5px; color: var(--cinnabar); font-size: 12px; }
.graph-guide { display: flex; flex-wrap: wrap; gap: 6px; }
.graph-guide span { padding: 6px 8px; border: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }

.fixed-map-layout { align-items: stretch; }
.fixed-map-layout .map-stage, .fixed-map-layout .map-side { height: 680px; min-height: 0; }
.illustrated-map-stage { background: #e7dcc3 url('../assets/visual/yellow-river-youth-journey.webp') left center/auto 100% no-repeat; }
.illustrated-map-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(247,238,216,.04), rgba(247,238,216,.25)); box-shadow: inset 0 0 80px rgba(61,43,24,.15); }
.art-map-overlay { position: relative; z-index: 2; }
.art-map-label { position: absolute; left: 18px; top: 18px; z-index: 5; padding: 8px 11px; color: #fff8e8; background: rgba(13,64,63,.88); font-size: 12px; letter-spacing: .12em; }
.map-hotspot { cursor: pointer; opacity: 0; animation: mapMarkerIn .52s var(--ease) forwards; animation-delay: var(--delay); }
.map-hotspot circle:nth-of-type(2) { transition: transform .2s var(--ease), filter .2s var(--ease); transform-box: fill-box; transform-origin: center; }
.map-hotspot:hover circle:nth-of-type(2), .map-hotspot:focus circle:nth-of-type(2), .map-hotspot.active circle:nth-of-type(2) { transform: scale(1.15); filter: drop-shadow(0 8px 9px rgba(32,28,23,.28)); }
.hotspot-ripple { transform-box: fill-box; transform-origin: center; animation: hotspotPulse 2.8s ease-out infinite; }
.map-river-spark { stroke-dashoffset: 0; animation: riverDash 5s linear infinite; }
.map-side { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.map-side-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.compact-provinces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 16px 0; }
.compact-provinces .province-row { min-height: 56px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 7px; text-align: center; }
.compact-provinces .province-row.active { color: #fff; border-color: var(--cinnabar); background: var(--cinnabar); }
.project-mini-list { border-top: 1px solid var(--line); }
.project-mini { display: block; padding: 13px 3px; border-bottom: 1px solid var(--line); }
.project-mini strong, .project-mini small { display: block; }
.project-mini small { margin-top: 4px; color: var(--ink-soft); }
.map-more { width: 100%; margin-top: 10px; padding: 11px; color: var(--cinnabar); border: 1px solid var(--line); background: transparent; cursor: pointer; }
.map-more:hover { color: #fff; background: var(--cinnabar); }
.map-discovery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 18px; }
.map-discovery span { padding: 12px 5px; text-align: center; color: var(--ink-soft); border: 1px solid var(--line); font-size: 12px; }
.map-info-button { margin-left: auto; padding: 8px 11px; color: var(--ink-soft); border: 1px solid var(--line); background: transparent; cursor: pointer; }

body[data-app="admin"] { background: #eef0eb; }
.admin-app { min-height: 100dvh; display: grid; grid-template-columns: 230px minmax(0, 1fr); color: #172422; background: #eef0eb; }
.admin-sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 20px 14px; color: #e9e0cd; background: #102d2c; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; color: #fff8e8; border-bottom: 1px solid rgba(255,255,255,.11); }
.admin-brand > span:last-child { display: flex; flex-direction: column; }
.admin-brand strong { font-size: 14px; }
.admin-brand small { margin-top: 3px; color: rgba(255,255,255,.42); font-size: 12px; letter-spacing: .14em; }
.admin-sidebar nav { display: grid; gap: 3px; margin-top: 20px; }
.admin-nav-item { min-height: 43px; display: flex; align-items: center; gap: 11px; padding: 0 12px; color: rgba(255,248,232,.64); border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.admin-nav-item:hover, .admin-nav-item.active { color: #fff8e8; background: rgba(255,255,255,.09); }
.admin-nav-item.active { box-shadow: inset 3px 0 #e6b55e; }
.admin-nav-item em { margin-left: auto; min-width: 20px; padding: 2px 5px; color: #fff; background: #a73528; border-radius: 10px; font-size: 12px; font-style: normal; text-align: center; }
.admin-side-status { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 12px; color: rgba(255,248,232,.64); border: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.admin-side-status i { width: 8px; height: 8px; border-radius: 50%; background: #e6b55e; box-shadow: 0 0 0 5px rgba(230,181,94,.1); }
.admin-side-status small { color: rgba(255,255,255,.35); }
.admin-workspace { min-width: 0; }
.admin-workspace-bar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; border-bottom: 1px solid #d6dcd5; background: rgba(255,255,255,.78); backdrop-filter: blur(14px); }
.admin-search { width: min(540px, 58vw); display: flex; align-items: center; gap: 9px; padding: 9px 12px; color: #61706d; background: #f4f6f2; border: 1px solid #d9ded8; }
.admin-search input { width: 100%; border: 0; outline: 0; background: transparent; }
.admin-toolbar { display: flex; align-items: center; gap: 12px; }
.admin-toolbar button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #d9ded8; background: #fff; cursor: pointer; }
.admin-user { font-size: 12px; font-weight: 700; }
.admin-content { width: min(1480px, calc(100vw - 278px)); margin: auto; padding: 30px 0 60px; }
.admin-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.admin-title-row h1 { margin: 4px 0 7px; font-family: var(--display); font-size: 42px; }
.admin-title-row p:last-child { margin: 0; color: #6b7774; }
.admin-primary-actions { display: flex; gap: 8px; }
.admin-primary-actions button, .admin-card-head button, .admin-wide-action, .admin-drawer-footer button, .admin-form-evidence button { padding: 9px 12px; color: #173b38; border: 1px solid #bdc8c2; background: #fff; cursor: pointer; }
.admin-primary-actions button.primary, .admin-drawer-footer button.primary { color: #fff; border-color: #155c58; background: #155c58; }
.admin-kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.admin-kpi { min-height: 112px; padding: 17px; border: 1px solid #d6ddd7; background: #fff; }
.admin-kpi small, .admin-kpi span { display: block; color: #72807c; font-size: 12px; }
.admin-kpi strong { display: block; margin: 12px 0 5px; color: #133d3a; font-family: var(--serif); font-size: 30px; }
.admin-dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; margin-top: 14px; }
.admin-card { min-width: 0; padding: 20px; border: 1px solid #d6ddd7; background: #fff; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.admin-card-head h2 { margin: 4px 0 0; font-family: var(--serif); font-size: 22px; }
.admin-card-head .eyebrow { margin: 0; font-size: 12px; }
.admin-quality-card { min-height: 300px; }
.admin-queue-card { min-height: 300px; }
.admin-queue { display: grid; }
.admin-queue > button { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 12px; padding: 13px 4px; text-align: left; color: #172422; border: 0; border-bottom: 1px solid #e2e6e1; background: transparent; cursor: pointer; }
.admin-queue > button:hover { background: #f5f7f3; }
.admin-queue i, .source-health i { width: 8px; height: 8px; border-radius: 50%; background: #e0ae54; }
.admin-queue i.warn, .source-health i.warn { background: #a73528; }
.admin-queue i.ok, .source-health i.ok { background: #3d8368; }
.admin-queue b, .admin-queue small { display: block; }
.admin-queue small { margin-top: 3px; color: #78847f; }
.admin-queue em { color: #78847f; font-size: 12px; font-style: normal; }
.admin-table-card { grid-column: 1 / -1; }
.admin-segment { display: flex; border: 1px solid #d7ded8; }
.admin-segment button { padding: 7px 10px; border: 0; border-right: 1px solid #d7ded8; background: #fff; cursor: pointer; }
.admin-segment button:last-child { border-right: 0; }
.admin-segment button.active { color: #fff; background: #155c58; }
.admin-table-scroll { overflow: auto; }
.admin-app .admin-table { min-width: 900px; color: #253330; font-size: 12px; }
.admin-app .admin-table th, .admin-app .admin-table td { border-color: #e2e6e2; }
.admin-app .admin-table th { color: #75817d; }
.admin-app .admin-table td small { display: block; margin-top: 3px; color: #87918e; }
.admin-status { display: inline-block; padding: 4px 7px; border-radius: 10px; }
.admin-status.ok { color: #27684f; background: #e1f0e8; }
.row-action { color: #155c58; border: 0; background: transparent; cursor: pointer; }
.admin-media-preview { min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff8e8; background: linear-gradient(0deg, rgba(13,64,63,.86), transparent 70%), url('../assets/visual/yellow-river-youth-journey.webp') center/cover; }
.admin-media-preview span { font-size: 12px; }
.admin-media-preview strong { margin-top: 6px; font-family: var(--serif); font-size: 19px; }
.media-meta { display: flex; justify-content: space-between; padding-top: 13px; color: #75817d; font-size: 12px; }
.source-health { display: grid; gap: 12px; }
.source-health span { display: flex; align-items: center; gap: 9px; color: #4f5d59; font-size: 12px; }
.admin-wide-action { width: 100%; margin-top: 24px; }
.admin-drawer { position: fixed; right: 0; top: 0; z-index: 110; width: min(460px, 96vw); height: 100dvh; display: flex; flex-direction: column; padding: 24px; background: #fff; box-shadow: -24px 0 60px rgba(12,31,29,.2); transform: translateX(105%); transition: transform .28s var(--ease); }
.admin-drawer.open { transform: translateX(0); }
.admin-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid #dce2dc; }
.admin-drawer-head h2 { margin: 4px 0 0; font-family: var(--display); font-size: 34px; }
.admin-drawer-head > button { width: 38px; height: 38px; border: 1px solid #d6ddd7; background: #fff; font-size: 24px; cursor: pointer; }
.admin-form { display: grid; gap: 18px; padding: 24px 0; overflow: auto; }
.admin-form label { display: grid; gap: 7px; color: #52615d; font-size: 12px; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; padding: 11px; border: 1px solid #ccd5cf; background: #f8faf7; }
.admin-form textarea { min-height: 130px; resize: vertical; }
.admin-form-evidence { padding: 16px; border: 1px dashed #acbbb2; background: #f5f8f4; }
.admin-form-evidence b, .admin-form-evidence span { display: block; }
.admin-form-evidence span { margin: 6px 0 14px; color: #75817d; font-size: 12px; }
.admin-drawer-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px solid #dce2dc; }

@keyframes riverDrift { to { stroke-dashoffset: -68; } }
@keyframes riverDash { to { stroke-dashoffset: -96; } }
@keyframes mapMarkerIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hotspotPulse { 0%, 20% { opacity: .55; transform: scale(.82); } 75%, 100% { opacity: 0; transform: scale(1.45); } }

@media (max-width: 1080px) {
  .quest-grid, .news-teaser-grid { grid-template-columns: 1fr; }
  .quest-card { min-height: 210px; }
  .news-teaser { min-height: 180px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .graph-stage, .graph-side { height: 620px; }
  .fixed-map-layout .map-stage { height: 610px; }
  .fixed-map-layout .map-side { height: 460px; }
  .admin-app { grid-template-columns: 78px minmax(0, 1fr); }
  .admin-sidebar { padding-inline: 10px; }
  .admin-brand > span:last-child, .admin-nav-item span, .admin-nav-item em, .admin-side-status span { display: none; }
  .admin-nav-item { justify-content: center; padding: 0; }
  .admin-content { width: calc(100vw - 110px); }
  .admin-kpi-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  .youth-hero .hero-note { display: none; }
  .quest-grid { gap: 9px; }
  .quest-card { min-height: 190px; }
  .quest-card h3 { font-size: 30px; }
  .youth-journey-section { min-height: 700px; align-items: flex-end; background-position: 68% center; }
  .youth-journey-section::before { background: linear-gradient(0deg, rgba(10,43,41,.94), rgba(10,43,41,.06) 78%); }
  .youth-journey-inner { align-items: flex-end; padding-block: 44px; }
  .youth-journey-copy { padding: 24px; }
  .youth-journey-copy h2 { font-size: 46px; }
  .journey-stamps { display: none; }
  .news-visual-banner { min-height: 330px; padding: 24px; }
  .news-visual-banner h2 { font-size: 42px; }
  .mine-progress { grid-template-columns: 1fr; }
  .mine-progress div { min-height: 74px; border-right: 0; border-bottom: 1px solid var(--line); }
  .graph-explorer-top { align-items: stretch; flex-direction: column; }
  .graph-project-picker { justify-content: space-between; }
  .graph-project-picker select { min-width: 0; width: 64%; }
  .graph-stage { height: 500px; min-height: 500px; }
  .graph-side { height: auto; max-height: 570px; min-height: 0; }
  .graph-floating-controls { right: 9px; bottom: 9px; }
  .graph-stage-back { left: 9px; top: 9px; }
  .graph-metrics { grid-template-columns: repeat(3, 1fr); }
  .extension-grid { grid-template-columns: 1fr 1fr; }
  .fixed-map-layout .map-stage { height: 520px; min-height: 520px; }
  .illustrated-map-stage { background-position: 11% center; }
  .fixed-map-layout .map-side { height: auto; max-height: 430px; min-height: 0; }
  .compact-provinces { grid-template-columns: repeat(5, minmax(52px, 1fr)); overflow-x: auto; }
  .map-info-button { margin-left: 0; }
  .admin-app { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; width: 100%; height: auto; display: block; padding: 12px; }
  .admin-brand { padding-bottom: 12px; }
  .admin-brand > span:last-child { display: flex; }
  .admin-sidebar nav { display: flex; overflow-x: auto; margin-top: 10px; }
  .admin-nav-item { min-width: 54px; }
  .admin-side-status { display: none; }
  .admin-workspace-bar { padding: 0 14px; }
  .admin-search { width: 100%; }
  .admin-user { display: none; }
  .admin-content { width: calc(100vw - 28px); padding-top: 20px; }
  .admin-title-row { align-items: flex-start; flex-direction: column; }
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .admin-table-card { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Third-pass core-module refinement */
:root {
  --content: min(1380px, calc(100vw - 72px));
  --display: "FZKai-Z03", "STKaiti", "KaiTi", serif;
  --serif: "FZSong-Z01", "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --sans: "MiSans", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --ease-spring: cubic-bezier(.16, 1, .3, 1);
}
body { font-size: 15px; line-height: 1.78; letter-spacing: .01em; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
button, a { transition: color .22s var(--ease), background-color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease); }
.is-pressing { transform: translateY(1px) scale(.985) !important; }
.content-wide { width: min(1480px, calc(100vw - 72px)); margin-inline: auto; }
.content-fluid { width: min(1720px, calc(100vw - 40px)); margin-inline: auto; }
.museum-header { box-shadow: 0 10px 36px rgba(71,50,26,.045); }
.desktop-nav a { font-size: 13px; font-weight: 500; letter-spacing: .055em; }
.brand-copy strong { font-weight: 600; letter-spacing: .06em; }
.header-action { font-weight: 600; }
.back-to-top { position: fixed; right: 26px; bottom: 28px; z-index: 75; width: 48px; height: 48px; display: grid; place-items: center; color: #fff8e8; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(13,64,63,.92); box-shadow: 0 12px 30px rgba(13,64,63,.25); opacity: 0; visibility: hidden; transform: translateY(16px); cursor: pointer; backdrop-filter: blur(12px); }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--cinnabar); transform: translateY(-3px); }
.museum-footer-v3 { padding: 0; }
.footer-stat-band { display: grid; grid-template-columns: repeat(5,1fr); border: 1px solid rgba(255,255,255,.16); border-bottom: 0; }
.footer-stat-band div { min-height: 120px; display: flex; flex-direction: column; justify-content: center; padding: 22px; border-right: 1px solid rgba(255,255,255,.13); }
.footer-stat-band div:last-child { border-right: 0; }
.footer-stat-band strong { color: #f2c879; font-family: var(--serif); font-size: 30px; font-variant-numeric: tabular-nums; }
.footer-stat-band span { margin-top: 4px; color: rgba(255,248,232,.58); font-size: 12px; }
.museum-footer-v3 .footer-grid { padding-block: 64px 42px; }
.footer-seal { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 22px; color: #fff; border: 1px solid rgba(255,255,255,.38); font-family: var(--display); }
.footer-compliance { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 18px 0; color: rgba(255,248,232,.48); border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.museum-footer-v3 .footer-bottom { padding-block: 18px 30px; }
.museum-footer-v3 { min-height: 72px; display: flex; align-items: center; }
.footer-one-line-v3 { min-height: 72px; display: flex; align-items: center; gap: clamp(16px,2.1vw,34px); white-space: nowrap; }
.footer-mini-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff8e8; }
.footer-mini-brand > span { width: 32px; height: 32px; display: grid; place-items: center; color: #fff9e9; border: 1px solid rgba(255,255,255,.48); background: var(--cinnabar); font-family: var(--display); font-size: 12px; }
.footer-mini-brand strong { font-family: var(--serif); font-size: 13px; font-weight: 600; }
.footer-one-line-v3 nav, .footer-mini-stats, .footer-mini-legal { display: flex; align-items: center; gap: 15px; }
.footer-one-line-v3 nav a { color: rgba(255,248,232,.72); font-size: 12px; }
.footer-one-line-v3 nav a:hover { color: #f2c879; }
.footer-mini-stats { margin-left: auto; color: rgba(255,248,232,.62); font-size: 12px; }
.footer-mini-stats b { color: #f2c879; font-family: var(--serif); font-size: 13px; }
.footer-mini-legal { padding-left: 20px; color: rgba(255,248,232,.42); border-left: 1px solid rgba(255,255,255,.13); font-size: 12px; }

/* project archive */
.project-archive-v3 { overflow: clip; }
.project-hero-v3 { position: relative; min-height: 720px; display: flex; align-items: flex-end; overflow: hidden; color: #fff8e8; background: #143f3c; }
.project-hero-art { position: absolute; inset: 0; background: url('../assets/visual/yellow-river-map-v2.webp') center/cover no-repeat; transform: scale(1.025); animation: archiveHeroIn 1.2s var(--ease-spring) both; }
.project-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,42,40,.94) 0%, rgba(7,42,40,.66) 42%, rgba(7,42,40,.12) 77%), linear-gradient(0deg, rgba(8,37,35,.82), transparent 58%); }
.project-hero-content { position: relative; z-index: 2; padding-block: 74px 64px; }
.project-back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 50px; color: rgba(255,248,232,.7); font-size: 12px; }
.project-back-link:hover { color: #fff; transform: translateX(-4px); }
.project-hero-content h1 { max-width: 900px; margin: 9px 0 16px; font-family: var(--display); font-size: clamp(64px,7vw,112px); font-weight: 600; line-height: .95; letter-spacing: -.035em; }
.project-hero-content > p:not(.eyebrow) { max-width: 690px; margin: 0; color: rgba(255,248,232,.76); font-family: var(--serif); font-size: 18px; line-height: 1.9; }
.project-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.project-hero-meta span { min-width: 128px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.22); background: rgba(8,49,46,.48); backdrop-filter: blur(8px); font-size: 12px; }
.project-hero-meta b { margin-right: 7px; color: #f2c879; font-family: var(--serif); font-size: 23px; font-variant-numeric: tabular-nums; }
.project-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.project-hero-actions > button { display: inline-flex; align-items: center; gap: 7px; padding: 11px 14px; color: #fff8e8; border: 1px solid rgba(255,255,255,.3); background: rgba(12,48,46,.36); cursor: pointer; }
.project-anchor-nav { position: sticky; top: var(--header-h); z-index: 45; border-bottom: 1px solid var(--line); background: rgba(249,242,226,.94); backdrop-filter: blur(18px); }
.project-anchor-nav .content-wide { display: flex; overflow-x: auto; scrollbar-width: none; }
.project-anchor-nav button { min-height: 60px; padding: 0 24px; white-space: nowrap; color: var(--ink-soft); border: 0; border-bottom: 2px solid transparent; background: transparent; cursor: pointer; }
.project-anchor-nav button:hover, .project-anchor-nav button.active { color: var(--cinnabar); border-bottom-color: var(--cinnabar); }
.project-story-section { padding-block: 110px; }
.project-story-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(320px,.65fr); gap: 9vw; align-items: start; }
.project-narrative h2 { max-width: 800px; margin: 10px 0 40px; font-family: var(--display); font-size: clamp(48px,5vw,76px); line-height: 1.08; }
.project-narrative > p:not(.eyebrow) { max-width: 820px; color: #4f493f; font-family: var(--serif); font-size: 17px; line-height: 2.05; }
.project-identity { position: sticky; top: 164px; padding: 30px; color: #fff8e8; background: var(--mineral-dark); box-shadow: 0 28px 70px rgba(13,64,63,.22); }
.project-identity h3 { margin: 8px 0 22px; color: #f2c879; font-family: var(--serif); font-size: 36px; }
.project-identity dl { margin: 0; }
.project-identity dl div { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); }
.project-identity dt { color: rgba(255,248,232,.48); font-size: 12px; }
.project-identity dd { margin: 5px 0 0; font-size: 13px; line-height: 1.65; }
.project-identity a { display: inline-flex; align-items: center; gap: 7px; margin-top: 25px; color: #f2c879; font-size: 12px; }
.archive-record-section { background: rgba(228,211,177,.32); }
.archive-record-list { display: grid; gap: 12px; }
.archive-record { position: relative; display: grid; grid-template-columns: 82px 1fr auto; gap: 26px; align-items: center; min-height: 160px; padding: 28px 30px; border: 1px solid var(--line); background: rgba(255,250,240,.78); transition: transform .28s var(--ease-spring), box-shadow .28s var(--ease-spring), border-color .28s var(--ease); }
.archive-record:hover { z-index: 2; transform: translateX(8px); border-color: rgba(167,53,40,.48); box-shadow: var(--shadow-small); }
.archive-record-index { color: rgba(167,53,40,.32); font-family: var(--serif); font-size: 44px; }
.archive-record h3 { margin: 5px 0 13px; font-family: var(--serif); font-size: 24px; }
.archive-record dl { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 14px; margin: 0; }
.archive-record dl div { min-width: 0; }
.archive-record dt { color: var(--ink-soft); font-size: 12px; }
.archive-record dd { margin: 3px 0 0; font-size: 12px; line-height: 1.55; }
.record-status { align-self: start; padding: 6px 9px; color: #27684f; border: 1px solid rgba(39,104,79,.22); background: #e1f0e8; font-size: 12px; }
.archive-media-section { color: #fff8e8; background: #0d403f; }
.archive-media-section .section-heading p { color: rgba(255,248,232,.64); }
.archive-media-tabs { display: flex; gap: 2px; margin-bottom: 14px; }
.archive-media-tabs button { min-width: 150px; padding: 14px 20px; color: rgba(255,248,232,.62); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); cursor: pointer; }
.archive-media-tabs button.active { color: #163b38; background: #f3ead7; }
.archive-media-tabs b { margin-left: 8px; font-variant-numeric: tabular-nums; }
.archive-media-panel { display: none; animation: panelReveal .42s var(--ease-spring) both; }
.archive-media-panel.active { display: block; }
.archive-video-stage { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.6fr); min-height: 580px; }
.archive-video-art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; overflow: hidden; background: linear-gradient(0deg,rgba(7,38,36,.93),rgba(7,38,36,.08) 68%), url('../assets/visual/yellow-river-map-v2.webp') center/cover; }
.archive-video-art::after { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(255,255,255,.22); pointer-events: none; }
.archive-video-art > span, .archive-video-art h3, .video-play { position: relative; z-index: 2; }
.archive-video-art > span { color: #f2c879; font-size: 12px; letter-spacing: .16em; }
.archive-video-art h3 { margin: 8px 0 22px; font-family: var(--display); font-size: 64px; }
.video-play { width: fit-content; display: flex; align-items: center; gap: 14px; }
.video-play:hover { color: #f2c879; transform: translateX(5px); }
.archive-playlist { padding: 26px; background: #0a3432; }
.archive-playlist a { display: grid; grid-template-columns: 32px 1fr auto; gap: 13px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.archive-playlist a:hover { color: #f2c879; transform: translateX(4px); }
.archive-playlist small { display: block; color: rgba(255,248,232,.5); }
.archive-media-empty { min-height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; border: 1px solid rgba(255,255,255,.16); background: radial-gradient(circle at 50% 40%,rgba(242,200,121,.12),transparent 28rem); }
.archive-media-empty h3 { margin: 22px 0 9px; font-family: var(--display); font-size: 46px; }
.archive-media-empty p { max-width: 540px; color: rgba(255,248,232,.62); }
.archive-media-empty .btn { margin-top: 20px; }
.empty-wave { color: #f2c879; animation: iconFloat 3.4s ease-in-out infinite; }
.archive-people-section { padding-block: 110px; }
.inheritor-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.inheritor-card { position: relative; min-height: 330px; padding: 26px; overflow: hidden; border: 1px solid var(--line); background: rgba(251,246,233,.7); }
.inheritor-card > span { position: absolute; right: 18px; top: 11px; color: rgba(167,53,40,.22); font-family: var(--serif); font-size: 48px; }
.inheritor-avatar { width: 92px; height: 112px; display: grid; place-items: center; margin-top: 48px; color: #f3ead7; background: var(--mineral); border-radius: 48% 48% 42% 42%; box-shadow: 14px 14px 0 rgba(177,122,45,.13); font-family: var(--display); font-size: 38px; }
.inheritor-card h3 { margin: 27px 0 5px; font-family: var(--serif); font-size: 25px; }
.inheritor-card p { margin: 0; color: var(--ink-soft); }
.inheritor-card small { display: block; margin-top: 22px; color: var(--cinnabar); }
.project-relation-ribbon { padding: 68px 0; color: #fff8e8; background: var(--cinnabar-dark); }
.project-relation-ribbon .content-wide { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(520px,1.4fr) auto; align-items: center; gap: 42px; }
.project-relation-ribbon h2 { margin: 7px 0 0; font-family: var(--display); font-size: 38px; line-height: 1.15; }
.relation-path-preview { display: flex; align-items: center; gap: 10px; }
.relation-path-preview span { padding: 12px 14px; white-space: nowrap; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08); font-size: 12px; }
.archive-source-section { padding-block: 100px; }
.project-source-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(300px,.55fr); gap: 7vw; }
.project-source-grid h2 { margin: 8px 0 15px; font-family: var(--display); font-size: 54px; }
.source-ledger-item { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.source-ledger-item > span { color: var(--cinnabar); }
.source-ledger-item b, .source-ledger-item small { display: block; }
.source-ledger-item small { margin-top: 4px; color: var(--ink-soft); }
.project-source-grid aside { padding: 28px; border: 1px solid var(--line); background: rgba(255,255,255,.38); }
.archive-completeness { display: grid; gap: 9px; margin-top: 20px; }
.archive-completeness span { display: flex; align-items: center; gap: 9px; padding: 10px; color: #8a7666; border: 1px solid var(--line); }
.archive-completeness span.ready { color: #246149; background: #e7f0e9; }

/* knowledge graph */
.graph-hero-v3, .map-hero-v3 { padding: 72px 0 50px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 30%,rgba(21,92,88,.12),transparent 25rem), var(--paper-light); }
.graph-hero-v3 .content-fluid, .map-hero-v3 .content-fluid { display: grid; grid-template-columns: 1fr minmax(340px,.5fr); align-items: end; gap: 50px; }
.graph-hero-v3 h1, .map-hero-v3 h1 { margin: 8px 0 0; font-family: var(--display); font-size: clamp(58px,6vw,94px); line-height: .98; letter-spacing: -.035em; }
.graph-hero-v3 .content-fluid > p, .map-hero-v3 .content-fluid > p { max-width: 500px; margin: 0 0 10px; color: var(--ink-soft); font-family: var(--serif); font-size: 17px; }
.graph-page-v3, .map-page-v3 { padding: 22px 0 96px; }
.graph-toolbar-v3 { display: grid; grid-template-columns: minmax(230px,1fr) auto auto; gap: 16px; align-items: center; min-height: 66px; padding: 10px 12px; border: 1px solid var(--line-strong); background: rgba(251,246,233,.88); }
.graph-breadcrumb-v3 { display: flex; align-items: center; gap: 9px; padding-left: 6px; font-size: 12px; }
.graph-breadcrumb-v3 button { color: var(--cinnabar); border: 0; background: transparent; cursor: pointer; }
.graph-breadcrumb-v3 span { color: var(--ink-soft); }
.graph-filters-v3 { display: flex; border: 1px solid var(--line); }
.graph-filters-v3 button { padding: 9px 12px; color: var(--ink-soft); border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 12px; }
.graph-filters-v3 button:last-child { border-right: 0; }
.graph-filters-v3 button.active { color: #fff; background: var(--mineral); }
.graph-project-picker-v3 { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 12px; }
.graph-project-picker-v3 select { min-width: 180px; padding: 9px; border: 1px solid var(--line); background: #fffaf0; }
.graph-canvas-v3 { position: relative; min-height: 760px; overflow: hidden; border: 1px solid var(--line-strong); border-top: 0; background: radial-gradient(circle at 52% 44%,#fffaf0 0%,#f1e5cd 72%); box-shadow: 0 24px 60px rgba(71,50,26,.08); }
.graph-stage-v3 { height: min(77vh,820px); min-height: 720px; overflow: hidden; touch-action: none; cursor: grab; }
.graph-stage-v3:active { cursor: grabbing; }
.graph-stage-v3 svg { width: 100%; height: 100%; max-width: none; }
.graph-overview-svg-v3 { min-height: 720px; }
.graph-project-node-v3 { cursor: pointer; }
.graph-project-node-v3 rect { transition: transform .24s var(--ease-spring),stroke-width .24s var(--ease),filter .24s var(--ease); transform-box: fill-box; transform-origin: center; }
.graph-project-node-v3:hover rect, .graph-project-node-v3:focus rect { transform: translateX(8px); stroke-width: 2.4; filter: url(#softNodeShadow); }
.graph-river-v3 { stroke-dasharray: 28 16; animation: riverDrift 9s linear infinite; }
.graph-river-spark-v3 { stroke-dashoffset: 0; animation: riverDash 5.5s linear infinite; }
.graph-column-labels text { fill: #74695d; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.graph-lane-bg { fill: rgba(255,250,240,.58); stroke: rgba(92,69,40,.12); }
.graph-lane-number { fill: rgba(167,53,40,.24); font-family: var(--serif); font-size: 22px; }
.graph-record-edge, .graph-flow-edge { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 7 7; marker-end: url(#graphArrow); animation: graphFlow 4.2s linear infinite; transition: opacity .25s var(--ease),stroke-width .25s var(--ease); }
.graph-record-edge { color: #b17a2d; stroke: currentColor; }
.graph-flow-edge.rel-location { color: #a73528; stroke: currentColor; }
.graph-flow-edge.rel-unit { color: #155c58; stroke: currentColor; }
.graph-flow-edge.rel-person { color: #b17a2d; stroke: currentColor; }
.graph-record-node, .graph-chain-node { cursor: pointer; }
.graph-record-node rect { fill: #fffaf0; stroke: #b17a2d; stroke-width: 1.6; }
.graph-record-node text { fill: #201c17; }
.graph-chain-node rect { fill: #fffaf0; stroke-width: 1.5; transition: filter .22s var(--ease),transform .22s var(--ease-spring),stroke-width .22s var(--ease); transform-box: fill-box; transform-origin: center; }
.graph-chain-node circle { fill: currentColor; }
.graph-chain-node text { fill: #201c17; }
.graph-chain-node.rel-location { color: #a73528; }
.graph-chain-node.rel-location rect { stroke: #a73528; }
.graph-chain-node.rel-unit { color: #155c58; }
.graph-chain-node.rel-unit rect { stroke: #155c58; }
.graph-chain-node.rel-person { color: #b17a2d; }
.graph-chain-node.rel-person rect { stroke: #b17a2d; }
.graph-chain-node:hover rect, .graph-chain-node:focus rect, .graph-chain-node.selected rect, .graph-record-node:hover rect, .graph-record-node.selected rect { stroke-width: 3; filter: drop-shadow(0 9px 9px rgba(61,43,24,.18)); transform: translateY(-3px); }
.graph-flow-edge.selected, .graph-record-edge.selected { stroke-width: 5; stroke-dasharray: none; }
.graph-project-core-v3 circle:first-child { fill: rgba(13,64,63,.14); animation: coreBreath 3.2s ease-in-out infinite; }
.graph-project-core-v3 circle:nth-child(2) { fill: #0d403f; stroke: #d9aa58; stroke-width: 2; }
.graph-project-core-v3 text { fill: #fff8e8; }
.graph-stage-back-v3 { position: absolute; left: 18px; top: 18px; z-index: 5; display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; border: 1px solid var(--line-strong); background: rgba(255,250,240,.94); box-shadow: var(--shadow-small); cursor: pointer; }
.graph-controls-v3 { position: absolute; left: 18px; bottom: 18px; z-index: 6; display: flex; border: 1px solid var(--line-strong); background: rgba(255,250,240,.94); box-shadow: var(--shadow-small); }
.graph-controls-v3 button { min-width: 45px; height: 44px; padding: 0 11px; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; }
.graph-controls-v3 button:last-child { border-right: 0; }
.graph-controls-v3 button:hover { color: #fff; background: var(--cinnabar); }
.graph-inspector-v3 { position: absolute; right: 18px; top: 18px; z-index: 7; width: min(350px,calc(100% - 36px)); padding: 26px; border: 1px solid rgba(255,255,255,.34); color: #fff8e8; background: rgba(13,64,63,.94); box-shadow: 0 24px 60px rgba(13,64,63,.26); backdrop-filter: blur(15px); opacity: 0; visibility: hidden; transform: translateX(28px); transition: opacity .3s var(--ease),transform .3s var(--ease-spring),visibility .3s; }
.graph-inspector-v3.open { opacity: 1; visibility: visible; transform: none; }
.graph-inspector-v3 h2 { margin: 8px 0 11px; font-family: var(--serif); font-size: 24px; }
.graph-inspector-v3 > p:not(.eyebrow) { color: rgba(255,248,232,.68); font-size: 12px; }
.graph-inspector-close { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; color: #fff; border: 1px solid rgba(255,255,255,.22); background: transparent; cursor: pointer; }
.graph-inspector-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.graph-inspector-meta span { padding: 5px 8px; color: #173b38; background: #f3ead7; font-size: 12px; }
.graph-inspector-v3 .btn { margin-top: 8px; }
.graph-story-v3 { display: grid; grid-template-columns: 1fr 80px 1fr 80px 1fr; align-items: center; padding: 22px 28px; color: #fff8e8; background: var(--mineral-dark); }
.graph-story-v3 div { display: grid; grid-template-columns: 36px 1fr; align-items: center; column-gap: 12px; }
.graph-story-v3 span { grid-row: 1 / 3; color: #f2c879; font-family: var(--serif); font-size: 26px; }
.graph-story-v3 b, .graph-story-v3 small { display: block; }
.graph-story-v3 small { color: rgba(255,248,232,.5); }
.graph-story-v3 i { height: 1px; background: linear-gradient(90deg,#f2c879,transparent); }
.graph-stage-v3.hide-record .rel-record, .graph-stage-v3.hide-location .rel-location, .graph-stage-v3.hide-unit .rel-unit, .graph-stage-v3.hide-person .rel-person { opacity: .08; pointer-events: none; }

/* one-screen constellation graph */
.graph-hero-v3, .map-hero-v3 { min-height: 104px; display: flex; align-items: center; padding: 16px 0; }
.graph-hero-v3 .content-fluid, .map-hero-v3 .content-fluid { grid-template-columns: 1fr minmax(320px,.55fr); align-items: center; }
.graph-hero-v3 h1, .map-hero-v3 h1 { margin-top: 3px; font-size: clamp(34px,3vw,44px); line-height: 1.08; letter-spacing: -.02em; }
.graph-hero-v3 .content-fluid > p, .map-hero-v3 .content-fluid > p { margin: 0; font-size: 14px; line-height: 1.7; }
.graph-page-v3, .map-page-v3 { padding: 12px 0 14px; }
.graph-toolbar-v3 { min-height: 56px; padding-block: 7px; }
.graph-canvas-v3 { height: calc(100vh - 287px); min-height: 460px; background: #071d27; box-shadow: 0 18px 50px rgba(7,29,39,.2); }
.graph-stage-v3 { height: 100%; min-height: 0; }
.graph-overview-svg-v3 { min-height: 0; }
.graph-river-nebula-v3, .graph-focus-river-v3 { fill: none; stroke: rgba(42,163,174,.16); stroke-width: 72; stroke-linecap: round; filter: blur(5px); }
.graph-main-edge-v3 { fill: none; stroke-width: 2.2; stroke-dasharray: 8 11; opacity: .72; animation: graphFlow 4s linear infinite; }
.graph-orbit-edge-v3 { fill: none; stroke: rgba(167,221,215,.23); stroke-width: 1.2; }
.graph-flow-particle-v3, .graph-edge-particle { filter: drop-shadow(0 0 6px currentColor); }
.graph-province-orbit-v3, .graph-central-ring-v3 { fill: none; stroke-width: 1.5; stroke-dasharray: 8 9; opacity: .7; transform-box: fill-box; transform-origin: center; animation: graphOrbit 14s linear infinite; }
.graph-project-halo-v3 { opacity: .14; transform-box: fill-box; transform-origin: center; transition: opacity .2s var(--ease),transform .2s var(--ease-spring); }
.graph-project-node-v3:hover .graph-project-halo-v3, .graph-project-node-v3:focus .graph-project-halo-v3 { opacity: .58; transform: scale(1.45); }
.graph-project-node-v3 text { paint-order: stroke; stroke: rgba(5,24,33,.92); stroke-width: 3px; stroke-linejoin: round; }
.graph-central-core-v3 { animation: coreBreath 4s ease-in-out infinite; }
.graph-record-edge, .graph-flow-edge { stroke-width: 2; stroke-dasharray: 6 8; marker-end: none; opacity: .76; }
.graph-record-edge { stroke: #f4c86b; }
.graph-flow-edge.rel-location { stroke: #ff7b5c; }
.graph-flow-edge.rel-unit { stroke: #48d6c5; }
.graph-flow-edge.rel-person { stroke: #a58cff; }
.graph-record-orb-v3 > circle:nth-child(2) { fill: #173f48; stroke: #f4c86b; stroke-width: 3; }
.graph-location-orb-v3 > circle:nth-child(2) { fill: #3a2932; stroke: #ff7b5c; stroke-width: 3; }
.graph-person-orb-v3 > circle:nth-child(2) { fill: #262a48; stroke: #a58cff; stroke-width: 2; }
.graph-record-orb-v3 text, .graph-location-orb-v3 text, .graph-person-orb-v3 text { fill: #fff7df; }
.graph-orb-halo-v3 { fill: none; stroke: currentColor; stroke-width: 2; opacity: .22; }
.graph-record-orb-v3 { color: #f4c86b; }
.graph-location-orb-v3 { color: #ff7b5c; }
.graph-person-orb-v3 { color: #a58cff; }
.graph-chain-node:hover .graph-orb-halo-v3, .graph-chain-node:focus .graph-orb-halo-v3, .graph-chain-node.selected .graph-orb-halo-v3 { opacity: .9; stroke-width: 5; }
.graph-unit-orb-v3 rect { fill: #103f40; stroke: #48d6c5; stroke-width: 2; }
.graph-unit-orb-v3 circle { fill: #48d6c5; }
.graph-unit-orb-v3 text { fill: #fff7df; }
.graph-project-orb-v3 > circle:nth-child(2) { fill: #9d4938; stroke: #f4c86b; stroke-width: 3; filter: drop-shadow(0 0 16px rgba(244,200,107,.34)); }
.graph-project-orb-v3 text { fill: #fff7df; }
.graph-lane-caption-v3 { fill: rgba(255,247,223,.46); font-size: 12px; letter-spacing: .08em; }
.graph-focus-legend-v3 text { fill: rgba(255,247,223,.62); font-size: 12px; }
.graph-focus-legend-v3 circle:nth-of-type(1) { fill: #f4c86b; }
.graph-focus-legend-v3 circle:nth-of-type(2) { fill: #ff7b5c; }
.graph-focus-legend-v3 circle:nth-of-type(3) { fill: #48d6c5; }
.graph-focus-legend-v3 circle:nth-of-type(4) { fill: #a58cff; }
.graph-stage-back-v3, .graph-controls-v3 { color: #fff7df; border-color: rgba(255,255,255,.18); background: rgba(6,31,40,.82); backdrop-filter: blur(12px); }
.graph-stage-back-v3 { min-width: 132px; height: 42px; justify-content: center; flex-wrap: nowrap; white-space: nowrap; line-height: 1; }
.graph-stage-back-v3 svg { width: 16px; min-width: 16px; height: 16px; }
.graph-story-v3 { position: absolute; left: 50%; bottom: 14px; z-index: 5; width: min(620px,calc(100% - 330px)); grid-template-columns: 1fr 42px 1fr 42px 1fr; padding: 10px 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(6,31,40,.78); backdrop-filter: blur(14px); transform: translateX(-50%); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.graph-story-v3 span { font-size: 18px; }
.graph-story-v3 b { font-size: 12px; }
.graph-story-v3 small { font-size: 12px; }
@keyframes graphOrbit { to { transform: rotate(360deg); } }

/* interactive map */
.map-page-v3 { padding-bottom: 14px; }
.map-explorer-shell-v3 { position: relative; }
.map-toolbar-v3 { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 12px; border: 1px solid var(--line-strong); background: rgba(251,246,233,.9); }
.map-mode-switch-v3, .map-zoom-v3 { display: flex; border: 1px solid var(--line); }
.map-mode-switch-v3 button, .map-zoom-v3 button { min-height: 40px; padding: 0 13px; color: var(--ink-soft); border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 12px; }
.map-mode-switch-v3 button:last-child, .map-zoom-v3 button:last-child { border-right: 0; }
.map-mode-switch-v3 button.active { color: #fff; background: var(--mineral); }
.map-province-strip-v3 { display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; }
.map-province-strip-v3 button { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--ink-soft); border: 1px solid transparent; background: rgba(255,255,255,.28); cursor: pointer; }
.map-province-strip-v3 button b { color: var(--cinnabar); font-family: var(--serif); font-size: 16px; }
.map-province-strip-v3 button:hover, .map-province-strip-v3 button.active { color: var(--cinnabar-dark); border-color: rgba(167,53,40,.4); background: #fffaf0; box-shadow: 0 8px 20px rgba(72,54,34,.07); }
.map-stage-v3 { position: relative; height: clamp(650px,46vw,780px); min-height: 0; overflow: hidden; touch-action: none; border: 1px solid var(--line-strong); border-top: 0; cursor: grab; }
.map-stage-v3:active { cursor: grabbing; }
.illustrated-map-v3 { background: #e9eadb; box-shadow: inset 0 0 100px rgba(58,41,22,.13); }
.illustrated-map-v3::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.32),inset 0 -70px 100px rgba(59,42,24,.08); }
.map-art-badge-v3, .map-online-badge { position: absolute; left: 20px; top: 20px; z-index: 5; padding: 8px 12px; color: #fff8e8; background: rgba(13,64,63,.9); box-shadow: var(--shadow-small); font-size: 12px; letter-spacing: .12em; }
.map-art-svg-v3 { position: relative; z-index: 2; width: 100%; height: 100%; max-width: none; }
.map-real-basemap-v3 { filter: drop-shadow(0 12px 18px rgba(51,56,44,.12)); }
.map-province-shape-v3 { cursor: pointer; opacity: .47; stroke: #fbf7e9; stroke-width: 2.2; vector-effect: non-scaling-stroke; transition: opacity .28s var(--ease),filter .28s var(--ease); }
.map-province-shape-v3:hover { opacity: .68; filter: saturate(1.1); }
.map-province-shape-v3.active { opacity: .88; stroke: #fff7dc; stroke-width: 4; animation: regionSelect .55s var(--ease-spring) both; }
.map-painted-atlas-v3 { opacity: .27; mix-blend-mode: multiply; pointer-events: none; filter: saturate(.86) contrast(.95); }
.map-road-line-v3 { fill: none; stroke: rgba(255,250,236,.92); stroke-width: 5; stroke-dasharray: 2 11; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map-river-route-v3 { stroke: rgba(33,134,153,.68); stroke-width: 19; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 4px 4px rgba(25,91,101,.2)); }
.map-river-route-spark-v3 { stroke: #fff2bd; stroke-width: 2.4; stroke-dasharray: 9 16; animation: riverDash 4.2s linear infinite; }
.map-hand-scene-v3 { color: #603a27; opacity: .84; transform-box: fill-box; transform-origin: center bottom; transition: opacity .25s var(--ease),filter .25s var(--ease); }
.map-hand-scene-v3.active { opacity: 1; filter: drop-shadow(0 9px 6px rgba(56,44,25,.25)); }
.scene-ground { fill: none; stroke: #5f815b; stroke-width: 5; stroke-linecap: round; }
.scene-roof { fill: #c95839; stroke: #6f3429; stroke-width: 3; stroke-linejoin: round; }
.scene-frame { fill: none; stroke: #68442d; stroke-width: 4; stroke-linecap: round; }
.scene-drum { fill: #f5c65f; stroke: #6d3c2d; stroke-width: 3; }
.scene-drum-line { fill: none; stroke: #9c4935; stroke-width: 2; }
.scene-person { fill: none; stroke: #174d4b; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.scene-note { fill: #20736e; stroke: #fff2c7; stroke-width: 1.5; }
.map-hotspot-v3 { cursor: pointer; opacity: 0; animation: mapMarkerIn .6s var(--ease-spring) forwards; animation-delay: var(--marker-delay); }
.map-marker-pin { filter: drop-shadow(0 10px 10px rgba(42,30,17,.24)); transform-box: fill-box; transform-origin: center bottom; transition: transform .28s var(--ease-spring),filter .28s var(--ease); }
.map-hotspot-v3:hover .map-marker-pin, .map-hotspot-v3:focus .map-marker-pin, .map-hotspot-v3.active .map-marker-pin { transform: translateY(-8px) scale(1.12); filter: drop-shadow(0 18px 14px rgba(42,30,17,.32)); }
.map-marker-halo { opacity: .4; transform-box: fill-box; transform-origin: center; animation: hotspotPulse 2.8s ease-out infinite; }
.map-hotspot-v3.active .map-marker-halo { stroke-width: 4; opacity: .8; }
.map-marker-label rect { fill: rgba(255,248,232,.94); stroke: rgba(73,52,29,.24); }
.map-marker-label text { fill: #3e3429; }
.map-hotspot-v3.active .map-marker-label rect { fill: #0d403f; stroke: #f2c879; }
.map-hotspot-v3.active .map-marker-label text { fill: #fff8e8; }
.map-marker-check { fill: #a73528; stroke: #fff4df; stroke-width: 2; }
.map-compass-v3 circle { fill: rgba(255,248,232,.92); stroke: #a73528; }
.map-compass-v3 path { fill: #a73528; }
.map-compass-v3 text { fill: #5f574d; font-size: 12px; }
.tdt-map-v3 { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.online-map-stage-v3 { background: #e9eadb; }
.map-online-handlayer-v3 { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .23; background: url('../assets/visual/yellow-river-map-v2.webp') center/cover no-repeat; mix-blend-mode: multiply; filter: saturate(.85); }
.map-online-overlay-v3 { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.map-online-scene-v3 { position: absolute; width: 118px; height: 118px; padding: 0; pointer-events: auto; color: #183f3d; border: 0; background: transparent; cursor: pointer; transform: translate(-50%,-63%); opacity: 0; animation: mapMarkerIn .55s var(--ease-spring) forwards; animation-delay: var(--marker-delay); filter: drop-shadow(0 10px 8px rgba(38,47,39,.2)); }
.map-online-scene-v3 svg { width: 100%; height: 88px; overflow: visible; transition: transform .25s var(--ease-spring); }
.map-online-scene-v3 > span { position: absolute; left: 50%; bottom: 0; display: flex; align-items: center; gap: 7px; padding: 6px 10px; white-space: nowrap; border: 1px solid rgba(50,63,50,.22); background: rgba(255,249,231,.94); transform: translateX(-50%); box-shadow: 0 8px 18px rgba(45,50,38,.14); font-family: var(--display); font-size: 15px; }
.map-online-scene-v3 b { color: var(--cinnabar); font-family: var(--serif); }
.map-online-scene-v3:hover svg, .map-online-scene-v3.active svg { transform: translateY(-7px) scale(1.06); }
.map-online-scene-v3.active > span { color: #fff8e8; border-color: #f1c76c; background: #0d403f; }
.map-source-credit-v3 { position: absolute; right: 12px; bottom: 10px; z-index: 6; padding: 5px 8px; color: rgba(24,37,34,.72); background: rgba(255,252,241,.82); backdrop-filter: blur(8px); font-size: 12px; }
.map-detail-dock-v3 { display: grid; grid-template-columns: 300px minmax(0,1fr) 180px; height: 310px; min-height: 310px; overflow: hidden; color: #fff8e8; background: #0d403f; }
.map-dock-summary { padding: 28px; border-right: 1px solid rgba(255,255,255,.13); }
.map-dock-summary > div { display: flex; align-items: baseline; gap: 8px; }
.map-dock-summary h2 { margin: 3px 16px 5px 0; font-family: var(--display); font-size: 44px; }
.map-dock-summary strong { color: #f2c879; font-family: var(--serif); font-size: 34px; }
.map-dock-summary > p:not(.eyebrow) { color: rgba(255,248,232,.56); font-size: 12px; }
.map-dock-summary button { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 9px 11px; color: #fff8e8; border: 1px solid rgba(255,255,255,.22); background: transparent; cursor: pointer; }
.map-project-rail { display: flex; align-items: stretch; gap: 10px; min-width: 0; min-height: 0; padding: 24px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.map-project-ticket { position: relative; min-width: 240px; height: 262px; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; overflow: hidden; color: #201c17; background: #f5ead1; }
.map-project-ticket::after { content: ""; position: absolute; right: -38px; top: -38px; width: 100px; height: 100px; border: 1px solid rgba(167,53,40,.18); border-radius: 50%; box-shadow: 0 0 0 18px rgba(177,122,45,.06); }
.map-project-ticket:hover { transform: translateY(-5px); background: #fff6df; }
.map-project-ticket > span { color: rgba(167,53,40,.35); font-family: var(--serif); font-size: 32px; }
.map-project-ticket p { margin: 0; color: var(--cinnabar); font-size: 12px; }
.map-project-ticket h3 { margin: 5px 0; font-family: var(--serif); font-size: 23px; line-height: 1.25; }
.map-project-ticket h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.map-project-ticket small { color: var(--ink-soft); }
.map-project-ticket em { color: var(--cinnabar-dark); font-size: 12px; font-style: normal; }
.map-project-ticket em svg { display: inline; vertical-align: -2px; }
.map-dock-actions { display: flex; flex-direction: column; justify-content: center; padding: 24px; border-left: 1px solid rgba(255,255,255,.13); }
.map-dock-actions a { padding: 14px 0; color: #f2c879; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 12px; }

/* one-screen map explorer with in-canvas archive drawer */
.map-toolbar-v3 { min-height: 56px; padding-block: 7px; }
.map-stage-v3 { height: calc(100vh - 289px); min-height: 458px; }
.map-detail-dock-v3 { position: absolute; right: 16px; top: 72px; bottom: 16px; z-index: 9; width: min(390px,31vw); height: auto; min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; border: 1px solid rgba(255,255,255,.2); background: rgba(8,52,51,.94); backdrop-filter: blur(18px) saturate(1.08); box-shadow: 0 24px 70px rgba(9,46,45,.34); }
.map-dock-summary { padding: 18px 20px 13px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.map-dock-summary h2 { margin: 2px 10px 2px 0; font-size: 32px; }
.map-dock-summary strong { font-size: 27px; }
.map-dock-summary > p:not(.eyebrow) { margin: 3px 0 0; }
.map-dock-summary button { margin-top: 8px; padding: 6px 9px; font-size: 12px; }
.map-project-rail { min-height: 0; flex-direction: column; align-items: stretch; gap: 7px; padding: 10px; overflow-x: hidden; overflow-y: auto; }
.map-project-ticket { min-width: 0; min-height: 76px; height: auto; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 10px 12px; }
.map-project-ticket > span { font-size: 21px; }
.map-project-ticket h3 { margin: 1px 0; font-size: 16px; line-height: 1.2; -webkit-line-clamp: 1; }
.map-project-ticket p, .map-project-ticket small, .map-project-ticket em { font-size: 12px; }
.map-project-ticket em { align-self: center; white-space: nowrap; }
.map-project-ticket:hover { transform: translateX(-4px); }
.map-dock-actions { flex-direction: row; justify-content: space-between; padding: 0 16px; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
.map-dock-actions a { padding: 11px 0; border-bottom: 0; }
.map-art-badge-v3, .map-online-badge { max-width: calc(100% - 440px); }
.map-source-credit-v3 { right: 424px; }

/* admin modules */
.admin-content-v3 { width: min(1540px,calc(100vw - 278px)); padding-bottom: 80px; }
.admin-app-v3 .admin-title-row h1 { letter-spacing: -.03em; }
.admin-footer-v3 { display: flex; justify-content: space-between; gap: 20px; padding: 18px 30px; color: #74817d; border-top: 1px solid #d6dcd5; background: rgba(255,255,255,.7); font-size: 12px; }
.admin-coverage-card, .admin-activity-card { min-height: 290px; }
.admin-province-bars { display: grid; gap: 12px; }
.admin-province-bars button { display: grid; grid-template-columns: 46px 1fr 28px; align-items: center; gap: 10px; padding: 6px 0; color: #263733; border: 0; background: transparent; cursor: pointer; }
.admin-province-bars button > div { height: 6px; overflow: hidden; background: #e5eae5; }
.admin-province-bars i { display: block; height: 100%; background: #c98a33; }
.admin-activity-card ol { margin: 0; padding: 0; list-style: none; }
.admin-activity-card li { display: grid; grid-template-columns: 26px 1fr auto; gap: 9px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e5e9e5; }
.admin-activity-card li > span { width: 23px; height: 23px; display: grid; place-items: center; color: #27684f; background: #e1f0e8; border-radius: 50%; }
.admin-activity-card b, .admin-activity-card small { display: block; }
.admin-activity-card small, .admin-activity-card time { color: #7e8985; font-size: 12px; }
.admin-module-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }
.admin-module-summary div { min-height: 96px; display: flex; flex-direction: column; justify-content: center; padding: 17px; border: 1px solid #d6ddd7; background: #fff; }
.admin-module-summary strong { color: #155c58; font-family: var(--serif); font-size: 30px; }
.admin-module-summary span { color: #72807c; font-size: 12px; }
.admin-status.pending { color: #8b5b18; background: #f6ead1; }
.admin-people-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.admin-person-card { position: relative; min-height: 270px; padding: 20px; border: 1px solid #d6ddd7; background: #fff; }
.admin-person-card > div { width: 58px; height: 66px; display: grid; place-items: center; color: #fff; background: #155c58; border-radius: 45% 45% 38% 38%; font-family: var(--display); font-size: 24px; }
.admin-person-card > .admin-status { position: absolute; right: 15px; top: 15px; }
.admin-person-card h3 { margin: 20px 0 4px; font-family: var(--serif); font-size: 22px; }
.admin-person-card p, .admin-person-card small { display: block; color: #74817d; }
.admin-person-card button { position: absolute; left: 20px; right: 20px; bottom: 18px; padding: 9px; color: #155c58; border: 1px solid #ccd6d0; background: #fff; cursor: pointer; }
.admin-media-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; padding: 14px 18px; border: 1px solid #d6ddd7; background: #fff; }
.admin-media-toolbar span { padding: 6px 9px; color: #53625e; background: #eef3ee; font-size: 12px; }
.admin-media-toolbar button { margin-left: auto; padding: 8px 11px; border: 1px solid #c9d4cd; background: #fff; cursor: pointer; }
.admin-asset-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.admin-asset-card { min-width: 0; border: 1px solid #d6ddd7; background: #fff; }
.admin-asset-preview { min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; color: #fff; background-position: center; background-size: cover; }
.video-asset .admin-asset-preview { align-items: center; justify-content: center; gap: 10px; background: #155c58; }
.admin-asset-card > div:last-child { padding: 17px; }
.admin-asset-card h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 19px; }
.admin-asset-card p, .admin-asset-card small { display: block; color: #74817d; font-size: 12px; overflow-wrap: anywhere; }
.admin-asset-card button { width: 100%; margin-top: 16px; padding: 8px; color: #155c58; border: 1px solid #ccd6d0; background: #fff; cursor: pointer; }
.admin-relation-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }
.admin-relation-summary article { min-height: 130px; padding: 20px; border: 1px solid #d6ddd7; background: #fff; }
.admin-relation-summary article.pending { color: #87601f; background: #faf3e4; }
.admin-relation-summary span, .admin-relation-summary small { display: block; color: #74817d; }
.admin-relation-summary strong { display: block; margin: 10px 0; color: #155c58; font-family: var(--serif); font-size: 34px; }
.relation-type-badge { display: inline-block; padding: 4px 6px; color: #fff; background: #155c58; font-size: 12px; }
.relation-type-badge.located_in { background: #a73528; }
.relation-type-badge.has_inheritor { background: #b17a2d; }
.admin-map-cards { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin-bottom: 14px; }
.admin-map-cards article { min-height: 180px; padding: 20px; border: 1px solid #d6ddd7; background: #fff; }
.admin-map-cards span, .admin-map-cards small { display: block; color: #74817d; }
.admin-map-cards strong { display: block; margin: 9px 0; color: #155c58; font-family: var(--serif); font-size: 36px; }
.admin-map-cards article > div { height: 6px; margin: 18px 0; background: #e6eae6; }
.admin-map-cards i { display: block; height: 100%; background: #b17a2d; }
.admin-map-cards button { width: 100%; padding: 8px; border: 1px solid #ccd6d0; background: #fff; cursor: pointer; }
.admin-news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.admin-news-grid article { position: relative; min-height: 360px; padding: 24px; border: 1px solid #d6ddd7; background: #fff; }
.admin-news-grid article > span:first-child { color: rgba(167,53,40,.2); font-family: var(--serif); font-size: 50px; }
.admin-news-grid time { display: block; margin-top: 26px; color: #a73528; font-size: 12px; }
.admin-news-grid h2 { margin: 9px 0; font-family: var(--serif); font-size: 24px; line-height: 1.45; }
.admin-news-grid p { color: #74817d; font-size: 12px; }
.admin-news-grid article > div { display: flex; justify-content: space-between; align-items: center; margin-top: 25px; }
.admin-news-grid article > button { position: absolute; left: 24px; right: 24px; bottom: 20px; padding: 9px; border: 1px solid #ccd6d0; background: #fff; cursor: pointer; }
.admin-review-board { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; align-items: start; }
.admin-review-board > div { padding: 14px; border: 1px solid #d6ddd7; background: #e9eee9; }
.admin-review-board header { display: flex; justify-content: space-between; align-items: center; padding: 5px 4px 14px; }
.admin-review-board header h2 { margin: 0; font-family: var(--serif); font-size: 19px; }
.admin-review-board article { margin-bottom: 9px; padding: 17px; border: 1px solid #d9dfda; background: #fff; }
.admin-review-board article.done { opacity: .58; }
.admin-review-board article > div { display: flex; justify-content: space-between; }
.admin-review-board article > div span { padding: 3px 7px; color: #fff; background: #a73528; font-size: 12px; }
.admin-review-board .risk-中 { background: #b17a2d; }
.admin-review-board .risk-低 { background: #3d8368; }
.admin-review-board h3 { margin: 14px 0 5px; font-size: 15px; }
.admin-review-board p { color: #74817d; font-size: 12px; }
.admin-review-board button { width: 100%; display: flex; justify-content: center; gap: 7px; padding: 8px; border: 1px solid #ccd6d0; background: #fff; cursor: pointer; }
.admin-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-setting-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 0; border-bottom: 1px solid #e4e8e4; }
.admin-setting-row b, .admin-setting-row small { display: block; }
.admin-setting-row small { margin-top: 3px; color: #87918e; }
.admin-setting-row input { width: 240px; padding: 9px; border: 1px solid #ccd6d0; background: #f7f9f6; }
.admin-switch { width: 42px; height: 24px; padding: 2px; border: 0; border-radius: 12px; background: #cbd3ce; cursor: pointer; }
.admin-switch i { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: transform .22s var(--ease-spring); }
.admin-switch.on { background: #155c58; }
.admin-switch.on i { transform: translateX(18px); }

@keyframes archiveHeroIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1.025); } }
@keyframes panelReveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes iconFloat { 50% { transform: translateY(-9px); } }
@keyframes graphFlow { to { stroke-dashoffset: -56; } }
@keyframes coreBreath { 50% { opacity: .35; transform: scale(1.08); } }
@keyframes regionSelect { from { opacity: 0; transform: scale(.7); } to { opacity: .11; transform: none; } }

@media (max-width: 1200px) {
  .content-fluid { width: min(100% - 28px,1500px); }
  .graph-toolbar-v3 { grid-template-columns: 1fr auto; }
  .graph-filters-v3 { grid-column: 1 / -1; grid-row: 2; width: fit-content; }
  .project-story-grid { gap: 5vw; }
  .project-relation-ribbon .content-wide { grid-template-columns: 1fr; }
  .relation-path-preview { flex-wrap: wrap; }
  .map-toolbar-v3 { grid-template-columns: 1fr auto; }
  .map-province-strip-v3 { grid-column: 1 / -1; grid-row: 2; }
  .map-detail-dock-v3 { grid-template-columns: 260px minmax(0,1fr); }
  .map-detail-dock-v3 { height: auto; min-height: 280px; overflow: visible; }
  .map-dock-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; border-left: 0; border-top: 1px solid rgba(255,255,255,.13); }
  .map-dock-actions a { margin-right: 30px; }
  .admin-people-grid, .admin-asset-grid { grid-template-columns: repeat(3,1fr); }
  .admin-content-v3 { width: calc(100vw - 110px); }
}

@media (max-width: 780px) {
  :root { --content: calc(100vw - 32px); }
  body { font-size: 14px; }
  .content-wide, .content-fluid { width: calc(100vw - 28px); }
  .back-to-top { right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
  .footer-stat-band { grid-template-columns: 1fr 1fr; }
  .footer-stat-band div { min-height: 94px; padding: 16px; border-bottom: 1px solid rgba(255,255,255,.13); }
  .footer-stat-band div:nth-child(2n) { border-right: 0; }
  .footer-stat-band div:last-child { grid-column: 1 / -1; }
  .museum-footer-v3 .footer-grid { padding-block: 44px 30px; }
  .footer-compliance, .museum-footer-v3 .footer-bottom { align-items: flex-start; flex-direction: column; }
  .project-hero-v3 { min-height: 680px; }
  .project-hero-art { background-position: 42% center; }
  .project-hero-shade { background: linear-gradient(0deg,rgba(7,42,40,.95) 0%,rgba(7,42,40,.62) 62%,rgba(7,42,40,.08)); }
  .project-hero-content { padding-block: 38px 42px; }
  .project-back-link { margin-bottom: 150px; }
  .project-hero-content h1 { font-size: 58px; }
  .project-hero-content > p:not(.eyebrow) { font-size: 14px; line-height: 1.75; }
  .project-hero-meta span { min-width: calc(50% - 4px); }
  .project-anchor-nav { top: 60px; }
  .project-anchor-nav button { min-height: 52px; padding-inline: 16px; }
  .project-story-section, .archive-people-section, .archive-source-section { padding-block: 68px; }
  .project-story-grid, .project-source-grid { grid-template-columns: 1fr; }
  .project-narrative h2 { font-size: 42px; }
  .project-narrative > p:not(.eyebrow) { font-size: 15px; }
  .project-identity { position: static; margin-top: 24px; }
  .archive-record { grid-template-columns: 48px 1fr; gap: 13px; padding: 20px; }
  .archive-record-index { font-size: 30px; }
  .archive-record dl { grid-template-columns: 1fr; }
  .record-status { position: absolute; right: 12px; top: 12px; }
  .archive-media-tabs { overflow-x: auto; }
  .archive-media-tabs button { min-width: 128px; }
  .archive-video-stage { grid-template-columns: 1fr; min-height: 0; }
  .archive-video-art { min-height: 430px; padding: 28px; }
  .archive-video-art h3 { font-size: 45px; }
  .archive-media-empty { min-height: 420px; }
  .archive-media-empty h3 { font-size: 38px; }
  .inheritor-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .inheritor-card { min-height: 290px; padding: 18px; }
  .project-relation-ribbon { padding-block: 50px; }
  .relation-path-preview { gap: 6px; }
  .relation-path-preview svg { display: none; }
  .graph-hero-v3 { padding: 46px 0 34px; }
  .map-hero-v3 { padding: 30px 0 26px; }
  .graph-hero-v3 .content-fluid, .map-hero-v3 .content-fluid { grid-template-columns: 1fr; gap: 20px; }
  .graph-hero-v3 h1 { font-size: 52px; }
  .map-hero-v3 h1 { font-size: 44px; line-height: 1.04; }
  .graph-hero-v3 .content-fluid > p, .map-hero-v3 .content-fluid > p { font-size: 14px; }
  .graph-page-v3, .map-page-v3 { padding-top: 10px; }
  .graph-toolbar-v3 { grid-template-columns: 1fr; gap: 9px; }
  .graph-project-picker-v3 { grid-row: 2; }
  .graph-project-picker-v3 select { width: 100%; min-width: 0; }
  .graph-filters-v3 { grid-row: 3; width: 100%; overflow-x: auto; }
  .graph-filters-v3 button { flex: 0 0 auto; }
  .graph-canvas-v3 { min-height: 620px; }
  .graph-stage-v3 { height: 620px; min-height: 620px; overflow: auto; }
  .graph-stage-v3 svg { width: 1180px; min-width: 1180px; }
  .graph-stage-back-v3 { position: sticky; left: 9px; top: 9px; }
  .graph-controls-v3 { left: 9px; bottom: 9px; }
  .graph-inspector-v3 { right: 9px; top: 70px; width: calc(100% - 18px); }
  .graph-story-v3 { grid-template-columns: 1fr; gap: 11px; padding: 18px; }
  .graph-story-v3 i { display: none; }
  .graph-story-v3 div { padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .map-toolbar-v3 { grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .map-mode-switch-v3 button, .map-zoom-v3 button { padding-inline: 9px; }
  .map-zoom-v3 { position: static; justify-self: end; z-index: 5; }
  .map-province-strip-v3 { grid-column: 1 / -1; grid-row: 2; display: flex; overflow-x: auto; }
  .map-province-strip-v3 button { min-width: 76px; }
  .map-stage-v3 { height: 540px; overflow: auto; }
  .map-art-svg-v3 { width: 980px; min-width: 980px; }
  .illustrated-map-v3 { background-size: auto 100%; background-position: left center; }
  .map-detail-dock-v3 { grid-template-columns: 1fr; }
  .map-dock-summary { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .map-project-rail { min-height: 250px; }
  .map-dock-actions { grid-column: auto; }
  .admin-footer-v3 { flex-direction: column; }
  .admin-module-summary, .admin-relation-summary { grid-template-columns: 1fr 1fr; }
  .admin-people-grid, .admin-asset-grid, .admin-news-grid, .admin-review-board, .admin-settings-grid { grid-template-columns: 1fr; }
  .admin-map-cards { grid-template-columns: 1fr 1fr; }
  .admin-setting-row { align-items: flex-start; flex-direction: column; }
  .admin-setting-row input { width: 100%; }
  .admin-content-v3 { width: calc(100vw - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  .project-hero-art, .graph-river-v3, .graph-river-spark-v3, .graph-record-edge, .graph-flow-edge, .graph-project-core-v3 circle:first-child, .graph-province-orbit-v3, .graph-central-ring-v3, .map-river-route-spark-v3, .map-marker-halo, .empty-wave { animation: none !important; }
  .graph-flow-particle-v3, .graph-edge-particle { display: none; }
}

@media (min-width: 781px) and (max-width: 1200px) {
  .map-detail-dock-v3 { position: absolute; right: 12px; top: 72px; bottom: 12px; width: 360px; height: auto; min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; }
  .map-project-rail { min-height: 0; overflow-y: auto; }
  .map-dock-actions { grid-column: auto; justify-content: space-between; }
}

@media (max-width: 780px) {
  .footer-one-line-v3 { min-height: 112px; flex-wrap: wrap; align-content: center; gap: 6px 14px; padding-block: 12px; white-space: normal; }
  .footer-mini-brand { width: 100%; }
  .footer-one-line-v3 nav { gap: 12px; }
  .footer-mini-stats { margin-left: 0; }
  .footer-mini-legal { width: 100%; gap: 9px; padding: 6px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
  .footer-mini-legal span:first-child { display: none; }
  .graph-hero-v3, .map-hero-v3 { min-height: 92px; padding: 14px 0; }
  .graph-hero-v3 .content-fluid, .map-hero-v3 .content-fluid { gap: 5px; }
  .graph-hero-v3 h1, .map-hero-v3 h1 { font-size: 34px; }
  .graph-hero-v3 .content-fluid > p, .map-hero-v3 .content-fluid > p { font-size: 12px; }
  .graph-canvas-v3 { height: 610px; min-height: 610px; }
  .graph-stage-v3 { height: 610px; min-height: 610px; }
  .graph-story-v3 { display: none; }
  .map-stage-v3 { height: 600px; }
  .map-detail-dock-v3 { position: absolute; left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; height: 248px; min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; }
  .map-dock-summary { padding: 10px 12px 7px; }
  .map-dock-summary > p:not(.eyebrow), .map-dock-summary button { display: none; }
  .map-dock-summary h2 { font-size: 25px; }
  .map-dock-summary strong { font-size: 21px; }
  .map-project-rail { min-height: 0; padding: 7px; overflow-y: auto; }
  .map-project-ticket { min-height: 58px; grid-template-columns: 25px minmax(0,1fr) auto; padding: 7px 9px; }
  .map-project-ticket h3 { font-size: 14px; }
  .map-dock-actions { grid-column: auto; padding-inline: 10px; }
  .map-dock-actions a { padding: 7px 0; font-size: 12px; }
  .map-art-badge-v3, .map-online-badge { max-width: calc(100% - 28px); }
  .map-source-credit-v3 { display: none; }
}

/* final visual unification: title bands, illustrated atlas and admin editor */
.page-title-band {
  position: relative;
  min-height: 108px;
  display: flex;
  align-items: center;
  padding: 16px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(104,82,51,.2);
  background:
    radial-gradient(circle at 82% 24%,rgba(36,109,100,.13),transparent 19rem),
    linear-gradient(90deg,rgba(255,252,242,.98),rgba(239,232,211,.88));
}
.page-title-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .38;
  background-image: radial-gradient(circle,rgba(72,63,49,.18) .65px,transparent .75px);
  background-size: 8px 8px;
  mask-image: linear-gradient(90deg,#000,transparent 62%);
}
.page-title-band::after {
  content: "曲 · 艺 · 黄 · 河";
  position: absolute;
  right: max(2vw,24px);
  top: 50%;
  color: rgba(130,61,44,.08);
  font-family: var(--display);
  font-size: 52px;
  letter-spacing: .22em;
  transform: translateY(-50%);
  white-space: nowrap;
  pointer-events: none;
}
.page-title-band > .content-width,
.page-title-band > .content-fluid {
  position: relative;
  z-index: 1;
  width: var(--content);
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,470px);
  align-items: center;
  gap: 46px;
  margin-inline: auto;
}
.page-title-band .eyebrow { margin: 0 0 4px; color: #8d3c31; letter-spacing: .19em; }
.page-title-band h1,
.page-heading.page-title-band h1,
.graph-hero-v3.page-title-band h1,
.map-hero-v3.page-title-band h1 {
  margin: 0;
  color: #223d39;
  font-family: var(--display);
  font-size: clamp(34px,3vw,42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.page-title-band > div > p,
.page-heading.page-title-band p,
.graph-hero-v3.page-title-band .content-fluid > p,
.map-hero-v3.page-title-band .content-fluid > p {
  max-width: 470px;
  margin: 0;
  color: #5f6964;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.72;
  text-wrap: pretty;
}

.map-page-v3 { background: #f4f0e4; }
.map-explorer-shell-v3 { overflow: hidden; border: 1px solid rgba(86,72,48,.22); box-shadow: 0 20px 52px rgba(74,58,32,.1); }
.map-toolbar-v3 { border: 0; border-bottom: 1px solid rgba(86,72,48,.18); background: rgba(255,252,243,.96); }
.map-mode-switch-v3 { padding: 3px; background: #e8e5d8; border-radius: 7px; }
.map-mode-switch-v3 button { min-height: 32px; border: 0; border-radius: 5px; }
.map-mode-switch-v3 button.active { color: #fffaf0; background: #285f59; box-shadow: 0 5px 15px rgba(37,86,80,.18); }
.map-province-strip-v3 { justify-content: center; gap: 5px; }
.map-province-strip-v3 button {
  min-width: 78px;
  padding: 7px 10px;
  color: #65706b;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  transition: color .22s var(--ease),background .22s var(--ease),transform .22s var(--ease),box-shadow .22s var(--ease);
}
.map-province-strip-v3 button:hover { color: #254f4a; background: #f1ecdd; transform: translateY(-1px); }
.map-province-strip-v3 button.active { color: #fffaf0; border-color: #9a4034; background: #9a4034; box-shadow: 0 7px 18px rgba(139,58,48,.2); }
.map-province-strip-v3 button b { color: inherit; opacity: .68; }
.map-zoom-v3 { overflow: hidden; border: 1px solid #d5cfbd; border-radius: 7px; background: #fffaf0; }
.map-zoom-v3 button { border: 0; border-right: 1px solid #ddd5c1; }
.map-zoom-v3 button:last-child { border-right: 0; }
.illustrated-map-v3 { background: #e9eadb; }
.map-art-svg-v3 { background: #ebe9dc; }
.map-landscape-decor-v3 path { fill: none; stroke: #496d64; stroke-width: 2; stroke-linecap: round; opacity: .14; }
.map-province-aura-v3 { opacity: .34; filter: url(#provinceGlow); animation: provinceAuraIn .65s var(--ease) both; }
.map-province-shape-v3 {
  opacity: .34;
  stroke: rgba(255,253,242,.98);
  stroke-width: 2.1;
  filter: saturate(.25);
  transition: opacity .25s var(--ease),filter .25s var(--ease),stroke-width .25s var(--ease),fill .25s var(--ease);
}
.map-province-shape-v3:hover { opacity: .62; filter: saturate(.55); }
.map-province-shape-v3.active {
  opacity: 1;
  stroke: #fff8df;
  stroke-width: 5;
  filter: saturate(1.05) drop-shadow(0 12px 14px rgba(70,52,30,.18));
  animation: provinceFocus .58s var(--ease-spring) both;
}
.map-river-route-shadow-v3 { fill: none; stroke: rgba(15,88,99,.18); stroke-width: 22; stroke-linecap: round; filter: blur(5px); }
.map-river-route-v3 { stroke: #2697a7; stroke-width: 11; opacity: .94; filter: drop-shadow(0 5px 4px rgba(16,94,104,.18)); }
.map-river-route-spark-v3 { stroke: #eaf6df; stroke-width: 2.3; stroke-dasharray: 10 17; opacity: .92; animation: riverQuest 4.4s linear infinite; }
.map-feature-stage-v3 { pointer-events: none; filter: url(#stageShadow); animation: featureStageIn .62s var(--ease-spring) both; }
.map-feature-connector-v3 { fill: none; stroke: rgba(133,74,48,.5); stroke-width: 2; stroke-dasharray: 5 7; }
.map-feature-cloud-v3 { fill: none; stroke: #54736b; stroke-width: 3; stroke-linecap: round; opacity: .62; }
.map-feature-roof-v3 { fill: #a44535; stroke: #fff3d5; stroke-width: 3; }
.map-feature-frame-v3 { fill: none; stroke: #6e4631; stroke-width: 4; stroke-linecap: round; }
.map-feature-disc-v3 { fill: #fff8e5; stroke: #c48b39; stroke-width: 4; }
.map-feature-motif-v3 { fill: none; stroke: #2f625b; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.map-feature-caption-v3 { fill: rgba(255,250,232,.98); stroke: rgba(105,68,42,.22); }
.map-feature-name-v3 { fill: #274943; font-family: var(--display); font-size: 17px; font-weight: 700; }
.map-feature-count-v3 { fill: #8d4537; font-size: 12px; font-weight: 600; }
.map-hotspot-v3 { cursor: pointer; opacity: 0; animation: mapHotspotReveal .46s var(--ease) forwards; animation-delay: var(--marker-delay); }
.map-marker-halo { fill: none; stroke: var(--spot-color); stroke-width: 2; opacity: .24; transform-box: fill-box; transform-origin: center; }
.map-marker-core-v3 { fill: rgba(255,250,232,.97); stroke: var(--spot-color); stroke-width: 3; filter: drop-shadow(0 7px 7px rgba(69,48,25,.2)); transition: transform .22s var(--ease-spring),fill .22s var(--ease); transform-box: fill-box; transform-origin: center; }
.map-marker-name-v3 { fill: var(--spot-color); font-family: var(--display); font-size: 17px; font-weight: 700; pointer-events: none; }
.map-marker-label rect { fill: rgba(255,250,235,.96); stroke: rgba(78,65,43,.2); stroke-width: 1.2; }
.map-marker-label text { fill: #564d42; font-size: 12px; font-weight: 700; }
.map-hotspot-v3:hover .map-marker-core-v3,
.map-hotspot-v3:focus .map-marker-core-v3 { transform: scale(1.12); fill: #fff; }
.map-hotspot-v3.active .map-marker-core-v3 { fill: var(--spot-color); stroke: #fff8df; stroke-width: 5; transform: scale(1.08); }
.map-hotspot-v3.active .map-marker-name-v3 { fill: #fffaf0; font-size: 18px; }
.map-hotspot-v3.active .map-marker-halo { opacity: .62; stroke-width: 4; animation: hotspotPulse 2.6s ease-out infinite; }
.map-hotspot-v3.active .map-marker-label rect { fill: #183f3b; stroke: #edc779; }
.map-hotspot-v3.active .map-marker-label text { fill: #fff9e8; font-size: 12px; }
.map-marker-check { fill: #a43d32; stroke: #fff7df; stroke-width: 2; }
.map-compass-v3 circle { fill: rgba(255,250,233,.94); stroke: #315f59; }
.map-compass-v3 path { fill: #a33f33; }
.map-mapkey-v3 circle { fill: #a44235; }
.map-mapkey-v3 text { fill: #5e645e; font-size: 12px; letter-spacing: .06em; }
.map-art-badge-v3 { color: #274c47; border: 1px solid rgba(62,90,81,.2); border-radius: 5px; background: rgba(255,251,236,.9); backdrop-filter: blur(8px); }
.map-detail-dock-v3 {
  color: #263f3a;
  border: 1px solid rgba(109,83,46,.24);
  border-radius: 10px;
  background: rgba(255,250,236,.96);
  backdrop-filter: blur(20px) saturate(1.02);
  box-shadow: 0 24px 65px rgba(65,49,27,.22),inset 0 1px rgba(255,255,255,.85);
}
.map-detail-dock-v3::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(#a44235,#c4913e,#2e7068); }
.map-dock-summary { position: relative; padding: 18px 20px 14px 23px; border: 0; border-bottom: 1px solid rgba(95,73,42,.16); }
.map-dock-kicker { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.map-dock-kicker span { color: #8c3d31; font-size: 12px; font-weight: 700; letter-spacing: .17em; }
.map-dock-kicker b { padding: 4px 7px; color: #38655f; border: 1px solid rgba(47,99,91,.22); border-radius: 4px; background: #edf2e9; font-size: 12px; }
.map-dock-title { display: flex; align-items: center; gap: 12px; }
.map-dock-seal { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; color: #fff7e5; border: 2px solid #eac998; border-radius: 7px; background: #a54235; box-shadow: inset 0 0 0 2px #a54235,inset 0 0 0 3px rgba(255,247,229,.72); font-family: var(--display); font-size: 21px; }
.map-dock-title h2 { margin: 0; color: #24433e; font-family: var(--display); font-size: 29px; line-height: 1.05; }
.map-dock-title p { margin: 5px 0 0; color: #8d4a3d; font-size: 12px; font-weight: 600; }
.map-dock-lede { margin: 12px 0 0; color: #68726d; font-family: var(--serif); font-size: 12px; line-height: 1.65; }
.map-dock-summary button { margin-top: 10px; padding: 7px 9px; color: #315f59; border: 1px solid rgba(49,95,89,.24); border-radius: 5px; background: #f5f2e7; }
.map-project-rail { background: rgba(238,234,219,.62); }
.map-project-ticket { color: #29241e; border: 1px solid rgba(109,83,46,.14); border-radius: 7px; background: rgba(255,252,242,.96); box-shadow: 0 5px 15px rgba(74,55,31,.05); }
.map-project-ticket:hover { background: #fff; box-shadow: 0 8px 18px rgba(74,55,31,.1); }
.map-project-ticket p { color: #8b4337; }
.map-project-ticket h3 { color: #263f3a; }
.map-project-ticket small { color: #6d746f; }
.map-dock-actions { border: 0; border-top: 1px solid rgba(95,73,42,.16); background: #fffaf0; }
.map-dock-actions a { color: #2f625b; border: 0; font-weight: 700; }

body.admin-modal-open { overflow: hidden; }
.admin-modal-v3 { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 28px; visibility: hidden; opacity: 0; transition: opacity .22s var(--ease),visibility .22s; }
.admin-modal-v3.open { visibility: visible; opacity: 1; }
.admin-modal-backdrop-v3 { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(13,35,32,.68); cursor: default; }
.admin-modal-panel-v3 { position: relative; width: min(1080px,calc(100vw - 56px)); max-height: min(900px,calc(100dvh - 56px)); display: grid; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; border: 1px solid rgba(191,174,142,.75); border-radius: 12px; background: #f8f6ef; box-shadow: 0 34px 90px rgba(10,29,27,.38); transform: translateY(18px) scale(.985); transition: transform .3s var(--ease-spring); }
.admin-modal-v3.open .admin-modal-panel-v3 { transform: none; }
.admin-modal-head-v3 { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 22px 26px 18px; color: #fff9ea; border-bottom: 1px solid rgba(255,255,255,.13); background: #173f3b; }
.admin-modal-head-v3 .eyebrow { margin: 0; color: #e7bd73; }
.admin-modal-head-v3 h2 { margin: 4px 0 2px; font-family: var(--display); font-size: 30px; line-height: 1.1; }
.admin-modal-head-v3 span { color: rgba(255,249,234,.58); font-size: 12px; }
.admin-modal-close-v3 { width: 38px; height: 38px; color: #fff9ea; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; background: rgba(255,255,255,.06); font-size: 24px; cursor: pointer; }
.admin-modal-body-v3 { overflow: auto; }
.admin-editor-form-v3 { display: grid; grid-template-columns: minmax(0,1fr) 286px; min-height: 610px; }
.admin-editor-main-v3 { min-width: 0; padding: 24px 26px 30px; }
.admin-editor-aside-v3 { display: grid; align-content: start; gap: 12px; padding: 20px; border-left: 1px solid #ddd8c9; background: #eeece4; }
.admin-form-section-title-v3 { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 14px; }
.admin-form-section-title-v3:not(:first-child) { margin-top: 24px; }
.admin-form-section-title-v3 > div { display: flex; align-items: center; gap: 9px; }
.admin-form-section-title-v3 span { width: 27px; height: 27px; display: grid; place-items: center; color: #fff; border-radius: 5px; background: #a44235; font-family: var(--serif); font-size: 12px; }
.admin-form-section-title-v3 h3 { margin: 0; color: #263e39; font-size: 16px; }
.admin-form-section-title-v3 small { color: #8a918e; font-size: 12px; }
.admin-field-grid-v3 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-field-grid-v3 label,
.admin-aside-card-v3 label { display: grid; gap: 6px; color: #64706c; font-size: 12px; font-weight: 600; }
.admin-field-grid-v3 label.wide { grid-column: 1 / -1; }
.admin-field-grid-v3 input,
.admin-field-grid-v3 select,
.admin-aside-card-v3 input,
.admin-aside-card-v3 select { width: 100%; min-height: 40px; padding: 9px 11px; color: #273c38; border: 1px solid #cfd4cc; border-radius: 5px; background: #fff; outline: 0; }
.admin-field-grid-v3 input:focus,
.admin-field-grid-v3 select:focus,
.admin-aside-card-v3 input:focus,
.admin-aside-card-v3 select:focus { border-color: #36726b; box-shadow: 0 0 0 3px rgba(54,114,107,.12); }
.admin-rich-editor-v3 { overflow: hidden; border: 1px solid #cfd4cc; border-radius: 7px; background: #fff; }
.admin-rich-toolbar-v3 { display: flex; align-items: center; gap: 3px; padding: 7px; border-bottom: 1px solid #e0e3dc; background: #f2f3ed; }
.admin-rich-toolbar-v3 button { min-width: 31px; height: 30px; padding: 0 8px; color: #40524d; border: 1px solid transparent; border-radius: 4px; background: transparent; cursor: pointer; }
.admin-rich-toolbar-v3 button:hover { color: #1d514c; border-color: #d4d8d1; background: #fff; }
.admin-rich-toolbar-v3 > span { width: 1px; height: 19px; margin: 0 4px; background: #d4d8d1; }
.admin-rich-content-v3 { min-height: 170px; padding: 18px; color: #34423e; font-family: var(--serif); font-size: 13px; line-height: 1.8; outline: 0; }
.admin-rich-content-v3:focus { box-shadow: inset 0 0 0 2px rgba(54,114,107,.12); }
.admin-rich-content-v3 p { margin: 0 0 10px; }
.admin-rich-status-v3 { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; color: #8a918e; border-top: 1px solid #e4e6e0; font-size: 12px; }
.admin-resource-row-v3 { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.admin-resource-row-v3 button { min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #4b5d58; border: 1px solid #d1d5ce; border-radius: 6px; background: #fff; cursor: pointer; }
.admin-resource-row-v3 button:hover,
.admin-resource-row-v3 button.active { color: #fff; border-color: #2e6b64; background: #2e6b64; transform: translateY(-2px); }
.admin-aside-card-v3 { padding: 16px; border: 1px solid #dad7cc; border-radius: 7px; background: rgba(255,255,255,.76); }
.admin-aside-card-v3 .eyebrow { margin: 0; color: #9a4135; font-size: 12px; }
.admin-aside-card-v3 h3 { margin: 5px 0 14px; color: #273e39; font-size: 15px; }
.admin-aside-card-v3 label + label { margin-top: 10px; }
.admin-check-stack-v3 { display: grid; gap: 8px; margin-top: 14px; }
.admin-check-stack-v3 label { display: flex; align-items: center; gap: 7px; color: #53635f; }
.admin-check-stack-v3 input { width: 14px; min-height: 0; accent-color: #2e6b64; }
.admin-source-chip-v3 { margin-top: 10px; padding: 8px; color: #326358; border-radius: 4px; background: #e5f0e9; font-size: 12px; }
.admin-source-chip-v3 svg { display: inline; vertical-align: -3px; }
.admin-aside-card-v3 > button { width: 100%; margin-top: 9px; padding: 8px; color: #315f59; border: 1px dashed #9eb5ac; border-radius: 4px; background: transparent; cursor: pointer; }
.admin-aside-card-v3 ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: #7a8581; font-size: 12px; }
.admin-aside-card-v3 li::before { content: "○"; margin-right: 7px; }
.admin-aside-card-v3 li.ready { color: #35675d; }
.admin-aside-card-v3 li.ready::before { content: "✓"; }
.admin-modal-footer-v3 { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 22px; border-top: 1px solid #d7d3c7; background: #fff; }
.admin-modal-footer-v3 > span { color: #7d8783; font-size: 12px; }
.admin-modal-footer-v3 > span svg { display: inline; vertical-align: -3px; }
.admin-modal-footer-v3 > div { display: flex; gap: 7px; }
.admin-modal-footer-v3 button { min-height: 36px; padding: 8px 13px; color: #41534e; border: 1px solid #ccd2cc; border-radius: 5px; background: #fff; cursor: pointer; }
.admin-modal-footer-v3 button.primary { color: #fff; border-color: #28655e; background: #28655e; }

@keyframes provinceFocus { from { opacity: .18; transform: scale(.96); transform-origin: center; } to { opacity: 1; transform: none; } }
@keyframes provinceAuraIn { from { opacity: 0; } to { opacity: .34; } }
@keyframes featureStageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mapHotspotReveal { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 780px) {
  .page-title-band { min-height: 100px; padding: 14px 0; }
  .page-title-band::after { right: -55px; font-size: 34px; opacity: .7; }
  .page-title-band > .content-width,
  .page-title-band > .content-fluid { width: var(--content); grid-template-columns: 1fr; gap: 5px; }
  .page-title-band h1,
  .page-heading.page-title-band h1,
  .graph-hero-v3.page-title-band h1,
  .map-hero-v3.page-title-band h1 { font-size: 32px; }
  .page-title-band > div > p,
  .page-heading.page-title-band p,
  .graph-hero-v3.page-title-band .content-fluid > p,
  .map-hero-v3.page-title-band .content-fluid > p { max-width: 34em; font-size: 12px; line-height: 1.5; }
  .map-stage-v3 { height: 600px; }
  .map-art-svg-v3 { width: 980px; min-width: 980px; height: auto; }
  .map-detail-dock-v3 { height: 254px; color: #263f3a; }
  .map-dock-summary { padding: 9px 12px 8px 15px; }
  .map-dock-kicker { margin-bottom: 5px; }
  .map-dock-title { gap: 8px; }
  .map-dock-seal { width: 34px; height: 34px; font-size: 17px; }
  .map-dock-title h2 { font-size: 22px; }
  .map-dock-title p { margin-top: 2px; font-size: 12px; }
  .map-dock-lede,
  .map-dock-summary button { display: none; }
  .map-project-rail { padding: 7px; }
  .admin-modal-v3 { padding: 10px; }
  .admin-modal-panel-v3 { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .admin-modal-head-v3 { padding: 17px 18px 14px; }
  .admin-modal-head-v3 h2 { font-size: 24px; }
  .admin-editor-form-v3 { grid-template-columns: 1fr; }
  .admin-editor-main-v3 { padding: 18px; }
  .admin-editor-aside-v3 { border-top: 1px solid #ddd8c9; border-left: 0; }
  .admin-resource-row-v3 { grid-template-columns: 1fr 1fr; }
  .admin-modal-footer-v3 { align-items: flex-end; padding: 10px 12px; }
  .admin-modal-footer-v3 > span { display: none; }
  .admin-modal-footer-v3 > div { width: 100%; justify-content: flex-end; }
  .admin-modal-footer-v3 button { padding-inline: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .map-province-aura-v3,
  .map-province-shape-v3.active,
  .map-feature-stage-v3,
  .map-hotspot-v3 { animation: none !important; opacity: 1; }
}

/* V1.2: homepage carousel, calm graph and region-level illustrated map */
.hero-carousel {
  position: relative;
  min-height: min(700px,calc(100dvh - 68px));
  overflow: hidden;
  background: #e9e1cd;
}
.hero-carousel::before { display: none; }
.hero-slides,
.hero-slide { position: absolute; inset: 0; }
.hero-slide {
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.035);
  transition: opacity .85s var(--ease),transform 1.4s var(--ease),visibility .85s;
}
.hero-slide.active { visibility: visible; opacity: 1; transform: scale(1); }
.hero-slide-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,rgba(249,243,226,.98) 0%,rgba(249,243,226,.9) 30%,rgba(249,243,226,.22) 58%,rgba(15,52,49,.08) 100%),
    linear-gradient(0deg,rgba(20,55,51,.2),transparent 34%);
}
.hero-slide .hero-copy { position: relative; z-index: 2; height: 100%; }
.hero-slide .hero-river-line { z-index: 1; }
.hero-carousel-controls {
  position: absolute;
  right: max(24px,4vw);
  bottom: 26px;
  z-index: 8;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  color: #fff8e8;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(18,60,56,.82);
  box-shadow: 0 14px 34px rgba(18,51,47,.2);
  backdrop-filter: blur(14px);
}
.hero-carousel-controls > button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: inherit;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  transition: color .2s var(--ease),background .2s var(--ease),transform .2s var(--ease);
}
.hero-carousel-controls > button:hover,
.hero-carousel-controls > button:focus-visible { color: #173f3b; background: #f2c879; }
.hero-carousel-dots { display: flex; align-items: center; gap: 5px; padding-inline: 4px; }
.hero-carousel-dots button { width: 30px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero-carousel-dots span { width: 18px; height: 3px; display: block; overflow: hidden; border-radius: 2px; background: rgba(255,255,255,.28); transition: width .25s var(--ease),background .25s var(--ease); }
.hero-carousel-dots button.active span { width: 30px; background: #f2c879; }
.hero-carousel-count { min-width: 58px; color: rgba(255,248,232,.64); font-size: 12px; font-variant-numeric: tabular-nums; }
.hero-carousel-count b { color: #fff8e8; font-family: var(--serif); font-size: 16px; }

.graph-flow-particle-v3,
.graph-edge-particle { display: none !important; }
.graph-main-edge-v3,
.graph-province-orbit-v3,
.graph-central-ring-v3 { animation: none !important; }
.graph-story-v3,
.graph-story-v3[hidden] { display: none !important; }
.graph-river-station-v3 { stroke: #071d27; stroke-width: 4; }
.graph-overview-note-v3 text:first-child { fill: #f4d07d; font-size: 13px; font-weight: 700; }
.graph-overview-note-v3 text:last-child { fill: rgba(255,247,223,.52); font-size: 12px; }
.graph-main-edge-v3 { stroke-dasharray: 7 9; opacity: .6; }
.graph-project-node-v3:focus-visible { outline: none; }
.graph-project-node-v3:focus-visible .graph-project-halo-v3 { opacity: .72; transform: scale(1.5); }

.map-detail-dock-v3 {
  right: 12px;
  top: 66px;
  bottom: 12px;
  width: min(318px,22vw);
}
.map-detail-dock-v3 { width: min(280px,18vw); }
.map-art-badge-v3,
.map-online-badge { max-width: calc(100% - 370px); }
.map-source-credit-v3 { right: 344px; }
.map-handdraw-overlay-v4 { pointer-events: none; opacity: .92; }
.map-handdraw-overlay-v4 path { fill: none; stroke: rgba(255,246,215,.36); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; }
.map-province-label-v4 {
  cursor: pointer;
  opacity: 0;
  animation: mapHotspotReveal .42s var(--ease) forwards;
  animation-delay: var(--marker-delay);
}
.map-province-label-v4 rect { fill: rgba(255,250,235,.92); stroke: rgba(43,78,72,.38); stroke-width: 2; }
.map-province-label-v4 text { fill: #345852; font-family: var(--display); font-size: 15px; font-weight: 700; }
.map-province-label-v4 path { fill: none; stroke: var(--spot-color); stroke-width: 4; stroke-linecap: round; }
.map-province-label-v4:hover rect,
.map-province-label-v4:focus rect { stroke: var(--spot-color); stroke-width: 3; }
.map-province-label-v4.active rect { fill: #173f3b; stroke: #f0ce80; stroke-width: 3; }
.map-province-label-v4.active text { fill: #fff8e7; }
.map-region-marker-v4 {
  cursor: pointer;
  opacity: 0;
  animation: mapRegionReveal .48s var(--ease-spring) forwards;
  animation-delay: var(--region-delay);
}
.map-region-marker-v4:focus,
.map-province-label-v4:focus,
.map-province-record-v4:focus { outline: none; }
.map-region-pin-line-v4 { fill: none; stroke: rgba(73,81,68,.5); stroke-width: 1.5; stroke-dasharray: 3 4; }
.map-region-pin-halo-v4 { fill: rgba(255,248,222,.18); stroke: #fff6d9; stroke-width: 2; }
.map-region-pin-v4 { fill: #276a63; stroke: #fff7dc; stroke-width: 3; filter: drop-shadow(0 6px 6px rgba(45,52,38,.24)); transition: fill .2s var(--ease),transform .2s var(--ease-spring); transform-box: fill-box; transform-origin: center; }
.map-region-count-v4 { fill: #fff; font-size: 12px; font-weight: 800; pointer-events: none; }
.map-region-label-v4 rect { fill: rgba(255,250,235,.95); stroke: rgba(68,84,72,.3); stroke-width: 1.3; }
.map-region-label-v4 text { fill: #36544f; font-size: 12px; font-weight: 700; }
.map-region-marker-v4:hover .map-region-pin-v4,
.map-region-marker-v4:focus .map-region-pin-v4 { fill: #a44336; transform: translateY(-3px) scale(1.12); }
.map-region-marker-v4.active .map-region-pin-v4 { fill: #a44336; stroke-width: 4; transform: translateY(-3px) scale(1.13); }
.map-region-marker-v4.active .map-region-pin-halo-v4 { fill: rgba(239,199,116,.25); stroke: #d7a849; stroke-width: 4; }
.map-region-marker-v4.active .map-region-label-v4 rect { fill: #173f3b; stroke: #f0cb79; stroke-width: 2; }
.map-region-marker-v4.active .map-region-label-v4 text { fill: #fff8e7; }
.map-dock-summary { padding: 16px 18px 13px 21px; }
.map-dock-title h2 { font-size: 26px; }
.map-dock-title p { font-size: 12px; }
.map-dock-lede { margin-top: 9px; font-size: 12px; line-height: 1.55; }
.map-dock-statline { display: grid !important; grid-template-columns: auto 1fr; gap: 7px !important; margin-top: 11px; }
.map-dock-statline span { min-height: 28px; display: flex; align-items: center; padding: 5px 7px; color: #52635e; border-radius: 5px; background: #eef1e8; font-size: 12px; line-height: 1.3; }
.map-dock-statline span:first-child { color: #8c4034; background: #f5e6d8; white-space: nowrap; }
.map-dock-statline b { margin-right: 3px; font-size: 13px; }
.map-project-rail { gap: 6px; padding: 8px; }
.map-project-ticket { min-height: 66px; grid-template-columns: 25px minmax(0,1fr) auto; gap: 7px; padding: 8px 9px; }
.map-project-ticket > span { font-size: 17px; }
.map-project-ticket h3 { font-size: 14px; line-height: 1.25; }
.map-project-ticket p,
.map-project-ticket small,
.map-project-ticket em { font-size: 12px; }
.map-project-ticket.active { color: #fff8e7; border-color: #2f6b64; background: #245b55; box-shadow: 0 8px 18px rgba(28,77,72,.2); }
.map-project-ticket.active p,
.map-project-ticket.active small,
.map-project-ticket.active em { color: rgba(255,248,231,.78); }
.map-dock-actions { padding-inline: 13px; }
.map-dock-actions a { font-size: 12px; }

@keyframes mapRegionReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 780px) {
  .hero-carousel { min-height: 690px; }
  .hero-slide { background-position: 60% center; }
  .hero-slide-wash { background: linear-gradient(180deg,rgba(249,243,226,.98) 0%,rgba(249,243,226,.8) 48%,rgba(19,54,50,.16) 76%,rgba(15,44,41,.45) 100%); }
  .hero-carousel-controls { left: 16px; right: 16px; bottom: 17px; justify-content: space-between; }
  .hero-carousel-controls > button,
  .hero-carousel-dots button { width: 44px; height: 44px; }
  .hero-carousel-dots { flex: 1; justify-content: center; }
  .hero-carousel-count { display: none; }
  .map-detail-dock-v3 { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; height: 246px; }
  .map-art-badge-v3,
  .map-online-badge { max-width: calc(100% - 28px); }
  .map-source-credit-v3 { display: none; }
  .map-dock-summary { padding: 9px 12px 8px 15px; }
  .map-dock-statline { margin-top: 6px; }
  .map-dock-statline span { min-height: 24px; padding: 3px 5px; font-size: 12px; }
  .map-dock-lede { display: none; }
  .map-project-rail { padding: 6px; }
  .map-project-ticket { min-height: 57px; }
  .map-region-label-v4 text { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; transform: none; }
  .map-province-label-v4,
  .map-region-marker-v4 { animation: none !important; opacity: 1; }
  .map-region-glow-v4 { animation: none !important; }
}

/* V1.3 presentation polish: restrained controls, living river, legible footer */
.hero-carousel-controls {
  left: 50%;
  right: auto;
  bottom: 54px;
  min-height: 0;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: translateX(-50%);
}
.hero-carousel-controls > button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  opacity: .78;
}
.hero-carousel-controls > button:hover,
.hero-carousel-controls > button:focus-visible {
  color: #fff8e8;
  background: rgba(255,255,255,.12);
  opacity: 1;
}
.hero-carousel-dots { gap: 1px; padding: 0; }
.hero-carousel-dots button { width: 28px; height: 34px; }
.hero-carousel-dots span { width: 16px; height: 2px; background: rgba(26,76,70,.3); box-shadow: 0 1px rgba(255,255,255,.48); }
.hero-carousel-dots button.active span { width: 27px; background: rgba(18,87,82,.82); }
.hero-carousel-count { min-width: 48px; font-size: 12px; opacity: .78; }
.hero-carousel-count b { font-size: 14px; }

.graph-flow-particle-v3,
.graph-edge-particle {
  display: inline !important;
  pointer-events: none;
  filter: drop-shadow(0 0 7px currentColor) drop-shadow(0 0 2px #fff);
}
.graph-edge-particle.rel-record { color: #f4c86b; fill: #f4c86b; }
.graph-edge-particle.rel-location { color: #ff7b5c; fill: #ff7b5c; }
.graph-edge-particle.rel-unit { color: #48d6c5; fill: #48d6c5; }
.graph-edge-particle.rel-person { color: #a58cff; fill: #a58cff; }
.graph-main-edge-v3 { animation: graphFlow 5.5s linear infinite !important; }
.graph-province-orbit-v3,
.graph-central-ring-v3 { animation: graphOrbit 18s linear infinite !important; }
.graph-stage-v3 a,
.graph-stage-v3 [tabindex],
.graph-stage-v3 a:focus,
.graph-stage-v3 a:focus-visible,
.graph-stage-v3 [tabindex]:focus,
.graph-stage-v3 [tabindex]:focus-visible { outline: none !important; }
.graph-stage-v3 a:focus-visible .graph-project-halo-v3,
.graph-stage-v3 .graph-project-node-v3:focus-visible .graph-project-halo-v3 { opacity: .78; transform: scale(1.55); }
.graph-record-node:focus-visible .graph-orb-halo-v3,
.graph-chain-node:focus-visible .graph-orb-halo-v3 { opacity: .95; stroke-width: 5; filter: drop-shadow(0 0 9px currentColor); }
.graph-unit-orb-v3:focus-visible rect { stroke-width: 4; filter: drop-shadow(0 0 9px #48d6c5); }
.graph-project-node-v3 text { font-size: 12px; }
.graph-province-core-v3 text:last-child,
.graph-overview-note-v3 text:last-child { font-size: 12px; }
.graph-project-orb-v3 > circle:nth-child(2) {
  fill: #123f49;
  stroke: #54cfc2;
  filter: drop-shadow(0 0 18px rgba(84,207,194,.3));
}
.graph-project-orb-v3 .graph-central-ring-v3 { stroke: rgba(244,200,107,.8); }
.graph-record-orb-v3 text:first-of-type { font-size: 15px; }
.graph-record-orb-v3 text:not(:first-of-type),
.graph-location-orb-v3 text:first-of-type,
.graph-person-orb-v3 text:first-of-type,
.graph-unit-orb-v3 text:first-of-type { font-size: 12px; }
.graph-location-orb-v3 text:last-of-type,
.graph-person-orb-v3 text:last-of-type,
.graph-unit-orb-v3 text:last-of-type,
.graph-lane-caption-v3 { font-size: 12px; }

.map-river-system-v4 { pointer-events: none; }
.map-river-system-v4 path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.map-river-route-shadow-v3 {
  stroke: rgba(19,73,80,.22);
  stroke-width: 38;
  opacity: .72;
  filter: blur(7px);
}
.map-river-bank-v4 {
  stroke: rgba(210,171,91,.58);
  stroke-width: 29;
  filter: drop-shadow(0 5px 5px rgba(89,67,36,.18));
}
.map-river-route-v3 {
  stroke: url(#yellowRiverWaterV4);
  stroke-width: 22;
  opacity: .98;
  filter: url(#riverGlowV4);
}
.map-river-channel-v4 {
  stroke: rgba(180,245,238,.52);
  stroke-width: 6;
  stroke-dasharray: 84 30;
  animation: riverCurrentV4 5.8s linear infinite;
}
.map-river-route-spark-v3 {
  stroke: rgba(255,248,202,.96);
  stroke-width: 2.7;
  stroke-dasharray: 8 18;
  opacity: .95;
  animation: riverCurrentV4 3.2s linear infinite;
}
.map-river-particle-v4 {
  opacity: .92;
  filter: drop-shadow(0 0 6px rgba(215,255,250,.95));
}
.map-art-badge-v3,
.map-online-badge { font-size: 12px; letter-spacing: .08em; }
.map-province-label-v4 text { font-size: 16px; }
.map-region-label-v4 text,
.map-mapkey-v3 text { font-size: 12px; }
.map-dock-kicker span { font-size: 12px; }
.map-dock-kicker b,
.map-dock-title p,
.map-dock-lede { font-size: 12px; }
.map-dock-statline span { font-size: 12px; }
.map-project-ticket p,
.map-project-ticket small { font-size: 12px; }
.map-project-ticket em { font-size: 12px; }
.map-dock-actions a { font-size: 12px; }

.museum-footer-v3 { min-height: 82px; }
.footer-one-line-v3 {
  min-height: 82px;
  gap: clamp(10px,1vw,18px);
}
.footer-mini-brand { gap: 8px; }
.footer-mini-brand strong { font-size: 13px; }
.footer-one-line-v3 nav,
.footer-mini-stats,
.footer-mini-legal { gap: 10px; }
.footer-one-line-v3 nav a,
.footer-mini-stats,
.footer-mini-legal { font-size: 12px; line-height: 1.5; }
.footer-mini-stats b { font-size: 14px; }
.footer-mini-legal {
  padding-left: 14px;
  color: rgba(255,248,232,.7);
  border-left-color: rgba(255,255,255,.18);
}

@keyframes riverCurrentV4 { to { stroke-dashoffset: -228; } }

@media (max-width: 1500px) {
  .footer-one-line-v3 { gap: 10px; }
  .footer-mini-brand strong { font-size: 12px; }
  .footer-one-line-v3 nav,
  .footer-mini-stats,
  .footer-mini-legal { gap: 8px; }
  .footer-mini-legal { padding-left: 10px; }
}

@media (max-width: 1120px) {
  .footer-one-line-v3 { min-height: 112px; flex-wrap: wrap; align-content: center; white-space: normal; }
  .footer-mini-stats { margin-left: auto; }
  .footer-mini-legal { width: 100%; padding: 8px 0 0; border-top: 1px solid rgba(255,255,255,.14); border-left: 0; }
}

@media (max-width: 780px) {
  .hero-carousel-controls {
    left: 50%;
    right: auto;
    bottom: 18px;
    width: auto;
    justify-content: center;
    transform: translateX(-50%);
  }
  .hero-carousel-controls > button,
  .hero-carousel-dots button { width: 44px; height: 44px; }
  .hero-carousel-dots { flex: 0 1 auto; }
  .map-river-route-shadow-v3 { stroke-width: 27; }
  .map-river-bank-v4 { stroke-width: 22; }
  .map-river-route-v3 { stroke-width: 16; }
  .map-river-channel-v4 { stroke-width: 5; }
  .footer-one-line-v3 { min-height: 154px; gap: 8px 12px; padding-block: 14px; }
  .footer-mini-brand { width: 100%; }
  .footer-mini-brand strong { font-size: 13px; }
  .footer-one-line-v3 nav,
  .footer-mini-stats,
  .footer-mini-legal { font-size: 12px; }
  .footer-mini-legal { gap: 8px 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .graph-flow-particle-v3,
  .graph-edge-particle,
  .map-river-particle-v4 { display: none !important; }
  .graph-main-edge-v3,
  .graph-province-orbit-v3,
  .graph-central-ring-v3,
  .map-river-channel-v4,
  .map-river-route-spark-v3 { animation: none !important; }
}

/* V1.4 map hierarchy: floating basemap tabs and progressive point labels */
.map-page-v3 > .content-fluid {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
.map-explorer-shell-v3 {
  isolation: isolate;
  border: 0;
  box-shadow: none;
}
.map-mode-float-v4 {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 28;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(47,78,71,.2);
  border-radius: 8px;
  background: rgba(255,250,236,.88);
  box-shadow: 0 12px 28px rgba(49,61,48,.14), inset 0 1px rgba(255,255,255,.8);
  backdrop-filter: blur(12px) saturate(.92);
}
.map-mode-float-v4 button {
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-right: 1px solid rgba(62,81,73,.14);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}
.map-mode-float-v4 button:last-child { border-right: 0; }
.map-mode-float-v4 button.active { color: #fff8e8; background: #245f59; }
.map-mode-float-v4 button:disabled { color: #8c9189; cursor: not-allowed; opacity: .72; }
.map-stage-v3 {
  height: calc(100vh - 230px);
  min-height: 520px;
  border: 0;
}
.map-detail-dock-v3 { top: 12px; }
.map-province-label-v4 rect {
  fill: rgba(255,250,235,.72);
  stroke: rgba(45,83,76,.28);
  stroke-width: 1.5;
}
.map-province-label-v4 text { fill: rgba(43,77,70,.82); }
.map-province-label-v4:hover rect,
.map-province-label-v4:focus rect { fill: #fff9e8; stroke: var(--spot-color); }
.map-region-pin-line-v4,
.map-region-label-v4 {
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease);
}
.map-region-marker-v4:hover .map-region-pin-line-v4,
.map-region-marker-v4:focus .map-region-pin-line-v4,
.map-region-marker-v4.active .map-region-pin-line-v4,
.map-region-marker-v4:hover .map-region-label-v4,
.map-region-marker-v4:focus .map-region-label-v4,
.map-region-marker-v4.active .map-region-label-v4 { opacity: 1; }
.map-region-hit-v4 { fill: transparent; }
.map-region-glow-v4 {
  fill: rgba(255,218,125,.1);
  stroke: rgba(255,226,146,.82);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: mapDotGlow 2.2s ease-in-out infinite;
}
.map-region-dot-v4 {
  fill: #1b716b;
  stroke: #fff4c9;
  stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(25,111,104,.72));
  transition: fill .18s var(--ease), transform .18s var(--ease-spring);
  transform-box: fill-box;
  transform-origin: center;
}
.map-region-marker-v4:hover .map-region-dot-v4,
.map-region-marker-v4:focus .map-region-dot-v4,
.map-region-marker-v4.active .map-region-dot-v4 { fill: #b34636; transform: scale(1.45); }
.map-region-marker-v4.active .map-region-glow-v4 { stroke: #f3c661; stroke-width: 2; }
@keyframes mapDotGlow {
  0%,100% { opacity: .48; transform: scale(.78); }
  50% { opacity: .92; transform: scale(1.2); }
}
.map-region-pin-v4 { fill: #286b64; stroke-width: 2.5; }
.map-region-origin-v4 {
  fill: none;
  stroke: rgba(46,91,83,.34);
  stroke-width: 1.4;
  stroke-dasharray: 2 4;
  pointer-events: none;
}
.map-region-marker-v4:hover .map-region-pin-v4,
.map-region-marker-v4:focus .map-region-pin-v4,
.map-region-marker-v4.active .map-region-pin-v4 { transform: translateY(-3px) scale(1.14); }
.map-region-label-v4 rect { fill: rgba(255,250,235,.98); stroke: rgba(52,88,80,.42); }
.map-region-label-v4 text { fill: #2d554f; font-size: 12px; }
.map-province-record-v4 {
  color: #fff8e8;
  cursor: pointer;
  filter: drop-shadow(0 8px 8px rgba(70,49,25,.16));
}
.map-province-record-v4 rect {
  fill: rgba(145,86,39,.9);
  stroke: #fff0c6;
  stroke-width: 2;
  transition: fill .2s var(--ease), stroke-width .2s var(--ease), transform .2s var(--ease-spring);
  transform-box: fill-box;
  transform-origin: center;
}
.map-province-record-v4 circle { fill: #f1c875; }
.map-province-record-v4 text { fill: #fffaf0; font-size: 12px; font-weight: 700; }
.map-province-record-v4:hover rect,
.map-province-record-v4:focus rect,
.map-province-record-v4.active rect { fill: #245f59; stroke-width: 3; transform: scale(1.04); }
.map-mapkey-v3 text { font-size: 12px; }
.map-project-ticket {
  min-height: 76px;
  align-items: center;
  overflow: hidden;
}
.map-project-ticket::after { pointer-events: none; }
.map-project-ticket > span,
.map-project-ticket > div,
.map-project-ticket > em { position: relative; z-index: 1; }
.map-project-ticket > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.map-project-ticket p,
.map-project-ticket h3,
.map-project-ticket small {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-project-ticket.active,
.map-project-ticket.active > span,
.map-project-ticket.active p,
.map-project-ticket.active h3,
.map-project-ticket.active small,
.map-project-ticket.active em { color: #fff9e9; }
.map-project-ticket.active p,
.map-project-ticket.active small { color: rgba(255,249,233,.86); }
.map-project-ticket.active::after { border-color: rgba(255,239,195,.24); box-shadow: 0 0 0 18px rgba(255,227,155,.07); }

/* V1.5 seamless one-screen map and map-aligned hand-drawn texture */
body[data-app="pc"].map-route-v5 { height: 100dvh; overflow: hidden; }
body[data-app="pc"].map-route-v5 #app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body[data-app="pc"].map-route-v5 .museum-header,
body[data-app="pc"].map-route-v5 .museum-footer-v3 { flex: 0 0 auto; }
body[data-app="pc"].map-route-v5 .page-main {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: 108px minmax(0,1fr);
  overflow: hidden;
}
body[data-app="pc"].map-route-v5 .map-hero-v3 { min-height: 108px; }
body[data-app="pc"].map-route-v5 .map-page-v3 {
  min-height: 0;
  padding: 0 !important;
}
body[data-app="pc"].map-route-v5 .map-page-v3 > .content-fluid,
body[data-app="pc"].map-route-v5 .map-explorer-shell-v3,
body[data-app="pc"].map-route-v5 .map-stage-v3 { height: 100%; min-height: 0; }
body[data-app="pc"].map-route-v5 .back-to-top { display: none; }
.map-province-sketch-v5 {
  opacity: .1;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.map-province-sketch-v5.active { opacity: .23; }
.map-handdraw-overlay-v4 { opacity: .34; }

/* V1.5 national-style graph: fixed scroll painting, floating filters, one-screen layout */
body[data-app="pc"].graph-route-v5 { height: 100dvh; overflow: hidden; }
body[data-app="pc"].graph-route-v5 #app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body[data-app="pc"].graph-route-v5 .museum-header,
body[data-app="pc"].graph-route-v5 .museum-footer-v3 { flex: 0 0 auto; }
body[data-app="pc"].graph-route-v5 .page-main {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: 108px minmax(0,1fr);
  overflow: hidden;
}
body[data-app="pc"].graph-route-v5 .graph-hero-v3 { min-height: 108px; }
body[data-app="pc"].graph-route-v5 .graph-page-v3 {
  min-height: 0;
  padding: 0 !important;
}
body[data-app="pc"].graph-route-v5 .graph-page-v3 > .content-fluid {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
}
body[data-app="pc"].graph-route-v5 .graph-canvas-v3,
body[data-app="pc"].graph-route-v5 .graph-stage-v3 { height: 100%; min-height: 0; }
body[data-app="pc"].graph-route-v5 .back-to-top { display: none; }
.graph-canvas-v3 {
  isolation: isolate;
  border: 0;
  background: #f1eadb;
  box-shadow: none;
}
.graph-fixed-backdrop-v5 {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #f1eadb;
}
.graph-fixed-backdrop-v5::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(255,251,239,.7) 0 27%, rgba(255,250,235,.38) 57%, rgba(245,237,218,.08) 100%),
    linear-gradient(180deg, rgba(255,252,242,.12), rgba(229,217,191,.12));
}
.graph-backdrop-image-v5 {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: .92;
  filter: brightness(1.02) saturate(.82) contrast(.94);
  transform: scale(1.015);
}
.graph-stage-v3 { position: relative; z-index: 2; background: transparent; }
.graph-filter-float-v5 {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 12;
  overflow: hidden;
  border: 1px solid rgba(72,92,78,.18);
  border-radius: 8px;
  background: rgba(255,250,236,.9);
  box-shadow: 0 10px 26px rgba(67,51,29,.12),inset 0 1px rgba(255,255,255,.9);
  backdrop-filter: blur(12px) saturate(.92);
}
.graph-filter-float-v5 button {
  min-height: 42px;
  padding: 0 15px;
  color: #4f625d;
  border-color: rgba(62,81,73,.14);
  font-size: 12px;
}
.graph-filter-float-v5 button.active { color: #fffaf0; background: #356f68; }
.graph-zoom-value-v3 {
  min-width: 58px;
  height: 44px;
  display: grid;
  place-items: center;
  padding-inline: 10px;
  border-right: 1px solid rgba(61,83,74,.14);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.graph-controls-v3 .graph-reset-view-v3 {
  width: auto;
  min-width: 84px;
  padding-inline: 14px;
  color: #9c4537;
  font-weight: 700;
}
.map-stage-fixed-v6 {
  overflow: hidden;
  cursor: default;
  touch-action: manipulation;
  user-select: none;
}
.graph-stage-back-v3 { top: 70px; border-radius: 7px; }
.graph-flow-particle-v3,
.graph-edge-particle { display: block !important; }
.graph-main-edge-v3 { animation: graphFlow 4.6s linear infinite !important; }
.graph-province-orbit-v3,
.graph-central-ring-v3 { animation: graphOrbit 16s linear infinite !important; }
.graph-orbit-edge-v3 { stroke: rgba(67,106,94,.34); }
.graph-project-node-v3 text {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .02em;
  fill: #263c37;
  stroke: rgba(252,248,235,.94);
  stroke-width: 3.6px;
}
.graph-project-halo-v3 { opacity: .13; }
.graph-province-core-v3 > circle:nth-child(2) {
  fill: rgba(255,250,235,.96) !important;
  stroke-width: 3;
  filter: drop-shadow(0 8px 10px rgba(65,48,25,.18));
}
.graph-province-core-v3 text:first-of-type { fill: #294d46; font-family: var(--display); font-size: 24px; }
.graph-province-core-v3 text:last-of-type { font-size: 14px; font-weight: 700; paint-order: stroke; stroke: rgba(255,250,237,.92); stroke-width: 3px; }
.graph-overview-note-v3 text { fill: #5f6f68; font-size: 13px; paint-order: stroke; stroke: rgba(255,250,237,.92); stroke-width: 3px; }
.graph-overview-note-v3 text:first-child { fill: #9a493b; font-weight: 800; }

/* Light Guochao graph — paper, mineral pigments and readable evidence paths */
.graph-stage-back-v3,
.graph-controls-v3 {
  color: #294c45;
  border-color: rgba(62,82,73,.2);
  background: rgba(255,250,237,.92);
  box-shadow: 0 10px 26px rgba(68,50,27,.12), inset 0 1px rgba(255,255,255,.9);
  backdrop-filter: blur(12px) saturate(.9);
}
.graph-controls-v3 button { color: #294c45; border-color: rgba(62,82,73,.14); }
.graph-controls-v3 button:hover { color: #fffaf0; background: #a64a3a; }
.graph-main-edge-v3 { opacity: .64; filter: none; }
.graph-flow-particle-v3,
.graph-edge-particle { filter: drop-shadow(0 0 4px rgba(255,250,230,.95)); }
.graph-river-station-v3 { stroke: #fff8e7; stroke-width: 3; }
.graph-project-node-v3 > circle:nth-of-type(2) { fill: #fffaf0; filter: drop-shadow(0 3px 4px rgba(54,47,32,.15)); }
.graph-province-orbit-v3 { opacity: .78; }
.graph-record-edge { stroke: #b88936; }
.graph-flow-edge.rel-location { stroke: #b85b47; }
.graph-flow-edge.rel-unit { stroke: #3f857c; }
.graph-flow-edge.rel-person { stroke: #786f8d; }
.graph-record-edge,
.graph-flow-edge { opacity: .72; filter: drop-shadow(0 1px 1px rgba(255,252,240,.8)); }
.graph-record-orb-v3 { color: #b88936; }
.graph-location-orb-v3 { color: #b85b47; }
.graph-unit-orb-v3 { color: #3f857c; }
.graph-person-orb-v3 { color: #786f8d; }
.graph-record-orb-v3 > circle:nth-child(2) { fill: #fff8e7; stroke: #b88936; }
.graph-location-orb-v3 > circle:nth-child(2) { fill: #fff4ea; stroke: #b85b47; }
.graph-person-orb-v3 > circle:nth-child(2) { fill: #f5f0f6; stroke: #786f8d; }
.graph-record-orb-v3 text,
.graph-location-orb-v3 text,
.graph-person-orb-v3 text { fill: #2d403b; font-size: 14px; paint-order: stroke; stroke: rgba(255,251,239,.92); stroke-width: 2px; }
.graph-record-orb-v3 text:first-of-type { font-size: 16px; }
.graph-unit-orb-v3 rect { fill: rgba(239,247,238,.96); stroke: #3f857c; }
.graph-unit-orb-v3 circle { fill: #3f857c; stroke: #fffaf0; stroke-width: 2; }
.graph-unit-orb-v3 text { fill: #294740; font-size: 14px; }
.graph-project-orb-v3 > circle:nth-child(2) { fill: #fff4df; stroke: #ae6e2e; filter: drop-shadow(0 8px 14px rgba(95,66,29,.18)); }
.graph-project-orb-v3 text { fill: #29423c; paint-order: stroke; stroke: rgba(255,250,237,.9); stroke-width: 2px; }
.graph-project-orb-v3 text:not(:first-of-type) { font-size: 14px; }
.graph-central-ring-v3 { stroke: #ae6e2e; }
.graph-lane-caption-v3 { fill: #846f57; font-size: 14px; font-weight: 700; paint-order: stroke; stroke: rgba(255,250,237,.92); stroke-width: 3px; }
.graph-focus-legend-v3 text { fill: #53645e; font-size: 14px; font-weight: 600; }
.graph-focus-legend-v3 circle:nth-of-type(1) { fill: #b88936; }
.graph-focus-legend-v3 circle:nth-of-type(2) { fill: #b85b47; }
.graph-focus-legend-v3 circle:nth-of-type(3) { fill: #3f857c; }
.graph-focus-legend-v3 circle:nth-of-type(4) { fill: #786f8d; }
.graph-orb-halo-v3 { opacity: .3; }
.graph-chain-node:hover .graph-orb-halo-v3,
.graph-chain-node:focus .graph-orb-halo-v3,
.graph-chain-node.selected .graph-orb-halo-v3 { opacity: .78; stroke-width: 4; }
.graph-inspector-v3 {
  color: #2d423c;
  border-color: rgba(83,72,51,.2);
  background: rgba(255,250,237,.96);
  box-shadow: 0 18px 44px rgba(68,50,27,.16);
}
.graph-inspector-v3::before { background: linear-gradient(90deg,#b85b47,#b88936,#3f857c); }
@media (prefers-reduced-motion: reduce) {
  .graph-main-edge-v3,
  .graph-province-orbit-v3,
  .graph-central-ring-v3 { animation: none !important; }
  .graph-flow-particle-v3,
  .graph-edge-particle { display: none !important; }
}

@media (max-width: 780px) {
  .map-mode-float-v4 { left: 10px; top: 10px; }
  .map-mode-float-v4 button { min-height: 40px; padding-inline: 12px; }
  .map-stage-v3 { height: 600px; min-height: 600px; }
  .map-stage-fixed-v6 { overflow: hidden; }
  .map-stage-fixed-v6 .map-art-svg-v3 { width: 100%; min-width: 0; height: 100%; }
  .map-detail-dock-v3 { top: auto; }
  .map-project-ticket { min-height: 68px; }
  .map-province-record-v4 text,
  .map-region-label-v4 text { font-size: 12px; }
  .graph-filter-float-v5 { left: 10px; top: 10px; max-width: calc(100% - 20px); }
  .graph-filter-float-v5 button { min-height: 40px; padding-inline: 9px; }
  .graph-stage-back-v3 { left: 10px; top: 62px; }
  .graph-controls-v3 .graph-reset-view-v3 { min-width: 76px; padding-inline: 10px; }
}

/* V1.7 illustrated atlas layer: fixed oblique guochao landscape beneath live map data */
.map-atlas-background-v7 {
  pointer-events: none;
  opacity: .96;
  filter: brightness(1.01) saturate(.9) contrast(1.04);
}
.map-atlas-wash-v7 {
  pointer-events: none;
  fill: rgba(250,247,234,.06);
}
.map-landscape-decor-v3 { display: none; }
.map-province-shape-v3:not(.active) {
  opacity: 1;
  fill-opacity: .46;
  filter: saturate(.72);
}
.map-province-shape-v3:not(.active):hover {
  opacity: 1;
  fill-opacity: .64;
  filter: saturate(.95);
}
.map-province-shape-v3.active {
  opacity: 1;
  fill-opacity: .78;
  filter: saturate(1.16) drop-shadow(0 12px 14px rgba(70,52,30,.2));
}
.map-province-sketch-v5 { opacity: .04; }
.map-province-sketch-v5.active { opacity: .1; }
.map-handdraw-overlay-v4 { opacity: .16; }

@media (min-width: 781px) {
  .map-detail-dock-v3 { width: 330px; }
}

/* V1.8 stable global header and unified Chinese section bands */
html { scrollbar-gutter: stable; }
:root {
  --header-h: 76px;
  --content: min(1380px, calc(100% - 72px));
}
.museum-header {
  height: var(--header-h);
  min-height: var(--header-h);
  padding: 0;
}
.header-inner {
  height: var(--header-h);
  gap: 32px;
}
.desktop-nav {
  height: 100%;
  gap: 4px;
}
.desktop-nav a {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .035em;
  transform: none;
}
.desktop-nav a::after {
  left: 14px;
  right: 14px;
  bottom: 14px;
}
.desktop-nav a:active,
.desktop-nav a.is-pressing { transform: none !important; }
.page-title-band,
.page-heading.page-title-band,
.graph-hero-v3.page-title-band,
.map-hero-v3.page-title-band {
  height: 108px;
  min-height: 108px;
  padding: 0;
}
.page-title-band > .content-width,
.page-title-band > .content-fluid {
  grid-template-columns: minmax(0,1fr) minmax(320px,470px);
  gap: 46px;
}
.page-title-band .eyebrow {
  margin: 0 0 6px;
  color: #8d3c31;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .14em;
}
.page-title-band h1,
.page-heading.page-title-band h1,
.graph-hero-v3.page-title-band h1,
.map-hero-v3.page-title-band h1 {
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -.015em;
}
.page-title-band > div > p,
.page-heading.page-title-band p,
.graph-hero-v3.page-title-band .content-fluid > p,
.map-hero-v3.page-title-band .content-fluid > p {
  font-size: 14px;
  line-height: 1.65;
}
.page-heading.page-title-band .eyebrow,
.graph-hero-v3.page-title-band .eyebrow,
.map-hero-v3.page-title-band .eyebrow {
  margin: 0 0 6px;
  color: #8d3c31;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .14em;
}

@media (max-width: 780px) {
  :root { --header-h: 62px; --content: calc(100% - 32px); }
  .page-title-band,
  .page-heading.page-title-band,
  .graph-hero-v3.page-title-band,
  .map-hero-v3.page-title-band { height: 100px; min-height: 100px; padding: 0; }
  .page-title-band > .content-width,
  .page-title-band > .content-fluid { grid-template-columns: 1fr; gap: 5px; }
  .page-title-band h1,
  .page-heading.page-title-band h1,
  .graph-hero-v3.page-title-band h1,
  .map-hero-v3.page-title-band h1 { font-size: 30px; }
}
