:root {
  color-scheme: light;
  --bg: #ffffff;
  --white: #ffffff;
  --ink: #111111;
  --ink-soft: #52525b;
  --muted: #71717a;
  --pill-bg: #f3f4f6;
  --pill-hover: #e5e7eb;
  --line: #e5e7eb;
  --blue: #1677ff;
  --orange: #f97316;
  --page: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --sans: "PingFang SC", "SF Pro Display", "Google Sans", "Helvetica Neue", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--white);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 620ms var(--ease), color 620ms var(--ease);
}

/* 滚屏无缝转黑：整页画布如放映厅渐暗 */
body.is-theme-dark {
  background: #06080d;
  color: var(--white);
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--ink);
  color: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page);
}

.skip-link {
  position: fixed;
  z-index: 300;
  left: 16px;
  top: -80px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  transition: top 180ms var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* =========================================
   顶栏：自适应无缝反色 + 滑动高亮胶囊
   ========================================= */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 76px;
  background: transparent;
  transition: background 360ms var(--ease), color 360ms var(--ease), backdrop-filter 360ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.is-theme-dark .site-header,
body.is-theme-dark .site-header.is-scrolled {
  background: rgba(6, 8, 13, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--white);
}

.header-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--page);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  transition: color 420ms var(--ease);
}

body.is-theme-dark .brand {
  color: var(--white);
}

.brand-mark-svg,
.footer-mark-svg {
  width: 30px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.brand-wordmark-svg,
.footer-wordmark-svg {
  width: 88px;
  height: 21px;
  display: block;
  flex-shrink: 0;
}

.brand-sep {
  width: 1px;
  height: 14px;
  background: #d4d4d8;
  transition: background 420ms var(--ease);
}

body.is-theme-dark .brand-sep {
  background: rgba(255, 255, 255, 0.24);
}

.brand-cn {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color 420ms var(--ease);
}

body.is-theme-dark .brand-cn {
  color: rgba(255, 255, 255, 0.92);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-pill-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--pill-bg);
  transition: background 420ms var(--ease);
}

body.is-theme-dark .nav-pill-group {
  background: rgba(255, 255, 255, 0.12);
}

.nav-slider {
  position: absolute;
  top: 4px;
  left: 0;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: transform 340ms var(--ease), width 340ms var(--ease), opacity 220ms ease, background 420ms var(--ease);
}

body.is-theme-dark .nav-slider {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.nav-pill-group a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--ink);
  transition: color 360ms var(--ease);
}

body.is-theme-dark .nav-pill-group a {
  color: rgba(255, 255, 255, 0.9);
}

/* 按钮体系 */
.btn-black,
.btn-white,
.btn-ghost,
.btn-dark-ghost,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  will-change: transform;
  transition:
    transform 240ms var(--ease),
    background 280ms var(--ease),
    border-color 280ms var(--ease),
    color 280ms var(--ease);
}

.btn-black svg,
.btn-white svg,
.btn-ghost svg,
.btn-dark-ghost svg,
.btn-outline svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms var(--ease);
}

.btn-black {
  height: 44px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
}

.btn-black:hover {
  background: #27272a;
  border-color: #27272a;
}

.btn-black:hover svg,
.btn-white:hover svg,
.btn-outline:hover svg {
  transform: translate(2px, -2px);
}

body.is-theme-dark .header-cta {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.btn-white {
  height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
}

.btn-white:hover {
  background: #e5e7eb;
}

.btn-dark-ghost {
  height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.btn-dark-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.36);
}

.btn-ghost {
  height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  background: var(--pill-bg);
  color: var(--ink);
  font-size: 14px;
}

.btn-ghost:hover {
  background: var(--pill-hover);
}

