:root {
  color-scheme: dark;
  --ink: #07131d;
  --ice: #f4fbff;
  --cyan: #8fe8ff;
  --cyan-strong: #31c8f2;
  --glass: rgba(4, 18, 28, 0.72);
  --line: rgba(255, 255, 255, 0.26);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { width: 100%; margin: 0; background: var(--ink); }
html { scroll-behavior: smooth; }

button, a { font: inherit; }

button { color: inherit; }

.tour { position: relative; width: 100%; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; color: white; background: #0b1f2c; }
.tour:fullscreen { height: 100%; }

.scene, .scene img, .scene-shade, .scene-grid { position: absolute; inset: 0; width: 100%; height: 100%; }

.scene { z-index: -3; overflow: hidden; }

.scene img { object-fit: cover; object-position: 50% 48%; transform: scale(1.03); transition: transform 1.5s cubic-bezier(.2,.7,.1,1), object-position 1.5s cubic-bezier(.2,.7,.1,1), filter .6s ease; }

.scene.is-changing img { filter: saturate(.8) brightness(.82); }

.scene-shade { background: linear-gradient(90deg, rgba(4,13,20,.42) 0%, transparent 25%, transparent 62%, rgba(3,12,19,.16) 100%), linear-gradient(180deg, rgba(4,13,20,.52) 0%, transparent 24%, transparent 70%, rgba(3,10,16,.62) 100%); z-index: 1; }

.scene-grid { opacity: .16; z-index: 2; background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px); background-size: 9.5vw 9.5vw; mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 65%); }

.topbar { position: absolute; z-index: 8; top: 0; left: 0; right: 86px; height: 82px; padding: 20px 34px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(3,13,20,.5), transparent); }

.brand { display: inline-flex; gap: 12px; align-items: center; color: white; text-decoration: none; }

.brand-mark { width: 34px; height: 34px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 3px; transform: skewY(-12deg); }

.brand-mark i { display: block; border: 1px solid rgba(255,255,255,.88); background: rgba(255,255,255,.12); }
.brand-mark i:nth-child(1) { height: 55%; }
.brand-mark i:nth-child(2) { height: 84%; }
.brand-mark i:nth-child(3) { height: 68%; }

.brand-copy { display: flex; align-items: baseline; gap: 9px; }
.brand-copy strong { font-size: 1.3rem; letter-spacing: .22em; }
.brand-copy small { font-size: .72rem; letter-spacing: .28em; opacity: .76; }

.project-chip { display: flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(5,18,28,.35); backdrop-filter: blur(12px); font-size: .86rem; letter-spacing: .05em; }
.project-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 15px var(--cyan); }

.scene-index { position: absolute; z-index: 3; top: 112px; left: 36px; display: flex; flex-direction: column; align-items: flex-start; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.scene-index span { font-size: clamp(2.7rem, 4.6vw, 5rem); line-height: .9; font-weight: 200; letter-spacing: -.05em; }
.scene-index small { margin-top: 10px; font-size: .86rem; letter-spacing: .24em; opacity: .8; }

.markers { position: absolute; inset: 0 86px 0 0; z-index: 5; pointer-events: none; }

.marker { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; pointer-events: auto; border: 0; padding: 0; background: none; cursor: pointer; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); animation: marker-in .7s both; animation-delay: calc(var(--i) * 90ms + .4s); }

