/* ==========================================================================
   fx.css — 全站炫酷视觉增强层（Neon Cinematic）
   纯 CSS 叠加层：不改动任何 DOM 结构与 JS 逻辑。
   加载顺序：base.css -> 各页样式 -> fx.css（最后加载以覆盖）
   ========================================================================== */

/* ---------- 1. 全局霓虹氛围背景（固定网格 + 双色光晕 + 顶部流光） ---------- */
html,
body {
  background-color: #07070b !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, 0.045) 1px, transparent 1px),
    radial-gradient(ellipse 70% 55% at 15% -5%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 10%, rgba(34, 211, 238, 0.13), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(236, 72, 153, 0.1), transparent 60%);
  background-size: 46px 46px, 46px 46px, 100% 100%, 100% 100%, 100% 100%;
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}

/* 顶部一条流动的霓虹细线 */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--neon-violet), var(--neon-cyan), var(--neon-pink), transparent);
  background-size: 300% 100%;
  animation: fx-flowline 8s linear infinite;
  opacity: 0.85;
}
@keyframes fx-flowline {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ---------- 2. 通用标题：渐变发光大字 ---------- */
.hero-title,
.home-section-title,
.showcase-title,
.acct-h1,
.acct-section-title {
  background: linear-gradient(100deg, #ffffff 8%, #cfc4ff 42%, var(--neon-cyan) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 18px rgba(124, 92, 255, 0.28));
}

/* ---------- 3. 通用按钮：霓虹渐变 + 流光 + 悬浮辉光 ---------- */
.btn-primary,
.acct-btn-primary,
.acct-btn,
.primary-btn,
.login-submit,
.generate-all,
.acct-filter-btn.is-active {
  position: relative;
  overflow: hidden;
  background: var(--grad-neon) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  box-shadow: 0 6px 22px rgba(124, 92, 255, 0.4), 0 0 0 0 rgba(34, 211, 238, 0.5) !important;
  transition: transform 0.18s ease, box-shadow 0.25s ease !important;
}
.btn-primary::after,
.acct-btn-primary::after,
.primary-btn::after,
.login-submit::after,
.generate-all::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: fx-sheen 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes fx-sheen {
  0%, 55% { left: -120%; }
  100% { left: 160%; }
}
.btn-primary:hover,
.acct-btn-primary:hover,
.primary-btn:hover,
.login-submit:hover,
.generate-all:hover {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 10px 34px rgba(124, 92, 255, 0.6), 0 0 26px rgba(34, 211, 238, 0.35) !important;
}

/* 幽灵按钮：描边发光 */
.btn-ghost,
.acct-btn-ghost,
.ghost-btn {
  border-color: rgba(124, 92, 255, 0.55) !important;
  background: rgba(124, 92, 255, 0.07) !important;
  transition: all 0.22s ease !important;
}
.btn-ghost:hover,
.acct-btn-ghost:hover,
.ghost-btn:hover {
  border-color: var(--neon-cyan) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.28), inset 0 0 16px rgba(124, 92, 255, 0.12);
}

/* ---------- 4. 玻璃卡片 + 发光描边 + 悬浮 ---------- */
.scenario-card,
.movie-card,
.acct-card,
.login-card,
.stat-card,
.pay-channel,
.sample-card,
.preview-card,
.card {
  position: relative;
  background: linear-gradient(160deg, rgba(30, 27, 48, 0.72), rgba(15, 15, 22, 0.78)) !important;
  border: 1px solid rgba(124, 92, 255, 0.18) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.28s, box-shadow 0.28s !important;
}
.scenario-card:hover,
.movie-card:hover,
.acct-card:hover,
.sample-card:hover,
.preview-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(124, 92, 255, 0.75) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(124, 92, 255, 0.35), 0 0 34px rgba(124, 92, 255, 0.28) !important;
}

/* 卡片顶部一道渐变高光 */
.scenario-card::before,
.movie-card::before,
.acct-card::before,
.login-card::before,
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190, 170, 255, 0.85), transparent);
  opacity: 0.7;
  pointer-events: none;
  z-index: 2;
}

