/* ============================================================
   小黄花摄影工作室 · 作品站 样式
   ------------------------------------------------------------
   设备适配原则（项目铁律）：
     · 手机端（默认样式）：单列、逐屏浏览、字体略大、点击区 ≥44px
     · 电脑端（min-width:900px）：多列网格、悬停动效、大留白
   ------------------------------------------------------------ */

:root {
  --ink: #1a1815;
  --ink-2: #4a453e;
  --ink-3: #8a837a;
  --cream: #faf6ef;
  --paper: #fffdfa;
  --amber: #d99a3a;
  --amber-deep: #b0741c;
  --line: rgba(26, 24, 21, 0.10);
  --line-soft: rgba(26, 24, 21, 0.06);
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --wrap: 1180px;
  --nav-h: 56px;
  /* 安全区（iPhone 刘海/底部横条），微信内置浏览器支持 */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: 0.02em; }

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

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

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

/* ---------------- 导航 ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: calc(var(--nav-h) + var(--sat));
  padding-top: var(--sat);
  display: flex;
  align-items: center;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s;
  /* 首屏顶部透明压在图片上，所以文字先给白色 */
  color: #fff;
}

.nav.is-solid {
  background: rgba(250, 246, 239, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
  color: var(--ink);
}

.nav__inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav__brand img { width: 24px; height: 24px; border-radius: 50%; }

.nav__menu {
  display: none; /* 手机端收进抽屉 */
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.nav__menu a { opacity: 0.86; transition: opacity 0.2s; }
.nav__menu a:hover { opacity: 1; }

.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* 小黄花盯单入口：指向订单系统 dingdan 子域 */
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-login:hover { opacity: 1; transform: translateY(-1px); }

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border-radius: 10px;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* 手机端抽屉 */
.drawer {
  position: fixed;
  inset: calc(var(--nav-h) + var(--sat)) 0 auto 0;
  z-index: 89;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 8px 20px 20px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s, transform 0.28s, visibility 0.28s;
}
.drawer.is-open { opacity: 1; transform: none; visibility: visible; }
.drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
}
.drawer a:last-child { border-bottom: 0; }
.drawer a span { color: var(--ink-3); font-size: 13px; }

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + var(--sat) + 24px) 0 64px;
  overflow: hidden;
  background: #2b2620;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--hero-bg, radial-gradient(120% 90% at 70% 0%, #6b5a44 0%, #2b2620 62%));
  transform: scale(1.04);
  animation: heroIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }

/* 底部压暗，保证文字可读 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 15, 12, 0.78) 0%, rgba(18, 15, 12, 0.28) 42%, rgba(18, 15, 12, 0.42) 100%);
  pointer-events: none;
}

@keyframes heroIn {
  from { opacity: 0; transform: scale(1.1); }
  to { opacity: 1; transform: scale(1.04); }
}

.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero__mark {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 14px;
}

.hero__title {
  font-size: clamp(34px, 10vw, 74px);
  line-height: 1.12;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.hero__title em {
  font-style: normal;
  color: var(--amber);
}

.hero__sub {
  margin: 18px 0 0;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.06em;
  transition: transform 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--amber); color: #241c10; font-weight: 600; }
.btn--primary:hover { background: #e6a947; }

.btn--ghost { border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn--line { border: 1px solid var(--line); color: var(--ink-2); }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }

.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: #322d26; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: calc(18px + var(--sab));
  z-index: 2;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.55;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 64px 0; }
.section--tight { padding: 44px 0; }
.section--paper { background: var(--paper); }

.section__head { margin-bottom: 30px; }
.section__title {
  font-size: clamp(24px, 6.5vw, 36px);
  line-height: 1.3;
  margin-top: 10px;
}
.section__desc {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.9;
  max-width: 34em;
}

.section__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--amber-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ---------------- 作品网格 ---------------- */
.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #e7e0d6;
  /* 缺图时的占位渐变，由 --tone-a/--tone-b 控制 */
  background-image: linear-gradient(140deg, var(--tone-a, #e8dfd2), var(--tone-b, #b9a894));
  aspect-ratio: 4 / 5;
  /* 老版本 WKWebView 不支持 aspect-ratio 时，靠 min-height 兜住高度，避免塌成 0 */
  min-height: 180px;
  isolation: isolate;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 占位状态：无图片时显示标题，避免出现破图 */
.card__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(to top, rgba(20, 16, 12, 0.55), rgba(20, 16, 12, 0) 62%);
}

.card__meta {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 16px;
  color: #fff;
  background: linear-gradient(to top, rgba(18, 15, 12, 0.72), rgba(18, 15, 12, 0) 100%);
  pointer-events: none;
}

.card__title {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.04em;
}

.card__sub {
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.78;
}

.badge-demo {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-2);
}