.marker-label { position: relative; display: flex; align-items: center; gap: 9px; min-width: max-content; padding: 7px 11px 7px 8px; color: #fff; border: 1px solid rgba(255,255,255,.44); border-radius: 5px; background: linear-gradient(100deg, rgba(10,68,96,.86), rgba(11,31,46,.7)); backdrop-filter: blur(9px); transition: transform .25s ease, background .25s ease; }
.marker-label strong { font-size: .82rem; letter-spacing: .04em; font-weight: 600; }
.marker-label em { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: white; color: #0a465e; font-size: .68rem; font-style: normal; font-weight: 800; }
.marker-line { width: 1px; height: clamp(22px, 4vh, 50px); background: linear-gradient(white, rgba(255,255,255,.1)); }
.marker-dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid white; background: var(--cyan-strong); box-shadow: 0 0 0 6px rgba(70,204,240,.24), 0 0 22px rgba(70,204,240,.8); }
.marker:hover .marker-label, .marker:focus-visible .marker-label { transform: translateY(-4px); background: rgba(31,153,194,.9); }

.compass { position: absolute; z-index: 5; top: 106px; right: 111px; width: 55px; height: 55px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; display: grid; place-items: center; background: rgba(3,15,24,.3); backdrop-filter: blur(8px); }
.compass span { position: absolute; top: 6px; font-size: .63rem; font-weight: 700; }
.compass i { width: 8px; height: 27px; background: linear-gradient(to bottom, var(--cyan) 0 50%, rgba(255,255,255,.75) 50%); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); transform: rotate(17deg); }

