/*
 * Theme: theme-Serenity
 * Author: Serenity
 * Build: 2026-09-06 23:25:29
 * Fingerprint: fd1d9e17e876d4a4
 * Copyright (c) 2026 Serenity. All rights reserved.
 */

/*
 * Theme: theme-Serenity
 * Author: Serenity
 * Build: 2026-08-31 17:36:30
 * Fingerprint: 897f796e1b7f0d91
 * Copyright (c) 2026 Serenity. All rights reserved.
 */

/*
 * Theme: theme-Serenity
 * Author: Serenity
 * Build: 2026-07-05 00:01:15
 * Fingerprint: 1a93cc3686d739b8
 * Copyright (c) 2026 Serenity. All rights reserved.
 */

/* ==========================================================================
   Page Header - 与 /archives 等全站页面完全一致的简洁标题与简介展示
   ========================================================================== */
.page-header {
  margin-bottom: var(--space-6);
  padding-top: calc(var(--header-height) + var(--space-8));
  text-align: center;
}

.projects-page {
  padding-top: 0;
  padding-bottom: var(--space-10);
  min-height: calc(100vh - var(--header-height));
}

/* 作品墙分类 Tab 切换器 - 统一液体玻璃 Capsule */
.works-nav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.works-tab-btn,
[data-theme="light"] .works-tab-btn,
[data-theme="dark"] .works-tab-btn {
  appearance: none;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1 !important;
  background: rgba(0, 0, 0, 0.16) !important;
  backdrop-filter: var(--hyalite, blur(2px)) saturate(180%) !important;
  -webkit-backdrop-filter: var(--hyalite, blur(2px)) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 9999px !important;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.works-tab-btn:hover,
[data-theme="light"] .works-tab-btn:hover,
[data-theme="dark"] .works-tab-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  transform: translateY(-2px);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.55), 0 6px 18px rgba(0, 0, 0, 0.2) !important;
}

.works-tab-btn.active,
[data-theme="light"] .works-tab-btn.active,
[data-theme="dark"] .works-tab-btn.active {
  color: #ffffff !important;
  background: rgba(56, 189, 248, 0.24) !important;
  border-color: rgba(56, 189, 248, 0.70) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.65), 0 0 20px rgba(56, 189, 248, 0.40) !important;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

/* 作品墙瀑布流布局与卡片 - Midjourney 纯净视觉瀑布流（100% 纯画面无底座，Hover 浮现信息） */
.works-gallery-grid {
  column-count: 3;
  column-gap: 18px;
  margin-bottom: var(--space-8);
  width: 100%;
  display: block;
}

@media (max-width: 1024px) {
  .works-gallery-grid {
    column-count: 2;
    column-gap: 16px;
  }
}

@media (max-width: 640px) {
  .works-gallery-grid {
    column-count: 1;
    column-gap: 0;
  }
}

.work-card,
[data-theme="light"] .work-card,
[data-theme="dark"] .work-card {
  position: relative;
  width: 100%;
  margin-bottom: 18px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  border-radius: 20px;
  overflow: hidden;
  background: #070b14 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 14px 36px -8px rgba(0, 0, 0, 0.55) !important;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  vertical-align: top;
}

@media (max-width: 1024px) {
  .work-card,
  [data-theme="light"] .work-card,
  [data-theme="dark"] .work-card {
    margin-bottom: 16px;
  }
}

@media (max-width: 640px) {
  .work-card,
  [data-theme="light"] .work-card,
  [data-theme="dark"] .work-card {
    margin-bottom: 14px;
  }
}

.work-card:hover,
[data-theme="light"] .work-card:hover,
[data-theme="dark"] .work-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(56, 189, 248, 0.65) !important;
  box-shadow: 0 22px 50px -10px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 189, 248, 0.22) !important;
}

.work-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #070b14 !important;
  border-radius: 19px;
}

/* 作品资源加载态：图片用缩略图模糊占位（blur-up），视频用环形进度指示 */
.work-card-media.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: var(--work-thumb);
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.9;
  transition: opacity 0.45s ease;
}

