/* ==========================================================================
   CLARIS 明澈家居 — 五幕渐进式恐怖营销网站视觉系统
   设计原则：第一幕极简杂志级高级感 -> 丝滑过渡至冷郁恐怖谷 -> 监控崩坏 ->
   纯黑手电筒深渊 -> 2.39:1 恐怖片高潮剧场
   ========================================================================== */

:root {
  /* 由 main.js 按每帧滚动进度连续驱动的核心变量 */
  --p: 0;
  --bg-r: 250;
  --bg-g: 248;
  --bg-b: 245;
  --ink-r: 28;
  --ink-g: 27;
  --ink-b: 25;
  --muted-r: 112;
  --muted-g: 108;
  --muted-b: 101;
  --surface-r: 255;
  --surface-g: 255;
  --surface-b: 255;
  --border-alpha: 0.08;
  --accent: #b88252;

  --grain-opacity: 0;
  --vignette-opacity: 0;
  --crimson-opacity: 0;
  --letterbox-size: 0vh;
  --corrupt-tilt: 0deg;
  --chromatic: 0px;

  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", Georgia, serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: rgb(var(--bg-r), var(--bg-g), var(--bg-b));
  color: rgb(var(--ink-r), var(--ink-g), var(--ink-b));
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: rgb(var(--bg-r), var(--bg-g), var(--bg-b));
  color: rgb(var(--ink-r), var(--ink-g), var(--ink-b));
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: filter 0.12s linear;
}

body.abyss-cursor {
  cursor: none;
}

body.abyss-cursor a,
body.abyss-cursor button {
  cursor: pointer;
}

/* 屏幕震动效果 */
@keyframes cameraShake {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  12% { transform: translate3d(-9px, 5px, 0) rotate(-0.5deg); }
  25% { transform: translate3d(10px, -6px, 0) rotate(0.6deg); }
  38% { transform: translate3d(-7px, -4px, 0) rotate(-0.4deg); }
  52% { transform: translate3d(8px, 6px, 0) rotate(0.3deg); }
  68% { transform: translate3d(-5px, 2px, 0) rotate(-0.2deg); }
  84% { transform: translate3d(4px, -2px, 0) rotate(0.1deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes subtleTremble {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-2px, 1px, 0); }
  50% { transform: translate3d(2px, -1px, 0); }
  75% { transform: translate3d(-1px, -1px, 0); }
}

body.screen-shake #page-main {
  animation: cameraShake 0.48s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

body.screen-tremble #page-main {
  animation: subtleTremble 0.28s linear 2;
}

/* ==========================================================================
   全屏固定氛围覆盖层
   ========================================================================== */

#atmosphere-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 40;
  pointer-events: none;
}

body.lights-out-mode #atmosphere-canvas {
  z-index: 65;
}

#film-grain {
  position: fixed;
  inset: -40%;
  width: 180%;
  height: 180%;
  z-index: 41;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: grainShift 0.35s steps(3) infinite;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 3%); }
  66% { transform: translate(3%, -2%); }
  100% { transform: translate(0, 0); }
}

#vignette-overlay {
  position: fixed;
  inset: 0;
  z-index: 42;
  pointer-events: none;
  opacity: var(--vignette-opacity);
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0) 34%,
    rgba(2, 3, 4, 0.52) 72%,
    rgba(0, 0, 0, 0.94) 100%
  );
}

#crimson-bleed {
  position: fixed;
  inset: 0;
  z-index: 43;
  pointer-events: none;
  opacity: var(--crimson-opacity);
  background: radial-gradient(
    ellipse at 50% 108%,
    rgba(130, 12, 18, 0.42) 0%,
    rgba(65, 5, 9, 0.14) 36%,
    rgba(0, 0, 0, 0) 68%
  );
}

