/* ============================================================
   锦领视界 JINLING VISION — 全局动态视觉系统 V3.0
   暗金电影级 · 极致动效强化版 · 完整整合
   ============================================================ */

:root {
  /* —— 背景与 ink 色阶 —— */
  --bg-0: #08080a;
  --bg-1: #0d0c10;
  --bg-2: #141218;
  --ink: #ece5d8;
  --ink-dim: #9b937f;
  --ink-faint: #5d5749;

  /* —— 金色体系 —— */
  --gold: #d4af37;
  --gold-hi: #f5e3ac;
  --gold-deep: #8a6d1f;
  --line: rgba(212, 175, 55, 0.16);
  --line-soft: rgba(236, 229, 216, 0.08);

  /* —— 字体系统 —— */
  --serif: 'Noto Serif SC', 'Songti SC', serif;
  --sans: 'Noto Sans SC', 'PingFang SC', sans-serif;
  --latin: 'Cormorant Garamond', 'Times New Roman', serif;

  /* —— 缓动曲线 (强化物理感) —— */
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-silk: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);       
  --ease-spring-soft: cubic-bezier(0.22, 1.32, 0.36, 1);
  /* 品牌曲线（与 JL.motion.EASES 同源）：hop 果断骤停 / glide 平滑滑入 */
  --ease-hop: cubic-bezier(0.9, 0, 0.1, 1);
  --ease-glide: cubic-bezier(0.8, 0, 0.2, 1);  

  /* —— 阴影与层级 —— */
  --space-section: 9rem;
  --radius-sm: 4px;
  --shadow-gold-glow: 0 0 30px rgba(212, 175, 55, 0.2);
  --shadow-press: inset 0 4px 12px rgba(0, 0, 0, 0.6);
  --z-cursor: 10000;
  --z-progress: 9999;
}

/* 全局重置 */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.sec-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.18; letter-spacing: 0.01em; /* 大字排版公式：紧行高 + 近零字距（中文适度） */
  text-wrap: balance; 
}

/* ---------- 滚动显现：电影对焦 + 品牌 glide 错峰入场 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-y, 48px));
  filter: blur(12px); /* 初始模糊状态 */
  /* transform 用品牌 glide 曲线滑入；弹性场景仍用 --ease-spring */
  transition: opacity 1.05s var(--ease-lux),
              transform 1.05s var(--ease-glide),
              filter 1.05s var(--ease-lux);
  will-change: opacity, transform, filter;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.btn-lux::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, var(--gold-hi), var(--gold));
  transform: translateX(-101%); transition: transform 0.55s var(--ease-lux); z-index: 0;
}
.btn-lux::after {
  content: ''; position: absolute; top: 0; left: -150%;
  width: 75%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg); transition: left 0.7s var(--ease-lux);
  z-index: 2; pointer-events: none;
}

.gold-num { font-family: var(--latin); color: var(--gold); font-style: italic; }

.cursor-dot {
  position: fixed; top: -3px; left: -3px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-hi);
  z-index: var(--z-cursor) + 1; pointer-events: none;
  mix-blend-mode: difference; will-change: transform;
  box-shadow: 0 0 10px var(--gold-hi);
  animation: dot-pulse 3s ease-in-out infinite;
}

.cursor-ring.is-hover {
  border-color: var(--gold); background: rgba(212, 175, 55, 0.1);
  transform: scale(1.2) rotate(45deg);
}
.cursor-ring.has-label {
  width: auto; min-width: 60px; padding: 0 12px; height: 32px;
  border-color: var(--gold); background: rgba(10, 10, 12, 0.85);
  border-radius: 16px; transform: scale(1) rotate(0deg);
}

/* ============================================================
 * 全站统一点击动画 (jl-press) V3
 * ============================================================ */
a, button, .rf, .wfilter, .pulled-close, .card-link, .nav-links a,
.jl-player-close, .jl-player-nav {
  transition: transform 0.18s var(--ease-spring), filter 0.18s ease, box-shadow 0.18s ease;
}
a:active, button:active, .rf:active, .wfilter:active,
.pulled-close:active, .card-link:active,
.jl-player-close:active, .jl-player-nav:active {
  transform: scale(0.94) translateY(2px);
  filter: brightness(0.9); box-shadow: var(--shadow-press);
  transition-duration: 0.08s;
}
.work, .service-card, .g-cell, .ww-cell, .svc-panel {
  transition: filter 0.18s ease, box-shadow 0.3s ease;
}