.work-card-media.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(148, 163, 184, 0) 20%,
    rgba(148, 163, 184, 0.22) 45%,
    rgba(148, 163, 184, 0) 70%
  );
  background-size: 220% 100%;
  animation: work-skeleton-sweep 1.5s ease-in-out infinite;
}

.work-card-media.is-loaded::after,
.work-card-media.is-loaded::before {
  opacity: 0;
}

.work-card-media.is-loaded::before {
  animation: none;
}

/* 视频卡片额外显示环形 loading，覆盖在模糊占位之上 */
.work-card.video-card .work-card-media.is-loading .work-video-spinner {
  display: flex;
}

.work-video-spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  pointer-events: none;
}

@keyframes work-skeleton-sweep {
  0% { background-position: 180% 0; }
  100% { background-position: -60% 0; }
}

/* 瀑布流画幅控制：确保人物与海报排版文字 0 裁切，同时形成三列错落高低差 */
.work-card-media.aspect-portrait {
  aspect-ratio: 9 / 16;
}

.work-card-media.aspect-tall {
  aspect-ratio: 3 / 4;
}

.work-card-media.aspect-square {
  aspect-ratio: 1 / 1;
}

.work-card-media.aspect-cinema {
  aspect-ratio: 9 / 7;
}

.work-card-media.aspect-wide {
  aspect-ratio: 16 / 10;
}

/* 视频卡片右上角极简呼吸指示器（位于纯白背景空白处，Hover 时自动隐退） */
.work-video-live-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.work-card:hover .work-video-live-pill {
  opacity: 0;
  transform: translateY(4px);
}

.work-video-live-pill .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
  animation: pulse-glow 1.6s infinite ease-in-out;
}

.work-video-live-pill .suite-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse-glow 1.8s infinite ease-in-out;
}

/* Hover 浮层内工程参数微胶囊行 */
.work-card-specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.work-spec-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.work-spec-chip.accent {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.38);
}

.work-spec-chip.video-accent {
  color: #fda4af;
  background: rgba(225, 29, 72, 0.22);
  border-color: rgba(244, 63, 94, 0.45);
}

.work-card-media img,
.work-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.work-card:hover .work-card-media img,
.work-card:hover .work-card-media video {
  transform: scale(1.04);
}

/* 隐藏卡片内旧式左上角常驻遮字标签，改为在 Hover 浮层内优雅展示 */
.work-card-media > .work-card-tag {
  display: none !important;
}

.work-card-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.16) !important;
  border: 1px solid rgba(56, 189, 248, 0.38) !important;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.work-card-tag.video-tag {
  color: #fecdd3 !important;
  background: rgba(225, 29, 72, 0.32) !important;
  border-color: rgba(251, 113, 133, 0.5) !important;
}

.work-card-tag.demo-tag {
  color: #6ee7b7 !important;
  background: rgba(16, 185, 129, 0.24) !important;
  border-color: rgba(110, 231, 183, 0.45) !important;
}

.work-card-zoom-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 13, 25, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 4;
}

.work-card:hover .work-card-zoom-btn {
  opacity: 1;
  transform: scale(1);
}

/* Midjourney 沉浸式 Hover 浮层：默认 0 遮挡，鼠标悬停时从底部丝滑升起 */
.work-card-content,
[data-theme="light"] .work-card-content,
[data-theme="dark"] .work-card-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  background: linear-gradient(180deg, rgba(4, 7, 16, 0) 0%, rgba(4, 7, 16, 0.18) 38%, rgba(4, 7, 16, 0.86) 78%, rgba(4, 7, 16, 0.96) 100%) !important;
  border-top: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.work-card:hover .work-card-content,
[data-theme="light"] .work-card:hover .work-card-content,
[data-theme="dark"] .work-card:hover .work-card-content {
  opacity: 1;
  transform: translateY(0);
}

.work-card-title,
[data-theme="light"] .work-card-title,
[data-theme="dark"] .work-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
}

.work-card-desc,
[data-theme="light"] .work-card-desc,
[data-theme="dark"] .work-card-desc {
  font-size: 0.78rem;
  color: #e2e8f0 !important;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85) !important;
}

