/* 本地画布专题：配色与节点形态对齐聚梦画布（深紫黑底、紫色强调、琥珀色连线） */

body.cv-skin {
  --paper: #07060e;
  --paper-2: #100e1c;
  --surface: #16132a;
  --ink: #f4f3ff;
  --muted: rgba(214, 212, 240, 0.66);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #8b7cf8;
  --accent-deep: #c4b5fd;
  --header: rgba(7, 6, 14, 0.82);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --good: #19d3b5;
  /* 顶栏高度：首屏在剩余视口内垂直居中 */
  --cv-nav-h: 69px;
  color: var(--ink);
  background:
    radial-gradient(52vw 42vh at 8% -8%, rgba(139, 124, 248, 0.34), transparent 62%),
    radial-gradient(42vw 36vh at 108% 8%, rgba(22, 92, 190, 0.28), transparent 58%),
    radial-gradient(36vw 32vh at -6% 110%, rgba(18, 150, 150, 0.16), transparent 60%),
    #07060e;
}

body.cv-skin .btn {
  background: #8b7cf8;
  color: #fff;
}
body.cv-skin .btn:hover { background: #a78bfa; }
body.cv-skin .btn-ghost {
  background: transparent;
  color: #f4f3ff;
  border-color: rgba(255, 255, 255, 0.16);
}
body.cv-skin .btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* 页脚：联系我们旁展示交流群 */
body.cv-skin .foot-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
body.cv-skin .foot-qq {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.cv-main { position: relative; }

/* —— 产品首屏（对齐 Ardot：pin 轨道 + 滚动 scrub「环绕 → 产品窗」） —— */
.cv-hero-track {
  position: relative;
  /* pin 一段让环绕散开，随后交给下方真实 #cvWindow */
  height: 155vh;
}

.cv-hero {
  --cv-hero-p: 0;
  position: sticky;
  /* 钉在顶栏下方，高度吃满剩余视口，内容在可视区正中 */
  top: var(--cv-nav-h);
  isolation: isolate;
  height: calc(100vh - var(--cv-nav-h));
  height: calc(100dvh - var(--cv-nav-h));
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: 28px 24px 52px;
  background:
    radial-gradient(54vw 40vh at 50% 18%, rgba(212, 245, 66, calc(0.08 * (1 - var(--cv-hero-p)))), transparent 58%),
    radial-gradient(42vw 36vh at 12% 88%, rgba(6, 182, 212, calc(0.12 * (1 - var(--cv-hero-p) * 0.6))), transparent 60%),
    radial-gradient(38vw 34vh at 92% 78%, rgba(251, 191, 36, calc(0.08 * (1 - var(--cv-hero-p) * 0.6))), transparent 55%),
    #07060e;
}

/* 定制指针开启时：整页隐藏系统光标 */
body.cv-skin.has-cv-cursor,
body.cv-skin.has-cv-cursor * {
  cursor: none !important;
}

.cv-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 78%);
  pointer-events: none;
}

.cv-hero-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
  /* 下滑：环放大散开并虚化退出 */
  transform: scale(calc(1 + var(--cv-hero-p) * 1.65));
  opacity: calc(1 - var(--cv-hero-p) * 1.45);
  filter: blur(calc(var(--cv-hero-p) * 10px));
  transition: none;
}

.cv-hero-ring {
  /* 正圆轨道：宽高同径，避免椭圆感 */
  --orbit-d: min(760px, 78vmin);
  --orbit-w: var(--orbit-d);
  --orbit-h: var(--orbit-d);
  --n: 10;
  position: relative;
  width: var(--orbit-w);
  height: var(--orbit-h);
  animation: cv-hero-spin 48s linear infinite;
}

.cv-hero-slot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(236px, 46vw);
  /* 先占位再抵消自身倾角，交给内层卡片只反转父环 */
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--i) * 360deg / var(--n)))
    translateY(calc(var(--orbit-d) * -0.5))
    rotate(calc(var(--i) * -360deg / var(--n)));
  transform-origin: center center;
  will-change: filter, opacity;
}

.cv-hero-card {
  width: 100%;
  padding: 14px 14px 16px;
  border-radius: 18px;
  background: rgba(18, 16, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  color: #f4f3ff;
  backdrop-filter: blur(10px);
  animation: cv-hero-spin 48s linear infinite reverse;
}

.cv-hero-card-lab {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #0b0a12;
  background: var(--c, #a78bfa);
}

.cv-hero-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(244, 243, 255, 0.9);
}

.cv-hero-ph {
  height: 96px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(6, 182, 212, 0.12)),
    #12101c;
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.cv-hero-film {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.cv-hero-film i {
  display: block;
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2a2438, #15121f);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -12px 0 rgba(251, 113, 133, 0.18);
}

.cv-hero-slot[data-depth="near"] {
  z-index: 3;
  filter: blur(0);
  opacity: 0.96;
}
.cv-hero-slot[data-depth="mid"] {
  z-index: 2;
  filter: blur(1.4px);
  opacity: 0.72;
  scale: 0.94;
}
.cv-hero-slot[data-depth="far"] {
  z-index: 1;
  filter: blur(3.2px);
  opacity: 0.4;
  scale: 0.84;
}

@keyframes cv-hero-spin {
  to { transform: rotate(360deg); }
}

.cv-hero-core {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: min(560px, 94vw);
  padding: 28px 18px;
  /* 下滑：品牌区上移淡出 */
  opacity: calc(1 - var(--cv-hero-p) * 1.35);
  transform: translate3d(0, calc(var(--cv-hero-p) * -48px), 0) scale(calc(1 - var(--cv-hero-p) * 0.12));
  filter: blur(calc(var(--cv-hero-p) * 4px));
  pointer-events: auto;
}
.cv-hero.is-exit .cv-hero-core {
  pointer-events: none;
  visibility: hidden;
}

.cv-hero-brand {
  margin: 0 0 10px;
  font-family: "Fraunces", "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  font-weight: 700;
  font-size: clamp(48px, 7.2vw, 78px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: #f7f4ff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.cv-hero-tag {
  margin: 0 0 14px;
  font-family: "Caveat", "Fraunces", cursive;
  font-weight: 700;
  font-size: clamp(26px, 3.8vw, 38px);
  line-height: 1.15;
  color: #d4f542;
  transform: rotate(-2deg);
  letter-spacing: 0.06em;
}

.cv-hero-core h1 {
  margin: 0 0 22px;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.55;
  color: rgba(244, 243, 255, 0.78);
  letter-spacing: 0.01em;
}

.cv-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cv-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: #f4f3ff;
  color: #0b0a12;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}
.cv-hero-cta:hover {
  transform: translateY(-1px);
  background: #fff;
}
.cv-hero-cta.is-ghost {
  background: transparent;
  color: #f4f3ff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
.cv-hero-cta.is-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cv-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(244, 243, 255, 0.55);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  opacity: calc(1 - var(--cv-hero-p) * 2.2);
  pointer-events: auto;
}
.cv-hero.is-exit .cv-hero-scroll {
  pointer-events: none;
  visibility: hidden;
}
.cv-hero-scroll i {
  width: 14px;
  height: 14px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: cv-hero-bounce 1.6s ease-in-out infinite;
}
@keyframes cv-hero-bounce {
  0%, 100% { translate: 0 0; opacity: 0.45; }
  50% { translate: 0 6px; opacity: 1; }
}

.cv-hero.is-scrubbing .cv-hero-ring,
.cv-hero.is-scrubbing .cv-hero-card {
  animation-play-state: paused;
}
.cv-hero.is-exit .cv-hero-orbit {
  visibility: hidden;
  pointer-events: none;
}

/* 页面级定制指针：节点感圆点 + 光环，可点击时放大 */
.cv-page-pointer {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 22px;
  height: 22px;
  margin: -2px 0 0 -2px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-40px, -40px);
  transition: opacity 0.18s ease;
  will-change: transform;
}
.cv-page-pointer.is-on { opacity: 1; }
.cv-page-pointer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff 0 22%, transparent 24%),
    linear-gradient(145deg, #f8fafc, #d4f542 55%, #34d399);
  box-shadow:
    0 0 0 2px rgba(7, 6, 14, 0.55),
    0 6px 16px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(212, 245, 66, 0.35);
}
.cv-page-pointer::after {
  content: "";
  position: absolute;
  left: -7px;
  top: -7px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 245, 66, 0.45);
  opacity: 0.55;
  transform: scale(0.85);
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}
.cv-page-pointer.is-hot::after {
  opacity: 1;
  transform: scale(1.15);
  border-color: rgba(212, 245, 66, 0.9);
  box-shadow: 0 0 16px rgba(212, 245, 66, 0.35);
}
.cv-page-pointer.is-down::before {
  transform: scale(0.82);
}