.letterbox {
  position: fixed;
  left: 0;
  width: 100%;
  height: var(--letterbox-size);
  background: #000;
  z-index: 55;
  pointer-events: none;
  transition: height 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

#letterbox-top { top: 0; }
#letterbox-bottom { bottom: 0; }

#strobe-flash {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: rgba(215, 232, 240, 0);
  transition: background 0.05s linear;
}

#strobe-flash.active {
  background: rgba(226, 238, 245, 0.88);
}

#subliminal-bar {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 75;
  pointer-events: none;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.28em;
  color: rgba(215, 42, 48, 0.94);
  background: rgba(5, 5, 6, 0.86);
  border: 1px solid rgba(180, 26, 32, 0.35);
  padding: 8px 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

#subliminal-bar.visible {
  opacity: 1;
}

#whisper-toast {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 65;
  pointer-events: none;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: rgba(214, 218, 212, 0.78);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#whisper-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 悬浮控制胶囊 */
.floating-controls {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.floating-controls.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ctrl-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 13, 14, 0.72);
  backdrop-filter: blur(10px);
  color: rgba(232, 234, 230, 0.88);
  font-size: 12px;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ctrl-pill:hover {
  background: rgba(28, 30, 32, 0.9);
  border-color: rgba(255, 255, 255, 0.32);
}

.audio-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(180, 185, 180, 0.45);
}

.ctrl-pill.is-on .audio-dot {
  background: #6ee7a8;
  box-shadow: 0 0 8px rgba(110, 231, 168, 0.75);
}

.ctrl-reset.hidden {
  display: none;
}

/* ==========================================================================
   顶部导航栏
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(var(--bg-r), var(--bg-g), var(--bg-b), 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(var(--ink-r), var(--ink-g), var(--ink-b), var(--border-alpha));
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease;
}

.site-header.dissolved {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 70px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  color: var(--accent);
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.logo-text strong {
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.logo-text small {
  font-size: 12px;
  color: rgb(var(--muted-r), var(--muted-g), var(--muted-b));
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: rgb(var(--muted-r), var(--muted-g), var(--muted-b));
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.25s ease, letter-spacing 0.25s ease;
}

.nav-link:hover {
  color: rgb(var(--ink-r), var(--ink-g), var(--ink-b));
}

.nav-link.haunted {
  color: #a12b2f;
  letter-spacing: 0.16em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ink-r), var(--ink-g), var(--ink-b), 0.14);
  background: transparent;
  color: inherit;
  font-size: 12.5px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.22s ease;
}

.audio-pill:hover {
  border-color: rgba(var(--ink-r), var(--ink-g), var(--ink-b), 0.35);
}

.audio-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.audio-bars i {
  display: block;
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
  opacity: 0.45;
  transition: height 0.2s;
}

.audio-pill.is-on .audio-bars i {
  opacity: 1;
  background: var(--accent);
  animation: eqPulse 0.9s ease-in-out infinite alternate;
}
.audio-pill.is-on .audio-bars i:nth-child(2) { animation-delay: 0.22s; }
.audio-pill.is-on .audio-bars i:nth-child(3) { animation-delay: 0.45s; }

@keyframes eqPulse {
  0% { height: 3px; }
  100% { height: 11px; }
}

.btn-primary-sm {
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  background: rgb(var(--ink-r), var(--ink-g), var(--ink-b));
  color: rgb(var(--bg-r), var(--bg-g), var(--bg-b));
  font-size: 13px;
  font-family: var(--font-sans);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.btn-primary-sm:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ==========================================================================
   通用排版容器
   ========================================================================== */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin: 0;
}

/* ==========================================================================
   第一幕 · ACT I : 阳光高端智能家居官网
   ========================================================================== */

.act-1 {
  padding-top: 138px;
  padding-bottom: 120px;
  position: relative;
}

.hero-block {
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ink-r), var(--ink-g), var(--ink-b), 0.1);
  background: rgba(var(--surface-r), var(--surface-g), var(--surface-b), 0.6);
  font-size: 12.5px;
  color: rgb(var(--muted-r), var(--muted-g), var(--muted-b));
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.8vw, 68px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.02em;
  margin: 0 0 22px;
}

