/* ============================================================
   巩义宋陵 · 石刻史诗  主站样式表
   黑金石刻史诗主题 · 桌面端 & 移动端完整响应式适配
   ============================================================ */

:root {
  --color-bg-deep: #050608;
  --color-bg-map: #0e1217;
  --color-bg-panel: rgba(14, 16, 20, 0.88);
  --color-bg-modal: #0f1115;

  --color-gold-bright: #e5c07b;
  --color-gold-main: #c99c52;
  --color-gold-dark: #8c774f;
  --color-gold-muted: rgba(201, 156, 82, 0.22);
  --color-seal-red: #8b2b2b;

  --color-text-primary: #d9d0c1;
  --color-text-secondary: #8c8374;

  --map-road-primary: #9b6b3a;
  --map-road-secondary: #806249;
  --map-road-local: #5d5a55;
  --map-road-express: #705b75;
  --map-landmark: #93c7bb;

  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-cursive: "Ma Shan Zheng", "STKaiti", "KaiTi", "FangSong", serif;
  --font-sans: "Noto Serif SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--color-bg-deep);
  color: var(--color-text-primary);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

button, a {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}

/* ==================== 漂浮云雾氛围层 ==================== */
.fog-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 150;
  overflow: hidden;
  opacity: 0.32;
}

.fog-layer {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  background-repeat: repeat-x;
  will-change: transform;
}

.fog-1 {
  background:
    radial-gradient(ellipse 42% 30% at 22% 35%, rgba(201, 156, 82, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 35% at 75% 68%, rgba(147, 199, 187, 0.10), transparent 72%);
  animation: fogDriftA 46s linear infinite alternate;
}

.fog-2 {
  background:
    radial-gradient(ellipse 46% 34% at 65% 24%, rgba(229, 192, 123, 0.10), transparent 72%),
    radial-gradient(ellipse 55% 40% at 30% 78%, rgba(120, 145, 165, 0.12), transparent 75%);
  animation: fogDriftB 58s linear infinite alternate;
}

@keyframes fogDriftA {
  0% { transform: translate3d(-4%, -2%, 0) scale(1); }
  100% { transform: translate3d(4%, 3%, 0) scale(1.06); }
}

@keyframes fogDriftB {
  0% { transform: translate3d(5%, 2%, 0) scale(1.04); }
  100% { transform: translate3d(-5%, -3%, 0) scale(1); }
}

/* ==================== 电影感金边按钮 ==================== */
.btn-cinematic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 148px;
  padding: 13px 28px;
  background: rgba(15, 17, 20, 0.72);
  border: 1px solid rgba(201, 156, 82, 0.55);
  color: var(--color-gold-bright);
  font-size: 16px;
  letter-spacing: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.btn-cinematic::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 85%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(229, 192, 123, 0.28), transparent);
  transition: left 0.65s ease;
}

.btn-cinematic:hover {
  border-color: var(--color-gold-bright);
  background: rgba(201, 156, 82, 0.14);
  box-shadow: 0 0 22px rgba(201, 156, 82, 0.22);
}

.btn-cinematic:hover::before {
  left: 140%;
}

.btn-cinematic:active {
  transform: translateY(1px);
}

/* 主推 3D 漫游金底按钮 */
.btn-cinematic.btn-tour-primary {
  background: linear-gradient(135deg, rgba(201, 156, 82, 0.26) 0%, rgba(140, 119, 79, 0.18) 100%);
  border-color: var(--color-gold-bright);
  color: #f6e3ba;
  box-shadow: 0 0 18px rgba(201, 156, 82, 0.20), inset 0 0 12px rgba(229, 192, 123, 0.08);
}

.btn-cinematic.btn-tour-primary:hover {
  background: linear-gradient(135deg, rgba(229, 192, 123, 0.38) 0%, rgba(201, 156, 82, 0.26) 100%);
  box-shadow: 0 0 28px rgba(229, 192, 123, 0.35);
  color: #fff6e0;
}

.btn-cinematic svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ==================== 1. 开屏序幕 ==================== */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at center, #171a20 0%, #090a0d 55%, #020304 100%);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.8s ease;
}

#intro-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-content {
  max-width: 800px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: introReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes introReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.intro-seal {
  font-family: var(--font-cursive);
  font-size: 46px;
  color: var(--color-seal-red);
  opacity: 0.86;
  letter-spacing: 8px;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(139, 43, 43, 0.35);
}

