/* 主页网页层（FT-20261026-BF-064 W1）：月白 · 编辑为底，借朱印的大编号和红色硬投影（设计稿 7.1、7.3；网页层设计第 2–4 节）。
   入口（#gate）和网页版（#web）两块；场景版的面板在 W2/W3 加。 */
/* 字体的 @font-face 在 fonts/fonts.css：index.html 里和本文件并排 <link>（11-01 起不再 @import，少等一轮：先下完本文件才发现它） */

:root {
  /* 品牌色（设计稿 7.2） */
  --red: #E2412E; --white: #FAF8F4; --black: #161417; --ink: #2E2A30; --body: #4A4450; --muted: #8A8290;
  --star: #BDEFF5; --gold: #FFCB5C; --night: #1F2A44;
  --bg: #FAF8F4; --surface: #FFFFFF; --surface-2: #F1ECE5; --line: rgba(22, 20, 23, .14); --line-strong: #161417;
  --night-line: rgba(189, 239, 245, .18);
  /* 字体（设计稿 7.3）：英文在前、中文在后 */
  --f-body: "Geist", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --f-display: "Instrument Serif", "Noto Serif SC", "Songti SC", serif;
  --f-cn-display: "Noto Serif SC", "Songti SC", serif;
  --f-mono: "Geist Mono", "Noto Sans SC", ui-monospace, monospace;
  --r: 6px; --r-sm: 3px;
  --shadow: 0 30px 80px rgba(22, 20, 23, .16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.625; -webkit-font-smoothing: antialiased; }
:lang(zh-CN) body, :lang(zh-CN) p { line-height: 1.7; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }   /* 叠层打开时脚本把焦点放到标题上，不画框 */
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 12px; background: var(--black); color: #fff; text-decoration: none; }
.skip:focus { top: 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- 通用部件 ---------- */
.display { font-family: var(--f-display); font-weight: 600; color: var(--black); letter-spacing: 0; }
.kicker { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--red); letter-spacing: .04em; }
.kicker::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--red); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.sample { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; margin-left: 8px; border: 1px dashed currentColor; border-radius: 4px; font-size: 12px; letter-spacing: .1em; color: var(--muted); vertical-align: middle; font-weight: 400; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .3s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease); }
.btn:hover { background: rgba(22, 20, 23, .05); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
/* 借朱印的红色硬投影：只给要人点的东西 */
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 4px 4px 0 var(--black); }
.btn.primary:hover { background: var(--red); filter: brightness(1.05); }
.btn.primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--black); }
.btn.quiet { border-color: transparent; color: var(--body); padding: 8px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--body); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }

/* ---------- 导航（设计稿 7.6、13.3） ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px 32px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--black); }
.brand b { font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1; }
.brand span { font-size: 14px; color: var(--muted); letter-spacing: .2em; white-space: nowrap; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links a { position: relative; display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; transition: color .3s var(--ease); }
.nav-links a sup { font-family: var(--f-mono); font-size: 12px; color: var(--red); opacity: .7; top: -.4em; }
.nav-links a:hover { color: var(--red); }
.nav-links a[aria-current="true"] { color: var(--red); }
.nav-links a[aria-current="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red); }
.nav-tools { display: flex; align-items: center; gap: 4px; padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--line); }
.tool { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; text-decoration: none; }
.tool:hover { background: rgba(22, 20, 23, .06); }
.tool em { font-style: normal; font-weight: 400; color: var(--muted); }
.tool svg { width: 18px; height: 18px; }
.tool.to3d { border: 1px solid var(--line-strong); }
.menu-btn { display: none; }
.mmenu { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; padding: 96px 24px 32px; background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s .3s; }
.mmenu.open { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
.mmenu a.l { font-family: var(--f-cn-display); font-weight: 600; font-size: 36px; line-height: 1.6; color: var(--black); text-decoration: none; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.mmenu a.l sup { font-family: var(--f-mono); font-size: 12px; color: var(--red); margin-left: 8px; }
.mmenu.open a.l { opacity: 1; transform: none; }
.mmenu .row { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.mmenu .close { position: absolute; right: 16px; top: 16px; }

/* ---------- 网页版：首屏 ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; max-width: 1440px; margin: 0 auto; padding: 48px 64px 96px; min-height: calc(100svh - 64px); }
.hero h1 { font-size: 72px; line-height: 1.05; max-width: 680px; margin-top: 24px; }
:lang(zh-CN) .hero h1 { font-family: var(--f-cn-display); font-size: 64px; line-height: 1.2; }
.hero .sub { margin-top: 24px; max-width: 560px; font-size: 18px; color: var(--body); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero .facts { display: flex; gap: 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 560px; }
.hero .facts b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 36px; line-height: 1.1; color: var(--black); }
.hero .facts span { font-size: 14px; color: var(--muted); }
.hero .window { position: relative; aspect-ratio: 4 / 5; border-radius: 240px 240px var(--r) var(--r); overflow: hidden; background: var(--surface-2) url(../../img/sea.webp) 40% center / cover; box-shadow: var(--shadow); }
.hero .window .enter { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px;
  background: rgba(250, 248, 244, .94); border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.hero .window .enter b { display: block; font-size: 16px; }
.hero .window .enter small { display: block; font-size: 12px; color: var(--muted); }

/* ---------- 网页版：五段 ---------- */
.sec { max-width: 1440px; margin: 0 auto; padding: 96px 64px; border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 48px; }
.sec-head .num { font-family: var(--f-mono); font-size: 64px; line-height: 1; color: var(--red); margin-bottom: 16px; }
.sec-head h2 { font-size: 48px; line-height: 1.15; margin-top: 12px; }
:lang(zh-CN) .sec-head h2 { font-family: var(--f-cn-display); }
.sec-head p { font-size: 18px; color: var(--body); max-width: 600px; }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* 作品 */
.work { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.work .cover { aspect-ratio: 16 / 9; border: 1px solid var(--line-strong); background: var(--surface-2) center / cover; box-shadow: 8px 8px 0 var(--red); }
.work h3 { font-size: 36px; line-height: 1.2; }
:lang(zh-CN) .work h3 { font-family: var(--f-cn-display); }
.work .tagline-1 { margin-top: 8px; font-size: 18px; color: var(--body); }
.work ol { margin: 24px 0 0; padding: 0; list-style: none; }
.work li { display: grid; grid-template-columns: 32px 1fr; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--body); }
.work li span { font-family: var(--f-mono); font-size: 12px; color: var(--red); padding-top: 4px; }
.work .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.next-work { margin-top: 32px; padding: 16px; border: 1px dashed var(--line-strong); font-size: 14px; color: var(--muted); text-align: center; }

/* 逐字点亮的一段大字（参考技能 B11） */
.tagline { max-width: 1440px; margin: 0 auto; padding: 128px 64px; }
.tagline p { max-width: 1120px; font-family: var(--f-cn-display); font-weight: 600; font-size: 56px; line-height: 1.3; }
:lang(en) .tagline p { font-family: var(--f-display); font-weight: 400; font-size: 64px; line-height: 1.1; }
.tagline span { color: color-mix(in srgb, var(--black) 26%, transparent); transition: color .6s var(--ease); }
.tagline span.lit { color: var(--black); }
.tagline span.red.lit { color: var(--red); }

/* 团队 */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.person { position: relative; display: block; margin: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); overflow: hidden; color: inherit; text-decoration: none;
  transition: transform .4s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.person:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 6px 6px 0 var(--c); }
.person:active { transform: translateY(0); }
.person .pic { display: flex; height: 280px; display: flex; align-items: flex-end; justify-content: center; background: linear-gradient(transparent 50%, color-mix(in srgb, var(--c) 20%, transparent)); }
.person .pic img { height: 260px; width: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(22, 20, 23, .15)); }
.person .pcap { display: block; padding: 12px 16px 16px; }
.person b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--black); }
:lang(zh-CN) .person b { font-family: var(--f-cn-display); font-weight: 600; font-size: 22px; }
.person .pcap > span { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 14px; color: var(--muted); }
.person .pcap > span i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.person .ai { position: absolute; top: 12px; right: 12px; padding: 0 6px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; border-radius: 2px; }
.team-note { margin-top: 24px; font-size: 14px; color: var(--muted); }

