/* ==========================================================================
   StorySpark 官网样式
   --------------------------------------------------------------------------
   设计令牌沿用产品内 frontend/src/styles/tokens.css 的品牌色与层级：
     --brand #3b9ddd（品牌蓝）/ --accent #ffd166（点缀黄）
   约束：
     1. 纯静态、无外部字体与图片依赖（离线可看、可直接部署）
     2. PC 优先，窄屏（H5 预览）逐级降级到单列
     3. 所有动效在 prefers-reduced-motion 下停掉
   ========================================================================== */

:root {
  /* 背景层级 */
  --bg-base: #0b0b0f;
  --bg-soft: #101014;
  --bg-elevated: #16161b;
  --bg-surface: #1a1a20;

  /* 边框 */
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);

  /* 文本 */
  --t1: #eef1f6;
  --t2: #c3c9d6;
  --t3: #8b93a3;
  --t4: #5f6675;

  /* 品牌 */
  --brand: #3b9ddd;
  --brand-2: #5fb3f0;
  --brand-soft: rgba(59, 157, 221, .14);
  --accent: #ffd166;
  --accent-soft: rgba(255, 209, 102, .12);
  --ok: #4ade80;

  /* 尺寸 */
  --wrap: 1180px;
  --radius: 18px;
  --radius-sm: 12px;

  --shadow: 0 18px 48px rgba(0, 0, 0, .45);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "微软雅黑",
          "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system,
          "Segoe UI", Roboto, sans-serif;
}

/* --------------------------------------------------------------- reset */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--t1);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: rgba(255, 255, 255, .07);
  padding: .1em .4em;
  border-radius: 5px;
  color: var(--t2);
}

svg { width: 100%; height: 100%; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand);
  color: #04121d;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------- layout */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}
.wrap--narrow { max-width: 860px; }

.section { padding: 104px 0; position: relative; }
.section--alt {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(59, 157, 221, .07), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.only-mobile { display: none; }

/* ------------------------------------------------------------- 标题块 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--t2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.eyebrow--c { color: var(--t2); }

.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.sec-lead { margin-top: 18px; color: var(--t3); font-size: 16.5px; }

/* ------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.btn--primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #04121d;
  box-shadow: 0 8px 24px rgba(59, 157, 221, .28);
}
.btn--primary:hover { box-shadow: 0 12px 30px rgba(59, 157, 221, .38); }

.btn--outline {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-strong);
  color: var(--t1);
}
.btn--outline:hover { background: rgba(255, 255, 255, .08); }

.btn--ghost { background: transparent; color: var(--t2); }
.btn--ghost:hover { color: var(--t1); background: rgba(255, 255, 255, .05); }

.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 13px; }
.btn--block { width: 100%; }

/* ------------------------------------------------------------- 导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 15, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(11, 11, 15, .9); }

.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand__name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.brand__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--t4);
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--t3);
}
.nav__links a { transition: color .16s ease; }
.nav__links a:hover { color: var(--t1); }

.nav__cta { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav__toggle span {
  display: block;
  width: 17px; height: 2px;
  border-radius: 2px;
  background: var(--t1);
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------- 首屏 */
.hero { position: relative; padding: 76px 0 0; overflow: hidden; }

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.glow--a {
  width: 620px; height: 620px;
  top: -260px; right: -120px;
  background: radial-gradient(circle, rgba(59, 157, 221, .38), transparent 68%);
}
.glow--b {
  width: 520px; height: 520px;
  top: 260px; left: -220px;
  background: radial-gradient(circle, rgba(255, 209, 102, .16), transparent 68%);
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 78%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 60px;
  align-items: center;
  padding-bottom: 84px;
}

.hero__title {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.12;
}
.grad {
  background: linear-gradient(100deg, var(--brand-2) 0%, #8fd3f4 42%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin-top: 22px;
  max-width: 560px;
  color: var(--t2);
  font-size: 17px;
  line-height: 1.85;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 30px;
  color: var(--t3);
  font-size: 14px;
}
.hero__trust li { display: flex; align-items: center; gap: 7px; }
.ico-ok {
  width: 16px; height: 16px;
  fill: none; stroke: var(--ok); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  flex: 0 0 auto;
}

/* ---- 首屏舞台（竖屏成片预览） */
.hero__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.stage { position: relative; }
.stage__frame {
  position: relative;
  width: 300px;
  border-radius: 26px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03));
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .07);
}
.stage__svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 19px;
  background: #12151f;
}