/* ============ 影像胶卷 FilmStrip ============ */
.film-section {
  padding: 6.5rem 0 5rem;
  background: radial-gradient(50rem 26rem at 12% 20%, rgba(212,175,55,0.05), transparent 60%), var(--bg-1);
  overflow: hidden; position: relative;
}
.film-section::before {
  content: ''; position: absolute; top: -20%; left: -20%;
  width: 60%; height: 140%;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.06), transparent 60%);
  transform: rotate(25deg); animation: projector-sweep 12s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}

.reel-stage { position: relative; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.6rem; overflow: hidden; padding: 0.5rem 0 1rem; z-index: 1; }
.reel-belt { position: relative; width: 100%; overflow: visible; }
.reel-band {
  display: flex; width: max-content; padding: 1.05rem 0 1rem;
  background: linear-gradient(180deg, rgba(172, 132, 70, 0.26), rgba(120, 88, 42, 0.34) 55%, rgba(96, 68, 30, 0.3));
  border-top: 1px solid rgba(196, 154, 92, 0.4); border-bottom: 1px solid rgba(150, 112, 56, 0.45);
  box-shadow: 0 18px 44px rgba(8, 6, 4, 0.5);
  backdrop-filter: blur(2.5px); -webkit-backdrop-filter: blur(2.5px); will-change: transform;
}
.reel-band::before, .reel-band::after {
  content: ''; position: absolute; left: 0; right: 0; height: 0.42rem;
  background: repeating-linear-gradient(90deg, rgba(16, 12, 7, 0.9) 0 0.62rem, transparent 0.62rem 1.5rem);
  pointer-events: none; animation: hole-pulse 4s ease-in-out infinite alternate;
}

.rf { position: relative; flex-shrink: 0; display: flex; flex-direction: column; padding: 0.35rem 0.55rem; margin: 0; cursor: zoom-in; }

.reel-belt--main .rf-photo { aspect-ratio: 16 / 10; }

.reel-belt--main { margin-left: calc(50% - 50vw); width: 100vw; z-index: 2; }

.reel-anim-l, .reel-anim-r { animation-play-state: paused; }
/* 悬停大带：原地平滑停住便于取帧（pause 保相位，勿改 duration 防相位重算跳变） */
.is-running .reel-belt--main:hover .reel-anim-l { animation-play-state: paused; }

.pulled-mask { position: fixed; inset: 0; z-index: 9600; display: flex; align-items: center; justify-content: center; padding: 5vh 4vw; background: rgba(6,6,8,0.92); backdrop-filter: blur(12px); cursor: zoom-out; }
.pulled-photo::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg); animation: pulled-shine 3s ease-in-out infinite; pointer-events: none;
}

/* ============ 核心团队 TeamSection ============
 * 名册索引 + 肖像预览样式见 film-team.css 尾部（扑克牌旧样式已移除） */
.team { background: var(--bg-0); overflow: hidden; }

/* ============ 影视厂标式开场 TearLoader（Cinematic Studio Intro） ============ */
.tear {
  position: fixed; inset: 0; z-index: 99999;
  background:
    radial-gradient(60rem 30rem at 50% 42%, rgba(212,175,55,0.06), transparent 60%),
    #08080a;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.7s var(--ease-lux);
  will-change: opacity;
}
/* 退场：整体淡出（电影厂标淡出感），干净无虚其 logo），避免与厂标 logo 同时显示造成"重复 logo"；
 * 开屏层移除后导航随 opacity 过渡淡入 */
.tear ~ .nav { opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease-lux); }

