/* ═══════════════════════════════════════════
   宋家良摄影 — 时尚简约风格
   Fashion Minimalist
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap');

/* ── Variables ── */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F5F5F5;
  --text: #111111;
  --text-light: #666666;
  --text-muted: #999999;
  --accent: #111111;
  --border: #E5E5E5;
  --border-light: #F0F0F0;
  --dark: #0A0A0A;
  --white: #FFFFFF;
  --section-gap: 6rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Syne', -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
}

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

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.8rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease, padding 0.3s ease;
  mix-blend-mode: difference;
}

.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 3rem;
  mix-blend-mode: normal;
}

.nav-brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.3s ease;
}

.nav.scrolled .nav-brand { color: var(--text); }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }

.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav.scrolled .nav-links a { color: var(--text-light); }
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active { color: var(--text); }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

.nav.scrolled .nav-toggle span { background: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid var(--text);
  background: var(--text);
  color: #fff;
  transition: all 0.3s ease;
}

.btn:hover { background: transparent; color: var(--text); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover { background: #fff; color: var(--text); border-color: #fff; }

/* ── Sections ── */
.section { padding: var(--section-gap) 3rem; }

.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 480px;
  margin-top: 1rem;
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 5rem 3rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.footer p { font-size: 0.85rem; line-height: 1.7; }

.footer h5 {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.2rem;
}

.footer a {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer a:hover { color: #fff; }

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes kenBurns {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active { opacity: 1; pointer-events: all; }

.lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  color: rgba(255,255,255,0.8);
  font-size: 1.8rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { color: #fff; }

.lightbox-nav-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  z-index: 1001;
  font-size: 1.1rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav-btn:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-info {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .section { padding: 4rem 2rem; }
  .nav { padding: 1.4rem 2rem; }
  .nav.scrolled { padding: 1rem 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav { padding: 1.2rem 1.5rem; }
  .nav.scrolled { padding: 0.8rem 1.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 3rem 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.3rem; }
  .section-title { font-size: 2rem; }
}

.nav-mobile-open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 100;
}

.nav-mobile-open .nav-links a {
  font-size: 1.3rem;
  color: var(--text);
}
