/* ============================================
   作品展播页样式
   ============================================ */

/* --- Sort Bar --- */
.showcase-sort {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.sort-options {
  display: flex;
  gap: 0.35rem;
}

.sort-btn {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.sort-btn:hover {
  color: var(--deep-blue);
}

.sort-btn.active {
  color: var(--deep-blue);
  background: rgba(33, 150, 243, 0.06);
  border-color: rgba(33, 150, 243, 0.2);
}

/* --- Work Grid --- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.work-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.work-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gradient-primary);
  overflow: hidden;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 58, 138, 0.7), transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-normal);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.work-card:hover .work-thumb-overlay {
  opacity: 1;
}

.work-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.work-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 10px solid white;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 2px;
}

.work-body {
  padding: 1.25rem;
}

.work-body h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-body .work-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.work-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.work-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* --- Featured Work --- */
.work-featured {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
}

.work-featured-main {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--gradient-primary);
  border: 1px solid var(--border-light);
}

.work-featured-main .featured-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(to top, rgba(26, 58, 138, 0.9), transparent);
}

.work-featured-main .featured-tag {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
}

.work-featured-main h3 {
  font-size: 1.35rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.work-featured-main p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.work-featured-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.work-featured-side .work-card {
  flex: 1;
  display: flex;
}

.work-featured-side .work-card .work-thumb {
  width: 45%;
  flex-shrink: 0;
  aspect-ratio: auto;
}

.work-featured-side .work-card .work-body {
  flex: 1;
}

/* --- Pagination --- */
.work-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 3rem;
}

.work-pagination a,
.work-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.work-pagination a:hover {
  background: var(--bg-card);
  color: var(--deep-blue);
}

.work-pagination .active {
  background: rgba(33, 150, 243, 0.1);
  color: var(--deep-blue);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .work-featured-main {
    aspect-ratio: 4 / 3;
  }
  .work-featured-side .work-card {
    flex-direction: column;
  }
  .work-featured-side .work-card .work-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .showcase-sort {
    justify-content: center;
  }
}

@media (max-width: 480px) {
}

/* ============================================
   作品展播 · 赛道标签（2026-11-04 新增）
   ============================================ */
.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.showcase-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.showcase-tab:hover {
  color: var(--deep-blue);
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.showcase-tab.active {
  color: var(--text-white);
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

/* ============================================
   作品卡片 · 占位与文字信息
   ============================================ */
.work-thumb-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--gradient-primary);
}

.work-thumb-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.045) 0 12px,
      transparent 12px 24px);
}

.work-thumb-ph .ph-code {
  position: relative;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
}

.work-thumb-ph .ph-hint {
  position: relative;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}

.work-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.work-body .work-group {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--electric-indigo);
  background: rgba(33, 150, 243, 0.1);
  border-radius: var(--radius-full);
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.6rem;
}

.work-body .work-org {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-body .work-author {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-empty {
  padding: 4rem 1rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ============================================
   作品详情页
   ============================================ */
.detail-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.detail-media {
  position: sticky;
  top: 100px;
}

.detail-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-lg);
}

.detail-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0B1730;
}

.player-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.player-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.04) 0 14px,
      transparent 14px 28px);
}

.player-ph .player-code {
  position: relative;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
}

.player-ph .player-hint {
  position: relative;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

/* 详情页作品名称：作品标题普遍较长，比公共 h1 收紧一档 */
#workTitle {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.45;
  letter-spacing: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  word-break: break-word;
}

.detail-info {
  min-width: 0;
}

.detail-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep-blue);
  padding-left: 0.7rem;
  border-left: 3px solid var(--neon-cyan);
  margin-bottom: 1rem;
}

.detail-section-title:not(:first-child) {
  margin-top: 2rem;
}

.detail-facts {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.fact-row {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.87rem;
}

.fact-row:last-child {
  border-bottom: none;
}

.fact-row dt {
  color: var(--text-muted);
  white-space: nowrap;
}

.fact-row dd {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.7;
  word-break: break-word;
}

.detail-brief {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.detail-brief p {
  margin-bottom: 0.9rem;
}

.detail-brief p:last-child {
  margin-bottom: 0;
}

.detail-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .detail-media {
    position: static;
  }
}

@media (max-width: 768px) {
  .showcase-tabs {
    gap: 0.5rem;
  }
  .showcase-tab {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  .fact-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}