.btn-outline {
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.btn-lg {
  height: 48px;
  padding: 0 26px;
  font-size: 15px;
}

.header-cta {
  height: 40px;
  padding: 0 20px;
}

/* 移动端菜单 */
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--pill-bg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

body.is-theme-dark .menu-button {
  background: rgba(255, 255, 255, 0.14);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 220ms var(--ease), background 360ms var(--ease);
}

body.is-theme-dark .menu-button span {
  background: var(--white);
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px var(--page) calc(40px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease), visibility 240ms;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.mobile-nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 52px;
  font-size: 28px;
  font-weight: 500;
}

/* =========================================
   镜头 1：首屏 Hero（随滚动退场视差）
   ========================================= */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 108px var(--page) 124px;
  overflow: hidden;
}

.radial-field-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-center {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
}

.hero-brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
  color: var(--ink);
}

.hero-mark-svg {
  width: 44px;
  height: 20px;
  display: block;
}

.hero-wordmark-svg {
  width: 124px;
  height: 29px;
  display: block;
}

.hero-headline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  font-size: clamp(34px, 4.9vw, 68px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--ink);
}

/* 立体垂直滚轮 */
.slot-wheel {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  vertical-align: middle;
  user-select: none;
}

.slot-ghost {
  position: absolute;
  left: 50%;
  font-size: 0.7em;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0.11;
  filter: blur(0.6px);
  pointer-events: none;
  transition: opacity 320ms var(--ease);
}

.slot-ghost-prev {
  bottom: calc(100% + 10px);
  transform: translateX(-50%) scale(0.94);
}

.slot-ghost-next {
  top: calc(100% + 10px);
  transform: translateX(-50%) scale(0.94);
}

.slot-wheel:hover .slot-ghost {
  opacity: 0.22;
}

.slot-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.24em;
  height: 1.38em;
  padding: 0 0.44em 0 0.36em;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #edf5ff 0%, #e1eeff 52%, #eff7ff 100%);
  border: 1px solid rgba(22, 119, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 12px 30px -14px rgba(22, 119, 255, 0.28);
  transition: transform 240ms var(--spring), background 380ms var(--ease), border-color 380ms var(--ease);
}

.slot-pill[data-tone="cyan"] {
  background: linear-gradient(135deg, #ecfeff 0%, #dff6ff 55%, #eef9ff 100%);
  border-color: rgba(14, 165, 233, 0.22);
}

.slot-pill[data-tone="amber"] {
  background: linear-gradient(135deg, #fff5eb 0%, #ffebd6 55%, #fff6ed 100%);
  border-color: rgba(234, 88, 12, 0.2);
}

.slot-wheel:hover .slot-pill {
  transform: scale(1.03);
}

.slot-wheel:active .slot-pill {
  transform: scale(0.97);
}

.slot-dot {
  width: 0.22em;
  height: 0.22em;
  border-radius: 50%;
  background: #1677ff;
  flex-shrink: 0;
  transition: background 360ms var(--ease);
}

.slot-pill[data-tone="cyan"] .slot-dot {
  background: #0284c7;
}

.slot-pill[data-tone="amber"] .slot-dot {
  background: #ea580c;
}

.slot-window {
  display: inline-flex;
  align-items: flex-start;
  height: 1.38em;
  overflow: hidden;
}

.slot-track {
  display: flex;
  flex-direction: column;
  transition: transform 640ms var(--ease);
  will-change: transform;
}

.slot-item {
  height: 1.38em;
  line-height: 1.38em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0958d9;
  font-weight: 500;
  white-space: nowrap;
  transition: color 360ms var(--ease);
}

.slot-pill[data-tone="cyan"] .slot-item {
  color: #0369a1;
}

.slot-pill[data-tone="amber"] .slot-item {
  color: #c2410c;
}

.hero-actions {
  margin-top: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* 底部黑胶囊 Dock + 小眼眸 */
.hero-dock-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0 var(--page);
  pointer-events: none;
  transition: opacity 280ms ease;
}

.dock-shell {
  position: relative;
  pointer-events: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.dock-mascot {
  position: relative;
  z-index: 0;
  margin-bottom: -10px;
  width: 56px;
  height: 30px;
  border-radius: 16px 16px 8px 8px;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-bottom: 5px;
  transform: translateY(3px);
  transition: transform 320ms var(--spring);
}

.dock-shell:hover .dock-mascot {
  transform: translateY(-4px);
}

.mascot-eye {
  width: 7px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 120ms ease;
}

.dock-mascot.is-blinking .mascot-eye {
  transform: scaleY(0.12);
}

.mascot-pupil {
  width: 4px;
  height: 7px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 80ms linear;
}

.hero-dock {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: #111111;
  color: var(--white);
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.35);
}

.dock-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  transition: background 180ms var(--ease);
}

.dock-item:hover {
  background: rgba(255, 255, 255, 0.14);
}

.dock-item svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-item .dock-lead-icon {
  width: 15px;
  height: 15px;
  stroke: rgba(255, 255, 255, 0.92);
}

.dock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dock-dot-blue {
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.85);
}

