/* ============================================================
   YIWA Studio · 戏影台 官网
   深色电影感主题，紫粉渐变品牌色
   ============================================================ */

:root {
  --bg-0: #07030f;        /* 最深背景 */
  --bg-1: #0f0a1f;        /* 主背景 */
  --bg-2: #1a1330;        /* 卡片背景 */
  --bg-3: #251a44;        /* hover 背景 */
  --line: rgba(167,139,250,.18);
  --line-2: rgba(167,139,250,.32);
  --text: #F5F3FF;
  --text-2: #C4B5FD;
  --text-3: #8B7FB5;
  --brand: #A78BFA;
  --brand-2: #EC4899;
  --brand-3: #8B5CF6;
  --warn: #FBBF24;
  --ok: #34D399;
  --shadow-1: 0 12px 40px rgba(139,92,246,.18);
  --shadow-2: 0 24px 64px rgba(236,72,153,.18);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Microsoft YaHei", "Helvetica Neue",
               Arial, sans-serif;
  background: var(--bg-1);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============ 背景：深空渐变 + 噪点 ============ */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(139,92,246,.35), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(236,72,153,.20), transparent 65%),
    radial-gradient(1000px 800px at 50% 110%, rgba(56,189,248,.10), transparent 60%),
    linear-gradient(180deg, #0a0517 0%, #0f0a1f 50%, #07030f 100%);
}
.bg-fx::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .5;
}

/* ============ 导航 ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(15,10,31,.7);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand img { height: 40px; }
.nav-links {
  display: flex; gap: 30px; align-items: center;
  font-size: 14px; color: var(--text-2);
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  color: #fff; font-weight: 600;
  box-shadow: var(--shadow-1);
  transition: transform .15s, box-shadow .15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ============ 通用 ============ */
.container {
  max-width: var(--container); margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 96px 0; position: relative; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(167,139,250,.1);
  border: 1px solid var(--line-2);
  color: var(--brand); font-size: 12px; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 18px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--brand) 60%, var(--brand-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub { color: var(--text-2); font-size: 16px; max-width: 720px; }

/* ============ HERO ============ */
.hero {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
  /* 建立独立层叠上下文：让 .hero-glow 的 z-index:-1 落在 hero 背景层，
     既盖住不住文字，也不会跑到 body 背景后面消失 */
  isolation: isolate;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(167,139,250,.12);
  border: 1px solid var(--line-2);
  color: var(--brand); font-size: 13px;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 12px var(--brand-2);
}
.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, var(--brand) 50%, var(--brand-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}
.hero-subtitle {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700; color: #fff;
  margin-bottom: 18px;
}
.hero-desc {
  font-size: 17px; color: var(--text-2);
  max-width: 720px; margin: 0 auto 36px;
}
.hero-ctas {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: var(--shadow-1);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2);
  color: var(--text); font-weight: 600; font-size: 16px;
  transition: all .15s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--brand);
}
.hero-meta {
  color: var(--text-3); font-size: 13px;
  display: inline-flex; gap: 14px; align-items: center;
}
.hero-meta .dot { width: 4px; height: 4px; background: var(--text-3); border-radius: 50%; }
.hero-mock {
  margin-top: 56px; position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(139,92,246,.12), rgba(236,72,153,.08));
  border: 1px solid var(--line-2);
  padding: 18px;
  box-shadow: var(--shadow-2);
}
.hero-mock::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.hero-mock img { border-radius: 14px; width: 100%; }
.hero-mock-cap {
  position: absolute; bottom: 32px; left: 32px;
  padding: 6px 12px; border-radius: 6px;
  background: rgba(0,0,0,.6); color: var(--text-2);
  font-size: 12px; backdrop-filter: blur(6px);
}

/* ============ 数据条 ============ */
.stats {
  margin-top: 80px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-card {
  padding: 24px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.stat-num {
  font-size: 32px; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--text-3); font-size: 13px; margin-top: 4px; }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 功能卡片 ============ */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 56px;
}
.feat {
  padding: 28px;
  background: linear-gradient(180deg, rgba(139,92,246,.08), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s, border-color .2s, background .2s;
}
.feat:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(139,92,246,.14), rgba(236,72,153,.06));
}
.feat-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  color: #fff;
}
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p { color: var(--text-2); font-size: 14px; }
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
}

/* ============ 截图展示（Tabs / 灯箱） ============ */
.gallery-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 32px 0 20px; justify-content: center;
}
.gallery-tab {
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--text-2); font-size: 13px;
  transition: all .15s;
}
.gallery-tab.active, .gallery-tab:hover {
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  color: #fff; border-color: transparent;
}
.gallery-stage {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(139,92,246,.08), rgba(236,72,153,.04));
  border: 1px solid var(--line);
  padding: 16px; overflow: hidden;
}
.gallery-frame {
  border-radius: 14px; overflow: hidden;
  background: #000; aspect-ratio: 16/10;
}
.gallery-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .35s;
}
.gallery-caption {
  margin-top: 12px; color: var(--text-2); font-size: 14px;
  text-align: center;
}

