/* ==========================================================================
   第一层级｜一屏实体展厅总览大堂（宏观层级：选项目）
   视觉特征：左侧深胡桃实木导览墙 (#231E1B) + 中文大写行业色块印章 (序/壹/贰/叁/肆/伍/陆/底)
   与第二层级（全宽亮色 + 顶部横向连线步骤条）形成一眼可辨的空间层级反差
   ========================================================================== */
:root {
  --font-display-num: "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;
  --walnut-wall: #231e1b;
  --walnut-surface: #2d2723;
  --walnut-border: rgba(245, 241, 234, 0.11);
  --walnut-text: #fcfbf8;
  --walnut-muted: #b5aba0;
}

body.hall-mode {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--paper-bg);
}

/* ---------- 顶部极简总馆眉栏 (58px) ---------- */
.hall-topbar {
  flex: 0 0 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: clamp(18px, 2.4vw, 32px);
  background: var(--paper-card);
  border-bottom: 1px solid var(--light-border-strong);
  z-index: 30;
}

.hall-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.level1-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 6px;
  background: var(--walnut-wall);
  color: #f5f1ea;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hall-room-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--light-text-secondary);
  white-space: nowrap;
}

.hall-room-indicator strong {
  color: var(--accent-terra);
  font-family: var(--font-serif);
  font-size: 0.9rem;
}

.hall-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kbd-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--paper-bg);
  border: 1px solid var(--light-border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--light-text-muted);
}

.kbd-hint kbd {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--paper-card);
  border: 1px solid var(--light-border-strong);
  color: var(--light-text);
  font-family: inherit;
  font-size: 0.68rem;
}

/* ---------- 一级总览主空间：左深胡桃宏观导览墙 × 右明亮大画幅展台 ---------- */
.hall-workspace {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 312px minmax(0, 1fr);
}

.hall-rail {
  background: var(--walnut-wall);
  color: var(--walnut-text);
  border-right: 1px solid rgba(28, 25, 23, 0.2);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hall-rail-head {
  padding: 15px 20px 12px;
  border-bottom: 1px solid var(--walnut-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hall-rail-head span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #e68255;
}

.hall-rail-head small {
  font-size: 0.7rem;
  color: var(--walnut-muted);
}

.hall-nav-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hall-nav-btn {
  position: relative;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  cursor: pointer;
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease, transform var(--t-fast) ease;
}

.hall-nav-btn:hover {
  background: rgba(252, 251, 248, 0.06);
}

.hall-nav-btn.active {
  background: var(--paper-card);
  border-color: var(--paper-card);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
}

/* 中文大写行业印章色块（一级项目身份强识别） */
.hall-seal {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: #fcfbf8;
  background: var(--seal-color, #57534e);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hall-nav-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.94rem;
  font-weight: 700;
  color: #f5f1ea;
  line-height: 1.25;
}

.hall-nav-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.71rem;
  color: var(--walnut-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hall-nav-btn.active .hall-nav-title {
  color: var(--light-text);
}

.hall-nav-btn.active .hall-nav-sub {
  color: var(--light-text-secondary);
}

.hall-nav-arrow {
  font-size: 0.84rem;
  color: var(--walnut-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--t-fast) ease;
}

.hall-nav-btn.active .hall-nav-arrow,
.hall-nav-btn:hover .hall-nav-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--seal-color, var(--accent-terra));
}

/* ---------- 右翼：65% 视觉主导展台 ---------- */
.hall-stage-viewport {
  position: relative;
  min-height: 0;
  overflow-y: auto;
  background: var(--paper-bg);
  padding: clamp(18px, 2.2vw, 32px) clamp(24px, 3vw, 46px);
  display: flex;
  flex-direction: column;
}

.hall-room-panel {
  display: none;
  max-width: 1180px;
  width: 100%;
  margin: auto;
  animation: roomEnter 280ms var(--ease-out);
}

.hall-room-panel.active { display: block; }

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

.visual-first-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
}

.copy-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 右侧展台顶部：宏观大写印章 + 行业色标（呼应左侧导览墙） */
.exhibit-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stage-macro-seal {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--seal-color, var(--accent-terra));
  box-shadow: 0 10px 20px -10px rgba(28, 25, 23, 0.45);
  flex-shrink: 0;
}

.stage-macro-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.stage-macro-meta small {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--seal-color, var(--accent-terra));
}

.stage-macro-meta span {
  font-size: 0.8rem;
  font-weight: 620;
  color: var(--light-text-secondary);
  margin-top: 2px;
}

.exhibit-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--light-text);
  text-wrap: balance;
}

.exhibit-title em {
  font-style: normal;
  color: var(--seal-color, var(--accent-terra));
  white-space: nowrap;
  background: linear-gradient(transparent 74%, rgba(194, 65, 12, 0.14) 74%);
  padding-inline: 2px;
}