/* 筛选条（作品页） */
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 20px 14px;
  margin: 0 -20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  background: var(--paper);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------------- 服务 ---------------- */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.svc {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.svc__title { font-family: var(--serif); font-size: 19px; }
.svc__price { margin-top: 8px; font-size: 13px; color: var(--amber-deep); letter-spacing: 0.04em; }
.svc__desc { margin: 12px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
.svc__list { margin: 14px 0 0; padding: 0; list-style: none; }
.svc__list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 2;
  color: var(--ink-2);
}
.svc__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

/* ---------------- 流程 ---------------- */
.steps { counter-reset: step; display: grid; gap: 0; }

.step {
  position: relative;
  padding: 0 0 26px 46px;
  border-left: 1px solid var(--line);
  margin-left: 14px;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -15px;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.step__t { font-family: var(--serif); font-size: 17px; }
.step__d { margin: 6px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }

/* ---------------- 小黄花盯单（主页展示块） ---------------- */
.showcase { display: grid; gap: 36px; }

.showcase__list {
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.showcase__list li {
  position: relative;
  padding-left: 28px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
}
.showcase__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(217, 154, 58, 0.14);
  border: 1px solid rgba(217, 154, 58, 0.5);
}
.showcase__list strong {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}
.showcase__note {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-3);
}

.showcase__visual { display: flex; justify-content: center; }

/* 手机外观：纯 CSS，不用图片素材 */
.phone {
  position: relative;
  width: 272px;
  max-width: 100%;
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(160deg, #2f2922, #16130f);
  box-shadow: 0 34px 64px -26px rgba(26, 24, 21, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.phone__notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 16px;
  border-radius: 999px;
  background: #0c0a08;
  z-index: 2;
}
.phone__body {
  background: var(--cream);
  border-radius: 26px;
  padding: 36px 13px 16px;
  display: grid;
  gap: 10px;
}
.phone__head {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.06em;
  padding: 0 4px 2px;
}

.ticket {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px 13px;
}
.ticket--ghost { opacity: 0.72; }

.ticket__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ticket__t { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.ticket__s {
  flex: 0 0 auto;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(217, 154, 58, 0.16);
  color: var(--amber-deep);
  white-space: nowrap;
}
.ticket--ghost .ticket__s { background: rgba(26, 24, 21, 0.06); color: var(--ink-2); }

.ticket__meta { margin-top: 4px; font-size: 10.5px; color: var(--ink-3); }

.ticket__foot {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 10px;
  color: var(--amber-deep);
}

/* 进度节点 */
.track { display: flex; align-items: flex-start; margin: 13px 0 10px; }
.track__step {
  position: relative;
  flex: 1;
  text-align: center;
  font-size: 9.5px;
  line-height: 1.2;
  color: var(--ink-3);
}
.track__step i {
  display: block;
  width: 7px;
  height: 7px;
  margin: 0 auto 5px;
  border-radius: 50%;
  background: rgba(26, 24, 21, 0.14);
  position: relative;
  z-index: 1;
}
/* 节点之间的连接线 */
.track__step::before {
  content: "";
  position: absolute;
  top: 3px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: rgba(26, 24, 21, 0.10);
}
.track__step:first-child::before { display: none; }
.track__step.is-done { color: var(--ink-2); }
.track__step.is-done i { background: var(--amber-deep); }
.track__step.is-done::before { background: rgba(176, 116, 28, 0.35); }
.track__step.is-now { color: var(--amber-deep); font-weight: 600; }
.track__step.is-now i { background: var(--amber); box-shadow: 0 0 0 4px rgba(217, 154, 58, 0.18); }

/* ---------------- 联系 ---------------- */
.contact {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0;
}

.contact__t { font-size: clamp(24px, 6.5vw, 36px); line-height: 1.4; }
.contact__d { margin: 14px 0 0; font-size: 14px; line-height: 1.9; color: rgba(250, 246, 239, 0.68); }

.contact__rows { margin-top: 28px; display: grid; gap: 2px; }
.contact__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  border-bottom: 1px solid rgba(250, 246, 239, 0.14);
  font-size: 14px;
}
.contact__row dt { color: rgba(250, 246, 239, 0.55); font-size: 12.5px; letter-spacing: 0.1em; }
.contact__row dd { margin: 0; text-align: right; }
.contact__row dd a { border-bottom: 1px solid rgba(250, 246, 239, 0.35); }

/* 「微信同号」这类小标签，跟在号码后面 */
.contact__tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(250, 246, 239, 0.10);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: rgba(250, 246, 239, 0.55);
  vertical-align: 2px;
  white-space: nowrap;
}

/* ---------------- 页脚 ---------------- */
.footer {
  background: var(--ink);
  color: rgba(250, 246, 239, 0.5);
  padding: 26px 0 calc(26px + var(--sab));
  border-top: 1px solid rgba(250, 246, 239, 0.1);
  font-size: 12px;
  line-height: 2;
}
.footer__inner { display: grid; gap: 10px; }
.footer a { border-bottom: 1px solid rgba(250, 246, 239, 0.25); }

/* ---------------- 画廊：手机端逐屏滑动 ---------------- */
.viewer {
  background: #12100e;
  color: #fff;
  min-height: 100vh;
  min-height: 100svh;
}

.viewer__bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: calc(52px + var(--sat));
  padding: calc(var(--sat) + 0px) 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(to bottom, rgba(10, 8, 7, 0.82), rgba(10, 8, 7, 0));
}

.viewer__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -8px;
  font-size: 20px;
}