/* 工作流（夜海卡，设计稿 9.3） */
.sec.night { max-width: none; background: var(--night); color: #E8F4F6; border: 0; }
.sec.night > .inner { max-width: 1312px; margin: 0 auto; }
.sec.night .sec-head h2 { color: #F4FBFF; }
.sec.night .sec-head p { color: rgba(232, 244, 246, .72); }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--night-line); border: 1px solid var(--night-line); }
.nums div { background: var(--night); padding: 24px; }
.nums b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 48px; line-height: 1; color: #F4FBFF; text-shadow: 0 0 18px rgba(189, 239, 245, .45); font-variant-numeric: tabular-nums; }
.nums span { display: block; margin-top: 8px; font-size: 14px; color: rgba(232, 244, 246, .72); }
.nums small { display: block; font-size: 12px; color: rgba(232, 244, 246, .5); }
.sub-t { display: flex; align-items: baseline; gap: 12px; margin: 48px 0 16px; }
.sub-t h3 { font-size: 24px; color: #F4FBFF; }
:lang(zh-CN) .sub-t h3 { font-family: var(--f-cn-display); }
.sub-t .mono { color: rgba(232, 244, 246, .5); }
.steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.steps li { border: 1px solid var(--night-line); padding: 12px; font-size: 14px; line-height: 1.5; color: rgba(232, 244, 246, .8); }
.steps b { display: block; margin-bottom: 4px; font-size: 16px; color: #F4FBFF; }
.steps b em { font-style: normal; font-family: var(--f-mono); font-size: 12px; color: var(--star); margin-right: 6px; }
.seal { display: inline-block; margin-top: 8px; padding: 0 6px; font-size: 12px; border-radius: 2px; }
.seal.ai { background: var(--red); color: #fff; }
.seal.hu { border: 1px solid var(--gold); color: var(--gold); }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kanban section { border: 1px solid var(--night-line); padding: 12px; }
.kanban h4 { font-size: 14px; font-weight: 400; color: rgba(232, 244, 246, .6); }
.kanban p { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 12px; background: rgba(189, 239, 245, .07); font-size: 14px; color: #E8F4F6; }
.kanban p i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.starmap { position: relative; height: 240px; border: 1px solid var(--night-line); background: radial-gradient(ellipse at 50% 120%, rgba(189, 239, 245, .12), transparent 60%); overflow: hidden; }
.starmap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.starmap .label { position: absolute; font-family: var(--f-mono); font-size: 12px; color: rgba(232, 244, 246, .55); letter-spacing: .08em; }

/* 方向 */
.dir-media { position: relative; aspect-ratio: 16 / 7; max-height: 560px; width: 100%; background: var(--surface-2) url(../../img/sea.webp) center 40% / cover; border: 1px solid var(--line-strong); }
.dir-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.dir-steps div { border-top: 2px solid var(--black); padding-top: 16px; }
.dir-steps b { display: block; font-family: var(--f-cn-display); font-size: 24px; font-weight: 600; color: var(--black); }
:lang(en) .dir-steps b { font-family: var(--f-display); font-weight: 400; font-size: 30px; }
.dir-steps p { margin-top: 8px; color: var(--body); }

/* 联系：写邮件、招聘卡（设计稿 10.7、13.3；10-27 去掉留言表单） */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.crow { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.crow span { font-size: 14px; color: var(--muted); }
.recruit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 24px; background: var(--surface); border: 1.5px solid var(--black); box-shadow: 8px 8px 0 var(--red); }
.recruit h3 { margin-top: 12px; font-size: 30px; line-height: 1.25; }
:lang(zh-CN) .recruit h3 { font-family: var(--f-cn-display); font-size: 28px; }
.recruit p { margin-top: 8px; color: var(--body); }
.recruit .desk { width: 96px; height: 96px; display: grid; place-items: center; text-align: center; border: 1.5px dashed var(--red); color: var(--red); font-family: var(--f-cn-display); font-weight: 600; font-size: 16px; line-height: 1.3; }
.recruit .btn { margin-top: 16px; }
.mailcard { padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.mailcard h3 { margin-top: 12px; font-family: var(--f-display); font-weight: 400; font-size: 36px; line-height: 1.15; word-break: break-all; }
/* 地址用正文字体：标题衬线里的 1 像小写 l，照着抄会抄错（10-30） */
.mailcard h3 a { font-family: var(--f-body); font-size: 30px; font-weight: 500; letter-spacing: -.01em; color: var(--black); text-decoration: none; background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 2px no-repeat; }
.mailcard h3 a:hover { color: var(--red); }
.mailcard p { margin-top: 8px; color: var(--body); }
.mailcard .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.mailcard .crow { margin-top: 24px; }

.foot { max-width: 1440px; margin: 0 auto; padding: 32px 64px 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .sp { flex: 1; }
.foot a, .foot button { color: var(--body); background: none; border: 0; padding: 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- 入口（设计稿 15.1、网页层设计 5.2） ---------- */
#gate { position: fixed; inset: 0; z-index: 50; overflow: hidden; background: var(--bg); color: var(--ink); display: none; }
html[data-mode="gate"] #gate { display: block; }
html[data-mode="gate"] body { overflow: hidden; }
#gate .mist { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(46, 42, 48, .09), transparent); filter: blur(10px); animation: mist 40s ease-in-out infinite alternate; pointer-events: none; }
@keyframes mist { from { transform: translate3d(-4%, 0, 0) scale(1); } to { transform: translate3d(5%, -3%, 0) scale(1.12); } }
#gate .corner { position: absolute; left: 32px; top: 24px; }
#gate .horizon { position: absolute; left: 0; right: 0; top: var(--hz); height: 1px; background: linear-gradient(90deg, transparent, rgba(22, 20, 23, .28) 12%, rgba(22, 20, 23, .28) 88%, transparent); }
#gate .stage { position: absolute; left: var(--gx); top: calc(var(--hz) - var(--gd)); width: var(--gd); height: calc(var(--gd) * 2); }
#gate .moon, #gate .reflect { position: absolute; left: 0; width: var(--gd); height: var(--gd); border-radius: 50%; overflow: hidden; }
#gate .moon { top: 0; box-shadow: 0 0 0 1px rgba(22, 20, 23, .5), 0 0 0 10px var(--bg), 0 0 0 11px rgba(22, 20, 23, .12), 0 40px 80px rgba(22, 20, 23, .12); }
#gate .view { position: absolute; inset: -6%; background: var(--surface-2) url(../../img/sea.webp) 54% 46% / cover; }
#gate .moon .view { animation: drift 24s ease-in-out infinite alternate; filter: url(#oi-ripple); }
@keyframes drift { from { transform: scale(1.02) translate3d(-1%, 0, 0); } to { transform: scale(1.1) translate3d(1.5%, -1%, 0); } }
#gate .reflect { top: var(--gd); transform: scaleY(-1); opacity: .22; filter: blur(2px); -webkit-mask-image: linear-gradient(to top, #000, transparent 55%); mask-image: linear-gradient(to top, #000, transparent 55%); }
#gate .reflect .view { filter: url(#oi-ripple2); }
#gate .ring { position: absolute; left: -22px; top: -22px; width: calc(var(--gd) + 44px); height: calc(var(--gd) + 44px); transform: rotate(-90deg); pointer-events: none; }
#gate .ring circle { fill: none; stroke-width: .36; }
#gate .ring .track { stroke: rgba(22, 20, 23, .1); }
#gate .ring .bar { stroke: var(--red); stroke-linecap: round; transition: stroke-dashoffset .4s linear, opacity .4s; opacity: 0; }
#gate .vtitle { position: absolute; top: calc(var(--hz) - var(--gd) + 8px); left: calc(var(--gx) - 92px); margin: 0; writing-mode: vertical-rl; font-family: var(--f-cn-display); font-weight: 600; font-size: 44px; letter-spacing: .32em; color: var(--black); }
#gate .vtitle small { font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em; color: var(--muted); margin-top: 16px; font-weight: 400; }
#gate .copy { position: absolute; left: var(--cx); top: 50%; transform: translateY(-50%); width: min(520px, 40vw); }
#gate .copy h2 { margin-top: 16px; font-family: var(--f-cn-display); font-size: 48px; line-height: 1.2; color: var(--black); }
:lang(en) #gate .copy h2 { font-family: var(--f-display); font-weight: 400; font-size: 56px; line-height: 1.05; }
#gate .copy > p { margin-top: 16px; color: var(--body); }
.choice { display: grid; grid-template-columns: 52px minmax(0, 1fr) 40px; align-items: center; gap: 16px; width: 100%; margin-top: 16px; padding: 16px; text-align: left;
  background: var(--surface); border: 1.5px solid var(--black); border-radius: 0; color: var(--ink); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.choice:first-of-type { margin-top: 32px; }
.choice .s { width: 52px; height: 52px; display: grid; place-items: center; border: 1.5px solid var(--red); color: var(--red); font-family: var(--f-cn-display); font-weight: 600; font-size: 18px; line-height: 20px; text-align: center; font-style: normal; }
.choice b { display: block; font-family: var(--f-cn-display); font-weight: 600; font-size: 24px; line-height: 1.25; color: var(--black); }
:lang(en) .choice b { font-family: var(--f-display); font-weight: 400; font-size: 28px; }
.choice .d { display: block; margin-top: 2px; font-size: 14px; color: var(--body); }
.choice .meta { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.choice .meta em { font-style: normal; color: var(--red); }
.choice .go { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-style: normal; }
.choice .go svg { width: 18px; height: 18px; }
.choice:hover { transform: translate(-2px, -2px); }
.choice:active { transform: translate(2px, 2px); }
.choice.main { box-shadow: 8px 8px 0 var(--red); }
.choice.main:hover { box-shadow: 10px 10px 0 var(--red); }
.choice.main:active { box-shadow: 4px 4px 0 var(--red); }
.choice.main .s { background: var(--red); color: #fff; }
.choice.main .go { background: var(--red); border-color: var(--red); color: #fff; }
.choice[aria-disabled="true"] { opacity: .5; pointer-events: none; box-shadow: none; }
#gate .opts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; font-size: 14px; color: var(--muted); }
#gate .opts label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
#gate .opts input { width: 16px; height: 16px; margin: 0; accent-color: var(--red); }
#gate .opts .tool { border: 1px solid var(--line); height: 32px; }
#gate .bottom { position: absolute; left: 32px; right: 32px; bottom: 24px; display: flex; justify-content: space-between; gap: 16px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
#gate > * { animation: gate-in 1s var(--ease) both; }
#gate .copy { animation-delay: .15s; }
@keyframes gate-in { from { opacity: 0; } to { opacity: 1; } }
#gate.leave { transition: transform .7s var(--ease), opacity .7s var(--ease); transform: translateY(-6%); opacity: 0; }
#through { position: fixed; inset: 0; z-index: 60; background: #8fb5d6 url(../../img/sea.webp) center / cover; pointer-events: none; visibility: hidden; clip-path: circle(0 at 50% 50%); }
#through.go { visibility: visible; transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }

/* ---------- W2：场景版的壳、面板、卡（网页层设计 4.1–4.5） ---------- */
#scene { display: none; position: fixed; inset: 0; background: #8fb5d6 url(../../img/sea.webp) center / cover; }
html[data-mode="scene"] #scene { display: block; }
html[data-mode="scene"] #web, html[data-mode="scene"] .foot { display: none; }
#scene .label { position: absolute; left: 16px; bottom: 16px; padding: 4px 8px; background: rgba(22, 20, 23, .55); color: #fff; font-size: 12px; border-radius: 4px; }
/* 场景版的导航：贴着页顶、左右贴边的一条（11-02 BF：原来浮在画面上、四周留空的圆角条，改成不留空隙） */
html[data-mode="scene"] .nav { position: fixed; left: 0; right: 0; top: 0; padding: 4px 12px 4px 24px; padding-top: max(4px, env(safe-area-inset-top));
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: rgba(250, 248, 244, .92); box-shadow: 0 4px 24px rgba(22, 20, 23, .1); }
html[data-mode="scene"] .brand { padding: 4px 0; }
.btn.ghost { border-color: currentColor; }
.sec-acts { display: flex; gap: 12px; margin-top: 32px; }
.sec.night .btn.ghost { color: #E8F4F6; }
.sample.night { color: rgba(232, 244, 246, .6); }

/* 面板：场景版从右边整条滑出（月白纸、左边一道细线） */
#panel { position: fixed; z-index: 15; top: 0; right: 0; bottom: 0; width: min(680px, 100vw); display: flex; flex-direction: column; padding-top: 80px;
  background: var(--bg); border-left: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink);
  transform: translateX(32px); opacity: 0; transition: transform .5s var(--ease), opacity .4s var(--ease); }
#panel.show { transform: none; opacity: 1; }
#panel .ph { display: flex; align-items: flex-start; gap: 16px; padding: 24px 32px 16px; }
#panel .ph > div { flex: 1; }
#panel .ph h2 { margin-top: 8px; font-family: var(--f-cn-display); font-size: 32px; line-height: 1.25; color: var(--black); outline: none; }
:lang(en) #panel .ph h2 { font-family: var(--f-display); font-weight: 400; font-size: 36px; line-height: 1.1; }
#panel .ph p { margin-top: 8px; color: var(--body); }
#panel .pbody { flex: 1; overflow: auto; padding: 8px 32px 32px; overscroll-behavior: contain; }
#panel .pfoot { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 32px; border-top: 1px solid var(--line); }
#panel .work, #panel .contact { grid-template-columns: 1fr; gap: 24px; }
#panel .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#panel .person .pic { height: 180px; }
#panel .person .pic img { height: 168px; }
#panel .person b, :lang(zh-CN) #panel .person b { font-size: 20px; }
#panel .dir-steps { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
#panel .dir-media { aspect-ratio: 16 / 9; }
#panel .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#panel .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#panel .nums b { font-size: 36px; }
#panel .kanban { grid-template-columns: 1fr; }
#panel .sub-t { margin-top: 32px; }
/* 星河面板用夜海卡（设计稿 7.1） */
#panel.night { background: var(--night); color: #E8F4F6; border-left-color: var(--night-line); }
#panel.night .ph h2 { color: #F4FBFF; }
#panel.night .ph p { color: rgba(232, 244, 246, .72); }
#panel.night .pfoot { border-top-color: var(--night-line); }
#panel.night .btn.ghost { color: #E8F4F6; }
#panel.night .tool { color: #E8F4F6; }
#panel.night .tool:hover { background: rgba(189, 239, 245, .1); }
#panel.night .nums div { background: var(--night); }

/* 卡：盖在上面，有遮罩 */
#scrim { position: fixed; inset: 0; z-index: 24; background: rgba(22, 20, 23, .32); opacity: 0; transition: opacity .4s var(--ease); }
#scrim.show { opacity: 1; }
#card { position: fixed; z-index: 25; left: 50%; top: 50%; max-height: calc(100svh - 48px); overflow: auto; background: var(--bg); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  color: var(--ink); transform: translate(-50%, calc(-50% + 24px)); opacity: 0; transition: transform .5s var(--ease), opacity .4s var(--ease); overscroll-behavior: contain; }
#card.show { transform: translate(-50%, -50%); opacity: 1; }
#card:not(.show) { pointer-events: none; }   /* 收起的那 0.45 秒里别挡场景 */
#scrim.clear { background: transparent; }
.tool.close { flex: none; }

/* 名片（设计稿 6.9） */
#card.namecard { width: min(920px, calc(100vw - 32px)); display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.namecard .art { position: relative; min-height: 440px; border-right: 1px solid var(--line); background: linear-gradient(transparent 40%, color-mix(in srgb, var(--c) 16%, transparent)); overflow: hidden; }
.namecard .art img { position: absolute; left: 50%; bottom: 0; height: 92%; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 10px 18px rgba(22, 20, 23, .22)); -webkit-user-drag: none; user-select: none; pointer-events: none; }
.namecard .info { display: flex; flex-direction: column; gap: 12px; padding: 16px 24px 24px; min-width: 0; }
.namecard .top { display: flex; align-items: center; gap: 4px; }
.namecard .top .mono { margin-right: auto; }
.namecard h2 { font-size: 64px; line-height: 1; outline: none; }
:lang(zh-CN) .namecard h2 { font-family: var(--f-cn-display); font-size: 48px; line-height: 1.15; }
.namecard .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.namecard .chip i { background: var(--c); }
.namecard .quote { font-family: var(--f-cn-display); font-size: 20px; color: var(--ink); }
.namecard .now { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--body); }
.chip.status { background: var(--black); border-color: var(--black); color: #fff; }
.chip.status i { background: var(--star); box-shadow: 0 0 6px var(--star); }
.chip.status.off { background: transparent; border-color: var(--line); color: var(--body); }
.chip.status.off i { background: var(--line); box-shadow: none; }
.namecard .now .lastly { color: var(--mute, var(--body)); opacity: .7; font-size: .9em; }
.namecard .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.namecard .social { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.namecard .social div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.namecard .social a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; }
.namecard .social a:hover { color: var(--c); border-color: var(--c); }
.namecard .social a svg { width: 14px; height: 14px; }

/* 招聘卡 */
#card.hire { width: min(560px, calc(100vw - 32px)); padding: 16px; background: transparent; border: 0; box-shadow: none; overflow: visible; }
#card.hire .hire-top { display: flex; justify-content: flex-end; margin-bottom: 8px; }
#card.hire .hire-top .tool { background: var(--bg); border: 1px solid var(--line); }

/* 白板卡（设计稿 9.4） */
#card.board { width: min(1200px, calc(100vw - 32px)); padding: 24px; }
.bhead { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.bhead > div { flex: 1; }
.bhead h2 { margin-top: 8px; font-family: var(--f-cn-display); font-size: 32px; color: var(--black); outline: none; }
:lang(en) .bhead h2 { font-family: var(--f-display); font-weight: 400; font-size: 36px; }
.bhead .hint { align-self: center; font-size: 14px; color: var(--muted); }
/* 听潮卡（设计稿 9.10，T5）：小茶的一句、今天的漏斗、最近分拣 */
#card.tide { width: min(760px, calc(100vw - 32px)); padding: 24px; }
.thead { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.thead > div { flex: 1; }
.thead h2 { margin-top: 8px; font-family: var(--f-cn-display); font-size: 30px; color: var(--black); }
:lang(en) .thead h2 { font-family: var(--f-display); font-weight: 400; font-size: 32px; }
.tsay { margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid var(--red); background: var(--surface-2); font-size: 15px; line-height: 1.7; color: var(--ink); }
.tsay .who { font-weight: 700; color: var(--red); margin-right: 4px; }
.funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 20px; padding: 0; list-style: none; }
.funnel li { position: relative; padding: 12px 16px; border: 1.5px solid var(--black); background: var(--surface); }
.funnel li + li { border-left: 0; }
.funnel li + li::before { content: "→"; position: absolute; left: -9px; top: 50%; transform: translateY(-50%); padding: 0 2px; background: var(--surface); color: var(--red); font-size: 14px; }
.funnel b { display: block; font-family: var(--f-mono); font-size: 28px; line-height: 1.1; color: var(--black); }
.funnel span { font-size: 13px; color: var(--body); }
.trec { margin: 0 0 8px; font-size: 15px; color: var(--black); }
.trows { margin: 0 0 12px; padding: 0; list-style: none; }
.trows li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.trows .ic { padding: 0 6px; border-radius: 2px; font-size: 12px; white-space: nowrap; }
.trows .ic.bug { background: var(--red); color: #fff; }
.trows .ic.feature { border: 1px solid #3F8FB8; color: #2D6F94; }
.trows .ic.need { background: #F6E7A8; color: #6E5A12; }
.trows .what b { margin-right: 6px; color: var(--black); font-weight: 600; }
.trows .res { font-size: 13px; color: var(--muted); text-align: right; }
.trows li.miss .what { color: var(--muted); }
.tfoot { margin: 0; font-size: 12px; color: var(--muted); }
.steps.tide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tide-vs { margin: 8px 0 0; font-size: 14px; color: rgba(232, 244, 246, .7); }
.wb { position: relative; padding: 24px; background: #FFFFFE; border: 10px solid #E9E6E2; border-bottom: 10px solid var(--red); box-shadow: inset 0 0 40px rgba(22, 20, 23, .05); }
.wb .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.bcol h3 { margin-bottom: 12px; font-family: "LXGW WenKai", "Caveat", var(--f-cn-display); font-weight: 400; font-size: 22px; color: var(--ink); border-bottom: 1.5px solid rgba(22, 20, 23, .2); padding-bottom: 4px; }
:lang(en) .bcol h3 { font-family: "Caveat", "LXGW WenKai", cursive; font-size: 28px; }
.note { position: relative; display: block; width: 100%; min-height: 96px; margin: 0 0 16px; padding: 18px 14px 32px; border: 0; text-align: left; color: #2E2A30;
  font-family: "LXGW WenKai", "Caveat", var(--f-cn-display); font-size: 19px; line-height: 1.35; box-shadow: 0 4px 10px rgba(22, 20, 23, .1); transform: rotate(var(--tilt, 0deg));
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); cursor: pointer; text-decoration: none; }
:lang(en) .note { font-family: "Caveat", "LXGW WenKai", cursive; font-size: 24px; line-height: 1.15; }
.note:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 0 10px 18px rgba(22, 20, 23, .14); }
.note.on { transform: rotate(0deg) scale(1.03); box-shadow: 0 0 0 2px var(--red), 0 10px 18px rgba(22, 20, 23, .14); }
.note.y { background: #FFF3B0; } .note.g { background: #DDF2CF; } .note.p { background: #FBDCE3; } .note.v { background: #E7DEF6; }
.note.today { background: #FBF7EE; transform: rotate(-2deg); min-height: 160px; }
.note.more { background: transparent; box-shadow: none; border: 1.5px dashed rgba(22, 20, 23, .35); font-family: var(--f-body); font-size: 14px; color: var(--body); min-height: 0; padding: 12px; transform: none; }
.note .pin { position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--red); box-shadow: 0 2px 3px rgba(22, 20, 23, .3); }
.note.more .pin { display: none; }
.note .by { position: absolute; left: 14px; bottom: 8px; display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.note .by i { width: 8px; height: 8px; border-radius: 50%; }
.bcol .empty { font-family: "LXGW WenKai", var(--f-cn-display); font-size: 18px; color: var(--muted); }
.wb .dots { display: none; }
.bdetail { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 16px; padding: 16px; border: 1px solid var(--line); background: var(--surface); }
.bdetail[hidden] { display: none; }
.bdetail img { width: 64px; height: 64px; object-fit: cover; object-position: top; border-radius: 50%; background: var(--surface-2); }
.bdetail b { font-size: 18px; }
.bdetail p { margin-top: 4px; color: var(--body); }
.bdetail .mono { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.bdetail .mono i { width: 8px; height: 8px; border-radius: 50%; }
.bdetail .acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* 能做什么（星河第 3 块） */
.caps-wrap { overflow-x: auto; border: 1px solid var(--night-line); }
.caps { width: 100%; border-collapse: collapse; font-size: 14px; }
.caps th, .caps td { padding: 10px 12px; border-bottom: 1px solid var(--night-line); text-align: center; white-space: nowrap; }
.caps thead th { font-weight: 400; color: rgba(232, 244, 246, .6); }
.caps tbody th { text-align: left; font-weight: 500; color: #F4FBFF; }
.caps tr:last-child th, .caps tr:last-child td { border-bottom: 0; }
.cap { width: 32px; height: 32px; border: 1px solid rgba(189, 239, 245, .4); border-radius: 50%; background: transparent; color: var(--star); font-size: 14px; transition: background .3s var(--ease), color .3s var(--ease); }
.cap:hover, .cap.on { background: var(--star); color: var(--night); }
.caps-info { margin-top: 8px; font-size: 14px; color: rgba(232, 244, 246, .72); min-height: 1.6em; }

/* 星图（星河第 5 块） */
.smap-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.smap-bar .sp { flex: 1; }
.fchip { height: 32px; padding: 0 12px; border: 1px solid var(--night-line); border-radius: 999px; background: transparent; color: rgba(232, 244, 246, .8); font-size: 14px; }
.fchip.on { background: rgba(189, 239, 245, .14); border-color: rgba(189, 239, 245, .5); color: #F4FBFF; }
.smap-bar .tool { color: #E8F4F6; border: 1px solid var(--night-line); width: 36px; min-width: 36px; height: 36px; padding: 0; font-size: 18px; font-weight: 400; }
.smap-view { position: relative; border: 1px solid var(--night-line); background: radial-gradient(ellipse at 50% 120%, rgba(189, 239, 245, .12), transparent 60%); overflow: hidden; touch-action: none; cursor: grab; }
.smap-view:active { cursor: grabbing; }
.smap-view svg { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 440; }
.smap .ln { fill: none; stroke: rgba(189, 239, 245, .26); stroke-width: 1; transition: opacity .3s, stroke .3s; vector-effect: non-scaling-stroke; }
.smap .ln.far { stroke-dasharray: 3 5; stroke: rgba(189, 239, 245, .2); }
.smap .ln.on { stroke: var(--star); stroke-width: 1.6; opacity: 1; }
.smap .ln.dim { opacity: .15; }
.smap .st { cursor: pointer; outline: none; transition: opacity .3s; }
.smap .st .dot { fill: #F4FBFF; }
.smap .st .glow { fill: rgba(189, 239, 245, .14); }
.smap .st .hit { fill: transparent; }
.smap .st:hover .dot, .smap .st:focus-visible .dot { fill: var(--star); }
.smap .st.sel .dot { fill: var(--gold); }
.smap .st.dim { opacity: .2; }
.smap .pl { fill: rgba(232, 244, 246, .5); font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-anchor: middle; }
.smap .tip { position: absolute; z-index: 2; max-width: 260px; padding: 8px 12px; background: rgba(250, 248, 244, .96); color: var(--ink); font-size: 14px; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.smap .tip b { display: block; }
.smap .tip span { font-size: 12px; color: var(--muted); }
.smap-info { margin-top: 8px; font-size: 14px; color: rgba(232, 244, 246, .72); min-height: 1.6em; }
.smap-info b { color: #F4FBFF; font-weight: 500; }
.smap-info .desc, .caps-info .desc { display: block; margin-top: 4px; }
.kanban .who { margin-left: auto; font-family: var(--f-mono); font-size: 12px; color: rgba(232, 244, 246, .5); }

#toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; max-width: calc(100vw - 32px); padding: 12px 16px; background: var(--black); color: #fff; font-size: 14px;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: transform .4s var(--ease), opacity .3s var(--ease); }
#toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- W3：场景版装 Unity 以后 ---------- */
html.engine #scene { background: #FAF8F4; }
html.engine #scene .label { display: none; }
#scene #unity-canvas, html[data-mode="scene"] #unity-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; }
html:not([data-mode="scene"]) #unity-canvas, html:not([data-mode="scene"]) #oc-root, html:not([data-mode="scene"]) #oc-cloud, html:not([data-mode="scene"]) #lm { display: none !important; }
.nav .ownit-slot { display: contents; }
/* 路标卡（scene/host.js + lm-card.js；11-02 BF 重新设计）：底部正中一张月白纸，黑细边、红色硬投影；左上所在世界的颜色点 + 小标，右上关闭。
   各卡的主角和比例：角色舞台——立绘占左边一栏、往上冒出卡顶约 120 px；大屏幕——左边 16:9 封面约占四成；月洞门——夜海卡，左边一个发光的门圈；水环门——此刻在工作室的人 */
#lm { position: fixed; z-index: 14; left: 50%; bottom: 24px; width: min(640px, calc(100vw - 32px)); display: grid; grid-template-columns: minmax(0, 1fr); background: var(--bg);
  border: 1px solid var(--line-strong); box-shadow: 8px 8px 0 var(--red), var(--shadow); color: var(--ink); --k: var(--red);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .4s var(--ease); }
#lm.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
#lm.k-stage { --k: #E58A3A; }   /* 像素区 */
#lm.k-screen { --k: #3AA6A0; }  /* 方块区 */
#lm.k-door { --k: #C9408E; }    /* 赛博区 */
#lm .lm-main { min-width: 0; padding: 18px 22px 22px 24px; }
#lm .lm-head { display: flex; align-items: center; gap: 12px; min-height: 32px; }
#lm .lm-kick { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .08em; color: var(--body); }
#lm .lm-kick i { width: 8px; height: 8px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 3px color-mix(in srgb, var(--k) 22%, transparent); }
#lm .lm-idx { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
#lm .lm-step { display: inline-flex; gap: 4px; }
#lm .lm-step button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 17px; line-height: 1; color: var(--ink); padding: 0 0 2px; }
#lm .lm-step button:hover { border-color: var(--line-strong); background: rgba(22, 20, 23, .04); }
#lm .lm-x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--body); display: grid; place-items: center; }
#lm .lm-x:hover { background: rgba(22, 20, 23, .06); color: var(--ink); }
#lm .lm-x svg { width: 18px; height: 18px; }
#lm h2 { margin-top: 10px; font-family: var(--f-cn-display); font-size: 34px; line-height: 1.15; color: var(--black); letter-spacing: .01em; }
:lang(en) #lm h2 { font-family: var(--f-display); font-weight: 400; font-size: 38px; }
#lm .lm-role { margin-top: 6px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#lm .lm-body { margin-top: 10px; color: var(--body); line-height: 1.75; }
#lm .lm-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
#lm .btn { min-height: 40px; font-size: 15px; }
#lm .btn svg { width: 14px; height: 14px; }
#lm .btn.quiet { padding: 8px 6px; }

/* 角色舞台：人物展签 */
#lm.k-stage { width: min(720px, calc(100vw - 32px)); grid-template-columns: 236px minmax(0, 1fr); }
#lm .lm-art { position: relative; min-height: 236px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, var(--bg)), color-mix(in srgb, var(--c) 20%, var(--bg))); }
#lm .lm-moon { position: absolute; left: 50%; top: -86px; width: 196px; height: 196px; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 36% 32%, color-mix(in srgb, var(--c) 22%, #fff) 0, color-mix(in srgb, var(--c) 48%, #fff) 52%, color-mix(in srgb, var(--c) 72%, #fff) 100%);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 14%, transparent), 0 0 0 1px var(--line-strong), 0 0 50px color-mix(in srgb, var(--c) 45%, transparent); }
/* 立绘框比这一栏左右各宽 20 px、往上冒 128 px，图按比例缩进框里贴底（宽的立绘不会盖到右边的字） */
#lm .lm-art img { position: absolute; left: -20px; bottom: 0; width: calc(100% + 40px); height: calc(100% + 128px); max-width: none;
  object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 14px 18px rgba(22, 20, 23, .2)); pointer-events: none; }
#lm .lm-now { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; color: var(--ink); padding: 10px 12px; background: var(--surface-2); border-radius: var(--r); }
#lm .lm-now em { font-style: normal; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }
#lm .lm-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--body); }
#lm .lm-st i { width: 7px; height: 7px; border-radius: 50%; background: #9BCB6B; box-shadow: 0 0 0 3px rgba(155, 203, 107, .25); }
#lm .lm-st.s-break i { background: var(--gold); box-shadow: 0 0 0 3px rgba(255, 203, 92, .25); }
#lm .lm-st.s-away i, #lm .lm-st.s-offwork i { background: var(--line); box-shadow: none; }
#lm .lm-social { margin-top: 12px; display: flex; gap: 14px; font-size: 13px; }
#lm .lm-social a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; }
#lm .lm-social a:hover { color: var(--ink); }
#lm .lm-social svg { width: 12px; height: 12px; }

/* 大屏幕：放映单 */
#lm.k-screen { width: min(840px, calc(100vw - 32px)); grid-template-columns: minmax(0, 37fr) minmax(0, 63fr); }
#lm .lm-cover { position: relative; display: block; padding: 0; border: 0; border-right: 1px solid var(--line-strong); background: var(--black); overflow: hidden; cursor: pointer; min-height: 100%; }
#lm .lm-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
#lm .lm-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(22, 20, 23, .55)); pointer-events: none; }
#lm .lm-cover:hover img { transform: scale(1.04); }
#lm .lm-playbtn { position: absolute; left: 50%; top: 50%; z-index: 1; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(250, 248, 244, .94); color: var(--red); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: transform .3s var(--ease); }
#lm .lm-playbtn svg { width: 22px; height: 22px; margin-left: 3px; }
#lm .lm-cover:hover .lm-playbtn { transform: scale(1.08); }
#lm .lm-site { position: absolute; left: 12px; bottom: 10px; z-index: 1; font-style: normal; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: #fff; opacity: .9; }
#lm.k-screen.playing .lm-cover img { filter: brightness(.55) saturate(.8); }
#lm.k-screen.playing .lm-playbtn { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--red); box-shadow: 0 0 0 6px rgba(226, 65, 46, .3); animation: lm-pulse 1.6s ease-in-out infinite; }
#lm .lm-cover.blank { cursor: default; background: linear-gradient(135deg, var(--k), color-mix(in srgb, var(--k) 40%, var(--night))); }
#lm .lm-blank { position: absolute; left: 16px; top: 14px; color: #fff; font-family: var(--f-cn-display); font-size: 22px; }
#lm .lm-live { display: inline-flex; align-items: flex-end; gap: 2px; color: var(--red); font-weight: 600; }
#lm .lm-live i { width: 3px; height: 12px; background: var(--red); border-radius: 1px; transform-origin: bottom; animation: lm-eq .9s ease-in-out infinite; }
#lm .lm-live i:nth-child(2) { animation-delay: -.3s; }
#lm .lm-live i:nth-child(3) { animation-delay: -.6s; margin-right: 6px; }
#lm .lm-new { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: #fff; background: var(--red); border-radius: 3px; padding: 1px 6px; }
#lm .lm-reel { display: flex; gap: 8px; margin-top: 14px; }
#lm .lm-reel button { position: relative; width: 92px; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--black); opacity: .62; transition: opacity .2s, box-shadow .2s; }
#lm .lm-reel button:hover { opacity: .9; }
#lm .lm-reel button.on { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }
#lm .lm-reel img { width: 100%; height: 100%; object-fit: cover; }
#lm .lm-reel span { position: absolute; left: 4px; bottom: 2px; font-family: var(--f-mono); font-size: 10px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
/* 正在大屏上放：收成贴底的一条细条，不挡大屏（11-02 BF） */
#lm.k-screen.compact { bottom: 14px; width: min(760px, calc(100vw - 32px)); grid-template-columns: minmax(0, 1fr); box-shadow: 5px 5px 0 var(--red), 0 10px 30px rgba(22, 20, 23, .18); }
#lm .lm-bar { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 18px; }
#lm .lm-bar .lm-kick { flex: none; }
#lm .lm-bar .lm-live { flex: none; margin-right: -2px; }
#lm .lm-bar .lm-live i:nth-child(3) { margin-right: 0; }
#lm .lm-bar .lm-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-cn-display); font-size: 17px; font-weight: 600; color: var(--black); }
#lm .lm-bar .lm-idx, #lm .lm-bar .lm-step { flex: none; }
#lm .lm-bar .btn { flex: none; min-height: 36px; font-size: 14px; padding: 6px 14px; }
#lm .lm-bar .lm-x { margin-left: 0; flex: none; }
@media (max-width: 640px) {
  #lm .lm-bar { gap: 8px; padding: 6px 6px 6px 12px; }
  #lm .lm-bar .lm-kick, #lm .lm-bar .lm-idx { display: none; }
  #lm .lm-bar .btn { padding: 6px 10px; }
}
@keyframes lm-eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes lm-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(226, 65, 46, .35); } 50% { box-shadow: 0 0 0 10px rgba(226, 65, 46, 0); } }

/* 月洞门：夜海预告帖 */
#lm.k-door { width: min(620px, calc(100vw - 32px)); grid-template-columns: 168px minmax(0, 1fr); background: var(--night); color: #E8F4F6; border-color: #0E1424; }
#lm.k-door h2 { color: #fff; }
#lm.k-door .lm-kick { color: rgba(232, 244, 246, .8); }
#lm.k-door .lm-idx { color: var(--star); opacity: .7; }
#lm.k-door .lm-body { color: rgba(232, 244, 246, .78); }
#lm.k-door .lm-x { color: rgba(232, 244, 246, .8); }
#lm.k-door .lm-x:hover { background: rgba(189, 239, 245, .1); color: #fff; }
#lm.k-door .btn.ghost { color: #E8F4F6; border-color: rgba(232, 244, 246, .5); }
#lm .lm-gatering { position: relative; border-right: 1px solid var(--night-line); overflow: hidden;
  background: radial-gradient(circle at 50% 52%, rgba(201, 64, 142, .28), transparent 62%); }
#lm .lm-gatering::before { content: ""; position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%;
  border: 9px solid #F4EEE6; box-shadow: 0 0 0 1px rgba(255, 203, 92, .6), inset 0 0 0 2px #C9408E, 0 0 34px rgba(201, 64, 142, .55), inset 0 0 30px rgba(201, 64, 142, .7);
  background: radial-gradient(circle at 50% 60%, #6B3AA0, #1B1F44 70%); }
#lm .lm-gatering i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--star); box-shadow: 0 0 6px var(--star); animation: lm-twinkle 2.4s ease-in-out infinite; }
#lm .lm-gatering i:nth-child(1) { left: 46%; top: 44%; }
#lm .lm-gatering i:nth-child(2) { left: 56%; top: 54%; animation-delay: -.8s; }
#lm .lm-gatering i:nth-child(3) { left: 50%; top: 61%; animation-delay: -1.6s; }
@keyframes lm-twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

/* 水环门 / 工作室：门牌 */
#lm.k-gate { width: min(600px, calc(100vw - 32px)); }
#lm .lm-faces { display: flex; align-items: center; margin-top: 16px; }
#lm .lm-faces span { position: relative; width: 40px; height: 40px; margin-right: -8px; border-radius: 50%; border: 2px solid var(--bg); background: var(--surface-2); }
#lm .lm-faces img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
#lm .lm-faces span i { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--bg); background: #9BCB6B; }
#lm .lm-faces span.s-break i { background: var(--gold); }
#lm .lm-faces span.s-away i, #lm .lm-faces span.s-offwork i { background: #C9C3CC; }
#lm .lm-faces span.s-away img, #lm .lm-faces span.s-offwork img { filter: grayscale(.8); opacity: .7; }
#lm .lm-faces em { margin-left: 20px; font-style: normal; font-size: 13px; color: var(--muted); }
#lm .lm-wait { display: inline-block; width: 12px; height: 12px; margin-left: 8px; vertical-align: -1px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--red); animation: lm-spin 1s linear infinite; }
@keyframes lm-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  #lm { bottom: 8px; width: calc(100vw - 16px) !important; box-shadow: 5px 5px 0 var(--red), var(--shadow); }
  #lm .lm-main { padding: 14px 14px 16px 16px; }
  #lm h2 { font-size: 26px; margin-top: 6px; }
  :lang(en) #lm h2 { font-size: 28px; }
  #lm .lm-acts { margin-top: 12px; }
  #lm.k-stage { grid-template-columns: 112px minmax(0, 1fr); }
  #lm .lm-art { min-height: 0; }
  #lm .lm-art img { left: -8px; width: calc(100% + 16px); height: calc(100% + 56px); }
  #lm.k-stage .lm-idx { display: none; }
  #lm .lm-moon { width: 100px; height: 100px; top: auto; bottom: 84px; }   /* 窄屏立绘按宽缩得矮：月亮从底部量，落在头后 */
  #lm .lm-now { font-size: 14px; padding: 8px 10px; }
  #lm.k-screen { grid-template-columns: minmax(0, 1fr); }
  #lm .lm-cover { aspect-ratio: 16 / 9; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line-strong); }
  #lm .lm-reel button { width: 72px; }
  #lm.k-door { grid-template-columns: 96px minmax(0, 1fr); }
  #lm .lm-gatering::before { width: 72px; height: 72px; margin: -36px 0 0 -36px; border-width: 6px; }
}
@media (prefers-reduced-motion: reduce) { #lm .lm-live i, #lm .lm-gatering i, #lm.k-screen.playing .lm-playbtn, #lm .lm-wait { animation: none; } }
/* 荷叶上的作品详情（11-02 BF，work-banner.js）：一条像游戏商店 banner 的横卡，固定平铺在页面下方（第一版浮在荷叶上、跟着图标走，太占视野）。
   从左到右：宣传图（状态标签）、图标 + 名字 + 一句话、三句介绍、按钮；右上角关闭。打开时从荷叶上的图标飞过来长成整张。
   月白面料，红色硬投影（作品封面可以用，网页层设计 2）；窄屏改成上下排，信息不丢 */
#wb { position: fixed; left: 16px; right: 16px; bottom: 20px; z-index: 14; display: flex; justify-content: center; visibility: hidden; pointer-events: none; }
#wb.show { visibility: visible; }
#wb .wb-card { position: relative; width: 100%; max-width: 1160px; display: grid; grid-template-columns: minmax(200px, 300px) minmax(220px, 1.15fr) minmax(220px, 1fr) auto;
  align-items: center; gap: 22px; padding: 14px 58px 14px 14px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 6px 6px 0 var(--red), var(--shadow); transform-origin: 0 0; transition: transform .52s var(--ease); }
#wb.open .wb-card { pointer-events: auto; }
#wb .wb-card > :not(.wb-ghost) { opacity: 0; transition: opacity .28s ease; }
#wb.open .wb-card > :not(.wb-ghost) { opacity: 1; transition-delay: .2s; }
#wb.open .wb-card.swap > :not(.wb-ghost) { opacity: 0; transition-delay: 0s; transition-duration: .16s; }
#wb .wb-ghost { position: absolute; inset: 0; border-radius: 12px; background: var(--surface-2) center / cover; pointer-events: none; transition: opacity .32s ease .08s; }
#wb.open .wb-ghost { opacity: 0; }
#wb .wb-cover { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-2) center / cover; }
#wb .wb-badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  background: rgba(22, 20, 23, .72); color: #fff; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; backdrop-filter: blur(6px); }
#wb .wb-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7ee0a1; }
#wb .wb-badge.s-review::before, #wb .wb-badge.s-dev::before { background: var(--gold); animation: wb-pulse 1.6s ease-in-out infinite; }
@keyframes wb-pulse { 50% { opacity: .35; } }
#wb .wb-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
#wb .wb-icon { width: 76px; height: 76px; flex: none; border-radius: 18px; object-fit: cover; box-shadow: 0 6px 18px rgba(22, 20, 23, .2); background: var(--surface-2); }
#wb .wb-head { min-width: 0; }
#wb .wb-kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--red); }
#wb h3 { margin-top: 2px; font-family: var(--f-cn-display); font-size: 26px; line-height: 1.2; color: var(--black); }
#wb .wb-tag { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--body); }
#wb .wb-lines { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 1px solid var(--line); }
#wb .wb-lines li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 5px 0; font-size: 14px; line-height: 1.45; color: var(--ink); }
#wb .wb-lines li + li { border-top: 1px solid var(--line); }
#wb .wb-lines b { font-weight: 500; color: var(--muted); }
#wb .wb-acts { display: flex; flex-direction: column; gap: 8px; }
#wb .wb-acts .btn { min-height: 42px; font-size: 15px; white-space: nowrap; }
#wb .wb-x { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  background: var(--bg); color: var(--black); cursor: pointer; }
#wb .wb-x svg { width: 16px; height: 16px; }
#wb .wb-x:hover { background: #fff; border-color: var(--line-strong); }
@media (max-width: 1000px) {
  #wb .wb-card { grid-template-columns: 220px 1fr; gap: 14px 18px; }
  #wb .wb-cover { grid-row: span 2; }
  #wb .wb-lines { grid-column: 2; padding-left: 0; border-left: 0; }
  #wb .wb-acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  #wb { left: 8px; right: 8px; bottom: 8px; }
  #wb .wb-card { grid-template-columns: 1fr; gap: 12px; padding: 12px; max-height: 72vh; overflow-y: auto; }
  #wb .wb-cover { grid-row: auto; aspect-ratio: 16 / 7; }
  #wb .wb-lines { grid-column: auto; }
  #wb .wb-acts { grid-column: auto; }
  #wb h3 { font-size: 22px; }
  #wb .wb-icon { width: 60px; height: 60px; border-radius: 14px; }
}


/* ---------- 手机（窄于 760px） ---------- */
/* 场景里点人开的名片：靠右停，人留在左半边（镜头那边配合，InteriorClicks 给人的机位偏左） */
@media (min-width: 761px) {
  #card.namecard.docked { left: auto; right: 24px; width: min(600px, calc(50vw - 32px)); grid-template-columns: 210px minmax(0, 1fr); transform: translate(0, calc(-50% + 24px)); }
  #card.namecard.docked.show { transform: translate(0, -50%); }
  .namecard.docked .art { min-height: 380px; }
  .namecard.docked h2 { font-size: 48px; }
  :lang(zh-CN) .namecard.docked h2 { font-size: 36px; }
}

@media (max-width: 760px) {
  .nav { padding: 12px 16px; }
  .brand span, .nav-links, .nav-tools .tool:not(.menu-btn) { display: none; }
  .nav-tools { margin-left: auto; border: 0; padding: 0; }
  .menu-btn { display: inline-flex; }
  html.inside .nav-tools .tool.people-btn { display: inline-flex; }   /* 手机进门后：「人」按钮（FT-109） */
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 24px 16px 64px; min-height: 0; }
  .hero h1, :lang(zh-CN) .hero h1 { font-size: 40px; }
  .hero .sub { font-size: 16px; }
  .hero .window { aspect-ratio: 1; border-radius: 50% 50% var(--r) var(--r) / 40% 40% var(--r) var(--r); }
  .hero .facts { gap: 24px; }
  .sec { padding: 64px 16px; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .sec-head .num { font-size: 48px; }
  .sec-head h2 { font-size: 36px; }
  .sec-head p { font-size: 16px; }
  .work, .contact { grid-template-columns: 1fr; gap: 32px; }
  .work h3 { font-size: 30px; }
  .tagline { padding: 80px 16px; }
  .tagline p, :lang(en) .tagline p { font-size: 30px; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .person .pic { height: 200px; }
  .person .pic img { height: 188px; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nums b { font-size: 36px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps.tide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kanban, .dir-steps { grid-template-columns: 1fr; }
  .dir-media { aspect-ratio: 4 / 3; }
  .crow { grid-template-columns: 1fr auto; }
  .crow span { grid-column: 1 / -1; }
  .recruit { grid-template-columns: 1fr; }
  .recruit .desk { display: none; }
  .foot { padding: 24px 16px 48px; }
  #gate { overflow-y: auto; }
  #gate .corner { left: 16px; top: 16px; }
  #gate .vtitle { left: 20px; top: 96px; font-size: 30px; }
  #gate .vtitle small { display: none; }
  #gate .reflect { opacity: .12; }
  #gate .copy { position: relative; left: auto; top: auto; transform: none; width: auto; margin: calc(var(--hz) + var(--gd) * .3) 16px 48px; }
  #gate .copy h2, :lang(en) #gate .copy h2 { font-size: 32px; }
  #gate .bottom { display: none; }
  .choice { grid-template-columns: 44px minmax(0, 1fr) 32px; gap: 12px; padding: 12px; }
  .choice .s { width: 44px; height: 44px; font-size: 15px; line-height: 17px; }
  .choice b, :lang(en) .choice b { font-size: 20px; }
  .choice .go { width: 32px; height: 32px; }
  html[data-mode="scene"] .nav { padding-left: 16px; padding-right: 8px; }
  #panel { top: auto; height: 88svh; width: 100vw; padding-top: 0; border-left: 0; border-top: 1px solid var(--line); transform: translateY(48px); }
  #panel::before { content: ""; display: block; width: 40px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: rgba(22, 20, 23, .25); }
  #panel .ph { padding: 16px; } #panel .pbody { padding: 8px 16px 24px; } #panel .pfoot { padding: 12px 16px; }
  #panel .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #card { left: 0; right: 0; top: auto; bottom: 0; width: 100vw !important; max-height: 88svh; transform: translateY(48px); }
  #card.show { transform: none; }
  #card.namecard { grid-template-columns: 1fr; }
  .namecard .art { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .namecard .art img { height: 96%; }
  .namecard h2, :lang(zh-CN) .namecard h2 { font-size: 36px; }
  #card.board { padding: 16px; }
  #card.tide { padding: 16px; }
  .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel li:nth-child(3) { border-left: 1.5px solid var(--black); border-top: 0; }
  .funnel li:nth-child(4) { border-top: 0; }
  .funnel li:nth-child(3)::before { content: none; }
  .trows li { grid-template-columns: auto minmax(0, 1fr); }
  .trows .res { grid-column: 2; text-align: left; }
  .bhead .hint { display: none; }
  .wb { padding: 16px 0; border-width: 6px; }
  .wb .cols { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; }
  .bcol { flex: 0 0 100%; scroll-snap-align: start; padding: 0 16px; }
  .wb .dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
  .wb .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(22, 20, 23, .2); }
  .wb .dots i.on { background: var(--red); }
  .bdetail { grid-template-columns: 48px minmax(0, 1fr); }
  .bdetail img { width: 48px; height: 48px; }
  .bdetail .acts { grid-column: 1 / -1; }
  #card.hire { padding: 8px; }
  .nav #ownit-top #ownit-sound span { display: none; }
}

/* 看出场（ui/intro.js，K7）：全屏黑底放视频，开头结尾叠化；左下角名字大字、职位（画风不写；朱印 11-02 BF 去掉了）；右上角跳过 */
#intro { position: fixed; inset: 0; z-index: 65; background: #000; opacity: 0; transition: opacity .5s var(--ease); }
#intro.show { opacity: 1; }
#intro video { width: 100%; height: 100%; object-fit: cover; background: #000; }   /* 铺满：首尾的空台要和场景的画面对得上（竖屏放竖版） */
#intro .intro-name { position: absolute; left: clamp(16px, 5vw, 64px); bottom: clamp(24px, 7vh, 72px); display: flex; align-items: flex-end; gap: 14px; color: #fff; pointer-events: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
#intro .intro-name b { font-size: clamp(44px, 9vw, 112px); line-height: .9; color: #fff; }
#intro .intro-name span { padding-bottom: 10px; font-size: 15px; letter-spacing: .12em; border-bottom: 2px solid var(--c, var(--red)); }
#intro .intro-skip { position: absolute; right: 16px; top: 16px; background: rgba(250, 248, 244, .92); }
#intro .intro-note { position: absolute; right: 16px; bottom: 16px; max-width: min(360px, calc(100vw - 32px)); margin: 0; font-size: 12px; color: rgba(255, 255, 255, .7); text-align: right; }
@media (prefers-reduced-motion: reduce) { #intro { transition: none; } }

/* 对话框（设计稿 10.2；对话 D4）：珠光卡，画面下方居中；手机上是从下往上的半屏卡，人留在上半部（网页层设计 4.5） */
.chatbox { position: fixed; z-index: 26; left: 50%; bottom: 24px; width: min(640px, calc(100vw - 32px)); max-height: min(560px, calc(100svh - 120px));
  display: flex; flex-direction: column; color: var(--ink);
  background: linear-gradient(135deg, #FFFFFF 0%, #F6F2FA 42%, #EDF6F7 78%, #FBF7EE 100%);
  border: 1px solid var(--line-strong); box-shadow: 8px 8px 0 var(--c, var(--red)), var(--shadow);
  transform: translate(-50%, 24px); opacity: 0; transition: transform .45s var(--ease), opacity .35s var(--ease); overscroll-behavior: contain; }
.chatbox.show { transform: translate(-50%, 0); opacity: 1; }
.chatbox:not(.show) { pointer-events: none; }
.chatbox::before { content: ""; position: absolute; inset: 0; pointer-events: none;   /* 珠光：一层很淡的斜向流光 */
  background: linear-gradient(115deg, transparent 30%, rgba(189, 239, 245, .28) 45%, rgba(255, 203, 92, .14) 55%, transparent 70%); mix-blend-mode: soft-light; }
.ch-h { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.ch-face { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid var(--c, var(--ink)); background: var(--surface); }
.ch-face img { width: 100%; height: 100%; object-fit: cover; }
.ch-who { min-width: 0; margin-right: auto; }
.ch-who .kicker { margin: 0; }
.ch-who h2 { font-size: 24px; line-height: 1.1; outline: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:lang(zh-CN) .ch-who h2 { font-family: var(--f-cn-display); font-size: 22px; }
.chip.ai { flex: none; background: var(--black); border-color: var(--black); color: #fff; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; }
.ch-log { position: relative; flex: 1 1 auto; min-height: 96px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.ch-msg { display: flex; }
.ch-msg p { margin: 0; max-width: 82%; padding: 10px 14px; font-size: 16px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.ch-msg.them p { background: rgba(255, 255, 255, .86); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--ink)); }
.ch-msg.me { justify-content: flex-end; }
.ch-msg.me p { background: var(--black); color: #fff; }
.ch-msg.hotline p { background: transparent; border: 1px dashed var(--line-strong); color: var(--body); font-size: 14px; }
.ch-msg.pending p:empty, .ch-msg.pending.thinking p:empty { display: none; }
.ch-msg .dots { display: none; gap: 5px; align-items: center; padding: 14px 16px; background: rgba(255, 255, 255, .86); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--ink)); }
.ch-msg.pending .dots { display: inline-flex; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: chdot 1.1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
.ch-msg.thinking .dots i { background: var(--c, var(--ink)); }
@keyframes chdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ch-chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.ch-chips:not(:empty) { padding-bottom: 12px; }
.ch-chips .chip { cursor: pointer; min-height: 36px; padding: 0 14px; font-size: 14px; background: rgba(255, 255, 255, .8); }
.ch-chips .chip:hover { border-color: var(--line-strong); }
.ch-chips .chip.go { position: relative; overflow: hidden; background: var(--black); border-color: var(--black); color: #fff; }
.chip.go .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--red); transform-origin: left; animation: chbar linear forwards; }
@keyframes chbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.ch-hint { font-size: 14px; color: var(--muted); }
.ch-input { position: relative; display: flex; align-items: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.ch-input textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--surface);
  font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); }
.ch-input textarea:focus { outline: 2px solid var(--c, var(--ink)); outline-offset: 1px; }
.ch-count { position: absolute; right: 108px; bottom: 18px; font-size: 12px; color: var(--muted); pointer-events: none; }
.ch-send { flex: none; }
.chatbox.busy .ch-send { opacity: .45; pointer-events: none; }
.ch-note { position: relative; margin: 0; padding: 0 16px 12px; font-size: 12px; line-height: 1.5; color: var(--muted); }
@media (max-width: 760px) {
  .chatbox { left: 0; right: 0; bottom: 0; width: 100%; max-height: 58svh; transform: translateY(24px); box-shadow: 0 -12px 40px rgba(22, 20, 23, .18);
    border-left: 0; border-right: 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .chatbox.show { transform: translateY(0); }
  .ch-h::before { content: ""; position: absolute; left: 50%; top: 5px; width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); opacity: .25; transform: translateX(-50%); }
  .ch-msg p { max-width: 88%; }
  .ch-count { right: 96px; }
}
@media (prefers-reduced-motion: reduce) { .chatbox { transition: none; } .dots i, .chip.go .bar { animation: none; } }
.ch-forget { padding: 0; border: 0; background: none; font: inherit; color: var(--body); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ch-forget:hover { color: var(--ink); }
/* 访客的名字（FT-20261103-BF-231）：输入框上面一行，第一次聊完问一次，底下「叫我 ××」再打开 */
.ch-name { padding: 0 16px 12px; }
.ch-name-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ch-name-q { flex: 1 0 100%; font-size: 14px; color: var(--body); }
.ch-name-f input { flex: 1 1 140px; min-width: 0; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--surface);
  font: inherit; font-size: 16px; color: var(--ink); }
.ch-name-f input:focus { outline: 2px solid var(--c, var(--ink)); outline-offset: 1px; }
.ch-name-f .chip { cursor: pointer; min-height: 36px; padding: 0 14px; font-size: 14px; background: rgba(255, 255, 255, .8); }
.ch-name-f .chip.ok { background: var(--black); border-color: var(--black); color: #fff; }
.ch-name.saving .chip.ok { opacity: .45; pointer-events: none; }
.ch-name-msg { margin: 6px 0 0; font-size: 13px; color: var(--red); }
.ch-name-msg:empty { display: none; }

/* 场景里说话的人头顶的气泡（对话 D6）：Unity 报头顶的位置，网页在那里写回答的第一句 */
.chat-bubble { position: fixed; left: 0; top: 0; z-index: 22; max-width: 260px; padding: 8px 12px; pointer-events: none;
  background: linear-gradient(135deg, #FFFFFF, #F4F1FA 60%, #EEF7F8); border: 1px solid var(--line-strong); box-shadow: 4px 4px 0 var(--black);
  font-size: 14px; line-height: 1.5; color: var(--ink); opacity: 0; transition: opacity .25s var(--ease); }
.chat-bubble.show { opacity: 1; }
.chat-bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; background: #F4F1FA;
  border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); transform: translateX(-50%) rotate(45deg); }
/* 室内编排的气泡（scene/ambient-bubbles.js）：比对话的小一号，几个人同时说也不挡画面；没台词时三个点轮流跳 */
.chat-bubble.ambient { z-index: 21; max-width: 200px; padding: 5px 10px; font-size: 13px; box-shadow: 3px 3px 0 var(--black); }
.chat-bubble.dots { display: flex; gap: 5px; padding: 9px 12px; }
.chat-bubble.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: .35; animation: dot 1.2s infinite; }
.chat-bubble.dots i:nth-child(2) { animation-delay: .2s; } .chat-bubble.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 30% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .chat-bubble { transition: none; } .chat-bubble.dots i { animation: none; } }

/* 个人展示页（设计稿 4.6，S9）：电脑上从右边滑出的一列（约 480 像素，左边还看得到场景），手机上从下往上的整页 */
#card.page { left: auto; right: 0; top: 0; bottom: 0; width: min(480px, 100vw); max-height: none; height: 100svh; border-width: 0 0 0 1px; transform: translateX(48px); }
#card.page.show { transform: none; }
.pg { --c: var(--ink); padding: 16px 24px 48px; display: flex; flex-direction: column; gap: 12px; }
.pg-top { display: flex; align-items: center; gap: 8px; }
.pg-top .mono { margin-right: auto; }
.pg-head { display: flex; gap: 16px; align-items: center; }
.pg-head .face { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--c); flex: none; }
.pg-head h2 { font-size: 40px; line-height: 1.05; }
:lang(zh-CN) .pg-head h2 { font-family: var(--f-cn-display); font-size: 32px; }
.pg-social { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-social a { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 13px; }
.pg-social a:hover, .pg-body a:hover { color: var(--c); border-color: var(--c); }
.pg-social a svg { width: 12px; height: 12px; }
.pg .acts { display: flex; flex-wrap: wrap; gap: 12px; }
.pg-body { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--body); line-height: 1.75; }
.pg-body h3 { font-size: 20px; color: var(--ink); margin-top: 12px; }
.pg-body p { margin: 0; }
.pg-body p a { color: var(--c); }
.pg-body figure { margin: 0; }
.pg-body figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.pg-img { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pg-img img { display: block; width: 100%; height: auto; border-radius: 8px; }
.pg-cover .pg-img img { aspect-ratio: 16 / 9; object-fit: cover; }
.pg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pg-grid.n2, .pg-grid.n4 { grid-template-columns: repeat(2, 1fr); }
.pg-grid .pg-img img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.pg-sticker img { width: auto; max-width: 160px; height: auto; }
.pg-link { display: flex; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.pg-link img { width: 112px; height: 63px; object-fit: cover; border-radius: 4px; flex: none; }
.pg-link span { display: flex; flex-direction: column; min-width: 0; }
.pg-link b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.pg-link small { color: var(--muted); }
.pg-note { color: var(--muted); }
#pg-viewer { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: rgba(12, 12, 14, .9); }
#pg-viewer.show { display: flex; }
#pg-viewer img { max-width: calc(100vw - 120px); max-height: calc(100svh - 96px); border-radius: 6px; }
#pg-viewer .nav { position: absolute; top: 50%; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; cursor: pointer; transform: translateY(-50%); }
#pg-viewer .prev { left: 16px; } #pg-viewer .next { right: 16px; }
#pg-viewer .close { position: absolute; top: 16px; right: 16px; color: #fff; background: rgba(255, 255, 255, .14); }
#pg-viewer .count { position: absolute; bottom: 16px; color: rgba(255, 255, 255, .8); }
@media (max-width: 640px) {
  #card.page { top: auto; height: 92svh; border-width: 1px 0 0; transform: translateY(48px); }
  .pg { padding: 12px 16px 40px; }
  #pg-viewer img { max-width: 100vw; }
}

/* ---------- 屋里的人（FT-20261031-BF-109）：手机上导航的「人」按钮，电脑上不出 ---------- */
.people-btn { display: none; border: 1px solid var(--line-strong); }
#people { position: fixed; z-index: 60; left: 12px; right: 12px; top: 64px; max-height: 60vh; overflow: auto; padding: 12px 12px 14px; background: rgba(250, 248, 244, .97);
  border-radius: 18px; box-shadow: 0 12px 40px rgba(22, 20, 23, .18); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .25s var(--ease), opacity .2s var(--ease); }
#people.open { transform: none; opacity: 1; pointer-events: auto; }
#people .pp-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px; font-size: 15px; }
#people .pp-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#people .pp { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-height: 56px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; color: var(--ink); }
#people .pp img { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--paper, #f3efe7); }
#people .pp b { font-size: 15px; }
#people .pp span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { #people { transition: none; } }

/* ---------- 演完选下一条（FT-20261031-BF-113）：底部正中一张小卡 ---------- */
#demo-next { position: fixed; z-index: 58; left: 50%; bottom: 24px; max-width: calc(100vw - 32px); padding: 14px 16px; background: rgba(250, 248, 244, .97); border-radius: 18px;
  box-shadow: 0 12px 40px rgba(22, 20, 23, .18); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .25s var(--ease); }
#demo-next.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
#demo-next p { margin: 0 0 10px; font-size: 15px; }
#demo-next .acts { display: flex; flex-wrap: wrap; gap: 8px; }
@media (prefers-reduced-motion: reduce) { #demo-next { transition: none; } }

/* 快捷入口（11-02 BF，scene/quick.js）：场景版右边一个小圆钮（罗盘），点开是「快速前往」一列——四个路标、直接进工作室。
   平时只露圆钮，不盖在画面上（方便截图）；落到码头以后、右边没开面板和卡时才露出来 */
#quick { position: fixed; z-index: 13; right: 14px; top: 50%; transform: translate(12px, -50%); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease);
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
html[data-mode="scene"].quick-on #quick { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
html[data-mode="scene"].quick-on.wb-open #quick, html[data-mode="scene"].quick-on.chatting #quick { opacity: 0; pointer-events: none; }
/* 创角的名片、我的角色、起名条、失败提示开着时也收起（名片和我的角色都在右边） */
html[data-mode="scene"].quick-on:has(#oc-namecard:not([hidden]), #oc-mine:not([hidden]), #oc-slip:not([hidden]), #oc-fail:not([hidden])) #quick { opacity: 0; pointer-events: none; }
#quick .q-toggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(250, 248, 244, .86); color: var(--ink); box-shadow: 0 6px 18px rgba(22, 20, 23, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13px; transition: background .2s, box-shadow .2s; }
#quick .q-toggle svg { width: 18px; height: 18px; flex: none; color: var(--red); transition: transform .4s var(--ease); }
#quick .q-toggle span { display: none; white-space: nowrap; }
#quick .q-toggle:hover { background: var(--bg); box-shadow: 0 8px 22px rgba(22, 20, 23, .16); }
#quick .q-toggle:hover span, #quick.open .q-toggle span { display: inline; }
#quick.open .q-toggle svg { transform: rotate(45deg); }
#quick .q-list { display: none; flex-direction: column; gap: 2px; padding: 6px; background: rgba(250, 248, 244, .94); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(22, 20, 23, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#quick.open .q-list { display: flex; animation: q-in .25s var(--ease); }
@keyframes q-in { from { opacity: 0; transform: translateY(-4px); } }
#quick .q-go { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 14px 0 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font-size: 14px; text-align: left; white-space: nowrap; transition: background .2s; }
#quick .q-go:hover { background: rgba(226, 65, 46, .08); }
#quick .q-go:active { transform: scale(.98); }
#quick .q-go i { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--dot, var(--ink)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, var(--ink)) 18%, transparent); }
#quick .q-stage { --dot: #E58A3A; }   /* 像素区 */
#quick .q-screen { --dot: #3AA6A0; }  /* 方块区 */
#quick .q-works { --dot: #6E9C7A; }   /* 水墨区 */
#quick .q-door { --dot: #C9408E; }    /* 赛博区 */
#quick .q-office { --dot: var(--red); margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 4px; font-weight: 600; }
html.inside #quick .q-office { display: none; }
/* 瞬移时盖一层淡雾 */
#quick-veil { position: fixed; inset: 0; z-index: 12; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 55%, rgba(250, 248, 244, .96), rgba(236, 242, 246, .98)); transition: opacity .32s ease; }
#quick-veil.on { opacity: 1; pointer-events: auto; }
@media (max-width: 640px) {
  #quick { top: calc(60px + env(safe-area-inset-top)); right: 8px; transform: translate(0, -8px); }   /* 导航下面右上角：底部是创角卡和路标卡 */
  html[data-mode="scene"].quick-on #quick { transform: none; }
}
}
@media (prefers-reduced-motion: reduce) { #quick, #quick-veil { transition: none; } }
