/* ==========================================================================
   御龙臻艺 · 艾军龙
   --------------------------------------------------------------------------
   极简当代艺术馆画廊风（参考 danyangart.com/zh）：
   首页：纯黑首屏镇馆作品大片 + 纯净留白作品墙，克制、留白、让作品自己说话。
   内页：纯净白底画册排版，无边框套娃、无商业推销装饰。
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f5f0;
  --bg-dark: #0a0a0a;
  --ink: #1a1816;
  --ink-muted: #5c5750;
  --ink-subtle: #8c857b;
  --line: #e5e0d8;
  --line-dark: #262320;
  --accent: #9b7b46;
  --accent-light: #d4b483;
  --danger: #b83a2d;

  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC",
    "SimSun", Georgia, serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "HarmonyOS Sans SC", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
}

a:hover { color: var(--accent); }

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

::selection { background: rgba(155, 123, 70, 0.2); color: var(--ink); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  z-index: 100;
}

.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- 顶栏（极简画廊导航） ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(130%) blur(8px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: box-shadow 0.4s ease;
}

.site-head.is-stuck {
  box-shadow: 0 10px 28px -24px rgba(0, 0, 0, 0.25);
}

.is-home .site-head {
  background: rgba(10, 10, 10, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #f4f1ea;
}

.is-home .site-head.is-stuck {
  box-shadow: 0 14px 30px -22px rgba(0, 0, 0, 0.85);
}

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

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 19px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.brand__sep { opacity: 0.35; }
.brand__artist { font-size: 15px; opacity: 0.82; letter-spacing: 0.14em; }

.nav {
  display: flex;
  gap: 36px;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

.is-home .nav { color: #b9b2a6; }

.nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover { color: var(--ink); }
.is-home .nav a:hover { color: #ffffff; }

.nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.is-home .nav a[aria-current="page"] {
  color: var(--accent-light);
  border-bottom-color: var(--accent-light);
}

/* ---------- 首页第一屏：纯黑作品剧场 ---------- */

.hero-gallery {
  background: var(--bg-dark);
  color: #f4f1ea;
  padding: 28px 0 64px;
}

.hero-gallery__stage {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-gallery__link {
  display: block;
  position: relative;
  overflow: hidden;
}

.hero-gallery__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 75% at 50% 50%, transparent 55%, rgba(10, 10, 10, 0.55) 100%);
  pointer-events: none;
}

.hero-gallery__link img {
  width: 100%;
  max-height: 74vh;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.16, 0.7, 0.2, 1);
}

.hero-gallery__link:hover img { transform: scale(1.015); }

.hero-gallery__title {
  text-align: center;
  padding: 40px 24px 0;
}

.hero-gallery__title h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: 0.28em;
  color: #f4f1ea;
}

.hero-gallery__title p {
  margin: 12px 0 0;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: #a9a196;
}

/* ---------- 首页第二屏：纯净留白作品墙 ---------- */

.gallery-wall {
  background: var(--bg);
  padding: 84px 0 96px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  grid-auto-flow: dense;
}

.gallery-tile {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 4 / 5;
}

.gallery-tile--wide {
  grid-column: span 2;
  aspect-ratio: auto;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 0.7, 0.2, 1);
}

.gallery-tile:hover img { transform: scale(1.025); }

.gallery-tile__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 20px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.72) 100%);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.gallery-tile__cap strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.gallery-tile__cap span {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
}

.gallery-tile:hover .gallery-tile__cap,
.gallery-tile:focus-visible .gallery-tile__cap { opacity: 1; }

/* ---------- 首页克制文字简介（画廊留白） ---------- */

.artist-note {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 72px 0 80px;
}

.artist-note__inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px 64px;
  align-items: start;
}

.artist-note__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin: 0;
}

.artist-note__sub {
  margin-top: 8px;
}

.artist-note__body {
  max-width: 700px;
}

.artist-note__body p {
  margin: 0;
  font-size: 16.5px;
  line-height: 2.05;
  color: var(--ink-muted);
}

.artist-note__links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 24px;
}

/* ---------- 通用内页排版（画册白底） ---------- */

.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--line); }

.crumb {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-subtle);
  padding: 36px 0 0;
}

.page-head {
  padding: 36px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-head__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.45;
  margin: 0;
  color: var(--ink);
}