.mobile-br {
  display: none;
}

.hero-subtitle {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 16.5px;
  color: rgb(var(--muted-r), var(--muted-g), var(--muted-b));
  font-weight: 300;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 58px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 999px;
  background: rgb(var(--ink-r), var(--ink-g), var(--ink-b));
  color: rgb(var(--bg-r), var(--bg-g), var(--bg-b));
  text-decoration: none;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ink-r), var(--ink-g), var(--ink-b), 0.16);
  background: rgba(var(--surface-r), var(--surface-g), var(--surface-b), 0.55);
  color: inherit;
  font-size: 14px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.btn-ghost:hover {
  border-color: rgba(var(--ink-r), var(--ink-g), var(--ink-b), 0.36);
  background: rgba(var(--surface-r), var(--surface-g), var(--surface-b), 0.9);
}

/* 主视觉画框 */
.hero-media-frame {
  margin: 0 auto 56px;
  max-width: 1020px;
}

.media-aspect {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 70px -24px rgba(34, 24, 14, 0.18);
  border: 1px solid rgba(var(--ink-r), var(--ink-g), var(--ink-b), 0.08);
  background: #e9e4dc;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 1.2s ease, transform 1.2s ease;
}

.scar-shadow-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 9% 30% at 66.8% 49%, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(180deg, rgba(14, 18, 16, 0.16) 0%, rgba(8, 6, 6, 0.52) 100%);
  transition: opacity 1.2s ease;
}

.scar-caption {
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(215, 42, 48, 0.92);
  opacity: 0;
  pointer-events: none;
}

.media-caption {
  display: flex;
  justify-content: space-between;
  padding: 14px 6px 0;
  font-size: 12.5px;
  color: rgb(var(--muted-r), var(--muted-g), var(--muted-b));
}

/* 指标条 */
.metrics-strip {
  max-width: 820px;
  margin: 0 auto 128px;
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid rgba(var(--ink-r), var(--ink-g), var(--ink-b), 0.1);
  border-bottom: 1px solid rgba(var(--ink-r), var(--ink-g), var(--ink-b), 0.1);
}

.metric-item {
  text-align: center;
}

.metric-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 13px;
  color: rgb(var(--muted-r), var(--muted-g), var(--muted-b));
}

.metric-divider {
  width: 1px;
  height: 36px;
  background: rgba(var(--ink-r), var(--ink-g), var(--ink-b), 0.1);
}

/* 核心特性卡片 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 36px 30px;
  border-radius: 16px;
  background: rgba(var(--surface-r), var(--surface-g), var(--surface-b), 0.65);
  border: 1px solid rgba(var(--ink-r), var(--ink-g), var(--ink-b), 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--ink-r), var(--ink-g), var(--ink-b), 0.18);
}

.feature-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 12px;
}

.feature-card p {
  margin: 0;
  font-size: 14.5px;
  color: rgb(var(--muted-r), var(--muted-g), var(--muted-b));
}

/* ==========================================================================
   第二幕 · ACT II : 恐怖谷初现
   ========================================================================== */

.act-2 {
  padding: 120px 0 130px;
  position: relative;
}

.uncanny-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 130px;
}

.telemetry-panel {
  padding: 36px 32px;
  border-radius: 16px;
  background: rgba(var(--surface-r), var(--surface-g), var(--surface-b), 0.45);
  border: 1px solid rgba(var(--ink-r), var(--ink-g), var(--ink-b), 0.12);
  backdrop-filter: blur(8px);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgb(var(--muted-r), var(--muted-g), var(--muted-b));
  margin-bottom: 6px;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 500;
  margin: 0;
}

.live-clock {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(var(--ink-r), var(--ink-g), var(--ink-b), 0.06);
  letter-spacing: 0.06em;
}

