/**
 * landing-saas-v2.css — 落地页现代 SaaS 高级感（克制版）
 * 原则：层次 / 留白 / 细边框；动效只用 transform+opacity；少 blur、少常驻 will-change。
 */

/* ── Tokens：略压 blur，表面更「产品感」───────────────────────── */
.landing-page {
  --lp-surface-bg: rgba(15, 23, 42, 0.42);
  --lp-surface-border: rgba(255, 255, 255, 0.12);
  --lp-surface-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --lp-surface-blur: 8px;
  --lp-surface-radius: 20px;
  --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lp-lift-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

body.app-theme-light .landing-page {
  --lp-surface-bg: rgba(255, 255, 255, 0.72);
  --lp-surface-border: rgba(15, 23, 42, 0.08);
  --lp-surface-shadow: 0 16px 40px rgba(15, 23, 42, 0.07), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  --lp-lift-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
}

/* 无 backdrop-filter 时仍可读（低端机 / 降级） */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .landing-page {
    --lp-surface-bg: rgba(15, 23, 42, 0.88);
    --lp-surface-blur: 0px;
  }
  body.app-theme-light .landing-page {
    --lp-surface-bg: rgba(255, 255, 255, 0.94);
  }
}

/* ── Scroll reveal：去掉常驻 will-change，减轻合成层压力 ─────── */
.landing-page .sr {
  will-change: auto;
  opacity: 0;
  transform: translateY(18px);
}

.landing-page .sr.visible {
  opacity: 1;
  transform: translateY(0);
}

.landing-page .sr[data-sr] {
  transition:
    opacity 0.55s var(--lp-ease),
    transform 0.55s var(--lp-ease);
}

/* ── Section header：更像 SaaS 文档标题 ───────────────────────── */
.landing-page .lp-section-header {
  margin-bottom: clamp(32px, 4.5vw, 48px);
}

.landing-page .lp-section-header .lp-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.28);
}

body.app-theme-light .landing-page .lp-section-header .lp-section-eyebrow {
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.landing-page .lp-section-header p {
  max-width: 42rem;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
  color: var(--lp-text-muted);
}

/* ── 卡片轻抬起（无滤镜动画）─────────────────────────────────── */
.landing-page .lp-surface.lp-lift,
.landing-page .lp-case-card.lp-surface,
.landing-page .stat-item.lp-surface,
.landing-page .lp-workflow-card.lp-surface,
.landing-page .lp-subtitle-step.lp-surface {
  transition:
    transform 0.28s var(--lp-ease),
    border-color 0.28s ease,
    box-shadow 0.28s var(--lp-ease);
}

@media (hover: hover) and (pointer: fine) {
  .landing-page .lp-case-card.lp-surface:hover,
  .landing-page .stat-item.lp-surface:hover,
  .landing-page .lp-workflow-card.lp-surface:hover,
  .landing-page .lp-subtitle-step.lp-surface:hover {
    transform: translateY(-3px);
    border-color: rgba(165, 180, 252, 0.35);
    box-shadow: var(--lp-lift-shadow);
  }

  body.app-theme-light .landing-page .lp-case-card.lp-surface:hover,
  body.app-theme-light .landing-page .stat-item.lp-surface:hover,
  body.app-theme-light .landing-page .lp-workflow-card.lp-surface:hover,
  body.app-theme-light .landing-page .lp-subtitle-step.lp-surface:hover {
    border-color: rgba(99, 102, 241, 0.28);
  }
}

/* ── Hero CTA：更利落的主按钮 ─────────────────────────────────── */
.landing-page .hero-cta-primary.hero-upload {
  border-radius: 16px;
  box-shadow:
    0 14px 36px rgba(79, 70, 229, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transition:
    transform 0.22s var(--lp-ease),
    box-shadow 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .landing-page .hero-cta-primary.hero-upload:hover:not(:disabled):not(.is-maintenance) {
    transform: translateY(-2px);
    box-shadow:
      0 18px 40px rgba(79, 70, 229, 0.34),
      0 1px 0 rgba(255, 255, 255, 0.22) inset;
  }
}

.landing-page .hero-trust-strip {
  gap: 10px 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.app-theme-light .landing-page .hero-trust-strip {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(15, 23, 42, 0.06);
}

/* Hero 产品窗宽度：chrome 包住 16:9 */
.landing-page .hero-video > .lp-product-chrome {
  width: min(770px, 42vw);
  position: relative;
  border-radius: calc(var(--lp-surface-radius) + 6px);
  padding: 10px 10px 12px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.25);
}

.landing-page .hero-video .video-frame {
  width: 100%;
}

@media (max-width: 767px) {
  .landing-page .hero-video > .lp-product-chrome {
    width: 100%;
    max-width: 100%;
  }
}

.landing-page .lp-product-chrome__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px 10px;
}

.landing-page .lp-product-chrome__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.45);
}