.intro-title {
  font-family: var(--font-cursive);
  font-size: clamp(48px, 8vw, 76px);
  font-weight: 400;
  color: var(--color-gold-bright);
  letter-spacing: 16px;
  padding-left: 16px;
  line-height: 1.15;
  text-shadow: 0 0 28px rgba(229, 192, 123, 0.36), 0 4px 16px rgba(0, 0, 0, 0.85);
}

.intro-subtitle {
  margin-top: 16px;
  font-size: clamp(15px, 2.2vw, 20px);
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: 6px;
}

.intro-poem {
  margin: 42px 0 48px;
  font-size: 15px;
  line-height: 2.3;
  color: var(--color-text-primary);
  opacity: 0.9;
  letter-spacing: 1.5px;
}

.intro-btn {
  padding: 15px 46px;
  font-size: 17px;
  letter-spacing: 6px;
  padding-left: 52px;
}

/* ==================== 2. 主地图探索界面 ==================== */
#map-screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: var(--color-bg-map);
  overflow: hidden;
}

.map-viewport {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: none;
  background:
    radial-gradient(circle at 42% 48%, rgba(30, 39, 49, 0.65) 0%, rgba(12, 16, 21, 0.96) 75%),
    #0e1217;
}

.map-viewport.is-dragging {
  cursor: grabbing;
}

#game-map {
  width: 100%;
  height: 100%;
  display: block;
}

