/* ============ 首页滚动作品展示区 (showcase banner) ============ */
:root {
  --banner-h: 224px;   /* 展示区高度 */
  --banner-card-w: 300px;
  --banner-card-h: 156px;
}

.showcase-banner {
  position: relative;
  margin-left: var(--rail-w);
  width: auto;
  height: var(--banner-h);
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  background: #000000;
  border-top: 1px solid rgba(80, 16, 208, 0.22);
  border-bottom: 1px solid rgba(80, 16, 208, 0.22);
  padding: 10px 0;
}

/* 展示带标题 */
.showcase__label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  color: #d3d7e3;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.showcase__label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #30b0f0, #a060f0);
  box-shadow: 0 0 8px rgba(160, 96, 240, 0.8);
  animation: sv-showcase-pulse 2s ease-in-out infinite;
}
@keyframes sv-showcase-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.showcase-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  will-change: transform;
  animation: showcase-marquee var(--banner-dur, 40s) linear infinite;
}
.showcase-banner:hover .showcase-track {
  animation-play-state: paused;
}

@keyframes showcase-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 作品卡片 */
.showcase-card {
  position: relative;
  flex: 0 0 auto;
  width: var(--banner-card-w);
  height: var(--banner-card-h);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(48, 176, 240, 0.15);
  box-shadow: 0 0 0 rgba(48, 176, 240, 0);
  transition: transform 0.25s cubic-bezier(0.22, 0.9, 0.28, 1),
              box-shadow 0.25s cubic-bezier(0.22, 0.9, 0.28, 1),
              border-color 0.25s cubic-bezier(0.22, 0.9, 0.28, 1);
}
.showcase-card:hover {
  transform: scale(1.05);
  border-color: rgba(48, 176, 240, 0.4);
  box-shadow: 0 0 22px rgba(48, 176, 240, 0.25);
  z-index: 2;
}

.showcase-card__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  opacity: 0.9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.showcase-card__type {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 13px;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(0, 64, 208, 0.45);
}
.showcase-card__mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}
.showcase-card__title {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* 目录(投放位置)角标：素材库按目录驱动的首页精选 */
.showcase-card__dir {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 2;
  font-size: 11px;
  color: #c4b5fd;
  background: rgba(20, 16, 40, 0.72);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 10px;
  padding: 2px 8px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ 响应式 ============ */
@media (max-width: 1199px) {
  :root {
    --banner-h: 200px;
    --banner-card-w: 260px;
    --banner-card-h: 138px;
  }
}
@media (max-width: 767px) {
  :root {
    --banner-h: 172px;
    --banner-card-w: 210px;
    --banner-card-h: 118px;
  }
  .showcase-card__bg { font-size: 40px; }
  .showcase-card__title { font-size: 15px; }
}

/* 画布/后台模式隐藏展示区，工作台内容让出展示区高度 */
body.is-canvas-mode .showcase-banner {
  display: none;
}
/* 精选展示条为文档流静态区块，工作台紧随其后无需再让出横幅高度；画布模式下展示条隐藏，需让出顶栏 */
.workspace {
  padding-top: 20px !important;
}
body.is-canvas-mode .workspace {
  padding-top: var(--topbar-h) !important;
}