/* 沉浸式作品弹窗 Modal - AI Studio 双栏巨幕工作台 */
.work-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: rgba(4, 7, 16, 0.82) !important;
  backdrop-filter: var(--hyalite, blur(4px)) saturate(160%) !important;
  -webkit-backdrop-filter: var(--hyalite, blur(4px)) saturate(160%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}

.work-modal.active {
  opacity: 1;
  visibility: visible;
}

.work-modal-container.studio-modal-container,
[data-theme="light"] .work-modal-container.studio-modal-container,
[data-theme="dark"] .work-modal-container.studio-modal-container {
  max-width: 1240px;
  width: 95vw;
  height: 820px;
  max-height: 90vh;
  background: rgba(11, 17, 32, 0.90) !important;
  backdrop-filter: var(--hyalite, blur(2px)) saturate(180%) !important;
  -webkit-backdrop-filter: var(--hyalite, blur(2px)) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 28px !important;
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.45), 0 32px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(56, 189, 248, 0.15) !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-modal.active .work-modal-container.studio-modal-container {
  transform: scale(1);
}

/* 顶部关闭按钮 */
.work-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: var(--hyalite, blur(2px)) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.work-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.85) !important;
  border-color: rgba(254, 202, 202, 0.6) !important;
  color: #ffffff;
  transform: scale(1.08) rotate(90deg);
}

/* 双栏工作台排版 */
.work-modal-layout {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* 左侧舞台容器 */
.work-modal-stage {
  flex: 1.35;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #03060f;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.work-modal-media {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #0f172a 0%, #03060f 100%);
  position: relative;
  overflow: hidden;
}

.work-modal-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
}

.work-modal-media video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  outline: none;
}

.work-modal-media iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #060913;
  display: block;
}

/* 详情弹窗媒体加载态：光晕占位 + 环形指示 */
.work-modal-media.stage-media-loading::after {
  content: "";
  position: absolute;
  top: 50%;
 left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border: 3px solid rgba(148, 163, 184, 0.18);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.work-modal-media.stage-media-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.10) 0%, transparent 62%);
  animation: work-skeleton-breathe 1.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes work-skeleton-breathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* 舞台悬浮切换箭头与计数器（多图画廊模式） */
.stage-nav-btn {
  position: absolute;
  top: calc(50% - 22px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: var(--hyalite, blur(2px)) !important;
  -webkit-backdrop-filter: var(--hyalite, blur(2px)) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.work-modal-stage:hover .stage-nav-btn {
  opacity: 1;
}

.stage-nav-prev {
  left: 16px;
}

.stage-nav-next {
  right: 16px;
}

.stage-nav-btn:hover {
  background: rgba(56, 189, 248, 0.3) !important;
  border-color: rgba(56, 189, 248, 0.7) !important;
  color: #38bdf8 !important;
  transform: scale(1.1);
}

.stage-counter-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 15;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #bae6fd;
  background: rgba(0, 0, 0, 0.72) !important;
  backdrop-filter: var(--hyalite, blur(2px)) !important;
  -webkit-backdrop-filter: var(--hyalite, blur(2px)) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  font-family: ui-monospace, SFMono-Regular, monospace;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 多图缩略图导航轨 */
.stage-thumb-strip {
  height: 74px;
  background: rgba(8, 13, 25, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  z-index: 10;
}

.stage-thumb-strip::-webkit-scrollbar {
  display: none;
}

.stage-thumb-item {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  background: #03060f;
  user-select: none;
}

.stage-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stage-thumb-item:hover {
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}

.stage-thumb-item.active {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.65) !important;
  transform: scale(1.08);
}

.stage-thumb-item .thumb-video-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
}

.stage-thumb-item .thumb-video-badge svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* 舞台底部状态工具条 */
.work-stage-toolbar {
  height: 52px;
  background: rgba(10, 15, 26, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 0.8rem;
  color: #94a3b8;
  z-index: 5;
}

.stage-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.stage-status-indicator .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.stage-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.stage-tool-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
}

/* 右侧工作台容器 */
.work-modal-workbench {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  padding: 30px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(11, 18, 33, 0.85);
}

.work-modal-workbench::-webkit-scrollbar {
  width: 6px;
}
.work-modal-workbench::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 3px;
}

