/* =====================================================================
   肖清林 · 景德镇之旅 — 设计系统
   风格：编辑式排版 / 暖纸底色 / 细线分隔 / 克制留白 / 单一青花蓝强调色
   特性：亮暗双主题、瀑布流+网格双布局、照片查看器、响应式、可访问性
   ===================================================================== */

/* ---------------- 设计令牌 ---------------- */
:root {
  /* 颜色：暖白纸 + 墨黑 + 哑光铜 */
  --paper: #f6f4ef;
  --paper-2: #efece3;
  --surface: #fbfaf6;
  --ink: #17150f;
  --ink-2: #363126;
  --muted: #6b6557;
  --muted-2: #857e6e;
  --line: rgba(23, 21, 15, 0.13);
  --line-2: rgba(23, 21, 15, 0.07);
  --accent: #3a5a70;
  --accent-soft: rgba(58, 90, 112, 0.1);

  /* 尺度与节奏 */
  --maxw: 1400px;
  --gutter: clamp(20px, 5vw, 72px);
  --gap: clamp(14px, 2vw, 28px);
  --radius: 3px;

  /* 字体 */
  --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --paper: #0f0e0c;
  --paper-2: #15130f;
  --surface: #17150f;
  --ink: #ece7db;
  --ink-2: #d3ccbc;
  --muted: #98907f;
  --muted-2: #6f6859;
  --line: rgba(236, 231, 219, 0.15);
  --line-2: rgba(236, 231, 219, 0.08);
  --accent: #93b0c2;
  --accent-soft: rgba(147, 176, 194, 0.12);
}

/* ---------------- 基础重置 ---------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}
[data-theme="dark"] { color-scheme: dark; }

body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

/* 纸张颗粒质感：极低透明度，几乎只被"感觉到" */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::after {
  opacity: 0.05;
  mix-blend-mode: soft-light;
}

img { display: block; max-width: 100%; height: auto; }
/* picture 不产生盒子，保证 img 的百分比高度按容器（而非 picture）计算 */
picture { display: contents; }

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

ul, ol { list-style: none; padding: 0; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 20px; top: -100px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  border-radius: 2px;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------------- 布局 ---------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 11vh, 148px); }
.section--tight { padding-top: clamp(56px, 8vh, 104px); }

/* ---------------- 顶栏 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease),
    backdrop-filter 0.45s var(--ease);
}
.site-header.is-scrolled {
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-2);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand__mark { transform: scale(1.35); }
.brand__text {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1;
}
.brand__text em {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  color: var(--muted-2);
  margin-top: 5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
  margin-left: auto;
}
.nav__link {
  position: relative;
  font-size: 0.83rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-block: 6px;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 8px; margin-left: clamp(14px, 2vw, 30px); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); background: var(--accent-soft); }
.icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.icon--sun { display: block; }
.icon--moon { display: none; }
[data-theme="dark"] .icon--sun { display: none; }
[data-theme="dark"] .icon--moon { display: block; }

/* ---------------- 首屏 ---------------- */
.hero {
  padding-top: clamp(40px, 7vh, 84px);
  padding-bottom: clamp(48px, 8vh, 96px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(24px, 4vh, 40px);
}
.eyebrow__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.2rem, 8.4vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: 0.06em;
  margin-left: -0.06em; /* 光学对齐：抵消末字右侧字距 */
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__latin {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  letter-spacing: 0.01em;
  color: var(--muted);
  margin-top: 18px;
}

.hero__lede {
  margin-top: clamp(22px, 3.4vh, 36px);
  max-width: 34em;
  font-size: clamp(0.95rem, 1.4vw, 1.02rem);
  line-height: 2;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: clamp(28px, 4vh, 44px);
}

.arrow-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding-bottom: 6px;
}
.arrow-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-out);
  transform-origin: left;
}
.arrow-link:hover::after { opacity: 1; }
.arrow-link__icon {
  transition: transform 0.4s var(--ease-out);
}
.arrow-link:hover .arrow-link__icon { transform: translateX(5px); }
.arrow-link--muted { color: var(--muted); }

.hero__meta {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(40px, 6vh, 72px);
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.hero__meta dt {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero__meta dd {
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.hero__media {
  justify-self: end;
  width: 100%;
  max-width: 460px;
}
.hero__frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}
.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease-out);
}
.hero__media:hover .hero__frame img { transform: scale(1.07); }

.hero__caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-top: clamp(40px, 7vh, 84px);
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.scroll-hint__line {
  display: block;
  width: 44px; height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-hint__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-100%);
  animation: hint 2.6s var(--ease) infinite;
}
@keyframes hint {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
.hero__note {
  font-size: 0.76rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

/* ---------------- 区块标题 ---------------- */
.sec-head { margin-bottom: clamp(32px, 5vh, 56px); }

.sec-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.sec-label span { color: var(--accent); }
.sec-label em {
  font-style: normal;
  color: var(--muted-2);
  letter-spacing: 0.18em;
}

.sec-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 64px);
  flex-wrap: wrap;
}