.dock-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.dock-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.16);
}

/* =========================================
   章节通用头部（极致减法 + 超大排版张力）
   ========================================= */
.chapter {
  padding: clamp(96px, 14vh, 172px) 0;
}

.chapter-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(34px, 5vh, 52px);
}

.chapter-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chapter-head h2 {
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.chapter-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
}

.chapter-head-dark .chapter-lead {
  color: rgba(255, 255, 255, 0.62);
}

.title-with-app {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.chapter-app-icon {
  width: clamp(42px, 4vw, 52px);
  height: clamp(42px, 4vw, 52px);
  border-radius: 14px;
  box-shadow: 0 14px 32px -10px rgba(249, 115, 22, 0.45);
}

.chapter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================
   滚屏推镜电影舞台（Cinema Zoom Stage）
   ========================================= */
.cinema-stage {
  position: relative;
  padding: clamp(22px, 3.6vw, 48px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transform: scale(var(--cinema-scale, 1)) translateY(var(--cinema-y, 0px));
  transition: transform 180ms linear;
  will-change: transform;
}

.stage-luopan {
  background:
    radial-gradient(60% 55% at 15% 10%, rgba(147, 197, 253, 0.56) 0%, transparent 65%),
    radial-gradient(55% 60% at 88% 18%, rgba(56, 189, 248, 0.34) 0%, transparent 64%),
    radial-gradient(55% 55% at 82% 92%, rgba(191, 219, 254, 0.54) 0%, transparent 66%),
    #f5f9ff;
}

.stage-lingzhan {
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(22, 119, 255, 0.22) 0%, transparent 65%),
    radial-gradient(55% 55% at 15% 90%, rgba(249, 115, 22, 0.16) 0%, transparent 65%),
    #0c1018;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.starfield-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.58;
  background-image:
    radial-gradient(1.5px 1.5px at 14% 18%, #ffffff 50%, transparent 100%),
    radial-gradient(1px 1px at 28% 12%, rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 42% 8%, rgba(147, 197, 253, 0.9) 50%, transparent 100%),
    radial-gradient(1px 1px at 66% 14%, #ffffff 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 84% 22%, rgba(186, 230, 253, 0.85) 50%, transparent 100%),
    radial-gradient(1px 1px at 90% 42%, rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 8% 64%, rgba(255, 255, 255, 0.75) 50%, transparent 100%),
    radial-gradient(1px 1px at 92% 78%, rgba(147, 197, 253, 0.8) 50%, transparent 100%);
}

.stage-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.45), transparent 72%);
  transition: opacity 280ms var(--ease);
}

.cinema-stage.is-tilting .stage-glare {
  opacity: 1;
}

/* =========================================
   交互沙箱窗口通用框
   ========================================= */
.sandbox-window {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  overflow: hidden;
}

.sandbox-light {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 36px 84px -26px rgba(15, 23, 42, 0.18), 0 8px 24px -12px rgba(15, 23, 42, 0.06);
  color: var(--ink);
}

.sandbox-dark {
  background: #10131a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 96px -20px rgba(0, 0, 0, 0.85);
  color: var(--white);
}

.sandbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.sandbox-topbar-dark {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.sandbox-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.luopan-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.mac-dots {
  display: inline-flex;
  gap: 6px;
}

.mac-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.sandbox-mode-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--pill-bg);
}

