/* ============================================================
   首页全屏模块（连续滚动 + 缓入动画）+ 作品页 Banner
   依赖 main.css 的变量与基础组件
   ============================================================ */

/* ---------- 首页：全屏模块 ---------- */
/* 首屏线稿水印 */
.hero-mark {
  position: absolute; right: -6vw; top: 50%; transform: translateY(-50%);
  width: min(46vw, 620px); opacity: 0.05;
  pointer-events: none; user-select: none;
}
@media (max-width: 860px) { .hero-mark { width: 64vw; right: -20vw; opacity: 0.04; } }

/* 首屏品牌 logo 标题 */
.fs-h1.hero-logo { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 2.4vh, 22px); }
.hero-logo img { display: block; width: min(66vw, 600px); height: auto; }
@media (max-width: 640px) { .hero-logo img { width: 78vw; } }

/* ---------- 作品页：顶部 Banner（标星作品轮播） ---------- */
.banner {
  position: relative;
  height: clamp(360px, 52vh, 540px);
  margin-top: var(--nav-h);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.bslide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s;
}
.bslide.active {
  opacity: 1; visibility: visible;
  transition: opacity 1.2s var(--ease);
}
/* 双层背景：两侧同图虚化填充，中间完整显示封面，遮罩渐变过渡 */
.bslide-bg { position: absolute; inset: 0; }
.bslide-bg .fill {
  position: absolute; inset: -48px;
  background: var(--cv, #141416) center / cover no-repeat;
  filter: blur(26px) brightness(0.58) saturate(0.85);
}
.bslide-bg .fit {
  /* 封面按 16:9 占满 Banner 高度的 114%，居中；渐隐发生在封面图边缘内侧，溶解进虚化层无硬切 */
  position: absolute; top: 50%; left: 50%;
  height: 128%; aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  background: var(--cv, #141416) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 15%, #000 85%, transparent 100%);
}
.bslide.active .bslide-bg { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.09); } to { transform: scale(1); } }
.slide-shade {
  position: absolute; inset: 0;
  /* 上层：左右暗角缓缓渐黑；下层：底部暗部渐变 */
  background:
    linear-gradient(90deg, rgba(11,11,12,0.95) 0%, rgba(11,11,12,0) 22%, rgba(11,11,12,0) 78%, rgba(11,11,12,0.95) 100%),
    linear-gradient(180deg, rgba(11,11,12,0.42), rgba(11,11,12,0.08) 40%, rgba(11,11,12,0.9));
}
.bslide-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(76px, 11vh, 110px);
}
.s-kicker { font-size: 12px; letter-spacing: 0.32em; color: rgba(242,241,236,0.85); margin-bottom: 14px; text-shadow: 0 1px 3px rgba(11,11,12,0.85), 0 2px 10px rgba(11,11,12,0.5); }
.bslide-info h2 {
  font-size: clamp(21px, 3.4vw, 42px); font-weight: 250;
  letter-spacing: 0.03em; line-height: 1.16; max-width: 920px; margin: 0;
  text-shadow: 0 2px 6px rgba(11,11,12,0.85), 0 4px 22px rgba(11,11,12,0.55);
}
.s-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.s-dur {
  position: absolute; top: 22px;
  right: max(clamp(20px, 4vw, 48px), calc((100% - 1280px) / 2 + clamp(20px, 4vw, 48px)));
  font-size: 11px; letter-spacing: 0.14em; color: rgba(242,241,236,0.78);
  border: 1px solid rgba(242,241,236,0.28); padding: 4px 11px; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.bs-dots {
  position: absolute; bottom: 34px; z-index: 5;
  left: max(clamp(20px, 4vw, 48px), calc((100% - 1280px) / 2 + clamp(20px, 4vw, 48px)));
  display: flex; gap: 10px;
}
.bs-dots button {
  width: 38px; height: 2px; padding: 0; border: 0; cursor: pointer;
  background: var(--ink-faint); transform: scaleX(0.68); transform-origin: left;
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease);
}
.bs-dots button.on { background: var(--ink); transform: none; }
.bs-cue {
  position: absolute; bottom: 30px; z-index: 5;
  right: max(clamp(20px, 4vw, 48px), calc((100% - 1280px) / 2 + clamp(20px, 4vw, 48px)));
  font-size: 11px; letter-spacing: 0.26em; color: var(--ink-faint);
}
@media (prefers-reduced-motion: reduce) {
  .bslide.active .bslide-bg { animation: none; }
}