.exhibit-oneliner {
  font-size: 0.95rem;
  font-weight: 380;
  color: var(--light-text-secondary);
  line-height: 1.7;
}

.exhibit-oneliner strong {
  color: var(--light-text);
  font-weight: 620;
}

.visual-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-block: 13px;
  border-top: 1px solid var(--light-border-strong);
  border-bottom: 1px solid var(--light-border-strong);
}

.visual-kpi strong {
  display: block;
  font-family: var(--font-display-num);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--light-text);
}

.visual-kpi span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--light-text-muted);
  line-height: 1.35;
}

.tag-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper-card);
  border: 1px solid var(--light-border);
  font-size: 0.76rem;
  font-weight: 560;
  color: var(--light-text);
}

.mini-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-terra);
}

.mini-tag.sage i { background: var(--accent-sage); }

.exhibit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* ---------- 64% 视觉画廊容器 ---------- */
.visual-stage-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper-card);
  border: 1px solid var(--light-border-strong);
  box-shadow: var(--shadow-editorial);
}

.visual-hero-photo {
  width: 100%;
  height: clamp(320px, 47vh, 450px);
  object-fit: cover;
  display: block;
}

.visual-overlay-dock {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(252, 251, 248, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(28, 25, 23, 0.14);
  box-shadow: 0 16px 36px -14px rgba(28, 25, 23, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overlay-gauge { display: flex; align-items: center; gap: 14px; }
.gauge-ring {
  width: 52px; height: 52px; border-radius: 50%;
  background: conic-gradient(#166534 0% 78%, rgba(28, 25, 23, 0.12) 78% 100%);
  padding: 5px; flex-shrink: 0;
}
.gauge-ring-in {
  width: 100%; height: 100%; border-radius: 50%; background: var(--paper-card);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; color: var(--accent-sage);
}

.room0-media-card {
  border-radius: 22px; overflow: hidden; background: #231e1b; color: #f5f1ea;
  border: 1px solid var(--light-border-strong); box-shadow: var(--shadow-editorial);
}
.media-mode-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 16px; background: #1b1714; border-bottom: 1px solid rgba(245, 241, 234, 0.12);
}
.media-mode-tabs { display: inline-flex; gap: 6px; }
.media-mode-btn {
  padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(245, 241, 234, 0.16);
  background: transparent; color: #c7bfb5; font-size: 0.76rem; font-weight: 600; cursor: pointer;
}
.media-mode-btn.active { background: var(--accent-terra); border-color: var(--accent-terra); color: #ffffff; }
.media-view-pane { display: none; }
.media-view-pane.active { display: block; }
.media-view-pane img, .media-view-pane video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #14110f; }

.compact-chapters { padding: 11px 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: #231e1b; }
.compact-ch-btn { text-align: left; padding: 7px 10px; border-radius: 8px; border: 1px solid rgba(245, 241, 234, 0.10); background: rgba(252, 251, 248, 0.04); cursor: pointer; }
.compact-ch-btn:hover, .compact-ch-btn.active { background: rgba(230, 130, 85, 0.18); border-color: rgba(230, 130, 85, 0.55); }
.compact-ch-btn b { display: block; font-family: var(--font-mono); font-size: 0.66rem; color: #e68255; }
.compact-ch-btn span { display: block; font-size: 0.74rem; color: #f5f1ea; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.yonghao-gallery-stage {
  border-radius: 22px; background: var(--paper-card); border: 1px solid var(--light-border-strong);
  padding: 18px; box-shadow: var(--shadow-editorial); display: grid; gap: 14px;
}
.yonghao-gallery-top { display: grid; grid-template-columns: minmax(0, 1.35fr) 178px; gap: 16px; align-items: center; }
.yonghao-photo-wrap { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--light-border); }
.yonghao-photo-wrap img { width: 100%; height: clamp(270px, 40vh, 360px); object-fit: cover; }
.yonghao-photo-badge {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 12px;
  background: rgba(252, 251, 248, 0.93); backdrop-filter: blur(8px); font-size: 0.78rem; color: var(--light-text);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.phone-showcase { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.phone-bezel { width: 100%; border-radius: 26px; background: #1c1917; padding: 6px; box-shadow: 0 20px 40px -16px rgba(28, 25, 23, 0.35); }
.phone-bezel img { width: 100%; height: clamp(238px, 34vh, 315px); object-fit: cover; object-position: top; border-radius: 20px; }
.phone-thumb-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; width: 100%; }
.phone-thumb-btn { padding: 4px 2px; border-radius: 999px; border: 1px solid var(--light-border-strong); background: var(--paper-bg); font-size: 0.68rem; font-weight: 620; cursor: pointer; }
.phone-thumb-btn.active { background: var(--accent-terra); border-color: var(--accent-terra); color: #ffffff; }

.visual-flow-ribbon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.flow-step-chip { padding: 10px 13px; border-radius: 12px; background: var(--paper-bg); border: 1px solid var(--light-border); display: flex; align-items: center; gap: 10px; }
.flow-step-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-terra-soft); color: var(--accent-terra); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; flex-shrink: 0; }
.flow-step-icon.sage { background: var(--accent-sage-soft); color: var(--accent-sage); }
.flow-step-chip strong { display: block; font-size: 0.82rem; color: var(--light-text); line-height: 1.2; }
.flow-step-chip span { display: block; font-size: 0.7rem; color: var(--light-text-muted); margin-top: 2px; }

.tech-subtabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-subtle); border: 1px solid var(--light-border); }
.tech-subtab-btn { padding: 7px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--light-text-secondary); font-size: 0.82rem; font-weight: 620; cursor: pointer; }
.tech-subtab-btn.active { background: var(--light-text); color: var(--paper-card); }
.tech-subpane { display: none; }
.tech-subpane.active { display: block; }
.hall-svg-box { border-radius: 20px; background: var(--paper-card); border: 1px solid var(--light-border-strong); padding: 18px 22px; box-shadow: var(--shadow-card); }
.hall-svg-box svg { width: 100%; height: auto; max-height: 410px; }

.geo-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.geo-photo-card { border-radius: 18px; overflow: hidden; background: var(--paper-card); border: 1px solid var(--light-border-strong); box-shadow: var(--shadow-card); }
.geo-photo-card img { width: 100%; height: 170px; object-fit: cover; }
.geo-photo-body { padding: 14px 16px 16px; }
.geo-photo-body strong { display: block; margin-top: 8px; font-family: var(--font-serif); font-size: 1rem; color: var(--light-text); }
.geo-photo-body p { margin-top: 5px; font-size: 0.78rem; color: var(--light-text-secondary); line-height: 1.55; }

/* ---------- 底部展馆翻厅栏 (42px) ---------- */
.hall-bottombar {
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: clamp(18px, 2.4vw, 32px);
  background: var(--paper-card);
  border-top: 1px solid var(--light-border-strong);
  font-size: 0.76rem;
  color: var(--light-text-muted);
}

.hall-pager { display: inline-flex; align-items: center; gap: 10px; }
.pager-btn {
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--light-border-strong);
  background: var(--paper-bg); color: var(--light-text); font-size: 0.75rem; font-weight: 600; cursor: pointer;
}
.pager-btn:hover { border-color: var(--accent-terra); color: var(--accent-terra); }

/* 矮屏笔记本 (<680px高) 或中等屏幕 (<1180px宽)：平滑释放外层滚动，避免内容被锁在窄窗口里割裂 */
@media (max-width: 1180px), (max-height: 679px) {
  body.hall-mode {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .hall-topbar {
    position: sticky;
    top: 0;
  }
  .hall-stage-viewport {
    overflow: visible;
    padding-block: 24px 32px;
  }
  .hall-bottombar {
    position: sticky;
    bottom: 0;
    z-index: 25;
  }
}

/* 平板与手机端 (<= 980px)：顶部粘性大印章横滑切换栏 + 单列自然卡片流 */
@media (max-width: 980px) {
  .hall-workspace {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100vw;
  }
  .hall-rail {
    position: sticky;
    top: 58px;
    z-index: 28;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(28, 25, 23, 0.25);
  }
  .hall-stage-viewport {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 18px 16px 28px;
  }
  .hall-rail-head, .kbd-hint, .hall-room-indicator, .level1-pill, .hall-topbar-right a { display: none; }
  .hall-nav-list {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    padding: 8px 12px;
    gap: 8px;
    scrollbar-width: none;
  }
  .hall-nav-list::-webkit-scrollbar { display: none; }
  .hall-nav-btn {
    flex: 0 0 auto;
    width: auto;
    padding: 6px 12px;
    grid-template-columns: auto auto;
    gap: 7px;
  }
  .hall-nav-sub, .hall-nav-arrow { display: none; }
  .hall-seal { width: 24px; height: 24px; font-size: 0.78rem; border-radius: 6px; }
  .visual-first-grid, .yonghao-gallery-top, .geo-photo-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .visual-first-grid > *, .yonghao-gallery-top > *, .geo-photo-grid > * { min-width: 0; }
  .stage-copy-col, .visual-card { min-width: 0; max-width: 100%; }
  .stage-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stage-pill-row, .stage-actions { flex-wrap: wrap; }
  .visual-hero-photo { height: 220px; }
  .visual-overlay-dock { position: static; margin: 12px; border-radius: 12px; }
  .compact-chapters, .visual-flow-ribbon { grid-template-columns: minmax(0, 1fr); }
  .hall-bottombar { flex-wrap: wrap; height: auto; padding-block: 8px; }
}
