/* ==========================================================================
   框架：品牌展览 · 品牌画廊【左右旋转】模式 (3D Orbit Left-Right Rotation Mode)
   ========================================================================== */

.gallery-section {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(223, 183, 108, 0.06) 0%, rgba(6, 6, 8, 0.98) 75%);
}

.gallery-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 40px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.gallery-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 16px 0 12px;
  letter-spacing: -0.02em;
}

.gallery-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* 3D 左右旋转舞台视口 (3D Cylindrical Orbit Viewport) */
.gallery-viewport {
  position: relative;
  width: 100%;
  max-width: 1300px;
  min-height: 640px;
  margin: 0 auto;
  perspective: 1500px;
  perspective-origin: 50% 46%;
  padding: 30px 10px 40px;
  overflow: hidden;
  user-select: none;
  cursor: grab;
}

.gallery-viewport:active {
  cursor: grabbing;
}

/* 3D 环形左右旋转转盘舞台 (3D Carousel Stage) */
.gallery-camera-stage {
  position: relative;
  width: 380px;
  height: 540px;
  margin: 0 auto;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* 环形分布的各大展厅卡片 (Cylindrical Exhibition Vitrines) */
.gallery-hall {
  position: absolute;
  top: 0;
  left: 0;
  width: 380px;
  height: 540px;
  background: linear-gradient(180deg, rgba(22, 22, 30, 0.94) 0%, rgba(10, 10, 14, 0.98) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(245, 215, 127, 0.25);
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: opacity 0.6s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              filter 0.5s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 左右旋转聚焦高亮态 (Center Front Focus) */
.gallery-hall.is-focused {
  border-color: var(--gold-300);
  box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.95), 0 0 35px rgba(223, 183, 108, 0.45);
  filter: brightness(1.05);
  opacity: 1 !important;
  z-index: 10;
}

/* 左右两侧侧翼卡片 (Side Flank Cards) */
.gallery-hall.is-side {
  opacity: 0.76;
  filter: brightness(0.82) contrast(0.95);
  z-index: 5;
}

.gallery-hall.is-side:hover {
  opacity: 0.92;
  filter: brightness(0.95);
  border-color: rgba(245, 215, 127, 0.6);
}

/* 背部隐藏卡片 (Rear Hidden Cards) */
.gallery-hall.is-hidden {
  opacity: 0.16;
  filter: brightness(0.4) blur(1.5px);
  pointer-events: none;
  z-index: 1;
}

/* 展柜顶部聚光灯光痕 */
.gallery-hall::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f5d77f, transparent);
  box-shadow: 0 0 15px #f5d77f;
}

/* 展馆头部 */
.hall-number {
  font-family: "SF Pro Display", -apple-system, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(223, 183, 108, 0.2);
}

.hall-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(223, 183, 108, 0.15);
  color: var(--gold-300);
  border: 1px solid rgba(223, 183, 108, 0.3);
}

.hall-title {
  font-size: 1.32rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hall-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* 核心指标展示区 */
.hall-display {
  background: rgba(7, 7, 10, 0.85);
  border: 1px solid rgba(223, 183, 108, 0.18);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.84rem;
}

.hall-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hall-metric-row:last-child {
  border-bottom: none;
}

.metric-label {
  color: var(--text-muted);
}

.metric-val {
  font-weight: 600;
  color: var(--gold-300);
  font-family: monospace;
}

.metric-val.green {
  color: var(--status-green);
}

/* 特性清单 */
.hall-features {
  list-style: none;
  margin-bottom: 0;
}

.hall-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hall-features li::before {
  content: '✦';
  color: var(--gold-400);
  font-size: 0.72rem;
}

/* 左右旋转控制台 (Orbit Lens Controls) */
.gallery-lens-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: 35px auto 0;
  padding: 12px 24px;
  background: rgba(16, 16, 22, 0.9);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 15;
}

.rot-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-300);
  background: rgba(223, 183, 108, 0.12);
  border: 1px solid rgba(223, 183, 108, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.lens-selector {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.lens-selector::-webkit-scrollbar {
  display: none;
}

.lens-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.lens-btn:hover {
  color: var(--gold-300);
  background: rgba(223, 183, 108, 0.08);
}

.lens-btn.active {
  color: #0b0b0f;
  background: var(--grad-gold-btn);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 10px rgba(223, 183, 108, 0.4);
}

.lens-nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lens-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(26, 26, 36, 0.8);
  border: 1px solid var(--gold-border);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lens-nav-btn:hover {
  background: var(--gold-400);
  color: #0b0b0f;
  box-shadow: var(--gold-glow-sm);
}

.auto-tour-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
}

/* 响应式调整 (Responsive Orbit) */
@media (max-width: 1024px) {
  .gallery-camera-stage {
    width: 340px;
    height: 540px;
  }
  .gallery-hall {
    width: 340px;
    height: 540px;
    padding: 24px 20px;
  }
}

@media (max-width: 768px) {
  .gallery-viewport {
    min-height: 580px;
    padding: 20px 5px 30px;
  }
  .gallery-camera-stage {
    width: 310px;
    height: 530px;
  }
  .gallery-hall {
    width: 310px;
    height: 530px;
    padding: 22px 18px;
  }
  .gallery-lens-controls {
    border-radius: var(--radius-md);
    flex-direction: column;
    align-items: stretch;
  }
  .lens-selector {
    justify-content: flex-start;
  }
  .lens-nav-tools {
    justify-content: space-between;
  }
}
