/* ============================================================
   AI 宣传体验课 —— 站点样式表
   ------------------------------------------------------------
   设计语言：纯黑底 / 粗无衬线大标题 / 大圆角细描边卡片 /
   蓝色是唯一强调色（hero 光晕、关键句、主 CTA、完成态）。

   结构（改样式前先找到对应小节，不要往文件末尾追加覆盖规则）：
     01 设计令牌
     02 基础与重置
     03 排版
     04 通用工具类
     05 按钮
     06 页面外壳：导航 / 进度条 / 页脚 / 法律页
     07 堆叠舞台：stack / panel / card
     08 屏 1  Hero
     09 屏 2  只用到一半
     10 屏 3  AI 助理
     11 屏 4  现场完成 3 件事
     12 屏 5  工作流演示
     13 屏 6  现场装好
     14 屏 7  适合谁
     15 屏 8  $99 CTA
     16 屏 9  正课价格
     17 屏 10 关于 Aiven
     18 屏 11 扫码加入
     19 会员专区与口令门
     20 进场动效与边缘巡航
     21 响应式
     22 减少动态效果
   ============================================================ */


/* ============================================================
   01 设计令牌
   ============================================================ */
:root {
  --bg: #000;
  --ink: #f5f5f7;          /* 主文字，近白略冷 */
  --body: #929297;         /* 说明文字 */
  --dim: #626268;          /* 弱化小字 */
  --line: rgba(255, 255, 255, .09);
  --card: #0a0a0b;

  --accent: #0b63f6;
  --accent-soft: #4c8dff;
  --accent-glow: rgba(11, 99, 246, .38);

  /* 分层表面：卡片面 → 卡内小卡 → 更浅的组件 */
  --surface: #0a0a0b;
  --surface-2: #111113;
  --surface-3: #17171a;

  /* 发丝描边：外框 / 小卡 / 分隔线 / 顶部内高光 */
  --hairline: rgba(255, 255, 255, .1);
  --hairline-2: rgba(255, 255, 255, .13);
  --hairline-soft: rgba(255, 255, 255, .065);
  --highlight: rgba(255, 255, 255, .055);

  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, .045), 0 28px 80px rgba(0, 0, 0, .48);
  --shadow-pop: inset 0 1px 0 rgba(255, 255, 255, .08), 0 16px 40px rgba(0, 0, 0, .42);

  --radius-pill: 999px;
  --radius-card: clamp(18px, 2vw, 26px);
  --radius-tile: 14px;

  /* 舞台宽度。改这一个值，卡片 / 导航栏 / 左侧进度条会一起跟着走。 */
  --stage: 1440px;

  --display: -apple-system, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --sans: -apple-system, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);

  /* 右下角 AI 助教浮标占位，供各屏底部内容避让 */
  --aiw-safe: 78px;
}


/* ============================================================
   02 基础与重置
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  font-family: var(--sans);
  color: var(--body);
  background:
    radial-gradient(900px 520px at 73% -220px, rgba(52, 105, 255, .1), transparent 68%),
    var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

::selection { color: #fff; background: rgba(40, 111, 255, .65); }

/* 极淡细颗粒噪点，给纯黑底一层质感（不引入颜色） */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ============================================================
   03 排版
   .bl 主标题 / .bm 次级标题 / .bs 正文
   ============================================================ */
.bl {
  max-width: 820px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.16;
  letter-spacing: -.04em;
  color: var(--ink);
  text-wrap: balance;
}

.bm {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -.035em;
  color: var(--ink);
  text-wrap: balance;
}

.bs {
  max-width: 720px;
  font-size: clamp(15px, 1.55vw, 20px);
  line-height: 1.58;
  letter-spacing: -.018em;
  color: var(--body);
  text-wrap: pretty;
  word-break: auto-phrase;
}

/* 关键句尾不拆开，避免中文段落最后只剩一个字或标点。 */
.keep-tail { white-space: nowrap; }

.bl + .bl { margin-top: .35em; }
.bl + .bs { margin-top: clamp(24px, 4vw, 44px); }
.bs + .bs { margin-top: 1em; }
.bs + .bl { margin-top: clamp(24px, 4vw, 42px); }

/* 法律页 / 会员页的章节大标题 */
.h-lg {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.25;
  letter-spacing: -.04em;
  color: var(--ink);
  text-align: left;
  text-wrap: balance;
}
.h-lg em { font-style: normal; }


/* ============================================================
   04 通用工具类
   ============================================================ */
.sp { margin-top: clamp(20px, 3vw, 34px); }
.ta-c { text-align: center; }

.micro {
  margin-top: 18px;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: .06em;
  /* 「A · B · C」这类并列短语，只在分隔符处换行，
     不要把「现场发出去」拆成「现 / 场发出去」 */
  word-break: keep-all;
}

.eyebrow {
  margin-bottom: clamp(18px, 3vw, 34px);
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* SITE_CONFIG 缺值时的占位样式（js/main.js applyConfig 添加） */
.placeholder {
  border: 1px dashed var(--dim);
  color: var(--dim);
  padding: 0 .4em;
  border-radius: 4px;
  font-style: normal;
}


/* ============================================================
   05 按钮
   ============================================================ */
.btn-cta,
.price-btn,
.nav-qr {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  transition: transform .22s var(--ease-spring), background-color .3s var(--ease), box-shadow .3s var(--ease);
}

/* 掠过式高光：hover 时一道白光从左扫到右 */
.btn-cta::after,
.price-btn::after,
.nav-qr::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .42;
  background: linear-gradient(105deg, transparent 24%, rgba(255, 255, 255, .34) 48%, transparent 72%);
  transform: translateX(-130%);
  transition: transform .7s var(--ease-out);
}

.btn-cta {
  margin-top: clamp(30px, 5vw, 56px);
  padding: 13px 26px;
  border-radius: 10px;
  background: #f5f5f5;
  color: #09090a;
  font-size: 17px;
}
.btn-cta:hover { background: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .34); }
.btn-cta:active { transform: translateY(1px); }
.btn-cta .placeholder { color: #39393d; border-color: #777; }

.price-btn {
  margin-top: auto;
  align-self: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f5f5f5;
  color: #0a0a0b;
  font-size: 14px;
}
.price-btn:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, .3); }
.price-btn:active { transform: translateY(1px); }

.price-btn.price-btn-ghost {
  color: #d8d8dc;
  background: #1a1a1d;
  border-color: rgba(255, 255, 255, .1);
}
.price-btn.price-btn-ghost:hover {
  color: #fff;
  background: #202024;
  border-color: rgba(255, 255, 255, .16);
}


/* ============================================================
   06 页面外壳：导航 / 进度条 / 页脚 / 法律页
   ============================================================ */

/* ---- 导航 ---------------------------------------------------
   固定顶栏，内容宽度对齐统一舞台。
   品牌名可收缩截断，右侧链接固定不换行 —— 窄屏下二者不再互相压字。 */
.nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--stage), 100%);
  height: 64px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 clamp(20px, 6vw, 78px);
  background: rgba(0, 0, 0, .72);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, .82);
  border-bottom-color: rgba(255, 255, 255, .075);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .18);
}

.brand {
  flex: 0 1 auto;
  min-width: 0;               /* 允许收缩，否则会把右侧链接挤出去 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--ink);
}
.brand .placeholder { font-size: 13px; padding: 4px 14px; }

.nav-links {
  flex: 0 0 auto;             /* 不参与收缩，保证按钮永远完整 */
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}
.nav-links a {
  white-space: nowrap;
  text-decoration: none;
  font-size: 13px;
  color: #8d8d92;
  transition: color .2s var(--ease);
}
.nav-links a:hover,
.nav-links a:active { color: var(--ink); }

.nav-qr {
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: var(--radius-pill);
  background: #f5f5f5;
  color: #111 !important;
}
.nav-qr:hover { transform: translateY(-1px); background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .32); }