.sandbox-mode-dark {
  background: rgba(255, 255, 255, 0.08);
}

.mode-btn {
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.mode-btn.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sandbox-mode-dark .mode-btn {
  color: rgba(255, 255, 255, 0.62);
}

.sandbox-mode-dark .mode-btn.is-active {
  background: var(--white);
  color: var(--ink);
}

/* =========================================
   罗盘实时流式调研沙箱
   ========================================= */
.luopan-live-view,
.luopan-screen-view {
  display: none;
}

.luopan-live-view.is-active,
.luopan-screen-view.is-active {
  display: block;
}

.luopan-live-view {
  padding: clamp(22px, 3vw, 34px);
}

.luopan-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.preset-chip {
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 200ms var(--ease);
}

.preset-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.preset-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.luopan-prompt-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.07);
  margin-bottom: 20px;
}

.prompt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.16);
  flex-shrink: 0;
}

.prompt-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.prompt-status {
  font-size: 12px;
  color: var(--blue);
  white-space: nowrap;
}

.luopan-output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 248px;
}

.insight-card {
  padding: 20px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateY(12px);
  animation: insightIn 420ms var(--ease) forwards;
}

@keyframes insightIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.insight-kicker {
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 6px;
}

.insight-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.insight-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.luopan-screen-view img,
.lz-screen-view img {
  width: 100%;
  height: auto;
}

/* =========================================
   灵栈交互沙箱：真拖拽连线画布 + 真 ⌘K 检索
   ========================================= */
.lz-view {
  display: none;
}

.lz-view.is-active {
  display: block;
}

.lz-canvas {
  position: relative;
  height: 440px;
  overflow: hidden;
  background:
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    #0e1117;
  background-size: 24px 24px;
  user-select: none;
  touch-action: none;
}

.lz-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wire-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 1.8;
}

.wire-accent {
  stroke: rgba(249, 115, 22, 0.85);
  stroke-dasharray: 5 5;
  animation: wireFlow 18s linear infinite;
}

@keyframes wireFlow {
  to {
    stroke-dashoffset: -120;
  }
}

.drag-node {
  position: absolute;
  width: 224px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(22, 26, 34, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.75);
  cursor: grab;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.drag-node:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.drag-node.is-dragging {
  cursor: grabbing;
  z-index: 10;
  border-color: var(--orange);
  box-shadow: 0 28px 60px -16px rgba(249, 115, 22, 0.3);
}

.node-accent {
  border-color: rgba(249, 115, 22, 0.55);
}

.node-thumb {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  aspect-ratio: 16 / 10;
  background: #1a1f2b;
}

.node-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.node-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--orange);
  margin-bottom: 6px;
}

.node-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.node-desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

/* 边缘桌面灵宠 */
.edge-pet {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(249, 115, 22, 0.4);
  background: rgba(24, 20, 18, 0.92);
  color: var(--white);
  cursor: pointer;
  transition: transform 240ms var(--spring);
}

.edge-pet:hover {
  transform: translateY(-3px) scale(1.03);
}

.edge-pet.is-happy {
  transform: translateY(-8px) scale(1.08);
}

.edge-pet-face {
  width: 28px;
  height: 24px;
  border-radius: 10px;
  background: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.edge-pet-face i {
  display: block;
  width: 3px;
  height: 5px;
  border-radius: 99px;
  background: #111111;
}

.edge-pet-bubble {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}

/* ⌘K 全局调用浮层 */
.lz-cmdk-view {
  padding: clamp(24px, 4vw, 48px);
  min-height: 440px;
  background: #0d1017;
}

.cmdk-palette {
  max-width: 640px;
  margin: 0 auto;
  border-radius: 18px;
  background: #151922;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 72px -18px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.cmdk-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cmdk-kbd {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.16);
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
}

.cmdk-input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 15px;
  outline: none;
}

.cmdk-input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.cmdk-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmdk-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease;
}

.cmdk-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cmdk-row.is-hidden {
  display: none;
}

