/* 云梦游戏工作室 · 首页「工作室的一天」
 * 整页是一片天：固定在底的 canvas（WebGPU × three.js）画天和云，HTML 正文滚在上面。
 * 白天的章节，字直接压在天上（深海军蓝）；黄昏与黎明天色跨度大，正文放进一整张纸；
 * 深夜的字是暖米白，直接压在夜空上。
 * 只给首页用——其他页面仍用 assets/site.css。
 */
:root {
  --navy: #062A54;
  --ink-2: #33506F;
  --blue: #0B57B8;
  --sun: #FFD23F;
  --paper: rgba(255, 255, 255, .94);
  --line: rgba(6, 42, 84, .12);
  --cream: #F3F6FF;
  --cream-2: #C6D1F0;
  --ember: #FFD98A;
  --coal: rgba(20, 28, 74, .52);
  --coal-line: rgba(196, 210, 255, .26);
  --sky-top: rgb(81, 163, 239);
  --sky-bot: #BFE4FF;
  --r: 30px;
  --wrap: 1180px;
  --font: ui-rounded, "SF Pro Rounded", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--navy); font: 400 17px/1.75 var(--font);
  background: linear-gradient(var(--sky-top), var(--sky-bot)) fixed;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 6px var(--navy); }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
#sky.on { opacity: 1; }
nav, main, footer { position: relative; z-index: 1; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 12px; }
.nb { white-space: nowrap; }

/* 三道灵光：全站的签名 */
.rays { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: var(--sun); stroke-width: 5; stroke-linecap: round; }

/* ── 导航：一条浮在天上的白色胶囊 ── */
nav { position: sticky; top: 12px; z-index: 10; }
nav .row {
  display: flex; align-items: center; gap: 18px; padding: 8px 10px 8px 16px;
  background: rgba(255, 255, 255, .9); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(6, 42, 84, .14), inset 0 0 0 1px rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap; }
.brand small { font: 700 10px/1 var(--font); letter-spacing: .16em; color: var(--ink-2); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.navlinks { display: flex; gap: 2px; margin-left: auto; }
.navlinks a { padding: 8px 13px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; }
.navlinks a:hover { background: rgba(6, 42, 84, .08); }
.navlinks .nav-contact { display: none; }
.navtools { display: flex; align-items: center; gap: 8px; }
.navcta { background: var(--navy); color: #fff; padding: 9px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.navcta:hover { background: #0B3C76; }
.navtoggle { position: absolute; opacity: 0; pointer-events: none; }
.mbtn { display: none; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; cursor: pointer; }
.bars { display: grid; gap: 4px; }
.bars i { width: 18px; height: 2px; background: var(--navy); border-radius: 2px; }
.bgm { display: flex; align-items: center; gap: 6px; }
.bgm-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(6, 42, 84, .08); cursor: pointer; display: grid; place-items: center; }
.bgm-eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.bgm-eq i { width: 2.5px; height: 5px; background: var(--navy); border-radius: 2px; }
.bgm.is-on .bgm-eq i { animation: eq 1s ease-in-out infinite; }
.bgm.is-on .bgm-eq i:nth-child(2) { animation-delay: -.3s; }
.bgm.is-on .bgm-eq i:nth-child(3) { animation-delay: -.6s; }
.bgm.is-on .bgm-eq i:nth-child(4) { animation-delay: -.15s; }
.bgm.is-waiting .bgm-btn { box-shadow: 0 0 0 3px var(--sun); }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.bgm-name { display: none; }
.langs { position: relative; font-size: 14px; }
.langs summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 999px; font-weight: 600; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { background: rgba(6, 42, 84, .08); }
.lg-menu { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border-radius: 16px; padding: 8px; min-width: 150px; box-shadow: 0 16px 40px rgba(6, 42, 84, .22); display: grid; }
.lg-menu a, .lg-menu span { padding: 7px 12px; border-radius: 10px; text-decoration: none; }
.lg-menu a:hover { background: rgba(6, 42, 84, .08); }
.lg-menu .on { font-weight: 800; }

/* ── 时刻标签：章与章之间的那片空天 ── */
.gap { min-height: 62vh; display: grid; align-items: center; }
.gap.long { min-height: 124vh; }
.hour { display: grid; gap: 14px; justify-items: start; }
.hour-big {
  font-weight: 900; font-size: clamp(72px, 15vw, 220px); line-height: .95; letter-spacing: -.02em; color: #fff;
  text-shadow: 0 6px 40px rgba(6, 42, 84, .18); opacity: .92; margin-left: -.04em;
}
.hour-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 999px;
  background: rgba(6, 42, 84, .82); color: #fff; font-weight: 700; font-size: 16px; line-height: 1.4;
}

