/* ============================================================
   光年影像 · 暗黑高级感设计系统
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --surface: #161616;
  --surface-2: #1d1d1d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f3ef;
  --text-muted: #8a857c;
  --text-dim: #5a564f;
  --gold: #c9a96a;
  --gold-soft: #d8bd84;
  --gold-dim: rgba(201, 169, 106, 0.15);
  --serif: 'Cormorant Garamond', 'Noto Serif SC', 'Songti SC', serif;
  --sans: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--gold); color: #000; }

/* —— 排版 —— */
.serif { font-family: var(--serif); font-weight: 500; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }

/* —— 容器 —— */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 6vw; }
.section { padding: 8rem 0; }
.section-sm { padding: 5rem 0; }

/* —— 导航 —— */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 6vw;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
  padding: 1rem 6vw;
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo img { height: 136px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.nav-logo .brand {
  font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.12em; color: var(--text);
}
.nav-logo .brand-en {
  display: block; font-size: 9px; letter-spacing: 0.35em; color: var(--text-muted); margin-top: -2px;
}
.nav-menu { display: flex; gap: 2.6rem; align-items: center; }
.nav-menu a {
  font-size: 13px; letter-spacing: 0.18em; color: var(--text-muted);
  text-transform: uppercase; position: relative; padding: 0.3rem 0;
  transition: color 0.3s;
}
.nav-menu a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--gold); transition: width 0.4s var(--ease);
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a.active { color: var(--text); }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.nav-burger span { width: 24px; height: 1px; background: var(--text); transition: 0.3s; }

/* —— Hero —— */
.hero {
  position: relative; height: 100vh; min-height: 620px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 40%, rgba(10,10,10,0.9) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero h1 { font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 400; letter-spacing: 0.04em; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; animation: rise 1.2s var(--ease) both; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.15s; }
.hero .tagline {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--gold-soft); margin-top: 1.5rem; max-width: 520px;
  opacity: 0; animation: fade 1s 0.6s var(--ease) forwards;
}
.hero .hero-en {
  font-size: 12px; letter-spacing: 0.5em; color: var(--text-muted);
  margin-top: 1.2rem; opacity: 0; animation: fade 1s 0.8s var(--ease) forwards;
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 3; font-size: 10px; letter-spacing: 0.3em; color: var(--text-muted);
  text-transform: uppercase; text-align: center;
  opacity: 0; animation: fade 1s 1.2s var(--ease) forwards;
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 40px; margin: 0.8rem auto 0;
  background: linear-gradient(var(--gold), transparent); animation: scrollLine 2s infinite;
}

@keyframes rise { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* —— 区块标题 —— */
.section-head { margin-bottom: 4rem; }
.section-head .eyebrow { display: block; margin-bottom: 1.2rem; }
.section-head h2 { max-width: 800px; }
.section-head .lead { color: var(--text-muted); margin-top: 1.2rem; max-width: 560px; font-size: 0.95rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* —— 作品网格 —— */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.work-card {
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.work-card:hover { border-color: var(--gold-dim); transform: translateY(-4px); }
.work-card .thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
}
.work-card.photo .thumb { aspect-ratio: 4 / 5; }
.work-card .thumb img, .work-card .thumb video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s;
  filter: brightness(0.92);
}
.work-card:hover .thumb img, .work-card:hover .thumb video { transform: scale(1.06); filter: brightness(1); }
.work-card .thumb-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at center, #1d1d1d, #0a0a0a);
}
.play-icon {
  width: 56px; height: 56px; border: 1px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: 0.4s var(--ease); opacity: 0.85;
}
.play-icon::after {
  content: ''; width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--gold); margin-left: 3px;
}
.work-card:hover .play-icon { background: var(--gold); transform: scale(1.1); }
.work-card:hover .play-icon::after { border-color: transparent transparent transparent #0a0a0a; }
.work-card .meta { padding: 1.3rem 1.4rem; }
.work-card .cat {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.6rem;
}
.work-card .title { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.work-card .desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; line-height: 1.6; }
.work-card .badge-feat {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--bg);
  background: var(--gold); padding: 0.3rem 0.7rem;
}