/* 开场金粉微粒：淡金色光点缓缓漂浮，低调提升氛围 */
.tear::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(245,227,172,0.8), transparent 60%),
    radial-gradient(2px 2px at 70% 25%, rgba(212,175,55,0.6), transparent 60%),
    radial-gradient(1px 1px at 45% 65%, rgba(245,227,172,0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 85% 70%, rgba(212,175,55,0.5), transparent 60%),
    radial-gradient(1px 1px at 10% 75%, rgba(245,227,172,0.5), transparent 60%);
  background-repeat: repeat;
  background-size: 230px 230px;
  opacity: 0.3;
  pointer-events: none;
  animation: tearSparkDrift 9s linear infinite;
}
@keyframes tearSparkDrift {
  0% { transform: translateY(0); opacity: 0.3; }
  50% { opacity: 0.55; }
  100% { transform: translateY(-26px); opacity: 0.3; }
}
.tear.opening::before { opacity: 0; transition: opacity 0.4s ease; }

/* 中央厂标区 */
.tear-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  opacity: 0;
  animation: tearCenterIn 0.8s var(--ease-lux) 0s forwards;
  transition: opacity 0.5s ease, transform 0.5s var(--ease-lux);
}
@keyframes tearCenterIn {
  0% { opacity: 0; transform: scale(0.94); filter: blur(12px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
.tear.opening .tear-center {
  opacity: 0; transform: scale(1.05);
  transition: opacity 0.22s ease, transform 0.22s var(--ease-lux);
}

.tear-logo { width: 3.8rem; height: 3.8rem; filter: drop-shadow(0 0 20px rgba(212,175,55,0.5)); }
.tear-brand-cn {
  font-family: var(--serif); font-weight: 900; font-size: 1.8rem;
  letter-spacing: 0.5em; text-indent: 0.5em;
  background: linear-gradient(115deg, var(--gold-hi), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(212,175,55,0.35));
}
.tear-brand-en {
  font-family: var(--latin); font-size: 0.74rem; letter-spacing: 0.5em;
  color: var(--ink-dim); min-height: 1em;
}
/* PRESENTS：电影片头经典字距收缩浮现 */
.tear-presents {
  font-family: var(--latin);
  font-size: 0.78rem;
  letter-spacing: 0.85em;
  text-indent: 0.85em;
  color: var(--gold);
  opacity: 0;
  animation: tearPresentsIn 0.9s var(--ease-lux) 0.55s forwards;
}
@keyframes tearPresentsIn {
  0% { opacity: 0; letter-spacing: 0.98em; filter: blur(8px); }
  100% { opacity: 1; letter-spacing: 0.72em; filter: blur(0); }
}
.tear.opening .tear-presents { opacity: 0; transition: opacity 0.4s ease; }

/* 金线进度：细金线左进右出 */
.tear-scanline-track {
  width: min(300px, 60vw); height: 2px; margin-top: 1.4rem;
  background: rgba(236,229,216,0.12); position: relative; overflow: hidden;
}
.tear-scanline {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-hi));
  box-shadow: 0 0 12px rgba(212,175,55,0.9);
  transform: scaleX(0); transform-origin: left center;
  will-change: transform;
}

/* ============ 图片蒙版揭示（刀锋斜切 + 镜头推拉） ============ */
.reveal .card-media img, .reveal .work-img img {
  clip-path: inset(0 0 0 0); transform: scale(1.15);
  transition: transform 1.6s var(--ease-lux);
}
.reveal.is-visible .card-media img, .reveal.is-visible .work-img img { transform: scale(1); }

.card-media, .work-img { position: relative; overflow: hidden; }
.card-media::before, .work-img::before {
  content: ''; position: absolute; inset: -20%; z-index: 3;
  background: linear-gradient(115deg, #14121a, #0b0a0e);
  transform: scaleX(1) skewX(-15deg); transform-origin: 100% 50%;
  transition: transform 1.2s var(--ease-lux) 0.15s; pointer-events: none;
}
.reveal.is-visible .card-media::before, .reveal.is-visible .work-img::before,
.works-strip .work .work-img::before { transform: scaleX(0) skewX(-15deg); }
.works-strip .work .work-img::before { transition-delay: 0.25s; }

/* ============ JL-Mark 描边生长编排（光能灌注强化版） ============ */
.jl-mark-draw path[pathLength] {
  stroke-dasharray: 1 1.2; stroke-dashoffset: 1.1;
  animation: jlDraw var(--dd, 600ms) cubic-bezier(0.4, 0, 0.6, 1) var(--dl, 0ms) forwards;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.5));
}
@keyframes jlDraw { to { stroke-dashoffset: 0; } }