/* ---- 左侧章节进度条 ---------------------------------------- */
.progress {
  position: fixed;
  /* 舞台左边缘再往里 50px，跟着 --stage 走 */
  left: max(12px, calc((100vw - var(--stage)) / 2 + 50px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.progress button {
  display: flex;
  flex-direction: row-reverse;   /* 圆点在左，标签向右展开 */
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  border: none;
  background: none;
  cursor: pointer;
  color: #66666c;
  font-size: 11px;
  line-height: 1;
  transition: color .25s var(--ease);
}
.progress .p-label {
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.progress .p-dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #444449;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.progress button.on { color: var(--ink); }
.progress button.on .p-dot {
  background: #f2f2f4;
  transform: scale(1.25);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
.progress button.on .p-label,
.progress button:hover .p-label { opacity: 1; transform: none; }
.progress button:hover .p-dot { background: #7d7d88; transform: scale(1.15); }

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 245, 247, 0); }
  50% { box-shadow: 0 0 0 5px rgba(245, 245, 247, .08); }
}

/* ---- 页脚 --------------------------------------------------- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, .075);
  background: #000;
  padding: 40px 28px 56px;
  text-align: center;
  font-size: 13px;
  color: var(--dim);
}
.footer-brand { font-family: var(--display); color: var(--body); margin-bottom: 10px; }
.footer-sep { margin: 0 .6em; }

.foot-legal { display: block; margin-top: 10px; }
.foot-legal a {
  margin: 0 .7em;
  color: var(--dim);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.foot-legal a:hover { color: var(--body); }

/* 首页卡内页脚 */
.site-foot {
  width: 100%;
  margin-top: clamp(20px, 3vw, 34px);
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .075);
  text-align: center;
  font-size: 13px;
  color: var(--dim);
}
.site-foot .footer-brand { font-family: var(--display); color: var(--body); margin-bottom: 0; }

/* ---- 法律页（隐私 / 条款 / 退款）----------------------------- */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 126px clamp(24px, 5vw, 54px) 100px;
  min-height: 60svh;
}
.legal-page h1 { margin-bottom: 6px; }
.legal-page h2 {
  margin: 42px 0 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .075);
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
}
.legal-page p,
.legal-page ul {
  margin-bottom: 12px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.9;
}
.legal-page ul { padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page b,
.legal-page strong { color: var(--ink); font-weight: 600; }

.legal-meta { margin-bottom: 26px; color: var(--dim); font-size: 13px; }
.legal-page a[data-config],
.legal-back { color: var(--accent-soft); text-decoration: none; }
.legal-back { display: inline-block; margin-top: 30px; font-size: 14px; }


/* ============================================================
   07 堆叠舞台：stack / panel / card
   每屏一张圆角卡；下屏盖住上屏，上屏后退缩小（缩放由 js/main.js
   的 initStack 写在 .panel 的第一个子元素上）。
   ============================================================ */
.stack {
  position: relative;
  width: 100%;
  max-width: var(--stage);
  margin: 0 auto;
}

.panel {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;   /* 透明：卡缝里露出后退中的上一张卡，而非纯黑 */
  /* 顶部下限 60px 让任何屏高都避开导航栏 */
  padding: clamp(60px, 7.5svh, 86px) clamp(16px, 3vw, 40px) clamp(18px, 3svh, 36px);
}
.panel.is-hidden { visibility: hidden; }

.card {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(30px, 5vw, 64px) clamp(24px, 6vw, 72px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .018), transparent 30%),
    #09090a;
  box-shadow: var(--shadow-card);
  transform-origin: 50% 46%;
  will-change: transform, opacity;
}

/* 斜向微光，让大面积深色卡不至于死板 */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, .025), transparent 28% 72%, rgba(255, 255, 255, .012));
}

.card > * { position: relative; z-index: 1; }

.card-tight .bs { line-height: 1.55; }
.card-bright .bl { color: #fff; }
.card-bright .bs { color: #d0d0d0; }


/* ============================================================
   08 屏 1  Hero
   左侧叙事 + 右下角悬浮的「手机指令」面板。
   ============================================================ */
.card-hero { justify-content: center; }

.hero-v8 {
  align-items: flex-start;
  text-align: left;
  overflow: hidden;
  background:
    radial-gradient(700px 420px at 78% 46%, rgba(35, 97, 255, .105), transparent 68%),
    #030303;
  border-color: rgba(255, 255, 255, .075);
}

/* 右下角蓝色光晕 */
.hero-v8::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(52vw, 620px);
  aspect-ratio: 1;
  right: -13%;
  bottom: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 85, 255, .24), rgba(0, 85, 255, 0) 68%);
  pointer-events: none;
}

.hero-title {
  color: var(--ink);
  font: 760 clamp(48px, 7.4vw, 100px)/.98 var(--display);
  letter-spacing: -.065em;
}
.hero-title span { color: #81818a; }

.hero-flow,
.task-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(24px, 4vw, 42px);
}
.hero-flow b,
.task-chips span {
  padding: 8px 14px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .045);
  color: #d8d8de;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 600;
}

