/* ==========================================================================
   浮光 · LUMIÈRE — 摄影作品集
   ========================================================================== */

:root {
  --serif: "Cormorant Garamond", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;

  --bg: #0a0a0b;
  --bg-soft: #0f0f11;
  --bg-elev: #141416;
  --ink: #ede8e0;
  --ink-strong: #ffffff;
  --muted: #938d83;
  --faint: #8a8377;
  --line: rgba(237, 232, 224, 0.14);
  --line-strong: rgba(237, 232, 224, 0.28);
  --accent: #c9a97c;
  --accent-soft: rgba(201, 169, 124, 0.14);
  --card: #121214;
  --head-bg: rgba(10, 10, 11, 0.72);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --danger: #d97b6c;
  --ok: #8fb996;

  --head-h: 82px;
  --pad: clamp(20px, 5.2vw, 84px);
  --gallery-gap: clamp(16px, 2.1vw, 30px);
  --serif-cn: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

[data-theme="light"] {
  --bg: #f2efe8;
  --bg-soft: #ece8df;
  --bg-elev: #faf8f3;
  --ink: #1c1b18;
  --ink-strong: #000000;
  --muted: #6d675d;
  --faint: #6f6a61;
  --line: rgba(28, 27, 24, 0.14);
  --line-strong: rgba(28, 27, 24, 0.3);
  --accent: #8a6a3c;
  --accent-soft: rgba(138, 106, 60, 0.11);
  --card: #e7e2d8;
  --head-bg: rgba(242, 239, 232, 0.78);
  --shadow: 0 30px 80px rgba(52, 45, 34, 0.18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

body.is-locked { overflow: hidden; }

::selection { background: var(--accent); color: #111; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 500;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */

section[id],
#works,
#about {
  scroll-margin-top: calc(var(--head-h) + 24px);
}

.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--head-h);  color: #f2ede4;
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease,
    backdrop-filter 0.45s ease;
  border-bottom: 1px solid transparent;
}

.site-head__inner {
  height: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-head.is-solid {
  color: var(--ink);
  background: var(--head-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  flex: none;
}

.brand__mark {
  font-family: var(--serif-cn);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
}

.brand__latin {
  font-size: 9px;
  letter-spacing: 0.34em;
  font-weight: 400;
  opacity: 0.62;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
}

.nav-link {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 400;
  padding: 6px 0;
  opacity: 0.86;
  transition: opacity 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover { opacity: 1; }
.nav-link:hover::after { transform: scaleX(1); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.4s ease;
}
.icon-btn:hover { transform: rotate(18deg); }
.site-head.is-solid .icon-btn { border-color: var(--line-strong); }

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.admin-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  opacity: 0.8;
  transition: opacity 0.3s, border-color 0.3s, background-color 0.3s;
}
.admin-entry .icon { width: 13px; height: 13px; }
.admin-entry:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.site-head.is-solid .admin-entry { border-color: var(--line-strong); }
.site-head.is-solid .admin-entry:hover { background: var(--accent-soft); }
body.is-admin .admin-entry { display: none; }
body.is-static .admin-entry,
body.is-static .admin-bar { display: none !important; }

/* --------------------------------------------------------------------------
   首屏
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #0b0b0c;
  color: #f4efe6;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease;
  will-change: transform;
}

.hero.has-image .hero__media {
  opacity: 1;
  animation: heroDrift 16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroDrift {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.hero--empty .hero__media {
  opacity: 1;
  background:
    radial-gradient(ellipse 70% 60% at 72% 30%, rgba(201, 169, 124, 0.17), transparent 60%),
    radial-gradient(ellipse 60% 70% at 18% 78%, rgba(90, 110, 140, 0.16), transparent 65%),
    linear-gradient(140deg, #151517 0%, #0a0a0b 55%, #101012 100%);
  transform: none;
  animation: none;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 7, 0.62) 0%, rgba(6, 6, 7, 0.08) 34%, rgba(6, 6, 7, 0.1) 52%, rgba(6, 6, 7, 0.82) 100%),
    linear-gradient(90deg, rgba(6, 6, 7, 0.55) 0%, rgba(6, 6, 7, 0.12) 52%, rgba(6, 6, 7, 0) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26vh;
  background: linear-gradient(180deg, transparent, var(--bg) 92%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: calc(var(--head-h) + 8vh) var(--pad) 22vh;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.34em;
  font-weight: 400;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.68);
  margin-bottom: clamp(22px, 4vh, 42px);
}

.eyebrow__line {
  width: clamp(28px, 5vw, 68px);
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.hero__title {
  font-family: var(--serif-cn);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.045em;
  color: #f7f3eb;
  text-shadow: 0 2px 50px rgba(0, 0, 0, 0.25);
}

.hero__title-cn {
  display: block;
  font-size: clamp(4.4rem, 13.5vw, 12rem);
}

.hero__title-latin {
  display: block;
  margin-top: clamp(14px, 2.2vh, 26px);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.66);
  padding-left: 0.24em;
}

.hero__tagline {
  margin-top: clamp(26px, 4vh, 46px);
  max-width: 30em;
  font-family: var(--serif-cn);
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 2;
  color: rgba(244, 239, 230, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 28px rgba(0, 0, 0, 0.4);
}

.hero__actions { margin-top: clamp(30px, 5vh, 54px); }

.hero__foot {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--pad) 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.62);
}

.hero__meta { display: flex; align-items: center; gap: 14px; }
.hero__meta b {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
  color: #f4efe6;
  margin-right: 5px;
}
.hero__meta-sep { width: 26px; height: 1px; background: currentColor; opacity: 0.4; }

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(244, 239, 230, 0.6);
  transition: color 0.3s;
}
.scroll-cue span { font-size: 9px; letter-spacing: 0.4em; }
.scroll-cue i {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, currentColor, transparent);
  animation: cueDrop 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cueDrop {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
  45% { transform: scaleY(1); opacity: 1; }
}
.scroll-cue:hover { color: #f4efe6; }

.hero__year { text-align: right; justify-self: end; }

/* --------------------------------------------------------------------------
   按钮与通用排版
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 15px 26px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease,
    transform 0.35s ease;
  white-space: nowrap;
}
.btn .icon { width: 15px; height: 15px; transition: transform 0.35s ease; }
.btn:hover .icon { transform: translateX(4px); }

.btn--light {
  background: #f4efe6;
  color: #141413;
  border-color: #f4efe6;
}
.btn--light:hover { background: transparent; color: #f4efe6; }

.btn--line {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--line:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }

.btn--solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--solid:hover { background: transparent; color: var(--ink); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-label span {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 5.6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.display em {
  font-style: italic;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   引言 / 数据
   -------------------------------------------------------------------------- */

.statement { padding: clamp(84px, 13vw, 170px) 0 clamp(70px, 10vw, 130px); }

.statement__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(0, 2.4fr);
  gap: clamp(24px, 5vw, 80px);
}

.statement .section-label { padding-top: 12px; }

.statement__text {
  font-family: var(--serif-cn);
  font-size: clamp(1.3rem, 2.35vw, 2.05rem);
  font-weight: 300;
  line-height: 1.95;
  letter-spacing: 0.035em;
  color: var(--ink);
  max-width: 30em;
}

.stats {
  grid-column: 2;
  display: flex;
  gap: clamp(36px, 7vw, 100px);
  margin-top: clamp(36px, 6vw, 70px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat span {
  display: block;
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   作品区
   -------------------------------------------------------------------------- */

.works {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(80px, 12vw, 160px);
}

.works__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-top: clamp(30px, 5vw, 60px);
  border-top: 1px solid var(--line);
}

.works__head .section-label { margin-bottom: clamp(20px, 3vw, 34px); }

.works__count {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-bottom: 10px;
  white-space: nowrap;
}
.works__count span:first-child { color: var(--ink); font-size: 22px; }
.works__count i { font-style: normal; margin: 0 6px; opacity: 0.45; }

.filter-wrap {
  position: sticky;
  top: var(--head-h);
  z-index: 50;
  margin: clamp(30px, 4vw, 52px) 0 clamp(26px, 3vw, 40px);
  padding: 12px 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .filter-wrap { background: var(--bg); }
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.filters {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filters::-webkit-scrollbar { display: none; }

.filter {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.filter sup {
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0;
  color: var(--faint);
  transition: color 0.3s ease;
}
.filter::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); }
.filter.is-active::after { transform: scaleX(1); }
.filter.is-active sup { color: var(--accent); }

.works__tools { flex: none; }

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: clamp(150px, 17vw, 230px);
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  transition: border-color 0.3s, width 0.4s;
}
.search:focus-within { border-color: var(--ink); }
.search .icon { width: 15px; height: 15px; }
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.search input::placeholder { color: var(--faint); letter-spacing: 0.06em; }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear {
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  padding: 0 4px;
}
.search__clear:hover { color: var(--ink); }

/* 瀑布流 */
.gallery {
  columns: 3;
  column-gap: var(--gallery-gap);
}

.card {
  break-inside: avoid;
  margin: 0 0 var(--gallery-gap);
  display: block;
  animation: cardIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

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

.card__frame {
  position: relative;
  overflow: hidden;
  background: var(--card);
  cursor: zoom-in;
  isolation: isolate;
}

.card__img {
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(1.002);
  transition: opacity 1s ease, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  background: var(--card);
}
.card__img.is-loaded { opacity: 1; }

.card:hover .card__img { transform: scale(1.035); filter: brightness(0.86); }

.card__veil {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 32%, transparent 58%, rgba(0, 0, 0, 0.5));
  color: #fff;
  pointer-events: none;
}
.card:hover .card__veil { opacity: 1; }

.card__no {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.85);
}

.card__peek {
  align-self: flex-end;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(6px);
  transition: transform 0.45s ease;
}
.card:hover .card__peek { transform: none; }
.card__peek svg { width: 12px; height: 12px; }

.card__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 2px 0;
}

.card__title {
  font-family: var(--serif-cn);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--ink);
  transition: color 0.3s;
}
.card:hover .card__title { color: var(--accent); }

.card__meta {
  flex: none;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.card__badges {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.badge {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 7px;
  background: rgba(10, 10, 11, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.badge--accent { color: var(--accent); border-color: rgba(201, 169, 124, 0.5); }

.card__admin {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  gap: 6px;
  z-index: 4;
}
body.is-admin .card__admin { display: flex; }

.card__admin button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 11, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.25s, border-color 0.25s;
}
.card__admin button:hover { background: var(--accent); border-color: var(--accent); color: #111; }
.card__admin .icon { width: 14px; height: 14px; }

/* 空状态 */
.empty { padding: clamp(40px, 6vw, 80px) 0; }
.empty__frame {
  border: 1px dashed var(--line-strong);
  padding: clamp(48px, 8vw, 100px) 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.empty__icon {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.2;
  margin-bottom: 8px;
}
.empty__frame h3 {
  font-family: var(--serif-cn);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}
.empty__frame p {
  font-size: 12px;
  color: var(--muted);
  max-width: 34em;
  letter-spacing: 0.03em;
}
.empty__frame .btn { margin-top: 14px; }

/* --------------------------------------------------------------------------
   关于
   -------------------------------------------------------------------------- */

.about {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: clamp(80px, 12vw, 160px) 0;
}

.about__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.6fr);
  gap: clamp(40px, 8vw, 130px);
}

.about__head .section-label { margin-bottom: clamp(22px, 3vw, 34px); }
.about__head .display { max-width: 6em; }

.about__contact {
  margin-top: clamp(30px, 5vw, 56px);
  display: grid;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.about__contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  width: fit-content;
  transition: border-color 0.3s, color 0.3s;
}
.about__contact a:hover { color: var(--accent); border-color: var(--accent); }
.about__contact .label {
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
}

.about__body {
  font-family: var(--serif-cn);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  font-weight: 300;
  line-height: 2.15;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.about__body p + p { margin-top: 1.5em; }
.about__body p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.6em;
  float: left;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--accent);
}
.about__body:empty { display: none; }

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: clamp(44px, 6vw, 72px) 0 38px;
}

.site-foot__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 30px;
  align-items: start;
}

.site-foot__brand { display: flex; align-items: baseline; gap: 12px; }
.site-foot__latin {
  font-size: 9px;
  letter-spacing: 0.34em;
  color: var(--faint);
}
.site-foot__note {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--faint);
  max-width: 32em;
  justify-self: center;
  text-align: center;
}
.site-foot__right { justify-self: end; text-align: right; }
.site-foot__copy {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-top: 14px;
}
.text-btn {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.text-btn:hover { color: var(--ink); border-color: var(--ink); }

/* --------------------------------------------------------------------------
   灯箱
   -------------------------------------------------------------------------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 5, 6, 0.96);
  color: #f2ede5;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lb.is-open { opacity: 1; }
.lb[hidden] { display: none; }

.lb__backdrop { position: absolute; inset: 0; }

.lb__top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 3.4vw, 46px);
  flex: none;
}

.lb__counter {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(242, 237, 229, 0.6);
}
.lb__counter span:first-child { color: #f2ede5; font-size: 17px; }
.lb__counter i { font-style: normal; margin: 0 6px; opacity: 0.4; }

.lb__tools { display: flex; align-items: center; gap: 8px; }

.lb__tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(242, 237, 229, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.lb__tool svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lb__tool:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.lb__tool--close { padding: 9px; }
.lb__tool--close svg { width: 17px; height: 17px; }

.lb__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: rgba(242, 237, 229, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.lb__arrow:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.lb__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lb__arrow--prev { left: clamp(12px, 2.4vw, 36px); }
.lb__arrow--next { right: clamp(12px, 2.4vw, 36px); }

.lb__figure {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(18px, 6vw, 96px);
}

.lb__stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 20px;
}

.lb__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.lb__stage img.is-loaded { opacity: 1; transform: none; }

.lb__caption {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lb__cat {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  min-height: 1em;
}

.lb__title {
  font-family: var(--serif-cn);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.35;
  color: #f6f1e9;
}

.lb__desc {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.9;
  color: rgba(242, 237, 229, 0.6);
  max-width: 56em;
  letter-spacing: 0.03em;
}
.lb__desc:empty { display: none; }

.lb__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.lb__tags span {
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(242, 237, 229, 0.66);
}

.lb__meta {
  margin: 0;
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 18px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(242, 237, 229, 0.5);
  text-align: right;
  align-content: end;
}
.lb__meta dt {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 237, 229, 0.32);
}
.lb__meta dd { margin: 0; color: rgba(242, 237, 229, 0.75); }
.lb__meta:empty { display: none; }

.lb__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 4;
}
.lb__progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   管理工具条
   -------------------------------------------------------------------------- */

.admin-bar {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 150;
  animation: barUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes barUp {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.admin-bar[hidden] { display: none; }

.admin-bar__inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 8px;
  border: 1px solid var(--line-strong);
  background: var(--head-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.admin-bar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  margin: 0 6px 0 10px;
  box-shadow: 0 0 0 3px rgba(143, 185, 150, 0.18);
}
.admin-bar__label { color: var(--muted); font-size: 10px; letter-spacing: 0.16em; padding-right: 4px; }
.admin-bar__sep { width: 1px; height: 16px; background: var(--line); margin: 0 6px; }
.admin-bar__inner button {
  padding: 8px 12px;
  border-radius: 100px;
  color: var(--muted);
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
}
.admin-bar__inner button:hover { background: var(--accent-soft); color: var(--ink); }

/* --------------------------------------------------------------------------
   弹层 / 表单
   -------------------------------------------------------------------------- */

.modal-root { position: relative; z-index: 200; }

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal.is-open { opacity: 1; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 5, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal__panel {
  position: relative;
  width: min(100%, 760px);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(18px) scale(0.99);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--ink);
}
.modal.is-open .modal__panel { transform: none; }
.modal--wide .modal__panel { width: min(100%, 940px); }
.modal--narrow .modal__panel { width: min(100%, 430px); }

.modal__head {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 3vw, 34px) 20px;
  border-bottom: 1px solid var(--line);
}
.modal__eyebrow {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 7px;
}
.modal__title {
  font-family: var(--serif-cn);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.modal__close {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.modal__close:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.modal__close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 34px);
  overscroll-behavior: contain;
}

.modal__foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px clamp(20px, 3vw, 34px);
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}
.modal__foot .spacer { margin-right: auto; }
.modal__hint { font-size: 10px; color: var(--faint); letter-spacing: 0.04em; }

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field > label,
.field-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.input,
.textarea,
.select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 12px 14px;
  outline: none;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
  border-radius: 1px;
  transition: border-color 0.25s, background 0.25s;
}
.input:focus,
.textarea:focus,
.select:focus { border-color: var(--ink); background: var(--bg); }
.textarea { resize: vertical; min-height: 90px; line-height: 1.8; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23938d83' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }

.form-error {
  margin-top: 14px;
  font-size: 11px;
  color: var(--danger);
  letter-spacing: 0.04em;
  min-height: 1.6em;
}
.form-note {
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--faint);
  letter-spacing: 0.03em;
}