.viewer__titles { min-width: 0; flex: 1; }
.viewer__t { font-family: var(--serif); font-size: 15px; letter-spacing: 0.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__s { font-size: 11px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.viewer__counter {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stack { display: block; }

.stack__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  padding: 0;
}

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

.stack__ph {
  width: 88%;
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--tone-a, #3a332b), var(--tone-b, #17140f));
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 0.16em;
}

/* 画廊末尾的「预约同款」屏 */
.stack__item--cta { padding: 0 28px; }
.stack__cta { text-align: center; max-width: 520px; }
.stack__cta-t {
  font-size: clamp(22px, 6vw, 32px);
  margin-top: 12px;
  line-height: 1.35;
}
.stack__cta-d {
  margin: 14px 0 26px;
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.62);
}

/* 画廊页在手机端锁定视口，滚动交给 .stack 内部 */
body.viewer-body { background: #12100e; }

@media (max-width: 899px) {
  body.viewer-body {
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }
  .stack__item--cta { padding-bottom: calc(52px + var(--sab)); }
}

/* 手机端开启纵向吸附 */
@media (max-width: 899px) {
  .stack {
    /* 老 iOS 不认 svh，必须先给 vh 兜底，否则高度失效 → body 又被锁住，整页滑不动 */
    height: 100vh;
    height: 100svh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
  .mobile-snap { scroll-snap-type: y mandatory; }
}

/* ---------------- 画廊：电脑端大图网格 ---------------- */
.masonry { display: none; }

.viewer__hint {
  position: fixed;
  inset: auto 0 calc(16px + var(--sab)) 0;
  z-index: 40;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

/* 灯箱（电脑端点击放大） */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 7, 6, 0.94);
  /* 底部留出「看真实客片」按钮的位置，避免压住图片 */
  padding: 40px 40px calc(80px + env(safe-area-inset-bottom, 0px));
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  color: #fff;
}
/* 灯箱底部：直达真实客片 */
.lightbox__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.lightbox__cta {
  pointer-events: auto;
  min-height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox__cta:active { background: rgba(255, 255, 255, 0.24); }

/* ---------------- 视频：卡片标记 ---------------- */
.card--video { background-image: linear-gradient(140deg, #2a251e, #14110d); }

.card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(250, 246, 239, 0.88);
  color: #241c10;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, background-color 0.3s;
  pointer-events: none;
}
.card:hover .card__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--amber);
}

.card__dur {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(18, 15, 12, 0.62);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* ---------------- 视频：播放页 ---------------- */
.vplayer {
  padding: calc(62px + var(--sat)) 16px calc(40px + var(--sab));
  max-width: 1080px;
  margin: 0 auto;
}
.vplayer:empty { display: none; }

.vplayer__frame {
  position: relative;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 56px -22px rgba(0, 0, 0, 0.85);
}
.vplayer__video {
  display: block;
  width: 100%;
  max-height: 76vh;
  max-height: 76svh;
  background: #000;
}

/* 百度网盘外链卡片 */
.vbaidu__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 56px -22px rgba(0, 0, 0, 0.85);
}
.vbaidu__frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; }
.vbaidu__veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.48));
}
.vbaidu__play {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(217, 154, 58, 0.94);
  color: #241c10;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
}