/* ---------- 5. Hero 首屏强化 ---------- */
.hero-logo {
  filter: drop-shadow(0 0 26px rgba(124, 92, 255, 0.85)) drop-shadow(0 0 46px rgba(34, 211, 238, 0.45));
  animation: fx-logo-float 5s ease-in-out infinite;
}
@keyframes fx-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-subtitle {
  color: #f2eeff !important;
  text-shadow: 0 0 20px rgba(124, 92, 255, 0.55), 0 2px 14px rgba(0, 0, 0, 0.7) !important;
}
.hero-tagline {
  color: rgba(210, 220, 255, 0.82) !important;
}
.hero-actions .btn-primary {
  padding: 15px 44px !important;
  font-size: 1.08rem !important;
  letter-spacing: 0.06em;
  border-radius: 999px !important;
  animation: fx-cta-pulse 2.8s ease-in-out infinite !important;
}
@keyframes fx-cta-pulse {
  0%, 100% { box-shadow: 0 6px 26px rgba(124, 92, 255, 0.5), 0 0 0 0 rgba(34, 211, 238, 0.35); }
  50% { box-shadow: 0 8px 34px rgba(124, 92, 255, 0.7), 0 0 0 12px rgba(34, 211, 238, 0); }
}

/* ---------- 6. 区块标题：两侧霓虹装饰线 ---------- */
.home-section-header,
.showcase-header {
  position: relative;
}
.home-section-title::after,
.showcase-title::after {
  content: "";
  display: block;
  width: 76px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon-violet), var(--neon-cyan));
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.7);
}

/* ---------- 7. 场景卡图标与编号徽章发光 ---------- */
.scenario-icon {
  color: #fff !important;
  background: var(--grad-neon-soft) !important;
  border: 1px solid rgba(124, 92, 255, 0.4);
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.28);
}
.scenario-card .scenario-media::after {
  background: linear-gradient(to bottom, transparent 30%, rgba(10, 8, 24, 0.78)) !important;
}

/* 闭环步骤卡片 01/02/03 数字徽章 */
[class*="step-num"],
.scenario-card b,
.acct-stat-value {
  text-shadow: 0 0 18px rgba(124, 92, 255, 0.5);
}

/* ---------- 8. 数据/统计数字发光 ---------- */
.acct-stat-value,
.acct-balance {
  background: linear-gradient(100deg, #fff, var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.3));
}

/* ---------- 9. 表格与输入：精致暗玻璃 ---------- */
.acct-table,
.data-table {
  background: rgba(18, 17, 28, 0.6) !important;
  border: 1px solid rgba(124, 92, 255, 0.16) !important;
  border-radius: 12px !important;
  overflow: hidden;
}
.acct-table th,
.data-table th {
  color: #cbb9ff !important;
  letter-spacing: 0.03em;
}
.acct-table tbody tr:hover,
.data-table tbody tr:hover {
  background: rgba(124, 92, 255, 0.09) !important;
}
.acct-input,
.login-input,
.field input,
.field textarea {
  background: rgba(10, 10, 18, 0.7) !important;
  border: 1px solid rgba(124, 92, 255, 0.24) !important;
  color: #fff !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
.acct-input:focus,
.login-input:focus,
.field input:focus,
.field textarea:focus {
  outline: none !important;
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14), 0 0 18px rgba(124, 92, 255, 0.2) !important;
}

/* ---------- 10. 标签 / 徽章 / 状态：霓虹化 ---------- */
.acct-pkg-badge,
.acct-pkg-tag,
.badge,
.card-badge,
.status-badge,
.filter-chip.is-active {
  border-color: rgba(124, 92, 255, 0.55) !important;
  color: #ded4ff !important;
  background: rgba(124, 92, 255, 0.14) !important;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.2);
}

/* ---------- 11. 套餐卡：主打款强调 ---------- */
.acct-pkgs .acct-pkg:nth-child(2),
.acct-pkgs .acct-pkg.is-recommended {
  border-color: rgba(34, 211, 238, 0.6) !important;
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.16), inset 0 0 22px rgba(124, 92, 255, 0.08) !important;
}

/* ---------- 12. 作品展示墙：暗色电影质感 ---------- */
.movie-grid .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(124, 92, 255, 0.18), transparent 45%);
  pointer-events: none;
}
.card-play svg,
.card-play [class*="play"] {
  filter: drop-shadow(0 0 14px rgba(124, 92, 255, 0.9));
}

