/* ============================================================
   Z+X STUDIO · 州筑工作室官网
   视觉规范：纯黑 #000 背景 / 纯白文字 / 全站微软雅黑 / 竖条方案导航
   ============================================================ */

:root {
  --black: #000000;
  --white: #ffffff;
  --dim: rgba(255, 255, 255, 0.56);
  --faint: rgba(255, 255, 255, 0.34);
  --line: rgba(255, 255, 255, 0.18);
  --line-soft: rgba(255, 255, 255, 0.09);
  --font: "Microsoft YaHei", "微软雅黑", "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --nav-h: 74px;
  --gut: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 全部文字统一微软雅黑 */
* { font-family: var(--font); box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--black); }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: var(--font); }
h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; font-weight: 400; }
::selection { background: var(--white); color: var(--black); }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--dim); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ----------------------- 导航 ----------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gut);
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__logo { width: 30px; height: 30px; object-fit: contain; flex: none; }
.nav__brand strong { font-size: 19px; font-weight: 700; letter-spacing: 0.1em; }
.nav__brand span { font-size: 12px; letter-spacing: 0.14em; color: var(--dim); }
.nav__brand .nav__affiliate { font-size: 10px; letter-spacing: .1em; color: var(--faint); }
.nav__menu { display: flex; gap: 36px; align-items: center; }
.nav__menu a {
  font-size: 13px; letter-spacing: 0.12em; color: var(--dim);
  position: relative; padding: 6px 0; transition: color .25s;
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--white); transition: width .3s var(--ease);
}
.nav__menu a:hover, .nav__menu a.active { color: var(--white); }
.nav__menu a:hover::after, .nav__menu a.active::after { width: 100%; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 1px; background: #fff; margin: 6px 0; }

/* ----------------------- 首页 · 竖条方案导航（17 个方案） ----------------------- */
.bars-wrap { position: relative; }
.bars {
  display: flex;
  height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.bar {
  position: relative; flex: 1 1 0; min-width: 0;
  border-right: 1px solid var(--line);
  overflow: hidden; outline: none;
  transition: flex-grow .7s var(--ease);
}
.bar:last-child { border-right: 0; }
.bars.has-active .bar { flex-grow: .5; }
.bars.has-active .bar.is-active { flex-grow: 6.5; min-width: 380px; }

/* 竖条底图：默认压暗灰度，激活时提亮 */
.bar__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: grayscale(1) brightness(.44) contrast(1.05);
  /* 不做 transform 缩放：避免图层二次重采样造成的主图软化 */
  transition: filter .3s var(--ease);
}
/* 07 山村全景：展开时优先保留原图上半部分的屋顶与云雾 */
.bar[data-id="07"] .bar__bg { object-position: center 22%; }
.bar.is-active .bar__bg, .bar:focus-visible .bar__bg {
  filter: none;                 /* 展开时直接显示彩色效果图，不再淡显 */
}
.bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.80) 0%, rgba(0,0,0,.34) 45%, rgba(0,0,0,.90) 100%);
  pointer-events: none;
}
/* 展开态：只在顶部文字区与底部信息区压暗，中部让彩色图原色透出 */
.bar.is-active::after, .bar:focus-visible::after {
  /* 中部几乎不压暗，让高清效果图原色通透；上下仍保证文字可读 */
  background: linear-gradient(180deg,
    rgba(0,0,0,.86) 0%, rgba(0,0,0,.54) 22%, rgba(0,0,0,.02) 48%,
    rgba(0,0,0,.04) 76%, rgba(0,0,0,.84) 100%);
}