.switch-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.switch-line input { accent-color: var(--accent); width: 15px; height: 15px; }

/* 登录 */
.login-panel { padding: clamp(26px, 4vw, 38px); }
.login-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 26px;
}
.login-brand .mark {
  font-family: var(--serif-cn);
  font-size: 24px;
  letter-spacing: 0.16em;
}
.login-brand .latin { font-size: 9px; letter-spacing: 0.32em; color: var(--faint); }
.login-title {
  font-family: var(--serif-cn);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.login-sub { font-size: 11px; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.login-panel .btn { width: 100%; margin-top: 6px; }
.login-panel .form-note { margin-top: 18px; }

/* 分类管理 */
.cat-list { display: grid; gap: 8px; margin-bottom: 20px; }
.cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.cat-row__name { flex: 1; font-size: 13px; letter-spacing: 0.04em; }
.cat-row__count { font-size: 9px; letter-spacing: 0.14em; color: var(--faint); }
.cat-row__btn {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 4px 7px;
  border: 1px solid transparent;
}
.cat-row__btn:hover { color: var(--ink); border-color: var(--line-strong); }
.cat-row__btn--del:hover { color: var(--danger); border-color: var(--danger); }
.cat-add { display: flex; gap: 10px; }
.cat-add .input { flex: 1; }

/* 上传 */
.dropzone {
  border: 1px dashed var(--line-strong);
  padding: clamp(30px, 5vw, 52px) 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  background: var(--bg-soft);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone__icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.2;
  margin-bottom: 6px;
}
.dropzone__title {
  font-family: var(--serif-cn);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}
.dropzone__sub { font-size: 10px; letter-spacing: 0.08em; color: var(--faint); }

.upload-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.upload-toolbar .field { margin: 0; flex: 1 1 180px; }
.upload-toolbar .btn { flex: none; }

.upload-list { display: grid; gap: 10px; margin-top: 16px; }
.upload-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 28px;
  gap: 8px 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.upload-row__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: var(--card);
}
.upload-row__main { min-width: 0; }
.upload-row__name {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-row .input { padding: 7px 9px; font-size: 12px; background: var(--bg); }
.upload-row__status {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--faint);
  white-space: nowrap;
  min-width: 62px;
  text-align: right;
}
.upload-row__status.is-ok { color: var(--ok); }
.upload-row__status.is-error { color: var(--danger); }
.upload-row__remove {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 16px;
}
.upload-row__remove:hover { color: var(--danger); }
.upload-row__bar {
  grid-column: 1 / -1;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.upload-row__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}

.progress-line {
  height: 2px;
  background: var(--line);
  margin-top: 18px;
  overflow: hidden;
}
.progress-line i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.35s ease;
}

