:root {
  --ink: #eaf1f5;
  --muted: #8fa3ad;
  --bg: #071117;
  --panel: #0d1c24;
  --line: #29414c;
  --blue: #31a8ff;
  --cyan: #57e6d9;
  --orange: #ff8a34;
  --danger: #ff5964;
  --pad: clamp(32px, 5vw, 82px);
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); }
body { font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif; }
button { font: inherit; }

.deck { position: relative; width: 100%; height: 100%; }
.slide {
  position: absolute; inset: 0; display: none; padding: var(--pad);
  background:
    linear-gradient(90deg, rgba(49,168,255,.035) 1px, transparent 1px) 0 0 / 6.25vw 100%,
    linear-gradient(rgba(49,168,255,.025) 1px, transparent 1px) 0 0 / 100% 6.25vw,
    radial-gradient(circle at 86% 12%, rgba(49,168,255,.11), transparent 30%), var(--bg);
  overflow: hidden;
}
.slide.active { display: block; animation: enter .55s cubic-bezier(.2,.8,.2,1); }
.slide[data-section="zhongwushi"] { background-color: #10120f; background-image: radial-gradient(circle at 85% 10%, rgba(255,138,52,.12), transparent 33%), linear-gradient(90deg, rgba(255,138,52,.025) 1px, transparent 1px), linear-gradient(rgba(255,138,52,.02) 1px, transparent 1px); background-size: auto, 6.25vw 100%, 100% 6.25vw; }
@keyframes enter { from { opacity: 0; transform: translateY(18px) scale(.995); } }

header { display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 28px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .eyebrow, .controls { font-family: Bahnschrift, "Arial Narrow", "Microsoft YaHei UI", sans-serif; }
h1 { margin: 0; font-size: clamp(52px, 7.1vw, 118px); line-height: .94; letter-spacing: -.055em; font-weight: 300; }
h1 span { color: var(--blue); }
.cover h1 { font-size: clamp(48px, 5.8vw, 92px); }
.cover h1, .cover h1 span { white-space: nowrap; }
h2 { margin: 0; font-size: clamp(34px, 4.1vw, 66px); line-height: 1; letter-spacing: -.035em; font-weight: 400; }
h3 { margin-bottom: 8px; font-size: clamp(20px, 1.6vw, 28px); }
p, li { color: #c3d0d6; font-size: clamp(15px, 1.18vw, 21px); line-height: 1.65; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 14px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.slide[data-section="zhongwushi"] .eyebrow { color: var(--orange); }

.cover { display: none; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 4vw; }
.cover.active { display: grid; }
.cover-copy { position: relative; z-index: 2; }
.cover .lead { width: 78%; margin: 32px 0; color: #9eb0b9; font-size: clamp(18px, 1.5vw, 26px); }
.software-tags { display: flex; gap: 12px; }
.software-tags span, .panel-label { padding: 8px 12px; border: 1px solid var(--line); color: #b9c7cd; font: 13px Bahnschrift, sans-serif; letter-spacing: .08em; }
.cover-visual { position: relative; height: min(70vh, 690px); border: 1px solid var(--line); overflow: hidden; transform: perspective(1200px) rotateY(-4deg); box-shadow: -30px 30px 80px rgba(0,0,0,.4); }
.cover-visual::before { content: ""; position: absolute; z-index: 2; left: 16px; top: 16px; color: var(--cyan); font: 12px Consolas, monospace; }
.cover-visual img { width: 100%; height: 100%; object-fit: cover; }
.scan-line { position: absolute; left: 0; right: 0; height: 2px; top: 20%; background: linear-gradient(90deg, transparent, var(--cyan), transparent); box-shadow: 0 0 20px var(--cyan); animation: scan 5s ease-in-out infinite; }
@keyframes scan { 50% { top: 82%; } }

.goal-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 6vh; }
.goal-grid article { min-height: 280px; padding: 30px; border-top: 3px solid var(--blue); background: rgba(13,28,36,.75); }
.goal-grid b { color: var(--line); font: 72px/1 Bahnschrift, sans-serif; }
.takeaway { margin-top: 28px; padding: 17px 22px; border-left: 3px solid var(--cyan); background: rgba(87,230,217,.06); }
.takeaway.orange { border-color: var(--orange); background: rgba(255,138,52,.06); }

.compare-panels { height: 67vh; display: grid; grid-template-columns: 1fr 50px 1fr; align-items: center; }
.panel { height: 90%; padding: 42px; border: 1px solid var(--line); background: var(--panel); }
.panel h3 { margin: 55px 0 20px; font: 400 clamp(46px,5vw,82px)/1 Bahnschrift,sans-serif; }
.panel ul { margin-top: 30px; padding-left: 20px; }
.flexsim-panel { box-shadow: inset 0 4px var(--blue); }
.zws-panel { box-shadow: inset 0 4px var(--orange); }
.zws-panel h3 { color: var(--orange); }
.versus { text-align: center; color: var(--muted); font-size: 36px; }

.chapter-slide { display: none; grid-template-columns: 130px minmax(400px,.9fr) minmax(420px,1.1fr); align-items: center; gap: clamp(24px,4vw,72px); }
.chapter-slide.active { display: grid; }
.chapter-index { align-self: stretch; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.chapter-index span { color: var(--muted); font: 12px Consolas,monospace; letter-spacing: .22em; }
.chapter-index b { color: transparent; -webkit-text-stroke: 1px var(--blue); font: 300 clamp(76px,8vw,136px)/1 Bahnschrift,sans-serif; writing-mode: vertical-rl; transform: rotate(180deg); }
.chapter-copy { position: relative; z-index: 2; }
.chapter-copy h2 { margin: 18px 0 38px; font-size: clamp(52px,5.7vw,92px); line-height: 1.05; }
.chapter-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.chapter-tags span { padding: 9px 13px; border: 1px solid var(--line); color: #b7c8cf; font-size: 14px; }
.chapter-art { position: relative; height: 68vh; overflow: hidden; border: 1px solid var(--line); box-shadow: -24px 28px 70px rgba(0,0,0,.34); }
.chapter-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(7,17,23,.34),transparent 45%), linear-gradient(0deg,rgba(7,17,23,.28),transparent 35%); }
.chapter-art img { width: 100%; height: 100%; object-fit: cover; }
.chapter-orange .chapter-index b { -webkit-text-stroke-color: var(--orange); }
.chapter-orange .chapter-art { border-top: 3px solid var(--orange); }
.chapter-compare .chapter-copy h2 { font-size: clamp(44px,4.8vw,78px); }
.split-art { display: grid; grid-template-columns: 1fr 1fr; border-top: 3px solid transparent; border-image: linear-gradient(90deg,var(--blue) 50%,var(--orange) 50%) 1; }
.split-art img:first-child { filter: saturate(.85) brightness(.75) hue-rotate(8deg); }
.split-art img:last-child { filter: saturate(.9) brightness(.8); }
.chapter-slide.active .chapter-index b { animation: chapter-number .65s cubic-bezier(.2,.8,.2,1) both; }
.chapter-slide.active .chapter-copy { animation: chapter-copy .65s .12s cubic-bezier(.2,.8,.2,1) both; }
@keyframes chapter-number { from { opacity: 0; transform: rotate(180deg) translateY(35px); } }
@keyframes chapter-copy { from { opacity: 0; transform: translateX(-24px); } }

.connection-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 7vh; }
.connection-card { display: grid; grid-template-columns: 120px 1fr; align-items: center; min-height: 280px; padding: 34px; border: 1px solid var(--line); background: rgba(13,28,36,.85); }
.connection-card > span { font: 400 92px/1 Bahnschrift,sans-serif; color: var(--blue); }
.s-card > span { color: var(--cyan); }
code { display: inline-block; margin-top: 16px; color: var(--cyan); font-size: clamp(14px,1.1vw,19px); }
.rule { display: flex; gap: 28px; align-items: center; margin-top: 28px; padding: 18px 24px; border-left: 3px solid var(--blue); background: rgba(49,168,255,.06); }
.rule span { color: var(--muted); }

.connection-example { display: grid; grid-template-columns: 1.45fr .55fr; gap: 24px; height: 62vh; }
.connection-example figure img { height: calc(100% - 54px); object-fit: contain; }
.example-notes { display: grid; grid-template-rows: 1fr 1fr auto; gap: 12px; }
.example-notes article { display: grid; grid-template-columns: 74px 1fr; align-items: center; padding: 22px; background: var(--panel); border-left: 3px solid var(--blue); }
.example-notes article > span { color: var(--blue); font: 400 58px/1 Bahnschrift,sans-serif; }
.example-notes .example-s { border-color: var(--cyan); }
.example-notes .example-s > span { color: var(--cyan); }
.example-notes h3 { font-size: 20px; }
.example-notes p { margin: 0; font-size: 15px; }
.example-summary { margin: 0; padding: 15px 18px; border: 1px solid var(--line); color: var(--cyan); text-align: center; }

.media-split { display: grid; grid-template-columns: 1.25fr .75fr; gap: 36px; align-items: center; }
.media-split.reverse { grid-template-columns: .72fr 1.28fr; }
.media-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.media-stack img { width: 100%; height: 48vh; object-fit: contain; background: #eef1f2; border: 1px solid var(--line); }
.steps { display: grid; gap: 10px; }
.steps div { display: grid; grid-template-columns: 48px 1fr; align-items: center; min-height: 72px; padding: 12px 16px; background: var(--panel); border-left: 2px solid var(--blue); }
.steps b { color: var(--blue); font: 28px Bahnschrift,sans-serif; }
.steps p { margin: 0; }
.steps.compact div { min-height: 64px; }
.caption { margin-top: 12px; color: var(--muted); text-align: center; }

.scene-layout { display: grid; grid-template-columns: 1.4fr .6fr; grid-template-rows: 1fr auto; gap: 18px; }
.hero-image { width: 100%; height: 50vh; object-fit: contain; background: #eef1f2; border: 1px solid var(--line); }
.scene-layout aside { grid-row: 1; grid-column: 2; padding: 30px; background: var(--panel); border-top: 3px solid var(--cyan); }
.object-flow { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 17px; background: rgba(49,168,255,.07); }
.object-flow span { padding: 9px 14px; border: 1px solid var(--blue); }
.object-flow i { color: var(--blue); }
.object-flow small { margin-left: 24px; color: var(--cyan); }

.image-grid { display: grid; gap: 18px; height: 62vh; }
.image-grid.three { grid-template-columns: repeat(3,1fr); height: 56vh; }
.image-grid.two { grid-template-columns: repeat(2,1fr); height: 57vh; }
figure { margin: 0; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
figure img { width: 100%; height: calc(100% - 54px); object-fit: contain; background: #eef1f2; }
figcaption { min-height: 54px; padding: 14px 16px; color: #bbc9cf; }

.process-flow { display: flex; align-items: center; gap: 12px; margin: 4vh 0 24px; }
.process-flow div { flex: 1; min-height: 120px; padding: 20px; border-top: 2px solid var(--blue); background: var(--panel); }
.process-flow span, .process-flow small { display: block; color: var(--muted); }
.process-flow b { display: block; margin: 8px 0; font-size: 20px; }
.process-flow i { color: var(--blue); font-size: 28px; }
.wide-shot { display: grid; grid-template-columns: 1.4fr .6fr; gap: 22px; height: 40vh; align-items: center; }
.wide-shot img { display: block; width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; background: white; }
.wide-shot p { padding-left: 22px; border-left: 2px solid var(--cyan); }

.list-architecture { display: grid; grid-template-columns: 1fr 180px 1fr; gap: 24px; align-items: center; margin: 4vh 0 22px; }
.list-architecture article { padding: 28px; background: var(--panel); border-top: 3px solid var(--blue); }
.list-architecture article span { color: var(--muted); font: 12px Consolas,monospace; letter-spacing: .15em; }
.shared-list { height: 160px; display: grid; place-content: center; gap: 7px; border: 1px solid var(--cyan); text-align: center; }
.shared-list i { display: block; width: 80px; height: 8px; background: var(--cyan); opacity: .7; }
.thumb-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; height: 32vh; }
.thumb-row img { width: 100%; height: 100%; object-fit: contain; background: white; }
.list-slide.active { display: grid; grid-template-rows: auto auto minmax(110px,1fr) auto; gap: 12px; }
.list-slide header { margin-bottom: 0; }
.list-slide .list-architecture { grid-template-columns: 1fr 140px 1fr; gap: 14px; margin: 0 0 14px; }
.list-slide .list-architecture article { padding: 18px 22px; }
.list-slide .list-architecture p { margin-bottom: 0; font-size: clamp(13px,.95vw,17px); line-height: 1.45; }
.list-slide .shared-list { height: 126px; }
.list-slide .thumb-row { height: auto; min-height: 0; }
.list-slide .thumb-row img { display: block; min-height: 0; }
.list-summary { padding: 14px 18px; border-left: 3px solid var(--cyan); background: rgba(87,230,217,.06); color: #c3d0d6; font-size: clamp(14px,1vw,17px); line-height: 1.55; }

.method-slide.active { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 14px; }
.method-slide header { margin-bottom: 0; }
.method-table-wrap { min-height: 0; overflow: hidden; border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.method-table { width: 100%; height: 100%; border-collapse: collapse; table-layout: fixed; }
.method-table th, .method-table td { padding: clamp(8px,1vw,16px); border-bottom: 1px solid var(--line); color: #c3d0d6; font-size: clamp(13px,1vw,17px); line-height: 1.35; text-align: left; vertical-align: middle; }
.method-table th { width: 14%; color: var(--muted); font-weight: 500; }
.method-table thead th { color: var(--ink); background: rgba(49,168,255,.08); font-family: Bahnschrift,"Microsoft YaHei UI",sans-serif; font-size: clamp(15px,1.2vw,20px); }
.method-table thead th span { margin-right: 10px; color: var(--blue); font: 12px Consolas,monospace; }
.method-table th + th, .method-table td + td { border-left: 1px solid var(--line); }
.method-table tbody tr:last-child th, .method-table tbody tr:last-child td { border-bottom: 0; }
.method-summary { margin: 0; padding: 15px 20px; border-left: 3px solid var(--cyan); background: rgba(87,230,217,.06); font-size: clamp(14px,1.05vw,18px); line-height: 1.5; }
.method-summary strong { color: var(--cyan); }

.maturity { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; margin-top: 4vh; }
.maturity div { min-height: 210px; padding: 25px; background: var(--panel); border-bottom: 3px solid var(--blue); }
.maturity b { color: var(--blue); font: 36px Bahnschrift,sans-serif; }
.result-shot { display: grid; grid-template-columns: 1fr 1fr; align-items: center; height: 32vh; margin-top: 20px; background: rgba(49,168,255,.06); }
.result-shot img { width: 100%; height: 100%; object-fit: contain; background: white; }
.result-shot p { padding: 30px; }

.video-stage { display: grid; place-items: center; height: 66vh; min-height: 0; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-top: 3px solid var(--blue); background: #02070a; }
.video-stage.orange-stage { border-top-color: var(--orange); }
.video-stage video { display: block; width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; background: #000; }

.full-bleed-card { position: relative; height: 66vh; overflow: hidden; border: 1px solid #4a3b2d; }
.full-bleed-card img { width: 100%; height: 100%; object-fit: cover; }
.full-bleed-card div { position: absolute; left: 0; bottom: 0; width: 46%; padding: 28px 34px; background: rgba(7,12,14,.92); border-top: 3px solid var(--orange); }

.tool-showcase { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; height: 64vh; }
.tool-showcase figure img { height: calc(100% - 76px); }
.tool-showcase figcaption { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.tool-showcase figcaption b { color: var(--orange); font-size: 21px; }
.tool-showcase figcaption span { color: var(--muted); }

.simulation-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 24px; height: 62vh; }
.sim-copy { padding: 30px; border-top: 3px solid var(--orange); background: #191a16; }
.sim-copy h3:not(:first-child) { margin-top: 40px; }
.sim-images { display: grid; grid-template-columns: .62fr 1.38fr; gap: 12px; }
.sim-images img { width: 100%; height: 100%; object-fit: contain; background: white; }

.issue-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.issue-grid article { padding: 22px; background: #191a16; border-top: 2px solid var(--danger); }
.issue-grid b { color: var(--danger); font: 13px Bahnschrift,sans-serif; letter-spacing: .12em; }
.issue-grid p { font-size: 15px; }
.issue-images { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: 31vh; margin-top: 16px; }
.issue-images img { width: 100%; height: 100%; object-fit: contain; background: #eef1f2; }

.matrix { border-top: 1px solid var(--line); margin-top: 2vh; }
.matrix > div { display: grid; grid-template-columns: .55fr 1fr 1fr; align-items: center; min-height: 76px; border-bottom: 1px solid var(--line); }
.matrix span, .matrix b, .matrix p { padding: 0 20px; margin: 0; }
.matrix span { color: var(--muted); }
.matrix p:last-child { border-left: 1px solid var(--line); }
.matrix-head { background: var(--panel); }
.matrix-head b:first-of-type { color: var(--blue); }
.matrix-head b:last-child { color: var(--orange); border-left: 1px solid var(--line); }
.final-line { margin-top: 22px; padding: 18px 22px; border-left: 3px solid var(--cyan); background: rgba(87,230,217,.06); font-size: clamp(18px,1.35vw,24px); }

.thanks-slide { text-align: center; }
.thanks-rail { position: absolute; top: var(--pad); left: var(--pad); right: var(--pad); display: flex; align-items: center; gap: 20px; color: var(--muted); font: 12px Consolas,monospace; letter-spacing: .2em; }
.thanks-rail i { flex: 1; height: 1px; background: linear-gradient(90deg,var(--blue),var(--orange)); }
.thanks-copy { position: absolute; inset: 50% auto auto 50%; width: min(90vw,1100px); transform: translate(-50%,-53%); }
.thanks-copy p { margin-bottom: 5px; color: var(--cyan); font: 700 14px Bahnschrift,sans-serif; letter-spacing: .35em; }
.thanks-copy h2 { margin: 0; padding-top: .05em; color: transparent; background: linear-gradient(90deg,var(--blue) 15%,var(--ink) 50%,var(--orange) 85%); -webkit-background-clip: text; background-clip: text; font-size: clamp(120px,18vw,290px); line-height: 1.04; letter-spacing: -.08em; }
.thanks-copy strong { display: block; margin-top: 32px; color: #aabcc4; font-size: clamp(17px,1.35vw,23px); font-weight: 400; letter-spacing: .12em; }
.thanks-flow { position: absolute; left: 50%; bottom: 9vh; display: flex; align-items: center; gap: 17px; transform: translateX(-50%); color: var(--muted); font: 13px Consolas,monospace; letter-spacing: .13em; }
.thanks-flow i { color: var(--cyan); font-style: normal; }
.thanks-slide.active .thanks-copy { animation: thanks-enter .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes thanks-enter { from { opacity: 0; transform: translate(-50%,-48%); } }

@media (max-height: 720px) {
  .thanks-copy { transform: translate(-50%,-48%); }
  .thanks-copy h2 { font-size: clamp(92px,22vh,150px); }
  .thanks-copy strong { margin-top: 16px; }
}

.rail { position: fixed; z-index: 10; left: 0; bottom: 0; width: 100%; height: 4px; background: #132731; }
.rail-progress { display: block; width: 5.88%; height: 100%; background: linear-gradient(90deg,var(--blue),var(--cyan)); transition: width .35s ease; }
.controls { position: fixed; z-index: 20; right: 24px; bottom: 22px; display: flex; align-items: center; gap: 9px; color: var(--muted); }
.controls button { min-width: 38px; height: 36px; padding: 0 11px; border: 1px solid var(--line); background: rgba(7,17,23,.8); color: var(--ink); cursor: pointer; }
.controls button:hover, .controls button:focus-visible { border-color: var(--blue); outline: none; }
.controls b { color: var(--blue); }
.hint { position: fixed; z-index: 20; left: 24px; bottom: 14px; margin: 0; color: #4f6873; font-size: 12px; }

@media (max-width: 850px) {
  :root { --pad: 28px 24px 70px; }
  .cover.active { grid-template-columns: 1fr; }
  .cover-visual { height: 35vh; transform: none; }
  .goal-grid, .connection-layout, .image-grid.three, .tool-showcase, .issue-grid { grid-template-columns: 1fr; overflow-y: auto; max-height: 70vh; }
  .compare-panels, .media-split, .media-split.reverse, .scene-layout, .simulation-layout { grid-template-columns: 1fr; overflow-y: auto; max-height: 72vh; }
  .connection-example { grid-template-columns: 1fr; height: auto; max-height: 72vh; overflow-y: auto; }
  .connection-example figure { min-height: 38vh; }
  .example-notes article { min-height: 145px; }
  .chapter-slide.active { grid-template-columns: 58px 1fr; grid-template-rows: auto 34vh; gap: 20px; }
  .chapter-index { grid-row: 1 / 3; }
  .chapter-index b { font-size: 60px; }
  .chapter-copy h2, .chapter-compare .chapter-copy h2 { margin: 10px 0 18px; font-size: clamp(34px,8vw,54px); }
  .chapter-art { grid-column: 2; height: 34vh; }
  .thanks-copy h2 { font-size: clamp(94px,28vw,150px); }
  .thanks-flow { bottom: 13vh; gap: 10px; font-size: 11px; }
  .versus { display: none; }
  .panel { height: auto; }
  .process-flow { overflow-x: auto; }
  .process-flow div { min-width: 200px; }
  .list-slide .list-architecture { grid-template-columns: 1fr 90px 1fr; gap: 8px; }
  .list-slide .list-architecture article { padding: 12px; }
  .list-slide .list-architecture h3 { font-size: 16px; }
  .list-slide .shared-list { height: 112px; }
  .list-slide .thumb-row { height: auto; }
  .list-summary { font-size: 14px; line-height: 1.45; }
  .method-table-wrap { overflow-x: auto; }
  .method-table { min-width: 760px; }
  .method-summary { font-size: 14px; }
  .maturity { grid-template-columns: 1fr 1fr; }
  .object-flow small { display: none; }
  .hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