.stage__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 11px;
  background: rgba(18, 20, 28, .92);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--t2);
  white-space: nowrap;
}
.stage__badge--tl { top: 26px; right: calc(100% + 14px); }
.stage__badge--br { bottom: 96px; right: calc(100% + 14px); }
.stage__badge .tick {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .18);
}

.stage__side { display: flex; flex-direction: column; gap: 16px; }
.mini-card {
  width: 196px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.mini-card__title { font-size: 13px; font-weight: 700; color: var(--t3); margin-bottom: 12px; }
.mini-list { display: flex; flex-direction: column; gap: 9px; font-size: 13px; color: var(--t2); }
.mini-list li { display: flex; align-items: center; gap: 8px; }
.mini-list b { margin-left: auto; color: var(--t1); font-weight: 700; }
.mini-list .ok {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(74, 222, 128, .16);
  border: 1px solid rgba(74, 222, 128, .5);
  position: relative;
  flex: 0 0 auto;
}
.mini-list .ok::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 4px; height: 7px;
  border: solid var(--ok);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(42deg);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span {
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--t2);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
}
.chips .more { color: var(--accent); background: var(--accent-soft); border-color: rgba(255, 209, 102, .3); }

/* ---- 跑马灯 */
.hero__marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
  overflow: hidden;
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  font-size: 14px;
  font-weight: 700;
  color: var(--t4);
  letter-spacing: .04em;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------- 数据条 */
.stats { padding: 46px 0; border-bottom: 1px solid var(--line); }
.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff, #9fc4e4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { display: block; margin-top: 4px; color: var(--t3); font-size: 14.5px; }

/* ------------------------------------------------------------- 功能 */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat {
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feat:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 157, 221, .42);
  background: linear-gradient(180deg, rgba(59, 157, 221, .1), rgba(255, 255, 255, .02));
}
.feat--wide { grid-column: span 2; }
.feat__ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  border: 1px solid rgba(59, 157, 221, .3);
  color: var(--brand-2);
  margin-bottom: 16px;
}
.feat__ico svg {
  width: 21px; height: 21px;
  fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.feat h3 { font-size: 18.5px; font-weight: 800; margin-bottom: 9px; }
.feat p { color: var(--t3); font-size: 15px; }
.feat__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.feat__tags li {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--t2);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
}

/* ---- 菜单一览 */
.menus {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  margin-top: 30px;
}
.menus__col {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, .015);
}
.menus__head { font-size: 13px; font-weight: 800; color: var(--t4); letter-spacing: .1em; margin-bottom: 14px; }
.menus__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.menus__chips span {
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t2);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
}

/* ------------------------------------------------------------- 工作流 */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: flow;
}
.flow__step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}
.flow__step::before {
  content: "";
  position: absolute;
  left: 22px; right: 22px; top: 78px;
  height: 2px;
  background: linear-gradient(90deg, rgba(59, 157, 221, .5), transparent);
  display: none;
}
.flow__no {
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--brand-2);
  margin-bottom: 12px;
}
.flow__step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.flow__step p { color: var(--t3); font-size: 14.5px; }

