/* ========== 基础 ========== */
:root {
  --bg: #0a0a0a;
  --bg-light: #111111;
  --text: #e8e8e8;
  --text-muted: #888888;
  --accent: #c4a882;
  --nav-height: 56px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: 'Inter', 'Noto Serif SC', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========== 导航 ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-logo {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

/* ========== 首页 Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(196,168,130,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 0.8rem;
}

.hero-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
}

.scroll-hint {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
  transition: color var(--transition);
}

.scroll-hint:hover {
  color: var(--accent);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ========== 系列封面网格 ========== */
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bg);
}

.series-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-light);
}

.series-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
  filter: grayscale(30%) brightness(0.7);
}

.series-item:hover .series-cover {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(0.85);
}

.series-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 2;
  transition: opacity var(--transition);
}

.series-overlay h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 0.5rem;
  transform: translateY(8px);
  opacity: 0.9;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.series-item:hover .series-overlay h2 {
  transform: translateY(0);
  opacity: 1;
}

.series-overlay p {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.5s ease 0.1s, opacity 0.5s ease 0.1s;
}

.series-item:hover .series-overlay p {
  transform: translateY(0);
  opacity: 1;
}

/* 响应式：平板 2 列 */
@media (max-width: 900px) {
  .series-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 响应式：手机 1 列 */
@media (max-width: 550px) {
  .series-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 1.5rem; }
  .nav-links a { font-size: 0.8rem; }
}

/* ========== 画廊页 ========== */
.gallery-page {
  padding: calc(var(--nav-height) + 3rem) 4vw 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-header {
  text-align: center;
  margin-bottom: 4rem;
}

.gallery-header h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}

.gallery-meta {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.gallery-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ========== 画廊网格 ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--bg);
}

.gallery-item {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
  filter: grayscale(20%) brightness(0.85);
}

.gallery-item:hover img {
  transform: scale(1.03);
  filter: grayscale(0%) brightness(0.95);
}

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .gallery-item { aspect-ratio: 1/1; }
}

/* ========== 灯箱 ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-caption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.2s ease;
  z-index: 2;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--accent);
}

.lightbox-close {
  top: -2.5rem;
  right: 0;
  font-size: 2.5rem;
  font-weight: 300;
}

.lightbox-prev { left: -3rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox-next { right: -3rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }

@media (max-width: 700px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 0.5rem; right: 0.5rem; }
}

/* ========== 关于页 ========== */
.about-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 3rem) 4vw 4rem;
}

.about-content {
  max-width: 640px;
  text-align: center;
}

.about-content h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  margin-bottom: 2.5rem;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 2;
  margin-bottom: 1.5rem;
  text-align: justify;
  text-align-last: center;
}

.about-contact {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.about-contact h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: var(--text);
}

.about-contact p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.about-contact a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.about-contact a:hover {
  opacity: 0.7;
}

/* ========== 页脚 ========== */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 2rem;
}

.footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  font-weight: 300;
}

.footer-note {
  margin-top: 0.3rem;
  opacity: 0.6;
}

/* ========== 加载动画 ========== */
.series-item, .gallery-item {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.series-item:nth-child(1) { animation-delay: 0.05s; }
.series-item:nth-child(2) { animation-delay: 0.1s; }
.series-item:nth-child(3) { animation-delay: 0.15s; }
.series-item:nth-child(4) { animation-delay: 0.2s; }
.series-item:nth-child(5) { animation-delay: 0.25s; }
.series-item:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
