/* =========================================================
   YanLiang — 作品集全站样式
   白底 / 黑白灰 / 图片优先 / 4 列瀑布流 / 2:3 竖图
   ========================================================= */

/* ========== 01 设计令牌 ========== */
:root {
  --paper: #ffffff;
  --paper-soft: #f4f4f4;
  --ink: #111111;
  --muted: #6d6d6d;
  --line: rgba(17, 17, 17, 0.14);
  --line-soft: rgba(17, 17, 17, 0.08);
  --dark: #0b0b0b;
  --accent: #b33a22;

  --font-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --pad: clamp(32px, 6vw, 96px);
  --section: clamp(56px, 7vw, 108px);
  --header-h: 64px;
  --nav-inset: clamp(1px, 0.25vw, 4px);
  --max-page: 1600px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ========== 02 基础 ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.has-overlay {
  overflow: hidden;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

[hidden] {
  display: none !important;
}

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

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

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

[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: 100%;
  max-width: var(--max-page);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ========== 03 基础文字与控件 ========== */
.kicker {
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  margin-top: 8px;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.section-note {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.link-arrow::after {
  content: "↗";
  font-size: 10px;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.link-arrow:hover::after {
  transform: translate(2px, -2px);
}

.project__back::after,
.not-found .link-arrow::after,
.viewer__back::after {
  content: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--line);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

/* ========== 04 页头 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  isolation: isolate;
  background: transparent;
  border-bottom: 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--max-page);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: calc(var(--pad) + var(--nav-inset));
}

.brand {
  position: relative;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.1;
}

.brand__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}

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

.site-nav li {
  position: relative;
}

.site-nav a {
  display: inline-block;
  padding: 4px 0;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-header.is-on-dark .brand__name,
.site-header.is-on-dark .menu-toggle {
  color: #fff;
}

.site-header.is-on-dark .site-nav > ul > li > a {
  color: rgba(255, 255, 255, 0.66);
}

.site-header.is-on-dark .site-nav > ul > li > a:hover,
.site-header.is-on-dark .site-nav > ul > li > a[aria-current="page"] {
  color: #fff;
}

.site-header.is-on-dark .nav-submenu a {
  color: rgba(255, 255, 255, 0.68);
}

.site-header.is-on-dark .nav-submenu a:hover {
  color: #fff;
}

.nav-submenu {
  position: absolute;
  top: calc(100% - 1px);
  left: -10px;
  z-index: 95;
  width: max-content;
  min-width: 0;
  padding: 10px;
  background: transparent;
  border: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
    visibility 0.2s;
}

.nav-video:hover .nav-submenu,
.nav-video:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-submenu a {
  display: block;
  padding: 7px 0;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--muted);
  white-space: nowrap;
}

.nav-submenu a:hover {
  color: var(--ink);
}

.site-nav__foot {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}

.menu-toggle__lines {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.menu-toggle__lines span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}

body.nav-open .menu-toggle__lines span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

body.nav-open .menu-toggle__lines span:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle__lines span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ========== 05 页脚（极简单行） ========== */
.site-footer {
  margin-top: clamp(32px, 4.4vw, 56px);
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
}

.site-footer__inner a {
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-footer__inner a:hover {
  color: var(--ink);
  border-color: var(--line);
}

/* ========== 06 占位媒体 ========== */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ratio, 2 / 3);
  background: var(--paper-soft);
}

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.media--dark {
  background: var(--dark);
}

.ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: clamp(10px, 1.3vw, 18px);
  overflow: hidden;
  color: var(--muted);
  background: linear-gradient(135deg, #f4f4f4 0%, #e8e8e8 100%);
}

.ph--tone-2 {
  background: linear-gradient(135deg, #f6f6f6 0%, #ececec 100%);
}

.ph--tone-3 {
  background: linear-gradient(135deg, #f2f2f2 0%, #e5e5e5 100%);
}

.ph--plain {
  padding: 0;
}

.ph--dark {
  color: #a8a8a8;
  background: radial-gradient(120% 100% at 28% 16%, #242424 0%, #111111 58%, #080808 100%);
}

.ph__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.ph__tag {
  padding: 1px 5px;
  border: 1px solid var(--line);
  font-size: 8px;
  white-space: nowrap;
}

.ph--dark .ph__tag {
  border-color: rgba(255, 255, 255, 0.22);
}

.ph__note {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.ph__note--light {
  color: #8b8b8b;
}

.play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(42px, 4vw, 56px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}

.play svg {
  width: 15px;
  height: 15px;
  margin-left: 2px;
  fill: #f4f4f4;
}

.video-card:hover .play,
.video-card:focus-visible .play {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
}

.badge {
  position: absolute;
  z-index: 3;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.badge--duration {
  top: 10px;
  right: 10px;
  padding: 5px 7px;
  color: #f4f4f4;
  background: rgba(8, 8, 8, 0.66);
}

/* ========== 07 首页 ========== */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  padding-block: clamp(32px, 5vw, 64px) var(--section);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 26px);
  grid-column: 1 / span 5;
  min-width: 0;
}

.hero__title {
  font-size: clamp(44px, 6.6vw, 92px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.hero__name {
  display: block;
}

.hero__title-en {
  display: block;
  margin-top: clamp(12px, 1.5vw, 20px);
  font-size: clamp(10px, 0.95vw, 12px);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.hero__intro {
  max-width: 32em;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.85;
  color: var(--muted);
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 2px;
}

.hero__slot {
  grid-column: 7 / span 6;
  min-width: 0;
}

.hero__figure {
  margin: 0;
}

.hero__figure-link {
  display: block;
}

.hero__figure .media {
  aspect-ratio: 3 / 2;
}

.hero__caption {
  display: none;
}

.section {
  padding-block: 0 var(--section);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(20px, 3vw, 36px);
  padding-top: clamp(14px, 1.8vw, 20px);
  border-top: 1px solid var(--line);
}

.section-head__main {
  min-width: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px) clamp(16px, 2.4vw, 32px);
}

.featured-card {
  min-width: 0;
}

.featured-card .work-card__link {
  display: block;
}

.featured-card .media {
  aspect-ratio: 3 / 2;
}

.featured-card .work-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
}

.work-card__link {
  display: block;
}

.work-card__title {
  position: relative;
  display: inline-block;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.work-card__title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.work-card__spec {
  flex-shrink: 0;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.work-card__link:hover .media > img {
  transform: scale(1.03);
}

.work-card__link:hover .work-card__title::after {
  transform: scaleX(1);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.6vw, 44px);
}

.video-library {
  width: 100%;
  max-width: var(--max-page);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) var(--pad) 0;
}

.video-module + .video-module {
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.video-module__title {
  margin-bottom: clamp(14px, 2vw, 22px);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.video-module__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark);
}

.video-module__stage video,
.video-module__stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.video-module__stage video {
  object-fit: contain;
}

.video-module__placeholder {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 28% 16%, #242424 0%, #111111 58%, #080808 100%);
}

button.video-module__placeholder {
  width: 100%;
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
}

button.video-module__placeholder--cover {
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.12),
      rgba(0, 0, 0, 0.44)
    ),
    var(--cover-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

button.video-module__placeholder:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: -4px;
}

button.video-module__placeholder:hover .play,
button.video-module__placeholder:focus-visible .play {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
}

.video-card {
  display: block;
  min-width: 0;
}

.video-card .media {
  aspect-ratio: 16 / 9;
}

.video-card__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 12px;
}

.video-card__title {
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.video-card__desc {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

.video-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.video-card__hint {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
  align-items: start;
}

.photo-mini {
  display: block;
  min-width: 0;
}

.photo-mini .media {
  aspect-ratio: 3 / 2;
}

.photo-mini__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  padding-top: 8px;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.photo-mini__title {
  color: var(--ink);
}

.cta {
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
}

.cta__title {
  max-width: 14em;
  margin-top: 12px;
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.cta__mail {
  display: inline-block;
  margin-top: clamp(22px, 3vw, 32px);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  font-size: clamp(15px, 1.8vw, 22px);
  letter-spacing: -0.01em;
  transition: opacity 0.2s var(--ease);
}

.cta__mail:hover {
  opacity: 0.55;
}

.cta__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 28px;
  margin-top: 24px;
}

.cta__note {
  max-width: 34em;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

/* ========== 08 Work 图片档案（4 列竖向瀑布流 / 无文字） ========== */
.work-archive {
  padding-block: clamp(20px, 3vw, 40px) 0;
}

.work-grid {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 1.4vw, 20px);
  width: 100%;
  max-width: var(--max-page);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.work-column {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 20px);
  min-width: 0;
}

.work-tile {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--paper-soft);
  break-inside: avoid;
}

.work-tile .media {
  aspect-ratio: var(--ratio, 2 / 3);
}

.work-tile:hover .media > img {
  transform: scale(1.03);
}

/* ========== 09 Project 图片查看器 ========== */
.viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: calc(100svh - var(--header-h));
}

.viewer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.viewer__back {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.viewer__back:hover {
  color: var(--ink);
}

.viewer__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding-inline: clamp(8px, 2vw, 24px);
}

.viewer__frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-soft);
}

.viewer__frame .media {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background: transparent;
}

.viewer__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.viewer__frame .ph {
  border: 1px solid var(--line-soft);
}

.viewer__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  opacity: 0.45;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.2s var(--ease);
}

.viewer__arrow:hover {
  opacity: 1;
}

.viewer__arrow--prev {
  left: clamp(2px, 1.4vw, 16px);
}

.viewer__arrow--next {
  right: clamp(2px, 1.4vw, 16px);
}

.viewer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 10px 16px;
}

.viewer__bottom--with-thumbs {
  flex-direction: column;
  gap: 10px;
  padding-block: 8px 14px;
}

.viewer__thumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.viewer__thumbs::-webkit-scrollbar {
  display: none;
}

.viewer-thumb {
  flex: 0 0 auto;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  opacity: 0.55;
  cursor: pointer;
  line-height: 0;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}

.viewer-thumb img {
  display: block;
  height: 100%;
  width: auto;
}

.viewer-thumb:hover,
.viewer-thumb:focus-visible {
  opacity: 1;
}

.viewer-thumb.is-active {
  opacity: 1;
  border-color: var(--ink);
}

.viewer-thumb:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.viewer__counter {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.viewer__missing {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  min-height: calc(100svh - var(--header-h));
  text-align: center;
}

.viewer__missing p {
  font-size: 13px;
  color: var(--muted);
}

/* ========== 10 页面标题 / 筛选 / 网格 ========== */
.page-head {
  padding-block: clamp(32px, 4.4vw, 60px) clamp(20px, 3vw, 36px);
}

.page-head h1 {
  margin-top: 8px;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.page-head__intro {
  max-width: 46em;
  margin-top: clamp(14px, 1.8vw, 20px);
  font-size: clamp(12px, 1.05vw, 14px);
  line-height: 1.85;
  color: var(--muted);
}

.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 16px;
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip__count {
  font-size: 9px;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.filter-status {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.empty-state,
.not-found {
  padding: clamp(48px, 8vw, 96px) 24px;
  border: 1px dashed var(--line);
  text-align: center;
  color: var(--muted);
}

.empty-state p,
.not-found p {
  font-size: 13px;
}

.not-found h1 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.not-found .link-arrow {
  margin-top: 20px;
}

/* ========== 11 Photography ========== */
.photography {
  padding-block: clamp(20px, 3vw, 40px) 0;
}

.photo-projects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
  width: 100%;
  max-width: var(--max-page);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.photo-project {
  display: block;
  min-width: 0;
}

.photo-project .media {
  aspect-ratio: var(--ratio, 3 / 2);
}

.photo-project:hover .media > img {
  transform: scale(1.03);
}

.photo-grid {
  column-count: 4;
  column-gap: clamp(10px, 1.4vw, 20px);
  width: 100%;
  max-width: var(--max-page);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.photo-card {
  min-width: 0;
  margin-bottom: clamp(20px, 2.6vw, 34px);
  break-inside: avoid;
}

.photo-card__media {
  position: relative;
}

.photo-card .media {
  aspect-ratio: var(--ratio, 2 / 3);
}

.photo-card:hover .media > img {
  transform: scale(1.03);
}

.photo-card__hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-card__hit:focus-visible {
  outline-offset: -4px;
}

.photo-card__caption {
  min-height: 40px;
  padding-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
}

/* ========== 12 About ========== */
.about-minimal {
  padding-block: clamp(24px, 3.2vw, 48px) 0;
}

.about-minimal .about-row:first-of-type {
  border-top: 1px solid var(--line);
}

.about-intro {
  padding-block: clamp(24px, 3.4vw, 40px) clamp(36px, 5vw, 68px);
  border-bottom: 1px solid var(--line);
}

.about-lead {
  max-width: 22em;
  font-size: clamp(20px, 2.8vw, 36px);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.about-row {
  display: grid;
  grid-template-columns: minmax(110px, 2fr) minmax(0, 8fr);
  align-items: start;
  gap: clamp(18px, 3.4vw, 56px);
  padding-block: clamp(30px, 4.4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.about-row:last-of-type {
  border-bottom: 0;
}

.about-row__label {
  padding-top: 0;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-row__label span {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: none;
}

.about-row__body {
  min-width: 0;
}

.about-row__body > p {
  max-width: 46em;
  font-size: 13px;
  line-height: 1.9;
}

.about-row__body > p + p {
  margin-top: 14px;
}

.client-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px clamp(24px, 4vw, 48px);
  width: 100%;
  max-width: 46em;
  padding-right: 8px;
  font-size: 13px;
}

.client-list li {
  width: fit-content;
  justify-self: start;
  padding-block: 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  border-top: 1px solid var(--line-soft);
}

.service-item {
  padding-block: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.service-item h3 {
  font-size: 13px;
  font-weight: 500;
}

.service-item p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.75;
  color: var(--muted);
}

.process-list {
  counter-reset: step;
}

.process-list li {
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr);
  gap: 10px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.process-list li::before {
  counter-increment: step;
  content: "0" counter(step);
  padding-top: 3px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.process-list h3 {
  font-size: 13px;
  font-weight: 500;
}

.process-list p {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.75;
  color: var(--muted);
}

.tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool {
  padding: 6px 10px;
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.about-note {
  margin-top: 16px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}

.about-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(20px, 2.4vw, 32px);
  row-gap: 14px;
  align-items: start;
  width: 100%;
  max-width: 46em;
  padding-right: 20px;
  font-size: 13px;
}

.contact-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
}

.contact-line--email {
  grid-column: 1 / -1;
  grid-row: 1;
}

.contact-line--wechat {
  grid-column: 1;
  grid-row: 2;
  margin-top: 39px;
}

.contact-label {
  color: var(--muted);
  white-space: nowrap;
}

.contact-email-wrap {
  display: inline-block;
  min-width: 182px;
  padding-bottom: 0;
  border-bottom: 1px solid var(--line);
}

.about-contact .contact-email {
  margin-top: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.about-contact .contact-links {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: stretch;
  justify-content: space-between;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: 0;
  margin-left: 0;
}

/* ========== 13 Contact ========== */
.contact-simple {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(30px, 4vw, 52px);
  min-height: calc(100svh - var(--header-h) - 100px);
  padding-block: clamp(48px, 8vw, 120px);
}

.contact-simple .contact-email {
  align-self: flex-start;
  margin-top: 0;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 32px;
}

.contact-links a {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}

.contact-links a:hover {
  border-color: var(--ink);
}

.contact-wechat {
  display: inline-block;
  padding-bottom: 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  white-space: nowrap;
}

.contact-wechat__id {
  letter-spacing: 0.02em;
  user-select: all;
}

.contact {
  padding-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5.4vw, 88px);
  padding-block: clamp(28px, 4vw, 52px);
}

.contact-info {
  min-width: 0;
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  margin-top: 8px;
  padding-bottom: 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  transition: opacity 0.2s var(--ease);
}

.contact-email:hover {
  opacity: 0.55;
}

.contact-copy {
  max-width: 34em;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

.contact-block {
  margin-top: clamp(24px, 3.4vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.social-list {
  margin-top: 10px;
}

.social-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.social-list a {
  font-size: 12px;
  transition: opacity 0.2s var(--ease);
}

.social-list a:hover {
  opacity: 0.55;
}

.social-list span {
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-note {
  margin-top: 16px;
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
}

.contact-form {
  min-width: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
}

.field label {
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 8px 1px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  transition: border-color 0.2s var(--ease);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.form-hint {
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
}

.form-status {
  margin-top: 16px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.8;
  color: var(--ink);
}

.form-status:empty {
  display: none;
}

.form-status a {
  border-bottom: 1px solid currentColor;
}

/* ========== 14 图片灯箱（摄影页） ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #0b0b0b;
  color: #f4f4f4;
}

.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 32px);
}

.lightbox__title {
  min-width: 0;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.lightbox__close,
.modal__close {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  background: none;
  color: #f4f4f4;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.lightbox__close:hover,
.modal__close:hover {
  border-color: #f4f4f4;
}

.lightbox__body {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding-inline: clamp(48px, 7vw, 96px);
}

.lightbox__media {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.lightbox__media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox__ph {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #e9e9e9 0%, #d7d7d7 100%);
}

.lightbox__ph .ph__note {
  color: #7a7a7a;
}

.lightbox :focus-visible {
  outline-color: #f4f4f4;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f4f4f4;
  font-size: 26px;
  line-height: 1;
  opacity: 0.6;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.2s var(--ease);
}

.lightbox__nav:hover {
  opacity: 1;
}

.lightbox__nav--prev {
  left: clamp(6px, 1.6vw, 24px);
}

.lightbox__nav--next {
  right: clamp(6px, 1.6vw, 24px);
}

.lightbox__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 14px clamp(16px, 3vw, 32px) 18px;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #9a9a9a;
}

.lightbox__count {
  font-variant-numeric: tabular-nums;
}

.lightbox__caption {
  text-align: right;
  color: #b5b5b5;
}

/* ========== 15 视频模态 ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.88);
}

.modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1080px, 100%);
  max-height: calc(100vh - clamp(24px, 6vw, 80px));
  max-height: calc(100dvh - clamp(24px, 6vw, 80px));
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: auto;
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(14px, 2vw, 22px) clamp(16px, 2.4vw, 28px);
}

.modal__head .kicker {
  margin-bottom: 4px;
}

.modal__title {
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.modal__close {
  flex-shrink: 0;
  border-bottom-color: var(--line);
  color: var(--ink);
}

.modal__close:hover {
  border-color: var(--ink);
}

.modal__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal__stage.is-pending {
  display: grid;
  aspect-ratio: auto;
  min-height: min(44vh, 400px);
}

.modal__video,
.modal__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.modal__video {
  object-fit: contain;
}

.modal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 32px;
  padding: clamp(14px, 2vw, 22px) clamp(16px, 2.4vw, 28px)
    clamp(18px, 2.4vw, 26px);
}

.modal__desc {
  max-width: 46em;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}

.modal__pending {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  height: auto;
  min-height: 100%;
  padding: clamp(20px, 4vw, 40px);
  background: #121212;
  color: #d8d8d8;
  overflow: auto;
}

.modal__pending-title {
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.modal__pending p {
  max-width: 52em;
  font-size: 11px;
  line-height: 1.85;
  color: #a8a8a8;
}

.modal__pending code {
  padding: 1px 4px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  color: #ececec;
}

/* ========== 16 动效 ========== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ========== 17 响应式 ========== */
@media (max-width: 1023px) {
  :root {
    --header-h: 60px;
  }

  .hero {
    align-items: start;
  }

  .hero__text {
    grid-column: 1 / -1;
  }

  .hero__slot {
    grid-column: 1 / -1;
    max-width: 720px;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid {
    gap: 12px;
    padding-inline: var(--pad);
  }

  .work-column {
    gap: 12px;
  }

  .photo-grid {
    column-count: 3;
    padding-inline: var(--pad);
  }

  .photo-projects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .photo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-row {
    grid-template-columns: minmax(80px, 2fr) minmax(0, 7fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 56px;
    --pad: clamp(16px, 5vw, 24px);
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 95;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(var(--header-h) + 32px) calc(var(--pad) + var(--nav-inset)) 28px;
    background: var(--paper);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease),
      visibility 0.26s;
  }

  body.nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }

  .site-nav li {
    width: auto;
    max-width: 100%;
    border-bottom: 0;
    text-align: right;
  }

  .site-nav a {
    display: block;
    width: fit-content;
    margin-left: auto;
    padding: 12px 0 3px;
    border-bottom: 1px solid var(--line);
    font-size: clamp(24px, 7.4vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--ink);
    text-align: right;
  }

  .site-nav .nav-submenu {
    position: static;
    width: auto;
    min-width: 0;
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    text-align: right;
  }

  .site-nav .nav-submenu a {
    display: block;
    width: fit-content;
    margin-left: auto;
    padding: 3px 0 2px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: var(--muted);
  }

  .hero {
    gap: 28px;
    padding-bottom: clamp(48px, 10vw, 80px);
  }

  .hero__title {
    font-size: clamp(44px, 13vw, 68px);
  }

  .hero__slot {
    max-width: none;
  }

  .featured-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .entry-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .photo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .work-grid {
    gap: 8px;
    padding-inline: var(--pad);
  }

  .work-column {
    gap: 8px;
  }

  .photo-grid {
    column-count: 2;
    column-gap: 12px;
    padding-inline: var(--pad);
  }

  .photo-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .photo-card {
    margin-bottom: 22px;
  }

  .video-library {
    padding: 24px var(--pad) 0;
  }

  .page-head h1 {
    font-size: clamp(38px, 12vw, 64px);
  }

  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .chips {
    gap: 5px;
  }

  .chip {
    padding: 6px 9px;
  }

  .viewer__top {
    padding-block: 10px;
  }

  .viewer__stage {
    padding-inline: 6px;
  }

  .viewer__arrow {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .viewer__bottom {
    padding-block: 6px 10px;
  }

  .viewer__bottom--with-thumbs {
    gap: 8px;
  }

  .viewer-thumb {
    height: 34px;
  }

  .about-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-block: 28px;
  }

  .about-row__label {
    padding-top: 0;
  }

  .client-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-contact {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
    padding-right: 0;
  }

  .contact-line--email,
  .contact-line--wechat,
  .about-contact .contact-links {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-line--wechat {
    margin-top: 0;
  }

  .about-contact .contact-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-self: auto;
    gap: 10px 24px;
  }

  .service-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-intro {
    padding-bottom: 36px;
  }

  .site-footer {
    margin-top: 40px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .modal {
    padding: 0;
    place-items: stretch;
  }

  .modal__panel {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    border: 0;
  }

  .modal__stage {
    margin-top: auto;
    margin-bottom: auto;
  }

  .modal__head {
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .lightbox__body {
    padding-inline: 44px;
  }

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

  .lightbox__caption {
    text-align: left;
  }

  .lightbox__media img {
    max-height: calc(100dvh - 160px);
  }
}

@media (max-width: 480px) {
  .work-grid {
    gap: 6px;
    padding-inline: var(--pad);
  }

  .work-column {
    gap: 6px;
  }

  .photo-grid {
    column-gap: 8px;
    padding-inline: var(--pad);
  }

  .photo-card {
    margin-bottom: 18px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .video-card__hint {
    display: none;
  }
}

/* ========== 18 减少动态 ========== */
@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;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