.flow__note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  border: 1px solid rgba(59, 157, 221, .26);
}
.flow__note svg {
  width: 19px; height: 19px;
  flex: 0 0 auto;
  margin-top: 3px;
  fill: none; stroke: var(--brand-2); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.flow__note p { color: var(--t2); font-size: 14.5px; }

/* ------------------------------------------------------------- 界面预览 */
.ui__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.ui__tab {
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  color: var(--t3);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .16s ease;
}
.ui__tab:hover { color: var(--t1); border-color: var(--line-strong); }
.ui__tab.is-active {
  background: var(--brand-soft);
  border-color: rgba(59, 157, 221, .5);
  color: var(--brand-2);
}

.ui__window {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}
.ui__titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: #1d1d23;
  border-bottom: 1px solid var(--line);
}
.ui__dots { display: flex; gap: 6px; }
.ui__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a44; }
.ui__title { font-size: 13px; font-weight: 700; color: var(--t3); }
.ui__title-actions { margin-left: auto; display: flex; gap: 10px; }
.ui__title-actions i { width: 14px; height: 2px; border-radius: 2px; background: #3a3a44; }

.ui__body { display: grid; grid-template-columns: 186px minmax(0, 1fr); min-height: 440px; }

.ui__side {
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  background: #141419;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ui__group {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--t4);
  margin: 12px 0 6px;
}
.ui__group:first-child { margin-top: 0; }
.ui__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--t3);
}
.ui__item i {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--t4);
}
.ui__item.is-on { background: var(--brand-soft); color: var(--t1); }
.ui__item.is-on i { background: rgba(59, 157, 221, .28); color: var(--brand-2); }

.ui__panel { display: none; padding: 24px; }
.ui__panel.is-active { display: grid; }
#p1, #p3, #p4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
#p2 { grid-template-columns: 200px minmax(0, 1fr); gap: 26px; }
#p3, #p4 { grid-template-columns: minmax(0, 1fr); }

.ui__h4 { font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.ui__col--form { display: flex; flex-direction: column; gap: 12px; }

.ui__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  font-size: 13.5px;
}
.ui__field span { color: var(--t4); flex: 0 0 auto; }
.ui__field b { color: var(--t2); font-weight: 600; text-align: right; }
.ui__field--area { display: block; }
.ui__field--area b { display: block; text-align: left; margin-top: 5px; line-height: 1.6; }
.ui__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ui__btns { display: flex; gap: 10px; margin-top: 4px; }
.ui__btn {
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  color: var(--t2);
}
.ui__btn--primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #04121d;
  border-color: transparent;
}

.ui__col--stage { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.ui__stagebox {
  width: 190px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #12151f;
}
.ui__stage-svg { display: block; width: 100%; height: auto; }
.ui__meter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  width: 100%;
  font-size: 13px;
  color: var(--t3);
}
.ui__meter b { color: var(--t2); font-weight: 700; }
.ui__ok {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(74, 222, 128, .14);
  border: 1px solid rgba(74, 222, 128, .35);
  color: var(--ok);
  font-weight: 700;
  font-size: 12px;
}

/* 逐步创作 */
.ui__col--narrow { display: flex; flex-direction: column; gap: 4px; }
.ui__stage-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--t4);
}
.ui__stage-item i {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  flex: 0 0 auto;
}
.ui__stage-item.is-done { color: var(--t2); }
.ui__stage-item.is-done i { border-color: var(--ok); background: var(--ok); }
.ui__stage-item.is-now {
  color: var(--t1);
  background: var(--brand-soft);
  border: 1px solid rgba(59, 157, 221, .3);
}
.ui__stage-item.is-now i { border-color: var(--brand-2); background: rgba(59, 157, 221, .25); }

.ui__col--chat { display: flex; flex-direction: column; gap: 12px; }
.ui__bubble {
  max-width: 82%;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.7;
}
.ui__bubble--me {
  align-self: flex-end;
  background: var(--brand-soft);
  border: 1px solid rgba(59, 157, 221, .28);
  color: var(--t1);
}
.ui__bubble--ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  color: var(--t2);
}
.ui__diff {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ok);
  background: rgba(74, 222, 128, .12);
}
.ui__input {
  margin-top: auto;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px dashed var(--line-strong);
  color: var(--t4);
  font-size: 13.5px;
}