.fs-section {
  min-height: 106svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + clamp(32px, 7vh, 72px)) 0 clamp(32px, 5vh, 56px);
  position: relative;
  overflow: hidden; /* 裁掉装饰元素出血,防止移动端缩小后看到溢出内容 */
}
/* 模块之间留出呼吸空间 */
.fs-section .sec-head { margin-bottom: clamp(44px, 8vh, 88px); }
/* 滚到面前时缓缓出现 */
.fs-section .reveal {
  transition-duration: 1.4s, 1.4s;
  transition-timing-function: cubic-bezier(0.16, 0.6, 0.2, 1);
}
.fs-h1 {
  font-size: clamp(48px, 9vw, 118px);
  font-weight: 250;
  letter-spacing: 0.04em;
  line-height: 1.08;
}
.fs-h1 .en {
  display: block;
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 400;
  letter-spacing: 0.55em;
  color: var(--ink-dim);
  margin-top: 20px;
}

/* 右侧模块圆点导航 */
#fs-dots {
  position: fixed; right: clamp(14px, 2.4vw, 34px); top: 50%; transform: translateY(-50%);
  z-index: 45; display: flex; flex-direction: column; gap: 16px;
}
#fs-dots .dot {
  background: none; border: 0; padding: 2px;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; cursor: pointer;
}
#fs-dots .dot i { display: block; width: 34px; height: 1px; background: var(--ink-faint); transform: scaleX(0.53); transform-origin: right; transition: transform 0.4s var(--ease), background-color 0.4s var(--ease); }
#fs-dots .dot.on i { transform: none; background: var(--ink); }
#fs-dots .dot span {
  font-size: 11px; letter-spacing: 0.2em; color: var(--ink-faint);
  opacity: 0; transform: translateX(4px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); white-space: nowrap;
}
#fs-dots .dot:hover span, #fs-dots .dot.on span { opacity: 1; transform: none; }
@media (max-width: 640px) { #fs-dots { display: none; } }

/* 业务列表 */
.svc {
  padding: clamp(8px, 1.4vh, 14px) 0; border-bottom: 1px solid var(--line);
  cursor: pointer;
  /* 同时承载 .reveal 入场（opacity/transform）与按压反馈（scale，独立属性互不干扰） */
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.svc-head {
  display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px);
  padding: clamp(10px, 1.8vh, 18px) 0;
  transition: translate 0.35s var(--ease);
}
.svc:first-of-type { border-top: 1px solid var(--line); }
.svc .no { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.15em; }
.svc h3 { font-size: clamp(21px, 3vw, 38px); font-weight: 250; letter-spacing: 0.05em; flex: 1; }
.svc p { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.12em; text-align: right; }
.svc .arrow { color: var(--ink-faint); opacity: 0; transform: translateX(-8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease); }
/* 悬停分类:向下展开该分类的样片缩略图,横贯整个屏幕宽度,两端渐隐 */
/* width:0 + margin calc:不撑大 fit-content 容器(左侧距离保持与标题对齐),面板定位到视口最左 */
.svc-samples {
  width: 0; margin-left: calc(50% - 50vw);
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 0.55s var(--ease), opacity 0.45s var(--ease);
  pointer-events: none;
}
.svc-samples-row {
  position: relative;
  width: 100vw; min-height: 0; overflow: hidden;
  display: flex; gap: 12px; justify-content: center;
  padding: 6px 0 14px;
}
/* 两端模糊 + 渐隐透明:遮罩让模糊强度从边缘向内逐渐衰减,避免生硬分界 */
.svc-samples-row::before,
.svc-samples-row::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 150px; z-index: 2; pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.svc-samples-row::before {
  left: 0; background: linear-gradient(90deg, rgba(11, 11, 12, 0.85), rgba(11, 11, 12, 0));
  -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, transparent 100%);
}
.svc-samples-row::after {
  right: 0; background: linear-gradient(270deg, rgba(11, 11, 12, 0.85), rgba(11, 11, 12, 0));
  -webkit-mask-image: linear-gradient(270deg, #000 0, transparent 100%);
  mask-image: linear-gradient(270deg, #000 0, transparent 100%);
}
.svc[data-cats]:hover .svc-samples { grid-template-rows: 1fr; opacity: 1; pointer-events: auto; }
.svc-samples .sample {
  position: relative; flex: none; height: clamp(84px, 13vh, 122px); aspect-ratio: 16 / 9;
  overflow: hidden; border: 1px solid rgba(242, 241, 236, 0.14); background: #141416;
}
.svc-samples .sample .bg {
  position: absolute; inset: 0; background: var(--cv, #151517) center / cover no-repeat;
  transition: transform 0.6s var(--ease);
}
.svc-samples .sample figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 5px;
  background: linear-gradient(180deg, rgba(11,11,12,0) 0%, rgba(11,11,12,0.8) 100%);
  font-size: 10.5px; letter-spacing: 0.06em; color: rgba(242, 241, 236, 0.92);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (hover: hover) and (pointer: fine) {
  .svc:hover .svc-head { translate: 10px 0; }
  .svc:hover .arrow { opacity: 1; transform: none; color: var(--ink); }
  .svc[data-cats]:hover .svc-samples { max-height: 150px; opacity: 1; }
  .svc-samples .sample:hover .bg { transform: scale(1.06); }
}

/* 精选作品 */
/* 封面宽度恒在 180~208px,窗口变窄时列数自动 4→3→2 递减,不会瞬间变大 */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 208px));
  justify-content: center;
  gap: 26px;
  width: 910px; max-width: 100%;
}
/* 首页精选卡片标题:比通用卡片略小 */
#featured-grid .card-row h3 { font-size: 14px; }
@media (max-width: 640px) {
  .featured-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  #featured-grid .card-row h3 { font-size: 12px; }
}
/* 精选作品翻页箭头 */
.fw-next {
  flex: none; align-self: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(242, 241, 236, 0.3); background: transparent; color: var(--ink);
  font-size: 18px; line-height: 1; cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.fw-next:hover { border-color: rgba(255, 200, 130, 0.6); background: rgba(255, 205, 140, 0.08); transform: translateX(2px); }
/* 悬停作品封面时:模块背景切换为该封面(模糊放大) + 半透明黑底 */
.fw-hoverbg { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none; }
.fw-hoverbg.on { opacity: 1; }
.fw-hoverbg-layer {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.6s var(--ease);
  filter: blur(24px) brightness(0.72) saturate(1.05); transform: scale(1.12);
}
.fw-hoverbg-layer.on { opacity: 1; }
.fw-hoverbg::after { content: ""; position: absolute; inset: 0; background: rgba(11, 11, 12, 0.42); }

/* 摄影预览 */
/* ---------- 摄影模块：错层视差 + 横向滚动相册条 ---------- */
.photos-promo { overflow: hidden; display: flex; flex-direction: column; justify-content: center; }

/* 电影级制作：多图轮播 + 提亮 */
.module-bg.bg-layer { opacity: 0; transition: opacity 1.6s ease; }
.module-bg.bg-layer.on { opacity: 1; }
.fs-section[data-mbg="gear"] .module-bg { filter: grayscale(0%) contrast(1.02) brightness(1.6); }
.fs-section[data-mbg="gear"] .module-veil {
  background: linear-gradient(180deg,
    rgba(11, 11, 12, 0.78), rgba(11, 11, 12, 0.68) 30%,
    rgba(11, 11, 12, 0.68) 70%, rgba(11, 11, 12, 0.78));
}
.pp-bg {
  position: absolute; top: -12%; bottom: -12%; left: -60%; width: 220%;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.14);
  filter: blur(26px) brightness(0.5) saturate(1.05);
}
.pp-bg-layer {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  opacity: 0; transition: opacity 0.8s ease;
}
.pp-bg-layer.on { opacity: 1; }
.pp-veil {
  position: absolute; inset: 0;
  /* 轻纱：保证文字可读的同时让背景图清晰透出 */
  background:
    linear-gradient(180deg, rgba(11, 11, 12, 0.42) 0%, rgba(11, 11, 12, 0.08) 26%, rgba(11, 11, 12, 0.12) 72%, rgba(11, 11, 12, 0.42) 100%);
}
.pp-head { position: relative; z-index: 3; }
.pp-kicker { font-size: 12px; letter-spacing: 0.3em; color: var(--ink-dim); margin: 0 0 10px; }
.pp-title {
  font-size: clamp(24px, 3.2vw, 38px); font-weight: 250; letter-spacing: 0.06em;
  margin: 0 0 22px; color: var(--ink);
  text-shadow: 0 2px 18px rgba(11, 11, 12, 0.6);
}
.pp-btn { text-shadow: 0 1px 6px rgba(11, 11, 12, 0.6); }
.pp-strip {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: flex-start;
  overflow-x: auto; scrollbar-width: none;
  width: 100vw;
  margin: clamp(28px, 5vh, 60px) auto 0;
  padding: 10px 0 18px;
  /* 两端封面渐渐变透明 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 150px, #000 calc(100% - 150px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 150px, #000 calc(100% - 150px), transparent 100%);
}
/* 内层行:数量少时居中,数量多时可完整滚动到头 */
.pp-strip-row { display: flex; align-items: flex-end; gap: 18px; margin: 0 auto; }
/* 两端模糊:无底色,只有模糊本身,遮罩让模糊强度向内逐渐衰减 */
.pp-strip::before,
.pp-strip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 150px; z-index: 2; pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pp-strip::before {
  left: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, transparent 100%);
}
.pp-strip::after {
  right: 0;
  -webkit-mask-image: linear-gradient(270deg, #000 0, transparent 100%);
  mask-image: linear-gradient(270deg, #000 0, transparent 100%);
}
.pp-strip::-webkit-scrollbar { display: none; }
.pp-card {
  position: relative; flex: none;
  height: clamp(160px, 24vh, 236px); aspect-ratio: var(--r, 3 / 4); width: auto;
  margin: 0; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(242, 241, 236, 0.16); background: #141416;
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pp-img {
  position: absolute; inset: 0;
  background: var(--cv, #151517) center / cover no-repeat;
  transition: transform 0.9s var(--ease);
}
.pp-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 9px;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0) 0%, rgba(11, 11, 12, 0.55) 60%, rgba(11, 11, 12, 0.85) 100%);
  font-size: 12px; letter-spacing: 0.06em; color: rgba(242, 241, 236, 0.92);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (hover: hover) and (pointer: fine) {
  .pp-card:hover { transform: translateY(-6px); border-color: rgba(255, 200, 130, 0.5); box-shadow: 0 0 44px -10px rgba(255, 190, 110, 0.42); }
  .pp-card:hover .pp-img { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .pp-bg { will-change: auto; }
  .pp-card, .pp-img { transition: none; }
}

/* 影棚参数条 */
.spec-strip { display: flex; flex-wrap: wrap; gap: 22px 38px; margin: 8px 0 36px; }
.spec-strip span {
  font-size: 13px; letter-spacing: 0.16em; color: var(--ink-dim);
  border-left: 1px solid var(--line-strong); padding-left: 14px;
}
/* 影棚标题:化工厂影棚 wordmark */
.sec-head .hgc-logo { height: clamp(30px, 3.4vw, 46px); width: auto; display: block; }
/* 影棚模块:实拍预览条(自动匀速滚动·悬停暂停·两端渐隐,点击开灯箱) */
/* width:0 + 百分比 min-width:不撑大 fit-content 容器(容器保持原居中宽度),条子向右延伸出容器 */
.studio-strip {
  width: 0; min-width: 138%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 84px, #000 calc(100% - 84px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 84px, #000 calc(100% - 84px), transparent 100%);
  margin: -14px 0 30px; padding: 4px 0 12px;
}
.studio-track {
  display: flex; width: max-content;
  animation: studio-marquee 46s linear infinite;
}
.studio-track .strip-item { margin-right: 14px; }
.studio-strip:hover .studio-track { animation-play-state: paused; }
@keyframes studio-marquee { to { transform: translateX(-50%); } }
.studio-strip .strip-item {
  position: relative; flex: none; height: clamp(96px, 15vh, 136px); aspect-ratio: 3 / 2;
  overflow: hidden; cursor: pointer; padding: 0;
  border: 1px solid rgba(242, 241, 236, 0.16); background: #141416;
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.studio-strip .strip-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .studio-strip .strip-item:hover {
    transform: translateY(-4px); border-color: rgba(255, 200, 130, 0.5);
    box-shadow: 0 0 36px -10px rgba(255, 190, 110, 0.4);
  }
}
@media (prefers-reduced-motion: reduce) {
  .studio-track { animation: none; }
  .studio-strip { overflow-x: auto; }
  .studio-strip .strip-item { transition: none; }
}

/* 联系模块 */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--line); padding: 15px 0; font-size: 14px;
}
.contact-line em { font-style: normal; font-size: 11.5px; letter-spacing: 0.26em; color: var(--ink-faint); }
.contact-line a:hover { color: var(--ink); }
.contact-line span, .contact-line a { color: var(--ink-dim); }
/* 联系模块微信号:点击打开微信二维码弹层(复用关于页 wx-card) */
.contact-line .contact-wx {
  background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit;
  color: var(--ink-dim); cursor: pointer; transition: color 0.3s var(--ease);
}
.contact-line .contact-wx:hover { color: var(--ink); }
.fs-footer {
  margin-top: auto; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 11.5px; letter-spacing: 0.14em; color: var(--ink-faint);
}

/* 模块背景大图 + 遮罩（文字叠加在上面） */
.fs-section > .container { position: relative; z-index: 2; max-width: 100%; }
.module-bg {
  position: absolute; inset: 0;
  background: var(--mbg, none); background-size: cover; background-position: center; background-repeat: no-repeat;
  filter: grayscale(30%) contrast(1.05) brightness(0.85);
}
.module-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 11, 12, 0.92), rgba(11, 11, 12, 0.74) 30%,
    rgba(11, 11, 12, 0.74) 70%, rgba(11, 11, 12, 0.94));
}

/* ---------- 关于模块：花絮图滚动底 + 文字 ---------- */
.bts-band { position: absolute; inset: 0; overflow: hidden; display: flex; align-items: center; }
.bts-track { display: flex; gap: 20px; width: max-content; animation: bts-scroll 56s linear infinite; }
@keyframes bts-scroll { to { transform: translateX(-50%); } }
.bts-item {
  flex: none; height: 46vh; min-height: 280px; aspect-ratio: 3 / 2;
  background: var(--cv, #1a1a1c); border: 1px solid var(--line);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.bts-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 11, 12, 0.9), rgba(11, 11, 12, 0.55) 32%,
    rgba(11, 11, 12, 0.55) 68%, rgba(11, 11, 12, 0.9));
}
.bts-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 780px; margin: 0 auto; padding: 0 20px;
}
@media (max-width: 640px) {
  .bts-item { height: 34vh; }
}


