/* ============================================================
   家装效果图作品集 · 样式
   配色：墨黑 / 象牙纸 / 古铜金
   ============================================================ */

@font-face {
  font-family: 'JZSerif';
  src: url('../fonts/serif.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'JZSans';
  src: url('../fonts/sans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'JZSans';
  src: url('../fonts/sans-300.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}

:root {
  --ink: #0b0a08;
  --ink-2: #0f0d0a;
  --paper: #f6f1e6;
  --paper-2: #ece4d4;
  --gold: #b08d57;
  --gold-lt: #e0c391;
  --gold-dk: #8a6a3b;
  --muted: #9b8e7b;
  --muted-2: #6f675c;
  --line: rgba(176, 141, 87, 0.26);
  --line-soft: rgba(246, 241, 230, 0.09);
  --font-serif: 'JZSerif', 'Source Han Serif SC', 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-sans: 'JZSans', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  --font-latin: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.22, 0.7, 0.18, 1);
  --shadow-card: 0 50px 90px -40px rgba(0, 0, 0, 0.92), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: #c5bbab;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--gold); color: #1a130a; }

body.lb-open { overflow: hidden; }

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

/* ---------- 滚动进度 ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 70;
  pointer-events: none;
}
#progressBar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(138, 106, 59, 0.2), #b08d57 40%, #e9d4a6);
}

/* ---------- 通用 ---------- */
.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px);
}

.section { position: relative; padding: clamp(70px, 9vw, 132px) 0; }

.eyebrow {
  margin: 0 0 16px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--gold);
  text-transform: uppercase;
}

.sec-head { max-width: 660px; margin-bottom: clamp(30px, 4vw, 56px); }

.sec-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.24;
  letter-spacing: 0.1em;
  color: var(--paper);
}

.sec-desc {
  margin: 18px 0 0;
  max-width: 40em;
  font-size: 14.5px;
  line-height: 2;
  color: #9d9384;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  background: none;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn-gold {
  background: linear-gradient(118deg, #caa974, #ecd6a9 46%, #b08d57);
  color: #241a0d;
  box-shadow: 0 18px 34px -18px rgba(176, 141, 87, 0.7);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 24px 44px -18px rgba(176, 141, 87, 0.9); }
.btn-ghost { border-color: rgba(176, 141, 87, 0.45); color: var(--gold-lt); }
.btn-ghost:hover { background: rgba(176, 141, 87, 0.1); border-color: var(--gold); }
.btn-ghost.is-done { border-color: var(--gold); color: var(--paper); background: rgba(176, 141, 87, 0.18); }
.btn-ink { background: #1c1610; color: var(--paper); border-color: #1c1610; }
.btn-ink:hover { background: #2b2217; }
.btn-arrow { font-size: 14px; transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.diamond {
  width: 6px; height: 6px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  background: var(--gold);
  opacity: 0.75;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   导航
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease),
              backdrop-filter 0.45s var(--ease);
}
.nav.is-scrolled {
  background: rgba(12, 10, 8, 0.94);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  height: 76px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
  flex: 0 0 auto;
}
.nav-seal {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold-lt);
}
.nav-brand-txt { display: flex; flex-direction: column; line-height: 1.3; }
.nav-brand-txt b {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.18em;
}
.nav-brand-txt i {
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 0.3em;
  color: var(--muted-2);
}
.nav-links { display: flex; gap: clamp(14px, 2.2vw, 32px); margin-left: auto; }
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: #b3a795;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.4s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--gold-lt); }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-cta {
  margin-left: clamp(6px, 1.5vw, 18px);
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold-lt);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.35s, border-color 0.35s, color 0.35s;
}
.nav-cta:hover { background: rgba(176, 141, 87, 0.14); border-color: var(--gold); color: #f3e5ca; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: none;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1px;
  background: var(--gold-lt);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 24px; }