/* 轨道剪辑 */
.ui__timeline { position: relative; display: flex; flex-direction: column; gap: 10px; padding-right: 10px; }
.ui__track { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 10px; }
.ui__track-label { font-size: 12px; color: var(--t4); font-weight: 700; }
.ui__clips { display: flex; gap: 4px; height: 26px; }
.ui__clips i { display: block; border-radius: 5px; background: rgba(59, 157, 221, .32); border: 1px solid rgba(59, 157, 221, .5); }
.ui__clips--text i { background: rgba(184, 134, 11, .32); border-color: rgba(184, 134, 11, .55); }
.ui__clips--audio i { background: rgba(59, 111, 181, .34); border-color: rgba(59, 111, 181, .58); }
.ui__clips--bgm i { background: rgba(47, 158, 111, .3); border-color: rgba(47, 158, 111, .55); }
.ui__playhead {
  position: absolute;
  top: 0; bottom: 0;
  left: 38%;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 209, 102, .6);
}

/* 角色库 */
.ui__cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ui__card {
  padding: 14px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  text-align: center;
}
.ui__card svg { width: 54px; height: 54px; margin: 0 auto 8px; display: block; }
.ui__card span { font-size: 12.5px; color: var(--t3); font-weight: 600; }
.ui__card--add {
  display: grid;
  place-content: center;
  gap: 6px;
  border-style: dashed;
  border-color: var(--line-strong);
}
.ui__card--add b { font-size: 24px; color: var(--t4); font-weight: 400; }

.ui__note { margin-top: 14px; text-align: center; color: var(--t4); font-size: 13px; }

/* ------------------------------------------------------------- 进阶能力 */
.power-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.power {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
}
.power h3 { display: flex; align-items: baseline; gap: 10px; font-size: 17.5px; font-weight: 800; margin-bottom: 10px; }
.power__no {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--accent);
}
.power p { color: var(--t3); font-size: 14.5px; }

.privacy {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: 30px;
  align-items: start;
  margin-top: 34px;
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(59, 157, 221, .1), rgba(255, 255, 255, .02));
  border: 1px solid rgba(59, 157, 221, .26);
}
.privacy__head h3 { font-size: 22px; font-weight: 800; }
.privacy__head p { margin-top: 8px; color: var(--t3); font-size: 14.5px; }
.privacy__list { display: grid; gap: 16px; }
.privacy__list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-areas: "ico title" "ico desc";
  gap: 2px 12px;
  align-items: start;
}
.privacy__list svg {
  grid-area: ico;
  width: 22px; height: 22px;
  fill: none; stroke: var(--brand-2); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  margin-top: 3px;
}
.privacy__list b { grid-area: title; font-size: 15.5px; font-weight: 700; }
.privacy__list span { grid-area: desc; color: var(--t3); font-size: 14px; }

/* ------------------------------------------------------------- 场景 */
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scene {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  transition: border-color .2s ease, transform .2s ease;
}
.scene:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.scene h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.scene p { color: var(--t3); font-size: 14.5px; }