.cmdk-row-title {
  font-size: 14px;
  font-weight: 500;
}

.cmdk-row-type {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

.cmdk-toast {
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.56);
}

/* =========================================
   镜头 4：全屏贯通 3:4 艺术作品画廊流（悬停聚焦 + 平滑漫游）
   ========================================= */
.chapter-academy {
  overflow: hidden;
}

.gallery-marquee {
  position: relative;
  width: 100%;
  padding: 16px 0 36px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.gallery-track {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: max-content;
  will-change: transform;
}

.work-tile {
  flex: 0 0 auto;
  width: clamp(228px, 21vw, 304px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: opacity 340ms var(--ease), transform 380ms var(--ease);
}

.gallery-marquee:hover .work-tile {
  opacity: 0.52;
}

.gallery-marquee .work-tile:hover {
  opacity: 1;
  transform: translateY(-8px);
}

.work-frame {
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: #f4f4f5;
  box-shadow: 0 18px 44px -24px rgba(15, 23, 42, 0.22);
  transition: box-shadow 360ms var(--ease);
}

.work-tile:hover .work-frame {
  box-shadow: 0 30px 64px -22px rgba(15, 23, 42, 0.34);
}

.work-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 560ms var(--ease);
}

.work-tile:hover .work-frame img {
  transform: scale(1.04);
}

.work-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}

.work-cat {
  font-size: 12px;
  color: var(--muted);
}

.work-info h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* =========================================
   镜头 5：实战课程上架货架（官网直售预留）
   ========================================= */
.chapter-courses {
  padding-top: 0;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.course-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fafafa;
  border: 1px solid var(--line);
  transition: transform 280ms var(--ease), border-color 280ms var(--ease), box-shadow 280ms var(--ease);
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: #d4d4d8;
  box-shadow: 0 22px 50px -28px rgba(0, 0, 0, 0.14);
}

.course-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.course-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.course-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: rgba(22, 119, 255, 0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
}

.course-badge-muted {
  background: var(--pill-bg);
  color: var(--muted);
}

.course-card h3 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.course-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.course-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.course-meta {
  font-size: 13px;
  color: var(--muted);
}

.course-soon {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* 2 人组队弹窗 */
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms var(--ease), visibility 240ms;
}

.team-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.team-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 13, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.team-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 36px 84px -20px rgba(0, 0, 0, 0.35);
  transform: translateY(14px) scale(0.98);
  transition: transform 280ms var(--ease);
}

.team-modal.is-open .team-modal-card {
  transform: translateY(0) scale(1);
}

.team-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.team-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--pill-bg);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.team-close:hover {
  background: var(--pill-hover);
}

.team-modal-card h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.team-modal-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.team-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.team-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 16px;
  border: 1px dashed #d4d4d8;
  background: #fafafa;
  font-size: 13px;
  color: var(--muted);
}

.team-slot.is-filled {
  border-style: solid;
  border-color: rgba(22, 119, 255, 0.25);
  background: #f5f9ff;
  color: var(--ink);
}

.slot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.slot-avatar-empty {
  background: var(--white);
  border: 1px dashed #a1a1aa;
  color: var(--muted);
}

.team-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--pill-bg);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.team-timer strong {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.team-action-btn {
  width: 100%;
  height: 46px;
}

/* =========================================
   镜头 6：滚动逐行点亮宣言
   ========================================= */
.manifesto {
  padding: clamp(88px, 14vh, 176px) 0;
  text-align: center;
}

.manifesto-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 5vh, 52px);
}

.manifesto-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.manifesto-line {
  color: rgba(17, 17, 17, 0.16);
  transition: color 520ms var(--ease), transform 520ms var(--ease);
  transform: translateY(10px);
}

.manifesto-line.is-lit {
  color: var(--ink);
  transform: translateY(0);
}

.manifesto-wordmark-svg {
  width: clamp(120px, 14vw, 176px);
  height: auto;
  aspect-ratio: 408 / 96;
  color: var(--ink);
  opacity: 0.14;
}