.panel-desc {
  margin: 0 0 24px;
  font-size: 14px;
  color: rgb(var(--muted-r), var(--muted-g), var(--muted-b));
}

.room-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.room-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(var(--surface-r), var(--surface-g), var(--surface-b), 0.46);
  border: 1px solid rgba(var(--ink-r), var(--ink-g), var(--ink-b), 0.08);
  font-size: 13.5px;
}

.room-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-dot.ok {
  background: #5b9a6f;
}

.status-dot.eerie {
  background: #9f6a46;
  animation: eeriePulse 2.4s ease-in-out infinite;
}

@keyframes eeriePulse {
  0%, 100% { opacity: 0.45; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.25); }
}

.room-meta {
  font-size: 12.5px;
  color: rgb(var(--muted-r), var(--muted-g), var(--muted-b));
  font-family: var(--font-mono);
}

.room-state {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(91, 154, 111, 0.14);
  color: #3f7150;
}

.room-row-eerie {
  border-color: rgba(138, 62, 48, 0.24);
}

.room-row-eerie .eerie-state {
  background: rgba(145, 58, 48, 0.14);
  color: #8f3a34;
}

.occupant-footer {
  padding-top: 16px;
  border-top: 1px dashed rgba(var(--ink-r), var(--ink-g), var(--ink-b), 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.occupant-counter strong {
  font-family: var(--font-mono);
  font-size: 18px;
  margin-left: 4px;
  transition: color 0.4s ease;
}

.occupant-counter strong.anomaly {
  color: #a62b2b;
}

.occupant-note {
  font-size: 12px;
  color: rgb(var(--muted-r), var(--muted-g), var(--muted-b));
  text-align: right;
}

.occupant-note.anomaly {
  color: #9e2f2f;
}

/* 黄昏异常照片 */
.uncanny-photo-card {
  margin: 0;
}

.uncanny-img-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(var(--ink-r), var(--ink-g), var(--ink-b), 0.14);
  box-shadow: 0 24px 60px -24px rgba(10, 14, 12, 0.28);
  background: #1f2422;
}

.uncanny-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 4.5s ease, filter 1.6s ease;
}

.uncanny-photo-card:hover .uncanny-img {
  transform: scale(1.045);
  filter: contrast(1.08) brightness(0.88);
}

.uncanny-caption {
  display: flex;
  justify-content: space-between;
  padding: 12px 4px 0;
  font-size: 12.5px;
  color: rgb(var(--muted-r), var(--muted-g), var(--muted-b));
}

.caption-whisper {
  opacity: 0;
  color: #8c2e2e;
  font-family: var(--font-serif);
  letter-spacing: 0.12em;
  transition: opacity 0.8s ease;
}

.uncanny-photo-card:hover .caption-whisper,
.caption-whisper.revealed {
  opacity: 0.85;
}

/* 家庭口碑卡片 */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.review-card {
  padding: 32px 30px;
  border-radius: 14px;
  background: rgba(var(--surface-r), var(--surface-g), var(--surface-b), 0.42);
  border: 1px solid rgba(var(--ink-r), var(--ink-g), var(--ink-b), 0.11);
  transition: transform 0.6s ease, border-color 0.6s ease, background 0.6s ease;
}

.review-card.tilted {
  transform: rotate(var(--corrupt-tilt));
}

.review-card.mutated {
  border-color: rgba(154, 42, 42, 0.36);
  background: rgba(34, 24, 24, 0.16);
}