/* ------------------------------------------------------------- FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .028);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq__item[open] { border-color: rgba(59, 157, 221, .34); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 700;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__mark {
  position: relative;
  width: 18px; height: 18px;
  flex: 0 0 auto;
}
.faq__mark::before, .faq__mark::after {
  content: "";
  position: absolute;
  background: var(--t3);
  border-radius: 2px;
  transition: transform .2s ease, background .2s ease;
}
.faq__mark::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq__mark::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq__item[open] .faq__mark::before { background: var(--brand-2); }
.faq__item[open] .faq__mark::after { transform: rotate(90deg); background: var(--brand-2); }
.faq__body { padding: 0 22px 20px; }
.faq__body p { color: var(--t3); font-size: 15px; line-height: 1.85; }

/* ------------------------------------------------------------- 下载 */
.download__card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 40px;
  align-items: center;
  padding: 46px;
  border-radius: 24px;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(255, 209, 102, .12), transparent 70%),
    linear-gradient(135deg, rgba(59, 157, 221, .16), rgba(255, 255, 255, .02));
  border: 1px solid rgba(59, 157, 221, .3);
}
.download__copy h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; }
.download__copy > p { margin-top: 14px; color: var(--t2); font-size: 16px; max-width: 520px; }
.download__list { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.download__list li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--t2); }
.download__list svg {
  width: 16px; height: 16px;
  fill: none; stroke: var(--ok); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.download__side { display: flex; flex-direction: column; gap: 14px; }
.download__btns { display: flex; flex-direction: column; gap: 12px; }
.download__state {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--t3);
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, .025);
  word-break: break-all;
}
.download__state.is-pending {
  color: var(--accent);
  border-color: rgba(255, 209, 102, .32);
  background: var(--accent-soft);
}
/* 下载文件缺失（探活 404）：必须一眼看见，不能让用户点进一个死链 */
.download__state.is-missing {
  color: #ff9d9d;
  border-color: rgba(255, 120, 120, .38);
  background: rgba(255, 120, 120, .09);
}
/* 文件信息块（文件名 / 大小 / 版本 / 系统要求）—— 真源是 site.js 的 SITE */
.download__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px 16px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.download__meta li { display: flex; gap: 8px; align-items: baseline; min-width: 0; font-size: 12.5px; }
.download__meta-k { flex: none; color: var(--t4); }
.download__meta-v { color: var(--t2); font-weight: 600; overflow-wrap: anywhere; }
/* 校验值：给用户核对下载完整性用 */
.download__hash { font-size: 11.5px; color: var(--t4); line-height: 1.7; overflow-wrap: anywhere; }
.download__hash code { font-size: 11px; word-break: break-all; background: rgba(255, 255, 255, .04); }
.download__hint { font-size: 13px; color: var(--t4); line-height: 1.7; }

/* ------------------------------------------------------------- 样片墙
   卡片 = 封面图（首屏只加载封面，视频点了才下载 ⇒ 省带宽）；
   网格用 auto-fit + 居中，3 条片子也不会撑得太宽。 */
.samples__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
  max-width: 1000px;      /* 4 条片子一行，不把 1180 铺满 */
  margin: 0 auto;
}
.sample { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.sample__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
  cursor: pointer;
}
.sample__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.sample__thumb:hover img { transform: scale(1.045); }
.sample__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(10, 12, 16, .58);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
  transition: transform .25s ease, background .25s ease;
}
.sample__play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.sample__thumb:hover .sample__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--brand);
}
.sample__badge {
  position: absolute;
  right: 10px; bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--t1);
  background: rgba(8, 8, 12, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(4px);
}
.sample__title { font-size: 15.5px; font-weight: 700; }
.sample__desc { font-size: 13px; color: var(--t3); line-height: 1.65; }

/* 样片播放器浮层：视频按 9:16 竖屏限宽，不占满屏 */
.player {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.player[hidden] { display: none; }
.player__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 7, .86);
  backdrop-filter: blur(8px);
}
.player__box {
  position: relative;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.player__box video {
  width: 100%;
  max-height: 78vh;
  display: block;
  border-radius: var(--radius);
  background: #000;
  border: 1px solid var(--line);
}
.player__title { font-size: 13px; color: var(--t3); text-align: center; }
.player__close {
  position: absolute;
  top: -10px; right: -10px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--t1);
  cursor: pointer;
  z-index: 2;
}
.player__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.player__close:hover { background: var(--bg-surface); }
/* 播放时锁住背景滚动 */
html.is-playing { overflow: hidden; }