/* ── 通用排版 ── */
section, header.hero { padding: 0; }
h1 { font-weight: 900; font-size: clamp(44px, 6.6vw, 100px); line-height: 1.08; letter-spacing: -.025em; white-space: nowrap; }
h2 { font-weight: 900; font-size: clamp(32px, 4.6vw, 62px); line-height: 1.14; letter-spacing: -.02em; text-wrap: balance; }
h3 { font-weight: 800; font-size: 20px; line-height: 1.4; }
h4 { font-weight: 800; font-size: 18px; line-height: 1.4; }
.kick { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; letter-spacing: .06em; margin-bottom: 14px; }
.kick .no, .kick .ldot { display: none; }
#lineup .kick { display: none; }
.kick::before { content: ""; width: 20px; height: 20px; flex: none; background: url("rays.svg") center / contain no-repeat; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.8; max-width: 46em; margin-top: 18px; font-weight: 500; }
.sec-note { margin-top: 22px; font-weight: 600; }
.sec-note a, .lede a { text-decoration: underline; text-underline-offset: 3px; }
.tail-line { margin-top: 44px; font-weight: 900; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.4; max-width: 26em; text-wrap: balance; }
.mini-h { margin: 64px 0 20px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 800; font-size: 16px; line-height: 1.3; background: #fff; color: var(--navy);
  box-shadow: 0 6px 18px rgba(6, 42, 84, .14); transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(6, 42, 84, .2); }
.btn.p { background: var(--navy); color: #fff; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.card, .person, .org-item, .layer, .tl-c, .door, .qf, .heard, .pitch, .oss-i, .how-quote {
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .88)); border-radius: var(--r);
  box-shadow: inset 0 1px 0 #fff, inset 0 -14px 26px rgba(120, 175, 235, .2), 0 18px 40px rgba(20, 70, 140, .15);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
}
.card p, .org-item p, .layer p, .tl-c p, .door p, .person p, .oss-d { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }

/* ── 清晨 · 首屏 ── */
.hero { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 40px 0 70px; margin-top: -64px; }
.hero-copy { max-width: min(640px, 54%); padding-top: 64px; }
.hero .hour-pill { margin-bottom: 26px; }
.eyebrow { font-weight: 800; font-size: 16px; letter-spacing: .04em; margin-bottom: 14px; }
.hero .lede { font-size: clamp(17px, 1.45vw, 20px); max-width: 30em; }
.signals { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 34px; }
.signals span { background: rgba(255, 255, 255, .86); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; }
.hero-still { display: none; position: absolute; right: 6%; top: 50%; width: min(38vw, 460px); transform: translateY(-50%); }
html[data-sky="css"] .hero-still { display: block; }
.hero .wrap { position: relative; }