.cv-story {
  position: relative;
  scroll-margin-top: 20px;
  width: min(1360px, calc(100% - 28px));
  margin: 0 auto;
  /* 舞台高度：便于垂直居中 */
  --cv-stage-h: min(760px, calc(100vh - 240px));
  --cv-stage-top: max(76px, calc((100vh - min(760px, 100vh - 240px)) / 2));
}

.cv-stage-slot {
  position: sticky;
  top: var(--cv-stage-top);
  z-index: 2;
  height: var(--cv-stage-h);
  margin-left: min(360px, 32vw);
  transform-origin: 50% 50%;
  will-change: transform;
  transition: filter 0.35s ease;
}

.cv-beats {
  position: relative;
  z-index: 3;
  width: min(340px, 32vw);
  margin-top: calc(0px - min(760px, 100vh - 240px));
}

.cv-beat {
  min-height: 100vh;
  display: block;
  padding: 0 8px 0 0;
  opacity: 0.38;
  transition: opacity 0.35s ease;
}

/* 文案钉在视口中段，与右侧舞台垂直对齐 */
.cv-beat-pin {
  position: sticky;
  top: max(100px, calc(var(--cv-stage-top) + var(--cv-stage-h) * 0.28));
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  max-width: 36ch;
  padding: 6px 0 10px;
}

.cv-beat.is-on { opacity: 1; }

.cv-beat h1,
.cv-beat h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  margin-bottom: 12px;
  color: #f7f4ff;
}

.cv-beat p:last-child {
  color: var(--muted);
  font-size: 16px;
  max-width: 36ch;
}

.cv-window {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #08080f;
  border: 1px solid rgba(139, 124, 248, 0.28);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.cv-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  background: rgba(12, 9, 27, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f3ff;
  font-size: 13px;
}

.cv-logo { width: 22px; height: 22px; object-fit: contain; border-radius: 6px; }
.cv-topbar b { font-weight: 650; letter-spacing: 0.01em; }
.cv-crumb { color: rgba(244, 243, 255, 0.45); font-size: 12px; }
.cv-crumb::before { content: "/"; margin-right: 8px; }
.cv-user {
  margin-left: auto;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cv-run {
  background: #8b7cf8;
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 650;
}

.cv-workspace { position: relative; flex: 1; min-height: 0; }

.cv-dock {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 16px;
  background: rgba(16, 16, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
/* 密钥页隐藏 dock；模型广场 / 导演台隐藏 dock + 顶栏，整窗只显示目标界面 */
#cvWindow[data-scene="key"] .cv-dock,
#cvWindow[data-scene="models"] .cv-dock,
#cvWindow[data-scene="director"] .cv-dock {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-12px);
}
#cvWindow[data-scene="models"] .cv-topbar,
#cvWindow[data-scene="director"] .cv-topbar {
  display: none;
}
#cvWindow[data-scene="models"] .cv-workspace,
#cvWindow[data-scene="director"] .cv-workspace {
  /* 顶栏隐藏后占满整窗 */
  height: 100%;
}
#cvWindow[data-scene="models"] .cv-board,
#cvWindow[data-scene="models"] .cv-scene[data-scene="models"],
#cvWindow[data-scene="director"] .cv-board,
#cvWindow[data-scene="director"] .cv-scene[data-scene="director"] {
  inset: 0;
  width: 100%;
  height: 100%;
}
#cvWindow[data-scene="director"] .cv-zoom {
  display: none;
}
#cvWindow[data-scene="models"] .cv-zoom {
  display: none;
}
.cv-dock-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: default;
  padding: 0;
}
.cv-dock-btn.is-on,
.cv-dock-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.cv-dock-gap {
  width: 22px;
  height: 1px;
  margin: 2px 0;
  background: rgba(255, 255, 255, 0.1);
}

.cv-board {
  position: absolute;
  inset: 0;
  background-color: #07070c;
  background-image: radial-gradient(circle, rgba(96, 96, 160, 0.32) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow: hidden;
}

.cv-zoom {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 13, 36, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 243, 255, 0.72);
  font-size: 12px;
}

.cv-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.cv-scene.is-on { opacity: 1; pointer-events: auto; }
/* 未激活场景：子孙一律不接事件（素材库 panel 等 pe:auto 会盖住下层模型广场滚轮） */
.cv-scene:not(.is-on),
.cv-scene:not(.is-on) * {
  pointer-events: none !important;
}

.cv-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.cv-wire-glow,
.cv-wire-track,
.cv-wire-base,
.cv-wire-measure,
.cv-wire-particles,
.cv-wire-head-glow,
.cv-wire-head-core { pointer-events: none; }

.cv-rf { position: absolute; width: 168px; z-index: 2; }
.cv-rf-label {
  display: block;
  margin: 0 0 4px 2px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--nc, #8b7cf8);
}
.cv-rf-card {
  position: relative;
  border-radius: 16px;
  background: rgba(16, 16, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  overflow: visible;
}
/* 对齐画布端口圆点：左输入 / 右输出 */
.cv-rf-card::before,
.cv-rf-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--nc, #8b7cf8);
  border: 2px solid rgba(0, 0, 0, 0.95);
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}
.cv-rf-card::before { left: -10px; }
.cv-rf-card::after { left: calc(100% + 10px); }
.cv-rf-card p {
  margin: 0;
  padding: 10px 12px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(244, 243, 255, 0.86);
  overflow: hidden;
  border-radius: inherit;
}
.cv-rf.media .cv-rf-card {
  overflow: visible;
}
.cv-rf.media .cv-ph {
  border-radius: 12px;
  overflow: hidden;
}
.cv-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 8px;
  min-height: 84px;
}
.cv-story-grid span {
  border-radius: 6px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  min-height: 32px;
}
.cv-rf.media .cv-rf-card::before,
.cv-rf.media .cv-rf-card::after {
  display: block;
}
.cv-rf.media::before,
.cv-rf.media::after {
  display: none;
}

.cv-node-drag {
  left: calc(50% - 268px);
  top: calc(50% - 88px);
  cursor: grab;
  touch-action: none;
  z-index: 2;
}
.cv-node-drag:active { cursor: grabbing; }
.cv-ghost {
  left: calc(50% + 72px);
  top: calc(50% + 8px);
}

.cv-scene[data-scene="nodes"] .n1 { left: 14%; top: 16%; }
.cv-scene[data-scene="nodes"] .n2 { left: 46%; top: 14%; }
.cv-scene[data-scene="nodes"] .n3 { right: 4%; top: 8%; width: 140px; }
.cv-scene[data-scene="nodes"] .n4 { right: 6%; top: 52%; width: 140px; }
.cv-scene[data-scene="nodes"] .n5 { left: 16%; top: 58%; }

.as-node { left: 10%; top: 22%; width: 168px; }

