/* ============================================
   Lightbox Gallery — 详情页统一风格
   与首页灯箱墙一致：深墙背景、图片柔光、极细边框、杂志级大图
   同时适配 article（新闻）与 movie（影片）两套结构（类名已统一为 lb-）
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  --wall-base: #060608;
  --wall-deep: #040406;
  --wall-ash: #0e0e14;
  --wall-smoke: #14141c;
  --frame-bg: #0a0a0f;
  --text-primary: #f4f4f8;
  --text-secondary: #9a9aab;
  --text-muted: #5a5a6b;
  --hairline: rgba(255,255,255,0.07);
  --hairline-strong: rgba(255,255,255,0.13);
  --glow-soft: 0 0 0 1px rgba(255,255,255,0.03), 0 26px 70px -34px rgba(176,200,255,0.30);
  --glow-strong: 0 0 0 1px rgba(255,255,255,0.12), 0 34px 90px -26px rgba(176,200,255,0.50);
  --line-red: #ef4444;
  --line-blue: #3b82f6;
  --line-green: #22c55e;
  --line-amber: #f59e0b;
  --line-teal: #2dd4bf;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  font-family: var(--font-body);
  background: var(--wall-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== 导航栏（与首页一致） ===== */
.lb-nav {
  position: sticky; top: 0; z-index: 100; width: 100%;
  background: rgba(6,6,8,0.82);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  border-bottom: 1px solid var(--hairline);
}
.lb-nav-inner {
  max-width: 1180px; margin: 0 auto; height: 60px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
}
.lb-logo {
  font-size: 17px; font-weight: 700; letter-spacing: 0.5px; color: var(--text-primary);
  display: flex; align-items: center; gap: 11px;
}
.lb-logo-mark {
  width: 30px; height: 30px; border-radius: 2px; background: #f4f4f8; color: #060608;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
  box-shadow: 0 0 22px -4px rgba(255,255,255,0.55);
}
.lb-logo-text { font-weight: 700; }
.lb-nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.lb-nav-links a {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); transition: color 0.3s;
}
.lb-nav-links a:hover { color: var(--text-primary); }
.lb-nav-right { display: flex; align-items: center; gap: 12px; }
.lb-search-btn {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: 2px; color: var(--text-muted); transition: background 0.3s, color 0.3s;
}
.lb-search-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.lb-search-btn svg { width: 18px; height: 18px; }
.lb-mobile-menu-btn {
  display: none; width: 38px; height: 38px; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; cursor: pointer;
}
.lb-mobile-menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--text-primary); }

/* ===== 搜索覆盖层 ===== */
.lb-search-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(4,4,6,0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 14vh;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lb-search-overlay.active { opacity: 1; pointer-events: all; }
.lb-search-overlay-inner {
  width: 100%; max-width: 600px; background: var(--frame-bg);
  border: 1px solid var(--hairline); box-shadow: var(--glow-strong); border-radius: 3px;
  padding: 26px; position: relative; max-height: 72vh; overflow-y: auto;
}
.lb-search-close {
  position: absolute; top: 10px; right: 14px; font-size: 22px; background: none; border: none;
  cursor: pointer; color: var(--text-muted); line-height: 1;
}
.lb-search-close:hover { color: var(--text-primary); }
.lb-search-box {
  display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--hairline);
  padding-bottom: 14px; margin-bottom: 14px;
}
.lb-search-box svg { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.lb-search-input {
  width: 100%; border: none; outline: none; font-size: 15px; font-family: var(--font-body);
  background: transparent; color: var(--text-primary);
}
.lb-search-input::placeholder { color: var(--text-muted); }
.lb-search-results { display: flex; flex-direction: column; gap: 4px; }
.lb-search-result-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 3px;
  text-decoration: none; color: inherit; transition: background 0.2s; border: 1px solid transparent;
}
.lb-search-result-item:hover { background: rgba(255,255,255,0.03); border-color: var(--hairline); }
.lb-search-result-thumb {
  width: 56px; height: 38px; border-radius: 2px; overflow: hidden; flex-shrink: 0;
  background: var(--wall-smoke); box-shadow: var(--glow-soft);
}
.lb-search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-search-result-info { flex: 1; min-width: 0; }
.lb-search-result-cat {
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 2px;
  color: var(--line-amber);
}
.lb-search-result-title {
  font-size: 13px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lb-search-empty { text-align: center; padding: 24px; color: var(--text-muted); font-size: 14px; }

/* ============================================
   详情主体（article 新闻结构）
   ============================================ */
.lb-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 32px 0;
}
.lb-detail-back { margin-bottom: 28px; }
.lb-back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); transition: color 0.3s, gap 0.3s var(--ease-out);
}
.lb-back-link:hover { color: var(--text-primary); gap: 12px; }
.lb-back-link svg { width: 15px; height: 15px; }