.workbench-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.work-modal-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.14) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

.work-modal-pill {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
}

.work-modal-title,
[data-theme="light"] .work-modal-title,
[data-theme="dark"] .work-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 8px 0;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
}

.work-modal-desc,
[data-theme="light"] .work-modal-desc,
[data-theme="dark"] .work-modal-desc {
  font-size: 0.88rem;
  color: #cbd5e1 !important;
  line-height: 1.65;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

/* 工作台 Section 通用结构 */
.workbench-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-label svg {
  color: #38bdf8;
}

/* 参数徽标 Badges */
.param-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.param-badge-item {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.param-badge-item .badge-key {
  color: #38bdf8;
  margin-right: 6px;
}

/* Prompt 代码盒与复制按钮 */
.prompt-code-box {
  background: rgba(3, 7, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  max-height: 110px;
  overflow-y: auto;
  word-break: break-word;
  user-select: text;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.prompt-code-box.negative-box {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(30, 10, 15, 0.4);
}

.prompt-code-box::-webkit-scrollbar {
  width: 4px;
}
.prompt-code-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.copy-prompt-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-prompt-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
}

.copy-prompt-btn.copied {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
}

/* 工作流与资源下载卡片 */
.workflow-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.15), 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  gap: 12px;
}

.workflow-download-card:hover {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25), 0 10px 25px rgba(56, 189, 248, 0.15);
}

.workflow-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.workflow-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}

.workflow-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.workflow-filename {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-sub {
  font-size: 0.72rem;
  color: #94a3b8;
}

.workflow-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a !important;
  background: #38bdf8 !important;
  border: none;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
}

.workflow-action-btn:hover {
  background: #7dd3fc !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.55);
}

/* 响应式断点适配 */
@media (max-width: 960px) {
  .work-modal-container.studio-modal-container {
    height: 90vh;
    max-height: 90vh;
  }
  .work-modal-layout {
    flex-direction: column;
    overflow-y: auto;
  }
  .work-modal-stage {
    flex: none;
    height: 48vh;
    min-height: 280px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .work-modal-workbench {
    flex: none;
    height: auto;
    overflow-y: visible;
    padding: 22px 20px 28px;
  }
}

/* 交互 Lab 卡片定制预览样式 */
.work-card-tag.demo-tag {
  background: rgba(16, 185, 129, 0.9) !important;
  border-color: rgba(110, 231, 183, 0.6) !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4) !important;
}

.demo-card-preview {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.15) 0%, #060913 80%);
  gap: 16px;
}

.demo-card-lens-mock {
  width: 140px;
  height: 90px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.5), 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.4s ease;
}

.work-card:hover .demo-card-lens-mock {
  transform: translateY(-4px) scale(1.06) rotate(-2deg);
}

.demo-card-orb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #38bdf8 60%, #0284c7 100%);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.8);
  margin-bottom: 6px;
}

.demo-card-spec {
  font-size: 0.68rem;
  font-weight: 700;
  color: #bae6fd;
  letter-spacing: 0.05em;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.demo-card-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
}


.projects-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  width: 100%;
}

.projects-category-section {
  min-width: 0;
}

.projects-category-heading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 800;
}

.projects-category-heading::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-secondary));
}

.projects-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  width: 100%;
}

.projects-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) 0;
  color: var(--color-text-muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: var(--space-3);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.projects-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) 0;
  color: var(--color-text-muted);
}

.projects-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-3);
  opacity: 0.5;
}

.projects-empty p {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.projects-empty span {
  font-size: 0.9rem;
}

/* 项目卡片 - Hyalite Liquid Glass 统一规格 */
.project-card,
[data-theme="light"] .project-card,
[data-theme="dark"] .project-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  height: 120px;
  width: 100%;
  background: rgba(15, 23, 42, 0.30) !important;
  backdrop-filter: var(--hyalite, blur(2px)) saturate(180%) !important;
  -webkit-backdrop-filter: var(--hyalite, blur(2px)) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 20px !important;
  box-shadow: inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.30), 0 8px 24px rgba(0, 0, 0, 0.30) !important;
  transition: all var(--duration-fast);
  text-decoration: none;
  color: #ffffff !important;
  box-sizing: border-box;
  overflow: hidden;
}

