:root {
  --blue: #168cff;
  --blue-soft: #87c8ff;
  --ink: #191a1d;
  --muted: #71757c;
  --line: #e9edf2;
  --white: #fefefe;
  --panel: #f7f9fc;
  --radius: 16px;
  --sans: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--sans); overflow-x: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img, video { display: block; max-width: 100%; }
::selection { color: #fff; background: var(--blue); }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 66px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.91);
  backdrop-filter: blur(16px) saturate(135%);
  box-shadow: 0 4px 20px rgba(29,58,89,.07);
}
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.logo-mark { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; background: #eef7ff; border: 2px solid #fff; border-radius: 13px 10px 14px 11px; box-shadow: 0 5px 16px rgba(32,116,195,.18); transform: rotate(-3deg); }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.desktop-nav { display: flex; align-items: center; gap: 34px; font-size: 13px; }
.desktop-nav a { position: relative; padding: 10px 0; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px; background: var(--blue); transition: right .28s ease; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
.menu-toggle, .mobile-nav { display: none; }

.motion-toggle {
  position: fixed;
  z-index: 51;
  top: 90px;
  right: 7vw;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 24px rgba(25,55,90,.14);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.motion-toggle span { width: 3px; height: 15px; border-radius: 3px; background: #8d9298; }
.motion-toggle.is-paused span:first-child { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid #8d9298; background: transparent; border-radius: 0; }
.motion-toggle.is-paused span:last-child { display: none; }

.scene-dots { position: fixed; z-index: 45; right: 28px; top: 50%; display: grid; gap: 9px; transform: translateY(-50%); }
.scene-dots a { width: 7px; height: 7px; border-radius: 999px; background: #cee6ff; transition: height .3s ease, background .3s ease, transform .3s ease; }
.scene-dots a.is-active { height: 23px; background: var(--blue); }

.orb-field { position: fixed; inset: 66px 0 0; z-index: 40; pointer-events: none; overflow: hidden; }
.orb { position: absolute; width: var(--size); height: var(--size); left: var(--x); top: 100%; border: 1px solid rgba(52,145,255,.5); border-radius: 50%; opacity: 0; background: radial-gradient(circle at 30% 24%, rgba(255,255,255,.98) 0 12%, #d9f2ff 25%, #86ccff 58%, #3d9dff 100%); box-shadow: inset 0 1px 2px rgba(255,255,255,.98), 0 7px 20px rgba(23,126,241,.26); animation: bubbleRise var(--speed) linear var(--delay) infinite; }

.scene { position: relative; z-index: 10; min-height: 100dvh; padding-top: 66px; overflow: hidden; scroll-snap-align: start; background: rgba(255,255,255,.76); }
.scene-title h2, .contact-title h2 { margin: 0; font-size: clamp(42px, 4.8vw, 76px); line-height: 1.05; letter-spacing: -.065em; font-weight: 800; }
.scene-title h2 strong, .contact-title h2 strong, .scene-title p strong { color: var(--blue); font-weight: inherit; }
.scene-title p, .contact-title p { margin: 14px 0 0; color: var(--muted); font-size: clamp(14px, 1.15vw, 18px); line-height: 1.7; }
.section-kicker { display: block; margin-bottom: 15px; color: var(--blue); font: 800 10px/1.2 "Trebuchet MS", var(--sans); letter-spacing: .18em; }

.scene-hero { display: block; height: 100dvh; min-height: 650px; padding: 66px 0 0; }
.hero-film { position: absolute; inset: 66px 0 0; width: 100%; overflow: hidden; background: #fff; }
.hero-film video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.film-control { position: absolute; right: 16px; bottom: 16px; width: 42px; height: 42px; border: 0; border-radius: 50%; display: flex; justify-content: center; align-items: center; gap: 4px; background: rgba(255,255,255,.88); box-shadow: 0 5px 18px rgba(0,0,0,.1); cursor: pointer; }
.film-control span { width: 3px; height: 14px; border-radius: 2px; background: #8a8f95; }
.film-control.is-paused span:first-child { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid #8a8f95; background: transparent; border-radius: 0; margin-left: 3px; }
.film-control.is-paused span:last-child { display: none; }
.hero-copy { display: none; }
.hero-copy h1 { margin: 0; font-size: clamp(30px, 3.45vw, 52px); letter-spacing: -.06em; }
.hero-copy p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.hero-platforms { position: absolute; z-index: 4; bottom: 25px; left: 50%; display: flex; align-items: center; gap: 23px; color: #777c82; font-size: 13px; transform: translateX(-50%); white-space: nowrap; }
.hero-platforms a { position: relative; padding: 8px 2px; transition: color .22s ease, transform .22s ease; }
.hero-platforms a::after { content: ""; position: absolute; right: 2px; bottom: 4px; left: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .22s ease; }
.hero-platforms a:hover, .hero-platforms a:focus-visible { color: var(--blue); transform: translateY(-2px); outline: none; }
.hero-platforms a:hover::after, .hero-platforms a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.hero-platforms i { width: 1px; height: 14px; background: #d7dbe0; }

.scene-overview { min-height: 112dvh; }
.title-center { position: absolute; z-index: 4; top: 18%; left: 50%; text-align: center; transform: translateX(-50%); }
.overview-card { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: 0 16px 46px rgba(38,70,104,.12); }
.overview-card img { width: 100%; height: 100%; object-fit: cover; }
.card-a { left: 13%; top: 43%; width: 29vw; aspect-ratio: 1.78; transform: rotate(-2deg); }
.card-b { right: 13%; top: 45%; width: 26vw; aspect-ratio: 1.9; transform: rotate(2deg); }
.card-c { left: 33%; top: 58%; width: 22vw; aspect-ratio: 1.34; transform: rotate(1deg); }
.card-d { right: 28%; top: 68%; width: 20vw; aspect-ratio: 1.05; transform: rotate(-2.5deg); }
.floating-glyph { position: absolute; z-index: 6; color: var(--blue); }
.glyph-star { left: 24%; top: 37%; font-size: 44px; animation: twinkle 2.6s ease-in-out infinite; }
.glyph-ring { right: 23%; top: 38%; width: 38px; height: 38px; border: 9px solid #9bd1ff; border-radius: 50%; animation: ringPulse 2.8s ease-in-out infinite; }

.scene-feature { min-height: 115dvh; }
.feature-media { position: absolute; left: 5%; top: 22%; width: min(920px, 64vw); overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: 0 22px 65px rgba(39,77,117,.14); }
.feature-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.title-right { position: absolute; z-index: 4; left: 65%; top: 43%; width: min(31vw, 460px); min-width: 0; }
.scene-feature .feature-title { left: 70%; top: 39%; width: min(27vw, 390px); }
.motion-stroke { position: absolute; display: block; pointer-events: none; }
.stroke-one { right: 8%; top: 29%; width: 92px; height: 28px; border-top: 4px solid var(--blue); border-radius: 50%; transform: rotate(-20deg); opacity: .7; }

.scene-character { min-height: 120dvh; }
.character-sheet { position: absolute; left: 10%; top: 18%; width: min(720px, 52vw); height: 72%; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: 0 20px 70px rgba(37,73,111,.11); }
.character-sheet img { width: 100%; height: 100%; object-fit: contain; }
.scene-character .title-right { top: 42%; left: 65%; }
.character-mini { position: absolute; z-index: 5; width: 155px; height: 110px; object-fit: cover; object-position: 10% 24%; border-radius: var(--radius); box-shadow: 0 14px 35px rgba(30,64,99,.13); }
.mini-luna { right: 9%; top: 24%; animation: miniFloat 3.5s ease-in-out infinite reverse; }
.blue-pin { position: absolute; width: 25px; height: 25px; border-radius: 50% 50% 50% 8px; background: var(--blue); transform: rotate(-45deg); box-shadow: 0 8px 18px rgba(22,140,255,.2); }
.blue-pin::after { content: ""; position: absolute; width: 8px; height: 8px; left: 8px; top: 8px; border-radius: 50%; background: #fff; }
.pin-one { right: 17%; bottom: 20%; }
.pin-two { left: 7%; top: 26%; transform: rotate(28deg) scale(.7); }

.scene-motion { min-height: 120dvh; }
.motion-canvas { position: absolute; left: 12%; top: 27%; width: min(700px, 51vw); overflow: hidden; border-radius: var(--radius); box-shadow: 0 22px 70px rgba(39,75,112,.14); }
.motion-canvas img { width: 100%; }
.title-motion { position: absolute; z-index: 5; left: 67%; top: 40%; }
.motion-character { position: absolute; z-index: 4; object-fit: cover; border-radius: var(--radius); box-shadow: 0 15px 40px rgba(37,72,108,.14); }
.mc-one { left: 5%; top: 18%; width: 190px; height: 120px; object-position: 3% 20%; transform: rotate(-4deg); }
.mc-two { left: 52%; bottom: 14%; width: 180px; height: 120px; object-position: 8% 20%; transform: rotate(3deg); }

/* 猫狗日记：卡片从屏幕外聚拢，离开章节后向外退场 */
.card-scene { height: 100dvh; min-height: 620px; isolation: isolate; }
.card-scene::before {
  content: "";
  position: absolute;
  inset: 18% 12% 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(133,205,255,.18), rgba(255,255,255,0) 68%);
  filter: blur(20px);
  pointer-events: none;
}
.card-scene-title { z-index: 12; }
[data-scroll-title], [data-scroll-brand] { opacity: 0; filter: blur(8px); will-change: translate, scale, opacity, filter; }
.scene-overview .card-scene-title,
.scene-character .character-title,
.scene-motion .title-motion { position: absolute; }
.scene-overview .card-scene-title { top: 40%; left: 50%; width: min(390px, 38vw); text-align: center; transform: translateX(-50%); }
.scene-overview .card-scene-title { z-index: 12; isolation: isolate; }
.scene-overview .card-scene-title::before { content: ""; position: absolute; z-index: -1; inset: -34px -48px -30px; background: radial-gradient(ellipse at center, rgba(255,255,255,.98) 0 43%, rgba(255,255,255,.78) 60%, transparent 78%); filter: blur(7px); pointer-events: none; }
.scene-overview .story-board { z-index: 3; }
.scene-character .character-title { top: 38%; left: 8%; width: min(390px, 32vw); text-align: left; transform: none; }
.scene-character .character-title h2 { font-size: clamp(34px, 3vw, 48px); line-height: 1.08; letter-spacing: -.055em; }
.character-title-line { display: block; width: max-content; max-width: 100%; white-space: nowrap; }
.scene-motion .title-motion { top: 13%; left: 8%; width: min(560px, 54vw); text-align: left; transform: none; }
.scene-motion .title-motion h2 { white-space: nowrap; }
.story-board { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.story-card {
  --x: 0px;
  --y: 0px;
  --r: 0deg;
  --enter-x: 0px;
  --enter-y: 70vh;
  --exit-x: 0px;
  --exit-y: -70vh;
  --exit-r: 0deg;
  --delay: 0ms;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--card-w, clamp(230px, 24vw, 370px));
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,.96);
  border-radius: 17px;
  background: #eaf3fa;
  box-shadow: 0 24px 62px rgba(27,64,101,.18), 0 3px 12px rgba(27,64,101,.1);
  opacity: 0;
  transform: translate3d(var(--enter-x), var(--enter-y), 0) rotate(var(--exit-r)) scale(.72);
  transition: opacity .48s ease-out var(--delay), transform 1.04s cubic-bezier(.18,1.26,.34,1) var(--delay), box-shadow .3s ease;
  will-change: transform, opacity;
}
.story-card img, .story-card video { width: 100%; height: 100%; object-fit: cover; }
.story-card img, .story-card video { transform: scale(1.045); transition: transform 1.18s cubic-bezier(.2,.8,.2,1) var(--delay); }
.card-scene.cards-active .story-card img, .card-scene.cards-active .story-card video { transform: scale(1); }
.card-scene.cards-active .story-card {
  opacity: 1;
  transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(1);
  animation: cardIdle 5.2s ease-in-out calc(var(--delay) + 1.05s) infinite;
}
.card-scene.cards-past .story-card {
  opacity: 0;
  transform: translate3d(var(--exit-x), var(--exit-y), 0) rotate(var(--exit-r)) scale(.78);
  transition-delay: calc(var(--delay) / 3);
}
.card-scene.cards-active .story-card:hover {
  z-index: 20 !important;
  box-shadow: 0 31px 78px rgba(27,64,101,.25), 0 4px 16px rgba(27,64,101,.12);
  transform: translate3d(var(--x), calc(var(--y) - 10px), 0) rotate(var(--r)) scale(1.025);
}
.story-card:nth-child(odd) { --drift-x: 3px; --drift-y: -5px; }
.story-card:nth-child(even) { --drift-x: -3px; --drift-y: 5px; }

.role-card:nth-child(1) { --card-w: clamp(225px, 24vw, 370px); --x: -40vw; --y: -29vh; --r: -4deg; --enter-x: -67vw; --enter-y: -38vh; --exit-x: -62vw; --exit-y: -45vh; --exit-r: -11deg; --delay: 15ms; z-index: 2; }
.role-card:nth-child(2) { --card-w: clamp(235px, 25vw, 385px); --x: -34vw; --y: -5vh; --r: 2deg; --enter-x: -72vw; --enter-y: -3vh; --exit-x: -69vw; --exit-y: -10vh; --exit-r: 9deg; --delay: 80ms; z-index: 4; }
.role-card:nth-child(3) { --card-w: clamp(218px, 23vw, 355px); --x: -39vw; --y: 20vh; --r: -2.5deg; --enter-x: -66vw; --enter-y: 37vh; --exit-x: -63vw; --exit-y: 47vh; --exit-r: -10deg; --delay: 145ms; z-index: 3; }
.role-card:nth-child(4) { --card-w: clamp(225px, 24vw, 370px); --x: 18vw; --y: -25vh; --r: 3.5deg; --enter-x: 60vw; --enter-y: -36vh; --exit-x: 63vw; --exit-y: -44vh; --exit-r: 11deg; --delay: 55ms; z-index: 3; }
.role-card:nth-child(5) { --card-w: clamp(235px, 25vw, 385px); --x: 10vw; --y: 1vh; --r: -1.5deg; --enter-x: 66vw; --enter-y: 1vh; --exit-x: 65vw; --exit-y: -6vh; --exit-r: -8deg; --delay: 120ms; z-index: 5; }
.role-card:nth-child(6) { --card-w: clamp(218px, 23vw, 355px); --x: 16vw; --y: 24vh; --r: 2.5deg; --enter-x: 61vw; --enter-y: 39vh; --exit-x: 62vw; --exit-y: 49vh; --exit-r: 10deg; --delay: 185ms; z-index: 4; }

.universe-card { --card-w: clamp(175px, 19vw, 292px); }
.universe-card:nth-child(1) { --card-w: clamp(225px, 27vw, 410px); --x: -7vw; --y: -28vh; --r: -3.5deg; --enter-x: 5vw; --enter-y: -62vh; --exit-x: 0vw; --exit-y: -55vh; --exit-r: -10deg; --delay: 10ms; z-index: 2; }
.universe-card:nth-child(2) { --card-w: clamp(175px, 20vw, 305px); --x: 20vw; --y: -25vh; --r: 4deg; --enter-x: 63vw; --enter-y: -35vh; --exit-x: 61vw; --exit-y: -43vh; --exit-r: 11deg; --delay: 55ms; z-index: 5; }
.universe-card:nth-child(3) { --card-w: clamp(205px, 23vw, 350px); --x: 8vw; --y: -10vh; --r: 1.8deg; --enter-x: 66vw; --enter-y: -10vh; --exit-x: 63vw; --exit-y: -14vh; --exit-r: 8deg; --delay: 100ms; z-index: 4; }
.universe-card:nth-child(4) { --card-w: clamp(160px, 17vw, 260px); --x: 30vw; --y: -7vh; --r: -4deg; --enter-x: 69vw; --enter-y: -3vh; --exit-x: 67vw; --exit-y: -7vh; --exit-r: -11deg; --delay: 145ms; z-index: 3; }
.universe-card:nth-child(5) { --card-w: clamp(195px, 22vw, 335px); --x: -4vw; --y: 8vh; --r: 3deg; --enter-x: 9vw; --enter-y: 57vh; --exit-x: 4vw; --exit-y: 56vh; --exit-r: 10deg; --delay: 190ms; z-index: 5; }
.universe-card:nth-child(6) { --card-w: clamp(205px, 23vw, 350px); --x: 17vw; --y: 8vh; --r: -2deg; --enter-x: 67vw; --enter-y: 24vh; --exit-x: 66vw; --exit-y: 31vh; --exit-r: -9deg; --delay: 235ms; z-index: 6; }
.universe-card:nth-child(7) { --card-w: clamp(165px, 18vw, 275px); --x: 29vw; --y: 23vh; --r: 3.5deg; --enter-x: 68vw; --enter-y: 43vh; --exit-x: 66vw; --exit-y: 51vh; --exit-r: 10deg; --delay: 280ms; z-index: 3; }
.universe-card:nth-child(8) { --card-w: clamp(170px, 19vw, 290px); --x: 4vw; --y: 24vh; --r: -4deg; --enter-x: 11vw; --enter-y: 65vh; --exit-x: 8vw; --exit-y: 62vh; --exit-r: -11deg; --delay: 325ms; z-index: 2; }

.video-card { --card-w: clamp(165px, 18vw, 275px); cursor: pointer; pointer-events: auto; outline: none; }
.video-card::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; border-radius: 13px; transition: border-color .25s ease, background .25s ease; }
.video-card:hover::after, .video-card:focus-visible::after { border-color: rgba(22,140,255,.9); }
.video-card.is-sounding::after { border-color: #fff; background: linear-gradient(180deg, transparent 65%, rgba(10,27,43,.22)); }
.video-card:nth-child(1) { --card-w: clamp(350px, 42vw, 640px); --x: -44vw; --y: -7vh; --r: -1.5deg; --enter-x: -75vw; --enter-y: 8vh; --exit-x: -69vw; --exit-y: 20vh; --exit-r: -7deg; --delay: 10ms; z-index: 2; }
.video-card:nth-child(2) { --x: 7vw; --y: -16vh; --r: 2.5deg; --enter-x: 61vw; --enter-y: -25vh; --exit-x: 63vw; --exit-y: -31vh; --exit-r: 9deg; --delay: 55ms; z-index: 4; }
.video-card:nth-child(3) { --x: 25vw; --y: -17vh; --r: -2deg; --enter-x: 66vw; --enter-y: -28vh; --exit-x: 67vw; --exit-y: -34vh; --exit-r: -8deg; --delay: 100ms; z-index: 5; }
.video-card:nth-child(4) { --card-w: clamp(160px, 17vw, 260px); --x: 10vw; --y: 1vh; --r: -3deg; --enter-x: 64vw; --enter-y: 1vh; --exit-x: 65vw; --exit-y: 4vh; --exit-r: -10deg; --delay: 145ms; z-index: 3; }
.video-card:nth-child(5) { --card-w: clamp(160px, 17vw, 260px); --x: 27vw; --y: 0vh; --r: 3deg; --enter-x: 68vw; --enter-y: -1vh; --exit-x: 68vw; --exit-y: 3vh; --exit-r: 10deg; --delay: 190ms; z-index: 3; }
.video-card:nth-child(6) { --x: 7vw; --y: 17vh; --r: 2deg; --enter-x: 63vw; --enter-y: 31vh; --exit-x: 64vw; --exit-y: 40vh; --exit-r: 9deg; --delay: 235ms; z-index: 5; }
.video-card:nth-child(7) { --x: 25vw; --y: 17vh; --r: -2.5deg; --enter-x: 67vw; --enter-y: 32vh; --exit-x: 68vw; --exit-y: 41vh; --exit-r: -9deg; --delay: 280ms; z-index: 4; }
.video-card:nth-child(8) { --card-w: clamp(165px, 18vw, 275px); --x: -8vw; --y: 23vh; --r: 3.5deg; --enter-x: -2vw; --enter-y: 64vh; --exit-x: -4vw; --exit-y: 62vh; --exit-r: 11deg; --delay: 325ms; z-index: 6; }
.card-index, .card-sound { position: absolute; z-index: 3; color: #fff; background: rgba(12,28,44,.72); backdrop-filter: blur(8px); }
.card-index { top: 10px; left: 10px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; font: 800 9px/1 var(--sans); }
.card-sound { right: 10px; bottom: 10px; padding: 7px 10px; border-radius: 999px; font-size: 10px; letter-spacing: .03em; }
.video-card.is-sounding .card-sound { color: #1469aa; background: rgba(255,255,255,.92); }

.video-dialog { width: min(900px, 88vw); max-width: none; padding: 9px; overflow: visible; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 35px 100px rgba(8,28,48,.35); }
.video-dialog::backdrop { background: rgba(12,26,40,.62); backdrop-filter: blur(8px); }
.video-dialog video { width: 100%; aspect-ratio: 16 / 9; border-radius: 13px; background: #09131d; }
.dialog-close { position: absolute; z-index: 2; top: -17px; right: -17px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0 0 3px; border: 4px solid #fff; border-radius: 50%; color: #fff; background: #168cff; box-shadow: 0 7px 22px rgba(10,36,61,.25); font-size: 27px; line-height: 1; cursor: pointer; }

.scene-archive { min-height: 112dvh; }
.archive-title { position: absolute; z-index: 3; left: 10%; top: 14%; }
.archive-grid { position: absolute; left: 10%; right: 10%; top: 35%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.archive-card { position: relative; min-height: 190px; overflow: hidden; border: 1px solid rgba(27,52,78,.08); border-radius: var(--radius); background: #fff; box-shadow: 0 16px 42px rgba(35,72,109,.09); }
.archive-card img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.archive-card:hover img { transform: scale(1.06); }
.archive-card span { position: absolute; left: 14px; bottom: 12px; padding: 6px 8px; color: #fff; background: rgba(20,32,44,.72); border-radius: 5px; font: 800 9px/1 var(--sans); letter-spacing: .08em; }
.archive-placeholder { display: flex; flex-direction: column; justify-content: space-between; padding: 18px; }
.archive-placeholder small { color: inherit; font: 800 10px/1 var(--sans); letter-spacing: .12em; opacity: .72; }
.archive-placeholder b { font-size: clamp(24px, 2.3vw, 36px); line-height: 1.05; letter-spacing: -.06em; }
.archive-placeholder i { align-self: flex-end; font: 300 50px/.6 Georgia, serif; font-style: normal; }
.tone-blue { color: #fff; background: linear-gradient(135deg, #168cff, #75bfff); }
.tone-ink { color: #fff; background: #20252d; }
.tone-paper { color: #24272b; background: #f0e8dc; }

.scene-social { min-height: 120dvh; }
.social-visual { position: absolute; left: 12%; top: 21%; width: 49vw; height: 64%; }
.visual-main, .visual-sub { position: absolute; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: 0 18px 55px rgba(35,72,109,.13); }
.visual-main { left: 0; top: 12%; width: 77%; height: 66%; }
.visual-sub { width: 37%; height: 34%; }
.sub-one { right: 0; top: 0; }
.sub-two { right: 3%; bottom: 0; }
.visual-main img, .visual-sub img { width: 100%; height: 100%; object-fit: cover; }
.sub-two img { object-fit: contain; }
.social-copy { position: absolute; left: 66%; top: 31%; width: min(450px, 28vw); }
.platform-links { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.platform-links a { min-height: 52px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #dfe5eb; border-radius: 12px; background: rgba(255,255,255,.86); font-size: 13px; transition: transform .28s ease, border-color .28s ease, color .28s ease; }
.platform-links a:hover { color: var(--blue); border-color: var(--blue-soft); transform: translateY(-4px); }
.platform-links span { font-size: 17px; }
.platform-links .platform-weixin { grid-column: 1 / -1; }

.scene-contact { min-height: 100dvh; overflow: hidden; color: #4c2918; background: #f6b84f url("./assets/contact-bg.webp") center / cover no-repeat; }
.scene-contact::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,244,206,.78) 0%, rgba(255,244,206,.3) 45%, rgba(255,244,206,.5) 100%), linear-gradient(180deg, rgba(255,255,255,.2), transparent 48%, rgba(99,43,13,.16)); pointer-events: none; }
.scene-contact::after { content: "79 / QIJIU ANIMATION"; position: absolute; right: 5%; top: 15%; color: rgba(109,50,20,.13); font: 800 clamp(44px, 7vw, 108px)/1 Arial, sans-serif; letter-spacing: -.06em; white-space: nowrap; pointer-events: none; }
.contact-wordmark { position: absolute; z-index: 3; left: 4.5%; top: 25%; width: min(57vw, 680px); aspect-ratio: 926 / 411; display: grid; place-items: center; }
.contact-wordmark::after { content: ""; position: absolute; inset: 17% 11%; z-index: -1; border-radius: 50%; background: rgba(255,255,255,.5); filter: blur(65px); }
.contact-wordmark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(112,54,21,.2)); animation: wordmarkBreath 5.4s ease-in-out infinite; }
.contact-panel { position: absolute; z-index: 5; left: 68%; top: 24%; width: min(27vw, 360px); padding: 24px; border: 1px solid rgba(255,255,255,.5); border-radius: 16px; background: rgba(255,249,226,.78); box-shadow: 0 24px 70px rgba(115,54,19,.18); backdrop-filter: blur(12px) saturate(110%); }
.contact-title { position: relative; text-align: left; }
.scene-contact .section-kicker { color: #bb4f25; }
.scene-contact .contact-title h2 { margin-top: 9px; color: #4c2918; font-size: clamp(48px, 5.2vw, 80px); }
.scene-contact .contact-title h2 strong { color: #d94e29; }
.scene-contact .contact-title p { color: rgba(76,41,24,.74); }
.qr-wrap { position: relative; z-index: 6; width: 188px; margin-top: 30px; padding: 11px 11px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 24px 70px rgba(0,0,0,.38), 0 0 0 8px rgba(255,255,255,.035); }
.qr-wrap img { width: 100%; border-radius: 10px; }
.qr-wrap span { display: block; padding-top: 8px; color: #65717c; text-align: center; font-size: 11px; letter-spacing: .06em; }
.scene-contact footer { position: absolute; z-index: 5; left: 5%; right: 5%; bottom: 26px; display: flex; justify-content: space-between; padding-top: 17px; border-top: 1px solid rgba(89,42,18,.2); color: rgba(76,41,24,.68); font-size: 11px; }
.scene-contact footer i { font-style: normal; }

@keyframes bubbleRise {
  0% { opacity: 0; transform: translate3d(0, 10vh, 0) scale(.62); }
  12% { opacity: var(--opacity); }
  58% { opacity: calc(var(--opacity) * .78); }
  88% { opacity: calc(var(--opacity) * .35); }
  100% { opacity: 0; transform: translate3d(var(--drift), -120vh, 0) scale(1.16); }
}
@keyframes twinkle { 0%,100% { transform: rotate(0) scale(.8); opacity: .45; } 50% { transform: rotate(28deg) scale(1.12); opacity: 1; } }
@keyframes ringPulse { 0%,100% { transform: scale(.8); opacity: .4; } 50% { transform: scale(1.08); opacity: .9; } }
@keyframes miniFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes cardIdle { 0%,100% { translate: 0 0; } 50% { translate: var(--drift-x) var(--drift-y); } }
@keyframes wordmarkBreath { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }

@supports (animation-timeline: view()) {
  .parallax-slow { animation: parallaxSlow linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  .parallax-fast { animation: parallaxFast linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes parallaxSlow { from { translate: 0 90px; } to { translate: 0 -55px; } }
  @keyframes parallaxFast { from { translate: 0 150px; } to { translate: 0 -110px; } }
}

.motion-paused .orb, .motion-paused .floating-glyph, .motion-paused .feature-float, .motion-paused .character-mini, .motion-paused .story-card, .motion-paused .contact-wordmark img { animation-play-state: paused !important; }

/* 16:9 笔记本屏幕：保留大画面，同时给文案和平台信息留出呼吸空间 */
@media (min-width: 901px) and (max-height: 860px) {
  .scene-hero { padding: 66px 0 0; }
  .hero-film { width: 100%; }
  .hero-platforms { bottom: 22px; }
}

@media (max-width: 900px) {
  html { scroll-snap-type: none; }
  .topbar { height: 62px; padding: 0 18px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; position: relative; z-index: 62; width: 34px; height: 34px; padding: 6px; border: 0; background: transparent; }
  .menu-toggle i { display: block; width: 21px; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--ink); transition: transform .3s ease; }
  .menu-toggle[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-nav { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; background: rgba(255,255,255,.98); transform: translateY(-102%); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
  .mobile-nav.is-open { transform: translateY(0); }
  .mobile-nav a { font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
  .motion-toggle { top: 79px; right: 18px; width: 40px; height: 40px; }
  .scene-dots { right: 12px; gap: 7px; }
  .scene { min-height: 100dvh; padding-top: 62px; }
  .scene-title h2, .contact-title h2 { font-size: clamp(36px, 10vw, 52px); }
  .scene-title p, .contact-title p { font-size: 13px; }
  .orb-field { top: 62px; opacity: .62; }

  .scene-hero { display: block; min-height: 100dvh; padding: 62px 0 0; }
  .hero-film { position: absolute; inset: 132px 0 auto; width: 100%; height: 42.86vw; }
  .hero-copy { display: none; }
  .hero-copy h1 { font-size: 30px; }
  .hero-platforms { bottom: 38px; gap: 9px; font-size: 10px; }
  .hero-platforms i { height: 11px; }

  .scene-overview { min-height: 1200px; }
  .title-center { top: 13%; width: 90%; }
  .card-a { left: 6%; top: 29%; width: 72vw; }
  .card-b { right: 5%; top: 46%; width: 67vw; }
  .card-c { left: 7%; top: 62%; width: 58vw; }
  .card-d { right: 7%; top: 75%; width: 58vw; }
  .glyph-star { left: 8%; top: 22%; }
  .glyph-ring { right: 11%; top: 26%; }

  .scene-feature { min-height: 900px; }
  .feature-media { left: 5%; top: 24%; width: 90vw; }
  .title-right { left: 8%; top: 65%; width: 82%; }
  .scene-feature .feature-title { left: 8%; top: 69%; width: 84%; }
  .float-dog { left: 57%; top: 20%; width: 125px; height: 82px; }
  .stroke-one { right: 10%; top: 18%; }

  .scene-character { min-height: 1040px; }
  .character-sheet { left: 6%; top: 18%; width: 82vw; height: 54%; }
  .scene-character .title-right { left: 8%; top: 76%; }
  .character-mini { width: 120px; height: 82px; }
  .mini-luna { right: 7%; top: 12%; }

  .scene-motion { min-height: 920px; }
  .motion-canvas { left: 6%; top: 27%; width: 82vw; }
  .title-motion { left: 8%; top: 61%; width: 82%; }
  .mc-one { left: 5%; top: 15%; width: 132px; height: 84px; }
  .mc-two { left: auto; right: 5%; bottom: 9%; width: 128px; height: 84px; }

  .scene-archive { min-height: 1180px; }
  .archive-title { left: 8%; top: 11%; width: 84%; }
  .archive-grid { top: 30%; left: 8%; right: 8%; grid-template-columns: 1fr 1fr; gap: 11px; }
  .archive-card, .archive-card img { min-height: 170px; }
  .archive-placeholder { padding: 14px; }
  .archive-placeholder b { font-size: 25px; }

  .scene-social { min-height: 1020px; }
  .social-visual { left: 5%; top: 13%; width: 90vw; height: 45%; }
  .social-copy { left: 8%; top: 63%; width: 82%; }
  .platform-links { margin-top: 25px; }

  .scene-contact { min-height: 920px; }
  .scene-contact { background-position: center center; }
  .scene-contact::before { background: linear-gradient(180deg, rgba(255,245,211,.68) 0%, rgba(255,245,211,.25) 38%, rgba(255,245,211,.62) 100%); }
  .scene-contact::after { right: -4%; top: 10%; font-size: 54px; }
  .contact-wordmark { left: 4%; top: 15%; width: 92vw; }
  .contact-panel { left: 8%; top: 47%; width: 84%; padding: 22px 18px; display: grid; justify-items: center; }
  .contact-title { width: 100%; text-align: center; }
  .scene-contact .contact-title h2 { font-size: clamp(48px, 14vw, 64px); }
  .qr-wrap { width: 190px; margin-top: 26px; }
  .scene-contact footer { left: 18px; right: 18px; bottom: 22px; }
  .scene-contact footer span:nth-child(2) { display: none; }

  .card-scene { min-height: 820px; padding: 62px 0 80px; }
  .card-scene::before { inset: 16% 0 5%; }
  .card-scene .card-scene-title,
  .scene-character .character-title,
  .scene-motion .title-motion {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin: 48px 9vw 0;
    text-align: center;
    transform: none;
  }
  .scene-character .character-title { margin-right: 6vw; margin-left: 6vw; }
  .scene-character .character-title h2 { font-size: clamp(32px, 10vw, 42px); line-height: 1.08; letter-spacing: -.06em; }
  .scene-character .character-title p { max-width: 32em; margin-right: auto; margin-left: auto; }
  .scene-motion .title-motion h2 { white-space: normal; }
  .story-board {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    margin-top: 54px;
    padding: 28px 9vw 58px;
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    pointer-events: auto;
  }
  .story-board::-webkit-scrollbar { display: none; }
  .story-card,
  .universe-card,
  .video-card {
    --x: 0px !important;
    --y: 0px !important;
    --r: 0deg !important;
    --enter-x: 0px !important;
    --enter-y: 70px !important;
    --exit-x: -45px !important;
    --exit-y: -30px !important;
    --exit-r: -4deg !important;
    position: relative;
    left: auto;
    top: auto;
    flex: 0 0 77vw;
    width: 77vw;
    max-width: 540px;
    scroll-snap-align: center;
  }
  .story-card + .story-card { margin-left: -11vw; }
  .card-scene.cards-active .story-card:hover { transform: translate3d(0, -6px, 0) rotate(0) scale(1.015); }
  .floating-glyph, .blue-pin { opacity: .48; }
  .video-dialog { width: 92vw; padding: 6px; border-radius: 14px; }
  .video-dialog video { border-radius: 10px; }
  .dialog-close { top: -15px; right: -9px; width: 38px; height: 38px; }
}

@media (max-width: 390px) {
  .platform-links { grid-template-columns: 1fr 1fr; }
  .platform-links a { min-height: 47px; padding: 0 13px; }
  .contact-title h2 { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .orb-field { display: none; }
  .story-card { opacity: 1; transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)); }
  [data-scroll-title], [data-scroll-brand] { opacity: 1; translate: 0 0; scale: 1; filter: none; }
}