/* SVG 地图元素样式 */
.map-grid-rect {
  fill: url(#gold-grid-pattern);
}

.terrain-line {
  fill: none;
  stroke: rgba(201, 156, 82, 0.06);
  stroke-width: 1.2;
}

.terrain-label {
  fill: rgba(217, 208, 193, 0.09);
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 10px;
  pointer-events: none;
}

.river-bank-yellow {
  fill: none;
  stroke: #263640;
  stroke-width: 24;
  stroke-linecap: round;
  opacity: 0.72;
}

.river-flow-yellow {
  fill: none;
  stroke: #4d7480;
  stroke-width: 9;
  stroke-linecap: round;
  opacity: 0.85;
}

.river-bank-yiluo {
  fill: none;
  stroke: #18333d;
  stroke-width: 28;
  stroke-linecap: round;
  opacity: 0.82;
}

.river-flow-yiluo {
  fill: none;
  stroke: #2e6878;
  stroke-width: 11;
  stroke-linecap: round;
  opacity: 0.92;
}

.river-label {
  font-family: var(--font-serif);
  font-size: 16px;
  fill: #67a8b9;
  letter-spacing: 4px;
  pointer-events: none;
}

.township-poly {
  fill: rgba(255, 255, 255, 0.012);
  stroke: rgba(170, 178, 188, 0.17);
  stroke-width: 1.2;
  stroke-dasharray: 6 6;
}

.township-label {
  fill: rgba(217, 208, 193, 0.44);
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 2px;
  pointer-events: none;
}

.road-express {
  fill: none;
  stroke: var(--map-road-express);
  stroke-width: 4;
  stroke-dasharray: 14 7;
  opacity: 0.85;
}

.road-primary {
  fill: none;
  stroke: var(--map-road-primary);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0.82;
}

.road-secondary {
  fill: none;
  stroke: var(--map-road-secondary);
  stroke-width: 3.2;
  stroke-linecap: round;
  opacity: 0.72;
}

.road-local {
  fill: none;
  stroke: var(--map-road-local);
  stroke-width: 1.8;
  stroke-linecap: round;
  opacity: 0.62;
}

.road-label {
  fill: #bfa17c;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 1px;
  pointer-events: none;
}

.zone-poly {
  fill: rgba(201, 156, 82, 0.045);
  stroke: rgba(201, 156, 82, 0.52);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  transition: fill 0.35s ease, stroke 0.35s ease;
}

.zone-poly.is-highlighted {
  fill: rgba(229, 192, 123, 0.12);
  stroke: var(--color-gold-bright);
  stroke-width: 2;
}

.zone-label {
  fill: #b89862;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  pointer-events: none;
}

/* 周边地标 */
.landmark-group {
  cursor: default;
  transition: opacity 0.25s ease;
}

.landmark-shape {
  fill: rgba(15, 22, 26, 0.85);
  stroke: var(--map-landmark);
  stroke-width: 1.6;
  transition: stroke 0.25s ease, filter 0.25s ease;
}

.landmark-label {
  fill: #c7d9d4;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.landmark-group.is-featured .landmark-shape {
  stroke: #d8b56e;
}

.landmark-group.is-featured .landmark-label {
  fill: #f0d69b;
  font-weight: 600;
}

.landmark-group:hover .landmark-shape {
  stroke: #fff1ba;
  filter: drop-shadow(0 0 6px rgba(255, 241, 186, 0.6));
}

.landmark-group:hover .landmark-label {
  fill: #fff1ba;
}

/* 皇陵菱形标记 */
.tomb-marker {
  cursor: pointer;
}

.tomb-marker-pulse {
  fill: none;
  stroke: rgba(229, 192, 123, 0.55);
  stroke-width: 1.4;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.tomb-marker.has-3d .tomb-marker-pulse,
.tomb-marker.is-active .tomb-marker-pulse {
  opacity: 1;
  animation: markerPulse 2.6s ease-out infinite;
}

@keyframes markerPulse {
  0% { transform: scale(0.95); opacity: 0.78; }
  100% { transform: scale(1.75); opacity: 0; }
}

.tomb-diamond-outer {
  fill: rgba(14, 16, 20, 0.9);
  stroke: var(--color-gold-main);
  stroke-width: 1.8;
  transition: stroke 0.25s ease, fill 0.25s ease, filter 0.25s ease;
}

.tomb-diamond-core {
  fill: var(--color-gold-bright);
  transition: transform 0.25s ease, fill 0.25s ease;
}

.tomb-marker:hover .tomb-diamond-outer,
.tomb-marker.is-active .tomb-diamond-outer {
  stroke: #fff1c7;
  fill: rgba(201, 156, 82, 0.26);
  filter: drop-shadow(0 0 10px rgba(229, 192, 123, 0.75));
}

.tomb-marker-label {
  fill: #e8dfd0;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
  transition: fill 0.25s ease;
}

.tomb-marker:hover .tomb-marker-label,
.tomb-marker.is-active .tomb-marker-label {
  fill: var(--color-gold-bright);
}

.tomb-3d-tag-bg {
  fill: rgba(229, 192, 123, 0.92);
}

.tomb-3d-tag-text {
  fill: #12100d;
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* ==================== HUD 悬浮层 ==================== */
.hud-header {
  position: fixed;
  top: 28px;
  left: 36px;
  z-index: 30;
  pointer-events: none;
}

.hud-title {
  font-family: var(--font-cursive);
  font-size: 42px;
  font-weight: 400;
  color: var(--color-gold-bright);
  letter-spacing: 6px;
  text-shadow: 0 0 20px rgba(229, 192, 123, 0.28), 0 3px 12px rgba(0, 0, 0, 0.9);
  line-height: 1.1;
}

.hud-region {
  margin-top: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
  letter-spacing: 2px;
}

.hud-controls {
  position: fixed;
  left: 36px;
  bottom: 42px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hud-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 16, 20, 0.86);
  border: 1px solid rgba(201, 156, 82, 0.45);
  color: var(--color-gold-bright);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.hud-btn:hover {
  border-color: var(--color-gold-bright);
  background: rgba(201, 156, 82, 0.18);
  box-shadow: 0 0 16px rgba(201, 156, 82, 0.28);
}

.hud-btn:active {
  transform: scale(0.95);
}

.map-legend {
  position: fixed;
  left: 112px;
  bottom: 42px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  background: rgba(13, 15, 19, 0.86);
  border: 1px solid rgba(201, 156, 82, 0.25);
  backdrop-filter: blur(8px);
  font-family: var(--font-sans);
  font-size: 12px;
  color: #bfb7a8;
  letter-spacing: 0.8px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.legend-diamond {
  width: 9px;
  height: 9px;
  background: var(--color-gold-bright);
  transform: rotate(45deg);
  display: inline-block;
}

.legend-line-road {
  width: 14px;
  height: 3px;
  background: var(--map-road-primary);
  display: inline-block;
}

.legend-line-landmark {
  width: 14px;
  height: 3px;
  background: var(--map-landmark);
  display: inline-block;
}

.legend-divider {
  width: 1px;
  height: 14px;
  background: rgba(201, 156, 82, 0.25);
}

.map-scale {
  color: var(--color-text-secondary);
}

/* ==================== 右侧「陵寝图鉴」面板 ==================== */
.side-panel {
  position: fixed;
  top: 28px;
  right: 36px;
  bottom: 36px;
  width: 340px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-panel);
  border: 1px solid rgba(201, 156, 82, 0.34);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.65);
}

.side-panel-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid rgba(201, 156, 82, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-panel-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--color-gold-bright);
  letter-spacing: 4px;
}

.side-panel-count {
  font-size: 12px;
  color: var(--color-text-secondary);
  letter-spacing: 1px;
}

.tomb-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.tomb-list::-webkit-scrollbar {
  width: 5px;
}
.tomb-list::-webkit-scrollbar-track {
  background: transparent;
}
.tomb-list::-webkit-scrollbar-thumb {
  background: rgba(201, 156, 82, 0.28);
}

.tomb-item {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(201, 156, 82, 0.12);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.tomb-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.tomb-item:hover {
  background: linear-gradient(90deg, rgba(201, 156, 82, 0.12) 0%, transparent 100%);
  padding-left: 28px;
}

.tomb-item.is-active {
  background: linear-gradient(90deg, rgba(201, 156, 82, 0.18) 0%, transparent 100%);
}

.tomb-item.is-active::before {
  background: var(--color-gold-bright);
  box-shadow: 0 0 12px rgba(229, 192, 123, 0.7);
}

.tomb-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tomb-item-name {
  font-size: 18px;
  font-weight: 600;
  color: #eee5d6;
  letter-spacing: 3px;
}

.tomb-item.is-active .tomb-item-name {
  color: var(--color-gold-bright);
}

.tomb-item-badge {
  font-family: var(--font-sans);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.tomb-item-badge.is-ready {
  color: #f6e1b2;
  background: rgba(201, 156, 82, 0.2);
  border: 1px solid rgba(229, 192, 123, 0.55);
}

.tomb-item-badge.is-planned {
  color: var(--color-text-secondary);
  border: 1px solid rgba(140, 131, 116, 0.3);
}

.tomb-item-meta {
  font-size: 13px;
  color: var(--color-text-secondary);
  letter-spacing: 0.6px;
}

/* ==================== 3. 陵寝详情弹窗 ==================== */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 4, 6, 0.82);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.detail-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.detail-content {
  position: relative;
  width: 92%;
  max-width: 1180px;
  height: min(85vh, 760px);
  background: var(--color-bg-modal);
  border: 1px solid rgba(201, 156, 82, 0.38);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-overlay.is-open .detail-content {
  transform: translateY(0) scale(1);
}

/* 金色 L 形四角装饰 */
.detail-content::before,
.detail-content::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  pointer-events: none;
  z-index: 5;
}

.detail-content::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--color-gold-bright);
  border-left: 2px solid var(--color-gold-bright);
}