button.project-card {
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.project-card:hover,
[data-theme="light"] .project-card:hover,
[data-theme="dark"] .project-card:hover {
  transform: translateY(-4px) scale(1.01) !important;
  border-color: rgba(56, 189, 248, 0.6) !important;
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.45), 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 16px rgba(56, 189, 248, 0.25) !important;
}

/* 项目归属标识 - 简洁图标样式，右上角 */
.project-owner-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s ease;
}

.project-owner-badge svg {
  width: 16px;
  height: 16px;
}

/* 我的项目 - 房子图标 */
.project-owner-badge.mine {
  color: var(--color-text-muted);
}

.project-owner-badge.mine svg {
  stroke: currentColor;
  fill: none;
}

/* 收藏项目 - 星星图标 */
.project-owner-badge.starred {
  color: var(--color-text-muted);
}

.project-owner-badge.starred svg {
  stroke: currentColor;
  fill: none;
}

.project-card:hover .project-owner-badge {
  color: var(--color-accent);
}

.project-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.project-avatar.no-image {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
}

.project-avatar svg {
  width: 32px;
  height: 32px;
  color: white;
}

.project-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.project-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card:hover .project-name {
  color: var(--color-accent);
}

.project-description {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11px;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.project-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.project-meta-item svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.project-language {
  display: flex;
  align-items: center;
  gap: 4px;
}

.language-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.project-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.project-topic {
  padding: 2px 6px;
  background: rgba(var(--color-accent-rgb), 0.1);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.project-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.project-arrow svg {
  width: 20px;
  height: 20px;
  color: white;
}

.project-card:hover .project-arrow {
  background: var(--color-accent-secondary);
  transform: translateX(2px);
}

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

@media (max-width: 768px) {
  .projects-category-grid {
    grid-template-columns: 1fr;
  }

  .projects-stats-row {
    gap: var(--space-4);
  }
  
  .project-card {
    height: 90px;
    min-height: 90px;
    padding: var(--space-2) var(--space-3);
    gap: var(--space-2);
  }

  .project-avatar {
    width: 44px;
    height: 44px;
  }

  .project-avatar svg {
    width: 22px;
    height: 22px;
  }

  .project-name {
    font-size: 12px;
  }

  .project-description {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .project-meta {
    font-size: 9px;
    gap: var(--space-1);
  }

  .project-meta-item svg {
    width: 10px;
    height: 10px;
  }

  .language-dot {
    width: 6px;
    height: 6px;
  }

  .project-topic {
    font-size: 8px;
    padding: 1px 4px;
  }

  .project-topics {
    overflow: hidden;
    max-height: 16px;
  }

  .project-arrow {
    width: 30px;
    height: 30px;
  }

  .project-arrow svg {
    width: 14px;
    height: 14px;
  }

  .project-owner-badge {
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
  }

  .project-owner-badge svg {
    width: 12px;
    height: 12px;
  }

  .project-info {
    gap: 2px;
  }
}


/* ========================================
   版本详情弹窗
   ======================================== */
.releases-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}

.releases-modal.ready {
  display: flex;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.releases-modal.active {
  opacity: 1;
  visibility: visible;
}

.releases-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: var(--hyalite, blur(2px)) !important;
  -webkit-backdrop-filter: var(--hyalite, blur(2px)) !important;
}

.releases-modal-content {
  position: relative;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  background: var(--color-bg);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.releases-modal.active .releases-modal-content {
  transform: translateY(0) scale(1);
}

.releases-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}

.releases-project-info {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.releases-project-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.releases-project-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.releases-project-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.releases-project-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.releases-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.releases-github-link,
.releases-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.releases-github-link svg,
.releases-close-btn svg {
  width: 18px;
  height: 18px;
}

.releases-github-link:hover,
.releases-close-btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.releases-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.releases-modal-body::-webkit-scrollbar {
  display: none;
}

.releases-loading,
.releases-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) 0;
  color: var(--color-text-muted);
}

.releases-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-3);
  opacity: 0.5;
}

