:root {
  --bg-overlay: rgba(0, 0, 0, 0.6);
  --text-color: #f5f7fa;
  --muted-text: #d2d6dc;
  --brand: #5aa9e6;
  --brand-strong: #2d7dd2;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.16);
  --border: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", system-ui, -apple-system, Segoe UI, Roboto, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  color: var(--text-color);
  background-color: #0b1020;
  /* 允许页面覆写背景图：body 上可设置 --page-bg */
  background-image: linear-gradient(var(--bg-overlay), var(--bg-overlay)), var(--page-bg, url('u=261370562,2437234825&fm=253&fmt=auto&app=138&f=JPEG.webp'));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  max-width: min(1100px, calc(100vw - 24px));
  margin: 0 auto;
}

@media (max-width: 480px) {
  .container {
    width: min(1100px, calc(100vw - 20px));
  }
}

/* ---------- 响应式：全站正文区与图片同宽、比例完整、随屏缩放 ---------- */
html {
  overflow-x: hidden;
}

main {
  min-width: 0;
}

/* 主内容区多为 <main class="container">：宽度与视口一致（全屏正文列）、防横向溢出 */
main.container {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* 默认：流式图片保持固有宽高比（更具体的选择器会覆盖地图缩略图等） */
main img,
main video {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: linear-gradient(135deg, rgba(25, 61, 147, 0.75) 0%, rgba(44, 100, 184, 0.75) 50%, rgba(62, 153, 227, 0.75) 100%);
  border-bottom: 1px solid var(--border);
}

/* 导览图页面标题栏 - 删除颜色渐变 */
.site-header--map {
  background: rgba(0, 0, 0, 0.5) !important;
}

.site-title {
  margin: 0;
  padding: 16px 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.site-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0 0 12px;
  margin: 0;
}

.site-nav a {
  display: inline-block;
  color: var(--muted-text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
}

.site-nav a[aria-current="page"],
.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  background: var(--surface);
}

/* 搜索功能样式 */
.search-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--muted-text);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-button:hover,
.search-button:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.search-button-icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

