:root {
  --bg: #0d0d0d;
  --bg-soft: #151515;
  --card: #1a1a1a;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --line: #2a2a2a;
  --accent: #d4b08c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top, #171717 0%, var(--bg) 45%);
  color: var(--text);
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(13, 13, 13, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.ghost-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  cursor: pointer;
}

.ghost-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 72px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline-root {
  margin-top: 22px;
}

.loading,
.empty,
.error {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}

.error {
  color: #f87171;
}

.day-group {
  margin-bottom: 34px;
}

.day-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.day-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.day-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.photo-card {
  position: relative;
  border: 0;
  padding: 0;
  background: var(--bg-soft);
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.photo-card:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

.photo-card .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  font-size: 0.74rem;
  color: #ececec;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.photo-card:hover .caption {
  opacity: 1;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0 20px 28px;
}

.lightbox {
  width: min(1200px, 96vw);
  max-height: 92vh;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  background: rgba(10, 10, 10, 0.96);
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox-body {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  max-height: 92vh;
}

.lightbox-body img {
  width: 100%;
  max-height: calc(92vh - 72px);
  object-fit: contain;
  background: #000;
}

.lightbox-body figcaption {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lightbox-body strong {
  font-weight: 500;
}

.lightbox-body span {
  color: var(--muted);
  font-size: 0.82rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  line-height: 1;
}

.lightbox-close {
  top: 10px;
  right: 10px;
}

.lightbox-nav.prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .brand h1 {
    font-size: 1.65rem;
  }
}
