/* ============================================================
 * 施必得数字大屏 - 展厅子页面 (hall.php)
 * ------------------------------------------------------------
 * 复用 dashboard.css 的 :root token 与 1920x1080 等比缩放入口,
 * 本文件只放子页面独有的布局:
 *   左上标题与返回 / 中央平面图 / 左侧展项列表 / 媒体弹窗
 * ============================================================ */

/* ----- 页面骨架 ----- */
.hall-screen {
  position: relative;
  width: 1920px;
  height: 1080px;
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--c-cyan-rgb), 0.10) 0%, transparent 55%),
    linear-gradient(180deg, #03101f 0%, #010a18 60%, #000611 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 18px 26px 20px;
  box-sizing: border-box;
}

/* ----- 顶部栏 ----- */
.hall-top {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  height: 62px;
  border-bottom: 1px solid rgba(var(--c-cyan-rgb), 0.22);
  padding-bottom: 12px;
}
.hall-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(var(--c-cyan-rgb), 0.45);
  border-radius: 6px;
  color: var(--c-cyan);
  background: rgba(var(--c-cyan-rgb), 0.08);
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.hall-back:hover {
  background: rgba(var(--c-cyan-rgb), 0.18);
  box-shadow: 0 0 16px rgba(var(--c-cyan-rgb), 0.35);
  transform: translateX(-2px);
}
.hall-back .arrow { font-size: 17px; line-height: 1; }

.hall-title-wrap { flex: 1; min-width: 0; text-align: center; }
.hall-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(var(--c-cyan-rgb), 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hall-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: var(--c-text-mute);
  letter-spacing: 1px;
}
.hall-top-right {
  width: 170px;            /* 与返回按钮等宽, 保证标题居中 */
  text-align: right;
  font-size: 12px;
  color: var(--c-text-faint);
  flex-shrink: 0;
}

/* ----- 主体: 左列表 + 中平面图 ----- */
.hall-body {
  flex: 1;
  display: flex;
  gap: 20px;
  padding-top: 18px;
  min-height: 0;
}

/* 左: 展项列表 */
.hall-side {
  width: 330px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(var(--c-cyan-rgb), 0.20);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(6, 21, 37, 0.92), rgba(10, 30, 56, 0.88));
  overflow: hidden;
}
.hall-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(var(--c-cyan-rgb), 0.16);
}
.hall-side-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-title);
  letter-spacing: 2px;
}
.hall-side-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 15px;
  margin-right: 8px;
  vertical-align: -2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--c-cyan), var(--c-blue-deep));
}
.hall-side-count { font-size: 12px; color: var(--c-text-mute); }

.hall-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hall-items::-webkit-scrollbar { width: 4px; }
.hall-items::-webkit-scrollbar-track { background: rgba(0, 10, 30, 0.4); border-radius: 3px; }
.hall-items::-webkit-scrollbar-thumb { background: rgba(var(--c-cyan-rgb), 0.35); border-radius: 3px; }