/* ------------------------------------------------------------- 页脚 */
.footer { padding: 46px 0; border-top: 1px solid var(--line); background: #08080b; }
.footer__inner { display: grid; gap: 22px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer__name { font-size: 16px; font-weight: 800; }
.footer__desc { font-size: 13px; color: var(--t4); }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--t3); }
.footer__links a:hover { color: var(--t1); }
.footer__legal { font-size: 12.5px; color: var(--t4); max-width: 820px; }
.footer__beian { font-size: 12.5px; color: var(--t4); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.footer__beian a { color: var(--t4); text-decoration: none; }
.footer__beian a:hover { color: var(--t1); }

/* ------------------------------------------------------------- 动效 */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* 首屏 SVG 舞台动画
   ⚠ 位置用「外层 SVG transform 属性 + 内层 CSS translate」两层：
     CSS 的 transform 会覆盖同名 SVG transform 属性，所以定位交给外层、
     动画交给内层，两者互不打架。
   ⚠ transform-origin 必须配 transform-box: fill-box，否则百分比/center
     是相对 viewBox 算的，眨眼会被缩放到整个画布中心（角色直接消失）。
   ⚠ 不做"走入"入场：入场期间画面是空的，首屏第一印象就废了。
     角色从第一帧就在位，只做轻微呼吸/摆动。 */
.char--fox { animation: idleFox 3.4s ease-in-out infinite; }
.char--bun { animation: idleBun 3.9s ease-in-out infinite; }
@keyframes idleFox {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2.5px) rotate(-1.2deg); }
}
@keyframes idleBun {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(1.4deg); }
}
.stage-scene {
  animation: camZoom 9s ease-in-out infinite;
  transform-box: view-box;
  transform-origin: 180px 420px;
}
@keyframes camZoom {
  0%, 18% { transform: scale(1); }
  55%, 100% { transform: scale(1.07); }
}
.eyes {
  animation: blink 4.6s infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  94%, 97% { transform: scaleY(.12); }
}
.mouth--open { opacity: 0; }
.mouth--closed { opacity: 1; }

