/* ================================================================
   原型设计 · 官网样式
   视觉语言与产品本体一致：亮纸底 + 多彩极光光斑 + 源力蓝主色
   设计令牌取自产品端 frontend/src/styles/yuanli-tokens.css（源力设计系统）
   ================================================================ */

/* ---------------- 设计令牌 ---------------- */
:root {
  /* 源力主色阶 */
  --primary-1: #f3f7ff;
  --primary-2: #ebf1ff;
  --primary-3: #97bcff;
  --primary-5: #387bff;
  --primary-6: #1664ff;
  --primary-7: #1759dd;

  /* 文字 */
  --ink: #0c0d0e;
  --ink-2: #42464e;
  --ink-3: #737a87;
  --ink-4: #c7ccd6;

  /* 底色 / 边框 */
  --paper: #ffffff;
  --paper-2: #fafbfc;
  --paper-3: #f6f8fa;
  --paper-4: #f1f3f5;
  --line: #eaedf1;
  --line-2: #dde2e9;

  /* 语义色 */
  --success: #2a814b;
  --success-bg: #eef9f1;

  /* 源力签名阴影（按钮：1px 环描边 + 2px 硬投影） */
  --shadow-blue: 0 0 0 1px #0054ff, 0 2px 1px 0 rgba(0, 0, 0, 0.15);
  --shadow-blue-hover: 0 0 0 1px #4585ff, 0 2px 1px 0 rgba(0, 0, 0, 0.15);
  --shadow-gray: 0 0 0 1px #dee3e8, 0 2px 1px 0 rgba(0, 0, 0, 0.08);
  --shadow-gray-hover: 0 0 0 1px #c9cdd4, 0 2px 1px 0 rgba(0, 0, 0, 0.08);

  /* 浮层阴影 */
  --shadow-1: 0 1px 2px rgba(12, 13, 14, 0.05);
  --shadow-2: 0 2px 6px rgba(13, 13, 14, 0.06), 0 5px 15px rgba(13, 13, 14, 0.08);
  --shadow-float: 0 18px 44px -22px rgba(13, 26, 61, 0.3);

  /* 圆角 / 动效 */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);

  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

