/* 相册独立皮肤：暖黑底、牙色字、朱砂点缀。不套首页浅色 --bg。 */
:root {
  color-scheme: dark;
  --photos-bg: #1c1914;
  --photos-ink: #f3e6c8;
  --photos-muted: rgba(243, 230, 200, 0.62);
  --photos-accent: #c23a2b;
  --photos-gap: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--photos-bg);
  color: var(--photos-ink);
  font-family: "IBM Plex Sans", "Source Han Sans SC", sans-serif;
  line-height: 1.55;
}

h1,
h2,
h3,
.photos-exhibition__header h1,
.photos-index__header h1,
.photos-card__meta strong {
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

button {
  font: inherit;
  color: inherit;
}

/* 半透明暖黑顶栏，底边牙色细线；导航 hover 用朱砂下划线 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(243, 230, 200, 0.12);
  background: rgba(28, 25, 20, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  line-height: 0;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--photos-muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 28px);
  font-size: 0.95rem;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  border-color: var(--photos-accent);
  color: var(--photos-accent);
}

main {
  min-height: calc(100vh - 160px);
}

.photos-index,
.photos-exhibition {
  padding: 36px clamp(18px, 4vw, 54px) 72px;
}

.photos-index__header {
  margin-bottom: 28px;
}

.photos-index__header h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.photos-index__header p {
  margin: 0;
  color: var(--photos-muted);
}

/* 筛选 chip：默认牙色弱化，当前项朱砂 */
.photos-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 28px;
}

.photos-filter {
  appearance: none;
  margin: 0;
  padding: 6px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--photos-muted);
  cursor: pointer;
}

.photos-filter:hover,
.photos-filter:focus-visible {
  color: var(--photos-ink);
}

.photos-filter.is-active,
.photos-filters .is-active {
  color: var(--photos-accent);
  border-bottom-color: var(--photos-accent);
}

.photos-empty {
  margin: 48px 0;
  color: var(--photos-muted);
  font-size: 1.05rem;
}

.photos-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--photos-gap);
}

.photos-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0;
  background: #14110e;
}

.photos-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.photos-card.is-hidden {
  display: none;
}

.photos-card__meta {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(20, 17, 14, 0.88));
  color: var(--photos-ink);
}

.photos-card__meta strong {
  font-size: 1.05rem;
}

.photos-card__meta time {
  color: var(--photos-muted);
  font-size: 0.82rem;
}

.photos-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--photos-muted);
}

/* 展览页：大衬线标题 + 全幅图 */
.photos-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--photos-muted);
  border-bottom: 1px solid transparent;
}

.photos-back:hover,
.photos-back:focus-visible {
  color: var(--photos-accent);
  border-bottom-color: var(--photos-accent);
}

.photos-exhibition__header {
  max-width: 42rem;
  margin-bottom: 40px;
}

.photos-exhibition__header h1 {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.2;
}

.photos-exhibition__year {
  display: block;
  margin-bottom: 12px;
  color: var(--photos-muted);
}

.photos-exhibition__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--photos-accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.photos-exhibition__intro {
  margin: 0;
  color: var(--photos-muted);
  font-size: 1.05rem;
}

.photos-frames {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.photos-frame {
  margin: 0;
}

.photos-frame button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.photos-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.photos-frame figcaption {
  margin-top: 10px;
  color: var(--photos-muted);
  font-size: 0.92rem;
}

/* lightbox：全屏固定、深色遮罩、居中大图 */
.photos-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 56px 24px 32px;
  background: rgba(8, 6, 4, 0.92);
}

.photos-lightbox[hidden] {
  display: none;
}

.photos-lightbox img {
  max-width: min(96vw, 1280px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.photos-lightbox__caption {
  margin: 0;
  max-width: min(96vw, 1280px);
  color: var(--photos-muted);
  text-align: center;
}

.photos-lightbox__close {
  position: absolute;
  top: 16px;
  right: 18px;
  padding: 6px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--photos-ink);
  cursor: pointer;
}

.photos-lightbox__close:hover,
.photos-lightbox__close:focus-visible {
  color: var(--photos-accent);
  border-bottom-color: var(--photos-accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 54px);
  border-top: 1px solid rgba(243, 230, 200, 0.12);
  color: var(--photos-muted);
  font-size: 0.88rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--photos-accent);
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