.review-stars {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

.review-body {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.85;
  transition: opacity 0.2s ease;
}

.review-body.glitching {
  opacity: 0.4;
  text-shadow: -2px 0 rgba(200, 30, 40, 0.7), 2px 0 rgba(40, 180, 170, 0.6);
}

.review-author {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  border-top: 1px solid rgba(var(--ink-r), var(--ink-g), var(--ink-b), 0.09);
  padding-top: 14px;
}

.review-author span {
  font-size: 12px;
  color: rgb(var(--muted-r), var(--muted-g), var(--muted-b));
}

.review-card.mutated .review-author span {
  color: #a43636;
  font-family: var(--font-mono);
}

/* ==========================================================================
   第三幕 · ACT III : 界面崩坏、扭曲套餐与红外监控
   ========================================================================== */

.act-3 {
  padding: 130px 0 150px;
  position: relative;
}

.corrupt-tag {
  color: #879e8b;
  letter-spacing: 0.32em;
}

.glitch-heading {
  position: relative;
  text-shadow:
    calc(var(--chromatic) * -1) 0 rgba(186, 26, 36, 0.65),
    var(--chromatic) 0 rgba(70, 145, 132, 0.55);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 140px;
}

.price-card {
  position: relative;
  padding: 34px 28px;
  border-radius: 12px;
  background: rgba(18, 22, 20, 0.68);
  border: 1px solid rgba(210, 220, 212, 0.12);
  color: #d0d5cf;
  display: flex;
  flex-direction: column;
}

.price-featured {
  border-color: rgba(152, 42, 46, 0.45);
  box-shadow: 0 0 42px -16px rgba(145, 24, 30, 0.45);
  animation: slowCardPulse 3.6s ease-in-out infinite;
}

@keyframes slowCardPulse {
  0%, 100% { border-color: rgba(152, 42, 46, 0.35); }
  50% { border-color: rgba(196, 42, 48, 0.78); }
}

.price-redacted {
  transform: rotate(-1.3deg);
  background: rgba(11, 12, 12, 0.88);
  border-color: rgba(180, 180, 180, 0.08);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  background: #7c181d;
  color: #f0d7d7;
  border-radius: 4px;
}

.price-tier {
  font-family: var(--font-serif);
  font-size: 19px;
  margin-bottom: 12px;
}

.price-val {
  font-family: var(--font-mono);
  font-size: 30px;
  margin-bottom: 22px;
  color: #eef1ec;
}

.price-val span {
  font-size: 13px;
  color: #848d85;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.price-list li {
  padding: 9px 0;
  font-size: 13.5px;
  color: #a9b2aa;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.price-list li::before {
  content: "✓ ";
  color: #6b8770;
}

.price-list li.eerie-li {
  color: #cf6b6b;
}

.price-list li.eerie-li::before {
  content: "× ";
  color: #c4363c;
}

.redact {
  display: inline-block;
  background: #1d1f1e;
  color: #1d1f1e;
  padding: 0 6px;
  border-radius: 2px;
  transition: color 0.35s ease, background 0.35s ease;
}

.price-redacted:hover .redact {
  color: #b54545;
  background: rgba(130, 22, 26, 0.18);
}

.price-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(220, 230, 222, 0.22);
  background: transparent;
  color: #dde2dc;
  font-size: 13.5px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.22s ease;
}

.price-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.price-btn-featured {
  background: #7c181d;
  border-color: #9e2228;
  color: #fff;
}

.price-btn-featured:hover {
  background: #981e24;
}

.price-btn-evasive {
  position: relative;
  border-style: dashed;
  color: #8f968f;
}

.price-feedback {
  min-height: 22px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #d95252;
  line-height: 1.5;
}

/* 监控视频主框架 */
.cctv-frame {
  max-width: 960px;
  margin: 0 auto 48px;
  background: #0a0c0b;
  border: 1px solid rgba(135, 165, 140, 0.24);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 36px 90px -20px rgba(0, 0, 0, 0.85);
}

.cctv-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #101412;
  border-bottom: 1px solid rgba(135, 165, 140, 0.18);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #9ab39e;
}

.cctv-rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rec-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8292f;
  box-shadow: 0 0 8px #d8292f;
  animation: recBlink 1.1s steps(2) infinite;
}

@keyframes recBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.15; }
}

