/* 漫映AI —— 暗色电影感 */
:root {
  --bg: #0b0d14;
  --bg-alt: #10131e;
  --panel: #161a28;
  --border: #262c40;
  --text: #eef0f6;
  --dim: #9aa3b8;
  --p1: #7c3aed;
  --p2: #ec4899;
  --p3: #6366f1;
  --grad: linear-gradient(90deg, #a78bfa, #f472b6);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.7;
  overflow-x: hidden;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- 导航 ---------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11,13,20,.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
  height: 62px; display: flex; align-items: center; gap: 26px;
}
.logo { font-weight: 800; font-size: 19px; }
.logo span { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-links a { font-size: 14px; color: var(--dim); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
#nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 20px; cursor: pointer; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer;
  border-radius: 12px; font-size: 14.5px; font-weight: 600;
  padding: 10px 22px; transition: all .18s; text-align: center;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff; box-shadow: 0 4px 24px rgba(168,85,247,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(168,85,247,.5); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--p3); background: rgba(99,102,241,.08); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-lg { padding: 14px 34px; font-size: 16.5px; border-radius: 14px; }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 80px; text-align: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 20% 10%, rgba(124,58,237,.28), transparent 70%),
    radial-gradient(700px 350px at 80% 20%, rgba(236,72,153,.2), transparent 70%),
    radial-gradient(500px 400px at 50% 90%, rgba(99,102,241,.18), transparent 70%);
}
.hero-badge {
  display: inline-block; padding: 7px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.04);
  font-size: 13.5px; color: var(--dim); margin-bottom: 26px;
}
.hero h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.25; font-weight: 800; letter-spacing: 1px; }
.hero-sub { color: var(--dim); font-size: 17px; margin: 22px auto 34px; max-width: 640px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; gap: 56px; flex-wrap: wrap;
  margin-top: 68px;
}
.stat b { font-size: 32px; font-weight: 800; }
.stat i { font-style: normal; font-size: 20px; font-weight: 800; }
.stat span { display: block; font-size: 13px; color: var(--dim); margin-top: 2px; }

/* ---------- 区块 ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-title { text-align: center; font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.sec-sub { text-align: center; color: var(--dim); margin: 12px 0 48px; }
.grid { display: grid; gap: 20px; }
.features-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 26px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(168,85,247,.5); }
.feature .f-icon { font-size: 34px; margin-bottom: 14px; }
.feature h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--dim); }

/* ---------- 流程 ---------- */
.flow { display: flex; align-items: stretch; justify-content: center; gap: 10px; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 200px; text-align: center;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 30px 18px; position: relative;
}
.step-num {
  position: absolute; top: 14px; left: 18px;
  font-size: 13px; font-weight: 800; color: transparent;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
}
.step-icon { font-size: 34px; margin-bottom: 12px; }
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--dim); }
.step-arrow { align-self: center; color: var(--p2); font-size: 22px; font-weight: 700; }

/* ---------- 创作工坊 ---------- */
.studio-card { padding: 30px; }
.tabs { display: flex; gap: 10px; margin-bottom: 22px; }
.tab {
  background: none; border: 1px solid var(--border); color: var(--dim);
  padding: 9px 20px; border-radius: 10px; cursor: pointer; font-size: 14.5px;
  font-family: inherit; transition: all .15s;
}
.tab.active { border-color: transparent; background: linear-gradient(135deg, var(--p1), var(--p2)); color: #fff; font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row input {
  flex: 1; min-width: 240px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 12px 16px; font-size: 14.5px; outline: none;
  font-family: inherit;
}
.form-row input:focus { border-color: var(--p3); }
.form-row select {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 12px 12px; font-size: 14px; outline: none; cursor: pointer;
}
.output {
  margin-top: 20px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px; max-height: 420px; overflow-y: auto;
}
.output pre {
  white-space: pre-wrap; word-break: break-word;
  font-family: "JetBrains Mono", Consolas, monospace; font-size: 13.5px;
  line-height: 1.85; color: #cdd3e6;
}
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--p2); animation: blink 1s step-end infinite; vertical-align: text-bottom; }
@keyframes blink { 50% { opacity: 0; } }
.board-out { text-align: center; }
.board-loading { color: var(--dim); font-size: 14px; padding: 30px 0; }
.spinner {
  display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 8px;
  border: 2px solid var(--border); border-top-color: var(--p2);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#board-img { border-radius: 12px; max-height: 400px; margin: 0 auto; }

/* ---------- 展示 ---------- */
.showcase-grid { grid-template-columns: repeat(4, 1fr); }
.shot {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  background: var(--panel);
  transition: transform .2s, border-color .2s;
}
.shot:hover { transform: translateY(-4px); border-color: rgba(168,85,247,.5); }
.shot img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.shot figcaption { padding: 12px 14px; font-size: 13.5px; color: var(--dim); text-align: center; }

/* ---------- 定价 ---------- */
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan-hot { border-color: rgba(168,85,247,.6); position: relative; }
.hot-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--p1), var(--p2));
  padding: 4px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
}
.plan h3 { font-size: 16px; color: var(--dim); }
.price { font-size: 38px; font-weight: 800; margin: 8px 0 18px; }
.price span { font-size: 14px; color: var(--dim); font-weight: 400; }
.plan ul { list-style: none; flex: 1; margin-bottom: 22px; }
.plan li { font-size: 14px; color: var(--dim); padding: 5px 0; }
.plan li::before { content: "✓ "; color: #34d399; font-weight: 700; }

/* ---------- CTA & Footer ---------- */
.cta-band {
  text-align: center; padding: 90px 0;
  background:
    radial-gradient(500px 260px at 50% 100%, rgba(124,58,237,.3), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; margin-bottom: 28px; }
footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; }
.foot-muted { color: var(--dim); }

/* ---------- 动画进场 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.on { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .features-grid, .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .step-arrow { display: none; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; background: var(--panel);
    padding: 18px 24px; gap: 16px; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  #nav-toggle { display: block; margin-left: auto; }
  .features-grid, .showcase-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero-stats { gap: 30px; }
}
