/* Website Assistant product landing — page-specific visuals */

body.website-assistant-page {
  min-width: 320px;
  overflow-x: hidden;
}

body.website-assistant-page .ability-card__num {
  display: none;
}

body.website-assistant-page .hero[data-section="product-hero"] {
  z-index: 2;
}

@media (min-width: 1024px) {
  body.website-assistant-page .hero[data-section="product-hero"] {
    overflow: visible;
  }
}

body.website-assistant-page .hero-cta .consult-popover__card {
  z-index: calc(var(--z-sticky, 100) + 20);
}

/* Ability card chat demos */
.wa-ability-chat {
  margin-top: 8px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--color-surface-soft) 0%, #fff 100%);
  border: 1px solid var(--color-border-soft);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wa-ability-chat .conv {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.wa-ability-chat .conv.user {
  flex-direction: row-reverse;
}

/* 访客头像：圆形 + 人形图标 */
.wa-chat-ava {
  flex-shrink: 0;
  position: relative;
}

.wa-chat-ava--user {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-text-strong);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 10px rgba(11, 18, 32, 0.14);
}

.wa-chat-ava--user svg {
  width: 16px;
  height: 16px;
}

/* AI 头像：圆形 + 渐变 + AI 标识 */
.wa-chat-ava--ai {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--color-primary-strong) 0%, var(--color-secondary) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 110, 245, 0.24);
}

.wa-chat-ava__spark {
  width: 15px;
  height: 15px;
  position: relative;
  z-index: 1;
}

.wa-chat-bubble {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wa-chat-sender {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: var(--fw-bold);
  color: var(--color-primary-strong);
  letter-spacing: 0.02em;
}

.wa-chat-sender::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-ai-lime);
  box-shadow: 0 0 0 3px rgba(167, 233, 47, 0.28);
  animation: wa-ai-blink 2.4s ease-in-out infinite;
}

.wa-ability-chat .msg {
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 12px 12px 12px 4px;
  background: #fff;
  border: 1px solid rgba(20, 110, 245, 0.14);
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text);
  box-shadow: 0 4px 14px rgba(20, 110, 245, 0.06);
}

.wa-ability-chat .conv--ai .msg {
  background: #fff;
  border: 0;
  box-shadow: none;
}

.wa-ability-chat .conv.user .msg {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  border-radius: 12px 12px 4px 12px;
  box-shadow: 0 6px 16px rgba(20, 110, 245, 0.22);
}

@keyframes wa-ai-blink {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.wa-ability-chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.wa-ability-chat__chips span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 0;
  font-size: 11px;
  font-weight: var(--fw-regular);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* 按顺序区分配色，让能力标签更易扫读 */
.wa-ability-chat .conv .msg .wa-ability-chat__chips span:nth-child(1) {
  background: rgba(20, 110, 245, 0.14);
  color: var(--color-primary-strong);
}

.wa-ability-chat .conv .msg .wa-ability-chat__chips span:nth-child(2) {
  background: rgba(0, 184, 217, 0.16);
  color: #007A94;
}

.wa-ability-chat .conv .msg .wa-ability-chat__chips span:nth-child(3) {
  background: rgba(167, 233, 47, 0.26);
  color: #4F7F00;
}

.wa-ability-chat .conv .msg .wa-ability-chat__chips span:nth-child(4) {
  background: rgba(255, 122, 69, 0.16);
  color: #C44A18;
}

.wa-ability-chat .conv .msg .wa-ability-chat__chips span.is-active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 110, 245, 0.28);
}

.wa-ability-chat .conv.user .msg .wa-ability-chat__chips {
  display: none;
}

.wa-chat-insight-title {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--color-primary-strong);
}

body.website-assistant-page #scenarios {
  background: var(--color-surface-soft);
}

body.website-assistant-page #contact {
  padding-top: calc(var(--section-py-desktop) - 70px);
}

