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

:root {
  --bg: #faf9f7;
  --bg-card: #ffffff;
  --bg-header: rgba(250, 249, 247, 0.88);
  --text: #2d2a26;
  --text-secondary: #6b6560;
  --text-muted: #a09a94;
  --border: #e8e4df;
  --accent: #e8836b;
  --accent-hover: #d4705a;
  --accent-soft: rgba(232, 131, 107, 0.08);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

.dark-mode {
  --bg: #141210;
  --bg-card: #1e1c19;
  --bg-header: rgba(20, 18, 16, 0.92);
  --text: #f0ece8;
  --text-secondary: #a8a29e;
  --text-muted: #6b6560;
  --border: #2e2b27;
  --accent: #f0957e;
  --accent-hover: #e8836b;
  --accent-soft: rgba(240, 149, 126, 0.1);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-icon { font-size: 1.4rem; }

.main-nav {
  display: flex;
  gap: 4px;
}

.main-nav a {
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  color: var(--text);
}

.theme-toggle:hover { background: var(--accent-soft); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
}

.mobile-menu a {
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 131, 107, 0.06) 0%, rgba(255, 182, 150, 0.04) 50%, rgba(200, 160, 240, 0.04) 100%);
}

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

.hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 36px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-btn {
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 28px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(232, 131, 107, 0.3);
}

.hero-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 131, 107, 0.4);
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  min-height: 60vh;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.section-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.view-all {
  font-size: 0.88rem;
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
  transition: opacity var(--transition);
}

.view-all:hover { opacity: 0.7; }

/* Loading */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Album Grid */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.album-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.album-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.album-card:hover .album-cover img {
  transform: scale(1.06);
}

.album-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 0 0 0 0;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.album-featured {
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: auto;
}

.album-count {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.album-info {
  padding: 16px 18px 18px;
}

.album-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.album-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.album-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.album-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.album-fabulous {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.album-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-tag {
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 500;
}

/* Load More */
.load-more {
  text-align: center;
  padding: 40px 0 20px;
}

.load-more-btn {
  padding: 12px 32px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
}

.load-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Detail View */
.detail-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.back-btn {
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.back-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.detail-title-area h2 {
  font-size: 1.6rem;
  font-weight: 700;
}

.detail-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.detail-info {
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.detail-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  padding: 4px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 500;
}

.detail-fabulous {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
}

/* Photo Masonry */
.photo-masonry {
  columns: 4;
  column-gap: 12px;
}

.photo-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
}

.photo-item:hover {
  transform: scale(1.02);
}

.photo-item img {
  width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}

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

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.8rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 10;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 10;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.18); }

.lightbox-content {
  max-width: 92vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-counter {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .photo-masonry { columns: 3; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-menu { display: flex; }

  .hero { min-height: 55vh; padding: 90px 20px 50px; }
  .hero-stats { gap: 28px; }
  .stat-number { font-size: 1.5rem; }

  .album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .photo-masonry { columns: 2; column-gap: 8px; }
  .photo-item { margin-bottom: 8px; }

  .main-content { padding: 24px 16px 60px; }

  .detail-header { flex-direction: column; gap: 12px; }

  .lightbox-nav { width: 40px; height: 40px; font-size: 1.6rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .section-header { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .album-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .album-cover { aspect-ratio: 16 / 10; }

  .photo-masonry { columns: 2; column-gap: 6px; }
  .photo-item { margin-bottom: 6px; border-radius: 8px; }
  .photo-item img { border-radius: 8px; }

  .hero-content h1 { font-size: 2.2rem; }
  .hero-btn { padding: 12px 28px; font-size: 0.88rem; }
}
