/* ==========================================================================
   开场方案一（重构版）：类真实阳光美术馆建筑长廊 · 极简建筑底栏样式
   彻底移除遮挡空间的左下大卡片，与原概念图 A 的建筑级克制底栏对齐
   ========================================================================== */

body.corridor-locked {
  overflow: hidden;
  height: 100vh;
}

.corridor-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  /* 72 KB 同构图静态垫底海报：0.3s 先出镂空光墙画面，待真 3D 画布淡入无缝接管 */
  background: #f4f0e8 url("../assets/gallery-3d/preview-carved.jpg") center center / cover no-repeat;
  z-index: 20;
}

.corridor-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

.corridor-canvas.is-loaded {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .corridor-canvas {
    transition: none;
  }
}

/* 穿入建筑镂空光字洞口时的温润暖白天光绽放 */
.corridor-light-bloom {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 26;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #fffaf0 46%, rgba(255, 251, 242, 0.96) 100%);
  will-change: opacity, transform;
}

/* 极简美术馆建筑底栏：1px 细线 + 克制坐标参数 + 锐利直角黑金进入按钮 */
.corridor-floor-bar {
  position: absolute;
  left: clamp(20px, 3.2vw, 48px);
  right: clamp(20px, 3.2vw, 48px);
  bottom: clamp(14px, 2.2vh, 26px);
  padding-top: 14px;
  border-top: 1px solid rgba(18, 22, 30, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 30;
  transition: opacity 0.42s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.corridor-hero.is-flying .corridor-floor-bar {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.corridor-bar-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.corridor-masthead {
  font-family: var(--c-font-display);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #11151d;
  margin: 0;
}

.corridor-spec {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-family: var(--c-font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: #2c3545;
  margin: 0;
}

.corridor-spec strong {
  color: #0e6f8c;
  font-weight: 700;
}

.corridor-dot {
  color: rgba(18, 22, 30, 0.36);
}

.corridor-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.corridor-phase {
  font-family: var(--c-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #3a4354;
}

/* 建筑感锐利黑底白字进入按钮（呼应概念图 A 右下角高对比按钮） */
.corridor-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 3px;
  border: 1px solid #0d1118;
  background: #0d1118;
  color: #ffffff;
  font-family: var(--c-font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.corridor-enter-btn:hover {
  background: #0a6e82;
  border-color: #0a6e82;
  transform: translateY(-2px);
}

.corridor-enter-btn:focus-visible {
  outline: 3px solid #0a6e82;
  outline-offset: 3px;
}

.corridor-btn-icon {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.corridor-enter-btn:hover .corridor-btn-icon {
  transform: translateY(3px);
}

/* 返回水晶光廊悬浮按钮（进入展厅后自动显现） */
.corridor-return-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 3px;
  border: 1px solid rgba(13, 17, 24, 0.22);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  color: #0d1118;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(13, 17, 24, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.corridor-return-btn svg {
  width: 16px;
  height: 16px;
}

.corridor-return-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.corridor-return-btn:hover {
  background: #0d1118;
  color: #ffffff;
}

/* 移动端响应式：确保 390x844 首屏无遮挡、无裁切 */
@media (max-width: 820px) {
  .corridor-floor-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    left: 16px;
    right: 16px;
    bottom: 14px;
    padding-top: 10px;
  }

  .corridor-masthead {
    font-size: 17px;
  }

  .corridor-spec {
    font-size: 12px;
    gap: 5px;
  }

  .corridor-bar-right {
    justify-content: space-between;
  }

  .corridor-phase {
    display: none;
  }

  .corridor-enter-btn {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    padding: 11px 18px;
    font-size: 13.5px;
  }

  .corridor-return-btn {
    right: 14px;
    bottom: 14px;
    padding: 9px 14px;
  }
}