.cctv-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050706;
}

.cctv-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cctv-img-far {
  filter: contrast(1.12) saturate(0.75);
  transform-origin: center 48%;
  transition: transform 0.25s linear;
}

.cctv-img-closer {
  opacity: 0;
  filter: contrast(1.38) brightness(1.06);
  transform: scale(1.04);
  pointer-events: none;
}

.cctv-img-closer.flash-on {
  opacity: 1;
}

.cctv-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.28) 3px,
    rgba(0, 0, 0, 0.28) 4px
  );
  opacity: 0.72;
}

.cctv-noise-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(220, 240, 224, 0.35) 0px,
    rgba(10, 12, 10, 0.85) 3px,
    rgba(180, 35, 40, 0.22) 6px
  );
}

.cctv-noise-burst.active {
  opacity: 0.9;
}

.cctv-hud-corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(182, 212, 186, 0.72);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.cctv-hud-corner.tl { top: 14px; left: 16px; }
.cctv-hud-corner.tr { top: 14px; right: 16px; }
.cctv-hud-corner.bl { bottom: 14px; left: 16px; }
.cctv-hud-corner.br { bottom: 14px; right: 16px; }

.cctv-hud-corner.alert {
  color: #ef4444;
}

/* AI 语音转写日志 */
.transcript-box {
  padding: 20px 22px 24px;
  background: #0b0e0c;
  border-top: 1px solid rgba(135, 165, 140, 0.16);
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #7b9380;
  margin-bottom: 14px;
}

.transcript-status {
  color: #c84b4b;
}

.transcript-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transcript-lines li {
  opacity: 0.08;
  transform: translateY(4px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  color: #aebcb0;
}

.transcript-lines li.shown {
  opacity: 1;
  transform: translateY(0);
}

.transcript-lines code {
  color: #677e6c;
  margin-right: 8px;
}

.transcript-lines em {
  font-style: normal;
  color: #8ea893;
  margin-right: 6px;
}

.transcript-lines li.line-voice {
  color: #e6ebe6;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.06em;
}

.transcript-lines li.line-alert {
  color: #e0464c;
  font-weight: 500;
}

/* 第四面墙信息条 */
.fourth-wall-strip {
  max-width: 960px;
  margin: 0 auto;
  padding: 26px 28px;
  border: 1px solid rgba(175, 42, 48, 0.25);
  background: rgba(12, 8, 9, 0.72);
  border-radius: 6px;
  text-align: center;
}

.fw-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #889089;
  margin-bottom: 14px;
}

.fw-meta strong {
  color: #d4dad4;
  font-weight: 500;
}

.fw-message {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.12em;
  color: #d6c5c5;
}

/* ==========================================================================
   第四幕 · ACT IV : 漆黑走廊与手电筒探索
   ========================================================================== */