.sec-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: 0.05em;
}
.sec-desc {
  max-width: 30em;
  font-size: 0.86rem;
  line-height: 1.9;
  color: var(--muted);
  padding-bottom: 6px;
}

/* ---------------- 系列（相册） ---------------- */
.albums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.album { display: block; }

.album__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-2);
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}
.album__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.6s var(--ease);
}
.album:hover .album__media img { transform: scale(1.045); }

.album__count {
  position: absolute;
  top: 14px; right: 14px;
  padding: 4px 9px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: #fff;
  background: rgba(20, 18, 14, 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 2px;
}

.album__body {
  display: block;
  padding-top: 18px;
  position: relative;
}
.album__idx {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.album__name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin-top: 8px;
}
.album__meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-top: 6px;
}
.album__note {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.85;
  max-width: 26em;
}
.album__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity 0.3s var(--ease), gap 0.4s var(--ease-out);
}
.album:hover .album__cta { opacity: 1; gap: 14px; }

/* ---------------- 工具条 ---------------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: clamp(24px, 4vh, 40px);
  border-bottom: 1px solid var(--line-2);
}

.filters { display: flex; flex-wrap: wrap; gap: clamp(16px, 2.4vw, 30px); }

.chip {
  position: relative;
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 2px 0 8px;
  transition: color 0.3s var(--ease);
}
.chip sup {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  margin-left: 5px;
  color: var(--muted-2);
  vertical-align: super;
  transition: color 0.3s var(--ease);
}
.chip::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); }
.chip[aria-pressed="true"]::after { transform: scaleX(1); }
.chip[aria-pressed="true"] sup { color: var(--accent); }

.layout-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.layout-btn {
  display: grid;
  place-items: center;
  width: 34px; height: 30px;
  border-radius: 999px;
  color: var(--muted-2);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.layout-btn svg {
  width: 17px; height: 17px;
  fill: currentColor;
  stroke: none;
}
.layout-btn:hover { color: var(--ink); }
.layout-btn[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
}

/* ---------------- 画廊 ---------------- */
.gallery { display: block; }

/* 瀑布流：CSS 多列，零 JS、无布局抖动 */
[data-layout="masonry"] .gallery {
  columns: 3;
  column-gap: var(--gap);
}
[data-layout="masonry"] .tile {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: var(--gap);
}

/* 网格：统一 4:5 裁切 */
[data-layout="grid"] .gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
[data-layout="grid"] .tile__frame { aspect-ratio: 4 / 5 !important; }

.tile { display: block; }
.tile[hidden] { display: none; }

.tile__btn {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: var(--radius);
}
.tile__btn:focus-visible { outline-offset: 5px; }

.tile__frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.tile__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), opacity 0.6s var(--ease);
}

@media (hover: hover) {
  .tile__btn:hover .tile__frame img { transform: scale(1.035); }
}

/* 悬停信息层：仅在支持悬停的设备显示 */
.tile__meta {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 34px 16px 14px;
  color: #fff;
  background: linear-gradient(to top, rgba(14, 12, 9, 0.62), rgba(14, 12, 9, 0));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease-out);
  pointer-events: none;
}
.tile__num {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  opacity: 0.8;
}
.tile__name {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.08em;
}
@media (hover: hover) {
  .tile__btn:hover .tile__meta,
  .tile__btn:focus-visible .tile__meta { opacity: 1; transform: none; }
}