/* =========================================
   镜头 6：极简联系区 + 页脚
   ========================================= */
.section-rule {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin-bottom: clamp(44px, 6vh, 68px);
}

.contact {
  padding: 0 0 clamp(80px, 10vh, 128px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-left h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.mail-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.mail-link {
  font-size: 20px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.mail-link:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.copy-pill {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}

.copy-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fafafa;
  font-size: 15px;
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 124px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--ink);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.form-status {
  font-size: 14px;
  min-height: 20px;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page);
}

.footer-card {
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px) calc(32px + env(safe-area-inset-bottom));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #fafafa;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-links a:hover,
.icp-link:hover {
  color: var(--ink);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms var(--ease), transform 680ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   响应式适配
   ========================================= */
@media (max-width: 960px) {
  .nav-pill-group,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .luopan-output-grid,
  .academy-gallery,
  .courses-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .lz-canvas {
    height: 460px;
  }

  .drag-node {
    width: 176px;
    padding: 12px;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 66px;
  }

  .brand-mark-svg {
    width: 24px;
    height: 11px;
  }

  .brand-wordmark-svg {
    width: 76px;
    height: 18px;
  }

  .hero {
    padding: 96px var(--page) 132px;
  }

  .hero-mark-svg {
    width: 34px;
    height: 16px;
  }

  .hero-wordmark-svg {
    width: 102px;
    height: 24px;
  }

  .hero-headline {
    font-size: clamp(28px, 8.2vw, 40px);
    gap: 12px 10px;
  }

  .slot-ghost {
    display: none;
  }

  .hero-actions {
    width: 100%;
    margin-top: 28px;
  }

  .hero-actions a {
    flex: 1 1 132px;
  }

  .dock-shell {
    width: auto;
  }

  .hero-dock {
    width: auto;
    justify-content: center;
    padding: 6px 10px;
  }

  .dock-item {
    padding: 0 14px;
    font-size: 13px;
  }

  .chapter {
    padding: 72px 0;
  }

  .chapter-head {
    gap: 16px;
    margin-bottom: 24px;
  }

  .chapter-head h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .cinema-stage {
    padding: 12px;
    border-radius: 22px;
  }

  .sandbox-window {
    border-radius: 16px;
  }

  .sandbox-topbar {
    padding: 12px 14px;
    gap: 10px;
  }

  .sandbox-mode-switch {
    width: 100%;
    justify-content: space-between;
  }

  .mode-btn {
    flex: 1;
    padding: 0 8px;
    font-size: 12px;
  }

  .luopan-live-view {
    padding: 16px;
  }

  .luopan-presets {
    gap: 8px;
  }

  .preset-chip {
    height: 34px;
    padding: 0 13px;
    font-size: 13px;
  }

  .luopan-prompt-bar {
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  .lz-canvas {
    height: 460px;
  }

  .drag-node {
    width: 156px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .node-title {
    font-size: 13px;
  }

  .node-desc {
    font-size: 11px;
  }

  .node-a {
    left: 4% !important;
    top: 6% !important;
  }

  .node-b {
    left: 26% !important;
    top: 42% !important;
  }

  .node-c {
    left: 48% !important;
    top: 6% !important;
  }

  .edge-pet {
    right: 12px;
    bottom: 12px;
    padding: 6px 12px 6px 8px;
  }

  .lz-cmdk-view {
    padding: 16px;
    min-height: 360px;
  }

  .work-tile {
    width: 212px;
  }

  .manifesto {
    padding: 72px 0;
  }

  .manifesto-text {
    font-size: clamp(28px, 8.2vw, 38px);
  }

  .field-pair {
    grid-template-columns: 1fr;
  }

  .submit-button {
    width: 100%;
  }

  .footer-card {
    border-radius: 22px 22px 0 0;
    gap: 24px;
  }

  .footer-links {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .manifesto-line {
    opacity: 1;
    transform: none;
    color: inherit;
    transition: none;
  }

  .slot-track,
  .cinema-stage,
  .nav-slider {
    transition: none;
  }
}
