/* ==========================================================================
   Shell — 顶栏 / 导航 / 场景容器 / 底栏
   ========================================================================== */

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(14px + var(--safe-t)) clamp(16px, 4vw, 40px) 14px;
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 16px 8px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background 0.3s var(--ease-out), border-color 0.3s;
  flex-shrink: 0;
}

.brand:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: var(--border-strong);
}

.brand-avatars {
  display: flex;
}

.brand-avatars .av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(10, 14, 28, 0.9);
  flex-shrink: 0;
}

.brand-avatars .av + .av {
  margin-left: -9px;
}

.brand-avatars .av svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}

.brand-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-sub {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

/* 右上角工具组 */
.tools {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--text-2);
  transition: all 0.3s var(--ease-out);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
  color: var(--text-1);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.icon-btn.is-on {
  color: var(--aurora-teal);
  border-color: rgba(53, 224, 200, 0.4);
  background: rgba(53, 224, 200, 0.1);
}

/* 旅行进度 */
.journey {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(22px + var(--safe-b));
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  border-radius: 99px;
  background: rgba(12, 16, 30, 0.62);
  border: 1px solid var(--border);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  transition: opacity 0.4s, transform 0.4s;
}

.journey.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(14px);
  pointer-events: none;
}

.journey-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.jdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.45s var(--ease-out);
  cursor: pointer;
  padding: 0;
  position: relative;
}

.jdot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
}

.jdot:hover {
  background: rgba(255, 255, 255, 0.45);
}

.jdot.on {
  width: 22px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--ds-blue-soft), var(--aurora-pink));
  box-shadow: 0 0 14px rgba(124, 148, 255, 0.6);
}

.journey-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.journey-label b {
  color: var(--text-1);
  font-weight: 600;
}

/* 侧边导航（桌面） */
.side-nav {
  position: fixed;
  right: clamp(14px, 2.4vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 8px;
  border-radius: 99px;
  background: rgba(12, 16, 30, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.side-nav button {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-4);
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: all 0.3s var(--ease-out);
}

.side-nav button:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.07);
}

.side-nav button.on {
  color: #fff;
  background: linear-gradient(135deg, rgba(77, 107, 254, 0.9), rgba(255, 107, 157, 0.75));
  box-shadow: 0 0 16px rgba(124, 148, 255, 0.45);
}

/* 悬浮 tooltip */
.side-nav button::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(16, 21, 38, 0.95);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-1);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.24s var(--ease-out);
}

.side-nav button:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ---------- 场景容器 ---------- */
.scenes {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.62s var(--ease-out), visibility 0s linear 0.62s;
  will-change: opacity;
}

.scene.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.62s var(--ease-out), visibility 0s;
  z-index: 3;
}

/* 场景通用内边距：给顶栏/底栏留出空间 */
.scene-pad {
  padding: calc(76px + var(--safe-t)) clamp(16px, 4vw, 44px)
    calc(84px + var(--safe-b));
  height: 100%;
  display: flex;
  flex-direction: column;
}

.scene-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* 场景过渡：元素逐个上浮 */
.scene .rise {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.scene.active .rise {
  opacity: 1;
  transform: none;
}

.scene.active .rise:nth-child(1) {
  transition-delay: 0.06s;
}
.scene.active .rise:nth-child(2) {
  transition-delay: 0.12s;
}
.scene.active .rise:nth-child(3) {
  transition-delay: 0.18s;
}
.scene.active .rise:nth-child(4) {
  transition-delay: 0.24s;
}
.scene.active .rise:nth-child(5) {
  transition-delay: 0.3s;
}
.scene.active .rise:nth-child(6) {
  transition-delay: 0.36s;
}

/* ---------- 通用小标题 ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--aurora-teal), transparent);
}

.scene-title {
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0 0 14px;
}

.scene-desc {
  font-size: clamp(14px, 1.28vw, 16.5px);
  color: var(--text-2);
  line-height: 1.75;
  max-width: 56ch;
  margin: 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .side-nav {
    display: none;
  }
  .brand-sub {
    display: none;
  }
  .scene-pad {
    padding: calc(70px + var(--safe-t)) 16px calc(78px + var(--safe-b));
  }
}

@media (max-width: 560px) {
  .brand {
    padding: 6px 13px 6px 7px;
    gap: 9px;
  }
  .brand-title {
    font-size: 12.5px;
  }
  .icon-btn {
    width: 37px;
    height: 37px;
  }
  .tool-label {
    display: none;
  }
  .journey {
    padding: 6px 13px;
    gap: 9px;
    bottom: calc(14px + var(--safe-b));
  }
  .journey-label {
    font-size: 10.5px;
  }
}