/* ---------------- 基础重置 ---------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* 锚点定位为固定导航留出空间 */
section[id],
header[id] {
  scroll-margin-top: 80px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: rgba(22, 100, 255, 0.22);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-narrow {
  max-width: 800px;
}

.text-gradient {
  background: linear-gradient(100deg, #5fa1ff 0%, #1664ff 46%, #6f7dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- 按钮（源力签名：环描边 + 硬投影） ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--paper);
  box-shadow: var(--shadow-gray);
  transition: transform 0.28s var(--ease), box-shadow 0.2s ease, background-color 0.2s ease;
  will-change: transform;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.btn-primary {
  color: #fff;
  background: var(--primary-6);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--primary-5);
  box-shadow: var(--shadow-blue-hover);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-ghost {
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-gray);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  color: var(--ink);
  box-shadow: var(--shadow-gray-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-sm {
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
}

/* ================================================================
   导航（浅色玻璃，全程固定）
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(234, 237, 241, 0.9);
  transition: box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 22px -16px rgba(13, 24, 50, 0.4);
}

.nav-inner {
  height: 62px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

/* 与产品侧边栏同一枚标记：不加背景、不加描边 */
.brand-logo {
  width: 30px;
  height: 30px;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-5);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* 移动端菜单按钮 */
.nav-burger {
  display: none;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-gray);
  background: var(--paper);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-burger span {
  width: 14px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink-2);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-burger[aria-expanded="true"] span:first-child {
  transform: translateY(2.8px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:last-child {
  transform: translateY(-2.8px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.nav-mobile.is-open {
  max-height: 320px;
  padding: 8px 24px 20px;
}

.nav-mobile a {
  padding: 11px 4px;
  font-size: 15px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.nav-mobile .btn {
  margin-top: 14px;
  border-bottom: none;
}

/* ================================================================
   Hero：亮纸底 + 多彩极光
   ================================================================ */
.hero {
  position: relative;
  background: linear-gradient(180deg, #eef3ff 0%, #f7f9ff 50%, #ffffff 100%);
  padding: 148px 0 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 细网格 */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(130, 165, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 165, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 28%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 28%, transparent 74%);
}

/* 极光光斑：蓝为主，配暖橙与青绿（与产品端多彩光斑同语言） */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.bg-orb--blue {
  width: 620px;
  height: 620px;
  top: -260px;
  left: 50%;
  margin-left: -310px;
  background: radial-gradient(circle, rgba(22, 100, 255, 0.22), transparent 65%);
  animation: orb-drift-1 18s ease-in-out infinite;
}

.bg-orb--amber {
  width: 420px;
  height: 420px;
  top: -130px;
  left: 6%;
  background: radial-gradient(circle, rgba(255, 158, 108, 0.3), transparent 65%);
  animation: orb-drift-2 22s ease-in-out infinite;
}

.bg-orb--mint {
  width: 380px;
  height: 380px;
  top: -90px;
  right: 5%;
  background: radial-gradient(circle, rgba(66, 190, 143, 0.24), transparent 65%);
  animation: orb-drift-3 20s ease-in-out infinite;
}

.bg-orb--violet {
  width: 320px;
  height: 320px;
  top: 120px;
  right: 24%;
  background: radial-gradient(circle, rgba(122, 92, 255, 0.16), transparent 65%);
  animation: orb-drift-2 26s ease-in-out infinite reverse;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 50px) scale(1.08); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, 70px); }
}

@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-70px, 60px); }
}

.bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 249, 255, 0) 55%, #ffffff 98%);
}

.hero-inner {
  position: relative;
  text-align: center;
}

/* Hero 入场 */
[data-hero] {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-in 0.9s var(--ease) forwards;
  animation-delay: calc(0.08s * var(--i, 1));
}

[data-hero="1"] { --i: 1; }
[data-hero="2"] { --i: 2; }
[data-hero="3"] { --i: 3; }
[data-hero="4"] { --i: 4; }
[data-hero="5"] { --i: 5; }
[data-hero="6"] { --i: 6; }

@keyframes hero-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-title {
  margin-top: 26px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-title br {
  display: none;
}

.hero-lede {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-meta {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-3);
}

.hero-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-2);
}

/* ---------------- Hero：工作台演示 ---------------- */
.demo {
  position: relative;
  max-width: 1060px;
  margin: 60px auto 0;
  perspective: 1800px;
}

.demo-window {
  position: relative;
  border-radius: var(--r-lg) var(--r-lg) 12px 12px;
  background: var(--paper);
  border: 1px solid rgba(150, 180, 255, 0.22);
  box-shadow:
    0 30px 70px -28px rgba(13, 24, 50, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.6),
    0 0 90px -30px rgba(22, 100, 255, 0.35);
  overflow: hidden;
  transform: rotateX(6deg) translateY(40px) scale(0.96);
  opacity: 0.6;
  transform-origin: center top;
  transition: transform 1.1s var(--ease), opacity 1.1s var(--ease);
}

.demo.is-in .demo-window {
  transform: none;
  opacity: 1;
}

.demo-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: linear-gradient(180deg, #fbfcfe, #f3f6fb);
  border-bottom: 1px solid var(--line);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.demo-url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
}

.demo-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--primary-6);
}

.demo-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-5);
  animation: live-blink 1.6s ease-in-out infinite;
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.demo-body {
  display: grid;
  grid-template-columns: 39% 61%;
  height: 540px;
}

/* ---- 演示：对话区 ---- */
.demo-chat {
  display: flex;
  flex-direction: column;
  background: #f7f9fd;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.demo-msgs {
  flex: 1;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.bubble {
  max-width: 88%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.bubble.on {
  opacity: 1;
  transform: none;
}

.bubble-user {
  align-self: flex-end;
  padding: 9px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--primary-6);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.55;
  box-shadow: 0 6px 16px -6px rgba(22, 100, 255, 0.6);
}

.caret {
  display: inline-block;
  width: 1.5px;
  height: 13px;
  margin-left: 2px;
  vertical-align: -2px;
  background: rgba(255, 255, 255, 0.85);
  animation: caret-blink 0.9s steps(1) infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

.bubble-ai {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 14px;
  box-shadow: var(--shadow-1);
  max-width: 96%;
}

.think-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-3);
  background: var(--paper-3);
  border-radius: 8px;
  padding: 4px 9px;
}

.think-chip svg {
  width: 12px;
  height: 12px;
  color: var(--primary-5);
}

.think-chip em {
  font-style: normal;
  color: var(--primary-6);
}

.ai-line {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-2);
}

.tool-steps {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tool-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.3s ease;
}

.tool-steps li.on {
  opacity: 1;
  transform: none;
}

.tool-steps li.done {
  color: var(--ink-2);
}

.ts-icon {
  position: relative;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  border-top-color: var(--primary-6);
}