/* —— 画布助手：对齐 LocalAgentPanel（la-*）真实外观 —— */
.cv-assist-wrap {
  --la-bg: #0e0c18;
  --la-fg: #f4f3ff;
  --la-muted: rgba(214, 212, 240, 0.62);
  --la-border: rgba(255, 255, 255, 0.12);
  --la-primary: #8b7cf8;
  --la-popover: rgba(18, 15, 36, 0.94);
  position: absolute;
  right: 3%;
  top: 6%;
  bottom: 8%;
  width: min(300px, 52%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  z-index: 4;
  pointer-events: none;
}
.cv-assist.la-shell {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 1;
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: auto;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--la-border) 80%, var(--la-primary));
  border-radius: 1.15rem;
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--la-primary) 16%, transparent), transparent 55%),
    radial-gradient(90% 60% at 100% 100%, color-mix(in srgb, var(--la-primary) 8%, transparent), transparent 50%),
    var(--la-popover);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.38),
    0 0 0 1px color-mix(in srgb, var(--la-primary) 12%, transparent);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  color: var(--la-fg);
}
.cv-assist.la-shell::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--la-fg) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--la-fg) 4%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 42%);
  opacity: 0.55;
}
.cv-assist .la-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-bottom: 1px solid color-mix(in srgb, var(--la-border) 85%, transparent);
  padding: 0.75rem 0.8rem 0.65rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--la-bg) 35%, transparent), transparent);
}
.cv-assist .la-head-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.cv-assist .la-brand {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 0.5rem;
}
.cv-assist .la-brand-mark {
  display: flex;
  height: 1.85rem;
  width: 1.85rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  background: linear-gradient(145deg, color-mix(in srgb, var(--la-primary) 75%, #fff), var(--la-primary));
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--la-primary) 35%, transparent);
}
.cv-assist .la-brand-text { min-width: 0; }
.cv-assist .la-brand-title {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--la-fg);
}
.cv-assist .la-brand-sub {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--la-muted);
}
.cv-assist .la-icon-btn {
  display: flex;
  height: 1.7rem;
  width: 1.7rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--la-muted);
  padding: 0;
}
.cv-assist .la-selects {
  display: flex;
  gap: 0.35rem;
}
.cv-assist .la-select {
  min-width: 0;
  flex: 1;
  height: 1.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--la-border);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--la-bg) 70%, transparent);
  padding: 0 0.45rem;
  font-size: 0.65rem;
  line-height: 1.6rem;
  color: var(--la-fg);
}
.cv-assist .la-body {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 0;
  flex: 1;
}
.cv-assist .la-messages {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  padding: 0.65rem 0.75rem;
}
.cv-assist .la-bubble {
  max-width: 94%;
  border-radius: 0.85rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.5;
}
.cv-assist .la-bubble.user {
  margin-left: auto;
  border: 1px solid color-mix(in srgb, var(--la-primary) 25%, transparent);
  background: color-mix(in srgb, var(--la-primary) 16%, transparent);
  color: var(--la-fg);
}
.cv-assist .la-bubble.assistant {
  margin-right: auto;
  border: 1px solid color-mix(in srgb, var(--la-border) 80%, transparent);
  background: color-mix(in srgb, rgba(255, 255, 255, 0.06) 45%, transparent);
  color: color-mix(in srgb, var(--la-fg) 92%, transparent);
}
.cv-assist .la-ref-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.35rem;
}
.cv-assist .la-ref-chip {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #06b6d4 45%, transparent);
  background: color-mix(in srgb, #06b6d4 14%, transparent);
  font-size: 0.62rem;
  color: #67e8f9;
}
.cv-assist .la-op {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 94%;
  padding: 0.35rem 0.5rem;
  border-radius: 0.55rem;
  border: 1px solid color-mix(in srgb, #22c55e 35%, transparent);
  background: color-mix(in srgb, #22c55e 10%, transparent);
  font-size: 0.68rem;
  color: color-mix(in srgb, var(--la-fg) 90%, transparent);
}
.cv-assist .la-op-ok {
  display: flex;
  height: 1rem;
  width: 1rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #22c55e;
  color: #052e16;
  font-size: 0.58rem;
  font-weight: 700;
}
.cv-assist .la-op-text { flex: 1; min-width: 0; }
.cv-assist .la-op-locate {
  flex-shrink: 0;
  color: #93c5fd;
  font-size: 0.62rem;
}
.cv-assist .la-foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid color-mix(in srgb, var(--la-border) 80%, transparent);
  background: color-mix(in srgb, var(--la-bg) 40%, transparent);
  padding: 0.5rem 0.55rem 0.6rem;
}
.cv-assist .la-composer {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  border: 1px solid var(--la-border);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--la-bg) 75%, transparent);
  padding: 0.3rem;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--la-fg) 4%, transparent);
}
.cv-assist .la-composer-input {
  flex: 1;
  min-height: 2rem;
  padding: 0.35rem 0.35rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--la-muted);
}
.cv-assist .la-send {
  display: flex;
  height: 2rem;
  width: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  background: var(--la-primary);
  color: #fff;
}
.cv-assist-wrap .la-fab {
  position: relative;
  right: auto;
  bottom: auto;
  align-self: flex-end;
  z-index: 2;
  display: flex;
  height: 2.6rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.85rem 0 0.55rem;
  border: 1px solid color-mix(in srgb, var(--la-primary) 45%, transparent);
  border-radius: 999px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--la-primary) 88%, #0a1620), color-mix(in srgb, var(--la-primary) 55%, #142018));
  color: #fff;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px color-mix(in srgb, var(--la-primary) 20%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.cv-assist-wrap .la-fab-icon {
  display: flex;
  height: 1.65rem;
  width: 1.65rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
