/* ========== 第二到四屏：创作方式滚动展示 ========== */
.showcase { position: relative; }

/* 整块标题 */
.showcase-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
}
.showcase-title::before,
.showcase-title::after {
  content: "";
  width: 110px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c3cde4);
}
.showcase-title::after { background: linear-gradient(90deg, #c3cde4, transparent); }

/* ---- 场景通用 ---- */
.scene-head { margin-bottom: 24px; }
.scene-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.scene-tag .num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary);
}
.scene-tag .name {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-primary);
}
.scene-heading {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.scene-sub {
  font-size: 14px;
  color: #8a94a8;
  letter-spacing: 1px;
}

/* 面板流 */
.panels { display: flex; align-items: stretch; gap: 16px; }
.panel {
  background: #fff;
  border: 1px solid #e6ecf7;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.panel-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-title .icon { color: #c4cfe6; font-style: normal; font-size: 14px; }
.chev {
  align-self: center;
  flex: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
}
.chev svg { width: 15px; height: 15px; }

/* 深色缩略图占位（g1~g8 渐变变体） */
.thumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: #0f172a;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.g1 { background-image: linear-gradient(135deg, #1e293b, #0f172a 55%, #312e81); }
.g2 { background-image: linear-gradient(135deg, #0f172a, #134e4a); }
.g3 { background-image: linear-gradient(135deg, #111827, #0c4a6e); }
.g4 { background-image: linear-gradient(135deg, #1f2937, #4c1d95); }
.g5 { background-image: linear-gradient(135deg, #0f172a, #7c2d12); }
.g6 { background-image: linear-gradient(135deg, #111827, #1e3a8a); }
.g7 { background-image: linear-gradient(180deg, #172033, #0b1020); }
.g8 { background-image: linear-gradient(135deg, #1a2440, #101a33); }
.thumb[data-video-src] { cursor: pointer; }
.thumb[data-video-src]:focus-visible {
  outline: 3px solid rgba(var(--color-primary-rgb), 0.45);
  outline-offset: 3px;
}

/* 播放按钮 */
.has-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}
.has-play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-38%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #0f172a;
  z-index: 1;
}
/* 格子小图用小型播放按钮 */
.thumb-grid .has-play::after { width: 24px; height: 24px; }
.thumb-grid .has-play::before { border-width: 4.5px 0 4.5px 7px; }

/* 底部步骤标签：份数、间距与面板一一对应，保证对齐 */
.steps {
  list-style: none;
  display: flex;
  gap: 16px;
  margin-top: 26px;
}
.steps li {
  color: var(--color-primary);
  font-size: 14.5px;
  font-weight: 600;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.steps .sp { flex: none; width: 15px; } /* 与面板间箭头同宽 */
.steps li.multi > span { flex: 1; display: flex; justify-content: center; }
.steps .pill {
  background: #e6edff;
  border-radius: 999px;
  padding: 7px 18px;
}
.s1 .steps .c-import { flex: 1.05; }
.s1 .steps .c-understand { flex: 1; }
.s1 .steps .c-script { flex: 0.95; }
.s1 .steps .c-video { flex: 1.55; }
.s2 .steps .c-text { flex: 0.95; }
.s2 .steps .c-match { flex: 1.05; }
.s2 .steps .c-assets { flex: 1.25; }
.s2 .steps .c-mix { flex: 1.3; }
.s3 .steps .c-library { flex: 1.2; }
.s3 .steps .c-graph { flex: 1; }
.s3 .steps .c-deep { flex: 1.8; }

/* ---- 场景 01：AI智能视频解说 ---- */
.s1 .p-import { flex: 1.05; }
.s1 .p-understand { flex: 1; }
.s1 .p-script { flex: 0.95; }
.s1 .p-video { flex: 1.55; }

.thumb-grid { display: grid; gap: 10px; flex: 1; }
.thumb-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.thumb-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.thumb-grid .thumb { aspect-ratio: 16 / 10; }

.panel-action {
  align-self: center;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.panel-action.outline {
  border: 1px solid #c8d6f8;
  border-radius: 999px;
  padding: 8px 20px;
  transition: box-shadow .2s, border-color .2s;
}
.panel-action.outline:hover { border-color: var(--color-primary); box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.12); }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 16px; flex: 1; justify-content: center; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 11px;
  line-height: 19px;
  text-align: center;
}
.check-list b { display: block; font-size: 14px; margin-bottom: 3px; }
.check-list span { font-size: 12.5px; color: #6b7686; }

.script-text {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.9;
  color: #4b5563;
}

.video-main { aspect-ratio: 16 / 9; margin-bottom: 10px; }
.video-main .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  color: #fff;
  font-size: 13px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.75));
  z-index: 2;
}

/* ---- 场景 02：文案智能成片 ---- */
.s2 .p-text { flex: 0.95; }
.s2 .p-match { flex: 1.05; overflow: hidden; } /* 光圈扩散不超出面板 */
.s2 .p-assets { flex: 1.25; }
.s2 .p-mix { flex: 1.3; }

.text-body { flex: 1; font-size: 13.5px; line-height: 1.9; color: #4b5563; }
.text-count { margin-top: 12px; font-size: 12.5px; color: #9aa7c2; }

/* 雷达匹配 */
.radar { position: relative; flex: 1; min-height: 300px; }
/* 静态柔光晕（无描边，径向渐变圆盘叠出层次） */
.radar::before,
.radar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}
.radar::before {
  width: 330px;
  height: 330px;
  background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.10) 0%, rgba(var(--color-primary-rgb), 0.05) 55%, transparent 72%);
}
.radar::after {
  width: 215px;
  height: 215px;
  background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.14) 0%, rgba(var(--color-primary-rgb), 0.06) 55%, transparent 72%);
}
/* 循环扩散光圈：柔边圆盘向外扩散淡出 */
.radar-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 52%, rgba(var(--color-primary-rgb), 0.16) 62%, rgba(var(--color-primary-rgb), 0.05) 72%, transparent 80%);
  transform: translate(-50%, -50%) scale(0.35);
  opacity: 0;
  pointer-events: none;
  animation: radar-pulse 2.8s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
.radar-pulse:nth-of-type(2) { animation-delay: 1.4s; }
@keyframes radar-pulse {
  0% { transform: translate(-50%, -50%) scale(0.35); opacity: 0.95; }
  70% { opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0; }
}
.radar-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 0 0 8px rgba(var(--color-primary-rgb), 0.1), 0 0 0 16px rgba(var(--color-primary-rgb), 0.05), var(--shadow-primary);
  z-index: 2;
}
.radar .thumb {
  position: absolute;
  width: 29%;
  aspect-ratio: 11 / 8;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}
.radar .rt-1 { left: 21%; top: 14%; }
.radar .rt-2 { left: 73%; top: 22%; }
.radar .rt-3 { left: 19%; top: 68%; }
.radar .rt-4 { left: 81%; top: 65%; }
.radar .rt-5 { left: 53%; top: 89%; }

/* 素材双栏 */
.asset-block + .asset-block { margin-top: 16px; }
.asset-block .thumb-grid { grid-template-columns: 1fr 1fr 1fr; }

/* 混剪列表 */
.mix-list { list-style: none; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.mix-list li { position: relative; flex: 1; }
.mix-list .idx {
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--gradient-brand);
  border: 2px solid #fff;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.35);
}
.mix-list .thumb { width: 100%; height: 100%; min-height: 54px; }

/* ---- 场景 03：智能成片 Max ---- */
.s3 .p-library { flex: 1.2; }
.s3 .p-graph { flex: 1; }
.s3 .p-deep { flex: 1.8; }

.tabs { display: inline-flex; gap: 6px; font-size: 12.5px; font-weight: 400; }
.tabs span { padding: 4px 11px; border-radius: 999px; color: #6b7686; cursor: pointer; }
.tabs span.active { background: #eef3ff; color: var(--color-primary); font-weight: 600; }

.tag-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; flex: 1; }
.tag-grid .thumb { aspect-ratio: 1 / 0.8; }
.tag-grid .thumb em {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 0 6px;
  font-style: normal;
  font-size: 12px;
  color: #e5edff;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.7));
}

/* 剧情关系图谱 */
.graph {
  display: flex;
  flex: 1;
  min-height: 260px;
  flex-direction: column;
}
.graph-map {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}
.graph svg.links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.graph .links path {
  fill: none;
  stroke: #c5d7f8;
  stroke-width: 0.55;
  vector-effect: non-scaling-stroke;
}
.graph .links .junction {
  fill: #d6e3fb;
  stroke: #c5d7f8;
  stroke-width: 0.35;
  vector-effect: non-scaling-stroke;
}
.graph .links .soft-link { stroke: #e2eafb; }
.graph .links .soft-dot { fill: #edf2fc; }
.graph .node {
  position: absolute;
  box-sizing: border-box;
  background: linear-gradient(145deg, #f9fbff, #f2f6ff);
  border: 1px solid #cddcfa;
  border-radius: 10px;
  min-height: 56px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
  color: #4b5563;
  box-shadow: 0 6px 14px rgba(64, 105, 190, 0.06);
  z-index: 1;
}
.graph .node b { display: block; font-size: 12.5px; color: #1f2937; }
.graph .node.main {
  left: 50%;
  top: 44%;
  width: 30%;
  min-width: 74px;
  max-width: 86px;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(247, 250, 255, 0.96);
  box-shadow: 0 7px 18px rgba(64, 105, 190, 0.07);
}
.graph .node.main b { color: var(--color-primary); font-size: 13px; }
.graph .node.main .hl {
  display: inline-block;
  margin-top: 3px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
}
.graph .n-tl,
.graph .n-tr { top: 0; width: 32%; }
.graph .n-tl { left: 0; }
.graph .n-tr { right: 0; }
.graph .n-bl,
.graph .n-br { top: 65%; width: 35%; color: var(--color-primary); }
.graph .n-bl { left: 5%; }
.graph .n-br { right: 5%; }
.graph .n-bl b, .graph .n-br b { color: var(--color-primary); }
.graph-feats {
  flex: 0 0 auto;
  display: flex;
  min-height: 44px;
  margin-top: 10px;
  justify-content: space-around;
  font-size: 12.5px;
  line-height: 1.2;
  color: #4b5563;
}
.graph-feats span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.graph-feats svg { width: 21px; height: 21px; stroke: #7c96c8; }

/* 深度匹配画面 */
.deep-flow { display: flex; align-items: flex-start; gap: 16px; flex: 1; }
.deep-flow figure { position: relative; flex: 1; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.deep-flow .thumb { aspect-ratio: 5 / 6; }
.deep-flow figcaption { font-size: 12.5px; line-height: 1.6; text-align: center; color: #1f2937; }
/* 箭头挂在 figure 右缘，对准缩略图中心（50% 减去下方说明文字区的一半） */
.deep-flow .chev {
  position: absolute;
  right: -16px;
  top: calc(50% - 25px);
  transform: translateY(-50%);
  z-index: 2;
}
.batch {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: #8fa0bd;
}
.batch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.batch .pill {
  background: #eef3ff;
  color: var(--color-primary);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 600;
}

/* ---- 场景 04：高燃剪辑 ---- */
.s4 .panels { gap: 44px; align-items: center; }
.s4-left { flex: 0 0 30%; max-width: 30%; }
.s4-left .scene-tag { margin-bottom: 16px; }
.s4-pill {
  display: inline-block;
  background: #e6edff;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 16px;
}
.s4-heading {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 1px;
  margin: 20px 0 16px;
}
.s4-heading .accent { color: var(--color-primary); }
.s4-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}
.s4-feats { display: flex; gap: 32px; }
.s4-feats span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #6b7686;
}
.s4-feats svg { width: 24px; height: 24px; stroke: #7c96c8; }

.panel-dark {
  /* 整体缩到 80%：宽度取所在弹性区域（100% - 左侧 30% - 间距 44px）的 80%，auto 外边距保持居中 */
  flex: 0 0 auto;
  width: calc((100% - 30% - 44px) * 0.8);
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(160deg, #0e1626, #0a101f);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  padding: 22px 24px;
  color: #e5edff;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28);
}
.pd-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 13px;
}
.pd-head b { font-size: 16px; color: #a8c0f8; }
.pd-head p { margin-top: 4px; font-size: 12.5px; color: #8fa0bd; }
.pd-time { font-size: 12.5px; color: #8fa0bd; }
.pd-main { aspect-ratio: 16 / 4.8; }
.pd-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.pd-strip .thumb { aspect-ratio: 16 / 9; border-radius: 6px; }
.pd-result { margin: 18px 0 13px; }
.pd-result b { font-size: 15.5px; color: #a8c0f8; }
.pd-result p { margin-top: 6px; font-size: 13px; color: #c3d0ea; }
.pd-result em { font-style: normal; color: #6f9bff; font-weight: 700; }
.pd-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pd-card { aspect-ratio: 16 / 9.5; }
.pd-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  background: linear-gradient(135deg, #f2703c, #e8483f);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 9px;
}
.pd-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 26px 12px 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.78));
}
.pd-dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  background: rgba(2, 6, 23, 0.72);
  color: #cbd5e1;
  font-size: 11px;
  border-radius: 6px;
  padding: 2px 7px;
}

/* ---- 桌面端：粘性舞台 ---- */
@media (min-width: 1101px) {
  .showcase-pin {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 42px;
    overflow: hidden;
  }
  .scene {
    position: absolute;
    inset: 0;
    padding-top: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  /* JS 失败时只露出第一屏 */
  .scene ~ .scene { opacity: 0; visibility: hidden; }
}

/* ---- 移动端：纵向平铺 ---- */
@media (max-width: 1100px) {
  .scene { margin-top: 72px; }
  .scene-heading { font-size: 26px; }
  .panels { flex-direction: column; }
  .chev { display: none; }
  /* 步骤标签行在移动端不展示 */
  .steps { display: none; }
  /* 雷达限宽，避免缩略图过大 */
  .radar { max-width: 400px; width: 100%; height: 320px; flex: none; margin: 0 auto; }
  .radar .thumb { width: 25%; }
  /* 混剪画面固定 16:9 */
  .mix-list li { flex: none; }
  .mix-list .thumb { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  /* 图谱固定尺寸，节点和连线保持大屏比例不拉伸 */
  .graph { max-width: 420px; width: 100%; height: 300px; flex: none; margin: 0 auto; }
  .showcase-title { font-size: 26px; }
  .s4 .panels { align-items: stretch; } /* 覆盖桌面端的 center，避免缩放面板被水平居中顶出左缘 */
  .s4-left { flex: none; max-width: 100%; }
  .s4-heading { font-size: 28px; }
}