li.working .ts-icon {
  animation: ts-spin 0.65s linear infinite;
}

@keyframes ts-spin {
  to { transform: rotate(360deg); }
}

li.done .ts-icon {
  background: var(--success);
  border-color: var(--success);
  animation: ts-pop 0.35s var(--ease-spring);
}

li.done .ts-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1.5px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

@keyframes ts-pop {
  0% { transform: scale(0.4); }
  100% { transform: scale(1); }
}

.gen-files {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gen-file {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.gen-file.on {
  opacity: 1;
  transform: none;
}

.gen-file i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.6px solid var(--success);
  position: relative;
}

.gen-file i::after {
  content: "";
  position: absolute;
  left: 2.2px;
  top: 0.8px;
  width: 3px;
  height: 5px;
  border: solid var(--success);
  border-width: 0 1.4px 1.4px 0;
  transform: rotate(45deg);
}

/* 演示：输入栏 */
.demo-input {
  flex: 0 0 auto;
  margin: 0 14px 14px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  box-shadow: 0 2px 10px -6px rgba(13, 24, 50, 0.18);
}

.di-plus {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  color: var(--ink-3);
  background: var(--paper-3);
}

.di-text {
  flex: 1;
  font-size: 12px;
  color: #aab2c0;
}

.di-send {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary-3);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.di-send.on {
  background: var(--primary-6);
  box-shadow: 0 4px 10px -3px rgba(22, 100, 255, 0.6);
}

.di-send svg {
  width: 13px;
  height: 13px;
}

/* ---- 演示：预览区 ---- */
.demo-preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}

.pv-bar {
  flex: 0 0 auto;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.pv-tab {
  font-size: 12px;
  color: var(--ink-3);
  padding: 4px 12px;
  border-radius: 8px;
}

.pv-tab.is-on {
  color: var(--primary-6);
  background: var(--primary-2);
  font-weight: 600;
}

.pv-refresh,
.pv-full {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  border-radius: 7px;
}

.pv-refresh {
  margin-left: auto;
}

.pv-refresh svg,
.pv-full svg {
  width: 13px;
  height: 13px;
}

#demo[data-stage="3"] .pv-refresh svg {
  animation: ts-spin 0.9s linear 1;
}

.pv-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #eef1f7;
}

/* 渲染白光扫过 */
.pv-flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.9) 50%, transparent 80%);
  transform: translateX(-120%);
  pointer-events: none;
}

.pv-flash.on {
  animation: pv-sweep 0.9s var(--ease) 1;
}

@keyframes pv-sweep {
  to { transform: translateX(120%); }
}

/* 预览里的「茶言观色」奶茶点单迷你页面（官网同款浅色主题：源力蓝主色 + 浅纸底） */
.pv-site {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #f6f9ff 0%, #eef2f9 100%);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  overflow: hidden;
}

.pv-site.on {
  opacity: 1;
  transform: none;
}

/* ---- 顶栏：品牌 + 门店定位 + 购物车入口 ---- */
.pvs-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pvs-logo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, #4f8cff, #1664ff);
  box-shadow: 0 4px 10px -5px rgba(22, 100, 255, 0.9);
}

.pvs-logo svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.pvs-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pvs-brand b {
  font-size: 11px;
  font-weight: 800;
  color: #0c0d0e;
}

.pvs-brand i {
  font-style: normal;
  font-size: 8px;
  color: #8a93a5;
}

.pvs-loc {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 600;
  color: #387bff;
  background: #fff;
  box-shadow: inset 0 0 0 1px #eaeef5;
}

.pvs-loc svg {
  width: 9px;
  height: 9px;
  fill: #1664ff;
}

.pvs-cart-btn {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #eaeef5;
  color: #1664ff;
}

.pvs-cart-btn svg {
  width: 15px;
  height: 15px;
}

/* 购物车数字角标（顶栏入口与底部购物车共用） */
.pvs-cart-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 700;
  color: #fff;
  background: #1664ff;
  box-shadow: 0 3px 8px -3px rgba(13, 20, 40, 0.45);
}

/* ---- 主体：左侧分类导航 + 右侧内容 ---- */
.pvs-main {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 8px;
}

.pvs-side {
  flex: 0 0 78px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  background: #fff;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px #eaeef5;
}

.pvs-cate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: 9px;
}

.pvs-cate em {
  font-style: normal;
  font-size: 13px;
  line-height: 1;
}