/* ── 上午 · 作品 ── */
#works .lede { max-width: 40em; }
#lineup { margin-top: 70px; }
#lineup h2 { font-size: clamp(24px, 2.8vw, 36px); }
.tlq { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; margin-top: 30px; align-items: start; }
.tlq-col { display: grid; gap: 16px; }
.tlq-h { display: flex; align-items: baseline; gap: 10px; font-weight: 900; padding-left: 4px; }
.tlq-q { font-size: 22px; letter-spacing: -.01em; }
.tlq-s { font-size: 13px; background: rgba(6, 42, 84, .82); color: #fff; padding: 2px 10px; border-radius: 999px; font-weight: 700; }
.tlq-col.now .tlq-s { background: var(--sun); color: var(--navy); }
.tl-c { overflow: hidden; transition: transform .2s ease; }
.tl-c:hover { transform: translateY(-4px) rotate(-.4deg); }
.tl-art { width: 100%; aspect-ratio: 800 / 458; object-fit: cover; }
.tl-b { padding: 16px 18px 18px; display: grid; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: rgba(6, 42, 84, .07); }
.tags .hot { background: var(--sun); }
.tl-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px !important; font-weight: 700; }
.tl-links a { color: var(--blue); text-underline-offset: 3px; }

/* ── 正午 · 棋门遁甲 ── */
.sec-head { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: end; }
.sec-head h2 { font-size: clamp(48px, 8vw, 116px); }
.sec-line { font-weight: 800; font-size: clamp(20px, 2.2vw, 28px); margin-top: 8px; }
.sec-cta { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; justify-content: flex-end; align-items: center; }
.sec-cta .btn { padding: 10px 18px; font-size: 15px; }
.qq { font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .86); padding: 6px 14px; border-radius: 999px; }
.pitch { margin-top: 34px; padding: 28px 32px; display: grid; gap: 14px; font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 16px; }
.qf { padding: 18px 12px; text-align: center; }
.qfv { font-weight: 900; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; letter-spacing: -.02em; }
.qfv .pl { font-size: .6em; vertical-align: .35em; }
.qfk { font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-top: 8px; }
.heard { margin-top: 16px; padding: 26px 32px; display: grid; gap: 10px; font-size: 16px; }
.heard-h { font-weight: 900; font-size: 20px; }
.heard-n { font-size: 13.5px; color: var(--ink-2); }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.glowfig { background: #fff; padding: 8px 8px 0; border-radius: 18px; box-shadow: 0 14px 36px rgba(6, 42, 84, .18); }
.glowfig.wide { grid-column: span 2; }
.glowfig img { border-radius: 12px; width: 100%; }
.glowfig figcaption { padding: 10px 6px 12px; font-size: 14px; font-weight: 700; }
.facts.four { grid-template-columns: repeat(4, 1fr); }
.shots.three { grid-template-columns: repeat(3, 1fr); }
.sec-note.more { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 15px; }
.sec-note.more span { background: rgba(255, 255, 255, .86); padding: 4px 14px; border-radius: 999px; }
.shots .glowfig:nth-child(odd) { transform: rotate(-.5deg); }
.shots .glowfig:nth-child(even) { transform: rotate(.4deg); }

/* ── 午后 · 团队 ── */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.person { padding: 24px; display: grid; gap: 16px; align-content: start; }
.pair { display: flex; align-items: baseline; gap: 10px; font-weight: 900; font-size: 28px; letter-spacing: -.01em; }
.pair .x { font-size: 18px; color: var(--ink-2); }
.pair .agent { color: var(--blue); }
.pc-art { display: flex; align-items: flex-end; }
.person-av { width: 132px; height: 132px; border-radius: 28px; object-fit: cover; }
.pc-agent { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; margin-left: -18px; border: 4px solid #fff; }
.person-dim { display: flex; flex-wrap: wrap; gap: 6px; }
.dim { font-size: 13px !important; font-weight: 800; padding: 3px 11px; border-radius: 999px; background: var(--sun); color: var(--navy) !important; }
.pc-hex { width: 100%; max-width: 250px; margin: 6px auto 0; display: block; }
.hx-frame { fill: rgba(6, 42, 84, .04); stroke: rgba(6, 42, 84, .25); stroke-width: 1; }
.hx-spoke { stroke: rgba(6, 42, 84, .14); stroke-width: 1; }
.hx-shape { fill: rgba(255, 210, 63, .5); stroke: var(--navy); stroke-width: 1.5; stroke-linejoin: round; }
.hx-v { fill: var(--ink-2); }
.hx-v.on { fill: var(--navy); }
.hx-t { font: 600 11px var(--font); fill: var(--ink-2); }
.hx-t.on { font-weight: 800; fill: var(--navy); }
.person-line { font-weight: 800; color: var(--navy) !important; font-size: 17px !important; line-height: 1.6 !important; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; line-height: 1.5; padding: 3px 10px; border-radius: 10px; background: rgba(6, 42, 84, .06); color: var(--ink-2); font-weight: 600; }
.chip.hot { background: rgba(6, 42, 84, .86); color: #fff; }
.creds { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.creds li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.6; color: var(--ink-2); font-weight: 600; }
.creds li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 3px; border-radius: 2px; background: var(--sun); box-shadow: 0 0 0 1px rgba(6, 42, 84, .25); }
.org-h { font-size: clamp(24px, 3vw, 40px); font-weight: 900; letter-spacing: -.02em; }
.person-now { border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px !important; }
.pn-k { display: block; font-weight: 800; color: var(--navy); }
.org { margin-top: 70px; }
.ck { font-weight: 800; font-size: 15px; letter-spacing: .06em; }
.org-intro h3 { font-size: clamp(28px, 3.6vw, 48px); font-weight: 900; letter-spacing: -.02em; margin-top: 4px; }
.org-intro p { max-width: 44em; margin-top: 12px; font-weight: 500; font-size: 18px; }
.org-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.org-item { padding: 22px 24px; display: grid; gap: 8px; align-content: start; }
.oi-n { font-weight: 900; font-size: 15px; letter-spacing: .08em; color: var(--blue); }
.org-item.flywheel { background: var(--navy); }
.org-item.flywheel h4, .org-item.flywheel .oi-n { color: var(--sun); }
.org-item.flywheel p { color: #E6EEF8; }

/* ── 黄昏 · 生意：一整张暖黑的纸 ── */
.sheet { border-radius: 36px; padding: clamp(28px, 5vw, 64px); }
.sheet.dusk { background: linear-gradient(180deg, rgba(30, 30, 92, .86), rgba(86, 44, 92, .8)); color: var(--cream); box-shadow: 0 30px 80px rgba(30, 16, 60, .3), inset 0 0 0 1px rgba(255, 210, 170, .28), inset 0 1px 0 rgba(255, 230, 200, .35); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); }
.dusk .lede { color: var(--cream); }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; counter-reset: tier; position: relative; }
.tier { padding: 22px 22px 6px 0; border-top: 2px solid rgba(255, 217, 138, .3); counter-increment: tier; display: grid; gap: 10px; align-content: start; position: relative; }
.tier + .tier { padding-left: 22px; }
.tier::before { content: "0" counter(tier); font-weight: 900; font-size: 54px; line-height: 1; color: var(--ember); letter-spacing: -.03em; }
.tier::after { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ember); }
.tier + .tier::after { left: 22px; }
.tier:first-child { border-top-color: var(--ember); }
.tier h3 { font-size: 22px; color: var(--cream); }
.tier p { color: var(--cream-2); font-size: 15.5px; }
.tier-s { justify-self: start; font-size: 13px; font-weight: 800; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--coal-line); color: var(--ember); margin-top: 4px; }
.tier:first-child .tier-s { background: var(--ember); color: #1A120C; border-color: var(--ember); }
.views-h { margin: 56px 0 18px; font-size: 22px; font-weight: 900; color: var(--cream); }
.views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.view { background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); border-radius: 18px; padding: 20px 22px; display: grid; gap: 8px; }
.view h4 { color: var(--ember); }
.view p { color: var(--cream-2); font-size: 15.5px; }
.dusk .tail-line { color: var(--cream); }
.dusk .kick::before, .night .kick::before { background-image: url("rays.svg"); }