.hero-more {
  display: inline-block;
  font-size: 13px;
  color: #7d7d82;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.hero-more:hover { color: var(--body); }
.hero-v8 .hero-more { margin-top: clamp(20px, 3vw, 30px); }

.hero-command {
  position: absolute;
  z-index: 2;
  right: clamp(26px, 6vw, 86px);
  bottom: clamp(36px, 8vh, 88px);
  width: min(38vw, 430px);
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(87, 139, 255, .5);
  border-radius: 22px;
  background: rgba(9, 12, 20, .9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 0 60px rgba(0, 85, 255, .18);
}
.hero-command-label {
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
}
.hero-command p {
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 650;
  line-height: 1.55;
}
.hero-command-send {
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.hero-meta {
  position: absolute;
  left: clamp(22px, 5vw, 64px);
  bottom: clamp(22px, 4vh, 40px);
}

/* 桌面端：指令面板悬在右下角，下半部分的行内元素要让开它，
   否则「看它能替你做什么 ↓」会顶到面板边上。标题在面板上方，不受限制。 */
@media (min-width: 781px) {
  .hero-v8 .hero-flow,
  .hero-v8 .hero-more { max-width: 52%; }
}


/* ============================================================
   09 屏 2  只用到一半
   左对齐正文，但整列在卡片里居中 —— 不再是左侧内容 + 右侧半张空卡。
   ============================================================ */
/* 这张卡同时带 .card-learn，用 .card.copy-half 提高优先级，
   保证左对齐不被后面小节的居中规则盖掉。 */
.card.copy-half {
  align-items: center;
  text-align: left;
}
/* 所有子元素同宽，左边缘才会对齐成一条线 */
.card.copy-half > * {
  width: 100%;
  max-width: 780px;
}

.half-punch { margin-top: clamp(40px, 8vh, 84px); }
.half-punch span { color: #7b7b83; }


/* ============================================================
   10 屏 3  AI 助理
   ============================================================ */
.card-helper {
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(720px 420px at 82% 55%, rgba(22, 92, 255, .16), transparent 70%),
    #070708;
}

/* 右侧柔光球 */
.card-helper::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(40vw, 520px);
  aspect-ratio: 1;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 132, 255, .2), rgba(26, 91, 255, .035) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.card-helper .bl {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.24;
  letter-spacing: -.035em;
}
.card-helper .helper-accent {
  display: inline-block;
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--accent-soft);
}
.helper-v8 .bs { max-width: 680px; }


/* ============================================================
   11 屏 4  现场完成 3 件事
   .learn-top：.bm 是主标题，.bs 是补充说明（屏 4 / 6 / 7 共用）。
   ============================================================ */
.card-learn {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #080809;
}

.learn-top {
  width: 100%;
  max-width: 1160px;
  text-align: center;
}
.card-learn .learn-top .bm {
  margin: 0 auto;
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.045em;
  color: var(--ink);
}
.card-learn .learn-top .bs {
  max-width: 760px;
  margin: clamp(12px, 2vw, 20px) auto 0;
  font-size: clamp(15px, 1.55vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--body);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 1160px;
  margin-top: clamp(24px, 4vw, 46px);
}
.outcome-card {
  display: flex;
  flex-direction: column;
  min-height: clamp(230px, 32vh, 340px);
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface-2);
  text-align: left;
}
.outcome-card.outcome-primary {
  border-color: rgba(78, 136, 255, .42);
  background: linear-gradient(145deg, rgba(28, 84, 212, .17), transparent 55%), #111216;
}
.outcome-card > span {
  color: #62626c;
  font-size: 12px;
  letter-spacing: .1em;
}
.outcome-card h2 {
  margin-top: auto;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -.045em;
}
.outcome-card p {
  margin-top: 12px;
  color: var(--body);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.65;
}
/* 标题靠底部对齐，说明文字行数不同会把标题顶歪 ——
   给说明留 3 行的固定高度，三张卡的标题就落在同一条基线上。 */
@media (min-width: 781px) {
  .outcome-card p { min-height: calc(3 * 1.65em); }
}


/* ============================================================
   12 屏 5  工作流演示
   ------------------------------------------------------------
   结构：三个可点击标签 + 实时进度 + 手机与电脑镜头。
   手机放指令，电脑放执行；每个任务约 12 秒，播完停在结果特写。
   由 js/main.js 的 initDemo 通过 .wf 上的 data-task / data-phase 驱动。

   尺寸策略：两块屏幕各自设一个 font-size 基准，内部一律用 em，
   这样整套 App 界面会跟着设备贴图等比缩放，不需要逐个断点调。
   ============================================================ */
.card-demo {
  gap: clamp(10px, 1.6vh, 18px);
  padding: clamp(20px, 3vw, 40px);
  background: #050506;
}
.demo-v8-card { padding-top: clamp(16px, 2.4vw, 28px); padding-bottom: clamp(16px, 2.4vw, 26px); }

.demo-lead,
.demo-tail {
  width: min(100%, 1160px);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.demo-lead {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(16px, 1.7vw, 23px);
  text-wrap: balance;
}
.demo-tail { color: var(--body); font-size: clamp(13px, 1.15vw, 16px); }

.wf {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vh, 16px);
  min-height: 0;
  flex: 1;
}

/* ---- 任务标签（可点击） ---- */
.wf-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: none;
}
.wf-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: clamp(9px, 1.1vw, 14px) 10px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #101013;
  color: #8a8a93;
  font-family: var(--display);
  font-size: clamp(12px, 1.15vw, 16px);
  font-weight: 600;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.wf-tab span { color: #55555e; font-size: .8em; font-weight: 700; letter-spacing: .08em; }
.wf-tab:hover { color: #d4d4da; border-color: rgba(255, 255, 255, .2); }
.wf-tab.is-on {
  color: #fff;
  border-color: rgba(79, 139, 255, .55);
  background: linear-gradient(145deg, rgba(30, 91, 220, .28), transparent 60%), #111318;
}
.wf-tab.is-on span { color: var(--accent-soft); }

/* ---- 当前步骤：始终贴着任务标签，让用户不用在画面里找进度 ---- */
.wf-live {
  flex: none;
  min-height: 42px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--hairline-soft);
  border-radius: 11px;
  background: rgba(255, 255, 255, .025);
}
.wf-path {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #55555e;
  font-size: clamp(10px, .78vw, 12px);
  font-weight: 700;
  white-space: nowrap;
}
.wf-path i {
  color: #3e3e46;
  font-style: normal;
  font-weight: 400;
}
.wf-path span {
  padding: 3px 7px;
  border-radius: 999px;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.wf[data-phase="listen"] .wf-path-phone,
.wf[data-phase="typing"] .wf-path-phone,
.wf[data-phase="sent"] .wf-path-phone,
.wf[data-phase="work"] .wf-path-computer,
.wf[data-phase="send"] .wf-path-result,
.wf[data-phase="done"] .wf-path-result {
  color: #fff;
  background: rgba(76, 141, 255, .16);
}
.wf[data-phase="done"] .wf-path-result {
  color: #8ce7ac;
  background: rgba(53, 196, 106, .13);
}

/* ---- 两台设备 ---- */
/* 镜头舞台：两台设备叠在同一块区域，由 data-camera 决定谁在前、多大。
   顺序是「先手机 → 再电脑 → 放大到正在操作的地方」。 */
.wf-stage {
  position: relative;
  flex: 1 1 min(64svh, 680px);
  min-height: 320px;
  max-height: min(64svh, 680px);
  overflow: hidden;      /* 推近时裁在舞台内，不许盖到上面的标签 */
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 14px;
  background:
    radial-gradient(70% 90% at 50% 46%, rgba(36, 77, 155, .15), transparent 72%),
    #030304;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.wf-dev {
  position: absolute;
  inset: 0;
  padding-bottom: 1.7em;   /* 给 figcaption 留位，舞台裁切时不会切掉 */
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 50%;
  transition:
    transform .85s cubic-bezier(.22, 1, .36, 1),
    opacity .55s var(--ease),
    filter .55s var(--ease);
}

/* 镜头 1：手机在前，电脑还在后面待命 */
.wf[data-camera="phone"] .wf-phone { transform: none; opacity: 1; filter: none; z-index: 3; }
.wf[data-camera="phone"] .wf-laptop { transform: translate(16%, 8%) scale(.66); opacity: .16; filter: blur(2px); z-index: 1; }

/* 镜头 2：电脑上来，手机退到左边 */
.wf[data-camera="laptop"] .wf-phone { transform: translate(-38%, 6%) scale(.44); opacity: .3; filter: blur(1px); z-index: 1; }
.wf[data-camera="laptop"] .wf-laptop { transform: none; opacity: 1; filter: none; z-index: 3; }

/* 镜头 3：推近到 AI 正在操作的那一块 */
.wf[data-camera="zoom"] .wf-phone { transform: translate(-46%, 8%) scale(.36); opacity: 0; filter: blur(3px); z-index: 1; }
.wf[data-camera="zoom"] .wf-laptop {
  transform: scale(1.48) translate(var(--zx, 0%), var(--zy, 0%));
  opacity: 1;
  z-index: 3;
}
/* 每个任务放大的位置不同：邮件看右下写信窗，微信看聊天区，朋友圈看发布窗 */
.wf[data-task="1"] { --zx: -6%; --zy: -13%; }
.wf[data-task="2"] { --zx: -4%; --zy: -6%; }
.wf[data-task="3"] { --zx: -3%; --zy: -8%; }
/* 比例锁定层：贴图和屏幕层都以它为基准，屏幕层的百分比才对得上贴图 */
/* 由高度驱动、宽度按比例推出，再用 max-width 收口 ——
   这样贴图永远完整落在卡片里，不会把底部顶出去。 */
.wf-frame {
  position: relative;
  flex: 0 1 auto;
  height: 100%;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: var(--shot-ar);
  margin: 0 auto;
}
.wf-shot { display: block; width: 100%; height: 100%; }
.wf-dev figcaption {
  margin-top: .6em;
  color: #6c6c76;
  font-size: clamp(9px, .78vw, 12px);
  font-weight: 700;
  letter-spacing: .14em;
}

/* 屏幕层：绝对定位到贴图上的屏幕区（百分比来自裁切后的图） */
.wf-screen {
  position: absolute;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
  transform: translateZ(0);
  display: flex;
  flex-direction: column;
  text-align: left;   /* 挡住卡片的居中对齐，App 界面一律左对齐 */
}
.wf-phone-screen {
  /* UI 只落在 iPhone 的玻璃屏幕内，保留四周黑色边框 */
  left: 41.2%;
  top: 5.1%;
  width: 43.6%;
  height: 83.8%;
  border-radius: 13% / 6%;
  clip-path: inset(0 round 13% / 6%);
  background: #000;
  font-size: clamp(4.5px, .52vw, 8px);
}
.wf-laptop-screen {
  /* 电脑 UI 内缩到 MacBook 黑色屏幕内，避免四角压住金属边框 */
  left: 5%;
  top: 6%;
  width: 90%;
  height: 83.6%;
  border-radius: 1.25% / 1.75%;
  clip-path: inset(0 round 1.25% / 1.75%);
  background: #f6f8fc;
  font-size: clamp(4.4px, .62vw, 10px);
}
.wf-phone { --shot-ar: 820 / 925; }
.wf-laptop { --shot-ar: 976 / 700; }

/* ============ 手机：ChatGPT ============ */
.wf-phone-screen { color: #ececf1; font-family: var(--sans); }
.ios-status {
  flex: none;
  height: 5.4%;
  padding: 0 1.4em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.15em;
  font-weight: 700;
}
.ios-icons { display: flex; align-items: center; gap: .35em; }
.ios-icons i { display: block; background: #fff; border-radius: .12em; }
.ios-icons .sig { width: .95em; height: .62em; clip-path: polygon(0 100%,18% 100%,18% 62%,0 62%,0 100%,32% 100%,32% 42%,50% 42%,50% 100%,64% 100%,64% 22%,82% 22%,82% 100%,100% 100%,100% 0,82% 0); }
.ios-icons .wifi { width: .8em; height: .58em; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.ios-icons .bat { width: 1.4em; height: .66em; border-radius: .18em; }

.gpt-head {
  flex: none;
  height: 6.4%;
  padding: 0 1.2em;
  display: grid;
  grid-template-columns: 1.2em 1fr 1.2em;   /* 标题严格居中，和真实 App 一致 */
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: 1.25em;
  font-weight: 600;
}
.gpt-head b { text-align: center; }
.gpt-menu, .gpt-new { width: 1.1em; height: 1.1em; opacity: .55; }
.gpt-menu { background: linear-gradient(#fff 0 12%, transparent 12% 44%, #fff 44% 56%, transparent 56% 88%, #fff 88% 100%); }
.gpt-new { border: .12em solid #fff; border-radius: .2em; }

.gpt-thread {
  flex: 1;
  min-height: 0;
  padding: 1.4em 1.1em;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1em;
}
.gpt-bubble {
  align-self: flex-end;
  max-width: 92%;
  padding: .85em 1em;
  border-radius: 1.5em 1.5em .35em 1.5em;
  background: #2f2f34;
  color: #fff;
  font-size: 1.2em;
  line-height: 1.5;
  min-height: 1.5em;
}
.gpt-caret {
  display: none;
  width: .1em;
  height: 1.1em;
  margin-left: .1em;
  background: #fff;
  vertical-align: text-bottom;
  animation: wf-caret 1s steps(2) infinite;
}
.wf[data-phase="typing"] .gpt-caret { display: inline-block; }
@keyframes wf-caret { 50% { opacity: 0; } }

.gpt-listening {
  align-self: flex-end;
  display: none;
  align-items: center;
  gap: .6em;
  padding: .5em .9em;
  border-radius: 2em;
  background: rgba(255, 255, 255, .07);
  color: #a9a9b3;
  font-size: 1.05em;
}
.wf[data-phase="listen"] .gpt-listening { display: inline-flex; }
.wave { display: flex; align-items: center; gap: .16em; height: 1em; }
.wave i { width: .16em; height: 40%; border-radius: .1em; background: var(--accent-soft); animation: wf-wave .9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .12s; }
.wave i:nth-child(3) { animation-delay: .24s; }
.wave i:nth-child(4) { animation-delay: .36s; }
.wave i:nth-child(5) { animation-delay: .48s; }
@keyframes wf-wave { 0%,100% { height: 30%; } 50% { height: 100%; } }

.gpt-composer {
  flex: none;
  margin: 0 1.1em 1.4em;
  padding: .8em 1em;
  display: flex;
  align-items: center;
  gap: .8em;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 2em;
  color: #6e6e78;
  font-size: 1.1em;
}
.gpt-composer b { flex: 1; font-weight: 400; }
.gpt-plus { color: #b4b4bd; }
.gpt-mic { width: 1.6em; height: 1.6em; border-radius: 50%; background: #fff; }

/* ============ 电脑：三个 App ============ */
.wf-laptop-screen { color: #1f1f1f; font-family: var(--sans); }

/* AI 接管条 */
.wf-agent {
  position: absolute;
  z-index: 6;
  right: .9em;
  top: 4.2em;
  display: flex;
  align-items: center;
  gap: .55em;
  padding: .45em .9em;
  border-radius: 2em;
  background: rgba(16, 18, 24, .92);
  color: #e8e8ef;
  font-size: 1.15em;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 .6em 1.6em rgba(0, 0, 0, .35);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.wf[data-phase="work"] .wf-agent,
.wf[data-phase="send"] .wf-agent { opacity: 1; }
.wf-agent i { width: .5em; height: .5em; border-radius: 50%; background: #35c46a; }
.wf-agent em { color: #9a9aa6; font-style: normal; font-weight: 400; }

.app { position: absolute; inset: 0; display: none; }
.wf[data-task="1"] .app-gmail,
.wf[data-task="2"] .app-wechat,
.wf[data-task="3"] .app-moments { display: flex; }

/* ---------- Gmail ---------- */
.app-gmail { flex-direction: column; background: #f6f8fc; }
.gm-top {
  flex: none;
  height: 11%;
  padding: 0 1.4em;
  display: flex;
  align-items: center;
  gap: 1.2em;
  background: #f6f8fc;
}
.gm-burger { width: 1.5em; height: 1.1em; background: linear-gradient(#5f6368 0 16%, transparent 16% 42%, #5f6368 42% 58%, transparent 58% 84%, #5f6368 84% 100%); }
.gm-logo { display: flex; align-items: center; gap: .45em; color: #5f6368; font-size: 1.9em; font-weight: 400; letter-spacing: -.01em; }
.gm-m {
  width: 1.25em; height: .95em; border-radius: .1em;
  background:
    linear-gradient(135deg, #ea4335 0 22%, transparent 22%),
    linear-gradient(225deg, #34a853 0 22%, transparent 22%),
    linear-gradient(#fbbc04, #fbbc04) 50% 100%/100% 55% no-repeat,
    #c5221f;
  box-shadow: inset 0 0 0 .08em #fff;
}
.gm-search {
  flex: 1;
  max-width: 46%;
  height: 2.6em;
  padding: 0 1.2em;
  display: flex;
  align-items: center;
  gap: .7em;
  border-radius: 1.4em;
  background: #eaf1fb;
  color: #5f6368;
  font-size: 1.2em;
}
.gm-search i { width: .9em; height: .9em; border: .13em solid #5f6368; border-radius: 50%; }
.gm-actions { margin-left: auto; display: flex; align-items: center; gap: .9em; }
.gm-actions i { width: 1.1em; height: 1.1em; border-radius: 50%; background: #dadce0; }
.gm-ava { width: 2.1em; height: 2.1em; display: grid; place-items: center; border-radius: 50%; background: #0b57d0; color: #fff; font-size: 1.05em; font-weight: 600; }

.gm-body { flex: 1; min-height: 0; display: flex; }
.gm-side { flex: none; width: 21%; padding: 0 .8em; display: flex; flex-direction: column; gap: .25em; }
.gm-compose {
  margin-bottom: .9em;
  padding: .95em 1.6em .95em 1.2em;
  display: flex;
  align-items: center;
  gap: .7em;
  border: 0;
  border-radius: 1.4em;
  background: #c2e7ff;         /* Gmail 写邮件胶囊真实色 */
  color: #001d35;
  font-size: 1.25em;
  font-weight: 500;
  align-self: flex-start;
  cursor: default;
}
.gm-compose i { width: 1.1em; height: 1.1em; background: #001d35; clip-path: polygon(0 100%,22% 78%,78% 22%,100% 0,100% 22%,22% 100%); }
.gm-nav {
  height: 2.6em;
  padding: 0 1.1em;
  display: flex;
  align-items: center;
  gap: .8em;
  border-radius: 0 1.3em 1.3em 0;
  color: #444746;
  font-size: 1.15em;
}
.gm-nav em { margin-left: auto; font-style: normal; font-size: .92em; }
.gm-nav.on { background: #d3e3fd; color: #041e49; font-weight: 700; }
.gm-nav i { width: 1em; height: 1em; background: currentColor; opacity: .8; }
.ic-inbox { clip-path: polygon(0 0,100% 0,100% 100%,0 100%,0 55%,26% 55%,34% 72%,66% 72%,74% 55%,100% 55%); }
.ic-star { clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 92%,50% 70%,21% 92%,32% 57%,2% 35%,39% 35%); }
.ic-snooze { border-radius: 50%; clip-path: none; }
.ic-sent { clip-path: polygon(0 0,100% 50%,0 100%,0 62%,62% 50%,0 38%); }
.ic-draft { clip-path: polygon(0 0,72% 0,100% 26%,100% 100%,0 100%); }

.gm-list { flex: 1; min-height: 0; margin: 0 .8em .8em 0; border-radius: 1.2em; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.gm-toolbar { flex: none; height: 2.8em; padding: 0 1.2em; display: flex; align-items: center; gap: 1.1em; border-bottom: 1px solid #f1f3f4; }
.gm-tb-ic { width: 1.1em; height: 1.1em; border-radius: 50%; background: #e3e5e8; }
.gm-cb { width: 1em; height: 1em; border: .13em solid #9aa0a6; border-radius: .15em; flex: none; }
.gm-st { width: 1em; height: 1em; flex: none; background: #dadce0; clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 92%,50% 70%,21% 92%,32% 57%,2% 35%,39% 35%); }
.gm-row {
  flex: none;
  height: 2.9em;
  padding: 0 1.2em;
  display: flex;
  align-items: center;
  gap: 1em;
  border-bottom: 1px solid #f6f8fc;
  color: #5f6368;
  font-size: 1.12em;
}
.gm-row b { flex: none; width: 22%; color: #202124; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-row p { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-row p span { color: #202124; }
.gm-row p em { font-style: normal; color: #5f6368; }
.gm-row time { flex: none; font-size: .92em; }
.gm-row.unread b, .gm-row.unread p span { font-weight: 700; color: #202124; }
.gm-row.unread { background: #fff; }
.gm-row.unread time { color: #202124; font-weight: 700; }

/* 写信浮窗：Gmail 真实位置在右下角 */
.gm-compose-win {
  position: absolute;
  z-index: 5;
  right: 1.6em;
  bottom: 0;
  width: 42%;
  max-height: 76%;
  display: flex;
  flex-direction: column;
  border-radius: .7em .7em 0 0;
  background: #fff;
  box-shadow: 0 .6em 2em rgba(0, 0, 0, .28);
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
}
/* 写信窗只在 AI 点了「写邮件」之后弹出（JS 加 .is-composing）—— 和真实 Gmail 一致 */
.wf.is-composing .gm-compose-win { transform: translateY(0); }
.gm-compose-win > header {
  height: 2.7em;
  padding: 0 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: .7em .7em 0 0;
  background: #f2f6fc;
  color: #202124;
  font-size: 1.1em;
  font-weight: 600;
}
.gm-compose-win > header span { display: flex; gap: .7em; }
.gm-compose-win > header i { width: .8em; height: .8em; border-radius: 50%; background: #c9ccd1; }
.gm-field { height: 2.5em; padding: 0 1.2em; display: flex; align-items: center; gap: .9em; border-bottom: 1px solid #f1f3f4; font-size: 1.1em; }
.gm-field > span { color: #80868b; }
.gm-field > b { color: #202124; font-weight: 400; }
.gm-editor { flex: 1; min-height: 0; overflow: hidden; padding: 1em 1.2em; color: #202124; font-size: 1.1em; line-height: 1.65; white-space: pre-line; }
.gm-compose-win > footer { height: 3.2em; padding: 0 1.2em; display: flex; align-items: center; gap: 1.2em; }
.gm-send {
  padding: .6em 1.7em;
  border: 0;
  border-radius: 1.3em;
  background: #0b57d0;          /* Gmail 发送按钮真实蓝 */
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  cursor: default;
}
.gm-tools { display: flex; gap: .8em; }
.gm-tools i { width: 1em; height: 1em; border-radius: 50%; background: #dadce0; }

/* ---------- 微信桌面版 ---------- */
.app-wechat, .app-moments { background: #ededed; }
.wx-rail {
  flex: none;
  width: 7.5%;
  padding: 1.6em 0 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
  background: #2e2e2e;
}
.wx-ava { width: 2.4em; height: 2.4em; display: grid; place-items: center; border-radius: .3em; background: #07c160; color: #fff; font-size: 1.1em; font-weight: 600; }
.wx-rail i { width: 1.5em; height: 1.5em; background: #7f7f7f; }
.wx-rail i.on { background: #07c160; }
.ic-chat { clip-path: polygon(0 0,100% 0,100% 72%,58% 72%,36% 100%,36% 72%,0 72%); }
.ic-contact { clip-path: circle(30% at 50% 30%); background-image: none; }
.ic-fav { clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 92%,50% 70%,21% 92%,32% 57%,2% 35%,39% 35%); }
.ic-file { clip-path: polygon(0 12%,42% 12%,52% 0,100% 0,100% 100%,0 100%); }
.ic-moment { border-radius: 50%; }
.wx-more { margin-top: auto; width: 1.2em; height: .25em; background: linear-gradient(90deg,#7f7f7f 0 22%,transparent 22% 39%,#7f7f7f 39% 61%,transparent 61% 78%,#7f7f7f 78% 100%); }

.wx-list { flex: none; width: 26%; display: flex; flex-direction: column; background: #e7e7e7; border-right: 1px solid #d9d9d9; }
.wx-search { height: 3em; margin: .9em; padding: 0 .9em; display: flex; align-items: center; gap: .6em; border-radius: .35em; background: #d9d9d9; color: #8a8a8a; font-size: 1.1em; }
.wx-search i { width: .85em; height: .85em; border: .13em solid #8a8a8a; border-radius: 50%; }
.wx-item { height: 4.6em; padding: 0 .9em; display: flex; align-items: center; gap: .8em; }
.wx-item.on { background: #c8c8c8; }
.wx-item > div { flex: 1; min-width: 0; }
.wx-item b { display: block; color: #191919; font-size: 1.15em; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-item p { color: #9a9a9a; font-size: 1.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-item time { align-self: flex-start; margin-top: .9em; color: #a8a8a8; font-size: .95em; }
.wx-face { flex: none; width: 3em; height: 3em; display: grid; place-items: center; border-radius: .3em; color: #fff; font-size: 1.05em; }
.wx-face.f1 { background: #4c8dff; }
.wx-face.f2 { background: #f0932b; }
.wx-face.f3 { background: #8e7cc3; }
.wx-face.f4 { background: #58b368; }
.wx-face.me { background: #07c160; }

.wx-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #f5f5f5; }
.wx-chat > header { flex: none; height: 3.6em; padding: 0 1.4em; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e3e3e3; color: #191919; font-size: 1.2em; }
.wx-dots { width: 1.2em; height: .22em; background: linear-gradient(90deg,#7a7a7a 0 22%,transparent 22% 39%,#7a7a7a 39% 61%,transparent 61% 78%,#7a7a7a 78% 100%); }
.wx-msgs { flex: 1; min-height: 0; padding: 1.2em; display: flex; flex-direction: column; gap: 1em; }
.wx-msgs > time { align-self: center; padding: .25em .7em; border-radius: .25em; background: #d5d5d5; color: #fff; font-size: .95em; }
.wx-in, .wx-out { display: flex; align-items: flex-start; gap: .7em; max-width: 78%; }
.wx-out { align-self: flex-end; flex-direction: row; }
.wx-in p, .wx-out p { padding: .7em .9em; border-radius: .35em; background: #fff; color: #191919; font-size: 1.12em; line-height: 1.5; }
.wx-out .wx-txt { background: #95ec69; }   /* 微信发出气泡真实绿 */
.wx-imgs { display: flex; gap: .3em; padding: .35em !important; background: #95ec69 !important; opacity: 0; transform: translateY(.6em); transition: .4s var(--ease-out); }
.wx-imgs img { width: 4.4em; height: 5.9em; object-fit: cover; border-radius: .2em; }
.wx-out .wx-txt { opacity: 0; transform: translateY(.6em); transition: .4s var(--ease-out) .15s; }
/* 图片和附言在 AI 把图放进对话时出现（JS 加 .is-dropped），不再绑相位 */
.wf.is-dropped .wx-imgs,
.wf.is-dropped .wx-out .wx-txt { opacity: 1; transform: none; }

.wx-input { flex: none; height: 8.5em; padding: .7em 1.2em 1em; display: flex; flex-direction: column; border-top: 1px solid #e3e3e3; background: #f5f5f5; }
.wx-icons { display: flex; gap: 1.1em; }
.wx-icons i { width: 1.3em; height: 1.3em; border-radius: .2em; background: #7a7a7a; opacity: .55; }
.wx-field { flex: 1; }
.wx-send { align-self: flex-end; padding: .45em 1.3em; border: 0; border-radius: .3em; background: #07c160; color: #fff; font-size: 1.05em; cursor: default; }

/* ---------- 朋友圈 ---------- */
.mo-win { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #f5f5f5; }
.mo-win > header { flex: none; height: 3.6em; padding: 0 1.4em; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e3e3e3; color: #191919; font-size: 1.2em; font-weight: 500; }
.mo-editor { flex: 1; min-height: 0; padding: 1.4em; display: flex; flex-direction: column; gap: 1.1em; }
.mo-editor p { color: #191919; font-size: 1.25em; line-height: 1.6; min-height: 1.6em; }
.mo-media { position: relative; width: 40%; aspect-ratio: 3/4; border-radius: .35em; overflow: hidden; background: #000; }
.mo-media img { width: 100%; height: 100%; object-fit: cover; }
.mo-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: 2.6em; height: 2.6em; border-radius: 50%; background: rgba(0,0,0,.55); }
.mo-play::after { content: ""; position: absolute; inset: 50% auto auto 54%; transform: translate(-50%,-50%); border: .6em solid transparent; border-left-color: #fff; }
.mo-media em { position: absolute; right: .5em; bottom: .4em; color: #fff; font-size: 1em; font-style: normal; }
.mo-opts { margin-top: auto; display: flex; flex-direction: column; gap: .1em; }
.mo-opts span { padding: .8em 0; border-top: 1px solid #e6e6e6; color: #576b95; font-size: 1.1em; }
.mo-win > footer { flex: none; height: 3.8em; padding: 0 1.4em; display: flex; align-items: center; justify-content: flex-end; border-top: 1px solid #e3e3e3; }
.mo-send { padding: .5em 1.6em; border: 0; border-radius: .3em; background: #07c160; color: #fff; font-size: 1.1em; cursor: default; }

/* ---------- 完成提示 ---------- */
.wf-toast {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 1.4em;
  transform: translate(-50%, .8em);
  padding: .6em 1.3em;
  border-radius: 2em;
  background: rgba(16, 18, 24, .93);
  color: #7fe6a8;
  font-size: 1.15em;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: .35s var(--ease-out);
}
.wf-toast::before { content: "✓ "; }
.wf[data-phase="done"] .app .wf-toast { opacity: 1; transform: translate(-50%, 0); }

/* ---------- AI 光标 ---------- */
.wf-cursor {
  position: absolute;
  z-index: 8;
  left: 0; top: 0;
  width: 1.5em;
  height: 1.5em;
  margin: -.75em 0 0 -.75em;   /* 中心对准落点 */
  border-radius: 50%;
  background: rgba(11, 99, 246, .3);
  box-shadow: 0 0 0 .12em rgba(255, 255, 255, .9), 0 .4em 1em rgba(0, 0, 0, .35);
  opacity: 0;
  /* 滑动曲线：快出发、缓到达，像人手推鼠标 */
  transition: transform .62s cubic-bezier(.3, .85, .3, 1), opacity .3s var(--ease);
}
.wf[data-phase="work"] .wf-cursor,
.wf[data-phase="send"] .wf-cursor { opacity: 1; }

/* 点击：光标本体按下 + 一圈波纹散开（JS 加 .is-click） */
.wf-cursor::after {
  content: "";
  position: absolute;
  inset: -45%;
  border: .14em solid rgba(88, 146, 255, .8);
  border-radius: 50%;
  opacity: 0;
}
.wf-cursor.is-click { animation: wf-press .4s var(--ease); }
.wf-cursor.is-click::after { animation: wf-ripple .45s ease-out; }
@keyframes wf-press { 35% { scale: .72; } }
@keyframes wf-ripple {
  0% { opacity: .9; transform: scale(.4); }
  100% { opacity: 0; transform: scale(1.7); }
}

/* ---------- 状态行 ---------- */
.wf-status {
  flex: none;
  position: relative;
  padding-left: 14px;
  color: #a5a5ad;
  font-size: clamp(11px, .95vw, 14px);
  font-weight: 600;
  text-align: right;
  text-wrap: pretty;
  min-height: 1.4em;
}
.wf-status::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 0 0 rgba(76, 141, 255, .35);
  animation: wf-status-pulse 1.5s ease-out infinite;
}
.wf[data-phase="done"] .wf-status { color: #8ce7ac; }
.wf[data-phase="done"] .wf-status::before {
  background: #35c46a;
  animation: none;
}
@keyframes wf-status-pulse {
  70% { box-shadow: 0 0 0 6px rgba(76, 141, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 141, 255, 0); }
}

/* ---------- 手机端：上下堆叠 ---------- */
@media (max-width: 780px) {
  .wf-stage {
    flex: none;
    height: min(54svh, 520px);
    min-height: 390px;
    max-height: none;
    border-radius: 12px;
  }
  .wf-live {
    min-height: 58px;
    padding: 7px 9px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }
  .wf-path { width: 100%; justify-content: center; gap: 4px; font-size: 9.5px; }
  .wf-path span { padding: 2px 5px; }
  .wf-status { width: 100%; padding-left: 0; text-align: center; font-size: 10.5px; }
  .wf-status::before { position: relative; display: inline-block; top: -1px; margin-right: 6px; }
  /* 手机在小屏只做“这句话是从手机发出的”的视觉锚点，
     真实指令由紧邻标签的状态行承担。 */
  .wf-phone { flex: none; }
  .wf-phone .wf-frame { height: auto; width: min(260px, 74vw); }
  /* 小屏由宽度决定电脑尺寸，避免 max-width 压窄后仍保留桌面高度而纵向变形。 */
  .wf-laptop .wf-frame {
    width: 100%;
    height: auto;
    max-height: none;
  }
  .wf[data-camera="phone"] .wf-laptop { transform: translate(18%, 10%) scale(.6); opacity: .08; }
  .wf[data-camera="zoom"] .wf-laptop {
    transform: scale(1.68) translate(var(--zx, 0%), var(--zy, 0%));
  }
  .wf-dev figcaption { margin-top: .35em; font-size: 9px; }
  .gpt-composer b,
  .gpt-listening b { display: none; }        /* 太窄，文字会竖排 */
  .gpt-composer { justify-content: space-between; margin-bottom: .8em; }
  .wf-tab { flex-direction: row; gap: .35em; padding: 8px 4px; font-size: 10.5px; }
  .wf-tab span { font-size: 9px; }
  .gm-side { display: none; }          /* 小屏放不下侧栏，保留列表 + 写信窗 */
  .gm-list { margin-left: .8em; }
  .gm-compose-win { width: 68%; right: .8em; max-height: 82%; }
  .wx-list { width: 34%; }
  .wx-input { height: 6em; }
  .mo-media { width: 30%; }
}

@media (prefers-reduced-motion: reduce) {
  .wf-cursor, .gm-compose-win, .wx-imgs, .wx-out .wx-txt, .wf-toast { transition: none; animation: none; }
}
/* ============================================================
   13 屏 6  现场装好（四步安装清单）
   ============================================================ */
.method-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 1040px;
  margin-top: clamp(28px, 5vw, 56px);
}
.method-list > div {
  min-height: 112px;
  padding: clamp(20px, 2.5vw, 30px);
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-tile);
  background: var(--surface-2);
}
.method-list span { color: #62626a; font-size: 12px; letter-spacing: .08em; }
.method-list b {
  color: var(--ink);
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: -.025em;
  text-align: left;
}


/* ============================================================
   14 屏 7  适合谁
   三栏等宽 —— 之前 1.15fr/1.15fr/.7fr 会把第三张卡压窄、标题折行。
   ============================================================ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 1160px;
  margin-top: clamp(28px, 5vw, 56px);
}
.audience-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-tile);
  background: var(--surface-2);
  text-align: left;
}
.audience-card.audience-primary {
  border-color: rgba(79, 139, 255, .28);
  background: linear-gradient(145deg, rgba(36, 98, 230, .15), transparent 48%), #111216;
}
.audience-card > span { color: #62626a; font-size: 12px; letter-spacing: .08em; }
.audience-card b {
  margin-top: auto;
  color: var(--ink);
  font-size: clamp(21px, 2vw, 28px);
  letter-spacing: -.035em;
  text-wrap: nowrap;          /* 「想提升技能的人」不再折出一个孤字 */
}
.audience-card p {
  margin-top: 8px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
  word-break: auto-phrase;
}
.audience-card p.audience-one-line { white-space: nowrap; }
/* 同 .outcome-card：给说明留固定行数，三张卡的标题才在同一条基线上 */
@media (min-width: 781px) {
  .audience-card p { min-height: calc(2 * 1.6em); }
}


/* ============================================================
   15 屏 8  $99 CTA
   ============================================================ */
.card-cta {
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(800px 520px at 88% 50%, rgba(27, 98, 255, .19), transparent 70%),
    #070708;
}
.card-cta .bs.sp { margin-top: 1.1em; }

.cta-steps {
  margin: clamp(20px, 3vw, 34px) 0;
  color: #bcbcc4;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 650;
  word-break: keep-all;   /* 同 .micro：只在「·」处换行 */
}
.cta-steps span { margin: 0 10px; color: #5d5d66; }

.cta-price {
  color: #fff;
  font: 760 clamp(46px, 7vw, 84px)/1 var(--display);
  letter-spacing: -.06em;
}


/* ============================================================
   16 屏 9  正课价格
   ============================================================ */
.card-price {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #060607;
}

.price-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto clamp(18px, 4vw, 30px);
  text-align: center;
}
.price-head .bm,
.price-head .bs { width: 100%; max-width: none; text-align: center; }
.price-head .bs { margin-top: 8px; }

.price-cards {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 11px;          /* 给早鸟徽章留出跨边框的位置 */
}

.price-card {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-tile);
  background: var(--surface-2);
  text-align: center;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.price-card.price-hot {
  border-color: rgba(79, 139, 255, .45);
  background: linear-gradient(145deg, rgba(30, 91, 220, .2), transparent 46%), #121317;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.price-card.price-alt {
  border-color: rgba(255, 255, 255, .075);
  background: #0e0e10;
}
.price-card.price-alt h3,
.price-card.price-alt .price { color: var(--body); }

/* 早鸟徽章：骑在卡片上边框中央，不再压住「一天正课」标题 */
.price-tag {
  position: absolute;
  z-index: 4;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: #286fff;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}

.price-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--body);
}
.price {
  margin-top: 4px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--ink);
}
.price .placeholder { font-size: 20px; }

.price-feat {
  list-style: none;
  width: fit-content;
  max-width: 100%;
  margin: 22px auto 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.price-feat li {
  position: relative;
  padding-left: 20px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.5;
}
.price-feat li b { color: var(--ink); font-weight: 600; }
.price-feat li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #707078;
}
.price-card.price-hot .price-feat li::before { background: var(--accent-soft); }


/* ============================================================
   17 屏 10  关于 Aiven
   ============================================================ */
/* 这张卡同时带 .card-helper（居中），用 .card.card-about 提高优先级。 */
.card.card-about {
  align-items: center;
  text-align: left;
}
/* 统一 720px：既压住正文行长（约 36 个汉字一行），
   又让眉标、标题、正文的左边缘对齐成一条线。 */
.card.card-about > * {
  width: 100%;
  max-width: 720px;
}


/* ============================================================
   18 屏 11  扫码加入
   ============================================================ */
.card-last {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #070708;
}
.card-last .sp { margin-top: 1em; }
.card-last #screen-11 { position: absolute; top: 0; }

.qr-box {
  position: relative;
  width: min(240px, 64vw);
  aspect-ratio: 1;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: #0f0f11;
}
.qr-box img { width: 88%; height: 88%; object-fit: contain; }
.qr-box .qr-hint {
  display: none;
  position: absolute;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: .1em;
}
.qr-box.qr-empty img { display: none; }
.qr-box.qr-empty .qr-hint { display: block; }

.card-last .qr-box {
  width: min(168px, 42vw);
  margin: clamp(16px, 3vw, 28px) auto;
  align-self: center;
}


/* ============================================================
   19 会员专区与口令门
   （members.html / install-guide.html 另有各自的补充样式表）
   ============================================================ */
.member-page {
  min-height: 100svh;
  padding: 130px clamp(20px, 4vw, 48px) 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(620px 360px at 50% 0%, rgba(31, 91, 225, .12), transparent 70%),
    #000;
}

.gate {
  width: min(100%, 560px);
  padding: clamp(34px, 6vw, 58px);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.gate-note { margin-top: 16px; color: var(--dim); font-size: 14px; }
.gate-form {
  width: 100%;
  max-width: 390px;
  margin-top: 32px;
  display: flex;
  gap: 10px;
}
.gate-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 15px;
  outline: none;
}
.gate-input:focus {
  border-color: rgba(87, 143, 255, .65);
  box-shadow: 0 0 0 3px rgba(32, 101, 255, .12);
}
.gate-input.shake { animation: shake .4s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.gate-btn {
  height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: 9px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.gate-msg { margin-top: 18px; min-height: 1.4em; color: #c96a5a; font-size: 13px; }

.member-area {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.member-area > .h-lg { margin-bottom: 16px; }

.member-section {
  position: relative;
  isolation: isolate;
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius-tile);
  background: #0c0c0d;
}
.member-section h2 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.member-body { font-size: 14px; }
.member-section .qr-box { margin-top: 8px; }

.member-resource-link {
  display: inline-flex;
  margin-top: 16px;
  padding: 10px 16px;
  border: 1px solid rgba(77, 132, 255, .36);
  border-radius: 9px;
  background: rgba(40, 109, 255, .1);
  color: #dce6ff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.member-resource-link:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 132, 255, .58);
  background: rgba(40, 109, 255, .16);
}
.member-resource-link + .member-resource-link { margin-left: 8px; }

.section-locked-note { display: none; color: var(--dim); font-size: 14px; }
.member-section.section-locked .member-body,
.member-section.section-locked .member-resource-link,
.member-section.section-locked .qr-box { display: none; }
.member-section.section-locked h2 { color: var(--dim); }
.member-section.section-locked .section-locked-note { display: block; }


/* ============================================================
   20 进场动效与边缘巡航
   进入视口：淡入 + 上移 + 微缩放（js/main.js 给 .panel 加 .motion-in）
   ============================================================ */
html.motion-enabled .panel .card > :not([id]) {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(.985);
  filter: blur(5px);
  transition:
    opacity .72s var(--ease-out),
    transform .88s var(--ease-out),
    filter .62s ease;
}
html.motion-enabled .panel.motion-in .card > :not([id]) {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

html.motion-enabled .panel.motion-in .card > :nth-child(2) { transition-delay: .06s; }
html.motion-enabled .panel.motion-in .card > :nth-child(3) { transition-delay: .12s; }
html.motion-enabled .panel.motion-in .card > :nth-child(4) { transition-delay: .18s; }
html.motion-enabled .panel.motion-in .card > :nth-child(5) { transition-delay: .24s; }
html.motion-enabled .panel.motion-in .card > :nth-child(6) { transition-delay: .3s; }
html.motion-enabled .panel.motion-in .card > :nth-child(n+7) { transition-delay: .34s; }

/* 网格容器本身不动，内部小卡逐张进入 */
html.motion-enabled .panel .card > .price-cards,
html.motion-enabled .panel .card > .outcome-grid,
html.motion-enabled .panel .card > .audience-grid,
html.motion-enabled .panel .card > .method-list,
html.motion-enabled .panel .card > .task-chips {
  opacity: 1;
  transform: none;
  filter: none;
}
html.motion-enabled .price-cards .price-card,
html.motion-enabled .outcome-grid .outcome-card,
html.motion-enabled .audience-grid .audience-card,
html.motion-enabled .method-list > div {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(.975);
  transition:
    opacity .68s var(--ease-out),
    transform .8s var(--ease-out),
    border-color .35s ease,
    box-shadow .35s ease,
    background-color .35s ease;
}
html.motion-enabled .panel.motion-in .price-cards .price-card,
html.motion-enabled .panel.motion-in .outcome-grid .outcome-card,
html.motion-enabled .panel.motion-in .audience-grid .audience-card,
html.motion-enabled .panel.motion-in .method-list > div {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
html.motion-enabled .panel.motion-in :is(.price-card, .outcome-card, .audience-card, .method-list > div):nth-child(1) { transition-delay: .14s; }
html.motion-enabled .panel.motion-in :is(.price-card, .outcome-card, .audience-card, .method-list > div):nth-child(2) { transition-delay: .22s; }
html.motion-enabled .panel.motion-in :is(.price-card, .outcome-card, .audience-card, .method-list > div):nth-child(3) { transition-delay: .3s; }
html.motion-enabled .panel.motion-in :is(.price-card, .outcome-card, .audience-card, .method-list > div):nth-child(4) { transition-delay: .38s; }

/* 「AI 助理替你办事」的呼吸光 */
@keyframes accent-breathe {
  0%, 100% { text-shadow: 0 0 24px rgba(63, 123, 255, .16); }
  50% { text-shadow: 0 0 44px rgba(63, 123, 255, .34); }
}
.panel.motion-in .helper-accent { animation: accent-breathe 4.2s ease-in-out 1s infinite; }

/* 小卡边缘巡航：一段蓝白高光沿边框转圈 */
@property --edge-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes edge-orbit { to { --edge-angle: 360deg; } }

.price-card::before,
.member-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(
    from var(--edge-angle),
    transparent 0deg 236deg,
    rgba(62, 124, 255, .03) 250deg,
    rgba(71, 135, 255, .72) 282deg,
    rgba(194, 216, 255, .96) 306deg,
    rgba(78, 139, 255, .42) 326deg,
    transparent 344deg 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  animation: edge-orbit 6.5s linear infinite;
  animation-play-state: paused;
  transition: opacity .35s ease;
}
.panel.motion-in .price-card::before { opacity: .42; animation-play-state: running; }
.panel.motion-in .price-card.price-hot::before { opacity: .9; animation-duration: 4.8s; }
.panel.motion-in .price-card.price-alt::before { opacity: .3; }
.member-area:not([hidden]) .member-section::before {
  opacity: .26;
  animation-play-state: running;
  animation-duration: 8s;
}
.panel.is-hidden .price-card::before { animation-play-state: paused; }

@media (hover: hover) {
  .btn-cta:hover::after,
  .price-btn:hover::after,
  .nav-qr:hover::after { transform: translateX(130%); }

  .price-card:hover,
  .outcome-card:hover,
  .audience-card:hover,
  .method-list > div:hover {
    transform: translateY(-4px);
    border-color: rgba(128, 163, 235, .24);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .07);
  }

  .price-card:hover::before,
  .member-section:hover::before {
    opacity: 1 !important;
    animation-duration: 2.8s !important;
  }

  .workflow-stage:hover {
    border-color: rgba(111, 151, 232, .24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 34px 90px rgba(0, 0, 0, .52), 0 0 58px rgba(41, 91, 198, .1);
  }
}


/* ============================================================
   21 响应式
   ============================================================ */

/* ---- 平板 --------------------------------------------------- */
@media (max-width: 900px) {
  .card { padding: clamp(30px, 6vw, 52px) clamp(24px, 6vw, 48px); }

  .outcome-grid { grid-template-columns: repeat(2, 1fr); }
  .outcome-card:last-child { grid-column: 1 / -1; min-height: 170px; }

  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-card:last-child { grid-column: 1 / -1; min-height: 170px; }
}

/* ---- Hero 转竖排 --------------------------------------------- */
@media (max-width: 780px) {
  .hero-title { font-size: clamp(43px, 12vw, 62px); }

  /* 指令面板回到正常文档流，跟在正文下面 */
  .hero-command {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 430px;
    margin-top: 26px;
  }
  .hero-meta { position: static; margin-top: 16px; }

  .outcome-grid { grid-template-columns: 1fr; gap: 8px; }
  .outcome-card,
  .outcome-card:last-child { grid-column: auto; min-height: 118px; padding: 18px; }
  .outcome-card h2 { margin-top: 22px; }
}

/* ---- 手机 --------------------------------------------------- */
@media (max-width: 700px) {
  .nav { height: 58px; padding: 0 16px; gap: 10px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 12px; }
  .nav-qr { padding: 6px 12px; }
  .brand { font-size: 12.5px; }

  .panel { padding: 58px 8px 8px; }
  .card { padding: clamp(24px, 7vw, 34px) clamp(20px, 7vw, 30px); border-radius: 18px; }

  .bl { font-size: clamp(30px, 9vw, 40px); }
  .bm { font-size: clamp(22px, 6.6vw, 30px); }
  .bs { font-size: clamp(13px, 3.8vw, 16px); }

  /* Hero：标题按可用宽度收字号，避免「聊/天。」这类孤字断行 */
  .hero-v8 { justify-content: flex-start; padding-top: clamp(72px, 12vh, 105px); }
  .hero-v8 .eyebrow { margin-bottom: 16px; }
  .hero-title { font-size: clamp(30px, 10.4vw, 44px); }
  .hero-flow { margin-top: 18px; }
  .hero-flow b { padding: 6px 10px; font-size: 11px; }
  .hero-v8 .hero-more { margin-top: 16px; }
  .hero-command { padding: 15px; border-radius: 15px; margin-top: 18px; }
  .hero-command p { margin-top: 7px; font-size: 15px; }
  .hero-command-send { margin-top: 10px; }

  .half-punch { margin-top: 30px; }
  .task-chips { margin-top: 18px; }

  .card-learn .learn-top .bm { font-size: clamp(26px, 8vw, 34px); }
  .card-learn .learn-top .bs { margin-top: 10px; }

  .card-helper .bl { font-size: clamp(23px, 6.8vw, 30px); }
  .card-helper .helper-accent { font-size: clamp(30px, 9vw, 40px); }
  .card-helper::after { width: 80vw; right: -28%; }

  .outcome-grid { margin-top: 14px; }
  .outcome-card p { margin-top: 7px; line-height: 1.45; }

  .method-list,
  .audience-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .method-list > div { min-height: 72px; padding: 14px 18px; gap: 16px; }
  .audience-card,
  .audience-card:last-child { grid-column: auto; min-height: 112px; padding: 18px; }
  .audience-card b { text-wrap: wrap; }

  .price-cards { flex-direction: column; gap: 10px; }
  .price-card { padding: 16px 15px; border-radius: 10px; }
  .price-card h3 { font-size: 12.5px; }
  .price { font-size: 27px; margin-top: 2px; }
  .price-feat { margin: 10px auto 14px; gap: 6px; }
  .price-feat li { padding-left: 16px; font-size: 12px; line-height: 1.4; }
  .price-feat li::before { width: 4px; height: 4px; left: 2px; }
  .price-btn { padding: 8px 20px; font-size: 12.5px; }

  .card-cta .btn-cta { padding: 11px 18px; border-radius: 8px; font-size: 15px; }

  .card-last .qr-box { width: min(148px, 42vw); margin: 14px auto; border-radius: 12px; }
  .card-last .site-foot { margin-top: 16px; padding-top: 14px; font-size: 11px; }

  /* 底部内容避开右下角的 AI 助教浮标 */
  .card-cta,
  .card-price,
  .card-last { padding-bottom: calc(clamp(24px, 7vw, 34px) + var(--aiw-safe)); }

  .progress { left: 5px; gap: 9px; }
  .progress .p-label { display: none; }

  .gate { padding: 30px 22px; border-radius: 16px; }
  .gate-form { flex-direction: column; }
  .gate-btn { width: 100%; }
  .member-section { padding: 22px 20px; }

  /* ---- 演示：手机指令 → AI 完成，纵向直线展示 ---- */
  .demo-v8-card { padding: 18px 14px; }
  .workflow-stage {
    height: min(62svh, 500px);
    aspect-ratio: auto;
    padding: 12px;
    border-radius: 14px;
  }
  .direct-demo-tabs {
    height: 36px;
    gap: 5px;
  }
  .direct-demo-tab {
    padding: 0 6px;
    gap: 5px;
  }
  .direct-demo-tab span { font-size: 8.5px; }
  .direct-demo-tab b { font-size: 9.5px; }
  .direct-demo-flow {
    height: calc(100% - 62px);
    margin-top: 8px;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(100px, .8fr) 26px minmax(170px, 1.2fr);
    gap: 5px;
  }
  .direct-command-card,
  .direct-action-card {
    padding: 10px 12px;
    border-radius: 10px;
  }
  .direct-card-label { font-size: 9px; }
  .direct-card-label > span { width: 18px; height: 18px; font-size: 8px; }
  .direct-command {
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 11px 11px 3px 11px;
  }
  .direct-command p { font-size: 11px; line-height: 1.42; }
  .direct-send-pill { padding: 4px 5px 4px 9px; font-size: 8px; }
  .direct-send-pill span { width: 16px; height: 16px; }
  .direct-arrow i {
    width: 2px;
    height: 100%;
  }
  .direct-arrow i::after {
    inset: -35% 0 auto;
    width: auto;
    height: 35%;
    background: linear-gradient(180deg, transparent, #4a87ff, transparent);
  }
  .direct-arrow span { padding: 3px 7px; font-size: 8px; }
  .workflow-stage[data-phase="work"] .direct-arrow i::after {
    animation-name: direct-transfer-mobile;
  }
  .direct-action { margin-top: 8px; }
  .direct-action-title { font-size: 14px; }
  .direct-action ol { margin-top: 7px; gap: 5px; }
  .direct-action li {
    padding: 6px 8px;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 6px;
  }
  .direct-action li > span { width: 17px; height: 17px; font-size: 8px; }
  .direct-action li b { font-size: 10px; }
  .direct-action li i { font-size: 8px; }
  .direct-result { margin-top: 7px; padding: 7px 8px; font-size: 9px; }
  .direct-summary { inset: 54px 12px 26px; }
  .direct-summary > div { margin-top: 16px; gap: 5px; }
  .direct-summary span { padding: 7px 9px; font-size: 9px; }
  .device-shot-title {
    left: 9px;
    top: 10px;
    transform: none;
    gap: 5px;
  }
  .device-shot-title span { padding: 4px 7px; font-size: 8px; }
  .device-shot-title b { font-size: 13px; }
  .phone-shot-art {
    width: auto;
    height: 100%;
  }
  .laptop-shot-art {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: auto;
    transform: translateY(-50%);
  }
  .device-phone-ui {
    padding: 21px 7px 8px;
  }
  .device-phone-ui .device-screen-head {
    padding-bottom: 5px;
    font-size: 7px;
  }
  .device-phone-ui .direct-command { padding: 8px; }
  .device-phone-ui .direct-command p { font-size: 8.5px; line-height: 1.38; }
  .device-phone-ui .direct-send-pill { padding: 3px 3px 3px 6px; font-size: 7px; }
  .device-phone-ui .direct-send-pill span { width: 14px; height: 14px; }
  .device-laptop-ui {
    padding: 8px 10px;
  }
  .device-laptop-ui .device-screen-head {
    min-height: 15px;
    padding-bottom: 4px;
    font-size: 7px;
  }
  .device-laptop-ui .direct-action { margin-top: 5px; }
  .device-laptop-ui .direct-action-title { font-size: 11px; }
  .device-laptop-ui .direct-action ol { margin-top: 4px; gap: 3px; }
  .device-laptop-ui .direct-action li {
    padding: 4px 5px;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    gap: 4px;
  }
  .device-laptop-ui .direct-action li > span { width: 13px; height: 13px; font-size: 7px; }
  .device-laptop-ui .direct-action li b { font-size: 8px; }
  .device-laptop-ui .direct-action li i { font-size: 7px; }
  .device-laptop-ui .direct-result { margin-top: 4px; padding: 4px 5px; font-size: 7.5px; }
  .laptop-shot-art .direct-summary {
    left: 11.5%;
    top: 16.8%;
    width: 70.7%;
    height: 50.5%;
    padding: 8px;
  }
  .direct-summary > p { font-size: 8px; }
  .direct-summary > strong { margin-top: 4px; font-size: 16px; }
  .direct-summary > div { margin-top: 8px; gap: 3px; }
  .direct-summary span { padding: 4px 6px; font-size: 7px; }
  .phone-shot-art,
  .laptop-shot-art {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: 100%;
    transform: none;
    aspect-ratio: 16 / 9;
  }
  .device-phone-ui,
  .device-laptop-ui { padding: 0; }
  .laptop-shot-art .direct-summary {
    left: 24%;
    top: 12.3%;
    width: 52%;
    height: 60.3%;
    padding: 8px;
  }
  .chatgpt-mobile-head { font-size: 7px; }
  .chatgpt-mobile-head b { font-size: 8px; }
  .chatgpt-command-bubble { font-size: 7.5px; }
  .mobile-voice-strip > b { font-size: 6px; }
  .agent-control-bar { font-size: 5px; }
  .agent-control-bar > b { font-size: 6px; }
  .agent-control-bar > em { font-size: 5px; }
  .gmail-sidebar,
  .gmail-toolbar,
  .gmail-compose header,
  .gmail-compose p,
  .gmail-body,
  .wechat-contact-list p,
  .wechat-chat-pane header,
  .wechat-chat-pane > p,
  .moments-nav,
  .moments-publisher header,
  .moments-publisher > p { font-size: 5px; }
  .desktop-result { padding: 4px 6px; font-size: 5px; }
  .workflow-status {
    bottom: 2px;
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 999px;
    color: #9a9aa4;
    background: rgba(7, 8, 11, .82);
    font-size: 9px;
    line-height: 1.15;
    backdrop-filter: blur(8px);
  }
  .workflow-stage[data-camera="phone"] .phone-shot-art {
    transform: scale(1.42);
  }
  .workflow-stage[data-camera="laptop"] .laptop-shot-art {
    transform: scale(1.2);
  }
  .workflow-stage[data-camera="phone"] .device-shot-phone .device-shot-title,
  .workflow-stage[data-camera="laptop"] .device-shot-laptop .device-shot-title {
    transform: translateX(-8px);
  }
  .workflow-stage[data-focus="phone-voice"] .phone-shot-art {
    transform: translate3d(-16%, -4%, 0) scale(1.88);
  }
  .workflow-stage[data-focus="phone-transcript"] .phone-shot-art {
    transform: translate3d(-18%, 4%, 0) scale(1.98);
  }
  .workflow-stage[data-focus="phone-send"] .phone-shot-art {
    transform: translate3d(-22%, -22%, 0) scale(2.2);
  }
  .workflow-stage[data-focus="gmail-open"] .laptop-shot-art,
  .workflow-stage[data-focus="wechat-open"] .laptop-shot-art,
  .workflow-stage[data-focus="moments-open"] .laptop-shot-art {
    transform: translate3d(0, 0, 0) scale(.92);
  }
  .workflow-stage[data-focus="gmail-compose"] .laptop-shot-art {
    transform: translate3d(-8%, 7%, 0) scale(1.45);
  }
  .workflow-stage[data-focus="gmail-to"] .laptop-shot-art {
    transform: translate3d(-22%, 5%, 0) scale(1.65);
  }
  .workflow-stage[data-focus="gmail-body"] .laptop-shot-art {
    transform: translate3d(-28%, -11%, 0) scale(1.6);
  }
  .workflow-stage[data-focus="gmail-send"] .laptop-shot-art {
    transform: translate3d(-7%, -18%, 0) scale(2.2);
  }
  .workflow-stage[data-focus="gmail-result"] .laptop-shot-art,
  .workflow-stage[data-focus="wechat-result"] .laptop-shot-art,
  .workflow-stage[data-focus="moments-result"] .laptop-shot-art {
    transform: translate3d(-28%, -18%, 0) scale(1.8);
  }
  .workflow-stage[data-focus="wechat-contact"] .laptop-shot-art {
    transform: translate3d(-15%, 12%, 0) scale(1.65);
  }
  .workflow-stage[data-focus="wechat-images"] .laptop-shot-art {
    transform: translate3d(-40%, 5%, 0) scale(1.65);
  }
  .workflow-stage[data-focus="wechat-send"] .laptop-shot-art {
    transform: translate3d(-32%, -18%, 0) scale(2.3);
  }
  .workflow-stage[data-focus="moments-video"] .laptop-shot-art {
    transform: translate3d(-19%, -11%, 0) scale(1.6);
  }
  .workflow-stage[data-focus="moments-copy"] .laptop-shot-art {
    transform: translate3d(-34%, 14%, 0) scale(1.65);
  }
  .workflow-stage[data-focus="moments-publish"] .laptop-shot-art {
    transform: translate3d(-32%, -18%, 0) scale(2.3);
  }
  .ai-pointer {
    width: 11px;
    height: 16px;
    filter:
      drop-shadow(0 0 1px rgba(0, 0, 0, .95))
      drop-shadow(0 2px 3px rgba(0, 0, 0, .75));
  }
  .workflow-stage[data-focus="gmail-compose"] .ai-pointer { left: 32.5%; top: 25%; }
  .workflow-stage[data-focus="gmail-to"] .ai-pointer { left: 65%; top: 45%; }
  .workflow-stage[data-focus="gmail-body"] .ai-pointer { left: 67%; top: 71%; }
  .workflow-stage[data-focus="gmail-send"] .ai-pointer { left: 45.5%; top: 97%; }
  .workflow-stage[data-focus="wechat-contact"] .ai-pointer { left: 20.5%; top: 24%; }
  .workflow-stage[data-focus="wechat-images"] .ai-pointer { left: 77%; top: 41%; }
  .workflow-stage[data-focus="wechat-send"] .ai-pointer { left: 93%; top: 94.5%; }
  .workflow-stage[data-focus="moments-video"] .ai-pointer { left: 50%; top: 61%; }
  .workflow-stage[data-focus="moments-copy"] .ai-pointer { left: 72%; top: 32%; }
  .workflow-stage[data-focus="moments-publish"] .ai-pointer { left: 92%; top: 85%; }

  .legal-page { padding: 100px 20px 70px; }
}

@keyframes direct-transfer-mobile {
  to { transform: translateY(385%); }
}

/* ---- 矮桌面窗口 ---------------------------------------------- */
@media (max-height: 720px) and (min-width: 701px) {
  .card { padding-top: 34px; padding-bottom: 34px; }
  .bl { font-size: clamp(30px, 3.8vw, 48px); }
  .bm { font-size: clamp(22px, 2.7vw, 31px); }
  .bs { font-size: clamp(14px, 1.35vw, 18px); }
  .outcome-card { min-height: 200px; padding: 22px; }
  .audience-card { min-height: 210px; padding: 24px; }
  .price-card { padding: 24px; }
}


/* ============================================================
   22 减少动态效果
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .card { transform: none !important; opacity: 1 !important; }

  html.motion-enabled .panel .card > :not([id]),
  html.motion-enabled .price-cards .price-card,
  html.motion-enabled .outcome-grid .outcome-card,
  html.motion-enabled .audience-grid .audience-card,
  html.motion-enabled .method-list > div {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .price-card::before,
  .member-section::before { display: none; }
}