/* ---------- 13. 入场动画：滚动进入时依次浮现（安全版：默认可见，仅做轻微位移） ---------- */
@keyframes fx-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.home-section,
.showcase {
  animation: fx-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.home-section:nth-of-type(1) { animation-delay: 0.04s; }
.home-section:nth-of-type(2) { animation-delay: 0.1s; }
.home-section:nth-of-type(3) { animation-delay: 0.16s; }
.home-section:nth-of-type(4) { animation-delay: 0.22s; }
.home-section:nth-of-type(5) { animation-delay: 0.28s; }
.showcase { animation-delay: 0.34s; }

/* 场景卡交错浮现 */
.scenario-card {
  animation: fx-rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.scenario-card:nth-child(1) { animation-delay: 0.08s; }
.scenario-card:nth-child(2) { animation-delay: 0.14s; }
.scenario-card:nth-child(3) { animation-delay: 0.2s; }
.scenario-card:nth-child(4) { animation-delay: 0.26s; }
.scenario-card:nth-child(5) { animation-delay: 0.32s; }
.scenario-card:nth-child(6) { animation-delay: 0.38s; }
.scenario-card:nth-child(7) { animation-delay: 0.44s; }

/* ---------- 14. 顶栏 logo 与导航 ---------- */
.topbar,
.landing-header,
[class*="site-header"] {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(124, 92, 255, 0.14) !important;
}

/* ---------- 15. 滚动条霓虹化 ---------- */
::-webkit-scrollbar-track { background: #08080e !important; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.75), rgba(34, 211, 238, 0.6)) !important;
  border-radius: 8px !important;
}
::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan) !important; }

::selection { background: rgba(124, 92, 255, 0.45) !important; }

/* ---------- 16. 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .home-section, .showcase { opacity: 1 !important; }
}

/* ==========================================================================
   17. 站点互通导航（内联样式覆盖）— 霓虹化
   ========================================================================== */
.site-bridge {
  background: rgba(10, 8, 20, 0.86) !important;
  border-bottom: 1px solid rgba(124, 92, 255, 0.28) !important;
  box-shadow: 0 4px 30px rgba(124, 92, 255, 0.12) !important;
}
.site-bridge .sb-brand .sb-logo {
  background: var(--grad-neon) !important;
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.6) !important;
}
.site-bridge .sb-nav a.sb-active {
  color: #fff !important;
  background: rgba(124, 92, 255, 0.22) !important;
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.55), 0 0 14px rgba(124, 92, 255, 0.2) !important;
}
.site-bridge .sb-nav a.sb-cta {
  background: var(--grad-neon) !important;
  box-shadow: 0 4px 18px rgba(124, 92, 255, 0.5) !important;
}

/* ==========================================================================
   18. 自助全流程闭环三卡片（内联样式覆盖）— 玻璃拟态 + 霓虹描边
   命中 #selfserve 内的 a 卡片
   ========================================================================== */
#selfserve a[style] {
  background: linear-gradient(160deg, rgba(30, 27, 48, 0.85), rgba(15, 15, 22, 0.9)) !important;
  border: 1px solid rgba(124, 92, 255, 0.28) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(190, 170, 255, 0.12) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#selfserve a[style]:hover {
  border-color: rgba(34, 211, 238, 0.7) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 28px rgba(124, 92, 255, 0.3) !important;
  transform: translateY(-6px) !important;
}
#selfserve a[style] > div:first-child {
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.4) !important;
}
#selfserve a[style] > span:last-child {
  text-shadow: 0 0 12px rgba(124, 92, 255, 0.5);
}

/* ==========================================================================
   19. 登录/注册页标题与品牌发光
   ========================================================================== */
.login-title,
.login-brand,
.login-page .login-title {
  background: linear-gradient(100deg, #ffffff 10%, var(--neon-violet) 60%, var(--neon-cyan) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  filter: drop-shadow(0 2px 14px rgba(124, 92, 255, 0.3));
}
.login-brand .brand-mark,
.login-brand > span:first-child,
.login-card .login-logo {
  filter: drop-shadow(0 0 16px rgba(124, 92, 255, 0.75));
}
/* 登录页中心光晕加强 */
.login-page::before,
.login-main::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 38%;
  width: 620px;
  height: 620px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124, 92, 255, 0.14), rgba(34, 211, 238, 0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   20. 内页 Tab 激活态、统计卡左边光、套餐价格发光
   ========================================================================== */
.acct-tab.is-active,
.acct-tabs .is-active {
  color: #fff !important;
  text-shadow: 0 0 12px rgba(124, 92, 255, 0.5);
}
.acct-tab.is-active::after,
.acct-tabs .is-active::after {
  background: linear-gradient(90deg, var(--neon-violet), var(--neon-cyan)) !important;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.7) !important;
}
.acct-stat,
.stat-card {
  border-left: 2px solid rgba(124, 92, 255, 0.5) !important;
}
.acct-pkg-price,
.acct-pkg-credits {
  text-shadow: 0 0 16px rgba(124, 92, 255, 0.4);
}
.acct-hint,
.acct-desc,
.home-section-sub,
.showcase-sub {
  color: rgba(190, 195, 225, 0.68) !important;
}
