/* 莲花演说首页高级感特效 — 独立于布局样式 */

:root {
  --fx-brand: #ff8900;
  --fx-brand-soft: rgba(255, 137, 0, 0.18);
  --fx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fx-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 顶部阅读进度 ---------- */
.fx-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 10050;
  background: linear-gradient(90deg, #ffb347, var(--fx-brand), #e07000);
  box-shadow: 0 0 12px rgba(255, 137, 0, 0.45);
  pointer-events: none;
  transform-origin: left center;
}

/* ---------- 氛围光斑 ---------- */
.fx-ambiance {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  will-change: transform;
  animation: fxOrbFloat 18s var(--fx-ease) infinite alternate;
}

.fx-orb--1 {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  top: -8%;
  right: -6%;
  background: radial-gradient(circle, rgba(255, 167, 65, 0.55), transparent 68%);
  animation-duration: 22s;
}

.fx-orb--2 {
  width: 36vw;
  height: 36vw;
  max-width: 420px;
  max-height: 420px;
  bottom: 18%;
  left: -10%;
  background: radial-gradient(circle, rgba(255, 137, 0, 0.28), transparent 70%);
  animation-duration: 26s;
  animation-delay: -6s;
}

.fx-orb--3 {
  width: 28vw;
  height: 28vw;
  max-width: 320px;
  max-height: 320px;
  top: 48%;
  right: 12%;
  background: radial-gradient(circle, rgba(224, 112, 0, 0.2), transparent 72%);
  animation-duration: 20s;
  animation-delay: -3s;
}

@keyframes fxOrbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, -5%, 0) scale(1.08); }
}

/* 内容层抬到氛围之上（侧栏必须保持 fixed，勿写进此组） */
.lh-header,
.lh-hero,
.lh-section,
.lh-footer {
  position: relative;
  z-index: 1;
}

.lh-header {
  z-index: 1000;
}

.lh-drawer-bg {
  z-index: 10010;
}

.lh-drawer {
  z-index: 10020;
}

/* ---------- 鼠标柔光跟随（桌面） ---------- */
.fx-spotlight {
  position: fixed;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(255, 137, 0, 0.12), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: soft-light;
  will-change: transform;
}

body.fx-pointer-fine .fx-spotlight.is-on {
  opacity: 1;
}

/* ---------- 顶栏滚动态 ---------- */
.lh-header.fx-scrolled {
  box-shadow: 0 8px 28px rgba(28, 20, 8, 0.06);
  background: rgba(255, 255, 255, 0.9);
}

.lh-header.fx-scrolled .lh-logo img {
  height: 44px;
  transition: height 0.35s var(--fx-ease);
}

.lh-logo img {
  transition: height 0.35s var(--fx-ease);
}

/* ---------- 首屏文字逐行高级入场 ---------- */
.fx-split-line {
  display: block;
  overflow: hidden;
}

.fx-split-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  filter: blur(6px);
  transition:
    transform 0.95s var(--fx-ease-out),
    opacity 0.85s var(--fx-ease),
    filter 0.85s var(--fx-ease);
}

.lh-hero.is-ready .fx-split-inner {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

.lh-hero.is-ready .lh-hero-brand .fx-split-inner { transition-delay: 0.08s; }
.lh-hero.is-ready .lh-hero-title .fx-split-inner { transition-delay: 0.22s; }
.lh-hero.is-ready .lh-hero-sub .fx-split-inner { transition-delay: 0.38s; }
.lh-hero.is-ready .lh-hero-actions {
  opacity: 0;
  transform: translateY(18px);
  animation: fxRiseIn 0.9s var(--fx-ease-out) 0.55s forwards;
}

@keyframes fxRiseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 覆盖布局里旧的 hero 动画，避免双重闪烁 */
.lh-hero .lh-hero-brand,
.lh-hero .lh-hero-title,
.lh-hero .lh-hero-sub,
.lh-hero .lh-hero-actions {
  animation: none !important;
  opacity: 1;
}

/* ---------- 首屏光带扫过 ---------- */
.lh-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: fxHeroSheen 7s var(--fx-ease) 1.2s infinite;
}

@keyframes fxHeroSheen {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* ---------- 区块交错显现 ---------- */
.fx-stagger > * {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.75s var(--fx-ease-out),
    transform 0.75s var(--fx-ease-out),
    box-shadow 0.35s ease;
}

.lh-reveal.is-in .fx-stagger > *:nth-child(1) { transition-delay: 0.04s; }
.lh-reveal.is-in .fx-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.lh-reveal.is-in .fx-stagger > *:nth-child(3) { transition-delay: 0.16s; }
.lh-reveal.is-in .fx-stagger > *:nth-child(4) { transition-delay: 0.22s; }
.lh-reveal.is-in .fx-stagger > *:nth-child(5) { transition-delay: 0.28s; }
.lh-reveal.is-in .fx-stagger > *:nth-child(6) { transition-delay: 0.34s; }
.lh-reveal.is-in .fx-stagger > *:nth-child(7) { transition-delay: 0.4s; }
.lh-reveal.is-in .fx-stagger > *:nth-child(8) { transition-delay: 0.46s; }

.lh-reveal.is-in .fx-stagger > * {
  opacity: 1;
  transform: translateY(0);
}

/* 标题线装饰划入 */
.lh-head-center .lh-heading {
  position: relative;
}

.lh-reveal.is-in .lh-head-center .lh-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--fx-brand), transparent);
  transform: scaleX(0);
  animation: fxLineIn 0.7s var(--fx-ease-out) 0.15s forwards;
}

