/* ================= 详情页专属样式 ================= */

/* 主内容区 */
.detail-main {
  min-height: calc(100vh - 72px);
  padding-bottom: 60px;
}

/* 顶部导航 */
.site-header {
  background: rgba(10, 10, 18, 0.96);
  border-bottom: 1px solid rgba(240, 192, 96, 0.15);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.site-header .logo-icon { color: var(--gold); font-size: 22px; }
.site-header .logo-sub {
  font-size: 11px;
  background: rgba(240, 192, 96, 0.15);
  border: 1px solid rgba(240, 192, 96, 0.3);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 1px;
}
.site-header .header-nav a {
  color: var(--sub);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
  letter-spacing: .5px;
}
.site-header .header-nav a:hover { color: var(--gold); }

/* 封面图 */
.detail-cover {
  position: relative;
  max-width: 900px;
  margin: 40px auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(240, 192, 96, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.detail-cover img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.cover-zoom-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(240, 192, 96, 0.4);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.cover-zoom-btn svg { width: 18px; height: 18px; fill: #fff; }
.cover-zoom-btn:hover { background: rgba(240, 192, 96, 0.2); border-color: var(--gold); }

/* 标题区 */
.detail-title-row {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.detail-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  background: linear-gradient(90deg, #f0c060, #fffbe0, #e8a020);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  margin: 0;
}
.detail-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(240, 192, 96, 0.12);
  border: 1px solid rgba(240, 192, 96, 0.3);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.detail-desc {
  max-width: 900px;
  margin: 14px auto 0;
  padding: 0 24px;
  font-size: 15px;
  color: var(--sub);
  line-height: 1.8;
}

/* 通用 section 标题 */
.detail-section-title {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 24px;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}
.detail-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(240, 192, 96, 0.2);
}

/* 功能列表 */
.detail-feature-list {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.detail-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  transition: border-color .25s;
}
.detail-feature-item:hover { border-color: rgba(240, 192, 96, 0.35); }
.feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(240, 192, 96, 0.2), rgba(240, 192, 96, 0.05));
  border: 1px solid rgba(240, 192, 96, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gold);
}
.feature-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #eef2ff;
  margin-bottom: 5px;
}
.feature-text p {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.7;
  margin: 0;
}

/* 截图画廊 */
.detail-gallery {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-thumb {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform .28s, box-shadow .28s, border-color .28s;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.gallery-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(240, 192, 96, 0.4);
}

/* 底部返回 */
.detail-back {
  max-width: 900px;
  margin: 48px auto 0;
  padding: 0 24px;
  text-align: center;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: rgba(240, 192, 96, 0.1);
  border: 1px solid rgba(240, 192, 96, 0.3);
  border-radius: 10px;
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn-back svg { width: 16px; height: 16px; fill: currentColor; }
.btn-back:hover {
  background: rgba(240, 192, 96, 0.2);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* 灯箱 */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.lightbox-close:hover { color: var(--gold); }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

/* ================= 响应式 ================= */
@media (max-width: 640px) {
  .detail-gallery { grid-template-columns: 1fr; }
}

/* ================= 旧版详情 Hero（兼容早期页面）================= */
.detail-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 32px 0;
  text-align: center;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sub);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color .2s;
  letter-spacing: .5px;
}
.back-btn:hover { color: var(--gold); }
.back-btn svg { width: 16px; height: 16px; fill: currentColor; }
.detail-intro {
  font-size: 15px;
  color: var(--sub);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 32px;
}

/* 旧版灯箱 ID 选择器 */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox.active,
#lightbox.open { display: flex; }
#lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
#lightbox-close:hover { color: var(--gold); }
#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

/* ================= 功能卡片 ================= */
.features-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px 40px;
}
.features-title {
  font-size: 14px;
  color: var(--sub);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.features-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 52px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  transition: border-color .25s;
}
.feature-item:hover { border-color: rgba(240,192,96,.35); }
.feature-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(240,192,96,.2), rgba(240,192,96,.05));
  border: 1px solid rgba(240,192,96,.25);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.feature-text .f-title {
  font-size: 15px;
  font-weight: 700;
  color: #eef2ff;
  margin-bottom: 5px;
}
.feature-text .f-desc {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.7;
}

/* ================= 详情图片画廊 ================= */
.gallery-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.gallery-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  border-color: rgba(240,192,96,.35);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cap {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--sub);
  text-align: center;
}

/* ================= 响应式 ================= */
@media (max-width: 640px) {
  .detail-hero,
  .features-section,
  .gallery-section { padding-left: 16px; padding-right: 16px; }
  .gallery-grid { grid-template-columns: 1fr; }
}