.rail { position: absolute; z-index: 10; top: 0; right: 0; width: 86px; height: 100%; padding: 22px 0 18px; display: flex; flex-direction: column; align-items: center; background: rgba(2,12,19,.88); border-left: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(18px); }
.rail-item { position: relative; width: 100%; min-height: 67px; border: 0; background: transparent; display: grid; place-items: center; gap: 3px; padding: 9px 4px; opacity: .66; cursor: pointer; transition: opacity .2s, background .2s; }
.rail-item svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.rail-item span { font-size: .73rem; letter-spacing: .12em; }
.rail-item:hover, .rail-item:focus-visible, .rail-item.active { opacity: 1; background: rgba(93,211,244,.1); }
.rail-item.active::before { content: ""; position: absolute; left: 0; width: 2px; height: 30px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.rail-gap { flex: 1; }
.rail-item.icon-only { min-height: 52px; }

.presenter { position: absolute; z-index: 4; right: 102px; bottom: 0; width: min(31vw, 470px); min-width: 330px; height: min(62vh, 640px); pointer-events: none; transition: opacity .35s, transform .35s; }
.presenter.hidden { opacity: 0; transform: translateX(30px); }
.presenter img { position: absolute; z-index: 2; right: -4%; bottom: -12%; height: 94%; width: auto; filter: drop-shadow(-12px 15px 22px rgba(0,0,0,.42)); }
.presenter-note { position: absolute; z-index: 3; right: 67%; bottom: 24%; width: 250px; padding: 16px 17px; border: 1px solid rgba(255,255,255,.29); border-radius: 10px 10px 2px 10px; background: rgba(6,26,38,.74); backdrop-filter: blur(13px); box-shadow: 0 12px 35px rgba(0,0,0,.22); }
.presenter-note::after { content: ""; position: absolute; right: -12px; bottom: -1px; border-style: solid; border-width: 12px 0 0 12px; border-color: transparent transparent transparent rgba(6,26,38,.74); }
.presenter-note span { color: var(--cyan); font-size: .69rem; letter-spacing: .2em; }
.presenter-note p { margin: 8px 0 0; font-size: .89rem; line-height: 1.68; }

.scene-nav { position: absolute; z-index: 8; left: 50%; bottom: 29px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; }
.scene-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center; background: rgba(2,15,23,.65); backdrop-filter: blur(9px); cursor: pointer; transition: transform .22s, background .22s; }
.scene-nav button:hover, .scene-nav button:focus-visible { transform: scale(1.08); background: rgba(21,130,164,.78); }
.scene-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.scene-progress { width: clamp(70px, 9vw, 130px); height: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.scene-progress span { display: block; height: 100%; width: 33.333%; background: white; transition: transform .6s ease; transform-origin: left; }

.view-switcher { position: absolute; z-index: 7; left: 34px; bottom: 27px; display: flex; gap: 5px; padding: 5px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(3,17,26,.5); backdrop-filter: blur(10px); }
.view-switcher button { min-height: 38px; padding: 0 15px; border: 0; border-radius: 5px; color: rgba(255,255,255,.72); background: transparent; cursor: pointer; font-size: .81rem; letter-spacing: .07em; }
.view-switcher button.active { color: white; background: rgba(77,191,224,.24); }

.detail-panel { position: absolute; z-index: 12; top: 0; right: 86px; width: min(390px, calc(100vw - 86px)); height: 100%; padding: 108px 38px 38px; background: rgba(4,17,26,.92); border-left: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(25px); transform: translateX(110%); visibility: hidden; transition: transform .48s cubic-bezier(.2,.8,.2,1), visibility .48s; box-shadow: -30px 0 80px rgba(0,0,0,.2); }
.detail-panel.open { transform: translateX(0); visibility: visible; }
.panel-close { position: absolute; top: 31px; right: 29px; width: 39px; height: 39px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: transparent; font-size: 1.5rem; cursor: pointer; }
.panel-kicker { color: var(--cyan); font-size: .72rem; letter-spacing: .2em; }
.detail-panel h2 { margin: 13px 0 16px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; letter-spacing: -.04em; }
.detail-panel > p { color: rgba(255,255,255,.74); line-height: 1.8; }
.detail-panel dl { margin: 30px 0 35px; border-top: 1px solid rgba(255,255,255,.18); }
.detail-panel dl div { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.detail-panel dt { color: rgba(255,255,255,.58); font-size: .84rem; }
.detail-panel dd { margin: 0; font-size: .91rem; }
.panel-cta { min-height: 48px; width: 100%; border: 1px solid rgba(255,255,255,.45); border-radius: 4px; background: rgba(65,193,228,.2); cursor: pointer; letter-spacing: .08em; }

.loading { position: absolute; z-index: 50; inset: 0; display: grid; place-content: center; gap: 24px; background: #06131d; transition: opacity .8s ease, visibility .8s ease; }
.loading.done { opacity: 0; visibility: hidden; }
.loading-brand { font-size: 1.7rem; font-weight: 600; letter-spacing: .28em; }
.loading-brand span { margin-left: 8px; font-size: .7rem; font-weight: 400; opacity: .55; }
.loading-line { width: 230px; height: 1px; background: rgba(255,255,255,.16); overflow: hidden; }
.loading-line i { display: block; width: 60%; height: 100%; background: var(--cyan); animation: loading 1.15s ease both; }

@keyframes marker-in { from { opacity: 0; transform: translate(-50%, -35%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes loading { from { transform: translateX(-100%); } to { transform: translateX(67%); } }

@media (max-width: 900px) {
  .tour { min-height: 520px; }
  .topbar { right: 0; height: 69px; padding: 15px 18px; }
  .project-chip { display: none; }
  .brand-copy strong { font-size: 1.05rem; }
  .scene-index { top: 91px; left: 20px; }
  .scene-index span { font-size: 2.65rem; }
  .markers { inset: 0; }
  .marker:nth-child(n+4) { display: none; }
  .marker-label strong { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
  .compass { top: 86px; right: 20px; }
  .rail { top: auto; bottom: 0; width: 100%; height: 68px; padding: 0 4px; flex-direction: row; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .rail-item { width: auto; flex: 1; min-height: 67px; }
  .rail-item.active::before { top: 0; left: 50%; width: 26px; height: 2px; transform: translateX(-50%); }
  .rail-gap, .rail-item.icon-only { display: none; }
  .presenter { right: -55px; bottom: 68px; min-width: 250px; width: 48vw; height: 44vh; }
  .presenter-note { right: 45%; bottom: 28%; width: 185px; padding: 11px; }
  .presenter-note p { font-size: .76rem; }
  .view-switcher { left: 14px; bottom: 84px; }
  .view-switcher button { min-height: 34px; padding: 0 10px; font-size: .74rem; }
  .scene-nav { bottom: 88px; }
  .scene-progress { display: none; }
  .scene-nav button { width: 42px; height: 42px; }
  .detail-panel { right: 0; bottom: 68px; height: calc(100% - 68px); padding: 90px 28px 30px; }
}

@media (max-width: 560px) {
  .presenter { opacity: .95; right: -72px; width: 58vw; }
  .presenter-note { display: none; }
  .marker-line { height: 24px; }
  .marker-label { padding: 5px 8px 5px 5px; }
  .marker-label strong { font-size: .7rem; }
  .marker-label em { width: 19px; height: 19px; }
  .view-switcher button:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