.jl-mark-draw .jl-dot-pop {
  opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: jlDotPop 600ms cubic-bezier(0.34, 1.8, 0.64, 1) 560ms forwards, dotPulse 2.6s ease-in-out 1.4s infinite;
}
@keyframes jlDotPop {
  0% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1.6); filter: drop-shadow(0 0 20px var(--gold-hi)); }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 6px var(--gold-hi)); }
}

/* ============ 响应式适配 ============ */
@media (hover: none), (pointer: coarse) {
  .cursor-aura, .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}
@media (max-width: 768px) {
  :root { --space-section: 5.5rem; }
  .section { padding: var(--space-section) 0; }
  .sec-ghost { top: -2.2rem; }
  @keyframes ghost-float { 0% { transform: translateY(0); opacity: 0.8; } 100% { transform: translateY(8px); opacity: 0.5; } }
}
@media (max-width: 560px) {
  :root { --space-section: 4.5rem; }
  .section { padding: var(--space-section) 0; }
  .sec-head { margin-bottom: 3rem; }
  .sec-ghost { font-size: 3.6rem; top: -1.8rem; }
  .sec-kicker { letter-spacing: 0.28em; font-size: 0.72rem; }
  .sec-kicker::before { width: 1.6rem; }
  .sec-title { letter-spacing: 0.03em; line-height: 1.45; }
  .sec-desc { font-size: 0.9rem; line-height: 1.9; }
  .btn-lux { padding: 0.9rem 1.9rem; letter-spacing: 0.24em; }
  
  .reel-stage { gap: 1.1rem; }
  .reel-belt--main .rf { width: 46vw; }
  .rf--sm { width: 30vw; }
  .reel-belt--sub-a { margin-left: calc(50% - 50vw + 3vw); }
  .reel-belt--sub-b { margin-top: -1.8rem; margin-left: calc(50% - 50vw - 3vw); }
  .is-running .reel-anim-l { animation-duration: 30s; }
  .is-running .reel-anim-r { animation-duration: 26s; }
  .is-running .reel-anim-l--slow { animation-duration: 40s; }

  .tear-logo { width: 2.8rem; height: 2.8rem; }
  .tear-brand-cn { font-size: 1.35rem; }
  .tear-brand-en { font-size: 0.62rem; }
}

/* ============ 无障碍：减弱动画偏好降级 ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important;
  }
  .film-track { animation: none !important; transform: none !important; }
  .cursor-aura, .card-flip-hint svg { display: none; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .reveal .card-media img, .reveal .work-img img { transform: scale(1); }
  .tear-center { opacity: 1; transform: none; filter: none; }
  .jl-mark-draw path[pathLength] { stroke-dashoffset: 0; animation: none; }
  .jl-mark-draw .jl-dot-pop { opacity: 1; animation: none; }
}

/* ============ 移动端触控与安全区（功能下放辅助） ============ */
a, button, [role="button"], .rf, .service-card, .ww-cell, .g-cell, .wfilter, .team-row, .svc-panel, .jl-player-nav, .jl-player-close {
  touch-action: manipulation;
  -webkit-touch-callout: none;
}
html { -webkit-text-size-adjust: 100%; }
@media (max-width: 860px) {
  .nav-inner { padding-top: env(safe-area-inset-top, 0px); }
  .footer { padding-bottom: calc(2.4rem + env(safe-area-inset-bottom, 0px)); }
  .back-top { bottom: calc(1.3rem + env(safe-area-inset-bottom, 0px)); }
  .hero-content { padding-left: max(4vw, env(safe-area-inset-left)); padding-right: max(4vw, env(safe-area-inset-right)); }
}

/* ============ 全站质感层：胶片颗粒 + 金色暗角（不挡交互） ============ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 62%, rgba(0,0,0,0.3) 100%);
}
@media (prefers-reduced-motion: reduce) {
  body::before { opacity: 0.03; }
}

/* ============ 图片解码占位（全局淡金底，避免白屏闪烁） ============ */
img {
  background: linear-gradient(115deg, rgba(212,175,55,0.04) 30%, rgba(212,175,55,0.09) 45%, rgba(212,175,55,0.04) 60%);
  background-size: 220% 100%;
}

/* ---------- 胶卷传动（无缝循环，与 film-team.css 同步） ---------- */