body.menu-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ============================================================
   HERO + 名片
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 120px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: -8%; z-index: -2; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(40px) brightness(0.46) saturate(0.85);
  transform: scale(1.08);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 76% 14%, rgba(176, 141, 87, 0.18), transparent 58%),
    radial-gradient(100% 80% at 6% 92%, rgba(0, 0, 0, 0.9), transparent 55%),
    linear-gradient(180deg, rgba(11, 10, 8, 0.6) 0%, rgba(11, 10, 8, 0.9) 60%, var(--ink) 100%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  width: 100%;
}
.display {
  margin: 20px 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(42px, 6.2vw, 84px);
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--paper);
}
.display-line { display: block; margin-top: 0.08em; }
.display em {
  font-style: normal;
  letter-spacing: 0.18em;
  background: linear-gradient(100deg, #8a6a3b 0%, #e7cd9c 30%, #f6e9c8 48%, #c9a670 64%, #8a6a3b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin: 26px 0 0;
  max-width: 34em;
  font-size: clamp(13.5px, 1.15vw, 15.5px);
  line-height: 2.05;
  color: #a99d8b;
}
.br { display: block; }
.hero-meta {
  display: flex;
  gap: clamp(22px, 3.4vw, 46px);
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--paper);
}
.hero-meta b small { font-size: 0.5em; color: var(--muted); margin-left: 2px; }
.hero-meta span { margin-top: 9px; font-size: 10.5px; letter-spacing: 0.28em; color: var(--muted-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* --- 名片 --- */
.card-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  perspective: 1500px;
}
.card-stage {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 1.586;
  transform: rotate(-2.6deg) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease);
  cursor: pointer;
  will-change: transform;
}
.card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 1s var(--ease);
}
.card-inner.is-flipped { transform: rotateY(180deg); }
.card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 3vw, 32px);
  border-radius: 12px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.card-face::before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(158, 122, 72, 0.34);
  border-radius: 6px;
  pointer-events: none;
}
.card-face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.5), transparent 62%);
  opacity: 0.16;
  pointer-events: none;
  mix-blend-mode: soft-light;
  transition: opacity 0.4s;
}
.card-front {
  background: linear-gradient(155deg, #fdfaf3, #f3ecdf 52%, #e7dcc7);
  color: #1a140e;
  box-shadow: var(--shadow-card);
}
.card-back {
  background: linear-gradient(160deg, #1a1511, #0d0b09 72%);
  color: var(--paper);
  border: 1px solid rgba(176, 141, 87, 0.42);
  transform: rotateY(180deg);
  box-shadow: var(--shadow-card);
}
.card-back::after {
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(224, 195, 145, 0.3), transparent 62%);
  opacity: 0.9;
  mix-blend-mode: normal;
}
.card-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.seal {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid rgba(150, 112, 62, 0.6);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1;
  color: #7c5a2c;
}
.seal-gold { border-color: rgba(224, 195, 145, 0.6); color: var(--gold-lt); width: 34px; height: 34px; font-size: 15px; }
.card-brand { display: flex; flex-direction: column; flex: 1; line-height: 1.35; }
.card-brand b {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.2em;
}
.card-brand i {
  margin-top: 4px;
  font-style: normal;
  font-size: 7.5px;
  letter-spacing: 0.24em;
  color: #8c7a5f;
}
.card-back .card-brand b { color: var(--paper); }
.card-back .card-brand i { color: #93805f; }
.card-est {
  font-size: 7.5px;
  line-height: 1.6;
  letter-spacing: 0.2em;
  text-align: right;
  color: #9a8567;
}
.card-body { position: relative; z-index: 2; }
.card-kicker {
  margin: 0 0 10px;
  font-size: clamp(8.5px, 1vw, 10.5px);
  letter-spacing: 0.24em;
  color: #8a7658;
}
.card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(23px, 3.1vw, 36px);
  line-height: 1.5;
  letter-spacing: 0.28em;
  color: #1b1410;
}
.card-foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 8px;
  letter-spacing: 0.26em;
  color: #94805f;
}
.card-corner {
  position: absolute;
  width: 15px; height: 15px;
  border: 1px solid rgba(150, 112, 62, 0.5);
  z-index: 2;
  pointer-events: none;
}
.card-back .card-corner { border-color: rgba(224, 195, 145, 0.34); }
.card-corner.tl { top: 15px; left: 15px; border-right: 0; border-bottom: 0; }
.card-corner.tr { top: 15px; right: 15px; border-left: 0; border-bottom: 0; }
.card-corner.bl { bottom: 15px; left: 15px; border-right: 0; border-top: 0; }
.card-corner.br { bottom: 15px; right: 15px; border-left: 0; border-top: 0; }

.card-tagline {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 10px 0 12px;
  border-top: 1px solid rgba(176, 141, 87, 0.22);
  font-size: clamp(8.5px, 1vw, 10px);
  letter-spacing: 0.24em;
  color: #a8946f;
}