/* ============ 视频链路 / 流程图 ============ */
.pipeline {
  display: grid; grid-template-columns: 1fr; gap: 0;
  margin-top: 48px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(0,0,0,.25); overflow: hidden;
}
.pipe-row {
  display: grid; grid-template-columns: 56px 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.pipe-row:last-child { border-bottom: none; }
.pipe-num {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  color: #fff; font-weight: 800; font-size: 18px;
}
.pipe-body { padding: 20px 24px; }
.pipe-body h4 { font-size: 16px; margin-bottom: 4px; }
.pipe-body p { color: var(--text-2); font-size: 14px; }
.pipe-body code {
  display: inline-block; margin-top: 6px;
  padding: 2px 8px; border-radius: 4px;
  background: rgba(167,139,250,.12);
  color: var(--brand); font-size: 12px;
  font-family: 'JetBrains Mono','Fira Code',Consolas,monospace;
}

/* ============ 下载 CTA ============ */
.download {
  position: relative;
  padding: 80px 56px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(139,92,246,.25), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(236,72,153,.20), transparent 60%),
    linear-gradient(180deg, #1a1330, #0f0a1f);
  border: 1px solid var(--line-2);
  text-align: center;
  overflow: hidden;
}
.download h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.download p { color: var(--text-2); margin-bottom: 32px; }
.dl-row {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.dl-card {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px; border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-2);
  text-align: left;
  transition: transform .15s;
}
.dl-card:hover { transform: translateY(-2px); }
.dl-ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
}
.dl-meta-line1 { font-weight: 700; font-size: 16px; }
.dl-meta-line2 { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: var(--shadow-2);
  transition: transform .15s;
}
.dl-btn:hover { transform: translateY(-2px) scale(1.02); }

.dl-notes {
  margin-top: 28px;
  display: inline-flex; flex-wrap: wrap; gap: 14px 24px;
  justify-content: center;
  color: var(--text-3); font-size: 13px;
}
.dl-notes span::before {
  content: "✓"; color: var(--ok); margin-right: 6px; font-weight: 700;
}

/* ============ FAQ ============ */
.faq { margin-top: 56px; max-width: 820px; margin-left: auto; margin-right: auto; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,.02);
  margin-bottom: 12px; overflow: hidden;
  transition: border-color .15s;
}
.faq details[open] { border-color: var(--line-2); background: rgba(167,139,250,.06); }
.faq summary {
  padding: 18px 22px; cursor: pointer;
  font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--brand); font-size: 22px;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 22px 18px; color: var(--text-2); font-size: 14px; }

/* ============ Footer ============ */
.footer {
  margin-top: 80px;
  padding: 40px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 13px;
}
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--brand); }

/* ============ 工具类 ============ */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.flex-c { display: flex; align-items: center; justify-content: center; }

/* ============ 灵感画廊 · 海报墙 ============ */
.poster-wall {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 1100px) { .poster-wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .poster-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .poster-wall { grid-template-columns: repeat(2, 1fr); } }

.poster-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #000;
  border: 1px solid var(--line);
  transition: transform .28s cubic-bezier(.2,.7,.3,1),
              box-shadow .28s, border-color .28s;
}
.poster-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.7,.3,1), filter .3s;
}
.poster-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
              rgba(0,0,0,0) 35%,
              rgba(10,5,23,.55) 68%,
              rgba(10,5,23,.94) 100%);
  transition: opacity .3s;
}
.poster-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--brand);
  box-shadow: 0 24px 48px rgba(139,92,246,.32);
}
.poster-card:hover img { transform: scale(1.08); filter: saturate(1.15); }

.poster-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 14px 16px;
  z-index: 2;
}
.poster-title {
  font-size: 15px; font-weight: 700; color: #fff;
  line-height: 1.3; margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.poster-tag {
  display: inline-block;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(167,139,250,.22);
  border: 1px solid rgba(167,139,250,.45);
  color: var(--brand); font-size: 11px;
  backdrop-filter: blur(4px);
}
.poster-make {
  margin-top: 10px;
  font-size: 11px; color: #fff;
  opacity: 0; transform: translateY(6px);
  transition: opacity .28s, transform .28s;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  font-weight: 600;
}
.poster-card:hover .poster-make { opacity: 1; transform: translateY(0); }

.copyright-note {
  margin-top: 26px; text-align: center;
  color: var(--text-3); font-size: 12px; line-height: 1.7;
}

/* 品类映射条 */
.genre-map {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.genre-chip {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  transition: all .2s;
}
.genre-chip:hover {
  border-color: var(--brand);
  background: rgba(167,139,250,.08);
}
.genre-chip .g-name {
  font-weight: 700; font-size: 15px; margin-bottom: 4px;
  color: var(--brand);
}
.genre-chip .g-desc { color: var(--text-2); font-size: 13px; }
@media (max-width: 860px) { .genre-map { grid-template-columns: 1fr; } }

/* ============ 滚动淡入（无 JS 时自动降级为直接显示） ============ */
.reveal {
  transition: opacity .7s cubic-bezier(.2,.7,.3,1),
              transform .7s cubic-bezier(.2,.7,.3,1);
}
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(26px);
}
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* 海报卡保留自己的 hover 速度，hover 优先于 reveal 的 transform */
.js-reveal .poster-card.reveal {
  transition: opacity .7s cubic-bezier(.2,.7,.3,1),
              transform .35s cubic-bezier(.2,.7,.3,1),
              box-shadow .28s, border-color .28s;
}
.js-reveal .poster-card.reveal.in:hover {
  transform: translateY(-8px) scale(1.02);
}

/* ============ Hero 光晕增强 ============ */
.hero-glow {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
  animation: drift 14s ease-in-out infinite alternate;
}
.hero-glow.a { top: -160px; left: -140px; background: rgba(139,92,246,.30); }
.hero-glow.b { top: 60px;  right: -160px; background: rgba(236,72,153,.22); animation-delay: -6s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.12); }
}

/* ============ 简易动画 ============ */
@keyframes float-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: float-up .6s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }