/* ============ 影像胶卷 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;
}
@keyframes projector-sweep {
  0% { transform: rotate(25deg) translateX(-30%); opacity: 0.3; }
  100% { transform: rotate(25deg) translateX(80%); opacity: 0.8; }
}

/* 舞台：三条胶卷带纵向排布 */
.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;
}
.reel-band { position: relative; }
.reel-band::before { top: 0.28rem; }
.reel-band::after { bottom: 0.28rem; animation-delay: -2s; }

@keyframes hole-pulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.reel-loop { display: flex; flex-shrink: 0; }

/* ---- 帧：由分格线相连，照片嵌在带内 ---- */
.rf {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0.55rem;
  margin: 0;
  cursor: zoom-in;
}
.rf + .rf { border-left: 1px solid rgba(26, 18, 8, 0.6); }
.rf-photo {
  overflow: hidden;
  border: 1px solid rgba(40, 28, 12, 0.65);
  background: #131009;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5);
}
.rf-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.42) saturate(0.8) contrast(1.04) brightness(0.94);
  transition: transform 0.8s var(--ease-spring-soft), filter 0.6s var(--ease-lux);
}
.rf:hover .rf-photo img { 
  transform: scale(1.08); 
  filter: sepia(0.18) saturate(1.1) contrast(1.08) brightness(1.05); 
}
.rf-cap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 0.2rem 0;
  text-align: center;
}
.rf-cap b {
  font-family: var(--serif);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: #f0dfb4;
  text-shadow: 0 1px 2px rgba(20, 14, 6, 0.8);
}
.rf-cap em {
  font-family: var(--latin); font-style: normal;
  font-size: 0.52rem; letter-spacing: 0.24em;
  color: rgba(240, 223, 180, 0.55);
}

/* ---- 尺寸 ---- */
.reel-belt--main .rf-photo { aspect-ratio: 16 / 10; }
.rf--sm { padding: 0.28rem 0.45rem; }
.rf--sm .rf-photo { aspect-ratio: 16 / 10; }
.rf--sm .rf-cap { padding-top: 0.28rem; }
.rf--sm .rf-cap b { font-size: 0.68rem; letter-spacing: 0.22em; text-indent: 0.22em; }

/* ---- 三条带走线与交错 ---- */
.reel-belt--main {
  margin-left: calc(50% - 50vw);
  width: 100vw;
  z-index: 2;
}
.reel-belt--sub-a {
  /* 贴齐视口：带宽恰好 100vw，任何偏移都会在左侧/右侧露边（曾导致左侧缺块） */
  margin-left: calc(50% - 50vw);
  width: 100vw;
  z-index: 1;
  opacity: 0.92;
  transform: rotate(-2.2deg);
}
.reel-belt--sub-b {
  margin-top: -2.2rem;
  margin-left: calc(50% - 50vw);
  width: 100vw;
  z-index: 0;
  opacity: 0.78;
  filter: brightness(0.82);
  transform: rotate(2.4deg);
}
.reel-band--sm { padding: 0.85rem 0 0.8rem; }
.reel-band--sm::before, .reel-band--sm::after { height: 0.32rem; background: repeating-linear-gradient(90deg, rgba(16,12,7,0.9) 0 0.45rem, transparent 0.45rem 1.1rem); }
.reel-band--sm::before { top: 0.22rem; }
.reel-band--sm::after { bottom: 0.22rem; }

/* ---- 传动：入屏才开始走线，出屏静止 ---- */
.reel-anim-l, .reel-anim-r { animation-play-state: paused; }
.is-running .reel-anim-l { animation: reelL 42s linear infinite; }
.is-running .reel-anim-r { animation: reelR 36s linear infinite; }
.is-running .reel-anim-l--slow { animation-duration: 58s; }
@keyframes reelL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes reelR { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* 悬停大带：原地平滑停住便于取帧 —— 必须 pause 保相位，
 * 切勿改 animation-duration（会按 elapsed/新时长重算进度百分比，导致整条带瞬移跳变） */
.is-running .reel-belt--main:hover .reel-anim-l { animation-play-state: paused; }
.reel-stage.is-pulled .reel-anim-l,
.reel-stage.is-pulled .reel-anim-r,
.reel-stage.is-hold .reel-anim-l,
.reel-stage.is-hold .reel-anim-r { animation-play-state: paused; }


/* 移动端 */
@media (max-width: 560px) {
  .reel-stage { gap: 1.1rem; }
  .reel-belt--main .rf { width: 46vw; }
  .rf--sm { width: 30vw; }
  .reel-belt--sub-a { margin-left: calc(50% - 50vw); }
  .reel-belt--sub-b { margin-top: -1.8rem; margin-left: calc(50% - 50vw); }
  .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; }
}