/* —— 分类筛选 —— */
.filters {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 3rem;
  border-bottom: 1px solid var(--line); padding-bottom: 2rem;
}
.filter-group { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filter-group + .filter-group { border-left: 1px solid var(--line); padding-left: 1.5rem; margin-left: 0.5rem; }
.filter-group .label { font-size: 10px; letter-spacing: 0.3em; color: var(--text-dim); text-transform: uppercase; margin-right: 0.5rem; }
.filter-btn {
  font-size: 13px; letter-spacing: 0.12em; color: var(--text-muted);
  padding: 0.5rem 1.1rem; border: 1px solid transparent; transition: 0.3s;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active { color: var(--gold); border-color: var(--gold-dim); }

/* —— 灯箱 / 视频弹窗 —— */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(5,5,5,0.96);
  display: none; align-items: center; justify-content: center; padding: 4rem 2rem;
  opacity: 0; transition: opacity 0.4s;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-content { position: relative; max-width: 1200px; width: 100%; max-height: 90vh; }
.lightbox-content video, .lightbox-content img {
  width: 100%; max-height: 86vh; object-fit: contain; background: #000;
}
.lightbox-close {
  position: absolute; top: -2.5rem; right: 0; font-size: 12px; letter-spacing: 0.2em;
  color: var(--text-muted); text-transform: uppercase; transition: color 0.3s;
}
.lightbox-close:hover { color: var(--gold); }
.lightbox-title { font-family: var(--serif); font-size: 1.3rem; margin-top: 1rem; color: var(--text); }
.lightbox-cat { font-size: 10px; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; }

/* —— 通用按钮 —— */
.btn {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase;
  padding: 1rem 2.2rem; border: 1px solid var(--line-strong); color: var(--text);
  transition: 0.4s var(--ease); position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0; background: var(--gold);
  transform: translateX(-101%); transition: transform 0.5s var(--ease); z-index: -1;
}
.btn:hover { color: var(--bg); border-color: var(--gold); }
.btn:hover::before { transform: translateX(0); }
.btn .arrow { transition: transform 0.4s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn-gold::before { background: var(--gold-soft); }
.btn-gold:hover { color: var(--bg); }

/* —— 关于 / 联系 —— */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.split.reverse .split-text { order: 2; }
.text-block p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1rem; }
.text-block p strong { color: var(--text); font-weight: 400; }
.stat-row { display: flex; gap: 3rem; margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.stat .num { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); }
.stat .label { font-size: 10px; letter-spacing: 0.25em; color: var(--text-dim); text-transform: uppercase; margin-top: 0.3rem; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.contact-item { padding: 2.5rem 2rem; border: 1px solid var(--line); background: var(--surface); transition: 0.4s; }
.contact-item:hover { border-color: var(--gold-dim); background: var(--surface-2); }
.contact-item .ico { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); margin-bottom: 1rem; }
.contact-item .ctype { font-size: 10px; letter-spacing: 0.3em; color: var(--text-dim); text-transform: uppercase; margin-bottom: 0.8rem; }
.contact-item .cval { font-family: var(--serif); font-size: 1.3rem; color: var(--text); }

/* —— 页脚 —— */
.footer { border-top: 1px solid var(--line); padding: 4rem 0 2rem; margin-top: 4rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; margin-bottom: 3rem; }
.footer-brand .brand { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.1em; }
.footer-brand .brand-en { font-size: 10px; letter-spacing: 0.4em; color: var(--text-muted); margin-top: 0.3rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; max-width: 320px; margin-top: 1rem; }
.footer-links { display: flex; gap: 4rem; }
.footer-links h4 { font-family: var(--sans); font-size: 10px; letter-spacing: 0.3em; color: var(--text-dim); text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-links a { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.7rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--text-dim); }
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--gold); }

/* —— 滚动渐显 —— */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* —— 空状态 —— */
.empty { text-align: center; padding: 5rem 2rem; color: var(--text-dim); }
.empty .serif { font-size: 1.6rem; color: var(--text-muted); margin-bottom: 0.5rem; }

/* —— 加载 —— */
.loader { text-align: center; padding: 4rem; color: var(--text-dim); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; }

/* ============================================================
   响应式 · 移动优先精修（移动端最高优）
   ============================================================ */

/* —— 平板（≤ 1024px）—— */
@media (max-width: 1024px) {
  .section { padding: 5rem 0; }
  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(20px);
    padding: 2rem 6vw 2.5rem;
    gap: 1.6rem;
    border-bottom: 1px solid var(--line);
    z-index: 50;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { font-size: 1.1rem; padding: 0.4rem 0; }
  .nav-burger { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .split.reverse .split-text { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 2.5rem; }
  .filter-group + .filter-group { border-left: none; padding-left: 0; margin-left: 0; }
  .filter-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
  }
  .hero .sub { font-size: 14px; letter-spacing: 0.32em; }
  .hero .title-en { font-size: 14px; }
  .section-head h2 { font-size: 2.6rem; }
  .page-head h1 { font-size: 3rem; }
}