body.website-assistant-page #contact .cta-bar {
  background:
    radial-gradient(92% 118% at 14% 95%, rgba(167, 233, 47, 0.28) 0%, rgba(167, 233, 47, 0) 54%),
    radial-gradient(84% 112% at 86% 10%, rgba(0, 184, 217, 0.42) 0%, rgba(0, 184, 217, 0) 58%),
    linear-gradient(135deg, var(--color-primary-strong) 0%, var(--color-primary) 48%, var(--color-secondary) 100%);
  box-shadow: 0 18px 40px rgba(24, 62, 120, 0.22);
}

body.website-assistant-page #contact .cta-bar > div:has(> h2) > p {
  color: rgba(255, 255, 255, 0.84);
}

body.website-assistant-page #contact .cta-bar .btn:not(.btn--secondary) {
  --btn-bg: #fff;
  --btn-color: var(--color-primary-strong);
  background: #fff;
  color: var(--color-primary-strong);
  box-shadow: 0 14px 30px rgba(11, 79, 216, 0.24);
}

body.website-assistant-page #contact .cta-bar .btn:not(.btn--secondary):hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
  box-shadow: 0 18px 34px rgba(11, 79, 216, 0.30);
}

/* Hero canvas — 桌面端四角布局；平板/手机见下方 @media */
body.website-assistant-page .wa-hero-canvas {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 5 / 4.6;
}

@media (min-width: 1024px) {
  body.website-assistant-page .wa-hero-canvas {
    overflow: visible;
  }

  /* 节点可略出平面（如多语言卡片右移），避免被 canvas__plane 裁切 */
  body.website-assistant-page .wa-hero-canvas .canvas__plane {
    overflow: visible;
  }

  body.website-assistant-page .wa-hero-canvas .canvas__path .path-fg {
    stroke: url(#waFlowGrad);
  }

  /* 右侧：色带 + 流转椭圆/路径点 +「多语言翻译」胶囊 — 整体下移 30px */
  body.website-assistant-page .wa-hero-canvas .canvas__path {
    transform: rotate(-12deg) translateY(30px);
  }

  body.website-assistant-page .wa-hero-canvas .canvas-node {
    padding: 12px 14px;
  }

  /* 中心偏左上：官网 + AI 搜索 */
  body.website-assistant-page .wa-hero-canvas .node-cap-site.node-canvas {
    top: 10%;
    right: auto;
    bottom: auto;
    left: 8%;
    width: 50%;
    z-index: 10;
    transform: translateZ(60px);
  }

  /* 右上：多语言（覆盖 .node-geo 默认左下位） */
  body.website-assistant-page .wa-hero-canvas .node-cap-lang.node-geo {
    top: calc(2% + 23px);
    right: -50px;
    bottom: auto;
    left: auto;
    width: auto;
    min-width: 200px;
    max-width: 42%;
    z-index: 5;
    transform: translateZ(40px);
  }

  /* 左下：数据看板（覆盖 .node-engine 默认位） */
  body.website-assistant-page .wa-hero-canvas .node-cap-data.node-engine {
    top: auto;
    bottom: 4%;
    left: -30px;
    right: auto;
    width: 30%;
    z-index: 5;
    transform: translateZ(44px);
  }

  /* AI 对话：自右下挪向左上 */
  body.website-assistant-page .wa-hero-canvas .node-cap-chat.node-chat {
    top: 42%;
    bottom: auto;
    right: auto;
    left: 6%;
    width: calc(34% + 90px);
    padding-block: 22px;
    z-index: 6;
    transform: translateZ(38px) translate(100px, 50px);
  }

  body.website-assistant-page .wa-hero-canvas .node-cap-data .layer {
    font-size: 11px;
    padding: 5px 7px;
  }

  body.website-assistant-page .wa-hero-canvas .node-cap-lang .geo-item {
    font-size: 10px;
    padding: 5px 7px;
    white-space: nowrap;
  }

  body.website-assistant-page .wa-hero-canvas .palette {
    right: 4%;
    top: calc(38% + 50px);
  }

  body.website-assistant-page .wa-hero-canvas .chip-1 {
    top: 52%;
    left: -12%;
  }

  body.website-assistant-page .wa-hero-canvas .chip-2 {
    top: calc(18% + 290px);
    right: -10%;
  }

  body.website-assistant-page .wa-hero-canvas .chip-3 {
    top: -4%;
    right: 28%;
  }
}

.wa-node-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid rgba(20, 110, 245, 0.28);
  box-shadow: 0 8px 20px rgba(20, 110, 245, 0.12);
  font-size: 11px;
  color: var(--color-muted);
}

