/* ============================================================
   影传 · 短视频模板批量生成工具
   视觉：深色霓虹（紫 #B026FF → 粉 #FF2D9B → 青 #18E0FF）
   ============================================================ */

:root {
  --bg: #0A0118;
  --bg-alt: #0E0322;
  --bg-deep: #0A010F;
  --bg-footer: #07081B;

  --c-purple: #B026FF;
  --c-pink: #FF2D9B;
  --c-cyan: #18E0FF;

  --white: #FFFFFF;
  --t1: #FFFFFF;
  --t2: #B9A9D6;
  --t3: #A99FC4;
  --t4: #8A7AA8;
  --t5: #C9B8E8;
  --t6: #D9CCF2;
  --t7: #6B5B89;
  --t8: #5C4B7A;

  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.10);
  --card-border-strong: rgba(255, 255, 255, 0.18);

  --grad: linear-gradient(90deg, #B026FF 0%, #FF2D9B 50%, #18E0FF 100%);
  --grad-vert: linear-gradient(135deg, #B026FF 0%, #FF2D9B 100%);

  --radius-lg: 20px;
  --radius-xl: 24px;
  --maxw: 1200px;

  font-family: "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--t1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* 中文按词组断行，避免「引擎」「模板」这类词被拆到两行；不支持的浏览器自动忽略 */
  word-break: auto-phrase;
}

a { text-decoration: none; color: inherit; }

/* 键盘/读屏用户跳过导航直达正文 */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 12px 20px; border-radius: 0 0 12px 0;
  background: var(--c-purple); color: #fff;
  font-size: 15px; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 16px 36px; font-size: 17px; }
