
/* ===== 照片墙样式 ===== */
.desktop-body {
  height: 100vh;
  overflow: hidden;
  background: #1a0000;
}

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(180, 35, 44, 0.6), transparent 50%),
    radial-gradient(ellipse at 50% 70%, rgba(140, 20, 30, 0.5), transparent 55%),
    linear-gradient(180deg, #2d0000 0%, #8b0000 30%, #c0392b 60%, #1a0000 100%);
}

#wallCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.stage-title {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 4vh;
  z-index: 15;
  color: #fff4c6;
  text-shadow: 0 2px 12px rgba(120,0,0,.7), 0 0 40px rgba(200,150,50,.3);
  text-align: center;
  pointer-events: none;
}
.stage-title strong {
  display: block;
  font-size: clamp(26px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 4px;
}
.stage-title span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.7);
  font-size: clamp(12px, 1.6vw, 22px);
  letter-spacing: 2px;
}

.big-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,.7);
  opacity: 0; pointer-events: none;
  transition: opacity .45s ease;
  z-index: 10;
}
.big-overlay.is-showing { opacity: 1; }
.big-overlay img {
  width: 100%; height: 100%;
  object-fit: contain;
  animation: imageIn .55s ease both;
  border: none;
}
.missing-card {
  display: grid; gap: 12px; place-items: center;
  min-width: 420px; padding: 32px;
  background: rgba(255,255,255,.96); border-radius: 8px;
  color: #17202a;
}

/* ===== 桌面控制面板 ===== */
.desktop-control {
  position: fixed;
  z-index: 20;
  left: 16px; top: 16px;
  width: 340px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: rgba(20,0,0,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(200,100,100,.3);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  padding: 16px;
  color: rgba(255,255,255,.85);
}
.desktop-control h2 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #ffd463;
}
.desktop-control label {
  color: rgba(255,255,255,.6);
  font-size: 12px;
}
.desktop-control input,
.desktop-control select {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  color: #fff;
  padding: 8px 10px;
  font-size: 13px;
}
.desktop-control input:focus {
  border-color: #ffd463;
  outline: none;
}
.desktop-control button {
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}
.desktop-control button.primary {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff;
}
.desktop-control button.primary:hover { background: #a93226; }
.desktop-control button.secondary {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.15);
}
.desktop-control button.secondary:hover { background: rgba(255,255,255,.2); }
.is-collapsed { width: auto !important; }
.is-collapsed .control-content { display: none; }

.status-row { display: flex; align-items: center; gap: 8px; }
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #6b7280;
  transition: all .3s ease;
  flex-shrink: 0;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  font-size: 12px;
}

.dir-row { display: flex; align-items: center; gap: 8px; }
.dir-label { flex: 1; font-size: 12px; color: rgba(255,255,255,.5); }
.dir-btn { flex-shrink: 0; font-size: 11px !important; padding: 4px 8px !important; }

.wall-stats {
  position: fixed; bottom: 16px; right: 16px; z-index: 15;
  background: rgba(0,0,0,.5); color: rgba(255,255,255,.4);
  padding: 5px 10px; border-radius: 20px; font-size: 11px;
  pointer-events: none;
}
.exit-present-btn {
  position: fixed; bottom: 16px; right: 16px; z-index: 999;
  background: transparent; color: transparent;
  border: 1px solid transparent; border-radius: 6px;
  padding: 4px 10px; font-size: 11px; cursor: pointer;
  transition: all .3s ease;
}
.exit-present-btn:hover { background: rgba(0,0,0,.6); color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.15); }

@keyframes imageIn {
  from { transform: scale(.985); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .desktop-control { left: 8px; top: 8px; width: calc(100vw - 16px); }
}