.pvs-cate i {
  font-style: normal;
  font-size: 8.5px;
  color: #737a87;
  white-space: nowrap;
}

.pvs-cate.is-on {
  background: #ebf1ff;
}

.pvs-cate.is-on i {
  color: #1664ff;
  font-weight: 700;
}

.pvs-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ---- 福利 banner ---- */
.pvs-banner {
  position: relative;
  flex: 0 0 auto;
  padding: 9px 40px 9px 12px;
  border-radius: 12px;
  background: linear-gradient(120deg, #5f9bff, #2f7bff 60%, #1664ff);
  box-shadow: 0 6px 14px -8px rgba(22, 100, 255, 0.5);
  overflow: hidden;
}

.pvs-banner::after {
  content: "🎉";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

.pvs-banner-chip {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
}

.pvs-banner b {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  color: #fff;
}

.pvs-banner i {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---- 饮品列表 ---- */
.pvs-sec {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  color: #0c0d0e;
}

.pvs-sec em {
  font-style: normal;
  font-size: 8.5px;
  font-weight: 400;
  color: #8a93a5;
  margin-left: 3px;
}

.pvs-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.pvs-card {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  background: #fff;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px #eaeef5, 0 2px 6px -4px rgba(13, 20, 40, 0.18);
}

.pvs-thumb {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 20px;
}

.pvs-thumb--brown { background: linear-gradient(150deg, #f2ddbd, #dcb483); }
.pvs-thumb--grape { background: linear-gradient(150deg, #ddcdf4, #b394e3); }
.pvs-thumb--coco  { background: linear-gradient(150deg, #f0e4cf, #cdb894); }

.pvs-info {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pvs-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #0c0d0e;
}

.pvs-flag {
  flex: 0 0 auto;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 7.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, #4f8cff, #1664ff);
}

.pvs-desc {
  font-size: 8px;
  color: #8a93a5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pvs-meta {
  font-size: 8px;
  color: #a2abba;
}

.pvs-foot {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pvs-price {
  font-size: 12px;
  font-weight: 800;
  color: #1664ff;
}

.pvs-foot s {
  font-size: 8px;
  color: #c7ccd6;
}

.pvs-add {
  position: absolute;
  right: 10px;
  bottom: 9px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  background: linear-gradient(140deg, #4f8cff, #1664ff);
  box-shadow: 0 4px 10px -5px rgba(22, 100, 255, 0.95);
  transition: transform 0.2s var(--ease);
}

.pvs-add.pop {
  transform: scale(1.18);
}

/* ---- 底部悬浮购物车（浅色胶囊） ---- */
.pvs-cart {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px 7px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #eaeef5, 0 10px 22px -14px rgba(13, 20, 40, 0.35);
}

.pvs-cart-icon {
  position: relative;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #4f8cff, #1664ff);
  color: #fff;
}

.pvs-cart-icon svg {
  width: 14px;
  height: 14px;
}

.pvs-cart-info {
  display: flex;
  flex-direction: column;
}

.pvs-cart-info b {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
  color: #0c0d0e;
}

.pvs-cart-info i {
  font-style: normal;
  font-size: 8px;
  color: #8a93a5;
}

.pvs-cart-go {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, #4f8cff, #1664ff);
  box-shadow: 0 4px 10px -5px rgba(22, 100, 255, 0.4);
}

/* 假光标 */
.pv-cursor {
  position: absolute;
  z-index: 6;
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: left 0.7s var(--ease), top 0.7s var(--ease), opacity 0.3s ease;
  pointer-events: none;
}

.pv-cursor::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 0 100%, 35% 72%, 55% 100%, 70% 92%, 48% 65%, 80% 65%);
  background: #2b3550;
  border: 1px solid #fff;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.pv-cursor.on {
  opacity: 1;
}

.pv-cursor.click::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(43, 53, 80, 0.5);
  animation: click-ring 0.5s var(--ease) forwards;
}

@keyframes click-ring {
  from { transform: scale(0.4); opacity: 1; }
  to { transform: scale(2.2); opacity: 0; }
}

.demo-shadow {
  height: 60px;
  margin: 0 4%;
  background: radial-gradient(ellipse at center, rgba(13, 24, 50, 0.22), transparent 70%);
  filter: blur(18px);
}

/* ================================================================
   跑马灯
   ================================================================ */
.marquee {
  position: relative;
  background: var(--paper-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  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;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee-move 46s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

.marquee-track i {
  font-style: normal;
  font-size: 11px;
  color: var(--primary-3);
}

@keyframes marquee-move {
  to { transform: translateX(-50%); }
}

/* ================================================================
   通用 Section
   ================================================================ */
.section {
  padding: 104px 0;
  position: relative;
}

.section-alt {
  background: var(--paper-3);
}

.sec-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--primary-6);
  margin-bottom: 14px;
}

.sec-title {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.sec-lede {
  margin: 16px auto 0;
  max-width: 600px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-3);
}

/* 滚动揭示 */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ================================================================
   核心能力：五件事 · 可切换演示
   ================================================================ */
.showcase {
  display: grid;
  grid-template-columns: 392px 1fr;
  gap: 24px;
  align-items: stretch;
}

.show-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.show-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 15px 18px 16px;
  text-align: left;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.35s var(--ease), background-color 0.3s ease;
}

.show-item:hover {
  border-color: rgba(22, 100, 255, 0.28);
}

.show-item.is-on {
  background: var(--paper);
  border-color: rgba(22, 100, 255, 0.4);
  box-shadow: 0 10px 26px -18px rgba(22, 100, 255, 0.5);
}

.show-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-4);
  transition: color 0.3s ease;
}

.show-item.is-on .show-idx {
  color: var(--primary-6);
}

.show-copy b {
  display: block;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.show-copy > span {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
  transition: max-height 0.45s var(--ease), opacity 0.35s ease, margin-top 0.35s var(--ease);
}

.show-item.is-on .show-copy > span {
  max-height: 120px;
  opacity: 1;
  margin-top: 7px;
}

/* 自动轮播进度条（悬停暂停） */
.show-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.show-track i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-3), var(--primary-6));
  transform: scaleX(0);
  transform-origin: left center;
}

.show-item.is-on.is-timing .show-track i {
  animation: track-fill 6s linear forwards;
}

.showcase.is-paused .show-item.is-on.is-timing .show-track i {
  animation-play-state: paused;
}

@keyframes track-fill {
  to { transform: scaleX(1); }
}

/* ---- 演示舞台 ---- */
.show-stage {
  position: relative;
  min-height: 452px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(22, 100, 255, 0.07), transparent 70%),
    var(--paper-3);
  overflow: hidden;
}

.pane {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  opacity: 0;
  transform: translateY(12px) scale(0.99);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}

.pane.is-on {
  opacity: 1;
  transform: none;
}

.pane-inner {
  width: 100%;
  max-width: 400px;
}

/* ---- 迷你页面骨架（各面板共用） ---- */
.mk-frame {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease) 0.1s, transform 0.6s var(--ease) 0.1s;
}

.pane.is-on .mk-frame {
  opacity: 1;
  transform: none;
}

.mk-frame--tall {
  margin-top: 0;
}

.mk-frame--tight {
  margin-top: 0;
  padding: 12px;
}

.mk-navline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.mk-navline i {
  width: 22px;
  height: 4px;
  border-radius: 3px;
  background: var(--line-2);
}

.mk-navline i:first-child {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--primary-5), #7d5cff);
}