/* 时间线 */
.releases-timeline {
  display: flex;
  flex-direction: column;
}

.release-item {
  display: flex;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}

.release-item:last-child {
  padding-bottom: 0;
}

.release-item:last-child .release-line {
  display: none;
}

.release-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
}

.release-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-border);
  flex-shrink: 0;
}

.release-item.latest .release-dot {
  background: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.release-line {
  width: 2px;
  flex: 1;
  background: var(--color-border);
  margin-top: var(--space-2);
}

.release-content {
  flex: 1;
  min-width: 0;
  padding: var(--space-4);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.release-item.latest .release-content {
  border-color: var(--color-accent);
}

.release-content:hover {
  border-color: var(--color-accent);
}

.release-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.release-tag {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--color-accent);
  background: rgba(var(--color-accent-rgb), 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.release-latest-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  background: var(--color-accent);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.release-prerelease-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.release-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-2) 0;
}

.release-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.release-body {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-3);
  padding: var(--space-3);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.release-body::-webkit-scrollbar {
  display: none;
}

.release-body h2, .release-body h3, .release-body h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin: var(--space-3) 0 var(--space-2) 0;
}

.release-body h2:first-child,
.release-body h3:first-child,
.release-body h4:first-child {
  margin-top: 0;
}

.release-body p {
  margin: var(--space-2) 0;
}

.release-body p:first-child {
  margin-top: 0;
}

.release-body code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--color-bg-mute);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-accent);
}

.release-body pre {
  margin: var(--space-2) 0;
  padding: var(--space-3);
  background: var(--color-bg-mute);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.release-body pre code {
  background: transparent;
  padding: 0;
  color: var(--color-text);
  font-size: 0.8rem;
  line-height: 1.5;
}

.release-body ul, .release-body ol {
  margin: var(--space-2) 0;
  padding-left: var(--space-5);
}

.release-body ul {
  list-style-type: disc;
}

.release-body ol {
  list-style-type: decimal;
}

.release-body ul ul {
  list-style-type: circle;
}

.release-body ul ul ul {
  list-style-type: square;
}

.release-body li {
  margin: var(--space-1) 0;
  line-height: 1.5;
}

.release-body li::marker {
  color: var(--color-accent);
}

.release-body strong {
  font-weight: 600;
  color: var(--color-text);
}

.release-body em {
  font-style: italic;
}

.release-body a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.release-body a:hover {
  border-bottom-color: var(--color-accent);
}

.release-actions {
  display: flex;
  gap: var(--space-2);
}

.release-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.release-link svg {
  width: 14px;
  height: 14px;
}

.release-link:hover {
  opacity: 0.8;
}

@media (max-width: 640px) {
  .releases-modal-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .releases-project-desc {
    display: none;
  }

  .releases-modal-header {
    padding: var(--space-3);
  }

  .releases-project-avatar {
    width: 36px;
    height: 36px;
  }

  .releases-project-name {
    font-size: 0.9rem;
  }

  .releases-github-link,
  .releases-close-btn {
    width: 30px;
    height: 30px;
  }

  .releases-github-link svg,
  .releases-close-btn svg {
    width: 14px;
    height: 14px;
  }

  .releases-modal-body {
    padding: var(--space-3);
  }

  .release-item {
    gap: var(--space-2);
    padding-bottom: var(--space-3);
  }

  .release-content {
    padding: var(--space-3);
  }

  .release-tag {
    font-size: 0.75rem;
    padding: 1px 6px;
  }

  .release-latest-badge,
  .release-prerelease-badge {
    font-size: 0.6rem;
    padding: 1px 4px;
  }

  .release-title {
    font-size: 0.85rem;
  }

  .release-meta {
    font-size: 0.7rem;
    gap: var(--space-2);
  }

  .release-body {
    font-size: 0.75rem;
    padding: var(--space-2);
    max-height: 150px;
  }

  .release-body h2,
  .release-body h3,
  .release-body h4 {
    font-size: 0.8rem;
  }

  .release-link {
    font-size: 0.7rem;
  }

  .release-link svg {
    width: 12px;
    height: 12px;
  }
}