.h-lg { font-size: clamp(28px, 3vw, 40px); }
.h-md { font-size: clamp(22px, 2.2vw, 28px); }

.lead {
  font-size: clamp(16.5px, 1.3vw, 18.5px);
  line-height: 1.95;
  color: var(--ink-muted);
  max-width: 34em;
  margin: 0;
}

.muted { color: var(--ink-muted); }

.sans {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-subtle);
}

.label {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-subtle);
  margin: 0 0 36px;
}

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border: 1px solid var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.16em;
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
}

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

/* ---------- 作品集与详情页 ---------- */

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px 32px;
}

.card { display: block; }

.card__img {
  overflow: hidden;
  background: var(--bg-soft);
  margin-bottom: 16px;
}

.card__img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 0.7, 0.2, 1);
}

.card:hover .card__img img { transform: scale(1.03); }

.card__title {
  font-size: 20px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.card__meta {
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--ink-subtle);
}

/* ---------- 工坊现场实拍视频 ---------- */

.video-showcase {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 76px 0 84px;
}

.video-showcase__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.video-showcase__head p { margin: 0; }

.video-grid {
  display: grid;
  grid-template-columns: 1.24fr 1fr;
  gap: 24px;
  align-items: start;
}

.video-card { margin: 0; }

.video-card video {
  width: 100%;
  display: block;
  background: #0f0e0d;
}

.video-card--wide video { aspect-ratio: 1280 / 580; object-fit: cover; }
.video-card--short video { aspect-ratio: 684 / 384; object-fit: cover; }

.video-card figcaption { margin-top: 12px; }

.work-video {
  margin: 56px 0 0;
}

.work-video video {
  width: 100%;
  aspect-ratio: 1280 / 580;
  object-fit: cover;
  display: block;
  background: #0f0e0d;
}

.work-video figcaption { margin-top: 12px; }

/* ---------- 荣誉证书 ---------- */

.award-block { max-width: 780px; }
.award-block figure { margin: 0; }
.award-block img { width: 100%; height: auto; background: var(--bg-soft); }
.award-block figcaption { margin-top: 12px; }

.work-hero {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 68px;
  align-items: start;
  padding-top: 44px;
}

.work-hero__img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-soft);
}

.spec { margin: 32px 0; border-top: 1px solid var(--line); }

.spec__row {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}

.spec__k {
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--ink-subtle);
  width: 64px;
  flex: none;
  padding-top: 3px;
}

.work-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  margin-top: 68px;
}

.work-wide { margin-top: 56px; }
.work-wide,
.work-gallery figure,
.studio-photos figure { margin: 0; }

.work-wide img,
.work-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-soft);
}

.work-wide figcaption,
.work-gallery figcaption,
.studio-photos figcaption { margin-top: 12px; }