/* 搜索模态框 */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.search-modal-content {
  position: relative;
  width: min(90%, 600px);
  max-height: calc(100vh - 160px);
  background: linear-gradient(135deg, rgba(25, 61, 147, 0.95) 0%, rgba(44, 100, 184, 0.95) 50%, rgba(62, 153, 227, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.2s ease;
}

.search-modal.active .search-modal-content {
  transform: translateY(0);
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0.6;
  pointer-events: none;
}

#searchInput {
  width: 100%;
  padding: 12px 16px 12px 48px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

#searchInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#searchInput:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-close-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-close-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.search-close-icon {
  width: 20px;
  height: 20px;
}

.search-results {
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding: 8px;
  display: none;
}

.search-results::-webkit-scrollbar {
  width: 8px;
}

.search-results::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.search-result-content {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.search-result-title mark {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 700;
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  flex-wrap: wrap;
}

.search-result-building,
.search-result-floor,
.search-result-category {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-size: 12px;
}

.search-result-keywords {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.search-result-arrow {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-result-item:hover .search-result-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.search-result-empty {
  padding: 40px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.search-result-empty p {
  margin: 0;
  font-size: 15px;
}

.search-result-empty strong {
  color: #fff;
  font-weight: 600;
}

/* 搜索快捷键提示 */
.search-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .search-modal {
    padding-top: 40px;
  }
  
  .search-modal-content {
    width: 95%;
    max-height: calc(100vh - 80px);
  }
  
  .search-modal-header {
    padding: 16px;
  }
  
  #searchInput {
    font-size: 16px; /* 防止iOS缩放 */
  }
  
  .search-results {
    max-height: calc(100vh - 200px);
  }
  
  .search-result-item {
    padding: 10px 12px;
  }
  
  .search-result-title {
    font-size: 15px;
  }
  
  .search-shortcut {
    display: none;
  }
}

.hero {
  margin: 40px 0 20px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(25, 61, 147, 0.9) 0%, rgba(44, 100, 184, 0.9) 50%, rgba(62, 153, 227, 0.9) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* 首页顶部标题与简介区 */
.home-hero {
  margin: 48px 0 40px;
  padding: 28px 24px;
  background: linear-gradient(135deg, rgba(25, 61, 147, 0.9) 0%, rgba(44, 100, 184, 0.9) 50%, rgba(62, 153, 227, 0.9) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.project-title {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 700;
}

.project-intro {
  margin: 10px 0 0;
  color: var(--muted-text);
  font-size: 16px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.section-header h2 {
  margin: 16px 0 0;
  font-size: 20px;
}

.section-subtitle {
  margin: 16px 0 0;
  color: var(--muted-text);
}

.gallery-grid {
  margin: 16px 0 48px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.gallery-item {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  outline-offset: 2px;
}

.gallery-item img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 160ms ease;
  background: rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  position: relative;
  max-width: min(92vw, 1100px);
}

.lightbox-image {
  max-height: 80vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
  margin-top: 10px;
  text-align: center;
  color: var(--muted-text);
}

/* 入口卡片样式（首页导览入口、导览页的各入口复用） */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 60px;
}

/* 首页导览入口：宽度占页面 60% */
.entry-grid--wide {
  grid-template-columns: 1fr;
}

.entry-grid--wide .entry-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

  .entry-card {
    display: block;
    background: linear-gradient(135deg, rgba(25, 61, 147, 0.35) 0%, rgba(44, 100, 184, 0.35) 50%, rgba(62, 153, 227, 0.35) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(25, 61, 147, 0.2);
    transition: all 0.3s ease;
  }

  .entry-card:hover {
    background: linear-gradient(135deg, rgba(25, 61, 147, 0.5) 0%, rgba(44, 100, 184, 0.5) 50%, rgba(62, 153, 227, 0.5) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(62, 153, 227, 0.3);
    transform: translateY(-2px);
  }

.entry-media {
  position: relative;
  overflow: hidden;
}

.entry-media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: rgba(0, 0, 0, 0.2);
  transition: transform 200ms ease;
}

.entry-card:hover .entry-media img,
.entry-card:focus-visible .entry-media img {
  transform: scale(1.04);
}

/* 首页导览大卡片：图片自适应 16:9 并覆盖裁剪 */
.entry-grid--wide .entry-media {
  aspect-ratio: 16 / 9;
}

.entry-grid--wide .entry-media img {
  height: 100%;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.entry-body {
  padding: 12px 14px 14px;
  background: rgba(0, 0, 0, 0.25);
}

.entry-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
}

.lightbox-prev,
.lightbox-next,
.lightbox-close {
  position: absolute;
  background: var(--surface-strong);
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lightbox-close {
  top: 12px;
  right: 12px;
  font-size: 22px;
}

.lightbox-prev {
  left: -56px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
}

.lightbox-next {
  right: -56px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
}

.site-footer {
  margin: 40px 0;
  color: var(--muted-text);
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .entry-grid { grid-template-columns: repeat(2, 1fr); }
  .entry-grid--wide .entry-card { width: 70vw; }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .entry-grid { grid-template-columns: 1fr; }
  .entry-grid--wide .entry-card { width: 100%; max-width: 100%; }
}

/* 嵌入式媒体通用比例盒 */
.ratio-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.ratio-box > iframe,
.ratio-box > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 文本内容块 */
.content-card {
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(25, 61, 147, 0.75) 0%, rgba(44, 100, 184, 0.75) 50%, rgba(62, 153, 227, 0.75) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
}
/* 地图层切换控制按钮 */
.map-layer-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.map-layer-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(25, 61, 147, 0.5) 0%, rgba(44, 100, 184, 0.5) 50%, rgba(62, 153, 227, 0.5) 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  min-width: 120px;
}

.map-layer-btn:hover {
  background: linear-gradient(135deg, rgba(25, 61, 147, 0.7) 0%, rgba(44, 100, 184, 0.7) 50%, rgba(62, 153, 227, 0.7) 100%);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.map-layer-btn.active {
  background: linear-gradient(135deg, rgba(25, 61, 147, 0.9) 0%, rgba(44, 100, 184, 0.9) 50%, rgba(62, 153, 227, 0.9) 100%);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(62, 153, 227, 0.4);
}

.map-layer-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .map-layer-btn:hover {
    transform: none;
  }
  
  .map-layer-btn:active {
    transform: scale(0.98);
    background: linear-gradient(135deg, rgba(25, 61, 147, 0.9) 0%, rgba(44, 100, 184, 0.9) 50%, rgba(62, 153, 227, 0.9) 100%);
  }
}

/* 响应式：切换按钮 */
@media (max-width: 768px) {
  .map-layer-controls {
    gap: 8px;
    margin-bottom: 16px;
  }
  
  .map-layer-btn {
    padding: 10px 20px;
    font-size: 14px;
    min-width: 100px;
    flex: 1;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .map-layer-controls {
    flex-direction: column;
    gap: 8px;
  }
  
  .map-layer-btn {
    width: 100%;
    max-width: 100%;
    padding: 12px 20px;
    font-size: 15px;
  }
}

/* 地图容器（高度由内部导览图撑开，不强制 min-height，避免与底图比例不一致） */
.map-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  box-sizing: border-box;
}

/* 地图右下角工具栏：隐藏窗口、全屏、退出全屏 */
.map-toolbar {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
}

.map-toolbar > * {
  pointer-events: auto;
}

.map-toolbar-btn {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(6px);
}

.map-toolbar-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.6);
}

.map-toolbar-btn--icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.map-toolbar-btn--icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* map.html：不设与主图重复的全屏背景图，避免同一张导览图被加载两次 */
body.map-page-body {
  background-image: linear-gradient(var(--bg-overlay), var(--bg-overlay));
  background-color: #0b1020;
  background-attachment: scroll;
}

/* 校园导览图页 map.html：与次级导览页相同的 map-container + map-layer 结构 */
.map-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.map-page .map-container {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
  position: relative;
}

.map-page .map-layer.active {
  width: 100%;
  position: relative;
}

.map-page .map-container .map-canvas {
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
}

/* 工具栏置于导览图下方空白处（不覆盖地图） */
.map-toolbar.map-toolbar--below {
  position: static;
  inset: auto;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 14px 10px 22px;
  margin: 10px 0 0;
  gap: 12px;
  flex-wrap: wrap;
  pointer-events: auto;
  z-index: 2;
}

@media (max-width: 640px) {
  .map-toolbar.map-toolbar--below {
    padding: 12px 6px 18px;
    margin-top: 8px;
    gap: 10px;
  }

  .map-toolbar.map-toolbar--below .map-toolbar-btn {
    padding: 10px 16px;
    font-size: 14px;
    min-height: 44px;
  }

  .map-toolbar.map-toolbar--below .map-toolbar-btn--icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .map-toolbar.map-toolbar--below .map-toolbar-btn--icon svg {
    width: 20px;
    height: 20px;
  }

  .map-page .map-container .map-canvas {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .map-page .map-container .map-canvas {
    border-radius: 10px;
  }

  .map-toolbar.map-toolbar--below {
    flex-direction: column;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }

  .map-toolbar.map-toolbar--below .map-toolbar-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* 全屏时地图占满屏幕，窗口与地图等比例放大 */
.map-container:fullscreen,
.map-container:-webkit-full-screen {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 100%;
  background: #0b1020;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.map-container:fullscreen .map-layer,
.map-container:-webkit-full-screen .map-layer {
  position: absolute;
  inset: 0;
  display: none;
}

.map-container:fullscreen .map-layer.active,
.map-container:-webkit-full-screen .map-layer.active {
  display: block;
  position: relative;
  flex: 1;
  min-height: 0;
}

.map-container:fullscreen .map-canvas,
.map-container:-webkit-full-screen .map-canvas {
  display: block;
  width: fit-content;
  width: -moz-fit-content;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
}

.map-container:fullscreen .map-canvas img,
.map-container:-webkit-full-screen .map-canvas img {
  display: block;
  width: auto;
  height: 100%;
  max-height: 100%;
  object-fit: none;
}

.map-container:fullscreen .map-toolbar,
.map-container:-webkit-full-screen .map-toolbar {
  flex-shrink: 0;
  position: relative;
  bottom: auto;
  right: auto;
  margin-top: auto;
  padding: 12px;
}

/* 全屏时热点窗口内缩略图完整展示（不固定 16:9，按图片比例自适应高度） */
.map-container:fullscreen .map-hotspot .entry-media,
.map-container:-webkit-full-screen .map-hotspot .entry-media {
  aspect-ratio: auto;
  height: auto;
  overflow: visible;
}

.map-container:fullscreen .map-hotspot .entry-media img,
.map-container:-webkit-full-screen .map-hotspot .entry-media img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

.map-container:fullscreen .map-hotspot:hover .entry-media img,
.map-container:fullscreen .map-hotspot:focus-visible .entry-media img,
.map-container:-webkit-full-screen .map-hotspot:hover .entry-media img,
.map-container:-webkit-full-screen .map-hotspot:focus-visible .entry-media img {
  transform: none;
}

/* 无分层时（如甄陶楼、大礼堂）全屏下 map-canvas 直接撑满 */
.map-container:fullscreen > .map-canvas,
.map-container:-webkit-full-screen > .map-canvas {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: block;
  width: fit-content;
  width: -moz-fit-content;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  overflow-y: hidden;
}

.map-container:fullscreen > .map-canvas img,
.map-container:-webkit-full-screen > .map-canvas img {
  display: block;
  width: auto;
  height: 100%;
  max-height: 100%;
  object-fit: none;
}

/* 手机全屏：放大导览图后可拖动（层内滚动），热点相对画布比例不变 */
@media (max-width: 1024px) {
  .map-container.map-fullscreen-pan--active:fullscreen,
  .map-container.map-fullscreen-pan--active:-webkit-full-screen {
    overflow: hidden;
  }

  .map-container.map-fullscreen-pan--active:fullscreen .map-layer.active,
  .map-container.map-fullscreen-pan--active:-webkit-full-screen .map-layer.active {
    flex: 1;
    min-height: 0;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
  }

  .map-container.map-fullscreen-pan--active:fullscreen .map-canvas,
  .map-container.map-fullscreen-pan--active:-webkit-full-screen .map-canvas {
    flex: none !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    /* 宽、高由 map-pan-fullscreen.js 内联设置（高度=可视区高，宽度=图片比例） */
  }

  .map-container.map-fullscreen-pan--active:fullscreen .map-canvas img,
  .map-container.map-fullscreen-pan--active:-webkit-full-screen .map-canvas img {
    display: block !important;
    width: auto !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: none !important;
  }
}

/* 隐藏窗口时热点不可见且不可点 */
.map-container.hotspots-hidden .map-hotspot,
.map-canvas.hotspots-hidden .map-hotspot {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 地图层 */
.map-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.map-layer.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 小屏：非激活层仍绝对定位，避免占位；激活层参与文档流撑开高度 */
@media (max-width: 1024px) {
  .map-layer {
    position: absolute;
  }

  .map-layer.active {
    position: relative;
  }
}

/* 导览画布与热点：底图完整 contain 缩放，热点用 cqw 与画布同比例 */
.map-canvas {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  container-type: inline-size;
  container-name: map-canvas;
  box-sizing: border-box;
}

.map-canvas picture {
  display: block;
  width: 100%;
}

.map-canvas img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: rgba(0, 0, 0, 0.15);
}

/* 不支持容器查询单位时，用百分比宽度近似与画布同比例（与下方 --hotspot-scale 配套） */
@supports not (width: 1cqw) {
  .map-hotspot {
    width: 18%;
    min-width: max(12%, 44px);
    max-width: 22%;
  }

  .map-hotspot .entry-title {
    font-size: clamp(11px, 2.8vw, 17px);
  }

  .map-hotspot .entry-body {
    padding: 6px 8px 8px;
  }
}

@media (max-width: 640px) {
  .map-layer .map-canvas {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .map-layer .map-canvas {
    border-radius: 10px;
  }
}

/* 横屏模式优化 */
@media (max-width: 1024px) and (orientation: landscape) {
  .map-layer-controls {
    margin-bottom: 12px;
  }
}

/* 确保地图层切换时的平滑过渡 */
.map-layer .map-canvas {
  will-change: opacity;
}

.map-layer.active .map-canvas {
  will-change: auto;
}

/* 热点卡片：cqw 随画布变；--hotspot-scale 沿用原响应式比例整体缩小窗口 */
.map-hotspot {
  --hotspot-scale: 0.6;
  position: absolute;
  box-sizing: border-box;
  width: min(18cqw, 240px);
  max-width: min(22cqw, 280px);
  min-width: max(12cqw, 44px);
  transform: translate(-50%, -50%) scale(var(--hotspot-scale));
  background: linear-gradient(135deg, rgba(25, 61, 147, 0.35) 0%, rgba(44, 100, 184, 0.35) 50%, rgba(62, 153, 227, 0.35) 100%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(25, 61, 147, 0.2);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

@media (max-width: 899px) and (min-width: 641px) {
  .map-hotspot {
    --hotspot-scale: 0.5;
  }
}

@media (max-width: 640px) {
  .map-hotspot {
    --hotspot-scale: 0.4;
  }
}

@media (max-width: 480px) {
  .map-hotspot {
    --hotspot-scale: 0.35;
  }
}

.map-hotspot:hover {
  background: linear-gradient(135deg, rgba(25, 61, 147, 0.5) 0%, rgba(44, 100, 184, 0.5) 50%, rgba(62, 153, 227, 0.5) 100%);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(62, 153, 227, 0.3);
  transform: translate(-50%, -50%) scale(calc(var(--hotspot-scale) * 1.05));
}

.map-hotspot .entry-media {
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.2);
}

.map-hotspot .entry-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.map-hotspot .entry-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.map-hotspot .entry-body {
  padding: clamp(4px, 1.2cqw, 10px) clamp(5px, 1.5cqw, 12px) clamp(6px, 1.6cqw, 12px);
  background: rgba(0, 0, 0, 0.3);
}

.map-hotspot .entry-title {
  font-size: clamp(11px, 3.6cqw, 17px);
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
}

.map-hotspot:hover .entry-media img,
.map-hotspot:focus-visible .entry-media img {
  transform: scale(1.04);
}

/* 仅总务楼内部导览页：二层窗口在热点比例上再 ×0.85 */
.leaf-06-map #layer2 .map-hotspot {
  transform: translate(-50%, -50%) scale(calc(var(--hotspot-scale) * 0.85));
}

.leaf-06-map #layer2 .map-hotspot:hover {
  transform: translate(-50%, -50%) scale(calc(var(--hotspot-scale) * 0.85 * 1.05));
}

/* 仅大礼堂内部导览页：第一层窗口在热点比例上再 ×0.85 */
.leaf-08-map #layer1 .map-hotspot {
  transform: translate(-50%, -50%) scale(calc(var(--hotspot-scale) * 0.85));
}

.leaf-08-map #layer1 .map-hotspot:hover {
  transform: translate(-50%, -50%) scale(calc(var(--hotspot-scale) * 0.85 * 1.05));
}

@media (max-width: 480px) {
  .map-layer-controls {
    flex-direction: column;
    gap: 8px;
  }

  .map-layer-btn {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
  }
}

.content-card h3 {
  margin-top: 0;
}

/* 博物馆风格布局：单列，侧栏为横向导航条，「文字介绍 / 景象展示」气泡与主内容区同宽 */
.museum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin: 24px 0;
  width: 100%;
  min-width: 0;
}

.museum-hero {
  grid-column: 1 / -1;
  position: relative;
  width: 100%;
  height: auto;
  min-height: 160px;
  max-height: min(48vh, 440px);
  aspect-ratio: 2.4 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.museum-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.7;
}

.museum-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.museum-hero h2 {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.museum-hero p {
  margin: 0;
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

.museum-sidebar {
  background: linear-gradient(135deg, rgba(25, 61, 147, 0.75) 0%, rgba(44, 100, 184, 0.75) 50%, rgba(62, 153, 227, 0.75) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: fit-content;
  position: static;
}

.museum-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.museum-nav li {
  margin: 0;
}

.museum-nav a {
  display: block;
  color: var(--muted-text);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 200ms ease;
}

.museum-nav a:hover,
.museum-nav a.active {
  background: var(--brand);
  color: #fff;
}

.museum-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.museum-section {
  background: linear-gradient(135deg, rgba(25, 61, 147, 0.75) 0%, rgba(44, 100, 184, 0.75) 50%, rgba(62, 153, 227, 0.75) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  scroll-margin-top: 120px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.museum-section h3 {
  margin: 0 0 20px;
  font-size: 24px;
  color: var(--brand-strong);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 8px;
}

.museum-section p {
  margin: 16px 0;
  line-height: 1.7;
  color: var(--text-color);
}

.museum-media {
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* 景象展示：单张静态图与段落同宽，完整比例缩放 */
.museum-media > img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 视频播放器样式优化 */
.museum-media video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  background: #000;
  border-radius: 12px;
}

.museum-media iframe {
  width: 100%;
  max-width: 100%;
  display: block;
  border: 0;
  border-radius: 12px;
}

.museum-media video:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* 视频加载状态 */
.video-loading {
  position: relative;
  min-height: 300px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 12px;
}

.video-loading::before {
  content: "加载中...";
  font-size: 16px;
  opacity: 0.7;
}

.video-error {
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-align: center;
  border-radius: 12px;
}

.video-error p {
  margin: 10px 0;
  color: #ff6b6b;
}

.video-error small {
  display: block;
  margin-top: 10px;
  opacity: 0.7;
  font-size: 14px;
}

/* 图片轮播样式 */
.image-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-sizing: border-box;
}

.carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-nav--prev {
  left: 16px;
}

.carousel-nav--next {
  right: 16px;
}

.carousel-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.carousel-indicator.active {
  background: #fff;
  width: 24px;
  border-radius: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .carousel-nav--prev {
    left: 8px;
  }
  
  .carousel-nav--next {
    right: 8px;
  }
  
  .carousel-indicators {
    bottom: 12px;
  }
  
  .carousel-indicator {
    width: 8px;
    height: 8px;
  }
  
  .carousel-indicator.active {
    width: 20px;
  }
}

/* 全景轮播容器 */
.panorama-carousel {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.panorama-viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.panorama-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  z-index: 10;
}

.panorama-nav:hover {
  background: rgba(0,0,0,0.9);
  transform: translateY(-50%) scale(1.1);
}

.panorama-nav.prev {
  left: 16px;
}

.panorama-nav.next {
  right: 16px;
}

.panorama-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.panorama-nav:disabled:hover {
  transform: translateY(-50%);
  background: rgba(0,0,0,0.7);
}

.panorama-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.panorama-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.panorama-indicator.active {
  background: #fff;
  transform: scale(1.2);
}

.panorama-thumbnails {
  display: flex;
  gap: 8px;
  padding: 16px;
  background: rgba(0,0,0,0.8);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.panorama-thumbnails::-webkit-scrollbar {
  display: none;
}

.panorama-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.panorama-thumb:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.panorama-thumb.active {
  opacity: 1;
  border-color: var(--brand);
  transform: scale(1.1);
}

.panorama-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panorama-title {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
  text-align: center;
}

/* 全景切换动画 */
.panorama-viewer .pnlm-container {
  transition: opacity 0.5s ease;
}

.panorama-viewer.loading .pnlm-container {
  opacity: 0.3;
}

.panorama-viewer.loading::after {
  content: "加载中...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 16px;
  z-index: 20;
}

/* 大屏幕 (桌面) */
@media (min-width: 1200px) {
  .museum-layout {
    gap: 32px;
  }
  .museum-hero {
    max-height: min(52vh, 440px);
  }
  .museum-hero h2 {
    font-size: 36px;
  }
  .museum-hero p {
    font-size: 16px;
  }
  .museum-section {
    padding: 28px;
  }
  .museum-section h3 {
    font-size: 24px;
  }
  .museum-section p {
    font-size: 16px;
  }
  .museum-nav a {
    padding: 12px 16px;
    font-size: 15px;
  }
  .panorama-title {
    font-size: 14px;
  }
}

/* 中等屏幕 (平板横屏) */
@media (max-width: 1199px) and (min-width: 900px) {
  .museum-layout {
    gap: 28px;
  }
  .museum-hero {
    max-height: min(48vh, 400px);
  }
  .museum-hero h2 {
    font-size: 32px;
  }
  .museum-hero p {
    font-size: 15px;
  }
  .museum-section {
    padding: 24px;
  }
  .museum-section h3 {
    font-size: 22px;
  }
  .museum-section p {
    font-size: 15px;
  }
  .museum-nav a {
    padding: 10px 14px;
    font-size: 14px;
  }
  .panorama-title {
    font-size: 13px;
  }
}

/* 小屏幕 (平板竖屏) */
@media (max-width: 899px) and (min-width: 641px) {
  .museum-layout {
    gap: 24px;
  }
  .museum-sidebar {
    padding: 20px;
  }
  .museum-hero {
    max-height: min(44vh, 360px);
  }
  .museum-hero h2 {
    font-size: 28px;
  }
  .museum-hero p {
    font-size: 14px;
  }
  .museum-section {
    padding: 20px;
  }
  .museum-section h3 {
    font-size: 20px;
  }
  .museum-section p {
    font-size: 14px;
  }
  .museum-nav a {
    padding: 8px 12px;
    font-size: 13px;
  }
  .panorama-title {
    font-size: 12px;
  }
}

/* 手机屏幕 */
@media (max-width: 640px) {
  .museum-layout {
    gap: 20px;
    margin: 16px 0;
  }
  .museum-sidebar {
    padding: 16px;
  }
  .museum-hero {
    max-height: min(40vh, 300px);
    aspect-ratio: 2 / 1;
  }
  .museum-hero-content {
    padding: 20px;
  }
  .museum-hero h2 {
    font-size: 24px;
  }
  .museum-hero p {
    font-size: 13px;
  }
  .museum-section {
    padding: 16px;
  }
  .museum-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }
  .museum-section p {
    font-size: 13px;
    margin: 12px 0;
  }
  .museum-nav {
    gap: 6px;
  }
  .museum-nav a {
    padding: 6px 10px;
    font-size: 12px;
  }
  .panorama-title {
    font-size: 11px;
    padding: 6px 10px;
  }
  .panorama-nav {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .panorama-indicators {
    bottom: 8px;
  }
  .panorama-indicator {
    width: 8px;
    height: 8px;
  }
  .panorama-thumbnails {
    padding: 8px;
    gap: 6px;
  }
  .panorama-thumb {
    width: 40px;
    height: 30px;
  }
}

/* 超小屏幕 */
@media (max-width: 480px) {
  .museum-layout {
    gap: 16px;
    margin: 12px 0;
  }
  .museum-sidebar {
    padding: 12px;
  }
  .museum-hero {
    max-height: min(38vh, 260px);
    aspect-ratio: 1.9 / 1;
  }
  .museum-hero-content {
    padding: 16px;
  }
  .museum-hero h2 {
    font-size: 20px;
  }
  .museum-hero p {
    font-size: 12px;
  }
  .museum-section {
    padding: 12px;
  }
  .museum-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .museum-section p {
    font-size: 12px;
    margin: 10px 0;
  }
  .museum-nav {
    gap: 4px;
  }
  .museum-nav a {
    padding: 5px 8px;
    font-size: 11px;
  }
  .panorama-title {
    font-size: 10px;
    padding: 4px 8px;
  }
  .panorama-nav {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .panorama-indicators {
    bottom: 6px;
  }
  .panorama-indicator {
    width: 6px;
    height: 6px;
  }
  .panorama-thumbnails {
    padding: 6px;
    gap: 4px;
  }
  .panorama-thumb {
    width: 32px;
    height: 24px;
  }
}

/* ---------- 手机端导览页首次提示：遮罩 + 闪烁文案 ---------- */
@media (max-width: 768px) {
  body.map-guide-hint-open {
    overflow: hidden;
    touch-action: none;
  }

  .map-guide-hint-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .map-guide-hint-text {
    margin: 0;
    max-width: 20em;
    text-align: center;
    font-size: clamp(17px, 4.8vw, 22px);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
    animation: map-guide-hint-flash 1.35s ease-in-out infinite;
  }

  .map-guide-hint-sub {
    margin: 0;
    font-size: clamp(13px, 3.4vw, 15px);
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
  }

  @keyframes map-guide-hint-flash {
    0%,
    100% {
      opacity: 0.28;
    }
    50% {
      opacity: 1;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .map-guide-hint-text {
      animation: none;
      opacity: 0.88;
    }
  }
}


