/* 光感影视站点增强层 · 2026-11-23
   独立文件，不覆盖原样式。原站样式优先级靠后加载即可覆盖这里的部分属性。 */

/* ---------- 1. 移动端锚点导航 ---------- */
.x-chipnav {
  position: fixed;
  z-index: 99;
  top: 66px;
  left: 0;
  right: 0;
  display: none;
  gap: 8px;
  padding: 10px 15px;
  overflow-x: auto;
  scrollbar-width: none;
  background: linear-gradient(#070809e6, #07080999 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.x-chipnav::-webkit-scrollbar { display: none; }
.x-chipnav.is-on { opacity: 1; transform: none; pointer-events: auto; }
.x-chipnav a {
  flex: 0 0 auto;
  padding: 8px 15px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 99px;
  background: rgba(255,255,255,.04);
  color: #d8dadd;
  font-size: 12px;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.x-chipnav a.is-active { background: #fff; border-color: #fff; color: #070809; }
@media (max-width: 700px) {
  .x-chipnav { display: flex; }
  /* 锚点跳转时给固定导航让位 */
  #service, #cases, #gear, #films { scroll-margin-top: 132px; }
}

/* ---------- 2. 精选项目 · 手牌扇形 ---------- */
.x-featured { position: relative; padding: 96px 0 110px; overflow: hidden; }
.x-featured-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 54px;
}
.x-featured-head small {
  display: block;
  margin-bottom: 16px;
  color: #898d94;
  font-size: 10px;
  letter-spacing: .18em;
}
.x-featured-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -.05em;
  font-weight: 620;
}
.x-featured-head p {
  max-width: 26em;
  margin: 0 0 6px;
  color: #777;
  font-size: 13px;
  line-height: 1.7;
}

.x-fan {
  position: relative;
  height: 424px;
  margin-top: 10px;
  --mid: 2.5;
  --gap: 128px;
  --spread: 7.5deg;
}
.x-fan-card {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 250px;
  height: 336px;
  margin-left: -125px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 3px;
  background: #111;
  overflow: hidden;
  cursor: pointer;
  transform:
    translateX(calc((var(--i) - var(--mid)) * var(--gap)))
    rotate(calc((var(--i) - var(--mid)) * var(--spread)))
    translateY(calc((var(--i) - var(--mid)) * (var(--i) - var(--mid)) * 5px));
  transition: transform .7s var(--ease), box-shadow .7s var(--ease), border-color .4s;
  will-change: transform;
}
.x-fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.78) saturate(.9);
  transition: filter .6s var(--ease), transform 1.2s var(--ease);
}
.x-fan-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000c, #0000 52%);
  pointer-events: none;
}
.x-fan-card figcaption {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 20px;
  margin: 0;
  text-align: left;
}
.x-fan-card figcaption b {
  display: block;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 1px 10px #000c;
}
.x-fan-card.is-hot { z-index: 30 !important; }
.x-fan-card.is-hot img { filter: brightness(1) saturate(1); }
.x-fan-card .x-name { display: none; }

