/* 领先视频画板 v16.1 · 视觉与交互精修 */
.v15-studio {
  --v17-blue: #0a78ed;
  --v17-blue-deep: #0566cf;
  --v17-ink: #18212c;
  --v17-muted: #758191;
  --v17-line: #dbe3ec;
  --v17-canvas: #eef3f8;
  --v17-card: rgba(255,255,255,.985);
  --v17-shadow: 0 18px 45px rgba(35,53,75,.11), 0 3px 10px rgba(35,53,75,.05);
  background: #f2f5f8;
}

.v15-topbar {
  height: 76px;
  flex-basis: 76px;
  padding: 0 24px;
  background: rgba(255,255,255,.92);
  border-bottom-color: rgba(43,57,74,.09);
  box-shadow: 0 10px 34px rgba(37,52,70,.055);
}
.v15-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(145deg,#32a9ff 0%,#087cf0 58%,#0668d0 100%);
  box-shadow: 0 10px 24px rgba(8,124,240,.24);
}
.v15-project-name small { color: #9aa4b0; font-size: 11px; }
.v15-project-name input { font-size: 16px; font-weight: 760; }
.v15-view-modes { padding: 5px; border: 1px solid #e4e8ee; border-radius: 15px; background: #f0f3f7; }
.v15-view-modes button { height: 38px; border-radius: 11px; font-size: 12px; }
.v15-view-modes button.active { box-shadow: 0 5px 16px rgba(29,43,61,.1); }
.v15-top-actions > button,
.v15-back { width: 40px; height: 40px; border-radius: 13px; }
.v15-top-actions > .v15-save-version { width: auto; padding: 0 15px; }

.v15-shell { grid-template-columns: 112px minmax(0,1fr); }
.v15-palette {
  padding: 18px 11px;
  border-right-color: #e2e7ed;
  background: rgba(255,255,255,.96);
}
.v15-palette-title { padding: 4px 8px 14px; }
.v15-palette-title b { font-size: 14px; }
.v15-palette-title span { margin-top: 5px; font-size: 10px; }
.v15-palette > button {
  height: 62px;
  margin-bottom: 6px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #647081;
  font-size: 11px;
  font-weight: 650;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.v15-palette > button:hover {
  border-color: #cfe2f7;
  background: linear-gradient(180deg,#f7fbff,#edf6ff);
  box-shadow: 0 8px 18px rgba(8,124,240,.08);
}
.v15-palette > button .material-icons-round { font-size: 23px; }

.v15-studio .v13-canvas-toolbar {
  height: 68px;
  min-height: 68px;
  padding: 11px 15px;
  border-bottom-color: #e1e7ee;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(18px);
}
.v15-studio .v13-tool-group {
  padding: 4px;
  gap: 3px;
  border: 1px solid #e5eaf0;
  border-radius: 14px;
  background: #f7f9fb;
}
.v15-studio .v13-tool-group.compact { padding: 4px; border: 1px solid #e5eaf0; }
.v15-studio .v13-tool-group button {
  height: 38px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #5f6b79;
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.v15-studio .v13-tool-group button:hover {
  border-color: #d9e5f1;
  background: #fff;
  box-shadow: 0 5px 14px rgba(39,56,77,.08);
}
.v15-studio .v13-tool-group .v15-run-all {
  border-color: var(--v17-blue);
  background: linear-gradient(180deg,#1688f7,#0876e6);
  box-shadow: 0 8px 20px rgba(8,124,240,.22);
}
.v15-studio .v13-tool-group .v16-template-button {
  border-color: #c9e0f8;
  background: #fff;
  color: #116fc9;
}

.v15-studio .v13-canvas-layout { grid-template-columns: minmax(0,1fr) 356px; }
.v15-studio .v13-canvas-stage {
  background-color: var(--v17-canvas);
  background-image:
    linear-gradient(rgba(255,255,255,.28),rgba(255,255,255,.28)),
    radial-gradient(circle,#bfcbd8 1.15px,transparent 1.25px);
  background-size: auto, 24px 24px;
  box-shadow: inset -1px 0 #dde4ec;
}
.v15-studio .v13-canvas-note {
  top: 16px;
  left: 18px;
  padding: 9px 13px;
  border-color: rgba(202,214,226,.9);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 28px rgba(36,53,75,.1);
  color: #687687;
  font-size: 11px;
}

.v15-studio .v13-node {
  --accent: #64748b;
  width: 304px;
  min-height: 216px;
  padding: 17px;
  overflow: visible;
  border: 1px solid rgba(200,211,222,.92);
  border-radius: 22px;
  background: var(--v17-card);
  box-shadow: var(--v17-shadow);
  cursor: grab;
  backface-visibility: hidden;
  contain: layout style;
  transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.v15-studio .v13-node::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 22px;
  right: 22px;
  height: 3px;
  border-radius: 0 0 5px 5px;
  background: var(--accent);
  opacity: .82;
}
.v15-studio .node-type-brief { --accent: #64748b; }
.v15-studio .node-type-script { --accent: #087cf0; }
.v15-studio .node-type-assets { --accent: #15a36d; }
.v15-studio .node-type-storyboard { --accent: #7059d9; }
.v15-studio .node-type-image { --accent: #815de6; }
.v15-studio .node-type-video { --accent: #ef5b5b; }
.v15-studio .node-type-merge { --accent: #e98a00; }
.v15-studio .node-type-review { --accent: #334155; }
.v15-studio .v13-node:hover {
  border-color: color-mix(in srgb,var(--accent) 35%,#cbd6e1);
  box-shadow: 0 22px 54px rgba(35,53,75,.15),0 4px 12px rgba(35,53,75,.06);
}
.v15-studio .v13-node.selected {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb,var(--accent) 12%,transparent),0 24px 58px rgba(35,53,75,.16);
}
.v15-studio .v13-node.is-dragging {
  z-index: 30;
  cursor: grabbing;
  will-change: transform;
  border-color: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb,var(--accent) 13%,transparent),0 30px 72px rgba(27,43,63,.2);
}
.v15-studio .v13-canvas-stage.is-node-dragging { cursor: grabbing; }
.v15-studio .v13-node-head { gap: 12px; }
.v15-studio .v13-node-head > i {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--node-color) 10%,transparent);
}
.v15-studio .v13-node-head > i .material-icons-round { font-size: 21px; }
.v15-studio .v13-node-head small {
  min-height: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8994a1;
  font-size: 10px;
  font-weight: 680;
  letter-spacing: .02em;
}
.v17-step {
  padding: 2px 6px;
  border-radius: 99px;
  background: color-mix(in srgb,var(--accent) 10%,#f4f7fa);
  color: var(--accent);
  font-size: 9px;
  line-height: 1.3;
}
.v15-studio .v13-node-head strong {
  margin-top: 3px;
  color: var(--v17-ink);
  font-size: 14px;
  line-height: 1.35;
}
.v15-node-more {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 10px;
}
.v15-node-more:hover { border-color: #e1e7ed; background: #f7f9fb; }
.v15-node-placeholder {
  height: 78px;
  margin-top: 14px;
  border-radius: 14px;
  background: linear-gradient(145deg,color-mix(in srgb,var(--node-color) 6%,white),#fbfcfd);
  font-size: 11px;
}
.v15-studio .v13-node > p {
  min-height: 52px;
  margin: 13px 2px 11px;
  color: #5e6b7b;
  font-size: 12px;
  line-height: 1.58;
}
.v15-node-model-chip {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e5eaf0;
  border-radius: 10px;
  background: #f7f9fb;
  color: #5d6876;
  font-size: 10px;
}
.v15-node-model-chip .material-icons-round { color: var(--accent); }
.v15-node-model-chip em {
  padding: 3px 7px;
  border-radius: 99px;
  background: #fff;
  color: #7a8592;
  box-shadow: 0 1px 4px rgba(43,59,78,.08);
}
.v15-studio .v13-node-foot {
  min-height: 40px;
  margin: 10px -3px -4px;
  padding: 10px 3px 0;
  font-size: 10px;
}
.v15-studio .v13-node-foot > span { color: #768290; }
.v15-studio .v13-node-foot > span .material-icons-round { font-size: 15px; }
.v15-studio .v13-node-foot .v17-node-action {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #cfe2f7;
  border-radius: 10px;
  background: linear-gradient(180deg,#f7fbff,#eaf5ff);
  color: #096fce;
  box-shadow: 0 4px 10px rgba(8,124,240,.08);
  font-size: 10px;
  font-weight: 750;
}
.v15-studio .v13-node-foot .v17-node-action:hover {
  border-color: #a9cef2;
  background: #e4f2ff;
  box-shadow: 0 6px 14px rgba(8,124,240,.14);
}
.v15-studio .v13-node-foot .v17-node-action .material-icons-round { font-size: 14px; }
.v15-studio .v13-node-foot .v17-node-action .material-icons-round:last-child { margin-left: -2px; font-size: 13px; }

.v15-studio .v13-port {
  top: 88px;
  width: 20px;
  height: 20px;
  border: 5px solid #fff;
  background: #7799bc;
  box-shadow: 0 0 0 1px #7894b2,0 4px 11px rgba(54,83,115,.2);
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.v15-studio .v13-port.in { left: -11px; }
.v15-studio .v13-port.out { right: -11px; }
.v15-studio .v13-port:hover {
  background: var(--v17-blue);
  box-shadow: 0 0 0 5px rgba(8,124,240,.14),0 5px 12px rgba(8,124,240,.2);
  transform: scale(1.12);
}
.v15-studio .connection-target .v13-port.in {
  background: var(--v17-blue);
  animation: v17PortPulse 1.2s ease-in-out infinite;
}

.v15-studio #v13Edges .v17-edge-rail {
  stroke: rgba(255,255,255,.96);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.v15-studio #v13Edges .v15-edge {
  stroke: #91abc7;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .16s ease,stroke-width .16s ease,filter .16s ease;
}
.v15-studio #v13Edges .v15-edge-preview {
  stroke: var(--v17-blue);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 10 7;
  filter: drop-shadow(0 3px 6px rgba(8,124,240,.28));
}
.v15-studio #v13Edges .v15-edge-hit { stroke-width: 22!important; }
.v15-studio #v13Edges .v15-edge-group:hover .v15-edge,
.v15-studio #v13Edges .v15-edge-group.selected .v15-edge {
  stroke: var(--v17-blue);
  stroke-width: 3.2;
  filter: drop-shadow(0 3px 7px rgba(8,124,240,.32));
}
.v15-studio #v13Edges .v15-edge-group.selected .v17-edge-rail { stroke: rgba(225,241,255,.98); stroke-width: 9; }
.v15-edge-menu {
  min-width: 246px;
  padding: 10px;
  border-radius: 15px;
  box-shadow: 0 20px 50px rgba(29,45,65,.2);
}
.v15-edge-menu > span { font-size: 10px; }
.v15-edge-menu > button { height: 34px; border-radius: 10px; font-size: 10px; }

.v15-minimap {
  width: 132px;
  height: 88px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 30px rgba(36,53,74,.13);
}
.v15-studio .v13-taskbar { height: 46px; flex-basis: 46px; padding: 0 16px; }
.v15-studio .v13-taskbar > div { font-size: 10px; }
.v15-runs { padding: 6px 10px; border-radius: 10px; }
.v15-studio .v13-timeline-head { min-height: 38px; }
.v15-studio .v13-timeline { min-height: 80px; max-height: 88px; padding-top: 8px; padding-bottom: 9px; }
.v15-studio .v13-track-clip { min-width: 224px; border-radius: 14px; background: #f7f9fb; }

.v15-studio .v13-inspector {
  padding: 24px;
  border-left-color: #e0e6ed;
  background: #fbfcfe;
}
.v15-studio .v13-inspector-title {
  margin: -4px -4px 22px;
  padding: 4px 4px 18px;
  border-bottom: 1px solid #e6ebf0;
}
.v15-studio .v13-inspector-title > i { width: 42px; height: 42px; flex-basis: 42px; border-radius: 14px; }
.v15-studio .v13-inspector-title small { font-size: 10px; }
.v15-studio .v13-inspector-title strong { font-size: 16px; }
.v15-node-state { padding: 6px 9px; font-size: 10px; }
.v15-studio .v13-inspector label { margin: 17px 0 7px; color: #5f6c7b; font-size: 11px; }
.v15-studio .v13-inspector .v12-input,
.v15-studio .v13-inspector select {
  height: 48px;
  padding: 0 13px;
  border-radius: 13px;
  font-size: 13px;
}
.v15-studio .v13-inspector .v12-textarea {
  min-height: 190px;
  padding: 14px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.65;
}
.v15-node-model-select {
  min-height: 76px;
  padding: 11px 12px;
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(36,53,73,.04);
}
.v15-studio .v13-inspector-actions {
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e8edf2;
}
.v15-studio .v13-inspector-actions .v12-btn {
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #dfe5eb;
  border-radius: 11px;
  background: #fff;
  color: #465363;
  box-shadow: 0 3px 8px rgba(36,53,73,.04);
  font-size: 11px;
  font-weight: 680;
  transition: border-color .16s ease,background .16s ease,box-shadow .16s ease,color .16s ease;
}
.v15-studio .v13-inspector-actions .v12-btn:hover { border-color: #bdd7ef; background: #f5faff; color: #0c6ec8; box-shadow: 0 5px 12px rgba(8,124,240,.08); }
.v15-studio .v13-inspector-actions .v12-btn.primary { border-color: var(--v17-blue); background: var(--v17-blue); color: #fff; box-shadow: 0 7px 18px rgba(8,124,240,.2); }
.v15-studio .v13-inspector-actions .v12-btn.danger { border-color: #ffd8d5; background: #fff5f4; color: #d33e37; box-shadow: none; }
.v15-production-rule { padding: 14px; border: 1px solid #e3e9ef; border-radius: 14px; background: #f2f6f9; }

@keyframes v17PortPulse {
  0%,100% { box-shadow: 0 0 0 1px #4e9ce8,0 0 0 4px rgba(8,124,240,.08); }
  50% { box-shadow: 0 0 0 1px #4e9ce8,0 0 0 8px rgba(8,124,240,.16); }
}

@media (prefers-reduced-motion: reduce) {
  .v15-studio *,
  .v15-studio *::before,
  .v15-studio *::after { scroll-behavior: auto!important; animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; }
}

@media (max-width: 1500px) {
  .v15-studio .v13-canvas-layout { grid-template-columns: minmax(0,1fr) 336px; }
  .v15-studio .v13-tool-group button span:not(.material-icons-round) { display: none; }
  .v15-studio .v13-tool-group .v15-run-all span:not(.material-icons-round),
  .v15-studio .v13-tool-group .v16-template-button span:not(.material-icons-round) { display: inline; }
}