.vbaidu__body { margin-top: 20px; text-align: center; }
.vbaidu__note {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}
.vbaidu__code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}
.vbaidu__code b {
  font-size: 15px;
  letter-spacing: 0.12em;
  color: #fff;
}
.vbaidu__copy {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.vinfo { margin-top: 26px; }
.vinfo__t { font-family: var(--serif); font-size: 20px; letter-spacing: 0.03em; }
.vinfo__m { margin-top: 6px; font-size: 12.5px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.5); }

.vcta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* 视频页需要整页滚动，解除手机端的视口锁定（写在后面才能覆盖） */
@media (max-width: 899px) {
  body.viewer-body--flow {
    height: auto;
    overflow: auto;
  }
}

/* ---------------- 样品占位卡 ---------------- */
.card--ph {
  display: grid;
  place-items: center;
  cursor: default;
}
/* 虚线内框，一眼看出是"位子留着"而不是加载失败 */
.card--ph::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(74, 58, 40, 0.35);
  border-radius: 2px;
  pointer-events: none;
}
/* 占位卡的 tone 都是浅米色系 → 文字用深色，白字会糊掉 */
.card__ph-in { position: relative; z-index: 2; text-align: center; padding: 20px; color: #4a3a28; }
.card__ph-t {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.16em;
}
.card__ph-d {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.78;
}

/* ---------------- 真实客片：平台入口 ---------------- */
.social-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }

.social-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-align: left;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
a.social-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.social-btn__n { font-family: var(--serif); font-size: 16px; letter-spacing: 0.1em; }
.social-btn__h { font-size: 11.5px; color: rgba(255, 255, 255, 0.58); text-align: right; }
.social-btn.is-off { opacity: 0.5; }

/* 作品集底部：平台入口区 */
.works-social {
  margin: 6px 0 56px;
  padding: 26px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.works-social__t {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(20px, 5vw, 26px);
  letter-spacing: 0.04em;
}
.works-social__d {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.6);
}

/* 相册页右上角「看客片」 */.viewer__social {
  flex: 0 0 auto;
  margin-left: 10px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* 平台选择弹层（底部抽屉） */
.sheet { position: fixed; inset: 0; z-index: 300; display: none; }
.sheet.is-open { display: block; }
.sheet__mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.64);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #171411;
  color: #fff;
  border-radius: 18px 18px 0 0;
  padding: 10px 20px calc(24px + var(--sab));
  transform: translateY(100%);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 84vh;
  overflow-y: auto;
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__handle {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  margin: 0 auto 16px;
}
.sheet__head { font-family: var(--serif); font-size: 18px; letter-spacing: 0.06em; }
.sheet__desc { margin: 8px 0 0; font-size: 12.5px; line-height: 1.8; color: rgba(255, 255, 255, 0.55); }
.sheet__cancel {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
}

/* ---------------- 加载 / 空状态 ---------------- */
.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}