/* 取帧查看：等比放大，点击空白放回 */
.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-frame {
  position: relative;
  max-width: min(880px, 92vw);
  cursor: default;
}
.pulled-close {
  position: absolute;
  top: -0.9rem;
  right: -0.9rem;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.55);
  background: rgba(14,13,10,0.92);
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.55);
  transition: transform 0.3s var(--ease-spring), background 0.3s, box-shadow 0.3s;
}
.pulled-close:hover { 
  transform: rotate(90deg) scale(1.1); 
  background: rgba(30,26,18,0.96); 
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}
.pulled-photo {
  position: relative;
  padding: clamp(0.6rem, 1.4vw, 1rem);
  background: linear-gradient(165deg, #f4ead4, #e6d8b8);
  border: 1px solid rgba(94,74,38,0.45);
  box-shadow: 0 50px 140px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(255,250,232,0.55);
  overflow: hidden;
}
/* 相纸漏光微光扫过 */
.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;
}
@keyframes pulled-shine {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}
.pulled-photo img {
  display: block;
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: #0d0c0a;
}
.pulled-cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.1rem 1rem 0.4rem;
  text-align: center;
}
.pulled-cap .frame-label { font-size: 1.3rem; }
.pulled-cap .frame-en { font-size: 0.62rem; }
.pulled-hint {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
}

.pulled-enter-active, .pulled-leave-active { transition: opacity 0.45s var(--ease-lux); }
.pulled-enter-active .pulled-frame, .pulled-leave-active .pulled-frame {
  transition: transform 0.7s var(--ease-spring-soft), opacity 0.45s;
}
.pulled-enter-from, .pulled-leave-to { opacity: 0; }
.pulled-enter-from .pulled-frame { transform: scale(0.55) rotate(-3deg); }
.pulled-leave-to .pulled-frame { transform: scale(0.7) rotate(2deg); }

/* ============ 核心团队（名册索引 + 大幅肖像预览） TeamSection ============
 * 桌面端：左名册（大号排印姓名 + 职位）右肖像（交叉淡化切换）
 * 移动端（<768px）：降级为纵向卡片列表（照片在上、信息在下）
 * 旧扑克牌扇形/抽牌/档案卡样式已全部移除（档案抽屉通用样式保留在 loader.css） */
.team { background: var(--bg-0); overflow: hidden; }

.team-index {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

/* ---- 名册列表 ---- */
.team-roster { border-top: 1px solid var(--line-soft); }
.team-row {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 1.2rem;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 0.45s, padding-left 0.55s var(--ease-spring-soft);
}
/* 当前行：左侧金色指示条弹入 + 浅金底色 + 微位移 */
.team-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.team-row:hover { background: rgba(212, 175, 55, 0.045); }
.team-row.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.09), transparent 72%);
  padding-left: 1.9rem;
}
.team-row.active::before { transform: scaleY(1); }
/* 名册行同时挂 v-reveal：合并入场过渡与行交互过渡，互不覆盖 */
.team-row.reveal {
  transition: opacity 1.05s var(--ease-lux),
              transform 1.05s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 1.05s var(--ease-lux),
              background 0.45s,
              padding-left 0.55s var(--ease-spring-soft);
}