@keyframes fxLineIn {
  to { transform: scaleX(1); }
}

/* ---------- 卡片磁吸倾斜 / 光泽 ---------- */
.fx-tilt {
  transform-style: preserve-3d;
  transition: transform 0.35s var(--fx-ease), box-shadow 0.35s ease;
  will-change: transform;
}

.fx-tilt::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--fx-mx, 50%) var(--fx-my, 50%),
    rgba(255, 255, 255, 0.28),
    transparent 42%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.fx-tilt:hover::before {
  opacity: 1;
}

.lh-why-item.fx-tilt,
.lh-step.fx-tilt,
.lh-outcome.fx-tilt,
.lh-compare-panel.fx-tilt {
  position: relative;
  overflow: hidden;
}

.lh-why-item.fx-tilt:hover,
.lh-step.fx-tilt:hover {
  box-shadow: 0 22px 48px rgba(224, 112, 0, 0.22);
}

.lh-pain-item.fx-lift {
  transition: transform 0.35s var(--fx-ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.lh-pain-item.fx-lift:hover {
  transform: translateX(6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border-left-color: #e07000;
}

.lh-gain-item.fx-lift,
.lh-six-item.fx-lift {
  transition: transform 0.4s var(--fx-ease);
}

.lh-gain-item.fx-lift:hover,
.lh-six-item.fx-lift:hover {
  transform: translateY(-10px);
}

.lh-gain-item.fx-lift img,
.lh-six-item.fx-lift img {
  transition: transform 0.55s var(--fx-ease), filter 0.4s ease;
}

.lh-gain-item.fx-lift:hover img,
.lh-six-item.fx-lift:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

/* ---------- 按钮光扫 ---------- */
.lh-btn-primary {
  position: relative;
  overflow: hidden;
}

.lh-btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 36%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.38),
    transparent
  );
  transform: skewX(-18deg);
  transition: none;
}

.lh-btn-primary:hover::after {
  animation: fxBtnSheen 0.7s var(--fx-ease);
}

@keyframes fxBtnSheen {
  from { left: -40%; }
  to { left: 130%; }
}

/* ---------- 数字圈呼吸 ---------- */
.lh-pain-num {
  transition: transform 0.35s var(--fx-ease), background 0.35s ease, color 0.35s ease;
}

.lh-pain-item:hover .lh-pain-num {
  transform: scale(1.08);
  background: var(--fx-brand);
  color: #fff;
}

.lh-step-index {
  transition: color 0.4s ease, transform 0.4s var(--fx-ease);
}

.lh-step:hover .lh-step-index {
  color: rgba(255, 137, 0, 0.28);
  transform: scale(1.06);
}

/* ---------- 视频框高级边光 ---------- */
.lh-video-frame {
  box-shadow:
    0 0 0 1px rgba(255, 137, 0, 0.18),
    0 24px 60px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.45s ease, transform 0.45s var(--fx-ease);
}

.lh-video-frame:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 137, 0, 0.35),
    0 28px 70px rgba(224, 112, 0, 0.2);
}

/* ---------- 结果区焦点呼吸 ---------- */
.lh-outcome.is-focus {
  animation: fxFocusPulse 4.5s ease-in-out infinite;
}

@keyframes fxFocusPulse {
  0%, 100% { box-shadow: 0 16px 40px rgba(224, 112, 0, 0.25); }
  50% { box-shadow: 0 22px 56px rgba(224, 112, 0, 0.4); }
}

/* ---------- 导航下划线 ---------- */
.lh-nav a:not(.lh-nav-cta) {
  position: relative;
}

.lh-nav a:not(.lh-nav-cta)::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1.5px;
  background: var(--fx-brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--fx-ease);
}

.lh-nav a:not(.lh-nav-cta):hover::after,
.lh-nav a.is-active:not(.lh-nav-cta)::after {
  transform: scaleX(1);
}

/* ---------- 无障碍：减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .fx-orb,
  .lh-hero::after,
  .lh-outcome.is-focus,
  .fx-spotlight {
    animation: none !important;
  }

  .fx-stagger > *,
  .fx-split-inner,
  .lh-hero.is-ready .lh-hero-actions {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .fx-tilt:hover {
    transform: none !important;
  }
}

@media (max-width: 950px) {
  .fx-spotlight,
  .fx-orb--3 {
    display: none;
  }

  .fx-orb {
    opacity: 0.22;
    filter: blur(60px);
  }

  .fx-tilt:hover {
    transform: none !important;
  }
}

/* 与特效脚本视差配合：停掉布局里的 Ken Burns，避免抢 transform */
.lh-hero-slide {
  animation: none;
  transition: transform 0.45s var(--fx-ease, cubic-bezier(0.22, 1, 0.36, 1));
  transform: scale(1.05);
}