.detail-content::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--color-gold-bright);
  border-bottom: 2px solid var(--color-gold-bright);
}

.btn-close {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(15, 17, 21, 0.72);
  border: 1px solid rgba(201, 156, 82, 0.25);
  color: #a69d8e;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn-close:hover {
  color: var(--color-gold-bright);
  border-color: var(--color-gold-bright);
  background: rgba(201, 156, 82, 0.14);
}

.detail-layout {
  display: flex;
  width: 100%;
  height: 100%;
}

/* 左侧图片舞台 */
.detail-left {
  width: 48%;
  height: 100%;
  background: #08090b;
  border-right: 1px solid rgba(201, 156, 82, 0.2);
  display: flex;
  flex-direction: column;
}

.detail-image-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #0b0c10;
}

.detail-image-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.08) contrast(1.04) saturate(1.05);
  transition: opacity 0.35s ease, transform 0.6s ease;
}

.detail-image-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 5px 12px;
  background: rgba(8, 10, 13, 0.72);
  border: 1px solid rgba(201, 156, 82, 0.28);
  font-size: 12px;
  color: #dfd5c4;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
}

.gallery-controls {
  padding: 14px 16px;
  background: #090a0d;
  border-top: 1px solid rgba(201, 156, 82, 0.16);
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-btn {
  width: 48px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(201, 156, 82, 0.28);
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-btn:hover {
  border-color: var(--color-gold-main);
  color: var(--color-gold-bright);
}

.gallery-btn.is-active {
  background: var(--color-gold-bright);
  border-color: var(--color-gold-bright);
  color: #14120e;
  font-weight: 700;
}

/* 右侧档案信息 */
.detail-right {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 46px 48px 36px;
  display: flex;
  flex-direction: column;
}

.detail-title {
  font-family: var(--font-cursive);
  font-size: 56px;
  font-weight: 400;
  color: var(--color-gold-bright);
  letter-spacing: 8px;
  line-height: 1.1;
  text-shadow: 0 0 24px rgba(229, 192, 123, 0.24);
}

.detail-meta-tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-tag {
  padding: 6px 13px;
  font-size: 13px;
  color: var(--color-text-primary);
  border: 1px solid rgba(217, 208, 193, 0.24);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 2px;
  letter-spacing: 0.6px;
}

.meta-tag.is-gold {
  color: var(--color-gold-bright);
  border-color: rgba(201, 156, 82, 0.48);
  background: rgba(201, 156, 82, 0.08);
}

.meta-tag.is-tour-ready {
  color: #bcece0;
  border-color: rgba(147, 199, 187, 0.48);
  background: rgba(147, 199, 187, 0.1);
}

.detail-desc-wrap {
  flex: 1;
  min-height: 0;
  margin: 28px 0 24px;
  overflow-y: auto;
  padding-right: 6px;
}

.detail-desc-wrap::-webkit-scrollbar {
  width: 4px;
}
.detail-desc-wrap::-webkit-scrollbar-thumb {
  background: rgba(201, 156, 82, 0.28);
}

.detail-desc {
  font-size: 16px;
  line-height: 2.2;
  color: var(--color-text-primary);
  letter-spacing: 0.8px;
  text-align: justify;
  user-select: text;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 8px;
}

/* ==================== 移动端响应式 (<= 768px) ==================== */
@media (max-width: 768px) {
  .hud-header {
    top: 18px;
    left: 16px;
    max-width: calc(100vw - 175px);
  }

  .hud-title {
    font-size: 24px;
    letter-spacing: 2px;
    white-space: nowrap;
  }

  .hud-region {
    font-size: 12px;
  }

  .hud-controls {
    top: 18px;
    right: 16px;
    left: auto;
    bottom: auto;
    flex-direction: row;
    gap: 8px;
  }

  .hud-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .map-legend {
    left: 12px;
    right: auto;
    bottom: 168px;
    padding: 7px 12px;
    gap: 10px;
    font-size: 11px;
  }

  .legend-divider,
  .map-scale {
    display: none;
  }

  .side-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 156px;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .side-panel-header {
    padding: 12px 16px 8px;
    border-bottom: 0;
  }

  .side-panel-title {
    font-size: 16px;
    letter-spacing: 3px;
  }

  .tomb-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 0 10px 10px;
  }

  .tomb-item {
    min-width: 164px;
    width: 164px;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 10px 14px 14px;
    border-bottom: 0;
    border-right: 1px solid rgba(201, 156, 82, 0.14);
  }

  .tomb-item:hover {
    padding-left: 14px;
  }

  .tomb-item::before {
    top: auto;
    left: 14px;
    right: 14px;
    bottom: 4px;
    width: auto;
    height: 3px;
  }

  .tomb-item-name {
    font-size: 16px;
  }

  .tomb-item-meta {
    font-size: 12px;
    line-height: 1.4;
  }

  /* 移动端弹窗竖排 */
  .detail-overlay {
    padding: 12px;
  }

  .detail-content {
    width: 100%;
    height: 92dvh;
  }

  .detail-layout {
    flex-direction: column;
  }

  .detail-left {
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(201, 156, 82, 0.2);
  }

  .detail-image-stage {
    height: min(32dvh, 240px);
    flex: none;
  }

  .gallery-controls {
    padding: 10px 14px;
  }

  .detail-right {
    padding: 20px 20px 22px;
    overflow-y: auto;
  }

  .btn-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(8, 10, 14, 0.72);
    color: #fff;
  }

  .detail-title {
    font-size: 40px;
    letter-spacing: 5px;
  }

  .detail-meta-tags {
    margin-top: 12px;
    gap: 8px;
  }

  .meta-tag {
    font-size: 12px;
    padding: 5px 10px;
  }

  .detail-desc-wrap {
    margin: 18px 0 18px;
    overflow: visible;
    flex: none;
  }

  .detail-desc {
    font-size: 15px;
    line-height: 2;
  }

  .detail-actions {
    gap: 10px;
  }

  .detail-actions .btn-cinematic {
    flex: 1 1 135px;
    min-width: 0;
    padding: 12px 14px;
    font-size: 14px;
    letter-spacing: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fog-container {
    display: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