/* 切换筛选时的入场 */
.tile.is-in {
  animation: tileIn 0.6s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
@keyframes tileIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- 关于 ---------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.about__media-note {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.about__text .sec-title { margin-bottom: 24px; }
.prose {
  max-width: 32em;
  font-size: 0.95rem;
  line-height: 2.05;
  color: var(--ink-2);
}
.prose + .prose { margin-top: 16px; }

.specs {
  margin-top: clamp(28px, 4vh, 40px);
  border-top: 1px solid var(--line-2);
}
.specs > div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}
.specs dt {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  padding-top: 4px;
}
.specs dd {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.8;
}

.about__contact {
  margin-top: clamp(24px, 3.4vh, 36px);
  font-size: 0.86rem;
  color: var(--muted);
}
.link {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.3s var(--ease);
}
.link:hover { color: var(--accent); }

/* ---------------- 页脚 ---------------- */
.site-footer {
  border-top: 1px solid var(--line-2);
  padding-block: clamp(36px, 5vh, 56px);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer__brand p {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.18em;
}
.site-footer__brand span {
  display: block;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  color: var(--muted-2);
  margin-top: 6px;
}
.site-footer__legal {
  font-size: 0.76rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
.site-footer__nav { display: flex; gap: 22px; }
.site-footer__nav a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.site-footer__nav a:hover { color: var(--ink); }

/* ---------------- 照片查看器 ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #0c0b09;
  color: #efe9dc;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(16px, 3vw, 40px);
  height: 66px;
  border-bottom: 1px solid rgba(239, 233, 220, 0.09);
}
.lb-counter {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: #efe9dc;
  min-width: 4.4em;
}
.lb-counter i {
  font-style: normal;
  margin: 0 6px;
  color: rgba(239, 233, 220, 0.32);
}
.lb-series {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(239, 233, 220, 0.5);
}
.lb-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(239, 233, 220, 0.18);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: rgba(239, 233, 220, 0.8);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}
.lb-btn:hover { border-color: rgba(239, 233, 220, 0.5); color: #fff; }
.lb-btn:focus-visible,
.lb-nav:focus-visible {
  outline: 1px solid rgba(239, 233, 220, 0.55);
  outline-offset: 2px;
}
.lb-btn[aria-expanded="false"] { color: rgba(239, 233, 220, 0.45); }
.lb-btn--icon { width: 34px; padding: 0; justify-content: center; }
.lb-btn svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
}
.lb-btn--icon svg { width: 14px; height: 14px; }

.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 22px clamp(12px, 4vw, 68px);
}

.lb-figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.lb-figure img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease-out);
  border-radius: 1px;
}
.lb-figure img.is-loaded { opacity: 1; transform: none; }

.lb-spinner {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(239, 233, 220, 0.18);
  border-top-color: rgba(239, 233, 220, 0.75);
  animation: spin 0.9s linear infinite;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.lb-figure.is-loading .lb-spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(239, 233, 220, 0.16);
  color: rgba(239, 233, 220, 0.7);
  background: rgba(20, 18, 14, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.lb-nav:hover {
  color: #fff;
  border-color: rgba(239, 233, 220, 0.45);
  background: rgba(30, 27, 21, 0.6);
}
.lb-nav svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lb-nav--prev { left: clamp(10px, 2.4vw, 30px); }
.lb-nav--next { right: clamp(10px, 2.4vw, 30px); }
.lb-nav[disabled] { opacity: 0.25; pointer-events: none; }

.lb-hint {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: rgba(239, 233, 220, 0.22);
  white-space: nowrap;
}
.lb-hint span { color: rgba(239, 233, 220, 0.45); }

.lightbox__caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 64px);
  padding: 22px clamp(20px, 5vw, 64px) 26px;
  border-top: 1px solid rgba(239, 233, 220, 0.09);
  max-height: 40vh;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), padding 0.5s var(--ease),
    opacity 0.35s var(--ease), border-color 0.5s var(--ease);
}
.lb-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.lb-note {
  font-size: 0.84rem;
  line-height: 1.9;
  color: rgba(239, 233, 220, 0.55);
  margin-top: 8px;
  max-width: 46em;
}
.lb-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0 clamp(20px, 3vw, 44px);
  align-content: start;
}
.lb-meta dt {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: rgba(239, 233, 220, 0.32);
  text-transform: uppercase;
}
.lb-meta dd {
  font-size: 0.82rem;
  color: rgba(239, 233, 220, 0.78);
  margin-top: 6px;
  white-space: nowrap;
}

.lightbox.is-info-off .lightbox__caption {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-top-color: transparent;
}

.lb-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(239, 233, 220, 0.08);
}
.lb-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.5s var(--ease);
}

/* ---------------- 滚动入场 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1180px) {
  [data-layout="grid"] .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  [data-layout="masonry"] .gallery { columns: 2; }
  .hero__media { max-width: 420px; }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
  .hero__media {
    justify-self: start;
    max-width: min(100%, 440px);
    order: 2;
  }
  .hero__text { order: 1; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__media { max-width: 420px; }
  [data-layout="grid"] .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .albums { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .album__media { aspect-ratio: 3 / 2; }
  .album__note { max-width: 34em; }
  .sec-head__row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sec-desc { max-width: 34em; }
}

@media (max-width: 640px) {
  .site-header__inner { min-height: 64px; }
  .brand__text { font-size: 0.98rem; }
  .nav { gap: 16px; }
  .nav__link { font-size: 0.78rem; letter-spacing: 0.08em; }
  .icon-btn { width: 36px; height: 36px; }

  .hero { padding-top: 24px; }
  .hero__meta { gap: 28px; }
  .hero__meta dd { font-size: 1.1rem; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 14px; }

  [data-layout="masonry"] .gallery { columns: 2; column-gap: 12px; }
  [data-layout="masonry"] .tile { margin-bottom: 12px; }
  [data-layout="grid"] .gallery { gap: 12px; }

  .toolbar { gap: 14px; }
  .filters { gap: 18px; }

  .lightbox__bar { height: 56px; padding-inline: 14px; gap: 12px; }
  .lb-series { display: none; }
  .lb-nav { display: none; }
  .lb-hint { display: none; }
  .lightbox__stage { padding: 10px 12px 14px; }
  .lightbox__caption {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px 18px 22px;
    max-height: 44vh;
  }
  .lb-meta { grid-template-columns: repeat(3, auto); gap: 0 18px; }
  .lb-meta dd { font-size: 0.76rem; white-space: normal; }
}

@media (max-height: 620px) and (orientation: landscape) {
  .lightbox__caption { max-height: 34vh; }
  .lightbox__stage { padding-block: 8px; }
}

/* ---------------- 减弱动效 ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__frame img { transform: none; }
}