/* 大图灯箱 */
.lb-detail-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  box-shadow: var(--glow-soft);
  filter: saturate(1.06) contrast(1.04);
  margin-bottom: 28px;
}
.lb-detail-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 18px;
  border: 1px solid var(--line-amber); color: var(--line-amber);
  background: rgba(245,158,11,0.08);
}
.lb-detail-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800; line-height: 1.08; letter-spacing: -1px;
  margin-bottom: 32px;
}
.lb-detail-body {
  font-size: 16px; line-height: 1.85; color: var(--text-secondary);
  max-width: 720px;
}
.lb-detail-body p { margin-bottom: 22px; }
.lb-detail-body p:first-child { color: var(--text-primary); font-weight: 500; }

/* ============================================
   详情主体（movie 影片结构）
   ============================================ */
.lb-article-hero {
  max-width: 1180px; margin: 0 auto; padding: 48px 32px 0;
}
.lb-article-hero-inner {
  display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center;
  background: var(--frame-bg);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  box-shadow: var(--glow-soft);
  padding: 28px;
}
.lb-article-cover {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 2px;
  border: 1px solid var(--hairline); background: var(--wall-smoke);
  box-shadow: var(--glow-soft);
}
.lb-article-cover img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.06) contrast(1.04); transition: transform 0.8s var(--ease-out);
}
.lb-article-hero:hover .lb-article-cover img { transform: scale(1.04); }
.lb-article-cover-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 0%, transparent 55%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
.lb-article-hero-content { display: flex; flex-direction: column; gap: 16px; }
.lb-tag {
  align-self: flex-start;
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
}
.lb-tag--teal { border: 1px solid var(--line-teal); color: var(--line-teal); background: rgba(45,212,191,0.08); }
.lb-article-hero-tag { margin-bottom: 0; }
.lb-article-hero-title {
  font-size: clamp(28px, 4vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -1px;
}
.lb-article-hero-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted);
}
.lb-article-hero-meta svg { width: 15px; height: 15px; }
.lb-article-body {
  max-width: 760px; margin: 40px auto 0; padding: 0 32px;
  font-size: 16px; line-height: 1.85; color: var(--text-secondary);
}
.lb-article-body p { margin-bottom: 22px; }

/* ============================================
   相关推荐（两套结构共用 .lb-related-card*）
   ============================================ */
.lb-related, .lb-article-related {
  max-width: 1180px; margin: 64px auto 0; padding: 40px 32px 0;
  border-top: 1px solid var(--hairline);
}
.lb-related-title, .lb-article-related-title {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 24px;
}
.lb-related-grid, .lb-article-related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px;
}

/* article 相关卡片（整张为图版链接） */
.lb-related-card {
  display: block; background: var(--frame-bg);
  border: 1px solid var(--hairline); border-radius: 2px; overflow: hidden;
  box-shadow: var(--glow-soft);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.5s;
}
.lb-related-card:hover {
  transform: translateY(-4px); border-color: var(--hairline-strong); box-shadow: var(--glow-strong);
}
.lb-related-card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--wall-smoke); }
.lb-related-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.04); transition: transform 0.6s var(--ease-out);
}
.lb-related-card:hover .lb-related-card-img img { transform: scale(1.06); }
.lb-related-card-title {
  padding: 14px 15px 16px; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* movie 相关卡片（封面 + 文字） */
.lb-related-card-body { padding: 12px 14px 14px; }
.lb-related-card-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--line-teal); margin-bottom: 6px;
}
.lb-related-card .lb-related-card-title { padding: 0; }

/* ============================================
   页脚（两套结构共用）
   ============================================ */
.lb-footer {
  background: var(--wall-deep); border-top: 1px solid var(--hairline);
  padding: 56px 0 28px; margin-top: 72px;
}
.lb-footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; margin-bottom: 40px;
}
.lb-footer-top { display: contents; }
.lb-footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.lb-footer-brand-mark {
  width: 30px; height: 30px; border-radius: 2px; background: #f4f4f8; color: #060608;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
  box-shadow: 0 0 22px -4px rgba(255,255,255,0.55);
}
.lb-footer-brand-text { font-size: 17px; font-weight: 700; }
.lb-footer-desc { font-size: 13px; line-height: 1.7; color: var(--text-muted); max-width: 300px; }
.lb-footer-heading {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 10px;
}
.lb-footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lb-footer-links a { font-size: 13px; color: var(--text-secondary); transition: color 0.3s; }
.lb-footer-links a:hover { color: var(--text-primary); }
.lb-footer-bottom {
  border-top: 1px solid var(--hairline); padding-top: 20px;
  font-size: 12px; color: var(--text-muted); max-width: 1180px; margin: 0 auto; padding-left: 32px; padding-right: 32px;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .lb-article-hero-inner { grid-template-columns: 220px 1fr; gap: 28px; padding: 20px; }
}
@media (max-width: 768px) {
  .lb-nav-links { display: none; }
  .lb-mobile-menu-btn { display: flex; }
  .lb-detail { padding: 32px 20px 0; }
  .lb-detail-hero-img { aspect-ratio: 4 / 3; }
  .lb-article-hero { padding: 32px 20px 0; }
  .lb-article-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .lb-article-body { padding: 0 20px; }
  .lb-related, .lb-article-related { padding: 32px 20px 0; }
  .lb-related-grid, .lb-article-related-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .lb-footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .lb-nav-inner { padding: 0 16px; }
  .lb-detail-title, .lb-article-hero-title { letter-spacing: -0.5px; }
}