/* 扇下方的项目名条 */
.x-fan-labels {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 54px;
}
.x-fan-labels button {
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 99px;
  background: rgba(255,255,255,.02);
  color: #b6bbc1;
  font-size: 11.5px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.x-fan-labels button:hover,
.x-fan-labels button:focus-visible {
  border-color: rgba(255,255,255,.5);
  background: #fff;
  color: #070809;
}
.x-fan-card:hover,
.x-fan-card:focus-visible {
  z-index: 20 !important;
  border-color: rgba(255,255,255,.45);
  box-shadow: 0 30px 70px -18px #000;
}
.x-fan-card:hover img,
.x-fan-card:focus-visible img { filter: brightness(1) saturate(1); }
.x-fan-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* 悬停整组展开 */
.x-fan:hover { --gap: 186px; --spread: 10.5deg; }
.x-fan:hover .x-fan-card {
  transform:
    translateX(calc((var(--i) - var(--mid)) * var(--gap)))
    rotate(calc((var(--i) - var(--mid)) * var(--spread)))
    translateY(calc((var(--i) - var(--mid)) * (var(--i) - var(--mid)) * 5px - 12px));
}

.x-featured-hint {
  display: none;
  margin: 22px 0 0;
  color: #5f6368;
  font-size: 11px;
  letter-spacing: .1em;
  text-align: center;
}

@media (max-width: 1100px) {
  .x-fan { --gap: 104px; height: 384px; }
  .x-fan:hover { --gap: 150px; }
  .x-fan-card { width: 208px; height: 280px; margin-left: -104px; }
}
@media (max-width: 900px) {
  .x-fan { --gap: 84px; height: 340px; }
  .x-fan:hover { --gap: 116px; }
  .x-fan-card { width: 172px; height: 232px; margin-left: -86px; }
  .x-fan-card figcaption b { font-size: 13px; }
}
@media (max-width: 700px) {
  .x-featured { padding: 64px 0 70px; }
  .x-featured-head { display: block; margin-bottom: 30px; }
  .x-featured-head p { margin-top: 18px; }
  .x-fan {
    display: flex;
    gap: 12px;
    height: auto;
    margin: 0 -15px;
    padding: 4px 15px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    perspective: none;
  }
  .x-fan::-webkit-scrollbar { display: none; }
  .x-fan-card {
    position: relative;
    left: auto;
    bottom: auto;
    flex: 0 0 76%;
    width: auto;
    height: auto;
    aspect-ratio: 228 / 306;
    margin: 0;
    transform: none !important;
    scroll-snap-align: center;
  }
  .x-fan-card .x-num { display: none; }
  .x-fan-card .x-name { display: block; }
  .x-fan:hover .x-fan-card { transform: none !important; }
  .x-fan-labels { display: none; }
  .x-featured-hint { display: none; }
}

/* ---------- 3. 案例筛选 ---------- */
.x-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}
.x-filters button {
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 99px;
  background: transparent;
  color: #9aa0a6;
  font-size: 11.5px;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.x-filters button:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.x-filters button[aria-pressed="true"] { background: #fff; border-color: #fff; color: #070809; }
.x-case-hidden { display: none !important; }

/* 案例卡类别标签 */
.x-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 3px;
  color: #8f959c;
  font-size: 9px;
  letter-spacing: .08em;
  vertical-align: 1px;
}

/* ---------- 4. 联系浮层 ---------- */
.x-contact {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.x-contact-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border: 0;
  border-radius: 99px;
  background: #fff;
  color: #070809;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 14px 40px -10px #000c;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.x-contact-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -12px #000; }
.x-contact-btn svg { width: 16px; height: 16px; }
.x-contact-panel {
  width: 268px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: #101214f2;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -20px #000;
  opacity: 0;
  transform: translateY(10px) scale(.97);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.x-contact.is-open .x-contact-panel { opacity: 1; transform: none; pointer-events: auto; }
.x-contact-panel h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.x-contact-panel > p { margin: 0 0 16px; color: #8b9198; font-size: 11.5px; line-height: 1.6; }
.x-contact-qr {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: 16px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 10px;
  color: #5f6368;
  font-size: 11px;
  text-align: center;
  line-height: 1.6;
}
.x-contact-qr img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.x-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,.09);
}
.x-contact-row span { color: #8b9198; font-size: 11px; letter-spacing: .06em; }
.x-contact-row a, .x-contact-row b {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: .02em;
}
.x-contact-row a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 5. 视频播放反馈 ---------- */
.film-status { min-height: 1em; }

@media (max-width: 700px) {
  .x-contact { right: 14px; bottom: 14px; }
  .x-contact-btn { padding: 11px 17px; font-size: 12px; }
  .x-contact-panel { width: min(268px, calc(100vw - 28px)); }
}

@media (prefers-reduced-motion: reduce) {
  .x-fan:hover { --spread: 9deg; }
  .x-fan-card, .x-chipnav, .x-contact-panel { transition-duration: .01s; }
}
