/* ===== 作品区域标题 ===== */
.section-title-wrapper {
  position: relative;
  width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.section-title-bar {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 72px;
  background: linear-gradient(
    to right,
    #fbbf24 0%,
    #fbbf24 35%,
    rgba(251, 191, 36, 0) 100%
  );
  border-radius: 2px;
  z-index: 1;
}

.section-title-bar::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(to right, rgba(251, 191, 36, 0.4) 0%, transparent 100%);
  pointer-events: none;
}

.section-title-text {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.15em;
  margin: 0;
  text-shadow:
    0 0 10px rgba(251, 191, 36, 0.5),
    0 0 30px rgba(251, 191, 36, 0.2);
}

/* ===== 作品进入动画 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.3); }
}
.works-visible { animation: fadeInUp 0.7s ease forwards; }

/* ===== 作品横向滚动轮播 ===== */
.works-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 14px 0;
}
.works-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s ease;
}
.work-item {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.35s ease;
  will-change: transform;
}
.work-item:hover {
  transform: scale(1.08);
}
.work-item img,
.work-item video {
  width: 100%;
  height: 15rem;
  object-fit: cover;
  display: block;
}

/* 左右边缘暗角 */
.works-fade-left,
.works-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}
.works-fade-left {
  left: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, transparent 100%);
}
.works-fade-right {
  right: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.5) 0%, transparent 100%);
}