.btn--gradient {
  background: var(--grad-vert);
  color: #fff;
  box-shadow: 0 8px 24px rgba(176, 38, 255, 0.45);
}
.btn--gradient:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 45, 155, 0.5); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border-strong);
  color: #E8DEF8;
}
.btn--ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.09); }
.btn--white {
  background: #fff;
  color: #3A0A5E;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.btn--white:hover { transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 1, 15, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 72px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { display: block; }
.brand__name { font-weight: 900; font-size: 20px; color: #fff; letter-spacing: 0.5px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-weight: 500; font-size: 15px; color: var(--t5);
  transition: color .2s ease;
}
.nav__link:hover { color: #fff; }
.nav__cta { padding: 10px 22px; font-size: 15px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: #fff; transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* 首屏撑满一屏：min-height 占满视口，内容垂直居中（上下 padding 差值 = 顶栏高度，保证视觉居中而不是被顶栏压偏） */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 132px 48px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #0E0322 0%, #0A010F 100%);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}
.hero__glow--purple {
  width: 620px; height: 620px; top: -160px; right: 60px;
  background: radial-gradient(circle, rgba(176,38,255,0.55) 0%, rgba(176,38,255,0) 70%);
}
.hero__glow--cyan {
  width: 520px; height: 520px; bottom: -60px; left: -140px;
  background: radial-gradient(circle, rgba(24,224,255,0.4) 0%, rgba(24,224,255,0) 70%);
}
.hero__content { position: relative; z-index: 2; max-width: 980px; display: flex; flex-direction: column; align-items: center; gap: 30px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border-strong);
  font-size: 14px; font-weight: 600; color: #E8DEF8;
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-pink);
  box-shadow: 0 0 8px 2px rgba(255,45,155,0.8);
}

.hero__title {
  font-size: 60px; font-weight: 900; line-height: 1.13;
  color: #fff; letter-spacing: -0.5px;
}
/* 渐变半句作为整体换行，避免字体度量变化时把「千条」拆到两行 */
.hero__title .neon { white-space: nowrap; }
.neon {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__sub {
  font-size: 20px; font-weight: 400; color: var(--t2);
  max-width: 780px; line-height: 1.6;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero__trust { font-size: 14px; color: var(--t4); }

.hero__flow {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 22px; border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  font-size: 15px; font-weight: 500; color: var(--t2);
}
.flow-arrow { color: var(--t4); font-size: 14px; }
.flow-step--accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-weight: 700;
}

/* ---------- Section ---------- */
.section { padding: 88px 48px; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); }
.section__head { max-width: 820px; margin: 0 auto 56px; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.eyebrow--pink { color: var(--c-pink); }
.eyebrow--cyan { color: var(--c-cyan); }
.section__title { font-size: 40px; font-weight: 900; color: #fff; line-height: 1.2; }
.section__sub { font-size: 18px; color: var(--t2); }

/* ---------- Steps ---------- */
.steps { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
  transition: transform .25s ease, border-color .25s ease;
}
.step:hover { transform: translateY(-4px); border-color: rgba(176,38,255,0.4); }
.step__num {
  width: 48px; height: 48px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-vert); color: #fff; font-weight: 900; font-size: 20px;
}
.step__title { font-size: 19px; font-weight: 700; color: #fff; }
.step__desc { font-size: 15px; color: var(--t3); line-height: 1.6; }

/* ---------- Features ---------- */
.feature {
  max-width: var(--maxw); margin: 0 auto 64px;
  display: grid; grid-template-columns: 480px 1fr; gap: 56px; align-items: center;
}
.feature--reverse .feature__visual { order: -1; }
.feature__title { font-size: 28px; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 16px; }
.feature__desc { font-size: 17px; color: var(--t3); line-height: 1.65; }

.feature__visual {
  height: 340px; border-radius: var(--radius-lg);
  background: #14082B; border: 1.5px solid rgba(176,38,255,0.3);
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
}
/* 模板工程导入：两个节点 + 连接箭头 */
.visual--import { gap: 22px; }
.node {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 26px; border-radius: 16px; min-width: 150px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--card-border);
}
.node--app { border-color: rgba(24,224,255,0.3); }
.node--tool { border-color: rgba(176,38,255,0.4); }
.node__badge { font-size: 18px; font-weight: 800; color: #fff; }
.node__badge--grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.node__cap { font-size: 13px; color: var(--t4); }
.connector {
  position: relative; width: 64px; height: 2px;
  background: linear-gradient(90deg, rgba(176,38,255,0.7), rgba(24,224,255,0.7));
}
.connector::after {
  content: ""; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  border-left: 8px solid var(--c-cyan);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
/* 多模板批量渲染：素材 × 模板 = 成片 */
.visual--multi { gap: 18px; }
.multi-col { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.multi-label { font-size: 12px; color: var(--t4); }
.multi-card { width: 66px; height: 38px; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid var(--card-border); }
.multi-card--tpl { background: linear-gradient(135deg, rgba(176,38,255,0.38), rgba(24,224,255,0.22)); border-color: rgba(176,38,255,0.4); }
.multi-x { font-size: 22px; font-weight: 800; color: var(--t2); }
.multi-result {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 24px; border-radius: 14px;
  background: var(--grad-vert); box-shadow: 0 10px 26px rgba(176,38,255,0.35);
}
/* 结果块只用「叠起来的成片」示意，不写具体条数 */
.multi-result__stack { position: relative; display: block; width: 62px; height: 40px; }
.multi-result__stack span {
  position: absolute; width: 46px; height: 30px; border-radius: 6px;
  background: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.65);
}
.multi-result__stack span:nth-child(1) { left: 0; top: 0; }
.multi-result__stack span:nth-child(2) { left: 8px; top: 5px; background: rgba(255,255,255,0.68); }
.multi-result__stack span:nth-child(3) { left: 16px; top: 10px; background: #fff; }
.multi-result__cap { font-size: 13px; font-weight: 700; color: #fff; }
/* 多平台适配：三种画幅 */
.visual--ratio { gap: 28px; }
.ratio { display: block; background: linear-gradient(160deg, rgba(176,38,255,0.45), rgba(24,224,255,0.25)); border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; }
.ratio--916 { width: 90px; height: 160px; }
.ratio--11 { width: 130px; height: 130px; }
.ratio--169 { width: 170px; height: 96px; }

/* ---------- Tag strip ---------- */
.tagstrip {
  max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.tag {
  padding: 10px 20px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--card-border);
  font-size: 14px; font-weight: 500; color: var(--t6);
}

/* ---------- Scenarios ---------- */
.scenarios { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scard {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s ease, border-color .25s ease;
}
.scard:hover { transform: translateY(-4px); border-color: rgba(24,224,255,0.35); }
.scard__icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.scard__icon svg { width: 40px; height: 40px; }
.scard__title { font-size: 19px; font-weight: 700; color: #fff; }
.scard__desc { font-size: 15px; color: var(--t3); line-height: 1.6; }

/* ---------- Social Proof ---------- */
.stats { max-width: var(--maxw); margin: 0 auto 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__num { font-size: 46px; font-weight: 900; color: #fff; line-height: 1.1; }
.stat__label { font-size: 15px; color: var(--t4); }

.quotes { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quote {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 32px;
}
.quote__text { font-size: 18px; font-weight: 500; color: #E8DEF8; line-height: 1.67; }
.quote__author { margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--c-cyan); }

/* ---------- Final CTA ---------- */
.cta {
  padding: 80px 48px; text-align: center;
  background: var(--grad-vert);
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.cta__title { font-size: 38px; font-weight: 900; color: #fff; line-height: 1.27; }
.cta__sub { font-size: 17px; color: #F3E9FF; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-footer); padding: 56px 48px 40px; }
.footer__top { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 80px; flex-wrap: wrap; }
.footer__brand { max-width: 300px; display: flex; flex-direction: column; gap: 14px; }
.footer__tag { font-size: 14px; color: var(--t4); line-height: 1.5; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 14px; width: 140px; }
.footer__col h4 { font-size: 14px; font-weight: 600; color: var(--t5); margin-bottom: 2px; }
.footer__col a { font-size: 14px; color: var(--t4); transition: color .2s ease; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  max-width: var(--maxw); margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--t7);
}
/* ICP 备案号：管理办法第十三条要求置于主页底部中央位置，故独立成行并居中 */
.footer__legal {
  max-width: var(--maxw); margin: 16px auto 0;
  font-size: 13px; color: var(--t7); text-align: center;
}
.footer__legal a { color: var(--t7); transition: color .2s ease; }
.footer__legal a:hover { color: var(--t4); }

/* ---------- Reveal animation ---------- */
/* 仅在 JS 可用时才隐藏（<html class="js">），否则内容保持可见——避免脚本未执行时正文整体不可见 */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero__title { font-size: 48px; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature--reverse .feature__visual { order: 0; }
  .feature__visual { height: 280px; }
  .steps, .scenarios { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
}

@media (max-width: 760px) {
  .header__inner { padding: 0 20px; }
  .nav {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,1,15,0.97); backdrop-filter: blur(12px);
    padding: 12px 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-120%); transition: transform .3s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav__cta { margin-top: 14px; text-align: center; }
  .menu-toggle { display: flex; }

  .hero { padding: 116px 20px 44px; }
  .hero__glow--purple { width: 380px; height: 380px; right: -120px; }
  .hero__glow--cyan { width: 320px; height: 320px; left: -120px; }
  .hero__title { font-size: 30px; }
  .hero__sub { font-size: 16px; }
  .hero__flow { flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 14px; }

  .section { padding: 56px 20px; }
  .section__title { font-size: 28px; }
  .section__head { margin-bottom: 40px; }

  .steps, .scenarios, .quotes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .stat__num { font-size: 36px; }

  /* 收窄功能图示，避免小屏溢出 */
  .visual--import { gap: 12px; }
  .node { min-width: 112px; padding: 16px; }
  .connector { width: 34px; }
  .visual--multi { gap: 12px; }
  .multi-card { width: 46px; height: 28px; }
  .multi-result { padding: 12px 16px; gap: 8px; }
  .multi-result__stack { width: 46px; height: 30px; }
  .multi-result__stack span { width: 34px; height: 22px; }
  .multi-result__stack span:nth-child(2) { left: 6px; top: 4px; }
  .multi-result__stack span:nth-child(3) { left: 12px; top: 8px; }
  .multi-result__cap { font-size: 12px; }
  .visual--ratio { gap: 14px; }
  .ratio--916 { width: 62px; height: 110px; }
  .ratio--11 { width: 88px; height: 88px; }
  .ratio--169 { width: 118px; height: 66px; }

  .cta__title { font-size: 26px; }
  .footer { padding: 48px 20px 32px; }
  .footer__top { gap: 40px; }
  .footer__cols { gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}
