html:has(.nt-main),
body:has(.nt-main) {
  overflow-x: hidden;
}

body:has(.nt-main) {
  background: var(--bg);
}

.nt-main,
body:has(.nt-main) .site-footer {
  position: relative;
  z-index: 1;
}

.nt-figure .frame img,
.nt-qr .slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nt-qr .slot img {
  object-fit: contain;
  padding: 12px;
}

.nt-figure .frame {
  overflow: hidden;
}

.nt-figure .frame img {
  min-height: 100%;
}

/* 工作室照片轮播:多图绝对叠放,交叉淡入 */
.nt-figure .frame.nt-carousel img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.nt-figure .frame.nt-carousel img.is-active {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .nt-figure .frame.nt-carousel img { transition: none; }
}

.nt-reveal .ch {
  color: rgb(from var(--ink) r g b / 0.24);
  transition: color 0.18s linear;
  will-change: color;
}

.nt-reveal .ch.is-lit {
  color: var(--ink);
}

.nt-reveal .ch.is-em,
.nt-reveal .ch.is-em.is-lit {
  color: var(--brand);
}

.nt-contact .nt-reveal .ch {
  color: rgb(255 255 255 / 0.32);
}

.nt-contact .nt-reveal .ch.is-lit {
  color: #fff;
}

.nt-qr-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgb(from var(--brand) r g b / 0.08) 1px, transparent 1px),
    linear-gradient(rgb(from var(--brand) r g b / 0.08) 1px, transparent 1px),
    #fff;
  background-size: 10px 10px;
}

.nt-qr-placeholder img {
  width: 52%;
  height: 52%;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .nt-reveal .ch {
    color: var(--ink);
  }

  .nt-contact .nt-reveal .ch {
    color: #fff;
  }
}