.mk-navpill {
  margin-left: auto;
  width: 34px;
  height: 12px;
  border-radius: 999px;
  background: var(--primary-2);
}

.mk-hero-block {
  padding: 12px 14px;
  border-radius: var(--r);
  background: linear-gradient(120deg, var(--primary-1), #eaf0ff);
  border: 1px solid rgba(22, 100, 255, 0.12);
}

.mk-line {
  display: block;
  width: 45%;
  height: 6px;
  border-radius: 3px;
  background: rgba(22, 100, 255, 0.22);
}

.mk-line:first-child {
  margin-bottom: 8px;
}

.mk-line--lg {
  width: 68%;
  height: 9px;
  background: rgba(22, 100, 255, 0.34);
}

.mk-pill {
  display: block;
  margin-top: 10px;
  width: 62px;
  height: 20px;
  border-radius: 999px;
  background: var(--primary-6);
  box-shadow: 0 3px 8px -4px rgba(22, 100, 255, 0.7);
}

.mk-cards {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mk-cards i {
  height: 46px;
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, var(--paper-4), #e9eef6);
  border: 1px solid var(--line);
}

/* 01 对话生成：消息 */
.mk-msg {
  max-width: 82%;
  font-size: 12.5px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.pane.is-on .mk-msg {
  opacity: 1;
  transform: none;
}

.mk-msg--user {
  margin-left: auto;
  padding: 9px 14px;
  border-radius: 12px 12px 4px 12px;
  background: var(--primary-6);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(22, 100, 255, 0.7);
}

.mk-msg--ai {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 12px 12px 12px 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition-delay: 0.18s;
}

.mk-dots {
  display: inline-flex;
  gap: 3px;
}

.mk-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-3);
  animation: mc-bounce 1.2s ease-in-out infinite;
}

.mk-dots i:nth-child(2) { animation-delay: 0.15s; }
.mk-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes mc-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.mk-tasks {
  list-style: none;
  margin-top: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mk-tasks li {
  position: relative;
  padding-left: 20px;
  font-size: 11.5px;
  color: var(--ink-2);
}

.mk-tasks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success-bg);
  border: 1.4px solid var(--success);
  opacity: 0;
  transform: scale(0.5);
}