/* 分享 */
.share-block { display: grid; gap: 8px; margin-bottom: 20px; }
.share-url {
  display: flex;
  align-items: center;
  gap: 10px;
}
.share-url input { flex: 1; font-family: var(--sans); font-size: 12px; }
.share-url__label {
  flex: 0 0 auto;
  width: 42px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--faint);
  text-align: right;
}
.share-url .btn { padding: 11px 14px; font-size: 9px; }
.share-tip {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Toast */
.toasts {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  max-width: 340px;
}
.toast.is-out { animation: toastOut 0.35s ease forwards; }
.toast__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
.toast--error { background: var(--danger); color: #fff; }
.toast--error .toast__dot { background: #fff; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px); }
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .gallery { columns: 2; }
  .statement__inner { grid-template-columns: 1fr; gap: 26px; }
  .stats { grid-column: 1; }
  .about__inner { grid-template-columns: 1fr; gap: 44px; }
  .about__head .display { max-width: none; }
}

@media (max-width: 900px) {
  :root { --head-h: 68px; }
  .site-nav .nav-link { display: none; }
  .nav-link { font-size: 10px; }
  .hero__foot { padding-bottom: 26px; grid-template-columns: 1fr auto; }
  .scroll-cue { display: none; }
  .hero__year { display: none; }
  .hero__inner { padding-bottom: 16vh; }
  .site-foot__inner { grid-template-columns: 1fr; gap: 22px; text-align: left; }
  .site-foot__note { justify-self: start; text-align: left; }
  .site-foot__right { justify-self: start; text-align: left; }
  .filter-wrap { top: var(--head-h); }
  .lb__caption { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .lb__meta { text-align: left; grid-template-columns: auto auto; justify-content: start; }
  .lb__arrow { width: 42px; height: 42px; }
  .lb__tool span { display: none; }
  .lb__tool { padding: 10px; }
}

@media (max-width: 680px) {
  body { font-size: 14px; }
  .gallery { columns: 1; }
  .hero__title-cn { font-size: clamp(3.6rem, 19vw, 6rem); }
  .hero__tagline { line-height: 1.9; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__meta { gap: 10px; }
  .hero__meta b { font-size: 18px; }
  .eyebrow { letter-spacing: 0.22em; gap: 10px; }
  .eyebrow__line { width: 20px; }
  .works__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .works__count { padding: 0; }
  .filter-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .works__tools { width: 100%; }
  .search { width: 100%; }
  .filter-wrap { margin-top: 24px; }
  .stats { gap: 30px; flex-wrap: wrap; }
  .statement__text { letter-spacing: 0.02em; }
  .site-head__inner { gap: 12px; }
  .admin-bar { bottom: 14px; width: calc(100% - 20px); }
  .admin-bar__inner { justify-content: center; flex-wrap: wrap; border-radius: 14px; padding: 7px; }
  .admin-bar__dot, .admin-bar__label { display: none; }
  .admin-bar__inner button { padding: 7px 9px; font-size: 10px; }
  .admin-bar__sep { display: none; }
  .modal { padding: 0; align-items: flex-end; }
  .modal__panel { max-height: 94vh; width: 100% !important; border-left: 0; border-right: 0; border-bottom: 0; }
  .modal__body { padding-bottom: 26px; }
  .modal__foot { flex-wrap: wrap; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .toasts { right: 12px; left: 12px; bottom: 76px; align-items: stretch; }
  .toast { max-width: none; }
  .lb__figure { padding: 0 10px; }
  .lb__stage { padding-bottom: 12px; }
  .lb__caption { padding: 14px 6px 26px; }
  .lb__arrow { display: none; }
  .lb__top { padding: 14px 14px; }
  .lb__counter { font-size: 10px; }
  .lb__desc { font-size: 11px; }
  .card__caption { padding-top: 10px; }
}

@media (max-width: 400px) {
  .brand__latin { display: none; }
  .admin-entry span { display: none; }
  .admin-entry { padding: 9px; }
}

@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; }
}

/* 打印 */
@media print {
  .site-head, .admin-bar, .lb, .modal-root, .toasts, .filter-wrap, .scroll-cue { display: none !important; }
  .hero { min-height: 60vh; }
  body { background: #fff; color: #000; }
  .gallery { columns: 2; }
}
