/* ============================================
   场景页面 + 古风标签 + 装饰层
   ============================================ */

.scene {
  background: var(--c-paper);
}

/* 场景背景视频 */
.scene-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}
.scene-bg-video.active {
  opacity: 1;
}

/* 静态图后备（视频加载前显示） */
.scene-bg-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.scene-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* 场景信息条（顶部） */
.scene-info {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(245, 235, 215, 0.85);
  border: 1px solid var(--c-gold);
  padding: 10px 28px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  font-family: var(--font-kai);
  opacity: 0;
  animation: fadeIn 0.8s 0.6s forwards;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scene-realm {
  font-size: 22px;
  color: var(--c-gold-dark);
  font-weight: bold;
  letter-spacing: 2px;
}

.scene-name {
  font-size: 16px;
  color: var(--c-ink);
  letter-spacing: 6px;
}

/* 下一场景按钮 */
.next-scene-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 50;
  background: rgba(245, 235, 215, 0.9);
  border: 1.5px solid var(--c-gold);
  padding: 12px 30px;
  font-family: var(--font-kai);
  font-size: 16px;
  letter-spacing: 6px;
  color: var(--c-ink);
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.next-scene-btn:hover {
  background: var(--c-paper-light);
  border-color: var(--c-gold-light);
  box-shadow: 0 0 18px rgba(201, 169, 110, 0.6);
  transform: translateY(-2px);
}

/* ============================================
   水波纹层（北冥/濠梁）
   ============================================ */
.water-ripple {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(60, 80, 100, 0.04) 50%,
    rgba(60, 80, 100, 0.08) 100%);
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.water-ripple::before,
.water-ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 200px 8px at 50% 50%,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 70%);
  background-size: 300px 30px;
  background-repeat: repeat;
  animation: waterFlow 25s linear infinite;
  opacity: 0.5;
}

.water-ripple::after {
  background-size: 400px 40px;
  animation-duration: 35s;
  animation-direction: reverse;
  opacity: 0.3;
}

@keyframes waterFlow {
  from { background-position: 0 0; }
  to   { background-position: 300px 0; }
}

/* ============================================
   落叶粒子层（颖水专用）
   ============================================ */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 4;
}

.particle {
  position: absolute;
  top: -10px;
  width: 5px;
  height: 5px;
  background: rgba(180, 140, 80, 0.5);
  border-radius: 50%;
  filter: blur(0.5px);
  animation: fall 18s linear infinite;
}

/* ============================================
   骊珠呼吸光（颖水专用，克制版）
   ============================================ */
.pearl-glow {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 250, 235, 0.5) 0%,
    rgba(245, 235, 215, 0.2) 40%,
    transparent 70%);
  filter: blur(5px);
  animation: pearlBreathe 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
  transform: translate(-50%, -50%);
}

/* ============================================
   古风标签层
   ============================================ */
.tags-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 30;
}

.tag {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0;
  animation: tagFadeIn 0.8s ease forwards;
}

.tag-vertical .tag-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  background: rgba(245, 235, 215, 0.94);
  border: 1.5px solid var(--c-gold);
  padding: 12px 8px;
  font-family: var(--font-kai);
  font-size: 17px;
  color: var(--c-ink);
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.18),
              inset 0 0 6px rgba(201, 169, 110, 0.15);
  position: relative;
  letter-spacing: 4px;
  line-height: 1.4;
  font-weight: 500;
}

/* 标签底部古风小三角 */
.tag-vertical .tag-text::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--c-gold);
}

.tag-vertical .tag-text::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(245, 235, 215, 0.94);
  z-index: 1;
}

/* 定位脉动小圆点 */
.tag-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-gold);
  border: 2px solid var(--c-paper-light);
  box-shadow: 0 0 8px rgba(201, 169, 110, 0.5);
  margin-top: 8px;
  animation: pulse 2.5s ease-in-out infinite;
}

/* 标签悬停高亮 */
.tag:hover {
  opacity: 1;
  transform: translate(-50%, -55%);
  z-index: 40;
}

.tag:hover .tag-text {
  background: rgba(255, 245, 220, 1);
  border-color: var(--c-gold-light);
  color: #1a1208;
  box-shadow: 0 0 16px rgba(232, 184, 94, 0.7),
              0 4px 10px rgba(0, 0, 0, 0.2);
}

.tag:hover .tag-dot {
  animation-play-state: paused;
  transform: scale(1.4);
  box-shadow: 0 0 18px rgba(232, 184, 94, 1);
  background: var(--c-gold-light);
}