.pager {
  display: flex;
  gap: 30px;
  padding: 56px 0 0;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

/* ---------- 简介页 ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 72px;
  align-items: start;
}

.about__body p { margin: 0 0 24px; color: var(--ink-muted); }
.about__body p:first-child { color: var(--ink); }

.facts { margin-top: 40px; border-top: 1px solid var(--line); }

.facts__row {
  display: flex;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}

.facts__k {
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--ink-subtle);
  width: 80px;
  flex: none;
  padding-top: 3px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.timeline__item {
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}

.step__n {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 10px;
}

.step__t { font-size: 20px; margin-bottom: 10px; letter-spacing: 0.08em; }
.step__d { font-size: 15px; color: var(--ink-muted); line-height: 1.9; margin: 0; }

.studio-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.studio-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-soft);
}

/* ---------- 联系页与极简私洽表单 ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-points { margin-top: 36px; border-top: 1px solid var(--line); }

.contact-point {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-point__k {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-subtle);
  padding-top: 3px;
}

.contact-point p { margin: 0; font-size: 15.5px; line-height: 1.8; color: var(--ink-muted); }

.msgform {
  border-top: 1px solid var(--ink);
  padding-top: 28px;
}

.field { margin-bottom: 24px; }

.field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--ink-subtle);
  margin-bottom: 8px;
}

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

.field textarea { resize: vertical; line-height: 1.75; }

.field select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-subtle) 50%),
                    linear-gradient(135deg, var(--ink-subtle) 50%, transparent 50%);
  background-position: calc(100% - 12px) 20px, calc(100% - 7px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 26px;
}

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

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-subtle); opacity: 0.75; }

.field.is-bad input,
.field.is-bad select,
.field.is-bad textarea { border-bottom-color: var(--danger); }
.field.is-bad label { color: var(--danger); }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.msgform__submit { margin-top: 6px; min-width: 140px; }
.msgform__submit[disabled] { opacity: 0.45; cursor: default; }

.msgform__privacy {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-subtle);
  margin-top: 20px;
}

.msgform__privacy a { border-bottom: 1px solid var(--line); }

.msgform__state {
  margin-top: 16px;
  font-size: 15px;
  min-height: 1.5em;
}

.msgform__state.is-ok { color: var(--accent); }
.msgform__state.is-err { color: var(--danger); }

/* ---------- 隐私说明 ---------- */

.article-shell { max-width: 760px; margin: 0 auto; }
.prose { font-size: 17px; line-height: 2; }
.prose h2 { font-size: 22px; margin: 36px 0 14px; }
.prose p { margin: 0 0 1.4em; color: var(--ink-muted); }

/* ---------- 页脚（极简单行） ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 36px 0;
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-subtle);
}

.site-foot__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-foot__meta { display: inline-flex; align-items: center; gap: 10px; }
.site-foot__meta i { font-style: normal; opacity: 0.4; }

/* ---------- 动效（克制版） ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.65, 0.25, 1),
    transform 0.8s cubic-bezier(0.2, 0.65, 0.25, 1);
}

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

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

@media (max-width: 1080px) {
  .about-grid, .work-hero, .contact-grid { gap: 44px; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 860px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .about-grid, .work-hero, .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { gap: 12px; }
  .artist-note__inner { grid-template-columns: 1fr; gap: 20px; }
  .video-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .site-head__inner { min-height: 60px; gap: 12px; }
  .brand { font-size: 16px; letter-spacing: 0.08em; }
  .brand__sep, .brand__artist { display: none; }
  .nav { gap: 16px; font-size: 13.5px; letter-spacing: 0.06em; }
  .nav a { padding: 10px 2px; }
  .hero-gallery { padding: 14px 0 38px; }
  .hero-gallery__stage { padding: 0 12px; }
  .hero-gallery__title { padding: 24px 16px 0; }
  .hero-gallery__title h1 { letter-spacing: 0.22em; }
  .hero-gallery__title p { font-size: 12px; letter-spacing: 0.16em; }
  .gallery-wall { padding: 36px 0 52px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-tile--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
  .gallery-tile__cap {
    opacity: 1;
    padding: 20px 10px 10px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.62) 100%);
    flex-direction: column;
    gap: 1px;
  }
  .gallery-tile__cap strong { font-size: 13.5px; letter-spacing: 0.04em; }
  .gallery-tile__cap span { font-size: 11px; letter-spacing: 0.04em; }
  .gallery-tile--wide .gallery-tile__cap {
    padding: 24px 14px 12px;
    flex-direction: column;
    gap: 2px;
  }
  .gallery-tile--wide .gallery-tile__cap strong { font-size: 15px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .card__img { margin-bottom: 10px; }
  .card__title { font-size: 16px; letter-spacing: 0.04em; margin-bottom: 3px; }
  .card__meta { font-size: 11.5px; letter-spacing: 0.04em; }
  .timeline, .studio-photos { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 52px 0; }
  .artist-note { padding: 48px 0 56px; }
  .video-showcase { padding: 52px 0 60px; }
  .msgform__submit { width: 100%; }
  .site-foot__inner { flex-direction: column; align-items: flex-start; }
  .site-foot__meta { flex-wrap: wrap; row-gap: 4px; }
  .pager { flex-direction: column; gap: 14px; }
}

@media (max-width: 380px) {
  .brand { font-size: 15px; letter-spacing: 0.04em; }
  .nav { gap: 12px; font-size: 13px; letter-spacing: 0.04em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

@media (hover: none) {
  .gallery-tile__cap { opacity: 1; }
  .gallery-tile:hover img,
  .card:hover .card__img img,
  .hero-gallery__link:hover img { transform: none; }
}