.act-4 {
  position: relative;
  min-height: 270vh;
  padding: 18vh 24px 24vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 藏在绝对黑暗边缘的刻字，靠 JS 根据鼠标手电筒距离动态点亮 */
.dark-wall-scrawls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.wall-scrawl {
  position: absolute;
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: 0.26em;
  color: rgba(196, 185, 178, 0.04);
  line-height: 1.7;
  user-select: none;
  transition: color 0.14s ease, text-shadow 0.14s ease;
}

.abyss-corridor {
  position: relative;
  z-index: 5;
  max-width: 740px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 64vh;
}

.abyss-beat {
  text-align: center;
  opacity: 0.16;
  transform: translateY(18px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.abyss-beat.in-view {
  opacity: 1;
  transform: translateY(0);
}

.abyss-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  color: rgba(160, 168, 162, 0.56);
  margin: 0 0 18px;
}

.abyss-eyebrow.warn-red {
  color: rgba(212, 46, 52, 0.88);
}

.abyss-line {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.8vw, 54px);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.45;
  color: #dadfd9;
  margin: 0 0 18px;
  text-shadow: 0 0 28px rgba(0, 0, 0, 0.95);
}

.abyss-sub {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(165, 172, 166, 0.45);
  margin: 0;
}

.abyss-warn-text {
  color: #e4d4d4;
  text-shadow:
    -3px 0 rgba(206, 20, 30, 0.82),
    3px 0 rgba(54, 130, 128, 0.62),
    0 0 38px rgba(175, 12, 22, 0.5);
  animation: dreadFlicker 3.2s infinite;
}

@keyframes dreadFlicker {
  0%, 91%, 95%, 100% { opacity: 1; }
  92% { opacity: 0.35; }
  93% { opacity: 0.92; }
  94% { opacity: 0.22; }
}

.warn-sub {
  color: rgba(210, 56, 62, 0.72);
}

/* ==========================================================================
   第五幕 · ACT V : 恐怖片高潮剧场
   ========================================================================== */

.act-5 {
  position: relative;
  height: 245vh;
  background: #000;
}

.climax-sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.climax-scene-wrap {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  will-change: transform;
}

.climax-entity-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  opacity: 0.05;
  transform: scale(1.0);
  filter: brightness(0.18) contrast(1.25) blur(4px);
  transition: opacity 0.28s ease, filter 0.32s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.climax-scene-wrap.stage-sputter .climax-entity-img {
  opacity: 0.42;
  filter: brightness(0.55) contrast(1.38) blur(1.5px);
  transform: scale(1.06);
}

.climax-scene-wrap.stage-reveal .climax-entity-img {
  opacity: 1;
  filter: brightness(1.05) contrast(1.24) blur(0px);
  transform: scale(1.13);
}

.climax-scene-wrap.stage-closer .climax-entity-img {
  opacity: 1;
  filter: brightness(1.12) contrast(1.32) blur(0px);
  transform: scale(1.24);
}

.climax-shadow-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(0, 0, 0, 0.04) 0%,
    rgba(0, 0, 0, 0.55) 52%,
    rgba(0, 0, 0, 0.96) 86%
  );
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.climax-chromatic-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    90deg,
    rgba(195, 16, 28, 0.2) 0%,
    transparent 20%,
    transparent 80%,
    rgba(36, 160, 175, 0.16) 100%
  );
  mix-blend-mode: screen;
}

.climax-scene-wrap.stage-reveal .climax-chromatic-layer {
  opacity: 0.85;
}

/* 电影角落 HUD */
.cinema-hud {
  position: absolute;
  top: calc(var(--letterbox-size) + 20px);
  left: 28px;
  right: 28px;
  z-index: 48;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(226, 232, 228, 0.72);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.cinema-hud.visible {
  opacity: 1;
}

.cinema-rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cinema-dist.danger {
  color: #ea434a;
}

/* 高潮前字幕 */
.climax-pre-caption {
  position: relative;
  z-index: 46;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.28em;
  color: rgba(215, 220, 216, 0.86);
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.95);
}

.climax-pre-caption.visible {
  opacity: 1;
}

/* 揭晓后的恐怖尾声 */
.climax-aftermath {
  position: absolute;
  bottom: calc(var(--letterbox-size) + 34px);
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  z-index: 60;
  width: min(680px, 90vw);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.3s ease, transform 1.3s ease;
}

.climax-aftermath.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.aftermath-line {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.3vw, 24px);
  letter-spacing: 0.16em;
  line-height: 1.75;
  color: rgba(235, 236, 232, 0.92);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 1);
  margin: 0 0 26px;
}

.aftermath-line span {
  color: #e45258;
}

.aftermath-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-horror {
  padding: 11px 26px;
  border-radius: 4px;
  border: 1px solid rgba(210, 42, 48, 0.65);
  background: rgba(118, 14, 20, 0.62);
  color: #f3e4e4;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.14em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.btn-horror:hover {
  background: rgba(155, 20, 28, 0.85);
  border-color: rgba(240, 68, 76, 0.9);
  transform: translateY(-1px);
}