.hud-text { fill: #dfe6f2; font-size: 13px; font-weight: 700; font-family: var(--font); }
.cap-text { fill: #f4f7fb; font-size: 19px; font-weight: 700; font-family: var(--font); text-anchor: middle; }
.cap-sub { fill: #9fb0c6; font-size: 13px; font-weight: 600; font-family: var(--font); text-anchor: middle; }

/* 字幕轮播：纯 CSS 驱动（10.8s 一轮 = 3 句 × 3.6s）
   ⚠ 三句必须"顺序"切换：上一句先淡完，下一句再淡入。
     若两段淡入淡出重叠，同一位置会同时压着两句字（糊成一团）；
     若中间留空，又会出现"字幕空帧"。这里取：淡出与淡入各 1.5%（约 0.16s），
     不重叠、空窗 ≤ 1.5%，并且口型窗口与字幕窗口对齐（谁在说谁的嘴动）。 */
.cap-t1, .cap-s1 { animation: cap1 10.8s linear infinite; }
.cap-t2, .cap-s2 { animation: cap2 10.8s linear infinite; }
.cap-t3, .cap-s3 { animation: cap3 10.8s linear infinite; }
@keyframes cap1 {
  0% { opacity: 0; } 1.5% { opacity: 1; } 31% { opacity: 1; } 33% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes cap2 {
  0%, 33% { opacity: 0; } 34.5% { opacity: 1; } 64% { opacity: 1; } 66% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes cap3 {
  0%, 66% { opacity: 0; } 67.5% { opacity: 1; } 97% { opacity: 1; } 98.5% { opacity: 0; } 100% { opacity: 0; }
}

/* 口型：说话窗口开在父层（.mouths），开合闪动开在子层（.mouth--open）——
   同一个元素上挂两个动画会互相抢 opacity，分成父子两层才不会 */
.char--fox .mouths { animation: foxTalk 10.8s linear infinite; }
.char--bun .mouths { animation: bunTalk 10.8s linear infinite; }
@keyframes foxTalk {
  0%, 1.5% { opacity: 1; } 31% { opacity: 1; } 33% { opacity: .5; }
  66% { opacity: .5; } 67.5% { opacity: 1; } 97% { opacity: 1; } 98.5%, 100% { opacity: .5; }
}
@keyframes bunTalk {
  0%, 33% { opacity: .5; } 34.5% { opacity: 1; } 64% { opacity: 1; } 66%, 100% { opacity: .5; }
}
.mouth--open { opacity: 0; animation: mouthAlt .34s ease-in-out infinite alternate; }
.char--bun .mouth--open { animation-duration: .28s; }
@keyframes mouthAlt { from { opacity: 0; } to { opacity: 1; } }
.mouth--closed { opacity: 1; }

/* 播放进度条 */
#stageProgress { transform-origin: 20px 618px; animation: progress 10.8s linear infinite; }
@keyframes progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { max-width: 680px; }
  .hero__stage { justify-content: flex-start; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat--wide { grid-column: span 2; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .power-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .download__card { grid-template-columns: 1fr; gap: 28px; padding: 36px; }
  .privacy { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 20px 18px;
    background: rgba(11, 11, 15, .97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__cta { display: none; }
  .nav.is-open .nav__links { display: flex; }

  .section { padding: 72px 0; }
  .hero { padding-top: 44px; }
  .hero__inner { padding-bottom: 60px; }
  .only-mobile { display: block; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat--wide { grid-column: span 1; }
  .flow { grid-template-columns: 1fr; }
  .power-grid { grid-template-columns: 1fr; }
  .scene-grid { grid-template-columns: 1fr; }
  .menus { grid-template-columns: 1fr; }

  .ui__body { grid-template-columns: 1fr; }
  .ui__side { flex-direction: row; flex-wrap: wrap; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .ui__group { width: 100%; margin: 8px 0 2px; }
  .ui__item { white-space: nowrap; }
  #p1, #p2, #p3, #p4 { grid-template-columns: minmax(0, 1fr); }
  .ui__cards { grid-template-columns: repeat(3, 1fr); }
  .stage__badge { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .nav__inner { padding: 12px 18px; }
  .brand__tag { display: none; }
  .section { padding: 58px 0; }
  .hero__title { font-size: 32px; }
  .hero__lead { font-size: 16px; }
  .hero__actions .btn { width: 100%; }
  .stage__frame { width: 100%; max-width: 280px; }
  .hero__stage { justify-content: center; }
  .stage__side { display: none; }
  .stage__badge--tl { left: -8px; top: 14px; font-size: 11.5px; padding: 6px 10px; }
  .stage__badge--br { right: -8px; bottom: 60px; font-size: 11.5px; padding: 6px 10px; }
  .stat b { font-size: 34px; }
  .download__card { padding: 26px 20px; }
  .ui__panel { padding: 16px; }
  .ui__cards { grid-template-columns: repeat(2, 1fr); }
  .faq__item summary { font-size: 15.5px; padding: 16px 18px; }
  .faq__body { padding: 0 18px 18px; }
  .footer__links { gap: 14px; }
  /* 样片墙：窄屏改单列，别让海报挤成两半 */
  .samples__grid { grid-template-columns: 1fr; max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* 字幕动画被掐到 0.001ms 后会停在最后一帧(=透明)，所以这里手工钉住第一句 */
  .cap-t1, .cap-s1 { animation: none !important; opacity: 1 !important; }
  .cap-t2, .cap-s2, .cap-t3, .cap-s3 { display: none; }
  .mouth--open { animation: none !important; opacity: 0 !important; }
}
