/* SENYU 首页：一道光，几块材料。
   画面是一张固定在底下的 WebGL 画布；竖着滚动走大的段落，光学台里横着换场景。
   文字只排在画面压暗的一侧或者纸面上，从不压在亮光上。 */

:root {
  --ink: #0a0a0b;
  --paper: #f4f2ec;
  --line: #d9d6ce;
  --jade: #5de78d;
  --sans: "SENYU Latin Mix", "SENYU Han", "PingFang SC", system-ui, sans-serif;
  --serif: "SENYU Serif", "Songti SC", serif;
  --mono: "JB Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gut: clamp(20px, 5vw, 88px);
}
@font-face { font-family: "JB Mono"; src: url("../fonts/jbmono-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-snap-type: y proximity; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h4 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 99; background: var(--ink); color: var(--paper); padding: 8px 14px; }

/* ---------- 画布 ---------- */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.gl-ready #gl { opacity: 1; }
.fallback { display: none; }

/* ---------- 导航：差值混合，在纸上是墨字，在墨里是白字 ---------- */
.hnav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 72px; padding: 0 var(--gut); display: flex; align-items: center; gap: 32px; color: #fff; mix-blend-mode: difference; }
.hnav .logo img { height: 22px; width: auto; }
/* 盖在纸上：实底（取那张纸的颜色），墨字，底边一条界线（nav.js） */
.hnav { transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
.hnav .logo .ink { display: none; }
.hnav.paper { mix-blend-mode: normal; color: #0a0a0b; background: var(--nav-bg, #f2efe7); box-shadow: 0 1px 0 rgba(10, 10, 11, .14); }
.hnav.paper .logo img { display: none; }
.hnav.paper .logo .ink { display: block; }
.hnav.paper .cta { box-shadow: inset 0 0 0 1px currentColor; }
.hnav nav { margin-left: auto; display: flex; gap: 30px; font-size: 14.5px; }
.hnav nav a { opacity: .78; transition: opacity .25s; }
.hnav nav a:hover { opacity: 1; }
.hnav .cta { height: 34px; padding: 0 15px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }

main { position: relative; z-index: 2; }

/* ---------- 通用文字 ---------- */
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; display: flex; align-items: center; gap: 14px; margin-bottom: 26px; opacity: .62; }
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3.5vw, 56px); line-height: 1.2; letter-spacing: .01em; }
.sub { margin-top: 26px; max-width: 30em; font-size: 17px; line-height: 1.9; opacity: .82; }
.meta { margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; opacity: .55; }
.hint { margin-top: 30px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; opacity: .5; }

.ctas { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; font-size: 15.5px; font-weight: 600; transition: background .3s, color .3s, box-shadow .3s, opacity .3s, transform .3s var(--ease); }
.btn:active { transform: scale(.98); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { opacity: .86; }
.btn.line { box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.line:hover { background: rgba(128,128,128,.14); }
.btn svg { width: 13px; height: 13px; }
.btn.link { height: auto; padding: 4px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .45s var(--ease); }
.btn.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- 首屏：先讲清楚我们做什么 ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px var(--gut) 90px; scroll-snap-align: start; }
.hero .txt { width: min(600px, 46vw); }
.hero .label { opacity: 1; }
.hero h1 { font-weight: 650; font-size: clamp(42px, 5.4vw, 84px); line-height: 1.1; letter-spacing: -.012em; }
.hero .sub { font-size: 18px; max-width: 26em; color: #3b3a36; opacity: 1; }
.offer { margin-top: 40px; border-top: 1px solid rgba(10,10,11,.16); max-width: 520px; }
.offer a { display: grid; grid-template-columns: 112px 1fr auto; align-items: baseline; gap: 12px; padding: 15px 2px; border-bottom: 1px solid rgba(10,10,11,.16); transition: padding .35s var(--ease), background .35s; }
.offer b { font-weight: 650; font-size: 16px; }
.offer span { font-size: 15px; color: #57554f; }
.offer i { font-style: normal; color: #6e6c66; transition: transform .35s var(--ease); }
.offer a:hover { padding-left: 10px; }
.offer a:hover i { transform: translateX(4px); }
.cue { position: absolute; left: var(--gut); bottom: 30px; display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: #6e6c66; }
.cue i { position: relative; width: 1px; height: 40px; background: rgba(10,10,11,.18); overflow: hidden; }
.cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: fall 2.4s var(--ease) infinite; }
@keyframes fall { to { top: 100%; } }

/* ---------- 光学台：一屏，光不动，横着换材料 ---------- */
.stage { position: relative; height: 100vh; height: 100svh; color: #f4f2ec; scroll-snap-align: start; }
.stage .pin { position: relative; height: 100%; overflow: hidden; }
.panel { position: absolute; left: var(--gut); top: 50%; width: min(700px, 45vw); transform: translate3d(var(--dx, 0), -50%, 0); will-change: transform, opacity; }
.panel .jade-link:hover { color: var(--jade); }
/* 标题手工断行：每行不再自动折；宽度按最长一行（12 字）算 */
.panel h2 .ln, .flow h2 .ln { display: block; white-space: nowrap; }
.nb { white-space: nowrap; }

.scenes { position: absolute; left: var(--gut); right: var(--gut); bottom: 34px; display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.scenes [data-go] { position: relative; height: 40px; padding: 0 14px 0 0; display: inline-flex; align-items: center; gap: 8px; color: rgba(244,242,236,.5); transition: color .3s; }
.scenes [data-go] em { font-style: normal; opacity: .6; }
.scenes [data-go]::after { content: ""; position: absolute; left: 0; right: 14px; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.scenes [data-go]:hover { color: rgba(244,242,236,.85); }
.scenes [data-go][aria-current] { color: #f4f2ec; }
.scenes [data-go][aria-current]::after { transform: scaleX(1); }
.scenes .arrows { margin-left: 18px; display: inline-flex; gap: 8px; }
.scenes .arrows button { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(244,242,236,.3); color: #f4f2ec; font-size: 15px; transition: box-shadow .3s, background .3s; }
.scenes .arrows button:hover { box-shadow: inset 0 0 0 1px #f4f2ec; background: rgba(244,242,236,.06); }

/* ---------- 纸上的段落：普通滚动 ---------- */
.flow { position: relative; min-height: 115vh; display: flex; align-items: center; padding: 120px var(--gut); }
.flow .txt { width: min(740px, 46vw); }
.flow .sub { color: #3b3a36; opacity: 1; }
.finale { min-height: 100vh; }

.stations { margin-top: 34px; border-top: 1px solid rgba(10,10,11,.16); }
.stations li { display: grid; grid-template-columns: 22px 64px 1fr; align-items: baseline; gap: 0 4px; padding: 13px 0; border-bottom: 1px solid rgba(10,10,11,.16); font-size: 15.5px; color: #8a8882; transition: color .5s; }
.stations li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transform: translateY(-1px); transition: background .4s, box-shadow .4s; }
.stations b { font-weight: 600; }
.stations li.on { color: #3b3a36; }
.stations li.on b { color: var(--ink); }
.stations li.on::before { background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

.decks { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 470px; }
.decks img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 0 0 1px rgba(10,10,11,.08), 0 18px 40px -18px rgba(60,40,10,.35); }
.decks img:nth-child(2) { transform: translateY(18px); }

/* ---------- 画面上的标注 ---------- */
.pins { position: fixed; inset: 0; z-index: 1; pointer-events: none; color: #fff; mix-blend-mode: difference; overflow: hidden; }
.pins span { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; white-space: nowrap; opacity: 0; transition: opacity .35s; will-change: transform; }
.pins span::before { content: ""; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.pins span.dg { font-size: 12px; letter-spacing: .06em; }
.pins span.dg::before { display: none; }
.pins span.on { opacity: .92; transition: opacity .8s var(--ease); }

/* ---------- 页脚 ---------- */
.foot { position: relative; z-index: 4; background: var(--paper); padding: clamp(72px, 9vw, 120px) var(--gut) 36px; font-size: 14px; color: #6e6c66; border-top: 1px solid var(--line); }
.foot .wrap { max-width: 1240px; margin: 0 auto; }
.foot .cols { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
.foot .flogo img { height: 24px; width: auto; }
.foot .belief { color: var(--ink); font-size: 17px; font-weight: 600; max-width: 12em; margin-top: 18px; line-height: 1.5; }
.foot h4 { color: var(--ink); font-size: 14px; margin-bottom: 14px; }
.foot li { margin-bottom: 9px; }
.foot a:hover { color: var(--ink); }
.foot .base { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- 宣传片 ---------- */
#film { width: min(1120px, 92vw); max-width: none; padding: 0; border: 0; background: #000; overflow: visible; }
#film::backdrop { background: rgba(5,5,6,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#film video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
#film .close { position: absolute; right: 0; top: -44px; height: 32px; padding: 0 2px; color: #f4f2ec; font-size: 14px; opacity: .8; }
#film .close:hover { opacity: 1; }

/* ---------- 没有 WebGL：光学台用墨底，右边放静态标志 ---------- */
.no-gl #gl, .no-gl .pins { display: none; }
.no-gl .stage { background: var(--ink); }
.no-gl .fallback { display: block; position: fixed; z-index: 1; right: 8vw; top: 50%; width: min(34vw, 420px); transform: translateY(-50%); }

/* ---------- 手机：同一条主线，字在下半屏 ---------- */
@media (max-width: 900px) {
  .hnav nav { display: none; }
  .hnav .cta { margin-left: auto; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .cols > div:first-child { grid-column: span 2; }
}
@media (max-width: 759px), (max-aspect-ratio: 4/5) {
  .hnav { height: 60px; }
  .hnav .logo img { height: 19px; }
  .hnav .cta { height: 32px; font-size: 13px; }
  .hero { align-items: flex-end; padding: 80px var(--gut) 40px; }
  .hero .txt { width: 100%; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 46px); }
  .hero .sub { margin-top: 16px; font-size: 15.5px; }
  .offer { margin-top: 24px; }
  .offer a { grid-template-columns: 82px 1fr auto; padding: 11px 0; }
  .offer b { font-size: 14.5px; }
  .offer span { font-size: 13.5px; }
  .cue { display: none; }
  .label { margin-bottom: 16px; font-size: 11px; }
  h2 { font-size: clamp(27px, 7.6vw, 40px); }
  .sub { margin-top: 16px; font-size: 15px; line-height: 1.8; }
  .hint { display: none; }
  .ctas { margin-top: 24px; }
  .btn { height: 44px; padding: 0 18px; font-size: 15px; }
  .panel h2, .flow h2 { font-size: clamp(24px, 6.9vw, 40px); }
  .panel { top: auto; bottom: 104px; width: auto; right: var(--gut); transform: translate3d(var(--dx, 0), 0, 0); }
  .scenes { bottom: 24px; gap: 0; justify-content: space-between; }
  .scenes [data-go] { padding: 0; height: 44px; flex-direction: column; justify-content: center; gap: 0; line-height: 1.3; font-size: 11px; }
  .scenes [data-go]::after { right: 0; bottom: 2px; }
  .scenes .arrows { display: none; }
  .flow { min-height: 0; align-items: flex-end; padding: 46vh var(--gut) 80px; }
  .flow .txt { width: 100%; background: rgba(244,242,236,.9); box-shadow: 0 0 36px 28px rgba(244,242,236,.9); }
  .finale { min-height: 100svh; }
  .stations li { grid-template-columns: 20px 52px 1fr; padding: 10px 0; font-size: 14px; }
  .decks { max-width: 340px; }
  .pins span { font-size: 10px; }
  .foot .base { flex-direction: column; }
  .no-gl .fallback { right: 50%; top: 22vh; width: 54vw; transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; transition-delay: 0s !important; animation: none !important; }
}

/* ---------- 全程暗场：光从首屏一直走到收尾 ---------- */
body { background: #030304; color: #f4f2ec; }
.hero .label, .hero h1 { color: #f4f2ec; }
.hero .sub, .flow .sub { color: #c9c7c0; }
.offer { border-top-color: rgba(244,242,236,.16); }
.offer a { border-bottom-color: rgba(244,242,236,.16); }
.offer span { color: #a9a7a0; }
.offer i { color: #8c8a83; }
.offer a:hover { background: rgba(244,242,236,.03); }
.cue { color: #8c8a83; }
.cue i { background: rgba(244,242,236,.18); }
.cue i::after { background: #f4f2ec; }
.btn.solid { background: #f4f2ec; color: #0a0a0b; }
.stations { border-top-color: rgba(244,242,236,.16); }
.stations li { border-bottom-color: rgba(244,242,236,.16); color: #6e6c66; }
.stations li.on { color: #c9c7c0; }
.stations li.on b { color: #f4f2ec; }
.stations li.on::before { background: #f4f2ec; box-shadow: inset 0 0 0 1.5px #f4f2ec; }
.decks img { box-shadow: 0 0 0 1px rgba(244,242,236,.12), 0 24px 50px -20px rgba(0,0,0,.8); }
.foot { background: #070708; color: #8c8a83; border-top-color: rgba(244,242,236,.1); }
.foot .belief, .foot h4 { color: #f4f2ec; }
.foot a:hover { color: #f4f2ec; }
.foot .base { border-top-color: rgba(244,242,236,.1); }
.pins span.pl { font-size: 12px; letter-spacing: .08em; }
.pins span.pl.on { opacity: .34; }
.pins span.pl.on.lit { opacity: .95; }

/* 开场：光先画出标志，字最后出来 */
.hero .txt > *, .hero .cue, .hnav { animation: heroIn 1.2s var(--ease) both; }
.hero .txt > :nth-child(1) { animation-delay: 2.3s; }
.hero .txt > :nth-child(2) { animation-delay: 2.45s; }
.hero .txt > :nth-child(3) { animation-delay: 2.6s; }
.hero .txt > :nth-child(4) { animation-delay: 2.75s; }
.hero .cue { animation-delay: 3.2s; }
.hnav { animation-name: navIn; animation-delay: 2.2s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes navIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 759px), (max-aspect-ratio: 4/5) {
  .flow .txt { background: rgba(3,3,4,.82); box-shadow: 0 0 40px 30px rgba(3,3,4,.82); }
  .finale .txt { background: none; box-shadow: none; }
}

.finale .again-x { margin-top: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.finale .again a { color: rgba(255, 255, 255, .6); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: 3px; }
.finale .again a:hover { color: #fff; }


/* 企业培训与收尾：离开光，回到纸面。
   一张纸从下面推上来盖住画布；光照到纸边，变成一根墨线，按原来的 30° 继续印在纸上，落在说明文字上方那条线上。 */
.sheet { --pink: #0a0a0b; --pmute: #6b6962; --prule: rgba(10, 10, 11, .14);
  position: relative; z-index: 3; color: var(--pink); background-color: #f2efe7;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .055 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  padding: 0 var(--gut); }
.sheet .wrap { position: relative; }
.sheet ::selection { background: #0a0a0b; color: #f2efe7; }
.sheet br.mo { display: none; }
.crop { position: absolute; top: 18px; width: 14px; height: 14px; pointer-events: none; }
.crop.l { left: 18px; border-left: 1px solid rgba(10, 10, 11, .35); border-top: 1px solid rgba(10, 10, 11, .35); }
.crop.r { right: 18px; border-right: 1px solid rgba(10, 10, 11, .35); border-top: 1px solid rgba(10, 10, 11, .35); }

.sheet .display { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; font-feature-settings: "palt"; }
/* 企业培训：栏目头（标签 1–3 栏，标题与说明 4–12 栏），下面是这半天的时间线：
   13:30 到 17:30 一根墨线，六章是线上的六站 */



/* 收尾：主句横跨全宽，展示字阶，标志当句号；下面是三行目录，整行可点 */
.finale.sheet { min-height: 0; padding-top: var(--space-12); padding-bottom: var(--space-12); }
.fin-k { padding-top: var(--space-1); border-top: 1px solid var(--pink); color: var(--pmute); }
.finale h2 { margin-top: var(--space-8); font-family: var(--font-sans); color: var(--pink); }
.stop { display: inline-block; width: .5em; height: .5em; margin-left: .08em; vertical-align: -.04em; }
.stop svg { display: block; width: 100%; height: 100%; fill: var(--pink); }
.dir { margin-top: var(--space-12); border-bottom: 1px solid var(--prule); }
.dir a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: baseline; padding: var(--space-3) 0; border-top: 1px solid var(--prule); color: var(--pink); transition: border-color var(--motion-response) var(--ease-response); }
.dir b { grid-column: 1 / 4; }
.dir .t-body { grid-column: 4 / 10; color: #3a3935; }
.dir em { grid-column: 10 / -1; justify-self: end; font-style: normal; font-weight: 600; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--motion-response) var(--ease-response); }
.dir a:hover { border-top-color: var(--pink); transition-duration: var(--motion-instant); }
.dir a:hover em { background-size: 100% 1px; }

/* 页脚跟着回到纸面 */
.foot { background: #f2efe7; color: #6b6962; border-top: 1px solid rgba(10, 10, 11, .12); }
.foot h4 { color: #0a0a0b; }
.foot a:hover { color: #0a0a0b; }
.foot .base { border-top-color: rgba(10, 10, 11, .12); }

@media (max-width: 760px) {
  .sheet { padding: 0 20px; }
  .sheet br.mo { display: inline; }
  .crop { top: 12px; }
  .crop.l { left: 12px; } .crop.r { right: 12px; }
  .finale.sheet { padding-top: var(--space-8); padding-bottom: var(--space-8); }
  .finale h2 { margin-top: var(--space-4); }
  .dir { margin-top: var(--space-6); }
  .dir a { display: flex; flex-direction: column; gap: var(--space-0-75); padding: var(--space-2) 0; }
  .dir em { align-self: flex-start; margin-top: var(--space-0-75); background-size: 100% 1px; }
}