.btn-horror-ghost {
  padding: 11px 22px;
  border-radius: 4px;
  border: 1px solid rgba(220, 224, 220, 0.26);
  background: rgba(8, 9, 10, 0.72);
  color: rgba(220, 224, 220, 0.82);
  font-family: var(--font-serif);
  font-size: 13.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.25s;
}

.btn-horror-ghost:hover {
  border-color: rgba(220, 224, 220, 0.55);
  color: #fff;
}

/* 关灯纯黑体验层 */
.lights-out-overlay {
  position: fixed;
  inset: 0;
  z-index: 64;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 11vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.lights-out-overlay.active {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.lights-out-hint {
  font-family: var(--font-serif);
  font-size: 13.5px;
  letter-spacing: 0.22em;
  color: rgba(190, 195, 190, 0.46);
  margin: 0;
}

/* ==========================================================================
   二周目污染模式（从底部“假装什么都没发生回到顶部”后触发）
   ========================================================================== */

body.scarred-loop .hero-img {
  filter: saturate(0.68) contrast(1.08) brightness(0.92);
}

body.scarred-loop .scar-shadow-overlay {
  opacity: 0.78;
}

body.scarred-loop .scar-caption {
  opacity: 1;
  animation: recBlink 1.3s steps(2) infinite;
}

body.scarred-loop .eyebrow-dot {
  background: #c8282e;
  box-shadow: 0 0 8px rgba(200, 40, 46, 0.75);
}

body.scarred-loop .hero-title {
  text-shadow: -2px 0 rgba(190, 25, 32, 0.25), 2px 0 rgba(40, 120, 115, 0.2);
}

/* ==========================================================================
   预约体验弹窗
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(12, 12, 12, 0.58);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  position: relative;
  width: min(440px, 100%);
  padding: 36px 32px;
  border-radius: 16px;
  background: #faf8f5;
  color: #1c1b19;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

.modal-card.creepy {
  background: #111312;
  color: #d7dcd6;
  border: 1px solid rgba(180, 32, 38, 0.42);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: none;
  background: transparent;
  font-size: 24px;
  color: inherit;
  opacity: 0.55;
  cursor: pointer;
}

.modal-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.modal-card.creepy .modal-tag {
  color: #cf3d42;
}

.modal-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 8px 0 10px;
}

.modal-desc {
  font-size: 13.5px;
  opacity: 0.72;
  margin: 0 0 22px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.booking-form input {
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.28);
  background: rgba(255, 255, 255, 0.85);
  color: #1c1b19;
  font-family: var(--font-sans);
  font-size: 14px;
}

.modal-card.creepy .booking-form input {
  background: #1a1d1c;
  color: #e2e6e1;
  border-color: rgba(180, 42, 48, 0.35);
}

.modal-submit {
  margin-top: 6px;
  width: 100%;
}

.modal-result {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(91, 154, 111, 0.12);
  color: #2f5e3e;
  font-size: 13.5px;
}

.modal-card.creepy .modal-result {
  background: rgba(160, 26, 32, 0.18);
  color: #ea656a;
  font-family: var(--font-mono);
}

.modal-result.hidden {
  display: none;
}

/* ==========================================================================
   响应式适配
   ========================================================================== */

@media (max-width: 960px) {
  .main-nav {
    display: none;
  }

  .features-grid,
  .pricing-grid,
  .uncanny-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .metrics-strip {
    flex-direction: column;
    gap: 24px;
  }

  .metric-divider {
    width: 48px;
    height: 1px;
  }

  .mobile-br {
    display: inline;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 0 16px;
  }

  .audio-pill .audio-text {
    display: none;
  }

  .container {
    padding: 0 18px;
  }

  .room-row {
    grid-template-columns: 84px 1fr;
  }

  .room-state {
    display: none;
  }
}
