/* ============================================
   作品详情页样式
   ============================================ */

/* 面包屑 */
.breadcrumb-bar {
  background: var(--black-950);
  border-bottom: 1px solid var(--black-800);
  padding: 16px 0;
  font-size: 14px;
  color: var(--black-400);
}
.breadcrumb-bar a { color: var(--black-300); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--gold); }
.breadcrumb-bar .sep { margin: 0 8px; opacity: 0.4; }
.breadcrumb-bar .current { color: var(--gold); }

/* Hero */
.project-hero {
  padding: 80px 0 60px;
  text-align: center;
  background: var(--black-950);
  position: relative;
  overflow: hidden;
}
.project-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,77,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.project-hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #E5C87C);
  color: var(--black-950);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.project-hero-cat {
  display: inline-block;
  background: var(--black-800);
  color: var(--gold);
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  margin-left: 8px;
}
.project-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--black-50);
  margin: 16px 0;
  letter-spacing: 2px;
}
.project-hero-summary {
  font-size: 18px;
  color: var(--black-300);
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.6;
}
.project-hero-status {
  display: inline-block;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 500;
}
.project-hero-status.online { background: rgba(34,197,94,0.15); color: #4ade80; }
.project-hero-status.dev { background: rgba(234,179,8,0.15); color: #facc15; }
.project-hero-status.offline { background: rgba(239,68,68,0.15); color: #f87171; }

/* 概览 */
.project-overview { padding: 60px 0; background: var(--black-900); }
.overview-grid { display: grid; grid-template-columns: 1fr 360px; gap: 48px; }

.section-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--black-50);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--black-800);
}
.feature-item:last-child { border-bottom: none; }
.feature-icon { font-size: 28px; flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--black-800); border-radius: 12px; }
.feature-item h4 { font-size: 16px; font-weight: 600; color: var(--black-50); margin-bottom: 4px; }
.feature-item p { font-size: 14px; color: var(--black-400); line-height: 1.5; }

.info-card {
  background: var(--black-800);
  border-radius: 16px;
  padding: 24px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--black-700);
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--black-400); font-size: 14px; }
.info-value { color: var(--black-100); font-size: 14px; font-weight: 500; text-align: right; }

/* 详细介绍 */
.project-detail { padding: 60px 0; background: var(--black-950); }
.detail-content {
  color: var(--black-200);
  font-size: 16px;
  line-height: 1.8;
  max-width: 800px;
}
.detail-content h2 { color: var(--black-50); margin: 24px 0 12px; font-size: 20px; }
.detail-content h3 { color: var(--gold); margin: 20px 0 10px; }
.detail-content ul, .detail-content ol { padding-left: 24px; margin: 12px 0; }
.detail-content li { margin: 6px 0; }
.detail-content a { color: var(--gold); text-decoration: underline; }
.detail-content img { max-width: 100%; border-radius: 8px; margin: 16px 0; }

/* 截图 */
.project-screenshots { padding: 60px 0; background: var(--black-900); }
.screenshot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.screenshot-item {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--black-800);
}
.screenshot-item:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(201,168,77,0.15); }
.screenshot-item img { width: 100%; display: block; }

/* 下载 */
.project-download { padding: 60px 0; background: var(--black-950); }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.download-card {
  background: var(--black-800);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}
.download-card h3 { font-size: 18px; color: #C9A84D; margin-bottom: 20px; }
.download-links { display: flex; flex-direction: column; gap: 12px; }
.dl-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  background: transparent;
  color: #C9A84D;
  border: 1.5px solid #C9A84D;
}
.dl-btn.primary {
  background: linear-gradient(135deg, #C9A84D, #E5C87C);
  color: #fff;
  border: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(201,168,77,0.25); background: rgba(201,168,77,0.1); }
.qr-card .qr-img { width: 180px; height: 180px; margin: 16px auto; border-radius: 12px; }
.qr-card p { color: var(--black-400); font-size: 14px; margin-top: 8px; }
.no-download { color: var(--black-400); font-size: 15px; }

/* 更新日志 */
.project-changelog { padding: 60px 0; background: var(--black-900); }
.changelog-content {
  color: var(--black-200);
  font-size: 15px;
  line-height: 1.7;
  max-width: 800px;
}
.changelog-content h2, .changelog-content h3 { color: var(--black-50); margin: 16px 0 8px; }
.changelog-content ul { padding-left: 20px; }

/* 相关作品 */
.project-related { padding: 60px 0; background: var(--black-950); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.related-card {
  display: block;
  background: var(--black-800);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid var(--black-700);
}
.related-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.related-card h4 { font-size: 16px; color: var(--black-50); margin-bottom: 8px; }
.related-card p { font-size: 13px; color: var(--black-400); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 灯箱 */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.lightbox.active { display: flex; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-content img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
}
.lightbox-close:hover { color: var(--gold); }

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C9A84D, #A6893A);
  color: #020202;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(201,168,77,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(201,168,77,0.45);
}
.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* 响应式 */
@media (max-width: 768px) {
  .overview-grid { grid-template-columns: 1fr; }
  .project-hero { padding: 60px 0 40px; }
  .project-hero-title { letter-spacing: 1px; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
}