.wa-node-search strong {
  color: var(--color-primary-strong);
  font-weight: var(--fw-semibold);
}

@media (max-width: 1023px) {
  /* 覆盖 .hero .split 的 align-items:center，避免 .canvas 在单列 grid 中宽度塌缩为 0 */
  body.website-assistant-page .hero[data-section="product-hero"] .split {
    align-items: stretch;
  }

  body.website-assistant-page .hero[data-section="product-hero"] {
    overflow: hidden;
  }

  body.website-assistant-page .wa-hero-canvas {
    width: 100%;
    overflow: hidden;
    max-width: min(100%, 540px);
    margin-inline: auto;
    aspect-ratio: 5 / 4.4;
  }

  body.website-assistant-page .wa-hero-canvas .canvas__plane {
    overflow: hidden;
    transform: none;
  }

  body.website-assistant-page .wa-hero-canvas .canvas__path {
    transform: rotate(-10deg);
    opacity: 0.85;
  }

  body.website-assistant-page .wa-hero-canvas .palette,
  body.website-assistant-page .wa-hero-canvas .chip-float {
    display: none;
  }

  body.website-assistant-page .wa-hero-canvas .canvas-node {
    padding: 10px 12px;
  }

  body.website-assistant-page .wa-hero-canvas .node-cap-site.node-canvas {
    top: 6%;
    left: 6%;
    right: auto;
    width: 72%;
    transform: none;
  }

  body.website-assistant-page .wa-hero-canvas .node-cap-lang.node-geo {
    top: 34%;
    right: 5%;
    left: auto;
    bottom: auto;
    width: 46%;
    min-width: 0;
    max-width: none;
    transform: none;
  }

  body.website-assistant-page .wa-hero-canvas .node-cap-data.node-engine {
    top: auto;
    bottom: 6%;
    left: 5%;
    right: auto;
    width: 42%;
    transform: none;
  }

  body.website-assistant-page .wa-hero-canvas .node-cap-chat.node-chat {
    top: auto;
    bottom: 22%;
    right: 5%;
    left: auto;
    width: 50%;
    padding-block: 12px;
    transform: none;
  }

  body.website-assistant-page .wa-hero-canvas .node-cap-lang .geo-item {
    white-space: normal;
    font-size: 10px;
  }
}

@media (max-width: 539px) {
  body.website-assistant-page .wa-hero-canvas {
    aspect-ratio: 4 / 3.8;
  }

  body.website-assistant-page .wa-hero-canvas .node-cap-site.node-canvas {
    width: 78%;
  }

  body.website-assistant-page .wa-hero-canvas .node-cap-lang.node-geo {
    width: 52%;
  }

  body.website-assistant-page .wa-hero-canvas .node-cap-data.node-engine {
    width: 48%;
  }

  body.website-assistant-page .wa-hero-canvas .node-cap-chat.node-chat {
    width: 56%;
  }
}

@media (max-width: 767px) {
  body.website-assistant-page .hero[data-section="product-hero"] .hero-title {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.12;
  }
}

/* Scenario cards */
.wa-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1023px) {
  .wa-scenario-grid { grid-template-columns: 1fr; }
}

.wa-scenario-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-card-soft);
  transition:
    transform var(--dur-slow) var(--ease-spring),
    box-shadow var(--dur-slow) var(--ease-out);
}

.wa-scenario-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-soft-hover);
}

.wa-scenario-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.wa-scenario-card > p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
}

.wa-scenario-card__demo {
  margin-top: auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--color-surface-soft) 0%, #fff 100%);
  border: 1px solid var(--color-border-soft);
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text);
}

.wa-ability-chat--compact {
  margin-top: 0;
  padding: 12px;
  gap: 10px;
  background: transparent;
  border: 0;
}