.card-contacts {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card-contacts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(176, 141, 87, 0.18);
}
.card-contacts span { font-size: 9px; letter-spacing: 0.24em; color: #8e7a5c; }
.card-contacts b {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(10.5px, 1.15vw, 12.5px);
  letter-spacing: 0.06em;
  color: var(--paper);
}
.card-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.card-qr {
  width: clamp(46px, 9vw, 66px);
  height: auto;
  flex: 0 0 auto;
  background: #f6f1e6;
  padding: 3px;
  border-radius: 3px;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.8);
  image-rendering: pixelated;
}
.card-note {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(8.5px, 1vw, 10px);
  line-height: 1.95;
  letter-spacing: 0.1em;
  color: #9a8b74;
}
.card-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.3s, color 0.3s;
}
.card-hint:hover { opacity: 1; color: var(--gold-lt); }
.card-hint span { font-size: 14px; letter-spacing: 0; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 3;
}
.scroll-cue-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  top: -44px; left: 0;
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, #f3e3bd);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { top: -44px; } 60%, 100% { top: 44px; } }
.scroll-cue-txt { font-size: 8.5px; letter-spacing: 0.4em; color: var(--muted-2); }

/* ============================================================
   效果图
   ============================================================ */
.filters-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: clamp(24px, 3.4vw, 40px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.filters {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 30px);
}
.filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: #8d8172;
  font-size: 13.5px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: color 0.3s;
}
.filter-count {
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 10px;
  color: var(--muted-2);
  transition: 0.3s;
}
.filter:hover { color: #ded2be; }
.filter.is-active { color: var(--gold-lt); }
.filter.is-active .filter-count {
  color: var(--gold-lt);
  border-color: rgba(176, 141, 87, 0.6);
  background: rgba(176, 141, 87, 0.12);
}
.filter::after {
  content: '';
  position: absolute;
  left: 0; bottom: -17px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.45s var(--ease);
}
.filter.is-active::after { width: 100%; }

/* ---------- 精选横幅 ---------- */
.feature-work {
  margin: 0 0 clamp(14px, 1.8vw, 24px);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.feature-work.is-in { opacity: 1; transform: none; }
.feature-work.is-hidden { display: none; }
.feature-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #14110e;
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
}
.feature-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.32 / 1;
  object-fit: cover;
  filter: saturate(0.96) brightness(0.94);
  transition: transform 1.4s var(--ease), filter 0.9s;
}
.feature-media:hover img { transform: scale(1.025); filter: saturate(1.04) brightness(1); }
.feature-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 6, 4, 0.82) 0%, rgba(8, 6, 4, 0.28) 42%, transparent 72%);
  pointer-events: none;
}
.feature-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(214, 178, 122, 0.4);
  pointer-events: none;
  transition: inset 0.5s var(--ease), border-color 0.5s;
}
.feature-media:hover .feature-frame { inset: 17px; border-color: rgba(214, 178, 122, 0.7); }
.feature-caption {
  position: absolute;
  left: clamp(20px, 3vw, 44px);
  bottom: clamp(20px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.feature-kicker { font-size: 9.5px; letter-spacing: 0.36em; color: var(--gold-lt); }
.feature-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 40px);
  letter-spacing: 0.1em;
  color: #fdf6e8;
  line-height: 1.3;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.feature-meta { font-size: 10.5px; letter-spacing: 0.18em; color: #bdb09a; }
.feature-zoom {
  position: absolute;
  right: clamp(20px, 3vw, 44px);
  bottom: clamp(20px, 3vw, 40px);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--gold-lt);
  opacity: 0;
  transform: translateY(6px);
  transition: 0.45s var(--ease);
  pointer-events: none;
}
.feature-media:hover .feature-zoom { opacity: 1; transform: none; }

.grid {
  columns: 3;
  column-gap: clamp(12px, 1.6vw, 22px);
}
.work {
  break-inside: avoid;
  margin: 0 0 clamp(12px, 1.6vw, 22px);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.work.is-in { opacity: 1; transform: none; }
.work.is-hidden { display: none; }
.work-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #14110e;
  cursor: zoom-in;
  overflow: hidden;
}
.work-media img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.94) brightness(0.97);
  transition: transform 1.2s var(--ease), filter 0.8s;
}
.work-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 6, 4, 0.62), rgba(8, 6, 4, 0.05) 45%, transparent);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.work-media:hover img { transform: scale(1.045); filter: saturate(1.04) brightness(1.02); }
.work-media:hover::after { opacity: 1; }
.work-frame {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(214, 178, 122, 0.55);
  opacity: 0;
  transition: opacity 0.45s, inset 0.45s var(--ease);
  pointer-events: none;
}
.work-media:hover .work-frame { opacity: 1; inset: 13px; }
.work-num {
  position: absolute;
  top: 12px; left: 14px;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(246, 238, 220, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.work-zoom {
  position: absolute;
  right: 14px; bottom: 12px;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--gold-lt);
  opacity: 0;
  transform: translateY(6px);
  transition: 0.45s var(--ease);
  pointer-events: none;
}
.work-media:hover .work-zoom { opacity: 1; transform: none; }

.work figcaption { padding: 14px 2px 0; }
.work-space { display: block; font-size: 9.5px; letter-spacing: 0.32em; color: var(--gold); }
.work-title {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(16px, 1.5vw, 19px);
  letter-spacing: 0.07em;
  color: #ece5d6;
  transition: color 0.3s;
}
.work:hover .work-title { color: #fff8ea; }
.work-desc { margin: 6px 0 0; font-size: 12.5px; line-height: 1.9; color: #8b8173; }
.work-meta { display: block; margin-top: 10px; font-size: 10px; letter-spacing: 0.14em; color: #6f675c; }

.works-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: clamp(26px, 4vw, 50px) 0 0;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: #6f675c;
}

/* ============================================================
   项目档案
   ============================================================ */
.projects { background: linear-gradient(180deg, var(--ink), #0e0c0a 45%, var(--ink)); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}
.project-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #111;
  text-decoration: none;
  color: inherit;
}
.project-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.96);
  transition: transform 1.4s var(--ease), filter 0.8s;
}
.project-card:hover img { transform: scale(1.055); filter: saturate(1.03) brightness(1.04); }
.project-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 6, 4, 0.95) 0%, rgba(8, 6, 4, 0.62) 26%, rgba(8, 6, 4, 0.14) 54%, transparent 76%);
}
/* 平面方案：纸张感浅色卡片 */
.project-card--plan { background: #f4eee1; }
.project-card--plan img { filter: none; object-position: center 42%; }
.project-card--plan:hover img { filter: none; }
.project-card--plan .project-shade {
  background: linear-gradient(to top, rgba(244, 238, 225, 0.99) 0%, rgba(244, 238, 225, 0.94) 26%, rgba(244, 238, 225, 0.35) 46%, transparent 62%);
}
.project-card--plan .project-no { color: #a4834c; }
.project-card--plan .project-name { color: #1c1610; }
.project-card--plan .project-style { color: #5c5142; }
.project-card--plan .project-meta { color: #7d7160; }
.project-card--plan .project-desc { color: #6d6153; }
.project-card--plan .project-link { color: #8a6a3b; }
.project-body {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(18px, 2.2vw, 28px);
}
.project-no { font-size: 9px; letter-spacing: 0.32em; color: var(--gold); }
.project-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.08em;
  color: var(--paper);
}
.project-style { font-size: 11.5px; letter-spacing: 0.18em; color: #c3b49c; }
.project-meta { font-size: 10px; letter-spacing: 0.14em; color: #8b8173; }
.project-desc {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 12px;
  line-height: 1.85;
  color: #9d9384;
  transition: max-height 0.55s var(--ease), opacity 0.45s, margin 0.45s;
}
.project-card:hover .project-desc { max-height: 96px; margin-top: 8px; opacity: 1; }
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--gold-lt);
}
.project-link i { font-style: normal; transition: transform 0.4s var(--ease); }
.project-card:hover .project-link i { transform: translateX(5px); }
.project-card::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid transparent;
  transition: border-color 0.5s;
  pointer-events: none;
}
.project-card:hover::after { border-color: rgba(176, 141, 87, 0.45); }

/* ============================================================
   平面彩图（浅色纸张）
   ============================================================ */
.plan { background: var(--paper); color: #2a231a; overflow: hidden; }
.plan::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(0deg, rgba(28, 22, 16, 0.035) 0 1px, transparent 1px 5px);
}
.plan .wrap { position: relative; z-index: 1; }
.plan .eyebrow { color: #9a7a44; }
.plan .sec-title { color: #1c1610; }
.plan .sec-desc { color: #6d6153; }
.plan-layout {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: clamp(24px, 4vw, 58px);
  align-items: start;
  margin-top: clamp(24px, 3vw, 40px);
}
.plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.4vw, 34px);
  margin-bottom: 18px;
}
.plan-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 0 10px;
  border: 0;
  background: none;
  color: #8b7f6d;
  cursor: pointer;
  transition: color 0.3s;
}
.plan-tab-label { font-size: 13.5px; letter-spacing: 0.18em; }
.plan-tab-en { font-size: 8px; letter-spacing: 0.26em; color: #a89a83; }
.plan-tab::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: #b08d57;
  transition: width 0.45s var(--ease);
}
.plan-tab.is-active { color: #1c1610; }
.plan-tab.is-active::after { width: 100%; }
.plan-img-wrap {
  position: relative;
  padding: clamp(6px, 1vw, 12px);
  background: #fff;
  box-shadow: 0 34px 74px -40px rgba(40, 30, 15, 0.6), 0 0 0 1px rgba(40, 30, 15, 0.07);
}
.plan-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.4s, transform 0.6s;
}
.plan-img-wrap img.is-swapping { opacity: 0; transform: scale(0.994); }
.plan-stamp {
  position: absolute;
  top: clamp(10px, 1.6vw, 22px);
  right: clamp(10px, 1.6vw, 22px);
  padding: 8px 12px;
  background: rgba(28, 22, 16, 0.86);
  color: #e8d9bd;
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.22em;
  text-align: center;
  backdrop-filter: blur(4px);
}
.plan-stamp i { font-style: normal; font-size: 8.5px; letter-spacing: 0.18em; color: #b08d57; }
.plan-caption {
  min-height: 3.2em;
  margin: 16px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: #6d6153;
}
.plan-specs { padding-top: 4px; }
.spec-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(28, 22, 16, 0.18);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: #1c1610;
}
.spec-title i { font-style: normal; font-size: 8.5px; letter-spacing: 0.26em; color: #a08d70; }
.spec-list { margin: 0 0 26px; }
.spec-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(28, 22, 16, 0.16);
}
.spec-list dt { flex: 0 0 auto; font-size: 10.5px; letter-spacing: 0.2em; color: #8b7f6d; }
.spec-list dd { margin: 0; font-size: 12.5px; line-height: 1.7; color: #2a231a; text-align: right; }

/* ============================================================
   服务
   ============================================================ */
.services { background: linear-gradient(180deg, #0b0a08, #100d0a); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
}
.service {
  position: relative;
  padding: clamp(22px, 3vw, 36px) clamp(16px, 2vw, 28px) clamp(26px, 3vw, 42px);
  border-right: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.service:last-child { border-right: 0; }
.service.is-in { opacity: 1; transform: none; }
.service::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.65s var(--ease);
}
.service:hover::before { width: 100%; }
.service:hover { background: linear-gradient(180deg, rgba(176, 141, 87, 0.055), rgba(176, 141, 87, 0)); }
.service-no { font-family: var(--font-serif); font-size: 12px; letter-spacing: 0.24em; color: var(--gold); }
.service-title {
  margin: 24px 0 12px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(17px, 1.7vw, 21px);
  letter-spacing: 0.1em;
  color: var(--paper);
}
.service-desc { margin: 0; font-size: 12.5px; line-height: 2; color: #918776; }

/* ============================================================
   联系
   ============================================================ */
.contact {
  padding-bottom: 0;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(176, 141, 87, 0.13), transparent 58%),
    var(--ink);
}
.contact-title {
  margin: 10px 0 clamp(34px, 5vw, 60px);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(30px, 4.8vw, 60px);
  line-height: 1.36;
  letter-spacing: 0.08em;
  color: var(--paper);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(20px, 4vw, 60px);
  border-top: 1px solid var(--line-soft);
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
}
.contact-item span { font-size: 9.5px; letter-spacing: 0.3em; color: var(--muted-2); }
.contact-item b {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: 0.08em;
  color: #e6dccb;
  transition: color 0.3s;
}
a.contact-item:hover b { color: var(--gold-lt); }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: clamp(30px, 4vw, 46px) 0 clamp(56px, 8vw, 100px);
}
.contact-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  padding: 20px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-track span {
  padding-right: 40px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: 0.22em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(176, 141, 87, 0.42);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   页脚
   ============================================================ */
.footer { border-top: 1px solid var(--line-soft); background: var(--ink); padding: clamp(28px, 4vw, 44px) 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.seal-sm { width: 30px; height: 30px; font-size: 14px; }
.footer-brand b {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: #e3d9c8;
}
.footer-brand i { font-style: normal; font-size: 7.5px; letter-spacing: 0.24em; color: #6f675c; }
.footer-note, .footer-copy { margin: 0; font-size: 10px; letter-spacing: 0.12em; color: #6f675c; }

/* ============================================================
   灯箱
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 54px);
  background: rgba(7, 6, 5, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 100%; }
#lbImg {
  display: block;
  max-width: min(1240px, 92vw);
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #0e0c0a;
  box-shadow: 0 40px 90px -30px #000;
  opacity: 0;
  transition: opacity 0.45s;
}
.lb-figure figcaption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 900px;
}
.lb-space { display: block; font-size: 9.5px; letter-spacing: 0.3em; color: var(--gold); }
#lbTitle {
  margin: 6px 0 4px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.08em;
  color: var(--paper);
}
#lbMeta { margin: 0; font-size: 10.5px; letter-spacing: 0.14em; color: #8b8173; }
.lb-counter { font-size: 10.5px; letter-spacing: 0.24em; color: var(--gold); white-space: nowrap; }
.lb-close, .lb-nav {
  position: fixed;
  z-index: 101;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(176, 141, 87, 0.35);
  border-radius: 50%;
  background: rgba(11, 10, 8, 0.4);
  color: var(--gold-lt);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.35s, border-color 0.35s, transform 0.35s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(176, 141, 87, 0.18); border-color: var(--gold); }
.lb-close { top: clamp(14px, 2.4vw, 30px); right: clamp(14px, 2.4vw, 30px); }
.lb-prev { left: clamp(10px, 2vw, 32px); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(10px, 2vw, 32px); top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { transform: translateY(-50%) translateX(2px); }

/* ============================================================
   回到顶部
   ============================================================ */
.to-top {
  position: fixed;
  right: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  z-index: 50;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(11, 10, 8, 0.72);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.35s var(--ease);
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--gold-lt); border-color: var(--gold); }

/* ============================================================
   自适应
   ============================================================ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { margin-left: auto; margin-right: 10px; }
  body.menu-open .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px clamp(18px, 4vw, 56px) 24px;
    background: rgba(11, 10, 8, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
  }
  body.menu-open .nav-links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
  }
  .hero { min-height: auto; padding-top: 132px; }
  .hero-inner { grid-template-columns: 1fr; gap: 52px; }
  .card-wrap { order: -1; }
  .card-stage { width: min(100%, 480px); }
  .scroll-cue { display: none; }
  .grid { columns: 2; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card--plan { grid-column: span 2; aspect-ratio: 16 / 8; }
  .plan-layout { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service { border-bottom: 1px solid var(--line-soft); }
  .service:nth-child(2n) { border-right: 0; }
}

@media (max-width: 720px) {
  .nav-inner { height: 66px; }
  body.menu-open .nav-links { top: 66px; }
  .nav-cta { display: none; }
  .hero { padding: 110px 0 70px; }
  .hero-meta { gap: 20px; margin-top: 28px; padding-top: 20px; }
  .hero-meta span { letter-spacing: 0.2em; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; padding: 14px 20px; }
  .card-stage { width: min(100%, 400px); }
  .card-face { padding: 16px; }
  .card-contacts li { padding: 6px 0; }
  .card-note { font-size: 8px; }
  .grid { columns: 1; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card--plan { grid-column: auto; aspect-ratio: 3 / 4; }
  .project-desc { max-height: none; opacity: 1; margin-top: 6px; }
  .services-grid { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .lb-figure figcaption { max-height: 20vh; }
  #lbImg { max-height: 68vh; }
  .lb-close, .lb-nav { width: 40px; height: 40px; font-size: 13px; }
  .eyebrow { font-size: 8.5px; letter-spacing: 0.24em; line-height: 1.9; }
  .feature-media img { aspect-ratio: 1.32 / 1; }
  .feature-title { font-size: 20px; letter-spacing: 0.06em; }
  .feature-meta { font-size: 9.5px; letter-spacing: 0.12em; }
  .feature-frame { inset: 10px; }
  .feature-zoom { display: none; }
  .card-tagline { letter-spacing: 0.16em; }
  .plan .sec-title { font-size: 25px; letter-spacing: 0.05em; }
  .card-face { padding: 14px; }
  .card-tagline { padding: 6px 0 8px; }
  .card-contacts li { padding: 4px 0; }
  .card-qr { width: 40px; padding: 2px; }
  .card-note { font-size: 8px; line-height: 1.8; }
}

@media (max-width: 420px) {
  .display { font-size: clamp(34px, 10vw, 42px); }
  .card-title { letter-spacing: 0.2em; }
  .card-kicker { letter-spacing: 0.16em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