/* 收起态：竖排编号 + 短方案名（17 条等宽，字号收紧） */
.bar__idle {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px 10px 52px; /* 底部留出提示条空间，避免遮挡竖排方案名 */
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.bar__num {
  font-size: clamp(17px, 1.6vw, 26px); font-weight: 700; line-height: 1;
  letter-spacing: -0.02em;
}
.bar__idle-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.bar__vlabel {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: 12px; letter-spacing: 0.12em; white-space: nowrap;
  max-height: 44vh; overflow: hidden;
}
.bar__ven { writing-mode: vertical-rl; font-size: 10px; letter-spacing: .2em; color: var(--faint); white-space: nowrap; }
.bar__tick { width: 1px; height: 26px; background: var(--white); opacity: .55; flex: none; }
.bar.is-active .bar__idle, .bar:focus-visible .bar__idle { opacity: 0; transform: translateY(-12px); pointer-events: none; }

/* 展开面板：方案 LOGO / 名称 / 效果图缩略图 */
.bar__panel {
  position: absolute; z-index: 3; inset: 0;
  display: flex; flex-direction: column;
  padding: 28px 30px 30px;
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .5s var(--ease) .12s, transform .6s var(--ease) .12s;
}
.bar.is-active .bar__panel, .bar:focus-visible .bar__panel {
  opacity: 1; transform: none; pointer-events: auto;
}
.bar__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bar__logo {
  width: 48px; height: 48px; border: 1px solid var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
  overflow: hidden; flex: none;
}
.bar__logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.bar__logo--mark img { padding: 3px; }
.bar__index { font-size: 10px; letter-spacing: .22em; color: var(--dim); padding-top: 6px; white-space: nowrap; }
.bar__titles { margin-top: 26px; padding-top: 0; }
.bar__title { font-size: clamp(21px, 1.9vw, 30px); font-weight: 700; line-height: 1.3; letter-spacing: .01em; }
.bar__full {
  font-size: 11px; color: var(--dim); margin-top: 8px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bar__title-en {
  font-size: 10px; letter-spacing: .14em; color: var(--faint); margin-top: 8px;
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bar__theme { font-size: 12px; color: var(--white); margin-top: 12px; letter-spacing: .06em; }
.bar__theme span { color: var(--faint); margin-left: 8px; font-size: 10px; letter-spacing: .1em; }
.bar__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.bar__meta { font-size: 10px; letter-spacing: .08em; color: var(--dim); }
.bar__cta { font-size: 11px; letter-spacing: .1em; white-space: nowrap; }
.bar__cta i { font-style: normal; display: inline-block; transition: transform .3s; }
.bar:hover .bar__cta i { transform: translateX(7px); }

/* 中等屏幕：竖条改为可横向滚动，保证每条仍可读 */
@media (min-width: 761px) and (max-width: 1200px) {
  .bars { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .bars::-webkit-scrollbar { display: none; }
  .bar { flex: 0 0 92px; }
  .bars.has-active .bar { flex: 0 0 62px; }
  .bars.has-active .bar.is-active { flex: 0 0 440px; min-width: 0; }
}

.bars-hint {
  position: absolute; z-index: 8; left: 50%; bottom: 16px; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .26em; color: var(--dim); white-space: nowrap;
  background: #000; border: 1px solid var(--line); padding: 8px 16px;
  pointer-events: none; transition: opacity .5s;
}
.bars-wrap.used .bars-hint { opacity: 0; }

/* 首页底部信息带 */
.home-foot {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding: 64px var(--gut) 76px; border-bottom: 1px solid var(--line);
  max-width: 1440px; margin: 0 auto;
}
.home-foot h2 { font-size: clamp(20px, 2.2vw, 30px); font-weight: 700; line-height: 1.5; max-width: 22ch; }
.home-foot dl dt { font-size: 10px; letter-spacing: .24em; color: var(--faint); text-transform: uppercase; margin-bottom: 12px; }
.home-foot dl dd { font-size: 14px; line-height: 1.9; color: var(--dim); }
.home-foot a { color: var(--white); border-bottom: 1px solid var(--line); }
.home-foot a:hover { border-color: var(--white); }

/* ----------------------- 内页通用 ----------------------- */
.page-head { padding: calc(var(--nav-h) + 90px) 0 76px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(38px, 6vw, 88px); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; margin-top: 22px; }
.page-head p { margin-top: 28px; max-width: 58ch; color: var(--dim); font-size: 15px; }
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 52px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3vw, 40px); font-weight: 700; }
.section-head span { font-size: 11px; letter-spacing: .2em; color: var(--faint); }

/* ----------------------- 作品列表 ----------------------- */
.work-filter { display: flex; width: fit-content; max-width: 100%; border: 1px solid var(--line); margin-bottom: 28px; }
.filter-btn {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: transparent; color: var(--dim); border: 0; border-right: 1px solid var(--line);
  padding: 12px 20px; font-size: 12px; letter-spacing: .12em; transition: background .25s, color .25s;
}
.filter-btn:last-child { border-right: 0; }
.filter-btn small { font-size: 10px; color: var(--faint); letter-spacing: .08em; }
.filter-btn:hover { color: var(--white); }
.filter-btn.active { background: var(--white); color: var(--black); }
.filter-btn.active small { color: rgba(0,0,0,.5); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.work-card { background: var(--black); padding: 28px 28px 32px; display: block; position: relative; transition: background .35s; }
.work-card:hover { background: #0b0b0b; }
.work-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #111; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) brightness(.82); transition: transform .9s var(--ease), filter .6s; }
.work-card:hover .work-card__media img { transform: scale(1.05); filter: grayscale(0) brightness(1); }
.work-card__num { position: absolute; top: 14px; left: 16px; font-size: 30px; font-weight: 700; z-index: 2; text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.work-card__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 24px; }
.work-card__title { font-size: 22px; font-weight: 700; line-height: 1.35; }
.work-card__en { font-size: 10px; letter-spacing: .16em; color: var(--faint); margin-top: 8px; }
.work-card__theme { font-size: 13px; color: var(--dim); margin-top: 16px; }
.work-card__meta { font-size: 11px; letter-spacing: .1em; color: var(--faint); margin-top: 22px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.work-card__arrow { font-size: 20px; flex: none; transition: transform .3s; }
.work-card:hover .work-card__arrow { transform: translateX(6px); }

/* ----------------------- 作品详情页 ----------------------- */
.project-hero { padding: calc(var(--nav-h) + 76px) 0 60px; }
.project-hero__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.project-hero__logo { width: 84px; height: 84px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; overflow: hidden; }
.project-hero__logo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.project-hero h1 { font-size: clamp(34px, 5.4vw, 76px); font-weight: 700; line-height: 1.12; margin-top: 42px; }
.project-hero__en { font-size: 12px; letter-spacing: .22em; color: var(--dim); margin-top: 18px; }
.project-hero__theme { font-size: clamp(17px, 2vw, 24px); margin-top: 30px; }
.project-hero__theme span { color: var(--faint); font-size: 12px; letter-spacing: .14em; margin-left: 14px; }
.project-hero__cover { margin-top: 56px; width: 100%; max-height: 76vh; object-fit: cover; border: 1px solid var(--line); }
/* 07 / 13：主图用未裁切原图，按原始比例完整显示；下方信息表随文档流自然下移 */
.project-hero__cover--full { display: block; height: auto; max-height: none; object-fit: contain; }

.project-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 1px; }
.project-facts > div { background: var(--black); padding: 26px 24px; }
.project-facts dt { font-size: 10px; letter-spacing: .22em; color: var(--faint); text-transform: uppercase; }
.project-facts dd { font-size: 16px; margin-top: 12px; }

.project-text { display: grid; grid-template-columns: 1fr; max-width: 880px; }
.project-text h2 { font-size: 20px; font-weight: 700; margin-bottom: 22px; }
.project-text p { color: var(--dim); line-height: 2.05; margin-bottom: 18px; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: #0a0a0a; border: 1px solid var(--line-soft); aspect-ratio: 4 / 3; }
.gallery figure.wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
/* 作品集整页版面：完整显示，不裁切 */
.gallery figure.spread { aspect-ratio: 16 / 6.4; background: #0d0d0d; padding: 20px; }
.gallery figure.spread img { object-fit: contain; filter: none; background: #fff; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .8s var(--ease), filter .5s; filter: grayscale(.35) brightness(.92); }
.gallery figure:hover img { transform: scale(1.02); filter: grayscale(0) brightness(1); }
.gallery figcaption { position: absolute; left: 14px; bottom: 12px; font-size: 10px; letter-spacing: .16em; color: rgba(255,255,255,.8); text-shadow: 0 1px 8px #000; opacity: 0; transition: opacity .3s; }
.gallery figure:hover figcaption { opacity: 1; }

.project-nav { display: flex; justify-content: space-between; gap: 20px; padding: 56px 0 88px; }
.project-nav a { display: flex; flex-direction: column; gap: 10px; max-width: 46%; }
.project-nav a:last-child { text-align: right; align-items: flex-end; }
.project-nav small { font-size: 10px; letter-spacing: .22em; color: var(--faint); }
.project-nav strong { font-size: clamp(16px, 2vw, 24px); font-weight: 700; border-bottom: 1px solid transparent; }
.project-nav a:hover strong { border-color: var(--white); }

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.96);
  display: none; align-items: center; justify-content: center; padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; object-fit: contain; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; background: none; border: 1px solid var(--line); color: #fff;
  width: 46px; height: 46px; font-size: 20px; cursor: pointer; transition: background .25s;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,.14); }
.lightbox__close { top: 24px; right: 26px; }
.lightbox__prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 26px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .2em; color: var(--dim); }

/* ----------------------- 关于页 ----------------------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.about-intro p { color: var(--dim); line-height: 2.1; margin-bottom: 22px; }
.about-intro strong { color: var(--white); font-weight: 700; }
.stat-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat-list > div { background: var(--black); padding: 30px 26px; }
.stat-list dt { font-size: 10px; letter-spacing: .22em; color: var(--faint); text-transform: uppercase; }
.stat-list dd { font-size: 19px; font-weight: 700; margin-top: 14px; }
.team-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.team-list > div { background: var(--black); padding: 30px 26px; }
.team-list small { font-size: 10px; letter-spacing: .2em; color: var(--faint); }

/* 人名：可悬浮 / 可聚焦 / 可点击 */
.person {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  width: 100%; margin: 14px 0 0; padding: 0 0 6px;
  background: none; border: 0; border-bottom: 1px solid transparent;
  color: var(--white); text-align: left; cursor: pointer;
  transition: border-color .35s var(--ease);
}
.person strong { font-size: 22px; font-weight: 700; line-height: 1.4; transition: opacity .3s; }
.person__plus {
  font-style: normal; font-size: 13px; font-weight: 400; color: var(--faint);
  transition: transform .45s var(--ease), color .3s;
}
.person:hover, .person:focus-visible, .person.is-on { border-bottom-color: var(--white); outline: none; }
.person:hover .person__plus, .person:focus-visible .person__plus, .person.is-on .person__plus {
  transform: rotate(45deg); color: var(--white);
}
.person:focus-visible { outline: 1px solid var(--white); outline-offset: 6px; }

/* 人物悬浮卡：头像 + 简介，跟随鼠标 */
.person-pop {
  position: fixed; z-index: 120; left: 0; top: 0; width: 420px;
  display: grid; grid-template-columns: 116px 1fr; gap: 22px;
  padding: 22px;
  background: #0a0a0a; border: 1px solid var(--white);
  box-shadow: 0 24px 60px rgba(0,0,0,.85);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .28s var(--ease), transform .38s var(--ease), visibility .28s;
}
.person-pop.show { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.person-pop__media { width: 116px; height: 146px; overflow: hidden; background: #171717; border: 1px solid var(--line); }
.person-pop__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(1); transition: filter .4s; }
.person-pop.show .person-pop__media img { filter: none; }
.person-pop__body { min-width: 0; }
.person-pop__idx { font-size: 10px; letter-spacing: .22em; color: var(--faint); }
.person-pop__name { font-size: 24px; font-weight: 700; margin-top: 8px; line-height: 1.2; }
.person-pop__role { font-size: 11px; letter-spacing: .1em; color: var(--dim); margin-top: 6px; }
.person-pop__label {
  font-size: 10px; letter-spacing: .2em; color: var(--faint);
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
}
.person-pop__bio { font-size: 12.5px; line-height: 1.9; color: var(--dim); margin-top: 8px; }
.index-list { columns: 2; column-gap: 72px; padding: 0; margin: 0; }
.index-list li { list-style: none; border-bottom: 1px solid var(--line-soft); break-inside: avoid; }
.index-list li a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: 14px; color: var(--dim); transition: color .25s; }
.index-list li a:hover { color: var(--white); }
.index-list li a span { flex: 1; }
.index-list li em { font-style: normal; font-size: 11px; color: var(--faint); white-space: nowrap; }
.index-list li a:hover em { color: var(--white); }

/* ----------------------- 联系页 ----------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.contact-info dl { border-top: 1px solid var(--line); padding: 22px 0; }
.contact-info dl:last-child { border-bottom: 1px solid var(--line); }
.contact-info dt { font-size: 10px; letter-spacing: .22em; color: var(--faint); text-transform: uppercase; }
.contact-info dd { font-size: 21px; font-weight: 700; margin-top: 10px; }
.contact-info dd a { border-bottom: 1px solid var(--line); }
.contact-info dd a:hover { border-color: var(--white); }
.field { margin-bottom: 30px; }
.field label { display: block; font-size: 11px; letter-spacing: .18em; color: var(--faint); margin-bottom: 12px; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 12px 0; color: #fff; font-size: 16px; border-radius: 0;
  transition: border-color .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.28); }
.btn {
  display: inline-flex; align-items: center; gap: 14px; cursor: pointer;
  background: #fff; color: #000; border: 1px solid #fff;
  padding: 15px 32px; font-size: 13px; letter-spacing: .16em; font-weight: 700;
  transition: background .3s, color .3s;
}
.btn:hover { background: transparent; color: #fff; }
.form-note { font-size: 12px; color: var(--faint); margin-top: 18px; }
.form-ok { display: none; border: 1px solid var(--white); padding: 16px 20px; margin-top: 24px; font-size: 14px; }
.form-ok.show { display: block; }

/* ----------------------- 页脚 ----------------------- */
.footer { padding: 64px var(--gut) 40px; }
.footer__inner { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer__brand { font-size: 26px; font-weight: 700; letter-spacing: .08em; }
.footer__brand + p { color: var(--faint); font-size: 13px; margin-top: 16px; max-width: 34ch; line-height: 1.9; }
.footer h4 { font-size: 10px; letter-spacing: .24em; color: var(--faint); margin-bottom: 20px; text-transform: uppercase; }
.footer a { display: block; font-size: 14px; color: var(--dim); margin-bottom: 12px; }
.footer a:hover { color: var(--white); }
/* 隶属机构全称保持一行 */
.nowrap { white-space: nowrap; }
/* 页脚：浙江省建筑设计研究院有限公司官网外链 */
.footer .footer__ext {
  display: inline-block; margin: 18px 0 0; font-size: 12px; letter-spacing: .08em;
  color: var(--dim); border-bottom: 1px solid var(--line);
  transition: color .25s, border-color .25s;
}
.footer .footer__ext:hover { color: var(--white); border-color: var(--white); }
.footer .footer__ext i { font-style: normal; margin-left: 6px; }
.footer__bottom {
  max-width: 1440px; margin: 56px auto 0; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .1em; color: var(--faint);
}

/* 进场动画 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ----------------------- 响应式 ----------------------- */
@media (max-width: 1000px) {
  :root { --gut: 26px; }
  .home-foot, .about-intro, .project-text, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-facts { grid-template-columns: repeat(2, 1fr); }
  .team-list { grid-template-columns: repeat(2, 1fr); }
  .bar__panel { padding: 26px 24px 28px; }
  .index-list { columns: 1; }
}
@media (max-width: 760px) {
  :root { --nav-h: 62px; }
  .project-facts, .stat-list { grid-template-columns: 1fr; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; background: #000;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 26px 24px;
    border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .4s var(--ease);
  }
  .nav__menu.open { transform: none; }
  .nav__menu a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
  .nav__toggle { display: block; border: 1px solid rgba(255,255,255,.5); padding: 10px; }
  .nav__toggle span { height: 2px; margin: 5px 0; }
  .nav__brand span { display: none; }
  html[data-lang="en"] .nav__brand .nav__affiliate { display: none; }

  /* 竖条在移动端改为纵向手风琴：收起 62px，展开由面板内容撑开 */
  .bars { flex-direction: column; height: auto; min-height: calc(100vh - var(--nav-h)); }
  .bar { flex: 0 0 auto; min-height: 62px; border-right: 0; border-bottom: 1px solid var(--line); }
  .bars.has-active .bar, .bars.has-active .bar.is-active { flex-grow: 0; min-width: 0; }
  .bar__vlabel, .bar__ven { writing-mode: horizontal-tb; max-height: none; }
  .bar__idle {
    position: relative; inset: auto; flex-direction: row; align-items: center;
    padding: 14px 22px; gap: 16px; min-height: 62px;
  }
  .bar.is-active .bar__idle { display: none; }
  .bar__idle-bottom { align-items: center; flex: 1; min-width: 0; justify-content: flex-end; }
  .bar__num { font-size: 26px; flex: none; }
  .bar__vlabel {
    display: block; font-size: 13px; letter-spacing: .06em; text-align: right;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; min-width: 0;
  }
  .bar__ven, .bar__tick, .bar__index { display: none; }
  .bar__panel { position: relative; inset: auto; display: none; padding: 18px 22px 24px; }
  .bar.is-active .bar__panel { display: flex; min-height: 300px; }
  .bar__logo { width: 46px; height: 46px; font-size: 16px; }
  .bar__title { font-size: 24px; }
  .bars-hint { display: none; }

  .work-grid, .gallery { grid-template-columns: 1fr; }
  .gallery figure.wide { grid-column: auto; }
  .filter-btn { padding: 10px 12px; font-size: 11px; gap: 6px; }
  .work-filter { width: 100%; }

  /* 触屏：人物卡固定为底部弹层，避免跟随坐标溢出屏幕 */
  .person-pop {
    left: 14px !important; right: 14px; top: auto !important; bottom: 14px;
    width: auto; max-width: none; grid-template-columns: 88px 1fr; gap: 16px; padding: 18px;
  }
  .person-pop__media { width: 88px; height: 112px; }
  .person-pop__name { font-size: 20px; }
  .person-pop__bio { font-size: 12px; line-height: 1.75; }
  .person { border-bottom-color: var(--line-soft); }
  .section { padding: 68px 0; }
  .page-head { padding: calc(var(--nav-h) + 56px) 0 52px; }
  .project-hero { padding-top: calc(var(--nav-h) + 48px); }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .nowrap { font-size: 11px; }
  .lightbox__prev { left: 10px; } .lightbox__next { right: 10px; }
  .lightbox__close { right: 12px; top: 12px; }
}

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

/* ============================================================
   中英文切换 · 方案 LOGO · 设计流程
   ============================================================ */

/* 英文模式：替换完成前先隐藏，避免中文闪现；i18n.js 完成后加 .i18n-ready */
html[data-lang="en"]:not(.i18n-ready) body { visibility: hidden; }

/* 导航左侧的 CN / EN 切换按钮 */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  flex: none; background: none; border: 1px solid var(--line);
  color: var(--dim); font-family: var(--font); font-size: 11px;
  letter-spacing: .14em; line-height: 1; padding: 9px 13px;
  cursor: pointer; white-space: nowrap;
  transition: color .25s, border-color .25s, background .25s;
}
.lang-switch:hover, .lang-switch:focus-visible { color: var(--white); border-color: var(--white); outline: none; }
.lang-switch i { font-style: normal; opacity: .35; }
.lang-switch span { opacity: .4; transition: opacity .25s, color .25s; }
html[data-lang="zh"] .lang-switch span[data-l="zh"] { opacity: 1; color: var(--white); }
html[data-lang="en"] .lang-switch span[data-l="en"] { opacity: 1; color: var(--white); }

/* 作品卡片右上角：方案 LOGO */
.work-card__mark {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  width: 84px; height: 58px; display: flex; align-items: center; justify-content: flex-end;
  pointer-events: none;
}
.work-card__media .work-card__mark img,
.work-card:hover .work-card__media .work-card__mark img {
  width: 100%; height: 100%; object-fit: contain; object-position: right center;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .9));
  transform: none; opacity: .95; transition: opacity .3s;
}

/* 作品详情页右上角：方案 LOGO */
.project-hero__topright { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.project-hero__mark {
  width: 190px; height: 104px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; padding: 16px 20px;
}
.project-hero__mark img { width: 100%; height: 100%; object-fit: contain; }

/* 英文排版微调 */
html[data-lang="en"] .nav__brand span { display: none; }  /* 避免 Z+X STUDIO 与译名重复 */
@media (min-width: 761px) {
  html[data-lang="en"] .nav__brand .nav__affiliate { display: inline; }  /* 隶属机构名在英文模式下仍保留 */
}
html[data-lang="en"] .bar__vlabel {
  text-orientation: sideways;   /* 拉丁文字整体旋转，避免逐字母竖排 */
  font-size: 11px; letter-spacing: .04em;
}
html[data-lang="en"] .work-card__title { font-size: 20px; line-height: 1.3; }
html[data-lang="en"] .work-card__theme { font-size: 12px; }
html[data-lang="en"] .project-hero h1 { letter-spacing: -.02em; }
html[data-lang="en"] .page-head h1 { letter-spacing: -.02em; }
html[data-lang="en"] .process-step__body p { line-height: 1.95; }

/* ----------------------- 设计流程 ----------------------- */
.process-nav {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: sticky; top: var(--nav-h); z-index: 30; background: var(--black);
}
.process-nav a {
  padding: 20px 24px; color: var(--dim); font-size: 13px; letter-spacing: .04em;
  border-right: 1px solid var(--line-soft); transition: color .25s, background .25s;
}
.process-nav a:last-child { border-right: 0; }
.process-nav a:hover, .process-nav a.active { color: var(--white); background: #0b0b0b; }
.process-nav a small { display: block; font-size: 10px; letter-spacing: .22em; color: var(--faint); margin-bottom: 9px; }

.process-stage { padding-top: 20px; }
.process-stage__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 88px 0 28px; flex-wrap: wrap;
}
.process-stage__head h2 { font-size: clamp(26px, 3.4vw, 46px); font-weight: 700; }
.process-stage__head span { font-size: 11px; letter-spacing: .2em; color: var(--faint); }

.process-step {
  display: grid; grid-template-columns: 132px 1fr; gap: 44px;
  padding: 58px 0 64px; border-top: 1px solid var(--line-soft);
}
.process-step__num { font-size: clamp(48px, 5.6vw, 84px); font-weight: 700; line-height: .95; }
.process-step__num em { display: block; font-style: normal; font-size: 10px; letter-spacing: .22em; color: var(--faint); margin-top: 16px; }
.process-step__body h3 { font-size: clamp(19px, 2.2vw, 30px); font-weight: 700; line-height: 1.4; margin-bottom: 26px; }
.process-step__body p { font-size: 14px; line-height: 2.15; color: var(--dim); max-width: 74ch; margin-bottom: 14px; }
.process-step__figure { margin-top: 38px; border: 1px solid var(--line-soft); background: #000; overflow: hidden; }
.process-step__figure img { display: block; width: 100%; height: auto; }
.process-step__figure figcaption {
  font-size: 10px; letter-spacing: .18em; color: var(--faint);
  padding: 12px 18px; border-top: 1px solid var(--line-soft);
}
.process-end { padding: 84px 0 20px; border-top: 1px solid var(--line); }
.process-end h3 { font-size: clamp(22px, 2.6vw, 34px); margin-bottom: 26px; }
.process-end ul, .process-end__list { columns: 2; column-gap: 56px; margin: 28px 0 0; padding: 0; list-style: none; }
.process-end li, .process-end__list li { font-size: 13px; line-height: 2.2; color: var(--dim); break-inside: avoid; }
.process-end__list li { position: relative; padding-left: 20px; }
.process-end__list li::before { content: "—"; position: absolute; left: 0; color: var(--faint); }

@media (max-width: 1000px) {
  .nav__menu { gap: 22px; }
  .process-step { grid-template-columns: 92px 1fr; gap: 26px; }
  .process-nav a { padding: 16px 14px; font-size: 12px; }
  .project-hero__mark { width: 150px; height: 86px; }
}
@media (max-width: 760px) {
  .nav__menu { gap: 0; }
  .lang-switch { width: 100%; padding: 12px; margin-bottom: 12px; justify-content: center; border-color: rgba(255,255,255,.5); }
  .process-nav { position: static; grid-template-columns: 1fr; }
  .process-nav a { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .process-step { grid-template-columns: 1fr; gap: 14px; padding: 42px 0 48px; }
  .process-step__num { font-size: 52px; }
  .process-step__num em { display: inline-block; margin: 0 0 0 14px; }
  .process-stage__head { padding: 62px 0 20px; }
  .process-end ul, .process-end__list { columns: 1; }
  .work-card__mark { width: 62px; height: 44px; }
  .project-hero__topright { align-items: flex-start; }
  .project-hero__mark { width: 132px; height: 76px; }
}


/* ---------- 开场页：黑底白字，上下两排居中，停留 1.5s 后淡出 ---------- */
.intro-splash {
  position: fixed; inset: 0; z-index: 300;
  background: #000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 46px;
  pointer-events: none;
  opacity: 1; visibility: visible;
  animation: intro-splash-out 1s ease 1.5s forwards;
}
.intro-splash__group { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.intro-splash__zh {
  margin: 0; color: #fff; font-weight: 400; white-space: nowrap;
  /* 两行中文同字号；微软雅黑 24px + .18em 字距约 396px */
  font-size: clamp(18px, 2.1vw, 24px);
  letter-spacing: .18em; text-indent: .18em;
}
.intro-splash__en {
  margin: 0; color: #fff; font-weight: 400; white-space: nowrap;
  /* 两行英文同字号；13px 下机构英文约 402px，与中文行等长 */
  font-size: clamp(10px, 1.14vw, 13px);
  letter-spacing: .01em;
}
.intro-splash__en--long { letter-spacing: .015em; }
@keyframes intro-splash-out {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-splash { animation-duration: .35s; }
}

/* 关于页：隶属介绍上移到标题文字下方 */
.page-head p.page-head__affiliate { margin-top: 18px; max-width: 76ch; }

/* 团队悬浮卡：除主创外只显示头像，不显示文字介绍 */
.person-pop__label:empty, .person-pop__bio:empty { display: none; }
/* 关于页首屏标语：中文一行显示不换行；英文长句与小屏仍允许换行 */
.page-head p.page-head__motto { max-width: none; white-space: nowrap; }
html[data-lang="en"] .page-head p.page-head__motto { max-width: 76ch; white-space: normal; }
@media (max-width: 760px) {
  .page-head p.page-head__motto { white-space: normal; }
}

/* 方案标注：与所在标题同字号；首页竖条沿用竖排文字，名称在上、标注在下 */
.zx-tag { font-size: inherit; font-weight: inherit; }
.bar__vtag { padding-inline-start: 10px; }
