/* ============================================================
   独立体验页 studio.html
   全屏 3D 画布 + 站点导航/页脚外壳
   ============================================================ */

.studio-experience {
  position: relative;
  z-index: var(--z-content, 1);
  isolation: isolate;
  min-height: 100vh;
  padding-top: var(--nav-height, 72px);
  background: #080b11;
}

.studio-experience-stage {
  position: relative;
  z-index: var(--z-content, 1);
  width: 100%;
  height: calc(100vh - var(--nav-height, 72px));
  min-height: 520px;
  overflow: hidden;
  background: #080b11;
}

.studio-experience-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #080b11;
}

.studio-exp-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  background: linear-gradient(180deg, #07080d, #0a0d14);
}

.studio-exp-fallback {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background:
    radial-gradient(circle at 50% 35%, rgba(56, 212, 250, 0.10), transparent 55%),
    #07080d;
  color: rgba(255, 255, 255, 0.7);
}
.studio-exp-fallback[hidden] { display: none; }
.studio-exp-fallback p { margin: 0; font-size: 14px; }

/* 返回官网（左上） */
.studio-exp-back {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(10, 13, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease;
}
.studio-exp-back:hover {
  background: rgba(20, 26, 38, 0.7);
  transform: translateY(-1px);
}
.studio-exp-back__logo {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #f5f7fa;
  background: #0e1016;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* 控制台（右上） */
.studio-exp-ctrl {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 13px;
}
.studio-ctrl-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 13, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.studio-ctrl-toggle:hover {
  background: rgba(20, 26, 38, 0.72);
  transform: translateY(-1px);
}
.studio-ctrl-toggle__icon { font-size: 15px; }
.studio-ctrl-body {
  width: 236px;
  padding: 14px 16px 16px;
  border-radius: 16px;
  background: rgba(10, 13, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  color: #eaf2ff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.studio-ctrl-body[hidden] { display: none; }
.studio-ctrl-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
}
.studio-ctrl-row--switch {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.studio-ctrl-row input[type="range"] { width: 100%; accent-color: #38d4fa; }
.studio-ctrl-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: #38d4fa; }
.studio-ctrl-row select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #eaf2ff;
  font-size: 12.5px;
}
.studio-ctrl-row select option { color: #111; }
.studio-ctrl-reset {
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(56, 212, 250, 0.16);
  color: #cdeeff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}
.studio-ctrl-reset:hover { background: rgba(56, 212, 250, 0.28); }
.studio-ctrl-hint {
  margin: 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.studio-exp-guide {
  position: absolute;
  right: 18px;
  bottom: 20px;
  z-index: 6;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(460px, calc(100% - 36px));
}
.studio-exp-guide span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(10,13,20,0.58);
  color: rgba(234,242,255,0.78);
  font-size: 12px;
  backdrop-filter: blur(8px);
}

/* 对象信息面板（底部居中偏下） */
.studio-exp-panel {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 6;
  width: min(420px, calc(100% - 36px));
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(10, 13, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  color: #eaf2ff;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.studio-exp-panel[hidden] { display: none; }
.studio-exp-panel__name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.studio-exp-panel__desc {
  font-size: 13px;
  color: #9fb0c8;
  margin-bottom: 12px;
}
.studio-exp-reset {
  min-width: 120px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #eaf2ff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.studio-exp-reset:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.studio-exp-reset:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .studio-exp-ctrl { top: 12px; right: 12px; }
  .studio-ctrl-body { width: 200px; }
  .studio-exp-back__txt { display: none; }
  .studio-exp-back { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .studio-exp-back:hover,
  .studio-exp-reset:hover { transform: none; }
}