.team-row-idx {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint) !important;
  transition: color 0.4s;
}
.team-row.active .team-row-idx { color: var(--gold) !important; }
.team-row-name {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.1vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.26em;
  transition: color 0.4s, letter-spacing 0.6s var(--ease-lux);
}
.team-row.active .team-row-name { color: var(--gold-hi); letter-spacing: 0.3em; }
.team-row-role {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
}
.team-row-bio { display: none; }   /* 桌面端简介收在预览区，移动端卡片展开 */
.team-row-en {
  font-family: var(--latin);
  font-style: italic;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-align: right;
  max-width: 9rem;
  transition: color 0.4s;
}
.team-row.active .team-row-en { color: var(--ink-dim); }
.team-row-photo { display: none; }  /* 移动端卡片才显示 */

/* ---- 大幅肖像预览 ---- */
.team-preview { position: sticky; top: 6.5rem; }
.team-preview-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: #131009;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6);
}
.team-preview-frame::after {
  content: '';
  position: absolute;
  inset: 0.9rem;
  border: 1px solid rgba(245, 227, 172, 0.25);
  pointer-events: none;
}
.team-preview-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: saturate(0.95);
}
.team-preview-info { margin-top: 1.8rem; }
.tp-en {
  font-family: var(--latin);
  font-style: italic;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.tp-name {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.26em;
}
.tp-role { margin-top: 0.55rem; color: var(--ink-dim); letter-spacing: 0.2em; font-size: 0.92rem; }
.team-preview-info .hairline { margin: 1.5rem 0; }
.tp-bio { color: var(--ink-dim); line-height: 2.1; font-size: 0.94rem; }
.tp-skills { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tp-skills span {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-hi);
  transition: background 0.4s, box-shadow 0.4s;
}
.tp-skills span:hover { background: rgba(212, 175, 55, 0.14); box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
.tp-motto {
  margin-top: 1.8rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  line-height: 1.95;
}

/* ---- 移动端（<768px）：纵向卡片列表，照片在上、姓名职位简介在下 ---- */
@media (max-width: 768px) {
  .team-index { grid-template-columns: 1fr; gap: 0; }
  .team-preview { display: none; }
  .team-roster { border-top: none; display: flex; flex-direction: column; gap: 2.2rem; }
  .team-row {
    display: block;
    padding: 0 0 1.6rem;
    border: 1px solid var(--line-soft);
    background: linear-gradient(165deg, rgba(236, 229, 216, 0.035), transparent 55%);
    cursor: default;
  }
  .team-row::before { display: none; }
  .team-row.active { background: linear-gradient(165deg, rgba(236, 229, 216, 0.035), transparent 55%); padding-left: 0; }
  .team-row-photo {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    margin-bottom: 1.2rem;
  }
  .team-row-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 28%;
    filter: saturate(0.92);
  }
  .team-row-idx { display: none; }
  .team-row-main { padding: 0 1.3rem; }
  .team-row-name { font-size: 1.35rem; }
  .team-row.active .team-row-name { color: inherit; letter-spacing: 0.26em; }
  .team-row-role { color: var(--gold); }
  .team-row-bio {
    display: block;
    margin-top: 0.9rem;
    color: var(--ink-dim);
    font-size: 0.88rem;
    line-height: 1.95;
  }
  .team-row-en { display: block; text-align: left; max-width: none; padding: 0.7rem 1.3rem 0; }
}

/* ============ 作品档案抽屉：分类切换过渡（portfolio 使用） ============ */
.fade-slide-enter-active, .fade-slide-leave-active { transition: opacity 0.35s var(--ease-lux), transform 0.35s var(--ease-lux); }
.fade-slide-enter-from { opacity: 0; transform: translateY(18px); }
.fade-slide-leave-to { opacity: 0; transform: translateY(-12px); }

/* ============ 附加活效：JL 金点呼吸（强化光晕） ============ */
.jl-dot {
  animation: dotPulse 2.6s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
  filter: drop-shadow(0 0 5px var(--gold-hi));
}
@keyframes dotPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); filter: drop-shadow(0 0 2px var(--gold-hi)); }
  50% { opacity: 1; transform: scale(1.5); filter: drop-shadow(0 0 10px var(--gold-hi)); }
}

/* 移动端胶卷区纵向留白收敛 */
@media (max-width: 560px) {
  .film-section { padding: 4.5rem 0 4rem; }
}