.skeleton {
  background: linear-gradient(100deg, #ece5d9 30%, #f5efe6 50%, #ece5d9 70%);
  background-size: 220% 100%;
  animation: sheen 1.5s linear infinite;
  border-radius: 4px;
}
@keyframes sheen {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}

/* ============================================================
   电脑端（≥900px）—— 独立一套排版，不复用手机端布局
   ============================================================ */
@media (min-width: 900px) {
  :root { --nav-h: 74px; }

  body { font-size: 17px; }

  .wrap { padding: 0 40px; }
  .nav__inner { padding: 0 40px; }
  .nav__menu { display: flex; }
  .nav__actions { margin-left: 30px; }
  .nav__toggle { display: none; }
  .drawer { display: none; }

  .nav__brand { font-size: 18px; }
  .nav__brand img { width: 28px; height: 28px; }

  .hero { align-items: center; padding-bottom: 0; }
  .hero__title { font-size: clamp(56px, 6vw, 92px); }
  .hero__sub { font-size: 15px; margin-top: 22px; }
  .hero__cta { margin-top: 36px; }
  .hero__scroll { left: auto; right: 40px; bottom: 40px; transform: none; }

  .section { padding: 110px 0; }
  .section--tight { padding: 80px 0; }
  .section__head { margin-bottom: 48px; }
  .section__desc { font-size: 15px; }

  .works-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  /* 第一张跨两列，做出杂志感 */
  .works-grid > .card:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
  .works-grid > .card:first-child .card__title { font-size: 22px; }
  /* 结果只有 1～2 条时撤回跨列 */
  .works-grid--few > .card:first-child { grid-column: auto; aspect-ratio: 4 / 5; }
  .works-grid--few > .card:first-child .card__title { font-size: 17px; }

  .filters { padding: 0 0 24px; margin: 0; }
  .chip { min-height: 40px; padding: 0 20px; font-size: 13.5px; }

  .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .svc { padding: 32px 28px; }
  .svc__title { font-size: 21px; }

  /* 盯单展示：左文案右手机，桌面才有两栏 */
  .showcase { grid-template-columns: 1.02fr 0.98fr; gap: 70px; align-items: center; }
  .showcase__visual { justify-content: flex-end; }
  .phone { width: 300px; }
  .showcase__list li { font-size: 14px; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 0; }  .step {
    padding: 46px 26px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    margin-left: 0;
  }
  .step:last-child { border-top-color: transparent; }
  .step::before { left: 0; top: -15px; }

  .contact { padding: 110px 0; }
  .contact__rows { grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
  .contact__row { flex-direction: column; align-items: flex-start; gap: 4px; min-height: 0; padding: 18px 0; }
  .contact__row dd { text-align: left; font-size: 15px; }

  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }

  /* 平台入口：桌面并排三列 */
  .social-row { grid-template-columns: repeat(3, 1fr); }
  .social-btn { flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; min-height: 78px; }
  .social-btn__h { text-align: left; }

  /* 平台弹层：桌面改成居中卡片 */
  .sheet__panel {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 12vh auto 0;
    max-width: 470px;
    border-radius: 14px;
    padding-bottom: 24px;
    transform: translateY(-14px);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s;
  }
  .sheet.is-open .sheet__panel { transform: none; opacity: 1; }
  .sheet__handle { display: none; }

  /* 画廊切换为网格，隐藏逐屏视图 */
  .stack { display: none; }
  .viewer__hint { display: none; }

  .masonry {
    display: block;
    columns: 2;
    column-gap: 16px;
    padding: 110px 40px 60px;
    max-width: 1500px;
    margin: 0 auto;
  }
  .masonry__item {
    break-inside: avoid;
    margin-bottom: 16px;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 2px;
    background: linear-gradient(140deg, var(--tone-a, #2a251e), var(--tone-b, #14110d));
  }
  .masonry__item img {
    width: 100%;
    height: auto;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
  }
  .masonry__item:hover img { transform: scale(1.02); opacity: 0.94; }

  .viewer__bar { padding: 0 40px; height: 60px; }
  .viewer__t { font-size: 17px; }
}

@media (min-width: 1280px) {
  .masonry { columns: 3; }
}

/* 尊重系统"减少动态效果"设置 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* 打印：只留文字信息 */
@media print {
  .nav, .drawer, .hero__scroll, .viewer__bar, .btn { display: none !important; }
  body { background: #fff; }
}