/* —— 手机（≤ 640px）—— */
@media (max-width: 640px) {
  :root {
    --max: 100%;
  }
  .container { padding: 0 5vw; }

  /* 导航 */
  .navbar { padding: 0.6rem 5vw; }
  .nav-logo img { height: 72px; }  /* 移动端把 136px 过大的 logo 缩到合适 */
  .nav-logo .brand { font-size: 1rem; }
  .nav-logo .brand-en { font-size: 9px; }
  .nav-logo { gap: 0.5rem; }
  .nav-burger { padding: 0.35rem; }
  .nav-burger span { width: 20px; height: 1px; }

  /* Hero */
  .hero { min-height: 88vh; padding-top: 72px; }
  .hero h1 { font-size: clamp(2.4rem, 14vw, 4.2rem); line-height: 1.05; letter-spacing: 0.02em; }
  .hero .sub { font-size: 11px; letter-spacing: 0.28em; margin-top: 1.2rem; }
  .hero .title-en { font-size: 10px; }
  .hero-actions { flex-direction: column; width: 100%; padding: 0 5vw; }
  .hero-actions .btn { width: 100%; }

  /* 排版 */
  .eyebrow { font-size: 10px; letter-spacing: 0.3em; }
  .section-head h2 { font-size: 2.1rem; line-height: 1.2; }
  .section-head .lead { font-size: 0.9rem; line-height: 1.8; }
  .section { padding: 4rem 0; }

  /* 作品卡片：单列 + 加大信息密度 */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1.2rem; }
  .work-card .meta { padding: 1rem 1.1rem; }
  .work-card .title { font-size: 1.1rem; }
  .work-card .desc { font-size: 0.82rem; line-height: 1.6; }
  .work-card.photo .thumb { aspect-ratio: 3 / 4; }

  /* 筛选条 */
  .filter-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .filter-group {
    gap: 0.4rem;
  }
  .filter-btn {
    font-size: 12px;
    padding: 0.45rem 0.9rem;
  }
  .filter-group + .filter-group {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    padding-top: 0;
    border-top: none;
  }

  /* 数据行 & 联系卡片 */
  .stat-row {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .stat-row .stat { width: calc(50% - 0.6rem); }
  .contact-card { padding: 1.6rem 1.4rem; }
  .contact-card .label { font-size: 10px; letter-spacing: 0.24em; }
  .contact-card .value { font-size: 1.05rem; word-break: break-all; }

  /* 灯箱 */
  .lightbox-content {
    max-height: 94vh;
    padding: 0 4vw;
  }
  .lightbox-close {
    top: 0.6rem; right: 0.6rem;
    width: 38px; height: 38px;
    font-size: 1rem;
  }
  .lightbox-title { font-size: 1.05rem; margin-top: 0.8rem; }
  .lightbox-cat { font-size: 9px; letter-spacing: 0.24em; }

  /* 页脚 */
  .footer-top { padding: 3rem 5vw 2.5rem; flex-direction: column; align-items: flex-start; }
  .footer-brand { margin-bottom: 2rem; }
  .footer-links {
    flex-direction: column;
    gap: 1.8rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
    padding: 1.5rem 5vw;
  }

  /* 作品页头 */
  .page-head {
    padding: 8rem 5vw 3rem;
  }
  .page-head h1 {
    font-size: 2.5rem;
    line-height: 1.15;
  }
  .page-head .sub {
    font-size: 0.9rem;
    margin-top: 0.9rem;
  }

  /* split 章节的图片 + 文字 */
  .split-media img, .split-media video {
    border-radius: 6px;
  }
  .split-text .big {
    font-size: 2.2rem;
    line-height: 1.3;
  }
}

/* —— 超小屏（≤ 380px，SE/老安卓）—— */
@media (max-width: 380px) {
  .nav-logo img { height: 60px; }
  .hero h1 { font-size: 2rem; }
  .page-head h1 { font-size: 2.1rem; }
  .section-head h2 { font-size: 1.8rem; }
  .work-card .title { font-size: 1rem; }
  .filter-btn { font-size: 11px; padding: 0.4rem 0.75rem; }
}
