/* ============================================================
   其里空间设计 · QILI SPACE DESIGN
   风格：编辑式排版 / 克制的色彩 / 细腻的渐入渐出
   ============================================================ */

/* ---------- 基础 ---------- */
:root {
  --ink: #202522;
  --muted: #727974;
  --paper: #f3f1eb;
  --line: #d4d3cb;
  --accent: #b65f42;
  --accent-soft: #d8a18a;
  --dark: #26302c;
  --dark-2: #28312e;
  --cream: #ddd9cf;
  --nav-h: 84px;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: rgba(182, 95, 66, .22); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
section[id], footer { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ---------- 排版工具 ---------- */
.wrap { max-width: 1160px; margin: auto; padding-left: 32px; padding-right: 32px; }
.eyebrow, .sectionlabel {
  font: 11px/1.6 'DM Mono', ui-monospace, Consolas, monospace;
  letter-spacing: .16em;
  color: var(--accent);
  margin: 0 0 22px;
}

/* ---------- 渐入渐出（仅在 JS 启用时生效，保证无 JS 可见性） ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity .9s ease,
    transform .9s var(--ease-soft);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.5vw;
  z-index: 50;
  color: #fff;
  transition: background-color .45s ease, color .45s ease, box-shadow .45s ease, border-color .45s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(243, 241, 235, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom-color: rgba(32, 37, 34, .08);
  box-shadow: 0 1px 0 rgba(32, 37, 34, .03);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 15px; letter-spacing: .1em; position: relative; z-index: 2; }
.brand img {
  width: 30px; height: 30px; object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter .45s ease;
}
.nav.scrolled .brand img { filter: none; }
.navlinks { display: flex; gap: 36px; font: 11px 'DM Mono', ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.navlinks a { position: relative; opacity: .82; padding: 6px 0; transition: opacity .25s ease; }
.navlinks a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.navlinks a:hover { opacity: 1; }
.navlinks a:hover::after { transform: scaleX(1); }

/* 汉堡按钮 */
.menubtn {
  display: none;
  position: relative;
  z-index: 2;
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  color: inherit;
}
.menubtn span {
  position: absolute; left: 9px; right: 9px;
  height: 1.5px;
  background: currentColor;
  transition: transform .4s var(--ease-out), opacity .3s ease;
}
.menubtn span:nth-child(1) { top: 15px; }
.menubtn span:nth-child(2) { top: 23px; }
body.menu-open .menubtn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .menubtn span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 720px;
  height: 100vh;
  background: var(--dark-2);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.heroimage {
  position: absolute; inset: -2%;
  background:
    linear-gradient(90deg, rgba(18, 25, 23, .78) 0%, rgba(18, 25, 23, .3) 52%, rgba(18, 25, 23, .18) 100%),
    url('/images/hero.webp') center/cover no-repeat;
  filter: saturate(.75);
}
.js .heroimage { animation: heroZoom 3s var(--ease-soft) both; }
@keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1); } }
.herocopy { position: relative; margin-left: 13vw; margin-top: 45px; z-index: 1; }
.hero .eyebrow { color: var(--accent-soft); }
.hero h1 {
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.08em;
  margin: 0 0 28px;
}
.hero h1 em, .contact h2 em { font-style: normal; color: #dfaa95; }
.lead { font-size: 15px; line-height: 2.1; color: #e2e4de; margin-bottom: 42px; }

/* 首屏文字逐层浮现 */
.js .herocopy > * { animation: riseIn 1s var(--ease-out) both; }
.js .herocopy > :nth-child(1) { animation-delay: .25s; }
.js .herocopy > :nth-child(2) { animation-delay: .4s; }
.js .herocopy > :nth-child(3) { animation-delay: .58s; }
.js .herocopy > :nth-child(4) { animation-delay: .76s; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.circlelink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 11px 'DM Mono', ui-monospace, Consolas, monospace;
  letter-spacing: .1em;
}
.circleicon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  transition: transform .5s var(--ease-out), background-color .4s ease, color .4s ease;
}
.circlelink:hover .circleicon {
  transform: rotate(45deg);
  background: #fff;
  color: var(--dark);
}
.vertical {
  position: absolute;
  right: 4.5vw; bottom: 62px;
  writing-mode: vertical-rl;
  font: 10px 'DM Mono', ui-monospace, Consolas, monospace;
  letter-spacing: .2em;
  opacity: .65;
}
.js .vertical { animation: riseIn 1.2s var(--ease-out) .9s both; }

.scrolldown {
  position: absolute;
  left: 50%; bottom: 26px;
  width: 24px; height: 38px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 14px;
  z-index: 1;
}
.scrolldown span {
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #fff;
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- 关于 ---------- */
.intro { padding-top: 150px; padding-bottom: 155px; display: grid; grid-template-columns: 1fr 3fr; gap: 60px; }
.introbody { display: grid; grid-template-columns: 1.05fr 1fr; gap: 100px; }
.intro h2, .sectionhead h2, .servicebody h2, .faq h2 {
  font-size: clamp(34px, 4.5vw, 63px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -.08em;
  margin: 0;
}
.intro h2 span, .servicebody i, .faq h2 i { font-style: normal; color: var(--accent); }
.introbody > div { padding-top: 10px; }
.introbody p { font-size: 15px; line-height: 2.05; color: #5f6761; margin: 0 0 20px; }
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  padding-bottom: 8px;
  margin-top: 18px;
  transition: gap .3s ease, color .3s ease, border-color .3s ease;
}
.textlink svg { transition: transform .3s ease; }
.textlink:hover { color: var(--accent); border-color: var(--accent); gap: 11px; }
.textlink:hover svg { transform: translate(2px, -2px); }

/* ---------- 项目 ---------- */
.projects { padding-bottom: 160px; }
.sectionhead { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 62px; }
.sectionhead h2 { font-size: 45px; }
.sectionhead h2 i { font-style: normal; color: var(--accent); }
.projectgrid { display: grid; grid-template-columns: 1.2fr .9fr 1.1fr; gap: 20px; align-items: start; }
.project:nth-child(2) { margin-top: 100px; }
.project:nth-child(3) { margin-top: 30px; }

.projectimage {
  position: relative;
  overflow: hidden;
  background: #ddd8cd;
  cursor: zoom-in;
  transition: box-shadow .6s ease, transform .6s ease;
}
.project:hover .projectimage { box-shadow: 0 22px 44px rgba(31, 38, 34, .14); }
.projectimage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .9s var(--ease-soft);
}
/* 图片加载后淡入 */
.js .projectimage img {
  opacity: 0;
  transform: scale(1.02);
}
.js .projectimage img.is-loaded { opacity: 1; transform: scale(1); }
.project:hover .projectimage img.is-loaded { transform: scale(1.045); }
.projectimage::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(20, 25, 22, 0);
  transition: background-color .5s ease;
  pointer-events: none;
}
.project:hover .projectimage::after { background: rgba(20, 25, 22, .07); }
.pnum {
  position: absolute;
  left: 17px; top: 15px;
  color: #fff;
  font: 11px 'DM Mono', ui-monospace, Consolas, monospace;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
  z-index: 1;
}
.projectimage small {
  position: absolute;
  right: 15px; bottom: 14px;
  color: #fff;
  font: 10px 'DM Mono', ui-monospace, Consolas, monospace;
  letter-spacing: .05em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .45s ease, transform .45s var(--ease-out);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
  z-index: 1;
}
.project:hover .projectimage small, .project:focus-within .projectimage small { opacity: 1; transform: none; }

.projectmeta {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-top: 17px;
  border-top: 1px solid var(--ink);
  margin-top: 17px;
}
.projectmeta h3 { font-size: 19px; font-weight: 400; margin: 0 0 6px; }
.projectmeta p, .projecttext { font: 11px 'DM Mono', ui-monospace, Consolas, monospace; color: var(--muted); margin: 0; }
.projectmeta b { display: flex; transition: transform .4s var(--ease-out); }
.project:hover .projectmeta b { transform: translate(3px, -3px); }
.projecttext { font-family: 'Noto Serif SC', 'Songti SC', serif; font-size: 13px; line-height: 1.8; margin-top: 15px; }

.extra { display: none; }
.projects.show-all .extra { display: block; }

.moreworks { text-align: center; margin-top: 60px; padding-bottom: 110px; }
.moreworks button {
  background: none;
  border: 1px solid var(--ink);
  padding: 14px 24px;
  font: 11px 'DM Mono', ui-monospace, Consolas, monospace;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.moreworks button:hover { background: var(--ink); color: var(--paper); }
.moreworks span { font-size: 18px; margin-left: 10px; display: inline-block; transition: transform .4s ease; }
.moreworks button:hover span { transform: rotate(90deg); }

/* ---------- 品牌陈述 ---------- */
.statement { background: var(--dark); color: #f5f1e8; padding: 145px 0; }
.statement h2 {
  font-size: clamp(40px, 6vw, 78px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.08em;
  margin: 0;
}
.statement h2 span { color: var(--accent-soft); }

/* ---------- 服务 ---------- */
.services { padding-top: 150px; padding-bottom: 160px; display: grid; grid-template-columns: 1fr 3fr; gap: 60px; }
.servicebody { display: grid; grid-template-columns: 1fr 1.1fr; gap: 90px; }
.servicegrid { border-top: 1px solid var(--line); }
.servicegrid > div { padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding-left .45s var(--ease-out), background-color .45s ease; }
.servicegrid > div:hover { padding-left: 14px; background: linear-gradient(90deg, rgba(182, 95, 66, .05), transparent); }
.servicegrid b { font: 11px 'DM Mono', ui-monospace, Consolas, monospace; color: var(--accent); }
.servicegrid h3 { font-size: 20px; font-weight: 400; margin: 10px 0; }
.servicegrid p { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 0; }

/* ---------- 设计收费 ---------- */
.fees { padding-top: 150px; padding-bottom: 160px; }
.feeshead { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.feeshead h2 { font-size: clamp(34px, 4.5vw, 63px); line-height: 1.35; font-weight: 400; letter-spacing: -.08em; margin: 0; }
.feeshead h2 i { font-style: normal; color: var(--accent); }
.feeshead p { font-size: 13px; line-height: 2; color: var(--muted); margin: 0 0 6px; text-align: right; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode { border: 1px solid var(--line); background: #faf9f5; padding: 26px 26px 22px; transition: box-shadow .5s ease, transform .5s var(--ease-soft); }
.mode:hover { box-shadow: 0 14px 30px rgba(31, 38, 34, .08); transform: translateY(-3px); }
.mode b { font: 11px 'DM Mono', ui-monospace, Consolas, monospace; color: var(--accent); letter-spacing: .1em; }
.mode h3 { font-size: 21px; font-weight: 400; margin: 10px 0 8px; }
.mode p { font-size: 12px; line-height: 1.9; color: var(--muted); margin: 0; }
.scopes { display: flex; gap: 14px; margin: 30px 0 8px; flex-wrap: wrap; }
.scopes span { font: 11px 'DM Mono', ui-monospace, Consolas, monospace; letter-spacing: .06em; border: 1px solid var(--line); padding: 10px 16px; color: #58605a; background: #faf9f5; }
.priceboard { margin-top: 26px; border-top: 2px solid var(--ink); }
.priceitem { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding: 24px 4px; }
.priceitem .plabel { font-size: 17px; }
.priceitem small { display: block; font: 10px 'DM Mono', ui-monospace, Consolas, monospace; color: var(--muted); margin-top: 6px; letter-spacing: .05em; }
.priceitem .num { font: 500 clamp(30px, 4.5vw, 48px) 'DM Mono', ui-monospace, Consolas, monospace; color: var(--accent); letter-spacing: -.01em; white-space: nowrap; }
.priceitem .num small { display: inline; font-size: 14px; color: var(--accent); margin: 0; opacity: .8; }
.feesnote { font: 11px 'DM Mono', ui-monospace, Consolas, monospace; color: var(--muted); letter-spacing: .04em; margin: 18px 2px 0; }

/* 服务流程（可展开卡片） */
.process { margin-top: 90px; }
.processtitle { font-size: clamp(26px, 3.2vw, 40px); font-weight: 400; letter-spacing: -.06em; margin: 0 0 40px; }
.processtitle i { font-style: normal; color: var(--accent); }
.steps { display: grid; gap: 14px; }
.stepcard { border: 1px solid var(--line); background: #faf9f5; transition: box-shadow .5s ease; }
.stepcard:hover { box-shadow: 0 12px 26px rgba(31, 38, 34, .07); }
.stepcard summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  flex-wrap: wrap;
}
.stepcard summary::-webkit-details-marker { display: none; }
.stepcard summary b { font: 500 14px 'DM Mono', ui-monospace, Consolas, monospace; color: var(--accent); }
.stepcard .steptitle { font-size: 17px; }
.stepcard summary::after {
  content: '+';
  font: 18px 'DM Mono', ui-monospace, Consolas, monospace;
  color: var(--accent);
  margin-left: 16px;
  transition: transform .35s var(--ease-out);
}
.stepcard[open] summary::after { transform: rotate(45deg); }
.stepcard[open] summary { border-bottom: 1px solid var(--line); }
.stepcard .stepbody { padding: 8px 22px 24px; }
.stepcard .stepbody > p { font-size: 13px; line-height: 2; color: #58605a; margin: 12px 0 8px; }
.steplist { margin: 10px 0 0; padding: 0; list-style: none; }
.steplist li { position: relative; font-size: 12.5px; line-height: 2; color: var(--muted); padding-left: 20px; }
.steplist li::before { content: ''; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.stepnote { font: 11px 'DM Mono', ui-monospace, Consolas, monospace; color: var(--accent); background: rgba(182, 95, 66, .07); padding: 10px 14px; margin: 12px 0 0; }
.cyclenote { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-top: 30px; padding: 18px 22px; border: 1px solid var(--line); background: #faf9f5; }
.cyclenote b { font: 11px 'DM Mono', ui-monospace, Consolas, monospace; color: var(--accent); letter-spacing: .1em; }
.cyclenote span { font-size: 13px; position: relative; padding-left: 18px; }
.cyclenote span::before { content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 1px; background: var(--muted); }

/* ---------- 联系 ---------- */
.contact { background: var(--cream); padding: 130px 0 120px; }
.contactinner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; }
.contact h2 { font-size: clamp(45px, 6vw, 76px); font-weight: 400; line-height: 1.25; letter-spacing: -.09em; margin: 0; }
.contactinfo { padding-top: 38px; color: #58605a; font-size: 14px; line-height: 2; }
.contactinfo a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  border-bottom: 1px solid #9ba099;
  margin: 15px 0;
  font: 12px 'DM Mono', ui-monospace, Consolas, monospace;
  transition: color .3s ease, border-color .3s ease;
}
.contactinfo a:hover { color: var(--accent); border-color: var(--accent); }
.contactinfo .small { font: 10px 'DM Mono', ui-monospace, Consolas, monospace; margin-top: 22px; color: #7c817a; }
.contactlinks { margin-top: 26px; }
.wechatbox { display: flex; align-items: center; gap: 15px; margin-top: 28px; font: 10px/1.9 'DM Mono', ui-monospace, Consolas, monospace; color: #7c817a; }
.wechatbox img { width: 105px; height: 105px; object-fit: cover; border: 7px solid #f1eee6; background: #f1eee6; }
.wechatbox strong { color: var(--ink); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { padding: 150px 32px; border-top: 1px solid var(--line); }
.faqbody { display: grid; grid-template-columns: 1fr 1.1fr; gap: 90px; }
.faq h2 { font-size: clamp(38px, 4.5vw, 62px); }
.questions { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); padding: 22px 0; }
.qa summary {
  cursor: pointer;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+';
  font: 18px 'DM Mono', ui-monospace, Consolas, monospace;
  color: var(--accent);
  transition: transform .35s var(--ease-out);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { font-size: 13px; line-height: 1.9; color: var(--muted); max-width: 550px; margin: 14px 0 4px; animation: riseIn .5s var(--ease-out); }

/* ---------- 表单 ---------- */
.contactform { padding-bottom: 150px; display: grid; grid-template-columns: 1fr 3fr; gap: 60px; }
.contactform form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; align-content: start; }
.field { position: relative; display: flex; flex-direction: column; gap: 8px; }
.field.wide { grid-column: 1 / -1; }
.field label { font: 10px 'DM Mono', ui-monospace, Consolas, monospace; letter-spacing: .12em; color: var(--muted); }
.field input, .field textarea {
  font: 14px 'Noto Serif SC', 'Songti SC', serif;
  color: var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center bottom / 0 1px no-repeat,
    linear-gradient(var(--line), var(--line)) center bottom / 100% 1px no-repeat,
    transparent;
  border: 0;
  padding: 10px 2px 12px;
  outline: none;
  transition: background-size .45s var(--ease-out);
}
.field input:focus, .field textarea:focus { background-size: 100% 1px, 100% 1px; }
.field input::placeholder, .field textarea::placeholder { color: #a8a89f; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.8; }
.field input:invalid:not(:placeholder-shown) { }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contactform button[type="submit"] {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 17px 32px;
  font: 11px 'DM Mono', ui-monospace, Consolas, monospace;
  letter-spacing: .08em;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color .35s ease, transform .35s var(--ease-out), opacity .3s ease;
}
.contactform button[type="submit"]:hover:not(:disabled) { background: #3a423d; transform: translateY(-2px); }
.contactform button[type="submit"]:disabled { opacity: .72; cursor: wait; }
.contactform button.loading::before {
  content: '';
  width: 12px; height: 12px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.formnote {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .5s ease, transform .5s var(--ease-out);
}
.formnote.ok, .formnote.err { opacity: 1; transform: none; }
.formnote.ok { color: #2f6b4f; }
.formnote.err { color: #a3412c; }

/* ---------- 图册 Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.lightbox.open { visibility: visible; opacity: 1; transition: opacity .45s ease; }
.lightboxscrim {
  position: absolute; inset: 0;
  background: rgba(15, 19, 17, .93);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.lightboxstage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
  max-width: 86vw;
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: opacity .5s ease, transform .5s var(--ease-out);
}
.lightbox.open .lightboxstage { opacity: 1; transform: none; }
.lightboxstage img {
  max-width: 86vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transition: opacity .3s ease;
}
.lightboxstage.loading img { opacity: 0; }
.lightboxstage figcaption {
  color: rgba(255, 255, 255, .78);
  font: 11px 'DM Mono', ui-monospace, Consolas, monospace;
  letter-spacing: .08em;
}
.lightbox button {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color .3s ease, transform .3s ease, opacity .3s ease;
}
.lightbox button:hover { background: rgba(255, 255, 255, .18); transform: scale(1.06); }
.lightboxclose { right: 26px; top: 22px; width: 46px; height: 46px; }
.lightboxprev, .lightboxnext { top: 50%; width: 54px; height: 54px; transform: translateY(-50%); }
.lightboxprev:hover, .lightboxnext:hover { transform: translateY(-50%) scale(1.06); }
.lightboxprev { left: 26px; }
.lightboxnext { right: 26px; }
.lightbox.single .lightboxprev, .lightbox.single .lightboxnext { display: none; }

body.lightbox-open { overflow: hidden; }

/* ---------- 页脚 ---------- */
footer { background: var(--dark); color: #afb5ad; padding: 25px 0; }
.foot { display: flex; justify-content: space-between; font: 10px 'DM Mono', ui-monospace, Consolas, monospace; letter-spacing: .05em; }
.foot a { color: #e2a993; transition: color .3s ease; }
.foot a:hover { color: #f3c5b2; }

/* ---------- 截图测试模式（?screenshot） ---------- */
.screenshot .reveal,
.screenshot .herocopy > *,
.screenshot .vertical,
.screenshot .projectimage img {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .projectgrid { grid-template-columns: 1fr 1fr; }
  .project:nth-child(2) { margin-top: 0; }
  .project:nth-child(3) { margin-top: 0; }
  .project:nth-child(even) { margin-top: 56px; }
  .intro, .services, .contactform { grid-template-columns: 1fr; gap: 40px; }
  .introbody, .servicebody, .faqbody { grid-template-columns: 1fr 1.4fr; gap: 48px; }
}

@media (max-width: 760px) {
  :root { --nav-h: 70px; }
  .nav { padding: 0 22px; }
  .navlinks {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: var(--dark-2);
    padding: 0 34px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .45s ease, visibility 0s linear .45s;
  }
  .navlinks.open { visibility: visible; opacity: 1; transition: opacity .45s ease; }
  .navlinks a {
    font-size: 15px;
    letter-spacing: .12em;
    padding: 14px 0;
    color: #fff;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s var(--ease-out);
  }
  .navlinks.open a { opacity: .9; transform: none; }
  .navlinks.open a:nth-child(1) { transition-delay: .08s; }
  .navlinks.open a:nth-child(2) { transition-delay: .14s; }
  .navlinks.open a:nth-child(3) { transition-delay: .2s; }
  .navlinks.open a:nth-child(4) { transition-delay: .26s; }
  .menubtn { display: block; }
  body.menu-open { overflow: hidden; }

  .hero { min-height: 660px; }
  .herocopy { margin: 0 25px; margin-top: 30px; }
  .hero h1 { font-size: 56px; }
  .vertical { right: 22px; bottom: 84px; }
  .wrap { padding-left: 22px; padding-right: 22px; }

  .intro, .services { display: block; padding-top: 95px; padding-bottom: 100px; }
  .sectionlabel { margin-bottom: 35px; }
  .introbody, .servicebody, .contactinner, .faqbody { display: block; }
  .introbody > div { margin-top: 45px; }

  .projects { padding-bottom: 105px; }
  .sectionhead { display: block; margin-bottom: 40px; }
  .sectionhead h2 { font-size: 38px; }
  .projectgrid { display: block; }
  .project, .project:nth-child(even) { margin: 0 0 65px; }
  .moreworks { margin-top: 30px; padding-bottom: 90px; }

  .faq { padding: 95px 22px; }
  .faq h2 { margin-bottom: 50px; }
  .fees { padding-top: 95px; padding-bottom: 110px; }
  .feeshead { display: block; margin-bottom: 40px; }
  .feeshead p { text-align: left; margin-top: 18px; }
  .modes { grid-template-columns: 1fr; }
  .priceitem { flex-direction: column; align-items: flex-start; gap: 10px; }
  .priceitem .num { font-size: 34px; }
  .steps > li { grid-template-columns: 1fr; gap: 8px; }
  .cyclenote { gap: 14px; }
  .stepcard summary { gap: 12px; }
  .contactform { display: block; padding-bottom: 100px; }
  .contactform form { margin-top: 35px; grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .statement { padding: 95px 0; }
  .statement h2 { font-size: 43px; }
  .servicebody h2 { margin-bottom: 55px; }
  .contact { padding: 95px 0; }
  .contactinfo { padding-top: 50px; }

  .lightboxprev { left: 10px; }
  .lightboxnext { right: 10px; }
  .lightboxclose { right: 12px; top: 12px; }
  .lightboxstage img { max-width: 92vw; max-height: 72vh; }

  .foot { padding-left: 22px; padding-right: 22px; gap: 15px; flex-wrap: wrap; }
  .foot span:nth-child(2) { display: none; }
}