.mk-tasks li::after {
  content: "";
  position: absolute;
  left: 3.6px;
  top: 5px;
  width: 3.6px;
  height: 6px;
  border: solid var(--success);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) scale(0.4);
  opacity: 0;
}

.pane.is-on .mk-tasks li::before {
  animation: mk-check 0.4s var(--ease-spring) forwards;
}

/* 勾号单独一套关键帧：要停在 45° 旋转态，不能随圆点一起转回 0° */
.pane.is-on .mk-tasks li::after {
  animation: mk-check-mark 0.4s var(--ease-spring) forwards;
}

.pane.is-on .mk-tasks li:nth-child(1)::before,
.pane.is-on .mk-tasks li:nth-child(1)::after { animation-delay: 0.5s; }
.pane.is-on .mk-tasks li:nth-child(2)::before,
.pane.is-on .mk-tasks li:nth-child(2)::after { animation-delay: 0.85s; }
.pane.is-on .mk-tasks li:nth-child(3)::before,
.pane.is-on .mk-tasks li:nth-child(3)::after { animation-delay: 1.2s; }

@keyframes mk-check {
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes mk-check-mark {
  to { opacity: 1; transform: rotate(45deg) scale(1); }
}

/* 02 选中修改：点选 + 指令 + 网格重排 */
.mk-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  transition: grid-template-columns 0.7s var(--ease);
}

.pane.is-on .mk-pick-grid {
  transition-delay: 1.7s;
  grid-template-columns: repeat(2, 1fr);
}

.mk-pick-card {
  position: relative;
  padding: 8px;
  border-radius: var(--r-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: opacity 0.5s ease, transform 0.6s var(--ease);
}

.mk-pick-card > i {
  display: block;
  height: 44px;
  border-radius: 4px;
  background: linear-gradient(160deg, var(--paper-4), #e9eef6);
}

.mk-pick-card > b {
  display: block;
  margin-top: 7px;
  width: 64%;
  height: 5px;
  border-radius: 3px;
  background: var(--line-2);
}

.mk-pick-card.is-picked {
  border-color: var(--primary-6);
  box-shadow: 0 0 0 3px rgba(22, 100, 255, 0.14);
}

.mk-pick-card.is-picked > i {
  background: linear-gradient(160deg, var(--primary-2), #dbe7ff);
}

.mk-pick-tag {
  position: absolute;
  right: 6px;
  top: -10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: var(--primary-6);
  box-shadow: 0 3px 8px -4px rgba(22, 100, 255, 0.8);
  opacity: 0;
  transform: translateY(4px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-spring);
}

.pane.is-on .mk-pick-tag {
  opacity: 1;
  transform: none;
  transition-delay: 0.9s;
}

/* 第三个卡片在重排后收起 */
.mk-pick-card.is-drop {
  transition-delay: 0s;
}

.pane.is-on .mk-pick-card.is-drop {
  transition-delay: 1.7s;
  opacity: 0;
  transform: scale(0.9);
}

/* 指令输入条 */
.mk-ask {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px 9px 12px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease) 0.35s, transform 0.45s var(--ease) 0.35s;
}

.pane.is-on .mk-ask {
  opacity: 1;
  transform: none;
}

.mk-token {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-6);
}

.mk-ask-text {
  flex: 1;
  font-size: 12.5px;
  color: var(--ink-2);
}

.mk-send {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--primary-6);
}

.mk-send svg {
  width: 13px;
  height: 13px;
}

/* 03 设计稿还原 */
.mk-restore {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.mk-shot {
  position: relative;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.mk-shot-bar {
  display: flex;
  gap: 4px;
  padding: 7px 9px;
  background: var(--paper-4);
  border-bottom: 1px solid var(--line);
}

.mk-shot-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-2);
}