.cv-assist-wrap .la-fab-label {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.sk-node { left: 8%; top: 48%; width: 168px; }
.cv-skills {
  position: absolute;
  left: 8%;
  right: 48%;
  top: 12%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 3;
}
.cv-skill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  background: rgba(139, 124, 248, 0.12);
  border: 1px solid rgba(139, 124, 248, 0.35);
  color: #efeaff;
  font-size: 12px;
  font-weight: 650;
  font-family: inherit;
  cursor: default;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cv-skill-ico {
  display: flex;
  height: 1.35rem;
  width: 1.35rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #c4b5fd;
}
.cv-skill.is-on {
  background: rgba(139, 124, 248, 0.28);
  border-color: rgba(167, 139, 250, 0.85);
  box-shadow: 0 0 0 1px rgba(139, 124, 248, 0.25), 0 8px 22px rgba(91, 70, 200, 0.28);
  transform: translateY(-1px);
}
.cv-skill.is-on .cv-skill-ico {
  background: linear-gradient(145deg, color-mix(in srgb, #8b7cf8 70%, #fff), #8b7cf8);
  color: #fff;
}
.cv-assist-wrap--skills {
  right: 2.5%;
  top: 8%;
  bottom: 6%;
  width: min(292px, 46%);
}
.cv-assist .la-select.is-skill {
  border-color: color-mix(in srgb, #8b7cf8 55%, transparent);
  background: color-mix(in srgb, #8b7cf8 14%, transparent);
  color: #efeaff;
}
.cv-assist .la-skill-bar {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid color-mix(in srgb, var(--la-border) 70%, transparent);
  background: color-mix(in srgb, var(--la-primary) 10%, transparent);
  padding: 0.38rem 0.85rem;
  font-size: 0.68rem;
  color: var(--la-fg);
}
.cv-assist .la-skill-bar strong {
  color: #c4b5fd;
  font-weight: 700;
}
.cv-assist .la-bubble strong {
  color: #c4b5fd;
  font-weight: 650;
}

.web-node { left: 12%; top: 10%; width: min(420px, 74%); }
.cv-web { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.cv-web-bar { font-size: 12px; color: rgba(244, 243, 255, 0.55); }
.cv-web-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.cv-ph {
  border: 1px dashed rgba(167, 139, 250, 0.55);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(139, 124, 248, 0.35), rgba(20, 16, 40, 0.2) 55%),
    #161226;
  color: rgba(244, 243, 255, 0.62);
  font-size: 12px;
  display: grid;
  place-items: center;
  min-height: 72px;
  text-align: center;
  padding: 8px;
}
.cv-rf.media .cv-ph { margin: 8px; min-height: 84px; }
.cv-ph.sm { min-height: 56px; }
.cv-ph.tall { min-height: 0; height: 100%; }

/* 真实成片预览：节点内嵌实拍/生成画面 */
.cv-ph-shot {
  position: relative;
  border: 0;
  min-height: 112px;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 42%, rgba(7, 6, 14, 0.78) 100%),
    var(--shot) center / cover no-repeat,
    #161226;
  color: #fff;
  place-items: end start;
  text-align: left;
}
.cv-ph-shot > span {
  position: relative;
  z-index: 1;
  display: block;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.cv-ph-shot.is-video::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(7, 6, 14, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.cv-ph-shot.is-video::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 0;
  height: 0;
  margin: -6px 0 0 -3px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
}
.cv-story-grid span {
  border-style: solid;
  border-color: rgba(168, 85, 247, 0.35);
  background:
    linear-gradient(180deg, transparent 55%, rgba(7, 6, 14, 0.45) 100%),
    var(--shot, none) center / cover no-repeat,
    linear-gradient(145deg, rgba(168, 85, 247, 0.28), rgba(20, 16, 40, 0.2));
}

.cv-path {
  position: absolute;
  left: 14%;
  right: 8%;
  top: 16%;
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 8px;
  align-items: center;
}
.cv-disk, .cv-cloud {
  padding: 16px;
  border-radius: 16px;
  background: rgba(16, 16, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 108px;
}
.cv-disk b, .cv-cloud b { display: block; margin-bottom: 8px; }
.cv-disk code, .cv-cloud span { font-size: 12px; color: rgba(244, 243, 255, 0.55); }
.cv-arrow { height: 2px; background: #f59e0b; position: relative; }
.cv-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: #f59e0b;
}
.cv-window[data-privacy="local"] .cv-cloud { opacity: 0.35; }
.cv-window[data-privacy="local"] .cv-arrow { transform: scaleX(0.15); transform-origin: left center; }
.cv-window[data-privacy="local"] .cv-disk { border-color: rgba(139, 124, 248, 0.7); }
.cv-window[data-privacy="cloud"] .cv-disk { opacity: 0.45; }
.cv-window[data-privacy="cloud"] .cv-cloud { border-color: #f59e0b; }
.cv-toggle {
  position: absolute;
  left: 14%;
  bottom: 16%;
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(16, 13, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cv-toggle button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  color: rgba(244, 243, 255, 0.7);
}
.cv-toggle button.is-on { background: #8b7cf8; color: #fff; }

/* —— 设置页：对齐 /settings 模型服务 —— */
.cv-settings {
  --jm-line: rgba(255, 255, 255, 0.08);
  --jm-line-strong: rgba(255, 255, 255, 0.14);
  --jm-card: rgba(255, 255, 255, 0.035);
  --jm-text: #f4f3ff;
  --jm-text-2: rgba(236, 234, 255, 0.74);
  --jm-muted: rgba(214, 212, 240, 0.55);
  --jm-accent-soft: color-mix(in srgb, #8b7cf8 16%, transparent);
  position: absolute;
  inset: 4% 3% 5%;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  border: 1px solid var(--jm-line);
  border-radius: 16px;
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(139, 124, 248, 0.12), transparent 55%),
    rgba(14, 12, 26, 0.94);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  color: var(--jm-text);
  overflow: hidden;
  z-index: 3;
}
.cv-st-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.cv-st-head p {
  margin: 4px 0 0;
  color: var(--jm-muted);
  font-size: 11px;
}
.cv-st-body {
  display: flex;
  min-height: 0;
  flex: 1;
  gap: 12px;
  margin-top: 12px;
}
.cv-st-nav {
  display: flex;
  width: 118px;
  flex-shrink: 0;
  flex-direction: column;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--jm-line);
  border-radius: 12px;
  background: var(--jm-card);
}
.cv-st-nav button {
  display: flex;
  height: 30px;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--jm-text-2);
  font-size: 11.5px;
  font-family: inherit;
  text-align: left;
  white-space: nowrap;
}
.cv-st-nav button.is-on {
  border-color: color-mix(in srgb, #8b7cf8 55%, transparent);
  background: var(--jm-accent-soft);
  color: color-mix(in srgb, #8b7cf8 55%, #f4f3ff);
}
.cv-st-content {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cv-st-section-head h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
}
.cv-st-section-head p {
  margin: 4px 0 0;
  color: var(--jm-muted);
  font-size: 10.5px;
  line-height: 1.5;
  max-width: 36em;
}
.cv-st-wizard,
.cv-st-connected {
  margin-top: 10px;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.cv-st-wizard h5,
.cv-st-connected h5 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}
.cv-st-muted {
  margin: 0;
  color: var(--jm-muted);
  font-size: 10.5px;
  line-height: 1.45;
}
.cv-st-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
}
.cv-st-steps li {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--jm-line);
  color: var(--jm-muted);
  font-size: 10.5px;
}
.cv-st-steps li.is-on {
  border-color: transparent;
  background: #8b7cf8;
  color: #fff;
  font-weight: 650;
}
.cv-st-platform {
  padding: 10px 12px;
  border: 1px solid var(--jm-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.cv-st-platform.is-on {
  border-color: color-mix(in srgb, #8b7cf8 60%, transparent);
  background: color-mix(in srgb, #8b7cf8 8%, transparent);
}
.cv-st-platform-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 650;
}
.cv-st-platform-row em {
  font-style: normal;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, #8b7cf8 16%, transparent);
  color: #c4b5fd;
  font-size: 10px;
  font-weight: 650;
}
.cv-st-platform p {
  margin: 6px 0 0;
  color: var(--jm-muted);
  font-size: 10.5px;
  line-height: 1.45;
}
.cv-st-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--jm-muted);
  font-size: 10.5px;
}
.cv-st-key {
  display: flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 8px 10px;
  border: 1px solid var(--jm-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--jm-text);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.cv-st-key.is-typing {
  border-color: color-mix(in srgb, #8b7cf8 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, #8b7cf8 14%, transparent);
}
.cv-st-key-text { white-space: pre; }
.cv-st-caret {
  display: inline-block;
  width: 1.5px;
  height: 0.95em;
  margin-left: 1px;
  background: #c4b5fd;
  border-radius: 1px;
  animation: cv-caret 0.9s steps(1) infinite;
  opacity: 0;
}
.cv-st-key.is-typing .cv-st-caret,
.cv-st-key.is-ready .cv-st-caret { opacity: 1; }
.cv-st-key.is-done .cv-st-caret { opacity: 0; animation: none; }
@keyframes cv-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.cv-st-primary {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  padding: 7px 14px;
  border: none;
  border-radius: 8px;
  background: #8b7cf8;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  font-family: inherit;
  cursor: default;
  box-shadow: 0 8px 20px rgba(91, 70, 200, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
}
.cv-st-status {
  opacity: 0.72;
  background: rgba(139, 124, 248, 0.35);
  box-shadow: none;
}
.cv-st-status.is-pulse {
  opacity: 1;
  background: #8b7cf8;
  box-shadow: 0 0 0 0 rgba(139, 124, 248, 0.55);
  animation: cv-key-pulse 1s ease-out 1;
}
.cv-st-status.is-done {
  opacity: 1;
  background: #8b7cf8;
}
@keyframes cv-key-pulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 124, 248, 0.5); transform: scale(1); }
  40% { box-shadow: 0 0 0 10px rgba(139, 124, 248, 0); transform: scale(1.03); }
  100% { box-shadow: 0 0 0 0 rgba(139, 124, 248, 0); transform: scale(1); }
}
.cv-st-primary.is-ghost {
  box-shadow: none;
  pointer-events: none;
}
.cv-st-steps li {
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.cv-st-secondary {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--jm-line);
  border-radius: 8px;
  color: var(--jm-text-2);
  font-size: 12px;
}
.cv-st-card {
  padding: 10px 12px;
  border: 1px solid var(--jm-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.cv-st-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.cv-st-card-title {
  font-size: 13px;
  font-weight: 650;
}
.cv-st-card-meta {
  margin-top: 3px;
  color: var(--jm-muted);
  font-size: 10.5px;
}
.cv-st-card-meta code {
  color: var(--jm-text);
  font-size: 10.5px;
}
.cv-st-card-count {
  margin-top: 5px;
  font-size: 11.5px;
}
.cv-st-card-count span {
  color: var(--jm-muted);
}
.cv-st-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cv-st-card-actions span {
  padding: 4px 9px;
  border: 1px solid var(--jm-line);
  border-radius: 7px;
  color: var(--jm-text-2);
  font-size: 11px;
}
.cv-st-model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.cv-st-model-tags li {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--jm-line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 10.5px;
  color: var(--jm-text);
  opacity: 0.35;
  transition: opacity 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.cv-window.is-lit .cv-st-model-tags li,
.cv-settings.is-lit .cv-st-model-tags li {
  opacity: 1;
  border-color: color-mix(in srgb, #8b7cf8 40%, transparent);
  background: color-mix(in srgb, #8b7cf8 12%, transparent);
}
.cv-st-model-tags li.cv-st-more {
  border-style: dashed;
  color: var(--jm-muted);
  background: transparent;
}
.cv-st-footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.cv-settings.is-lit .cv-st-wizard { display: none; }
.cv-settings.is-lit .cv-st-connected { display: flex; }
.cv-st-connected[hidden] { display: none !important; }
.cv-settings.is-lit .cv-st-connected[hidden] { display: flex !important; }

/* —— 模型广场：外层滚动 + 加高 iframe（可靠滚轮，不依赖跨域内嵌页自滚） —— */
.cv-plaza-embed {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  overflow: hidden;
  z-index: 5;
}
.cv-plaza-chrome {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 3;
}
.cv-plaza-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.55);
}
.cv-plaza-url {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.62);
  letter-spacing: 0.02em;
}
.cv-plaza-embed .cv-plaza-open {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #0b1220;
  background: #d4f542;
  padding: 5px 11px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.cv-plaza-embed .cv-plaza-open:hover { filter: brightness(1.06); }
.cv-plaza-scroller {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: #fff;
  scrollbar-gutter: stable;
}
.cv-plaza-scroller iframe {
  display: block;
  width: 100%;
  /* 加高：把官网整页铺开，由外层 .cv-plaza-scroller 承担滚轮 */
  height: 3200px;
  border: 0;
  background: #fff;
  /* 关键：滚轮命中外层容器，避免被跨域 iframe / 父级 transform 吃掉 */
  pointer-events: none;
}
.cv-plaza-loading {
  position: absolute;
  inset: 40px 0 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.72);
  color: rgba(244, 243, 255, 0.78);
  font-size: 13px;
  pointer-events: none;
  z-index: 2;
}
.cv-plaza-loading[hidden] { display: none !important; }

/* 模型章：舞台不做呼吸位移 / 合成层，避免影响内嵌滚动 */
.cv-stage-slot.is-plaza-locked {
  transform: none !important;
  filter: none !important;
  will-change: auto !important;
}

.mat-node { left: 8%; top: 14%; width: 148px; }
.mat-node2 { right: 6%; top: 18%; width: 140px; }

/* —— 素材库：对齐 MaterialLibraryPanel —— */
#cvWindow[data-scene="materials"] .cv-dock-btn[title="素材库"] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.cv-mlib {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.cv-mlib-panel {
  width: min(720px, 92%);
  max-height: min(520px, 86%);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: rgba(10, 10, 30, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  overflow: hidden;
  /* 指针事件仅在素材章激活时开启，避免盖住模型广场滚轮 */
  pointer-events: none;
}
#cvWindow[data-scene="materials"] .cv-mlib-panel {
  pointer-events: auto;
}
.cv-mlib-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
}
.cv-mlib-x {
  color: rgba(255, 255, 255, 0.35);
  font-size: 16px;
  line-height: 1;
}
.cv-mlib-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cv-mlib-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11.5px;
  font-family: inherit;
  cursor: default;
  transition: background 0.15s, color 0.15s;
}
.cv-mlib-tabs button.is-on {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.cv-mlib-hint {
  margin: 0;
  padding: 8px 14px 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 10.5px;
  line-height: 1.4;
}
.cv-mlib-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 14px 14px;
  overflow: hidden;
  min-height: 0;
  flex: 1;
}
.cv-mlib-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s, transform 0.15s;
}
.cv-mlib-item.is-on {
  border-color: rgba(167, 139, 250, 0.45);
  transform: translateY(-1px);
}
.cv-mlib-thumb {
  aspect-ratio: 1;
  background:
    linear-gradient(145deg, rgba(139, 124, 248, 0.4), rgba(20, 16, 40, 0.35) 55%),
    #12101c;
  display: grid;
  place-items: center;
  color: rgba(244, 243, 255, 0.45);
  font-size: 10px;
  text-align: center;
  padding: 6px;
}
.cv-mlib-item[data-kind="effect"] .cv-mlib-thumb {
  background:
    linear-gradient(145deg, rgba(34, 197, 94, 0.35), rgba(20, 16, 40, 0.4) 55%),
    #0f1a14;
}
.cv-mlib-item[data-kind="character"] .cv-mlib-thumb {
  background:
    linear-gradient(145deg, rgba(245, 158, 11, 0.4), rgba(20, 16, 40, 0.4) 55%),
    #1a140c;
}
.cv-mlib-item[data-kind="prompt"] .cv-mlib-thumb {
  background:
    linear-gradient(145deg, rgba(6, 182, 212, 0.35), rgba(20, 16, 40, 0.4) 55%),
    #0c161a;
}
.cv-mlib-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10.5px;
}

/* —— 导演台：对齐本地 opensource 真实浮层布局 —— */
.cv-dir {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #000;
  color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  font-size: 12px;
}
.cv-dir-page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
}
.cv-dir-page-l {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cv-dir-back { color: rgba(255, 255, 255, 0.7); font-size: 13px; }
.cv-dir-sep, .cv-dir-dot { color: rgba(255, 255, 255, 0.25); }
.cv-dir-clapper { font-size: 14px; color: #a5b4fc; }
.cv-dir-page-l strong {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.cv-dir-proj {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
.cv-dir-page-r {
  margin: 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
}

.cv-dir-console {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #08080f;
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-top: 0;
}
.cv-dir-bar {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 12px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 18, 0.92);
}
.cv-dir-bar-l {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cv-dir-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #d946ef);
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.3);
  flex-shrink: 0;
}
.cv-dir-bar-l b {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.9);
}
.cv-dir-bar-l small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}
.cv-dir-bar-l small i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #34d399;
  display: inline-block;
}
.cv-dir-stats {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}
.cv-dir-stats .s-char { color: #a5b4fc; }
.cv-dir-stats .s-prop { color: #6ee7b7; }
.cv-dir-stats .s-cam { color: #fcd34d; }
.cv-dir-ai {
  margin-left: auto;
  border: 0;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: default;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #d946ef);
  box-shadow: 0 8px 22px rgba(217, 70, 239, 0.25);
}

/* 舞台：视口与面板同层绝对定位，胶片条叠在视口底部 */
.cv-dir-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #08080f;
}

.cv-dir-viewport {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: calc(16rem + 1.5rem);
  right: calc(18rem + 1.5rem);
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(ellipse 65% 45% at 50% 70%, rgba(99, 102, 241, 0.16), transparent 70%),
    linear-gradient(180deg, #141422 0%, #0c0c14 50%, #08080f 100%);
}
.cv-dir-letterbox {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#08080f, #08080f) top / 100% 14% no-repeat,
    linear-gradient(#08080f, #08080f) bottom / 100% 14% no-repeat;
  opacity: 0.72;
  pointer-events: none;
  z-index: 3;
}
.cv-dir-floor {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 18%;
  height: 48%;
  transform: perspective(640px) rotateX(64deg);
  transform-origin: center bottom;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 32px 32px,
    #d4d4d8;
  opacity: 0.55;
  z-index: 1;
}
.cv-dir-mannequin {
  position: absolute;
  left: 48%;
  bottom: 30%;
  width: 46px;
  height: 108px;
  transform: translateX(-50%);
  z-index: 2;
  background:
    radial-gradient(circle at 50% 12%, #e0e7ff 0 9px, transparent 10px),
    linear-gradient(180deg, transparent 16px, #c7d2fe 16px 40px, transparent 40px),
    linear-gradient(180deg, transparent 38px, #a5b4fc 38px 78px, transparent 78px),
    linear-gradient(90deg, transparent 16px, #818cf8 16px 30px, transparent 30px);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
  opacity: 0.85;
}
.cv-dir-mannequin::before,
.cv-dir-mannequin::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 9px;
  height: 32px;
  border-radius: 5px;
  background: #818cf8;
}
.cv-dir-mannequin::before { left: 10px; transform: rotate(6deg); }
.cv-dir-mannequin::after { right: 10px; transform: rotate(-6deg); }
.cv-dir-m2 {
  left: 58%;
  bottom: 28%;
  transform: translateX(-50%) scale(0.92);
  opacity: 0.55;
  filter: hue-rotate(40deg) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.3));
}
.cv-dir-cam {
  position: absolute;
  right: 22%;
  top: 36%;
  width: 22px;
  height: 14px;
  border-radius: 3px;
  z-index: 2;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}
.cv-dir-frustum {
  position: absolute;
  right: 28%;
  top: 32%;
  width: 0;
  height: 0;
  z-index: 2;
  border-style: solid;
  border-width: 28px 48px 28px 0;
  border-color: transparent rgba(251, 146, 60, 0.35) transparent transparent;
  filter: drop-shadow(0 0 8px rgba(251, 146, 60, 0.25));
}
.cv-dir-aspect-tag {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 4;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.cv-dir-still { display: none; }

.cv-dir-hud {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.cv-dir-hud {
  /* 居中胶囊：落在两侧面板之间的视口上方 */
  width: max-content;
  max-width: calc(100% - 16rem - 18rem - 3rem);
  margin-left: auto;
  margin-right: auto;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  white-space: nowrap;
}

/* 玻璃浮层：贴舞台左右 */
.cv-dir-outliner,
.cv-dir-inspector {
  position: absolute;
  top: 12px;
  bottom: 12px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 13, 21, 0.78);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.cv-dir-outliner { left: 12px; width: 16rem; }
.cv-dir-inspector { right: 12px; width: 18rem; padding: 0; gap: 0; }

.cv-dir-panel-h {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}
.cv-dir-panel-h em {
  margin-left: auto;
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}
.cv-dir-add {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.cv-dir-add span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0 7px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}
.cv-dir-add span i {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: block;
}
.cv-dir-add .tile-char i { box-shadow: inset 0 0 0 1px rgba(165, 180, 252, 0.35); }
.cv-dir-add .tile-prop i { box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.35); }
.cv-dir-add .tile-cam i { box-shadow: inset 0 0 0 1px rgba(252, 211, 77, 0.35); }
.cv-dir-add .tile-ai i { box-shadow: inset 0 0 0 1px rgba(240, 171, 252, 0.35); }

.cv-dir-search {
  position: relative;
  display: block;
}
.cv-dir-search span {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}
.cv-dir-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 7px 8px 7px 26px;
  font-size: 12px;
  outline: none;
}
.cv-dir-groups {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cv-dir-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cv-dir-group > b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding: 2px 2px;
}
.cv-dir-group > b em {
  margin-left: auto;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
}
.cv-dir-group .dot-char,
.cv-dir-group .dot-prop,
.cv-dir-group .dot-cam {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  display: inline-block;
}
.dot-char { background: #818cf8; }
.dot-prop { background: #34d399; }
.dot-cam { background: #fbbf24; }

.cv-dir-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  text-align: left;
  padding: 7px 8px;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  cursor: pointer;
  width: 100%;
}
.cv-dir-row:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.cv-dir-row.is-on {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.25), rgba(99, 102, 241, 0.05));
  color: #fff;
}
.cv-dir-row.is-on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 99px;
  background: #818cf8;
}
.cv-dir-row.cv-dir-cam-row.is-on {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.04));
}
.cv-dir-row.cv-dir-cam-row.is-on::before { background: #fbbf24; }
.cv-dir-row .ic-char,
.cv-dir-row .ic-cam {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
  background: rgba(129, 140, 248, 0.35);
}
.cv-dir-row .ic-cam { background: rgba(251, 191, 36, 0.4); }
.cv-dir-row em {
  margin-left: auto;
  font-style: normal;
  font-size: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: rgba(252, 211, 77, 0.75);
}

.cv-dir-insp-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cv-dir-insp-ico {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.cv-dir-insp-h > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.cv-dir-insp-h span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.cv-dir-insp-h small {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}
.cv-dir-insp-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cv-dir-insp-tabs button {
  flex: 1;
  border: 0;
  border-radius: 8px;
  padding: 6px 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  cursor: default;
}
.cv-dir-insp-tabs button.is-on {
  background: rgba(99, 102, 241, 0.25);
  color: #fff;
}
.cv-dir-insp-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.cv-dir-sec {
  margin: 4px 0 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}
.cv-dir-slider {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}
.cv-dir-slider em { font-style: normal; color: rgba(255, 255, 255, 0.85); }
.cv-dir-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.cv-dir-track i {
  display: block;
  height: 100%;
  background: #6366f1;
  border-radius: 99px;
}
.cv-dir-xyz {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.cv-dir-xyz span {
  text-align: center;
  padding: 6px 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.45);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}
.cv-dir-pano {
  height: 56px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(120deg, rgba(99, 102, 241, 0.35), rgba(217, 70, 239, 0.2)),
    #1a1a28;
}
.cv-dir-ghost {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
  padding: 7px 8px;
  font-size: 11px;
  cursor: default;
}
.cv-dir-toggles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cv-dir-toggles span {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}
.cv-dir-toggles b {
  font-weight: 550;
  color: rgba(165, 180, 252, 0.9);
}
.cv-dir-tip {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  line-height: 1.5;
}

/* 胶片条 + 控制坞：浮在视口底部中央 */
.cv-dir-bottom {
  position: absolute;
  left: calc(16rem + 1.5rem);
  right: calc(18rem + 1.5rem);
  bottom: 24px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  padding: 0 12px;
}
.cv-dir-strip {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding: 10px 4px 2px;
  pointer-events: auto;
  scrollbar-width: thin;
}
.cv-dir-film {
  width: 88px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #0a0a12;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cv-dir-film.is-on {
  transform: translateY(-8px);
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 8px 28px rgba(251, 191, 36, 0.25);
}
.cv-dir-perf {
  display: block;
  height: 7px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0 6px, transparent 6px 10px),
    rgba(0, 0, 0, 0.7);
}
.cv-dir-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #3f3f56, #12121c);
}
.cv-dir-thumb.t0 { background: linear-gradient(145deg, #4338ca, #1e1b4b 60%); }
.cv-dir-thumb.t1 { background: linear-gradient(145deg, #7c3aed, #2e1065 60%); }
.cv-dir-thumb.t2 { background: linear-gradient(145deg, #db2777, #4a044e 60%); }
.cv-dir-thumb.t3 { background: linear-gradient(145deg, #0891b2, #083344 60%); }
.cv-dir-thumb em {
  position: absolute;
  left: 4px;
  top: 4px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.6);
  color: #fde68a;
  font-style: normal;
  font-size: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.cv-dir-thumb b {
  position: absolute;
  right: 4px;
  top: 4px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.cv-dir-film-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.6);
}
.cv-dir-film.is-on .cv-dir-film-meta { background: rgba(251, 191, 36, 0.15); }
.cv-dir-film-meta b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.8);
}
.cv-dir-film-meta em {
  font-style: normal;
  font-size: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: rgba(255, 255, 255, 0.4);
}
.cv-dir-film-add {
  width: 56px;
  height: 84px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  cursor: default;
  pointer-events: none;
}
.cv-dir-film-add span { font-size: 16px; line-height: 1; }

.cv-dir-dock {
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 13, 21, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.cv-dir-modes {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
}
.cv-dir-modes span {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}
.cv-dir-modes span.is-on {
  color: #fff;
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.4), rgba(99, 102, 241, 0.25));
}
.cv-dir-modes kbd {
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.35);
}
.cv-dir-modes span.is-on kbd {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}
.cv-dir-dock-sep {
  width: 1px;
  height: 22px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.1);
}
.cv-dir-ico {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}
.cv-dir-aspect {
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.cv-dir-shutter {
  width: 36px;
  height: 36px;
  border-radius: 99px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: radial-gradient(circle at 50% 50%, #f87171 0 11px, transparent 12px);
  box-shadow: inset 0 0 0 4px rgba(8, 8, 15, 0.92), 0 0 16px rgba(244, 63, 94, 0.45);
}

@media (max-width: 1100px) {
  .cv-dir-outliner { width: 13.5rem; }
  .cv-dir-inspector { width: 14.5rem; }
  .cv-dir-viewport,
  .cv-dir-bottom {
    left: calc(13.5rem + 1.25rem);
    right: calc(14.5rem + 1.25rem);
  }
}
@media (max-width: 900px) {
  .cv-dir-outliner,
  .cv-dir-inspector { display: none; }
  .cv-dir-viewport { left: 8px; right: 8px; }
  .cv-dir-bottom { left: 8px; right: 8px; }
  .cv-dir-stats { display: none; }
  .cv-dir-page-r { display: none; }
}


.cv-rail {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 8px 12px 12px;
  background: #08080f;
}
.cv-rail button {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}
.cv-rail button.is-on { width: 22px; background: #8b7cf8; }

/* —— 滚动装置：文案表演 / 舞台框 / 场景能量 —— */
.cv-stage-slot {
  transform-origin: 50% 42%;
  will-change: transform;
  transition: filter 0.35s ease;
}
.cv-stage-slot.is-breaking {
  filter: drop-shadow(0 0 28px rgba(139, 124, 248, 0.45)) drop-shadow(0 18px 50px rgba(217, 70, 239, 0.2));
}
.cv-window {
  position: relative;
  transition: box-shadow 0.45s ease, border-color 0.45s ease;
}
.cv-window[data-weight="hard"] {
  border-color: rgba(167, 139, 250, calc(0.28 + var(--cv-p, 0) * 0.35));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 calc(20px + var(--cv-p, 0) * 40px) rgba(139, 124, 248, calc(0.12 + var(--cv-p, 0) * 0.28)),
    0 0 calc(8px + var(--cv-x, 0) * 36px) rgba(217, 70, 239, calc(var(--cv-x, 0) * 0.35));
}
.cv-stage-aura {
  pointer-events: none;
  position: absolute;
  inset: -18% -12%;
  z-index: 0;
  opacity: calc(0.25 + var(--cv-p, 0) * 0.55 + var(--cv-x, 0) * 0.35);
  background:
    radial-gradient(ellipse 55% 40% at 30% 20%, rgba(99, 102, 241, 0.45), transparent 70%),
    radial-gradient(ellipse 50% 45% at 78% 70%, rgba(217, 70, 239, 0.28), transparent 68%),
    radial-gradient(ellipse 40% 35% at 50% 100%, rgba(34, 211, 238, 0.18), transparent 70%);
  filter: blur(18px);
  mix-blend-mode: screen;
  transition: opacity 0.2s linear;
}
.cv-window > .cv-topbar,
.cv-window > .cv-workspace {
  position: relative;
  z-index: 1;
}

.cv-beat {
  --cv-p: 0;
  --cv-dist: 0;
  opacity: 0.22;
  transition: opacity 0.45s ease;
}
.cv-beat.is-on {
  opacity: 1;
}
.cv-beat.is-near:not(.is-on) {
  opacity: 0.48;
}
.cv-beat-pin {
  transition: transform 0.35s ease, filter 0.35s ease;
}
.cv-beat:not(.is-on) .cv-beat-pin {
  transform: translate3d(0, 14px, 0) scale(0.985);
  filter: blur(0.35px);
}
.cv-beat.is-on .cv-beat-pin {
  transform: none;
  filter: none;
}
.cv-beat.is-peak .cv-beat-pin {
  filter: none;
}
.cv-beat.is-scrub .cv-fx-line {
  text-shadow: 0 0 24px rgba(167, 139, 250, 0.35);
}
.cv-fx-line {
  --i: 0;
  opacity: calc(0.2 + var(--cv-p, 0) * 0.8);
  transform: translate3d(
      calc((1 - var(--cv-p, 0)) * -12px + var(--i) * -3px),
      calc((1 - var(--cv-p, 0)) * 10px),
      0
    )
    skewX(calc((1 - var(--cv-p, 0)) * -2deg));
  filter: blur(calc((1 - var(--cv-p, 0)) * 2px));
  transition: opacity 0.2s linear, transform 0.2s linear, filter 0.2s linear;
}
/* 滚到画面中段时文案最清晰 */
.cv-beat.is-peak .cv-fx-line {
  opacity: 1;
  transform: none;
  filter: none;
  text-shadow: 0 0 18px rgba(167, 139, 250, 0.18);
}
.cv-beat.is-on .cv-fx-line {
  transition-delay: calc(var(--i) * 40ms);
}
.cv-beat .kicker {
  letter-spacing: calc(0.08em + var(--cv-p, 0) * 0.18em);
  color: color-mix(in srgb, #a78bfa 70%, #fff calc(var(--cv-p, 0) * 40%));
}

.cv-scene {
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
  transform: scale(0.985) translateY(8px);
  filter: blur(1.5px) saturate(0.85);
}
.cv-scene.is-on {
  transform: scale(calc(0.99 + var(--cv-p, 0) * 0.02)) translateY(0);
  filter: none;
}
.cv-scene[data-energy="low"].is-on {
  filter: saturate(0.92);
}

.cv-rf {
  --cv-appear: 1;
  opacity: calc(0.25 + var(--cv-appear, 1) * 0.75);
  transform: translate3d(0, calc((1 - var(--cv-appear, 1)) * 22px), 0) scale(calc(0.92 + var(--cv-appear, 1) * 0.08));
  filter: blur(calc((1 - var(--cv-appear, 1)) * 3px));
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease, box-shadow 0.3s ease;
}
.cv-rf.is-lit .cv-rf-card {
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px color-mix(in srgb, var(--nc, #8b7cf8) 55%, transparent),
    0 0 28px color-mix(in srgb, var(--nc, #8b7cf8) 35%, transparent);
}
.cv-rf.is-lit .cv-rf-label {
  text-shadow: 0 0 12px color-mix(in srgb, var(--nc, #8b7cf8) 65%, transparent);
}

#cvWindow[data-scene="assistant"] .cv-assist,
#cvWindow[data-scene="skills"] .cv-assist {
  transform: translate3d(calc((1 - var(--cv-p, 1)) * 24px), 0, 0);
  box-shadow: 0 0 calc(var(--cv-p, 0) * 40px) rgba(139, 124, 248, calc(var(--cv-p, 0) * 0.35));
  transition: transform 0.25s linear, box-shadow 0.25s linear;
}
#cvWindow[data-scene="local"] .cv-toggle,
#cvWindow[data-scene="local"] .cv-path {
  opacity: calc(0.35 + var(--cv-p, 0) * 0.65);
  transform: scale(calc(0.96 + var(--cv-p, 0) * 0.04));
  filter: drop-shadow(0 0 calc(var(--cv-p, 0) * 18px) rgba(25, 211, 181, calc(var(--cv-p, 0) * 0.45)));
}
#cvWindow[data-scene="key"] .cv-settings {
  transform: translateY(calc((1 - var(--cv-p, 1)) * 16px)) scale(calc(0.97 + var(--cv-p, 0) * 0.03));
  filter: drop-shadow(0 0 calc(var(--cv-p, 0) * 30px) rgba(167, 139, 250, calc(var(--cv-p, 0) * 0.4)));
}
#cvWindow[data-scene="web"] .cv-browser {
  transform: perspective(900px) rotateX(calc((1 - var(--cv-p, 1)) * 6deg)) scale(calc(0.96 + var(--cv-p, 0) * 0.04));
  box-shadow: 0 20px calc(30px + var(--cv-p, 0) * 40px) rgba(0, 0, 0, 0.45);
}
#cvWindow[data-scene="materials"] .cv-mlib {
  transform: translateY(calc((1 - var(--cv-p, 1)) * 20px));
  filter: drop-shadow(0 0 calc(var(--cv-p, 0) * 24px) rgba(139, 124, 248, 0.25));
}
#cvWindow[data-scene="materials"] .cv-mlib-item.is-on {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.35);
}
#cvWindow[data-scene="director"] .cv-dir {
  filter: drop-shadow(0 0 calc(var(--cv-p, 0) * 28px) rgba(251, 191, 36, calc(var(--cv-p, 0) * 0.22)));
}
#cvWindow[data-weight="soft"] {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.cv-rail button.is-on {
  width: 22px;
  background: linear-gradient(90deg, #6366f1, #d946ef);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.55);
}

/* —— 自动演示：假指针 + 点击波纹 / 焦点环 —— */
.cv-demo-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 80;
  opacity: 0;
  transform: translate(-40px, -40px);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  background:
    radial-gradient(circle at 35% 30%, #fff 0 18%, transparent 19%),
    linear-gradient(145deg, #f8fafc, #a78bfa 55%, #6366f1);
  box-shadow:
    0 0 0 2px rgba(15, 12, 30, 0.55),
    0 8px 18px rgba(0, 0, 0, 0.35);
}
.cv-demo-cursor.is-on { opacity: 0.95; }
.cv-demo-cursor.is-click {
  animation: cv-demo-pulse-dot 0.28s ease-out;
}
.cv-demo-cursor::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, 0.55);
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
}
.cv-demo-cursor.is-click::after {
  animation: cv-demo-ripple 0.45s ease-out;
}

@keyframes cv-demo-pulse-dot {
  0%, 100% { filter: brightness(1); }
  45% { filter: brightness(1.35); }
}
@keyframes cv-demo-ripple {
  0% { opacity: 0.7; transform: scale(0.35); }
  100% { opacity: 0; transform: scale(1.35); }
}

.is-demo-hit {
  box-shadow:
    0 0 0 2px rgba(167, 139, 250, 0.55),
    0 0 22px rgba(139, 124, 248, 0.45) !important;
  filter: brightness(1.08);
}
.is-demo-focus {
  z-index: 6 !important;
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.06) saturate(1.08);
}
.is-demo-focus.cv-rf .cv-rf-card,
.cv-rf.is-demo-focus .cv-rf-card {
  box-shadow:
    0 0 0 2px rgba(251, 191, 36, 0.55),
    0 12px 28px rgba(0, 0, 0, 0.35) !important;
}
.is-demo-tap {
  animation: cv-demo-tap 0.48s ease-out;
}
.cv-dock-btn.is-demo-hit {
  background: rgba(139, 124, 248, 0.28);
  color: #fff;
}
.cv-run.is-demo-tap {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.45), 0 0 24px rgba(34, 197, 94, 0.35);
}
.la-op.is-demo-hit {
  outline: 2px solid rgba(34, 197, 94, 0.7);
  outline-offset: 2px;
  border-radius: 8px;
}
.la-send.is-demo-tap {
  filter: brightness(1.25);
  transform: scale(1.08);
}
.cv-dir-ai.is-demo-hit {
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.6), 0 0 20px rgba(251, 191, 36, 0.35);
}
.cv-ph.is-demo-focus {
  outline: 2px solid rgba(167, 139, 250, 0.65);
  outline-offset: 2px;
  border-radius: 10px;
}

@keyframes cv-demo-tap {
  0% { filter: brightness(1); }
  35% { filter: brightness(1.22); transform: scale(1.04); }
  100% { filter: brightness(1); transform: scale(1); }
}

@media (max-width: 900px) {
  .cv-hero-track { height: 140vh; }
  .cv-hero {
    min-height: 480px;
    padding: 20px 16px 48px;
  }
  .cv-hero-ring {
    --orbit-d: min(520px, 86vmin);
    --orbit-w: var(--orbit-d);
    --orbit-h: var(--orbit-d);
  }
  .cv-hero-slot { width: min(176px, 48vw); }
  .cv-page-pointer { display: none !important; }
  body.cv-skin.has-cv-cursor,
  body.cv-skin.has-cv-cursor * { cursor: auto !important; }
  .cv-hero-core { max-width: min(520px, 92vw); }
  .cv-hero-brand { font-size: clamp(40px, 11vw, 64px); }
  .cv-stage-slot {
    margin-left: 0;
    height: min(46vh, 400px);
    top: max(68px, calc((100vh - min(46vh, 400px)) / 2));
    transform: none !important;
  }
  .cv-beats {
    width: 100%;
    margin-top: calc(0px - min(46vh, 400px));
    padding-top: calc(min(46vh, 400px) + 16px);
  }
  .cv-beat { min-height: 70vh; padding: 0; }
  .cv-beat-pin { position: relative; top: auto; max-width: none; }
  .cv-user, .cv-crumb { display: none; }
  .cv-path { grid-template-columns: 1fr; }
  .cv-arrow { width: 2px; height: 28px; justify-self: center; }
  .cv-shots { grid-template-columns: 1fr 1fr; }
  .cv-fx-line { transform: none; filter: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cv-dir-film { transition: none; }
  .cv-scene, .cv-beat, .cv-fx-line, .cv-rf { transition: none !important; transform: none !important; filter: none !important; }
  .cv-stage-slot { transform: none !important; filter: none !important; }
  .cv-st-caret, .cv-st-status.is-pulse { animation: none; }
  .cv-stage-aura { display: none; }
  .cv-demo-cursor { display: none !important; }
  .is-demo-hit, .is-demo-focus, .is-demo-tap { animation: none !important; transform: none !important; filter: none !important; }
  .cv-hero-ring,
  .cv-hero-card,
  .cv-hero-scroll i { animation: none !important; }
  .cv-hero-slot { filter: none !important; opacity: 0.85 !important; scale: 1 !important; }
  .cv-hero-track { height: auto; }
  .cv-hero {
    position: relative;
    top: auto;
    height: auto;
    min-height: calc(100vh - var(--cv-nav-h));
  }
  .cv-hero-orbit {
    opacity: 0.85 !important;
    transform: none !important;
    filter: none !important;
  }
  .cv-hero-core {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    visibility: visible !important;
  }
  .cv-page-pointer { display: none !important; }
  body.cv-skin.has-cv-cursor,
  body.cv-skin.has-cv-cursor * { cursor: auto !important; }
}
