/* ============ 基础 ============ */
:root {
  --bg: #0b0b0f;
  --bg-2: #121218;
  --panel: #17171f;
  --text: #f3f3f5;
  --muted: #9a9aa6;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #e0b36b;
  --accent-soft: rgba(224, 179, 107, 0.14);
  --radius: 14px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-display: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

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

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #0b0b0f; }

/* ============ 顶部导航 ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 11, 15, 0.6);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.nav-logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: clamp(14px, 2.4vw, 32px);
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  position: relative;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* 汉堡按钮（移动端显示） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 60;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 20%, rgba(224, 179, 107, 0.12), transparent 65%),
    radial-gradient(ellipse 40% 35% at 80% 70%, rgba(120, 100, 220, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-eyebrow {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero-title {
  position: relative;
  z-index: 1;
  font-size: clamp(4rem, 14vw, 9.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff 20%, #b8b8c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: var(--text);
  font-weight: 400;
}

.hero-en {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: var(--muted);
}

.hero-contact {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 16px;
}
.hero-contact a {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--text);
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  transition: all 0.25s ease;
}
.hero-contact a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.hero-contact .sep { color: var(--muted); }

.scroll-hint {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.25s ease;
}
.scroll-hint:hover { color: var(--text); }
.scroll-hint i {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--accent), transparent);
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ 关于 ============ */
.about {
  padding: 90px 20px;
}
.about-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.about-lead {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.5;
}
.about-text {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.02rem;
}
.about-tags {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.about-tags span {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-2);
}

/* ============ 作品区 ============ */
.work-section {
  padding: 70px clamp(16px, 4vw, 56px);
  max-width: 1440px;
  margin: 0 auto;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 40px;
}
.section-no {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.section-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
}

/* ============ 卡片 ============ */
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}

.card .media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.card img,
.card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover img,
.card:hover video {
  transform: scale(1.06);
}

.card .play-badge {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(11, 11, 15, 0.55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.7rem;
  border: 1px solid var(--line);
  z-index: 2;
}
.card .play-badge::before {
  content: "";
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
  margin-left: 2px;
}

.card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 42px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  transform: translateY(20%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 1;
}
.card:hover figcaption {
  transform: translateY(0);
  opacity: 1;
}
.card figcaption .title {
  font-size: 0.9rem;
  font-weight: 500;
}
.card figcaption .cat {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ============ 联系 ============ */
.contact {
  padding: 110px 20px;
  text-align: center;
}
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--accent);
}
.contact h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 14px 0 14px;
  font-weight: 700;
}
.contact-text { color: var(--muted); }
.contact-list {
  list-style: none;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.contact-list li span { color: var(--muted); font-size: 0.85rem; }
.contact-list a { color: var(--text); border-bottom: 1px solid transparent; }
.contact-list a:hover { color: var(--accent); border-color: var(--accent); }
.contact-list em { font-style: normal; color: var(--text); }

/* ============ 页脚 ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}
.to-top { color: var(--muted); transition: color 0.25s ease; }
.to-top:hover { color: var(--accent); }

/* ============ 灯箱 ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}
.lightbox.open { display: flex; }

.lb-stage {
  max-width: min(92vw, 1200px);
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-stage img,
.lb-stage video {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lb-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.lb-close {
  position: absolute;
  top: 24px; right: 28px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}
.lb-close:hover { color: #fff; transform: rotate(90deg); }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease;
  line-height: 1;
}
.lb-nav:hover { background: rgba(255, 255, 255, 0.14); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

/* ============ 动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint i { animation: none; }
}

/* ============ 移动端适配 ============ */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 11, 15, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 6px 24px 16px;
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a {
    padding: 15px 0;
    text-align: center;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after { display: none; }

  .hero { padding: 110px 20px 70px; }
  .hero-en { letter-spacing: 0.18em; }
  .hero-contact { flex-direction: column; gap: 10px; margin-top: 26px; }
  .hero-contact .sep { display: none; }
  .hero-contact a { width: 100%; max-width: 300px; text-align: center; }

  .about { padding: 60px 20px; }

  .work-section { padding: 44px 16px; }
  .section-head { margin-bottom: 24px; gap: 14px; }

  .contact { padding: 80px 20px; }
  .contact-list li { flex-direction: column; align-items: flex-start; gap: 2px; }

  .footer { flex-direction: column; gap: 8px; text-align: center; }

  .lightbox { padding: 14px; }
  .lb-nav { width: 44px; height: 44px; font-size: 1.4rem; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 16px; }
  .lb-caption { bottom: 14px; font-size: 0.78rem; white-space: nowrap; }
  .lb-stage img,
  .lb-stage video { max-height: 76vh; }
}