.mk-shot-body {
  padding: 12px;
}

.mk-sline {
  display: block;
  width: 44%;
  height: 6px;
  border-radius: 3px;
  background: #dfe4ec;
}

.mk-sline--lg {
  width: 70%;
  height: 9px;
  margin-bottom: 8px;
  background: #cfd6e2;
}

.mk-sblocks {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mk-sblocks i {
  height: 36px;
  border-radius: 4px;
  background: linear-gradient(160deg, #eef1f6, #e2e7ef);
}

/* 扫描线：从设计稿上扫过 */
.mk-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42px;
  background: linear-gradient(180deg, rgba(22, 100, 255, 0), rgba(22, 100, 255, 0.16));
  border-bottom: 1px solid rgba(22, 100, 255, 0.45);
  transform: translateY(-100%);
}

.pane.is-on .mk-scan {
  animation: mk-scan 1.6s var(--ease) 0.35s forwards;
}

@keyframes mk-scan {
  to { transform: translateY(240%); }
}

.mk-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--primary-6);
  background: var(--paper);
  border: 1px solid rgba(22, 100, 255, 0.24);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.4s ease 0.9s, transform 0.4s var(--ease-spring) 0.9s;
}

.mk-arrow svg {
  width: 15px;
  height: 15px;
}

.pane.is-on .mk-arrow {
  opacity: 1;
  transform: none;
}

.mk-restore .mk-frame {
  margin-top: 0;
  transition-delay: 1.1s;
}

/* 04 节点保存 */
.mk-timeline {
  padding: 6px 4px;
}

.mk-node {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 20px;
}

.mk-node:last-child {
  padding-bottom: 0;
}

.mk-node:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 16px;
  bottom: 4px;
  width: 2px;
  background: var(--line-2);
}

.mk-dot {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line-2);
}

.mk-node-body b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.mk-node-body span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink-3);
}

/* 新保存的节点：滑入 + 脉冲 */
.mk-node.is-new {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s var(--ease) 0.4s, transform 0.5s var(--ease) 0.4s;
}

.pane.is-on .mk-node.is-new {
  opacity: 1;
  transform: none;
}

.mk-node.is-new .mk-dot {
  border-color: var(--primary-6);
  background: var(--primary-6);
}

.mk-node.is-new .mk-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(22, 100, 255, 0.45);
  opacity: 0;
}

.pane.is-on .mk-node.is-new .mk-dot::after {
  animation: node-pulse 1.8s ease-out 0.9s infinite;
}

@keyframes node-pulse {
  0% { opacity: 0.8; transform: scale(0.7); }
  100% { opacity: 0; transform: scale(1.5); }
}

.mk-node.is-new .mk-node-body b {
  color: var(--ink);
}

.mk-restore-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--primary-6);
  background: var(--paper);
  border: 1px solid rgba(22, 100, 255, 0.26);
  box-shadow: var(--shadow-1);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease 1.1s, transform 0.45s var(--ease) 1.1s;
}

.mk-restore-btn svg {
  width: 14px;
  height: 14px;
}

.pane.is-on .mk-restore-btn {
  opacity: 1;
  transform: none;
}

/* 05 分享 */
.mk-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
}

.mk-link svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--primary-6);
}

.mk-link-text {
  flex: 1;
  font-size: 12.5px;
  color: var(--ink-2);
}

.mk-copy {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary-6);
  background: var(--primary-2);
}

.mk-visitor {
  margin-top: 14px;
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease) 0.4s, transform 0.5s var(--ease) 0.4s;
}

.pane.is-on .mk-visitor {
  opacity: 1;
  transform: none;
}

.mk-v-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--paper-4);
  border-bottom: 1px solid var(--line);
}

.mk-v-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-2);
}

.mk-readonly {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--paper);
  border: 1px solid var(--line-2);
}

.mk-v-body {
  padding: 14px;
}

.mk-v-body .mk-line {
  background: var(--line-2);
}

.mk-v-body .mk-line--lg {
  width: 60%;
  background: #cfd6e2;
}

.mk-v-body .mk-cards {
  grid-template-columns: repeat(2, 1fr);
}

.mk-note {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
  opacity: 0;
  transition: opacity 0.5s ease 1s;
}

.pane.is-on .mk-note {
  opacity: 1;
}

/* ================================================================
   使用方式
   ================================================================ */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-1);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.4s ease;
}

.step:hover {
  transform: translateY(-5px);
  border-color: rgba(22, 100, 255, 0.28);
  box-shadow: var(--shadow-float);
}