/* ── 深夜 · 系统：字直接压在夜空上 ── */
.night { color: var(--cream); }
.night .card, .night .layer, .night .oss-i, .night .how-quote {
  background: linear-gradient(180deg, rgba(34, 46, 108, .84), rgba(16, 22, 62, .84)); box-shadow: inset 0 0 0 1px var(--coal-line), inset 0 1px 0 rgba(220, 230, 255, .3), 0 18px 44px rgba(4, 8, 30, .4); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
}
.night .card p, .night .layer p, .night .oss-d { color: var(--cream-2); }
.night .sec-note { color: var(--cream-2); }
.how-art { margin-top: 34px; padding: 0; background: none; box-shadow: 0 0 0 1px var(--coal-line), 0 30px 80px rgba(0, 0, 0, .5); border-radius: 24px; overflow: hidden; }
.how-art img { border-radius: 0; }
.how-art figcaption { background: var(--coal); color: var(--cream-2); padding: 12px 18px; font-weight: 600; }
.how-quote { margin-top: 28px; padding: 30px 34px; }
.eq-main { font-weight: 900; font-size: clamp(22px, 2.6vw, 32px); color: var(--ember); line-height: 1.4; }
.eq-sub { margin-top: 12px; color: var(--cream-2); max-width: 48em; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards3 .card { overflow: hidden; padding: 0 0 22px; }
.cards3 .card > :not(.lib-ico) { padding-inline: 22px; }
.lib-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cnum { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--ember); margin: 16px 0 4px; }
.layers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.layers.pipes { margin-top: 16px; }
.layer { padding: 22px; display: grid; gap: 8px; align-content: start; }
.ln { font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--ember); }
.lead-note { margin: -8px 0 20px; }
.lead-note.base { margin: 40px 0 0; max-width: 44em; font-size: 18px; font-weight: 600; color: var(--cream); }
.cards3 .card h3 { margin-top: 16px; }
.hero-oss { margin-top: 64px; }
.oss-h { font-weight: 900; font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 20px; }
.oss-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.oss-i { padding: 16px 18px; text-decoration: none; display: grid; gap: 4px; transition: transform .18s ease; }
.oss-i:hover { transform: translateY(-3px); }
.oss-n { font: 700 14px ui-monospace, "SF Mono", Consolas, monospace; color: var(--ember); overflow-wrap: anywhere; }