.wa-scenario-card__demo .wa-ability-chat--compact {
  padding: 0;
}

.wa-scenario-card__demo .insight {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wa-scenario-card__demo .insight strong {
  font-size: 12px;
  color: var(--color-primary-strong);
}

/* =========================================================
   Hero 画布配图动效
   ========================================================= */
@keyframes wa-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.35); opacity: 1; }
}

@keyframes wa-node-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

@keyframes wa-search-glow {
  0%, 100% {
    border-color: rgba(20, 110, 245, 0.28);
    box-shadow: 0 8px 20px rgba(20, 110, 245, 0.12);
  }
  50% {
    border-color: rgba(20, 110, 245, 0.52);
    box-shadow: 0 10px 28px rgba(20, 110, 245, 0.22);
  }
}

@keyframes wa-bar-shimmer {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

@keyframes wa-pip-glow {
  0%, 100% { box-shadow: 0 0 6px currentColor; opacity: 0.7; }
  50% { box-shadow: 0 0 14px currentColor; opacity: 1; }
}

@keyframes wa-rank-pulse {
  0%, 100% { color: var(--color-success); opacity: 0.82; }
  50% { color: #22C55E; opacity: 1; }
}

@keyframes wa-bubble-in-right {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes wa-bubble-in-left {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes wa-spark-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.92; }
  50% { transform: scale(1.08) rotate(8deg); opacity: 1; }
}

@keyframes wa-chip-pop {
  from { opacity: 0; transform: translateY(5px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wa-chat-user-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes wa-chat-ai-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes wa-plane-glow {
  0%, 100% { box-shadow: 0 32px 80px rgba(11, 28, 64, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
  50% { box-shadow: 0 36px 88px rgba(20, 110, 245, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95); }
}

/* 路径节点光点 */
body.website-assistant-page .wa-hero-canvas .canvas__path .path-dot {
  transform-origin: center;
  transform-box: fill-box;
  animation: wa-dot-pulse 2.6s ease-in-out infinite;
}
body.website-assistant-page .wa-hero-canvas .canvas__path .path-dot:nth-child(3) { animation-delay: 0s; }
body.website-assistant-page .wa-hero-canvas .canvas__path .path-dot:nth-child(4) { animation-delay: 0.65s; }
body.website-assistant-page .wa-hero-canvas .canvas__path .path-dot:nth-child(5) { animation-delay: 1.3s; }
body.website-assistant-page .wa-hero-canvas .canvas__path .path-dot:nth-child(6) { animation-delay: 1.95s; }

/* 画布平面微光 */
body.website-assistant-page .wa-hero-canvas .canvas__plane {
  animation: wa-plane-glow 8s ease-in-out infinite;
}

/* 节点漂浮（保留原有 translateZ） */
@media (min-width: 1024px) {
  body.website-assistant-page .wa-hero-canvas .node-cap-site.node-canvas {
    animation: wa-node-float 5.2s ease-in-out infinite;
  }
  body.website-assistant-page .wa-hero-canvas .node-cap-lang.node-geo {
    animation: wa-node-float 6s ease-in-out 0.4s infinite;
  }
  body.website-assistant-page .wa-hero-canvas .node-cap-data.node-engine {
    animation: wa-node-float 5.6s ease-in-out 0.8s infinite;
  }
  body.website-assistant-page .wa-hero-canvas .node-cap-chat.node-chat {
    animation: wa-node-float 5.8s ease-in-out 1.2s infinite;
  }
}

@media (max-width: 1023px) {
  body.website-assistant-page .wa-hero-canvas .canvas-node {
    animation: wa-node-float 5.5s ease-in-out infinite;
  }
  body.website-assistant-page .wa-hero-canvas .node-cap-lang.node-geo { animation-delay: 0.5s; }
  body.website-assistant-page .wa-hero-canvas .node-cap-data.node-engine { animation-delay: 1s; }
  body.website-assistant-page .wa-hero-canvas .node-cap-chat.node-chat { animation-delay: 1.5s; }
}

/* AI 搜索框呼吸光 */
body.website-assistant-page .wa-node-search {
  animation: wa-search-glow 3.2s ease-in-out infinite;
}

/* 页面骨架条闪烁 */
body.website-assistant-page .wa-hero-canvas .node-canvas .pb-bar.l {
  animation: wa-bar-shimmer 2.8s ease-in-out infinite;
}
body.website-assistant-page .wa-hero-canvas .node-canvas .pb-bar.lime {
  animation: wa-bar-shimmer 2.8s ease-in-out 0.6s infinite;
}

/* 数据看板指标点依次亮起 */
body.website-assistant-page .wa-hero-canvas .node-cap-data .layer.l1 .pip {
  animation: wa-pip-glow 3.2s ease-in-out infinite;
}
body.website-assistant-page .wa-hero-canvas .node-cap-data .layer.l2 .pip {
  animation: wa-pip-glow 3.2s ease-in-out 1.05s infinite;
}
body.website-assistant-page .wa-hero-canvas .node-cap-data .layer.l3 .pip {
  animation: wa-pip-glow 3.2s ease-in-out 2.1s infinite;
}

/* 多语言 ON 状态脉冲 */
body.website-assistant-page .wa-hero-canvas .node-cap-lang .geo-item .rank {
  animation: wa-rank-pulse 2.8s ease-in-out infinite;
}
body.website-assistant-page .wa-hero-canvas .node-cap-lang .geo-item:nth-child(2) .rank {
  animation-delay: 1.4s;
}

/* Hero 对话气泡入场 */
body.website-assistant-page .wa-hero-canvas .node-cap-chat .bubble.user {
  animation: wa-bubble-in-right 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}
body.website-assistant-page .wa-hero-canvas .node-cap-chat .bubble:not(.user) {
  animation: wa-bubble-in-left 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.4s both;
}

/* AI 头像星光 */
body.website-assistant-page .wa-chat-ava__spark {
  animation: wa-spark-twinkle 3.2s ease-in-out infinite;
}

/* =========================================================
   能力卡片 / 场景卡片 — 配图对话动效
   ========================================================= */
@keyframes wa-ava-ai-glow {
  0%, 100% { box-shadow: 0 4px 12px rgba(20, 110, 245, 0.24); }
  50% { box-shadow: 0 6px 20px rgba(20, 110, 245, 0.38), 0 0 0 4px rgba(0, 184, 217, 0.12); }
}

@keyframes wa-user-msg-glow {
  0%, 100% { box-shadow: 0 6px 16px rgba(20, 110, 245, 0.22); }
  50% { box-shadow: 0 8px 24px rgba(20, 110, 245, 0.36); }
}

@keyframes wa-chip-idle {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -2px; }
}

@keyframes wa-chip-active-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(20, 110, 245, 0.28); }
  50% { box-shadow: 0 6px 18px rgba(20, 110, 245, 0.42); }
}

@keyframes wa-chat-panel-breathe {
  0%, 100% { border-color: var(--color-border-soft); }
  50% { border-color: rgba(20, 110, 245, 0.22); }
}

@keyframes wa-ava-user-in {
  from { opacity: 0; scale: 0.82; }
  to { opacity: 1; scale: 1; }
}

@keyframes wa-ava-ai-in {
  from { opacity: 0; scale: 0.82; }
  to { opacity: 1; scale: 1; }
}

@keyframes wa-sender-in {
  from { opacity: 0; translate: -8px 0; }
  to { opacity: 1; translate: 0 0; }
}

/* 入场前隐藏 */
body.website-assistant-page .ability-card .wa-ability-chat .conv.user .wa-chat-ava,
body.website-assistant-page .ability-card .wa-ability-chat .conv.user .msg,
body.website-assistant-page .ability-card .wa-ability-chat .conv--ai .wa-chat-ava,
body.website-assistant-page .ability-card .wa-ability-chat .conv--ai .wa-chat-sender,
body.website-assistant-page .ability-card .wa-ability-chat .conv--ai .msg,
body.website-assistant-page .wa-scenario-card .wa-ability-chat .conv.user .wa-chat-ava,
body.website-assistant-page .wa-scenario-card .wa-ability-chat .conv.user .msg,
body.website-assistant-page .wa-scenario-card .wa-ability-chat .conv--ai .wa-chat-ava,
body.website-assistant-page .wa-scenario-card .wa-ability-chat .conv--ai .wa-chat-sender,
body.website-assistant-page .wa-scenario-card .wa-ability-chat .conv--ai .msg {
  opacity: 0;
}

body.website-assistant-page .ability-card .wa-ability-chat .conv--ai .wa-ability-chat__chips span,
body.website-assistant-page .wa-scenario-card .wa-ability-chat .conv--ai .wa-ability-chat__chips span {
  opacity: 0;
}

/* 分步入场 + 持续呼吸（访客头像 → 消息 → AI 头像 → 标识 → 回复 → 标签） */
body.website-assistant-page .ability-card.is-revealed .wa-ability-chat,
body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat {
  animation: wa-chat-panel-breathe 4.8s ease-in-out 1.8s infinite;
}

body.website-assistant-page .ability-card.is-revealed .wa-ability-chat .conv.user .wa-chat-ava,
body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv.user .wa-chat-ava {
  animation: wa-ava-user-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.website-assistant-page .ability-card.is-revealed .wa-ability-chat .conv.user .msg,
body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv.user .msg {
  animation:
    wa-chat-user-in 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards,
    wa-user-msg-glow 3.2s ease-in-out 1.8s infinite;
}

body.website-assistant-page .ability-card.is-revealed .wa-ability-chat .conv--ai .wa-chat-ava,
body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv--ai .wa-chat-ava {
  animation:
    wa-ava-ai-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards,
    wa-ava-ai-glow 3.6s ease-in-out 1.8s infinite;
}

body.website-assistant-page .ability-card.is-revealed .wa-ability-chat .conv--ai .wa-chat-sender,
body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv--ai .wa-chat-sender {
  animation: wa-sender-in 0.38s ease-out 0.72s forwards;
}

body.website-assistant-page .ability-card.is-revealed .wa-ability-chat .conv--ai .msg,
body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv--ai .msg {
  animation: wa-chat-ai-in 0.56s cubic-bezier(0.22, 1, 0.36, 1) 0.88s forwards;
}

body.website-assistant-page .ability-card.is-revealed .wa-ability-chat .conv--ai .wa-ability-chat__chips span,
body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv--ai .wa-ability-chat__chips span {
  animation:
    wa-chip-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    wa-chip-idle 3.4s ease-in-out 2s infinite;
}
body.website-assistant-page .ability-card.is-revealed .wa-ability-chat .conv--ai .wa-ability-chat__chips span:nth-child(1),
body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv--ai .wa-ability-chat__chips span:nth-child(1) {
  animation-delay: 1.18s, 2s;
}
body.website-assistant-page .ability-card.is-revealed .wa-ability-chat .conv--ai .wa-ability-chat__chips span:nth-child(2),
body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv--ai .wa-ability-chat__chips span:nth-child(2) {
  animation-delay: 1.34s, 2.35s;
}
body.website-assistant-page .ability-card.is-revealed .wa-ability-chat .conv--ai .wa-ability-chat__chips span:nth-child(3),
body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv--ai .wa-ability-chat__chips span:nth-child(3) {
  animation-delay: 1.5s, 2.7s;
}
body.website-assistant-page .ability-card.is-revealed .wa-ability-chat .conv--ai .wa-ability-chat__chips span:nth-child(4),
body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv--ai .wa-ability-chat__chips span:nth-child(4) {
  animation-delay: 1.66s, 3.05s;
}

body.website-assistant-page .ability-card.is-revealed .wa-ability-chat .wa-ability-chat__chips span.is-active,
body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .wa-ability-chat__chips span.is-active {
  animation-name: wa-chip-pop, wa-chip-active-pulse;
}

/* 仅 AI 回复的场景卡片（无用户消息时，缩短入场节奏） */
body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv--ai:first-child .wa-chat-ava {
  animation:
    wa-ava-ai-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards,
    wa-ava-ai-glow 3.6s ease-in-out 1.8s infinite;
}
body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv--ai:first-child .wa-chat-sender {
  animation: wa-sender-in 0.38s ease-out 0.28s forwards;
}
body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv--ai:first-child .msg {
  animation: wa-chat-ai-in 0.56s cubic-bezier(0.22, 1, 0.36, 1) 0.44s forwards;
}
body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv--ai:first-child .wa-ability-chat__chips span:nth-child(1) {
  animation-delay: 0.74s, 2s;
}
body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv--ai:first-child .wa-ability-chat__chips span:nth-child(2) {
  animation-delay: 0.9s, 2.35s;
}
body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv--ai:first-child .wa-ability-chat__chips span:nth-child(3) {
  animation-delay: 1.06s, 2.7s;
}

@media (prefers-reduced-motion: reduce) {
  .wa-chat-sender::before,
  body.website-assistant-page .wa-hero-canvas .canvas__path .path-dot,
  body.website-assistant-page .wa-hero-canvas .canvas__plane,
  body.website-assistant-page .wa-hero-canvas .canvas-node,
  body.website-assistant-page .wa-node-search,
  body.website-assistant-page .wa-hero-canvas .node-canvas .pb-bar,
  body.website-assistant-page .wa-hero-canvas .node-cap-data .layer .pip,
  body.website-assistant-page .wa-hero-canvas .node-cap-lang .geo-item .rank,
  body.website-assistant-page .wa-hero-canvas .node-cap-chat .bubble,
  body.website-assistant-page .wa-chat-ava__spark,
  body.website-assistant-page .ability-card.is-revealed .wa-ability-chat,
  body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat,
  body.website-assistant-page .ability-card.is-revealed .wa-ability-chat .conv.user .wa-chat-ava,
  body.website-assistant-page .ability-card.is-revealed .wa-ability-chat .conv.user .msg,
  body.website-assistant-page .ability-card.is-revealed .wa-ability-chat .conv--ai .wa-chat-ava,
  body.website-assistant-page .ability-card.is-revealed .wa-ability-chat .conv--ai .wa-chat-sender,
  body.website-assistant-page .ability-card.is-revealed .wa-ability-chat .conv--ai .msg,
  body.website-assistant-page .ability-card.is-revealed .wa-ability-chat .conv--ai .wa-ability-chat__chips span,
  body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv.user .wa-chat-ava,
  body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv.user .msg,
  body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv--ai .wa-chat-ava,
  body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv--ai .wa-chat-sender,
  body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv--ai .msg,
  body.website-assistant-page .wa-scenario-card.is-revealed .wa-ability-chat .conv--ai .wa-ability-chat__chips span {
    animation: none !important;
  }

  body.website-assistant-page .ability-card .wa-ability-chat .conv.user .wa-chat-ava,
  body.website-assistant-page .ability-card .wa-ability-chat .conv.user .msg,
  body.website-assistant-page .ability-card .wa-ability-chat .conv--ai .wa-chat-ava,
  body.website-assistant-page .ability-card .wa-ability-chat .conv--ai .wa-chat-sender,
  body.website-assistant-page .ability-card .wa-ability-chat .conv--ai .msg,
  body.website-assistant-page .ability-card .wa-ability-chat .conv--ai .wa-ability-chat__chips span,
  body.website-assistant-page .wa-scenario-card .wa-ability-chat .conv.user .wa-chat-ava,
  body.website-assistant-page .wa-scenario-card .wa-ability-chat .conv.user .msg,
  body.website-assistant-page .wa-scenario-card .wa-ability-chat .conv--ai .wa-chat-ava,
  body.website-assistant-page .wa-scenario-card .wa-ability-chat .conv--ai .wa-chat-sender,
  body.website-assistant-page .wa-scenario-card .wa-ability-chat .conv--ai .msg,
  body.website-assistant-page .wa-scenario-card .wa-ability-chat .conv--ai .wa-ability-chat__chips span {
    opacity: 1 !important;
    transform: none !important;
    scale: 1 !important;
    translate: none !important;
  }
}
