:root {
  color-scheme: dark;
  --fog-black: #02050a;
  --archive-black: #07131d;
  --fog-white: #eef7ff;
  --muted: #8ca5b4;
  --bureau-blue: #6fb7d8;
  --warning: #c88b4a;
  --danger: #8e3d46;
  --hairline: rgba(160, 203, 224, 0.3);
  --frame-scale: 1;
  --ease: cubic-bezier(0.22, 0.78, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #000;
}

body {
  overflow: hidden;
  color: var(--fog-white);
  font-family: "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

button,
video {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
.deck:focus-visible {
  outline: 2px solid var(--bureau-blue);
  outline-offset: 2px;
}

.phone-stage {
  position: relative;
  width: min(100vw, 430px);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--fog-black);
  box-shadow: 0 0 100px rgba(37, 74, 94, 0.18);
}

.deck {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: none;
  scrollbar-width: none;
}

.deck::-webkit-scrollbar {
  display: none;
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--fog-black);
}

.design-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 390px;
  height: 844px;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--frame-scale));
  transform-origin: center;
  background: var(--fog-black);
  isolation: isolate;
}

.design-frame::after {
  content: "";
  position: absolute;
  z-index: 30;
  inset: 0;
  border: 1px solid rgba(111, 183, 216, 0.12);
  pointer-events: none;
}

.external-design-frame {
  background: #000;
}

.external-page-frame {
  display: block;
  width: 390px;
  height: 844px;
  border: 0;
  background: #000;
}

.screen-background {
  position: absolute;
  z-index: -6;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65) contrast(1.08) brightness(0.55);
}

.screen-atmosphere {
  position: absolute;
  z-index: -5;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 5, 10, 0.18), rgba(2, 5, 10, 0.04) 30%, rgba(2, 5, 10, 0.8) 80%, #02050a),
    linear-gradient(90deg, rgba(2, 5, 10, 0.68) 0%, rgba(2, 5, 10, 0.12) 45%, rgba(2, 5, 10, 0.48) 100%),
    radial-gradient(circle at 64% 28%, rgba(111, 183, 216, 0.2), transparent 34%);
}

.screen-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(238, 247, 255, 0.08) 4px);
  mix-blend-mode: soft-light;
}

.screen-header {
  position: absolute;
  z-index: 18;
  top: 27px;
  left: 47px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: rgba(238, 247, 255, 0.58);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.screen-header div {
  display: flex;
  gap: 10px;
}

.screen-header b {
  color: var(--bureau-blue);
}

.screen-footer {
  position: absolute;
  z-index: 24;
  right: 24px;
  bottom: 23px;
  left: 47px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(238, 247, 255, 0.42);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 8px;
  letter-spacing: 0.12em;
  pointer-events: none;
}

.screen-footer strong {
  visibility: hidden;
}

.signal-spine {
  position: absolute;
  z-index: 22;
  top: 50px;
  bottom: 41px;
  left: 18px;
  width: 12px;
  color: var(--bureau-blue);
  pointer-events: none;
}

.signal-line {
  position: absolute;
  top: 38px;
  bottom: 46px;
  left: 5px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--bureau-blue) 8%, rgba(111, 183, 216, 0.24) 86%, transparent);
}

.signal-line::after {
  content: "";
  position: absolute;
  inset: 0 -3px;
  background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(238, 247, 255, 0.72) 23px 24px);
}

.signal-label,
.signal-coordinate {
  position: absolute;
  left: -1px;
  writing-mode: vertical-rl;
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.signal-label {
  top: 0;
}

.signal-coordinate {
  bottom: 0;
  color: rgba(238, 247, 255, 0.36);
}

.signal-pulse {
  position: absolute;
  top: 43%;
  left: 2px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--bureau-blue);
  background: var(--fog-black);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(111, 183, 216, 0.7);
  animation: signalPulse 2.8s var(--ease) infinite;
}

.chapter-rail {
  position: absolute;
  z-index: 70;
  top: 50%;
  right: max(7px, env(safe-area-inset-right));
  display: grid;
  gap: 5px;
  transform: translateY(-50%);
}