.landing-page .lp-product-chrome__dot:nth-child(1) { background: #f87171; }
.landing-page .lp-product-chrome__dot:nth-child(2) { background: #fbbf24; }
.landing-page .lp-product-chrome__dot:nth-child(3) { background: #34d399; }

.landing-page .lp-product-chrome__title {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(203, 213, 225, 0.7);
  text-transform: uppercase;
}

.landing-page .lp-product-chrome__demo-badge {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.35);
  white-space: nowrap;
}

.landing-page .lp-product-chrome .video-frame {
  width: 100%;
  max-width: 100%;
}

.landing-page .lp-product-chrome .hero-video-shell,
.landing-page .lp-product-chrome .video-placeholder {
  border-radius: 12px;
  overflow: hidden;
}

body.app-theme-light .landing-page .lp-product-chrome {
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

body.app-theme-light .landing-page .lp-product-chrome__title {
  color: #64748b;
}

body.app-theme-light .landing-page .lp-product-chrome__demo-badge {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.28);
}

/* Hero 右侧演示窗：柔和光晕（单层 radial，无动画） */
.landing-page .hero-video .video-glow {
  opacity: 0.55;
  filter: none;
  background: radial-gradient(ellipse 70% 60% at 50% 80%, rgba(99, 102, 241, 0.35), transparent 70%);
}

/* ── 媒体占位槽 ───────────────────────────────────────────────── */
.landing-page .lp-media-slot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.015) 10px,
      rgba(255, 255, 255, 0.015) 11px
    );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-page .lp-media-slot__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
}

.landing-page .lp-media-slot__badge {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.landing-page .lp-media-slot__spec {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(148, 163, 184, 0.85);
  font-variant-numeric: tabular-nums;
}

.landing-page .lp-media-slot__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.app-theme-light .landing-page .lp-media-slot {
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

body.app-theme-light .landing-page .lp-media-slot__badge {
  color: #334155;
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(148, 163, 184, 0.4);
}

body.app-theme-light .landing-page .lp-media-slot__spec {
  color: #64748b;
}

/* Case 视觉区改用 media-slot 时，去掉旧 emoji 堆叠间距冲突 */
.landing-page .lp-case-visual.lp-media-slot {
  padding: 0;
  gap: 0;
  justify-content: stretch;
  align-items: stretch;
}

/* ── 分隔线更克制 ─────────────────────────────────────────────── */
.landing-page .section-divider {
  opacity: 0.55;
}

/* ── 对比区面板：更像仪表盘卡 ─────────────────────────────────── */
.landing-page .orbvop-compare-panel.lp-surface {
  padding: clamp(16px, 2.2vw, 24px);
}

.landing-page .compare-stage.lp-surface-inset {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.landing-page .compare-stage--active-audio {
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.18);
}

/* ── 减弱首屏装饰动画（保留几何体，降频）─────────────────────── */
.landing-page .hero-tag::before {
  animation: none;
  box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.2);
}

.landing-page .hero-orb {
  opacity: 0.55;
}

/* ── 页脚更干净 ───────────────────────────────────────────────── */
.landing-page .saas-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── 无障碍：减少动态 ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .landing-page .sr,
  .landing-page .sr[data-sr],
  .landing-page .sr.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .landing-page .lp-case-card.lp-surface,
  .landing-page .stat-item.lp-surface,
  .landing-page .lp-workflow-card.lp-surface,
  .landing-page .lp-subtitle-step.lp-surface,
  .landing-page .hero-cta-primary.hero-upload {
    transition: none;
  }

  .landing-page .hero-orb,
  .landing-page .hero-geo-rings,
  .landing-page .hero-geo-prism {
    animation: none !important;
  }
}