.hall-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--c-cyan-rgb), 0.14);
  border-radius: 6px;
  background: rgba(0, 16, 50, 0.45);
  color: var(--c-text);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  width: 100%;
  font-family: inherit;
}
.hall-item:hover,
.hall-item.is-active {
  border-color: rgba(var(--c-cyan-rgb), 0.75);
  background: rgba(var(--c-cyan-rgb), 0.12);
  box-shadow: 0 0 14px rgba(var(--c-cyan-rgb), 0.28);
  transform: translateX(3px);
}
.hall-item .idx {
  width: 24px; height: 24px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 12px;
  color: var(--c-cyan);
  background: rgba(var(--c-cyan-rgb), 0.12);
  border: 1px solid rgba(var(--c-cyan-rgb), 0.3);
}
.hall-item .label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hall-item .media-badge {
  font-size: 11px;
  color: var(--c-text-faint);
  flex-shrink: 0;
}
.hall-item.is-empty .media-badge { color: #4a3b22; }

.hall-side-empty {
  padding: 26px 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
  color: var(--c-text-faint);
}

/* 中: 平面图 */
.hall-plan-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  border: 1px solid rgba(var(--c-cyan-rgb), 0.20);
  border-radius: 8px;
  background:
    linear-gradient(rgba(var(--c-cyan-rgb), 0.045) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(var(--c-cyan-rgb), 0.045) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(circle at 50% 45%, rgba(var(--c-cyan-rgb), 0.08), transparent 62%),
    rgba(3, 14, 28, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}
.hall-plan-wrap::after {
  /* 四角装饰 */
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(var(--c-cyan-rgb), 0.10);
  border-radius: 4px;
  pointer-events: none;
}
.hall-plan {
  max-width: calc(100% - 48px);
  max-height: calc(100% - 48px);
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 0 22px rgba(var(--c-cyan-rgb), 0.22));
}
.hall-plan-empty {
  text-align: center;
  color: var(--c-text-faint);
  font-size: 15px;
  line-height: 2.1;
}
.hall-plan-empty .big { font-size: 44px; opacity: 0.5; display: block; margin-bottom: 4px; }
.hall-plan-empty .hint { font-size: 12px; color: #3f5a78; }

/* ----- 媒体弹窗 ----- */
.hall-modal {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(1, 8, 16, 0.86);
  backdrop-filter: blur(3px);
}
.hall-modal.is-open { display: flex; }

.hall-dialog {
  position: relative;
  width: 1240px;
  max-width: 92%;
  height: 760px;
  max-height: 88%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(var(--c-cyan-rgb), 0.45);
  border-radius: 10px;
  background: linear-gradient(180deg, #061525 0%, #0a1e38 100%);
  box-shadow: 0 0 60px rgba(var(--c-cyan-rgb), 0.18), 0 24px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: hallDialogIn 0.2s ease-out;
}
@keyframes hallDialogIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hall-dialog-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(var(--c-cyan-rgb), 0.22);
  flex-shrink: 0;
}
.hall-dialog-title {
  flex: 1;
  min-width: 0;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hall-dialog-meta { font-size: 13px; color: var(--c-text-mute); flex-shrink: 0; }
.hall-dialog-close {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border: 1px solid rgba(var(--c-cyan-rgb), 0.4);
  border-radius: 6px;
  background: rgba(var(--c-cyan-rgb), 0.08);
  color: var(--c-cyan);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.16s ease;
}
.hall-dialog-close:hover { background: rgba(255, 107, 107, 0.18); border-color: #ff6b6b; color: #ff6b6b; }

.hall-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020b16;
  padding: 16px;
}
.hall-stage img,
.hall-stage video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  background: #000;
}
.hall-stage-empty {
  color: var(--c-text-faint);
  font-size: 15px;
  text-align: center;
  line-height: 2;
}

/* 左右切换箭头 */
.hall-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 92px;
  border: 1px solid rgba(var(--c-cyan-rgb), 0.35);
  border-radius: 6px;
  background: rgba(4, 18, 36, 0.82);
  color: var(--c-cyan);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.16s ease;
  z-index: 2;
}
.hall-nav:hover:not(:disabled) {
  background: rgba(var(--c-cyan-rgb), 0.20);
  box-shadow: 0 0 18px rgba(var(--c-cyan-rgb), 0.4);
}
.hall-nav:disabled { opacity: 0.22; cursor: default; }
.hall-nav.prev { left: 14px; }
.hall-nav.next { right: 14px; }

/* 缩略图条 */
.hall-thumbs {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px 16px;
  border-top: 1px solid rgba(var(--c-cyan-rgb), 0.16);
  overflow-x: auto;
  min-height: 84px;
  box-sizing: border-box;
}
.hall-thumbs::-webkit-scrollbar { height: 4px; }
.hall-thumbs::-webkit-scrollbar-thumb { background: rgba(var(--c-cyan-rgb), 0.35); border-radius: 3px; }

.hall-thumb {
  position: relative;
  width: 104px; height: 58px;
  flex-shrink: 0;
  padding: 0;
  border: 2px solid rgba(var(--c-cyan-rgb), 0.18);
  border-radius: 5px;
  background: #041220 center/cover no-repeat;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.16s ease;
  font-family: inherit;
}
.hall-thumb:hover { border-color: rgba(var(--c-cyan-rgb), 0.6); }
.hall-thumb.is-active {
  border-color: var(--c-cyan);
  box-shadow: 0 0 14px rgba(var(--c-cyan-rgb), 0.55);
}
.hall-thumb .thumb-video {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.42);
}
.hall-thumb .thumb-index {
  position: absolute;
  right: 3px; bottom: 2px;
  font-size: 10px;
  color: #cfe8ff;
  background: rgba(0, 0, 0, 0.55);
  padding: 0 3px;
  border-radius: 2px;
}

/* 键盘提示 */
.hall-keyhint {
  position: absolute;
  right: 26px;
  bottom: 8px;
  font-size: 11px;
  color: #2f4a66;
  letter-spacing: 1px;
}