.chapter-rail button {
  width: 15px;
  height: 10px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.chapter-rail span {
  display: block;
  width: 6px;
  height: 1px;
  margin-left: auto;
  background: rgba(238, 247, 255, 0.28);
  transition: width 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.chapter-rail button.active span {
  width: 13px;
  background: var(--bureau-blue);
  box-shadow: 0 0 8px rgba(111, 183, 216, 0.7);
}

.global-counter {
  position: absolute;
  z-index: 72;
  right: max(24px, calc(env(safe-area-inset-right) + 18px));
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 15px));
  color: rgba(238, 247, 255, 0.8);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  pointer-events: none;
}

.global-counter.is-hidden {
  opacity: 0;
}

.live-region {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.boot-screen {
  position: absolute;
  z-index: 200;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  background: var(--fog-black);
  transition: opacity 350ms ease;
}

.boot-screen.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.boot-screen strong {
  font-size: 14px;
  letter-spacing: 0.12em;
}

.boot-screen small {
  color: var(--bureau-blue);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.boot-mark {
  width: 10px;
  height: 10px;
  margin: 0 auto 10px;
  border: 1px solid var(--bureau-blue);
  transform: rotate(45deg);
  animation: signalPulse 1.2s infinite;
}

/* 封面 */
.screen-poster .screen-background {
  filter: contrast(1.12) saturate(0.68) brightness(0.62);
}

.screen-poster .screen-atmosphere {
  background:
    linear-gradient(180deg, rgba(2, 5, 10, 0.1), transparent 30%, rgba(2, 5, 10, 0.9) 86%, #02050a),
    radial-gradient(circle at 56% 36%, rgba(111, 183, 216, 0.2), transparent 34%),
    linear-gradient(90deg, rgba(2, 5, 10, 0.46), transparent 30%, transparent 70%, rgba(2, 5, 10, 0.3));
}

.cover-header {
  position: absolute;
  z-index: 10;
  top: 28px;
  right: 24px;
  left: 47px;
  display: flex;
  justify-content: space-between;
  color: rgba(238, 247, 255, 0.62);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.cover-person {
  position: absolute;
  z-index: 2;
  object-fit: contain;
  object-position: bottom;
  pointer-events: none;
  user-select: none;
}

.cover-primary {
  right: -86px;
  bottom: 104px;
  width: 402px;
  height: 607px;
  filter: drop-shadow(-18px 22px 28px rgba(0, 0, 0, 0.72));
}

.cover-secondary {
  z-index: 1;
  left: -103px;
  bottom: 174px;
  width: 300px;
  height: 498px;
  opacity: 0.68;
  filter: saturate(0.7) brightness(0.66) drop-shadow(14px 20px 24px rgba(0, 0, 0, 0.68));
}

.cover-copy {
  position: absolute;
  z-index: 10;
  right: 25px;
  bottom: 80px;
  left: 47px;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.74);
}

.cover-copy > p {
  margin: 0 0 5px;
  color: var(--bureau-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.cover-copy h1 {
  margin: 0;
  font-family: "STSong", "SimSun", serif;
  font-size: 68px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.cover-copy h2 {
  margin: 15px 0 16px;
  color: rgba(238, 247, 255, 0.76);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.26em;
}

.cover-copy div {
  display: flex;
  gap: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(111, 183, 216, 0.38);
  color: rgba(238, 247, 255, 0.72);
  font-size: 9px;
  letter-spacing: 0.08em;
}

/* CH.02 项目基本信息：管理局准入档案 × 电影制片场记 */
.screen-basic .screen-background {
  transform: scale(1.16);
  filter: blur(22px) saturate(0.68) contrast(1.08) brightness(0.48);
}

.screen-basic .screen-atmosphere {
  background:
    linear-gradient(180deg, rgba(2, 8, 10, 0.48) 0%, rgba(2, 8, 10, 0.08) 30%, rgba(2, 8, 10, 0.72) 77%, #020708 100%),
    linear-gradient(90deg, rgba(1, 6, 8, 0.88) 0%, rgba(1, 6, 8, 0.24) 45%, rgba(1, 6, 8, 0.42) 100%);
}

.basic-file {
  position: absolute;
  z-index: 8;
  top: 75px;
  right: 24px;
  bottom: 58px;
  left: 47px;
}

.basic-restricted {
  position: absolute;
  top: -43px;
  right: 0;
  padding: 3px 5px 2px;
  background: rgba(142, 61, 70, 0.92);
  color: #f5d9d6;
  font: 700 6px/1 "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0.13em;
}

.basic-title > p {
  margin: 0 0 7px;
  color: var(--bureau-blue);
  font: 700 8px/1 "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0.32em;
}

.basic-title h2 {
  margin: 0;
  font-family: "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 31px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.basic-title > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 9px;
}

.basic-title > div strong {
  font-size: 12px;
  letter-spacing: 0.04em;
}

.basic-title > div span {
  color: rgba(238, 247, 255, 0.56);
  font: 500 7px/1 "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.basic-evidence {
  position: absolute;
  top: 99px;
  right: -24px;
  left: 0;
  height: 264px;
  overflow: hidden;
  border-top: 1px solid rgba(238, 247, 255, 0.42);
  border-bottom: 1px solid rgba(238, 247, 255, 0.28);
}

.basic-evidence::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 7, 9, 0.46) 0%, rgba(1, 7, 9, 0.04) 52%, rgba(1, 7, 9, 0.3) 100%),
    linear-gradient(180deg, rgba(1, 7, 9, 0.18), rgba(1, 7, 9, 0.02) 52%, rgba(1, 7, 9, 0.98) 77%);
  pointer-events: none;
}

.basic-evidence > img {
  position: absolute;
  z-index: 0;
  top: 34px;
  left: 0;
  width: 100%;
  height: 148px;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.86) contrast(1.06) brightness(0.76);
}

.basic-evidence-meta {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 18px;
  left: 13px;
  display: flex;
  justify-content: space-between;
  color: rgba(238, 247, 255, 0.68);
  font: 500 6px/1 "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0.19em;
}

.basic-format {
  position: absolute;
  z-index: 2;
  bottom: 17px;
  left: 13px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.basic-metric {
  display: grid;
  justify-items: start;
  min-width: 72px;
}

.basic-metric > strong {
  font: 800 62px/0.78 Arial, sans-serif;
  letter-spacing: -0.085em;
}

.basic-metric small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  color: rgba(238, 247, 255, 0.9);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.basic-metric small b {
  color: rgba(111, 183, 216, 0.72);
  font: 500 5px/1 "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0.13em;
}

.basic-times {
  margin: 16px 1px 0;
  color: #c94b43;
  font: 400 27px/1 Arial, sans-serif;
}

.basic-duration {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 20px;
  width: 82px;
  padding-top: 8px;
  border-top: 2px solid #c94b43;
}

.basic-duration span {
  display: block;
  color: rgba(238, 247, 255, 0.56);
  font: 500 6px/1 "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0.13em;
}

.basic-duration strong {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.basic-registry {
  position: absolute;
  top: 380px;
  right: 0;
  left: 0;
  margin: 0;
  border-top: 1px solid var(--hairline);
}

.basic-registry > div {
  display: grid;
  grid-template-columns: 67px 1fr;
  gap: 11px;
  align-items: baseline;
  min-height: 42px;
  padding: 10px 0 8px;
  border-bottom: 1px solid rgba(111, 183, 216, 0.19);
}

.basic-registry dt {
  color: var(--bureau-blue);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.basic-registry dd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.025em;
}

.basic-locations {
  position: absolute;
  top: 512px;
  right: 0;
  left: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(238, 247, 255, 0.42);
}

.basic-locations header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.basic-locations header span {
  color: var(--bureau-blue);
  font: 600 7px/1 "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0.25em;
}

.basic-locations header b {
  font-size: 8px;
  letter-spacing: 0.16em;
}

.basic-locations p {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.04em;
}

.basic-locations i {
  margin: 0 2px;
  color: #c94b43;
  font-style: normal;
}

.basic-file .keyword-line {
  top: 607px;
  bottom: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(111, 183, 216, 0.19);
}

/* 通用编辑式内容 */
.editorial,
.scene-layout,
.timeline-layout,
.network-layout {
  position: absolute;
  z-index: 8;
  top: 84px;
  right: 28px;
  bottom: 58px;
  left: 48px;
}

.title-block > p {
  margin: 0 0 9px;
  color: var(--bureau-blue);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.title-block > span {
  display: inline-block;
  margin-bottom: 8px;
  padding-left: 8px;
  border-left: 2px solid var(--warning);
  color: rgba(238, 247, 255, 0.68);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.title-block h2 {
  max-width: 310px;
  margin: 0;
  font-family: "STSong", "SimSun", serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.title-block h3 {
  max-width: 304px;
  margin: 12px 0 0;
  color: rgba(238, 247, 255, 0.6);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.copy-flow {
  position: absolute;
  right: 0;
  bottom: 86px;
  left: 0;
  padding: 19px 17px 17px 21px;
  border-top: 1px solid rgba(111, 183, 216, 0.42);
  border-bottom: 1px solid rgba(111, 183, 216, 0.18);
  background: linear-gradient(90deg, rgba(2, 5, 10, 0.84), rgba(7, 19, 29, 0.56), rgba(2, 5, 10, 0.22));
  box-shadow: -18px 12px 40px rgba(0, 0, 0, 0.34);
}

.copy-flow::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 36px;
  height: 5px;
  background: var(--bureau-blue);
}

.copy-flow p {
  margin: 0 0 12px;
  color: rgba(238, 247, 255, 0.9);
  font-size: 14px;
  line-height: 1.72;
  text-align: justify;
}

.copy-flow p:last-child {
  margin-bottom: 0;
}

.keyword-line {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: rgba(238, 247, 255, 0.56);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.keyword-line i {
  width: 3px;
  height: 3px;
  background: var(--bureau-blue);
  transform: rotate(45deg);
}

.editorial-quote .title-block h2,
.editorial-world .title-block h2 {
  font-size: 39px;
  line-height: 1.03;
}

.editorial-promise .copy-flow,
.editorial-story .copy-flow,
.editorial-broadcast .copy-flow {
  bottom: 74px;
}

.editorial-broadcast .copy-flow {
  border-color: rgba(142, 61, 70, 0.72);
  background: linear-gradient(90deg, rgba(24, 5, 10, 0.9), rgba(7, 19, 29, 0.58));
}

.archive-rows {
  position: absolute;
  right: 0;
  bottom: 33px;
  left: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.archive-rows section {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 13px;
  padding: 17px 4px 17px 0;
  border-bottom: 1px solid rgba(160, 203, 224, 0.2);
  background: linear-gradient(90deg, rgba(2, 5, 10, 0.86), rgba(7, 19, 29, 0.54), transparent);
}

.archive-rows section > b {
  padding-top: 2px;
  color: var(--bureau-blue);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.archive-rows h4 {
  margin: 0 0 6px;
  font-family: "STSong", "SimSun", serif;
  font-size: 18px;
  line-height: 1.15;
}

.archive-rows p {
  margin: 0;
  color: rgba(238, 247, 255, 0.76);
  font-size: 12px;
  line-height: 1.62;
}

.editorial-mirror .archive-rows,
.editorial-conspiracy .archive-rows {
  border-top-color: rgba(142, 61, 70, 0.72);
}

.editorial-system .archive-rows section {
  position: relative;
  padding-left: 10px;
}

.editorial-system .archive-rows section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(var(--bureau-blue), var(--danger));
}

.subject-stack {
  position: absolute;
  z-index: 1;
  inset: 110px 0 54px 0;
  overflow: hidden;
  pointer-events: none;
}

.subject-stack img {
  position: absolute;
  bottom: 20px;
  width: 250px;
  height: 560px;
  object-fit: contain;
  object-position: bottom;
  opacity: 0.48;
  filter: saturate(0.66) brightness(0.7) drop-shadow(0 20px 30px rgba(0, 0, 0, 0.7));
}

.subject-stack .subject-1 {
  right: -48px;
}

.subject-stack .subject-2 {
  left: -67px;
  transform: scaleX(-1);
}

.subject-stack .subject-3 {
  left: 70px;
  opacity: 0.33;
}

/* 场景 */
.scene-layout .title-block h2 {
  font-size: 34px;
}

.motion-window,
.still-window {
  position: absolute;
  z-index: 4;
  top: 138px;
  right: 0;
  left: 0;
  height: 143px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(111, 183, 216, 0.45);
  background: #010205;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.motion-window video,
.still-window img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #010205;
}

.motion-window figcaption {
  position: absolute;
  right: 8px;
  bottom: 7px;
  left: 8px;
  display: flex;
  justify-content: space-between;
  color: rgba(238, 247, 255, 0.6);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 7px;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 5px #000;
}

.scene-foreground {
  position: absolute;
  z-index: 3;
  top: 257px;
  right: -47px;
  width: 252px;
  height: 304px;
  object-fit: contain;
  filter: saturate(0.76) contrast(1.05) drop-shadow(-14px 20px 30px rgba(0, 0, 0, 0.66));
}

.scene-copy {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 60px;
  left: 0;
  margin: 0;
  padding: 17px 16px 18px 20px;
  border-top: 1px solid rgba(111, 183, 216, 0.42);
  background: linear-gradient(90deg, rgba(2, 5, 10, 0.92), rgba(7, 19, 29, 0.72), rgba(2, 5, 10, 0.44));
  font-size: 13px;
  line-height: 1.7;
}

.local-progress {
  position: absolute;
  right: 0;
  bottom: 35px;
  left: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

.local-progress i {
  height: 2px;
  background: rgba(238, 247, 255, 0.2);
}

.local-progress i.active {
  background: var(--bureau-blue);
  box-shadow: 0 0 7px rgba(111, 183, 216, 0.7);
}

/* 怪异档案 */
.anomaly-layout {
  position: absolute;
  z-index: 6;
  inset: 76px 27px 58px 48px;
}

.anomaly-layout .motion-window {
  top: 34px;
  height: 126px;
}

.anomaly-subject {
  position: absolute;
  z-index: 6;
  top: 133px;
  right: -58px;
  width: 310px;
  height: 344px;
  object-fit: contain;
  filter: drop-shadow(-12px 21px 28px rgba(0, 0, 0, 0.78));
  pointer-events: none;
}

.anomaly-copy {
  position: absolute;
  z-index: 9;
  right: 0;
  bottom: 42px;
  left: 0;
  padding: 19px 16px 17px 19px;
  border-top: 1px solid rgba(111, 183, 216, 0.46);
  background: linear-gradient(90deg, rgba(2, 5, 10, 0.94), rgba(7, 19, 29, 0.82), rgba(2, 5, 10, 0.64));
  box-shadow: 0 -15px 44px rgba(0, 0, 0, 0.38);
}

.anomaly-copy > p:first-child {
  margin: 0 0 6px;
  color: var(--bureau-blue);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.anomaly-copy > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.anomaly-copy h2 {
  margin: 0;
  font-family: "STSong", "SimSun", serif;
  font-size: 35px;
  line-height: 1;
}

.anomaly-copy strong {
  color: var(--warning);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 23px;
}

.anomaly-copy dl {
  margin: 12px 0 9px;
}

.anomaly-copy dl div {
  justify-content: flex-start;
  align-items: baseline;
}

.anomaly-copy dt,
.anomaly-copy dd {
  margin: 0;
  font-size: 9px;
}

.anomaly-copy dt {
  width: 34px;
  color: var(--muted);
}

.anomaly-copy > p:not(:first-child) {
  margin: 0;
  color: rgba(238, 247, 255, 0.82);
  font-size: 11px;
  line-height: 1.65;
}

.anomaly-copy .keyword-line {
  position: static;
  margin-top: 10px;
}

.anomaly-progress {
  grid-template-columns: repeat(9, 1fr);
  bottom: 22px;
}

/* 时间线 */
.timeline-layout .title-block h2 {
  font-size: 31px;
}

.timeline-axis {
  position: absolute;
  right: 0;
  bottom: 48px;
  left: 0;
  display: grid;
  gap: 62px;
  padding-left: 18px;
  border-left: 1px solid rgba(111, 183, 216, 0.54);
}

.timeline-axis::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -3px;
  width: 5px;
  background: repeating-linear-gradient(180deg, var(--bureau-blue) 0 4px, transparent 4px 26px);
}

.timeline-axis section {
  position: relative;
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 14px;
  padding: 19px 14px 20px 0;
  border-top: 1px solid rgba(160, 203, 224, 0.28);
  background: linear-gradient(90deg, rgba(2, 5, 10, 0.9), rgba(7, 19, 29, 0.58), transparent);
}

.timeline-axis section::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -22px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--bureau-blue);
  background: var(--fog-black);
  transform: rotate(45deg);
}

.timeline-axis section > b {
  color: var(--bureau-blue);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 10px;
}

.timeline-axis h3 {
  margin: 0 0 8px;
  font-family: "STSong", "SimSun", serif;
  font-size: 21px;
}

.timeline-axis p {
  margin: 0;
  color: rgba(238, 247, 255, 0.76);
  font-size: 12px;
  line-height: 1.65;
}

.timeline-axis section.critical {
  border-color: rgba(142, 61, 70, 0.72);
}

.timeline-axis section.critical::before {
  border-color: var(--danger);
  box-shadow: 0 0 14px rgba(142, 61, 70, 0.75);
}

/* 人物关系 */
.network-layout {
  top: 78px;
}

.network-layout .title-block h2 {
  font-size: 30px;
}

.network-layout .title-block h3 {
  margin-top: 7px;
}

.network-copy {
  margin: 10px 0 0;
  color: rgba(238, 247, 255, 0.58);
  font-size: 9px;
  line-height: 1.5;
}

.network-stage {
  position: absolute;
  right: 0;
  bottom: 80px;
  left: 0;
  height: 412px;
  overflow: hidden;
  border-top: 1px solid rgba(111, 183, 216, 0.34);
  border-bottom: 1px solid rgba(111, 183, 216, 0.2);
  background: radial-gradient(circle at 50% 50%, rgba(111, 183, 216, 0.14), rgba(2, 5, 10, 0.54) 45%, rgba(2, 5, 10, 0.82));
  touch-action: none;
  cursor: grab;
}

.network-stage:active {
  cursor: grabbing;
}

.network-orbit {
  --network-angle: 0deg;
  --network-scale: 1;
  position: absolute;
  top: 46px;
  left: 3px;
  width: 320px;
  height: 320px;
  transform: rotate(var(--network-angle)) scale(var(--network-scale));
  transform-origin: center;
  transition: transform 50ms linear;
}

.network-orbit svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.network-orbit line {
  stroke: rgba(111, 183, 216, 0.27);
  stroke-width: 0.9;
}

.network-orbit line.family {
  stroke: rgba(200, 139, 74, 0.43);
}

.network-orbit line.hostile {
  stroke: rgba(142, 61, 70, 0.54);
  stroke-dasharray: 4 3;
}

.network-node {
  position: absolute;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.network-node::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid var(--bureau-blue);
  background: var(--fog-black);
  box-shadow: 0 0 10px rgba(111, 183, 216, 0.58);
  transform: translate(-50%, -50%) rotate(45deg);
}

.network-node.core::before {
  width: 18px;
  height: 18px;
  background: rgba(111, 183, 216, 0.18);
  box-shadow: 0 0 18px rgba(111, 183, 216, 0.82);
}

.network-node span {
  position: absolute;
  top: calc(50% + 10px);
  left: 50%;
  min-width: 58px;
  color: rgba(238, 247, 255, 0.84);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 6px #000;
  transform: translateX(-50%);
  transform-origin: 50% -10px;
  transition: transform 50ms linear;
}

.network-node.core span {
  color: var(--fog-white);
  font-size: 10px;
}

.network-instruction {
  position: absolute;
  right: 0;
  bottom: 43px;
  left: 0;
  display: flex;
  justify-content: space-between;
  color: rgba(238, 247, 255, 0.5);
  font-size: 8px;
}

/* 结尾 */
.ending-layout {
  position: absolute;
  z-index: 9;
  inset: 105px 29px 67px 49px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.ending-layout > p {
  margin: 0 0 10px;
  color: var(--bureau-blue);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.ending-layout h1 {
  margin: 0;
  font-family: "STSong", "SimSun", serif;
  font-size: 48px;
}

.ending-layout blockquote {
  margin: 24px 0 56px;
  padding: 20px 0 20px 19px;
  border-left: 1px solid var(--bureau-blue);
  color: rgba(238, 247, 255, 0.86);
  font-family: "STSong", "SimSun", serif;
  font-size: 17px;
  line-height: 1.85;
}

.ending-layout footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 14px;
  border-top: 1px solid rgba(111, 183, 216, 0.34);
}

.ending-layout footer span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.ending-layout footer strong {
  font-family: "STSong", "SimSun", serif;
  font-size: 20px;
}

/* 人物详情分支 */
.character-modal {
  position: absolute;
  z-index: 100;
  inset: 0;
  visibility: hidden;
  overflow: hidden;
  background: var(--fog-black);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.character-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.character-page {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.character-close {
  position: absolute;
  z-index: 130;
  top: max(13px, calc(env(safe-area-inset-top) + 8px));
  left: max(14px, calc(env(safe-area-inset-left) + 9px));
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  color: rgba(238, 247, 255, 0.76);
  background: rgba(2, 5, 10, 0.7);
  font-size: 9px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.character-close span {
  margin-right: 6px;
  color: var(--bureau-blue);
}

.character-controls {
  position: absolute;
  z-index: 130;
  right: max(14px, calc(env(safe-area-inset-right) + 9px));
  bottom: max(13px, calc(env(safe-area-inset-bottom) + 8px));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  background: rgba(2, 5, 10, 0.76);
}

.character-controls button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(111, 183, 216, 0.34);
  background: rgba(7, 19, 29, 0.82);
  cursor: pointer;
}

.character-controls button:disabled {
  opacity: 0.25;
}

.character-controls span {
  min-width: 54px;
  text-align: center;
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.character-design-frame .screen-background {
  filter: saturate(0.65) brightness(0.5) contrast(1.08);
}

.character-frame,
.character-profile,
.character-outfits,
.character-mood {
  position: absolute;
  z-index: 8;
  inset: 75px 27px 68px 47px;
}

.character-frame header p,
.character-profile header p,
.character-outfits header p,
.character-mood header p {
  margin: 0 0 7px;
  color: var(--bureau-blue);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.character-frame header h1,
.character-profile header h1,
.character-outfits header h1,
.character-mood header h1 {
  margin: 0;
  font-family: "STSong", "SimSun", serif;
  font-size: 42px;
  line-height: 1;
}

.character-frame header h2 {
  max-width: 302px;
  margin: 10px 0 0;
  color: rgba(238, 247, 255, 0.64);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.55;
}

.character-frame .motion-window {
  top: 123px;
  height: 132px;
}

.character-hero {
  position: absolute;
  z-index: 6;
  top: 214px;
  right: -37px;
  width: 277px;
  height: 385px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(-16px 22px 30px rgba(0, 0, 0, 0.72));
}

.character-frame blockquote {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 61px;
  left: 0;
  margin: 0;
  padding: 16px 17px 16px 20px;
  border-left: 2px solid var(--bureau-blue);
  background: linear-gradient(90deg, rgba(2, 5, 10, 0.94), rgba(7, 19, 29, 0.77), rgba(2, 5, 10, 0.44));
  font-family: "STSong", "SimSun", serif;
  font-size: 15px;
  line-height: 1.65;
}

.character-keywords {
  position: absolute;
  right: 0;
  bottom: 27px;
  left: 0;
  margin: 0;
  color: rgba(238, 247, 255, 0.56);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.character-atmosphere {
  background: linear-gradient(180deg, rgba(2, 5, 10, 0.25), rgba(2, 5, 10, 0.7) 38%, #02050a 96%);
}

.character-profile > section {
  margin-top: 20px;
  padding: 14px 15px 15px 18px;
  border-top: 1px solid rgba(111, 183, 216, 0.32);
  background: linear-gradient(90deg, rgba(2, 5, 10, 0.88), rgba(7, 19, 29, 0.56), rgba(2, 5, 10, 0.28));
}

.character-profile section h2 {
  margin: 0 0 7px;
  color: var(--bureau-blue);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.character-profile section p {
  margin: 0;
  color: rgba(238, 247, 255, 0.84);
  font-size: 11px;
  line-height: 1.64;
}

.relationship-record {
  margin-top: 13px !important;
}

.relation-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 9px;
  overflow-x: auto;
  scrollbar-width: none;
}

.relation-tabs::-webkit-scrollbar {
  display: none;
}

.relation-tabs button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(111, 183, 216, 0.25);
  background: rgba(2, 5, 10, 0.72);
  font-size: 9px;
  cursor: pointer;
}

.relation-tabs button.active {
  border-color: var(--bureau-blue);
  color: var(--bureau-blue);
}

.relation-detail {
  min-height: 82px;
  padding-top: 9px;
  border-top: 1px solid rgba(160, 203, 224, 0.18);
}

.relation-detail strong {
  display: block;
  margin-bottom: 5px;
  font-family: "STSong", "SimSun", serif;
  font-size: 15px;
}

.relation-detail p {
  font-size: 10px !important;
}

.outfit-stage {
  position: absolute;
  top: 89px;
  right: 0;
  bottom: 24px;
  left: 0;
}

.outfit-stage figure {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64%;
  margin: 0;
}

.outfit-stage figure:first-child {
  left: -12px;
  z-index: 2;
}

.outfit-stage figure:nth-child(2) {
  right: -17px;
  z-index: 1;
  transform: scale(0.88);
  transform-origin: bottom right;
  opacity: 0.78;
}

.outfit-stage.count-1 figure {
  right: 16px;
  left: 16px;
  width: auto;
}

.outfit-stage img {
  width: 100%;
  height: calc(100% - 48px);
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.72));
}

.outfit-stage figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-top: 1px solid rgba(111, 183, 216, 0.32);
  background: rgba(2, 5, 10, 0.78);
}

.outfit-stage figcaption b {
  color: var(--bureau-blue);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 9px;
}

.outfit-stage figcaption span {
  font-size: 10px;
  font-weight: 700;
}

.mood-wall {
  position: absolute;
  top: 95px;
  right: 0;
  bottom: 30px;
  left: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1.1fr 0.9fr;
  gap: 7px;
}

.mood-wall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05);
}

.mood-wall img:first-child {
  grid-row: 1 / 3;
}

.mood-wall.count-2 {
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: 1fr;
}

.mood-wall.count-2 img:first-child {
  grid-row: auto;
}

.mood-wall.count-3 img:first-child,
.mood-wall.count-4 img:first-child {
  grid-row: 1 / 3;
}

.source-gap {
  position: absolute;
  right: 0;
  bottom: 75px;
  left: 0;
  padding: 28px 22px 30px;
  border-top: 1px solid rgba(200, 139, 74, 0.55);
  background: linear-gradient(90deg, rgba(2, 5, 10, 0.94), rgba(7, 19, 29, 0.78), rgba(2, 5, 10, 0.54));
}

.source-gap span {
  color: var(--warning);
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.source-gap strong {
  display: block;
  margin: 9px 0 12px;
  font-family: "STSong", "SimSun", serif;
  font-size: 23px;
}

.source-gap p {
  margin: 0;
  color: rgba(238, 247, 255, 0.68);
  font-size: 11px;
  line-height: 1.65;
}

@keyframes signalPulse {
  0%, 100% { opacity: 0.46; transform: rotate(45deg) scale(0.8); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 431px) {
  body {
    background:
      radial-gradient(circle at 50% 42%, rgba(27, 63, 82, 0.24), transparent 34%),
      #000;
  }

  .phone-stage {
    border-right: 1px solid rgba(111, 183, 216, 0.12);
    border-left: 1px solid rgba(111, 183, 216, 0.12);
  }
}