.step-no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-3);
  letter-spacing: 0.1em;
}

.step h3 {
  margin-top: 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-3);
}

.step-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.step-tags span {
  font-size: 12px;
  color: var(--primary-6);
  background: var(--primary-2);
  border-radius: 999px;
  padding: 4px 12px;
}

.step-flow {
  margin-top: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12px;
}

.step-flow span {
  background: var(--primary-1);
  color: var(--primary-6);
  border: 1px solid rgba(22, 100, 255, 0.14);
  border-radius: 8px;
  padding: 5px 10px;
}

.step-flow i {
  font-style: normal;
  color: var(--ink-4);
}

/* ================================================================
   FAQ
   ================================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq[open] {
  border-color: rgba(22, 100, 255, 0.3);
  box-shadow: 0 10px 30px -20px rgba(22, 100, 255, 0.4);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper-3);
  transition: transform 0.35s var(--ease), background-color 0.3s ease;
}

.faq-arrow::before,
.faq-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink-2);
  transform: translate(-50%, -50%);
}

.faq-arrow::before {
  width: 8px;
  height: 1.6px;
}

.faq-arrow::after {
  width: 1.6px;
  height: 8px;
  transition: transform 0.35s var(--ease);
}

.faq[open] .faq-arrow {
  transform: rotate(180deg);
  background: var(--primary-2);
}

.faq[open] .faq-arrow::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq[open] .faq-body {
  grid-template-rows: 1fr;
}

.faq-body p {
  overflow: hidden;
  padding: 0 22px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-3);
}

.faq[open] .faq-body p {
  padding-bottom: 20px;
}

/* ================================================================
   响应式
   ================================================================ */
@media (max-width: 1024px) {
  .showcase {
    grid-template-columns: 1fr;
  }

  .show-stage {
    min-height: 420px;
    order: -1;
  }

  .show-item.is-on .show-copy > span {
    max-height: 90px;
  }
}

@media (max-width: 960px) {
  .hero-title br {
    display: block;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .demo-body {
    grid-template-columns: 1fr;
    height: auto;
  }

  .demo-chat {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .demo-msgs {
    min-height: 290px;
  }

  .pv-stage {
    height: 380px;
  }

  .demo-window {
    transform: translateY(30px) scale(0.98);
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-mobile {
    display: flex;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 122px 0 0;
  }

  .hero-lede {
    font-size: 16px;
  }

  .showcase {
    gap: 18px;
  }

  .show-stage {
    min-height: 0;
    padding: 22px 0;
  }

  /* 移动端：面板不再叠放，而是随选中项显示（高度自适应） */
  .pane {
    position: relative;
    inset: auto;
    display: none;
    padding: 22px 18px 26px;
    opacity: 1;
    transform: none;
  }

  .pane.is-on {
    display: grid;
  }

  .mk-restore {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mk-arrow {
    justify-self: center;
    transform: rotate(90deg) scale(0.7);
  }

  .pane.is-on .mk-arrow {
    transform: rotate(90deg);
  }

  .mk-restore .mk-frame {
    transition-delay: 0.2s;
  }

  .pane.is-on .mk-pick-grid {
    transition-delay: 0.8s;
  }

  .pane.is-on .mk-pick-card.is-drop {
    transition-delay: 0.8s;
  }
}

/* ================================================================
   降低动效偏好
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal],
  [data-hero] {
    opacity: 1 !important;
    transform: none !important;
  }

  .demo-window,
  .mk-frame,
  .mk-msg,
  .mk-ask,
  .mk-visitor,
  .mk-node.is-new,
  .mk-restore-btn,
  .mk-arrow,
  .mk-note {
    opacity: 1 !important;
    transform: none !important;
  }

  .pane {
    display: none;
  }

  .pane.is-on {
    display: grid;
    opacity: 1;
  }

  .bubble,
  .tool-steps li,
  .gen-file,
  .pv-site,
  .pv-cursor {
    opacity: 1 !important;
    transform: none !important;
  }

  .show-item.is-on .show-track i {
    animation: none;
    transform: scaleX(1);
    opacity: 0.35;
  }
}
/* ================================================================
   页脚
   ================================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
}

.footer-copy {
  font-size: 13px;
  color: var(--ink-3);
}

.footer-divider {
  width: 1px;
  height: 12px;
  background: var(--line-2);
}

.site-footer-inner a {
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.25s ease;
}

.site-footer-inner a:hover {
  color: var(--ink);
}