/* ── 黎明 · 加入与联系：一张亮的纸 ── */
.sheet.dawn { background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 244, 240, .88)); box-shadow: inset 0 1px 0 #fff, 0 30px 80px rgba(40, 30, 90, .22); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); }
.dawn .card, .dawn .door { background: rgba(255, 255, 255, .78); box-shadow: inset 0 1px 0 #fff, 0 10px 26px rgba(60, 50, 120, .12); }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.cards4 .card { padding: 22px; display: grid; gap: 8px; align-content: start; }
.contact-card { margin-top: 80px; padding-top: 64px; border-top: 2px solid var(--line); }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.door { padding: 24px; text-decoration: none; display: grid; gap: 6px; align-content: start; transition: transform .18s ease, background .18s ease; }
.door:hover { transform: translateY(-4px); background: #FFF6D6; }
.dk { font-weight: 800; font-size: 14px; letter-spacing: .06em; color: var(--blue); }
.dt { font-weight: 900; font-size: 24px; line-height: 1.3; }
.dgo { font-weight: 800; margin-top: 8px; }
.dawn .btn { box-shadow: inset 0 0 0 2px var(--navy); }
.closing { min-height: 78vh; display: grid; align-items: center; }
.closing p {
  justify-self: start; max-width: min(11em, 52%); background: #fff; color: var(--navy); font-weight: 900; font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1.2; letter-spacing: -.02em; padding: .5em .7em; border-radius: 1em 1em 1em .2em; box-shadow: 0 20px 60px rgba(40, 30, 90, .25);
}

footer { padding: 0 0 20px; }
footer .row { background: rgba(255, 255, 255, .93); border-radius: 20px; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
footer a { text-underline-offset: 3px; }
.rend { margin-left: auto; font: 700 12px ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .04em; padding: 2px 10px; border-radius: 999px; background: rgba(6, 42, 84, .08); color: var(--navy); }

/* ── 进场：内容轻轻浮上来（没有 JS 或要求减少动效时直接显示） ── */
.js .rise { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .rise.in { opacity: 1; transform: none; }

/* ── 窄屏 ── */
@media (max-width: 1080px) {
  .people, .org-grid, .cards3, .oss-grid { grid-template-columns: repeat(2, 1fr); }
  .layers, .cards4, .tiers { grid-template-columns: repeat(2, 1fr); }
  .tier:nth-child(3) { padding-left: 0; } .tier:nth-child(3)::after { left: 0; }
  .tier:nth-child(n+3) { margin-top: 26px; }
  .facts { grid-template-columns: repeat(3, 1fr); } .facts.four { grid-template-columns: repeat(4, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); } .shots.three { grid-template-columns: repeat(3, 1fr); }
  .sec-head { grid-template-columns: 1fr; } .sec-cta { justify-content: flex-start; }
  .navlinks { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: #fff; border-radius: 22px; padding: 10px; flex-direction: column; box-shadow: 0 16px 40px rgba(6, 42, 84, .22); }
  .navlinks a { padding: 12px 16px; font-size: 17px; }
  .navtoggle:checked ~ .navlinks { display: flex; }
  .navtoggle:focus-visible ~ .navtools .mbtn { outline: 3px solid var(--sun); box-shadow: 0 0 0 6px var(--navy); }
  .mbtn { display: flex; } nav .row { position: relative; } .navtools { margin-left: auto; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .brand small, .navcta { display: none; }
  .hero { align-items: end; padding-bottom: 44px; }
  .hero-copy { max-width: none; padding-top: 46vh; }
  .hero-still { right: 50%; top: 26%; transform: translate(50%, -50%); width: 56vw; }
  .people, .org-grid, .cards3, .oss-grid, .layers, .cards4, .tiers, .views, .doors { grid-template-columns: 1fr; }
  .tier, .tier + .tier { padding-left: 0; margin-top: 18px; } .tier + .tier::after { left: 0; }
  .facts, .facts.four { grid-template-columns: repeat(2, 1fr); }
  .shots, .shots.three { grid-template-columns: 1fr; } .glowfig.wide { grid-column: auto; }
  .shots .glowfig { transform: none !important; }
  .pitch, .heard { padding: 22px; }
  .gap { min-height: 48vh; } .gap.long { min-height: 118vh; }
  .sheet { border-radius: 26px; }
  .closing p { max-width: none; margin-top: 40vh; }
  .rend { margin-left: 0; }
}
@media (max-width: 480px) {
  /* 窄手机：语言按钮只留地球图标（读屏仍念「选择语言」），汉堡按钮才不会被挤出胶囊 */
  .brand { font-size: 15px; gap: 8px; } .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .navtools { gap: 4px; }
  .langs summary { font-size: 0; padding: 8px; gap: 0; } .lg-globe { font-size: 20px; line-height: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise { opacity: 1; transform: none; }
}

.shots-line { margin: 22px auto 0; text-align: center; font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; color: var(--navy); max-width: 30em; text-wrap: balance; }

/* ── 舞台：空盒子占位，3D 物件由 sky.js 摆到它背后那块天上 ── */
.stage { pointer-events: none; }
.stage.wide { height: clamp(240px, 34vw, 420px); margin: 30px 0 -10px; }
.stage.steps { height: clamp(150px, 20vw, 250px); margin: 0 0 6px; }
html[data-sky="css"] .stage.wide, html[data-sky="css"] .stage.steps, html:not([data-sky]) .stage.wide, html:not([data-sky]) .stage.steps { display: none; }

/* ── 六个库：夜空里六件亮着的东西，各自悬在说明上面 ── */
.cards3 { gap: 26px 16px; }
.cards3 .card { padding: 0 0 24px; overflow: visible; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.night .cards3 .card { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cards3 .card h3 { margin-top: 0; font-size: 22px; }
.lib-ico { height: 150px; display: grid; place-items: center; }
.lib-ico svg { width: 64px; height: 64px; fill: none; stroke: var(--cream); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; display: none; }
html[data-sky="css"] .lib-ico svg, html:not([data-sky]) .lib-ico svg { display: block; }
.lib-ico .hl { stroke: var(--sun); } .lib-ico .fill { fill: var(--sun); } .lib-ico .dot { fill: var(--cream); } .lib-ico .hl.dot { fill: var(--sun); }

/* 夜里字压在云上：垫一层夜色影子，云飘过也读得清 */
.night h2, .night h3, .night p, .night li { text-shadow: 0 1px 14px rgba(7, 11, 38, .85), 0 0 3px rgba(7, 11, 38, .6); }

/* ── 上午 · 作品三款：每款一块悬在天上的展台（画面一侧、说明一侧） ── */
.works { display: grid; gap: clamp(64px, 9vw, 130px); margin-top: clamp(44px, 6vw, 80px); }
.work { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 26px 44px; align-items: center; }
.work:nth-child(even) .work-media { order: 2; }
.work-main, .work-strip figure { background: #fff; border-radius: 22px; padding: 8px 8px 0; box-shadow: 0 18px 44px rgba(6, 42, 84, .22); }
.work-main video, .work-main img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 15px; display: block; background: #0B1A33; }
.work figcaption { padding: 9px 6px 11px; font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--navy); }
.work-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.work-strip figure { border-radius: 16px; padding: 5px 5px 0; box-shadow: 0 10px 26px rgba(6, 42, 84, .18); }
.work-strip video, .work-strip img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 11px; display: block; background: #0B1A33; }
.work-strip figcaption { font-size: 12.5px; padding: 7px 4px 9px; }
.work.tall .work-strip img { aspect-ratio: 540 / 1170; }
.work-trailer { margin-top: 12px; }
.work-copy {
  padding: clamp(24px, 3vw, 38px); border-radius: var(--r); display: grid; gap: 14px; align-content: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .88));
  box-shadow: inset 0 1px 0 #fff, 0 18px 44px rgba(20, 70, 140, .16);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
}
.work-tag { justify-self: start; font-size: 13px; font-weight: 800; padding: 3px 12px; border-radius: 999px; background: var(--navy); color: #fff; }
.work-copy h3 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.work-line { font-weight: 800; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; }
.work-copy > p:not([class]) { color: var(--ink-2); font-size: 16px; }
.work-facts { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.work-facts li { position: relative; padding-left: 26px; font-weight: 700; font-size: 15.5px; line-height: 1.5; }
.work-facts li::before { content: ""; position: absolute; left: 0; top: .12em; width: 18px; height: 18px; background: url("rays.svg") center / contain no-repeat; }
.work-links { display: flex; flex-wrap: wrap; gap: 8px; }
.work-links a { display: inline-flex; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; font-size: 14.5px; text-decoration: none; }
.work-links a + a { background: rgba(6, 42, 84, .08); color: var(--navy); }
.work-more { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.work-more a { color: var(--blue); text-underline-offset: 3px; }

/* ── 正午 · 故事 ── */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.post {
  display: grid; gap: 12px; align-content: start; padding: 26px 26px 24px; border-radius: var(--r); text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .88));
  box-shadow: inset 0 1px 0 #fff, 0 18px 44px rgba(20, 70, 140, .16);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  transition: transform .2s ease;
}
.post:hover { transform: translateY(-4px); }
.post-k { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.post h3 { font-size: 21px; line-height: 1.4; font-weight: 900; text-wrap: balance; }
.post p { color: var(--ink-2); font-size: 15.5px; }
.post .dgo { font-weight: 800; color: var(--blue); font-size: 15px; margin-top: 2px; }

/* ── 黄昏 · 融资：一朵云把礼物递到地面上 ── */
.fund { margin-top: clamp(40px, 6vw, 80px); display: grid; justify-items: center; }
.fund-stage { width: min(640px, 100%); height: clamp(150px, 20vw, 240px); }
html[data-sky="css"] .fund-stage, html:not([data-sky]) .fund-stage { display: none; }
.fund-copy {
  width: 100%; border-radius: 36px; padding: clamp(28px, 5vw, 56px); color: var(--cream);
  background: linear-gradient(180deg, rgba(30, 30, 92, .86), rgba(86, 44, 92, .8));
  box-shadow: 0 30px 80px rgba(30, 16, 60, .3), inset 0 0 0 1px rgba(255, 210, 170, .28), inset 0 1px 0 rgba(255, 230, 200, .35);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
}
.fund-copy h3 { font-size: clamp(30px, 4vw, 52px); font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.fund-copy > p:not([class]) { margin-top: 14px; max-width: 40em; font-size: 18px; }
.fund-pts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; counter-reset: fp; }
.fund-pts li { counter-increment: fp; display: grid; gap: 6px; align-content: start; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.fund-pts b { color: var(--ember); font-size: 18px; }
.fund-pts b::before { content: counter(fp) " · "; }
.fund-pts span { color: var(--cream-2); font-size: 15.5px; }
.fund-copy .btn.p { background: var(--ember); color: #1A120C; }

/* ── 深夜 · 智能体工程：两栏清单 ── */
.auto { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-top: 40px; align-items: start; }
.auto-col { padding: 26px 28px; border-radius: var(--r); background: linear-gradient(180deg, rgba(34, 46, 108, .86), rgba(16, 22, 62, .86)); box-shadow: inset 0 0 0 1px var(--coal-line), inset 0 1px 0 rgba(220, 230, 255, .3), 0 18px 44px rgba(4, 8, 30, .4); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.auto-col h3 { font-size: 22px; font-weight: 900; color: var(--sun); margin-bottom: 8px; }
.auto-col li { display: grid; grid-template-columns: 8.2em 1fr; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--coal-line); }
.auto-col li:first-child { border-top: 0; }
.auto-col b { color: var(--cream); font-size: 16px; }
.auto-col span { color: var(--cream-2); font-size: 15.5px; line-height: 1.65; }
.auto-col:last-child li { grid-template-columns: 1fr; }
.mini-h.lib-lead { margin-top: 84px; margin-bottom: 8px; }
.lib-lede { max-width: 40em; color: var(--cream-2); font-weight: 500; }

@media (max-width: 980px) {
  .work { grid-template-columns: 1fr; }
  .work:nth-child(even) .work-media { order: 0; }
  .posts, .fund-pts { grid-template-columns: 1fr; }
  .auto { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .auto-col li { grid-template-columns: 1fr; }
  .work-strip { gap: 8px; }
  .work-strip figcaption { font-size: 11.5px; }
}

/* 六个库的说明直接压在夜空上：字后面垫一块夜色底，云飘到背后也不抢字 */
.night .cards3 .card { position: relative; isolation: isolate; padding: 0 18px 20px; }
.night .cards3 .card::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 150px; bottom: 0; border-radius: 18px; background: rgba(12, 18, 54, .74); box-shadow: inset 0 0 0 1px var(--coal-line); }
.night .cards3 .card h3 { padding-top: 16px; }
