/* AgentLand Landing Page - 基础样式 */

/* Google Fonts - Nunito */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

/* ===== 设计令牌（CSS 变量） ===== */
:root {
  /* 卡通二次元配色方案 */
  --primary: #6C5CE7;
  --primary-light: #A29BFE;
  --secondary: #FF6B9D;
  --accent-yellow: #FFEAA7;
  --accent-mint: #81ECEC;
  --accent-peach: #FAB1A0;

  /* 背景色 */
  --bg-light: #F8F7FF;
  --bg-gradient-start: #E8E4FF;
  --bg-gradient-end: #FFF0F5;

  /* 文字色 */
  --text-primary: #2D3436;
  --text-secondary: #636E72;

  /* 卡片样式 */
  --card-shadow: 0 8px 32px rgba(108, 92, 231, 0.1);
  --card-radius: 20px;

  /* 字体 */
  --font-main: 'Nunito', sans-serif;
}

/* ===== 全局 Reset ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

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

/* ===== 内容区域最大宽度 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* ===== 导航栏组件 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: rgba(248, 247, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(108, 92, 231, 0.08);
  transition: box-shadow 0.3s ease;
}

/* 品牌标识 - 卡通风格 */
.navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 导航链接列表 - 桌面端水平排列 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 12px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
}

/* 汉堡菜单按钮 - 桌面端隐藏 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.25s ease;
}

.hamburger:hover,
.hamburger:focus-visible {
  background: rgba(108, 92, 231, 0.08);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 汉堡菜单展开状态 - X 形变换 */
.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== 移动端响应式 (< 1024px) ===== */
@media (max-width: 1023px) {
  .navbar {
    padding: 10px 20px;
  }

  /* 移动端显示汉堡菜单按钮 */
  .hamburger {
    display: flex;
  }

  /* 移动端隐藏导航链接，展开时显示 */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 20px;
    background: rgba(248, 247, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.1);
    border-radius: 0 0 var(--card-radius) var(--card-radius);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 12px;
  }
}

/* 导航栏下方留出空间，防止内容被遮挡 */
body {
  padding-top: 64px;
}

/* ===== Hero 区域 ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: calc(100vh - 64px);
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Hero 文案区域 */
.hero-content {
  flex: 1;
  max-width: 540px;
}

/* 大字标题 - 渐变色卡通风格 */
.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent-mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

/* 描述文案 */
.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
}

/* 主 CTA 按钮 - 圆角渐变 */
.hero-cta {
  display: inline-block;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(108, 92, 231, 0.45);
}

.hero-cta:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

/* 功能动画容器 */
.hero-animation {
  flex: 1;
  min-height: 360px;
  max-width: 520px;
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* 动画降级 - 静态占位 */
.hero-animation-fallback {
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ===== Hero 区域响应式 (< 1024px) ===== */
@media (max-width: 1023px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 32px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-cta {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .hero-animation {
    max-width: 100%;
    min-height: 280px;
    width: 100%;
  }
}

/* ===== Hero 功能动画 ===== */

/* 动画场景容器 */
.anim-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  padding: 60px 20px 30px;
}

/* 静态 fallback - 默认隐藏，动画不支持时显示 */
.anim-fallback {
  display: none;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

@supports not (animation: none) {
  .anim-scene {
    display: none;
  }
  .anim-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
  }
}

/* ===== Agent 角色 ===== */
.anim-agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: agentBounce 3s ease-in-out infinite;
}

.anim-agent--purple { animation-delay: 0s; }
.anim-agent--pink   { animation-delay: 0.4s; }
.anim-agent--mint   { animation-delay: 0.8s; }

/* Agent 身体（圆形头像） */
.anim-agent__body {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.anim-agent--purple .anim-agent__body {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.anim-agent--pink .anim-agent__body {
  background: linear-gradient(135deg, var(--secondary), var(--accent-peach));
}

.anim-agent--mint .anim-agent__body {
  background: linear-gradient(135deg, #00cec9, var(--accent-mint));
}

/* Agent 脸部 */
.anim-agent__face {
  position: relative;
  width: 50px;
  height: 36px;
}

/* 眼睛 */
.anim-agent__eye {
  position: absolute;
  top: 4px;
  width: 10px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  animation: eyeBlink 4s ease-in-out infinite;
}

.anim-agent__eye--left  { left: 6px; }
.anim-agent__eye--right { right: 6px; }

.anim-agent__eye::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: #2D3436;
  border-radius: 50%;
}

/* 嘴巴变体 */
.anim-agent__mouth {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.anim-agent__mouth--smile {
  width: 16px;
  height: 8px;
  border: 2.5px solid #fff;
  border-top: none;
  border-radius: 0 0 16px 16px;
}

.anim-agent__mouth--open {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.9;
}

.anim-agent__mouth--grin {
  width: 20px;
  height: 10px;
  border: 2.5px solid #fff;
  border-top: none;
  border-radius: 0 0 20px 20px;
}

/* 装饰元素 */
.anim-agent__deco {
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 16px;
  animation: decoSpin 5s linear infinite;
}

.anim-agent__deco--star  { color: var(--accent-yellow); }
.anim-agent__deco--heart { color: var(--secondary); }
.anim-agent__deco--bolt  { color: var(--accent-yellow); }

/* Agent 名字标签 */
.anim-agent__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* ===== 聊天气泡 ===== */
.anim-bubble {
  position: absolute;
  padding: 8px 14px;
  background: #fff;
  border-radius: 16px 16px 16px 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.6) translateY(10px);
  animation: bubblePop 8s ease-in-out infinite;
}

/* 气泡位置与延迟 */
.anim-bubble--1 {
  top: 20px;
  left: 10%;
  animation-delay: 0s;
}

.anim-bubble--2 {
  top: 10px;
  left: 35%;
  border-radius: 16px 16px 4px 16px;
  animation-delay: 2.5s;
}

.anim-bubble--3 {
  top: 30px;
  right: 8%;
  animation-delay: 5s;
}

/* ===== 任务卡片 ===== */
.anim-task-card {
  position: absolute;
  bottom: 50%;
  left: 15%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--accent-yellow), #ffd93d);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(255, 214, 10, 0.3);
  opacity: 0;
  animation: taskPass 8s ease-in-out infinite;
  animation-delay: 1.2s;
  z-index: 3;
}

.anim-task-card__icon {
  font-size: 1rem;
}

.anim-task-card__text {
  letter-spacing: 0.5px;
}

/* ===== @keyframes 动画定义 ===== */

/* Agent 角色上下弹跳 */
@keyframes agentBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* 眼睛眨眼 */
@keyframes eyeBlink {
  0%, 42%, 48%, 100% { transform: scaleY(1); }
  45%                { transform: scaleY(0.1); }
}

/* 装饰元素旋转浮动 */
@keyframes decoSpin {
  0%   { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(15deg) scale(1.15); }
  50%  { transform: rotate(0deg) scale(1); }
  75%  { transform: rotate(-15deg) scale(1.15); }
  100% { transform: rotate(0deg) scale(1); }
}

/* 聊天气泡弹出 - 依次浮现 */
@keyframes bubblePop {
  0%        { opacity: 0; transform: scale(0.6) translateY(10px); }
  8%, 28%   { opacity: 1; transform: scale(1) translateY(0); }
  33%       { opacity: 0; transform: scale(0.8) translateY(-8px); }
  100%      { opacity: 0; transform: scale(0.6) translateY(10px); }
}

/* 任务卡片在 Agent 之间传递 */
@keyframes taskPass {
  0%        { opacity: 0; transform: translate(0, 0) scale(0.7); }
  8%        { opacity: 1; transform: translate(0, 0) scale(1); }
  15%       { opacity: 1; transform: translate(0, -10px) scale(1.05); }
  40%       { opacity: 1; transform: translate(160px, -10px) scale(1); }
  48%       { opacity: 1; transform: translate(160px, 0) scale(1.05); }
  55%       { opacity: 1; transform: translate(160px, -8px) scale(1); }
  70%       { opacity: 1; transform: translate(300px, -8px) scale(1); }
  78%       { opacity: 1; transform: translate(300px, 0) scale(1.05); }
  85%       { opacity: 0.6; transform: translate(300px, 0) scale(0.9); }
  90%, 100% { opacity: 0; transform: translate(300px, 10px) scale(0.6); }
}

/* ===== prefers-reduced-motion 支持 ===== */
@media (prefers-reduced-motion: reduce) {
  .anim-agent,
  .anim-bubble,
  .anim-task-card,
  .anim-agent__eye,
  .anim-agent__deco {
    animation: none;
  }

  .anim-bubble {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  .anim-task-card {
    opacity: 1;
    transform: translate(80px, 0) scale(1);
  }
}

/* ===== 动画区域响应式 (< 1024px) ===== */
@media (max-width: 1023px) {
  .anim-scene {
    min-height: 280px;
    gap: 16px;
    padding: 50px 12px 24px;
  }

  .anim-agent__body {
    width: 60px;
    height: 60px;
  }

  .anim-agent__face {
    width: 38px;
    height: 28px;
  }

  .anim-agent__eye {
    width: 8px;
    height: 10px;
  }

  .anim-agent__eye::after {
    width: 4px;
    height: 4px;
  }

  .anim-agent__mouth--smile {
    width: 12px;
    height: 6px;
  }

  .anim-agent__mouth--open {
    width: 9px;
    height: 9px;
  }

  .anim-agent__mouth--grin {
    width: 15px;
    height: 7px;
  }

  .anim-agent__deco {
    font-size: 12px;
    top: -6px;
    right: -4px;
  }

  .anim-agent__label {
    font-size: 0.65rem;
  }

  .anim-bubble {
    font-size: 0.7rem;
    padding: 6px 10px;
  }

  .anim-task-card {
    font-size: 0.65rem;
    padding: 6px 10px;
  }

  /* 移动端任务卡片传递距离缩短 */
  @keyframes taskPass {
    0%        { opacity: 0; transform: translate(0, 0) scale(0.7); }
    8%        { opacity: 1; transform: translate(0, 0) scale(1); }
    15%       { opacity: 1; transform: translate(0, -8px) scale(1.05); }
    40%       { opacity: 1; transform: translate(90px, -8px) scale(1); }
    48%       { opacity: 1; transform: translate(90px, 0) scale(1.05); }
    55%       { opacity: 1; transform: translate(90px, -6px) scale(1); }
    70%       { opacity: 1; transform: translate(180px, -6px) scale(1); }
    78%       { opacity: 1; transform: translate(180px, 0) scale(1.05); }
    85%       { opacity: 0.6; transform: translate(180px, 0) scale(0.9); }
    90%, 100% { opacity: 0; transform: translate(180px, 8px) scale(0.6); }
  }
}

/* ===== Agent 定制模块 ===== */
.agent-customization {
  text-align: center;
}

/* 模块头部 */
.customization-header {
  margin-bottom: 48px;
}

.customization-title {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.customization-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* 免费徽章 */
.free-badge {
  display: inline-block;
  padding: 6px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  background: linear-gradient(135deg, var(--accent-yellow), #fff3b0);
  border-radius: 50px;
  box-shadow: 0 3px 12px rgba(255, 234, 167, 0.5);
}

/* 卡片容器 */
.customization-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

/* 单个功能卡片 */
.customization-card {
  position: relative;
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 36px 24px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.customization-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.18);
}

/* 卡片图标区域 */
.customization-card__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  margin-bottom: 20px;
}

.customization-card__emoji {
  font-size: 2.2rem;
  line-height: 1;
}

.customization-card__icon-deco {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.9rem;
  color: var(--accent-yellow);
  animation: decoSpin 5s linear infinite;
}

/* 卡片标题 */
.customization-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

/* 卡片描述 */
.customization-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* 卡片免费标签 */
.customization-card__tag {
  display: inline-block;
  padding: 3px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50px;
}

/* CTA 按钮区域 */
.customization-cta {
  margin-top: 8px;
}

.customization-cta__btn {
  display: inline-block;
  padding: 16px 44px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.customization-cta__btn:hover,
.customization-cta__btn:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(108, 92, 231, 0.45);
}

.customization-cta__btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

/* ===== Agent 定制模块响应式 (< 1024px) ===== */
@media (max-width: 1023px) {
  .customization-title {
    font-size: 1.8rem;
  }

  .customization-subtitle {
    font-size: 1rem;
  }

  .customization-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .customization-card {
    padding: 28px 20px 24px;
  }

  .customization-card__icon {
    width: 64px;
    height: 64px;
  }

  .customization-card__emoji {
    font-size: 1.8rem;
  }

  .customization-cta__btn {
    padding: 14px 32px;
    font-size: 1rem;
  }
}

/* ===== 社交互动模块 ===== */
.social-interaction {
  text-align: center;
}

/* 模块头部 */
.social-header {
  margin-bottom: 48px;
}

.social-title {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.social-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* 场景分栏容器 */
.social-scenes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* 场景卡片 */
.social-scene-card {
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 32px 24px 28px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-scene-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.18);
}

.social-scene-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.social-scene-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* 场景演示区域 */
.social-scene-card__demo {
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  padding: 20px;
  min-height: 240px;
}

/* ===== 聊天场景 ===== */
.chat-window {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 聊天消息行 */
.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.chat-msg--right {
  justify-content: flex-end;
}

/* 聊天头像 - 小型 Agent */
.chat-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-avatar--purple {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.chat-avatar--pink {
  background: linear-gradient(135deg, var(--secondary), var(--accent-peach));
}

/* 头像眼睛 */
.chat-avatar__eye {
  position: absolute;
  top: 12px;
  width: 5px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

.chat-avatar__eye--left { left: 10px; }
.chat-avatar__eye--right { right: 10px; }

.chat-avatar__eye::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background: #2D3436;
  border-radius: 50%;
}

/* 头像嘴巴 */
.chat-avatar__mouth {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.chat-avatar__mouth--smile {
  width: 10px;
  height: 5px;
  border: 2px solid #fff;
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.chat-avatar__mouth--open {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.9;
}

/* 聊天气泡 */
.chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  max-width: 75%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-bubble--left {
  background: #fff;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chat-bubble--right {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.2);
}

.chat-name {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.7;
}

.chat-bubble--right .chat-name {
  color: rgba(255, 255, 255, 0.8);
}

.chat-text {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ===== 任务派发场景 ===== */
.task-dispatch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 200px;
}

/* 任务 Agent */
.task-agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* 任务 Agent 头像 */
.task-agent__avatar {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.task-agent__avatar--mint {
  background: linear-gradient(135deg, #00cec9, var(--accent-mint));
}

.task-agent__avatar--purple {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

/* 任务 Agent 眼睛 */
.task-agent__eye {
  position: absolute;
  top: 18px;
  width: 6px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
}

.task-agent__eye--left { left: 15px; }
.task-agent__eye--right { right: 15px; }

.task-agent__eye::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background: #2D3436;
  border-radius: 50%;
}

/* 任务 Agent 嘴巴 */
.task-agent__mouth {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.task-agent__mouth--grin {
  width: 14px;
  height: 7px;
  border: 2px solid #fff;
  border-top: none;
  border-radius: 0 0 14px 14px;
}

.task-agent__mouth--smile {
  width: 10px;
  height: 5px;
  border: 2px solid #fff;
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.task-agent__name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.task-agent__role {
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 2px 10px;
  border-radius: 50px;
}

.task-agent--receiver .task-agent__role {
  background: linear-gradient(135deg, var(--secondary), var(--accent-peach));
}

/* 任务卡片传递轨道 */
.task-cards-track {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 8px 0;
}

/* 任务卡片 */
.task-card-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  animation: taskCardFloat 3s ease-in-out infinite;
}

.task-card-item--1 {
  animation-delay: 0s;
  border-left: 3px solid var(--accent-mint);
}

.task-card-item--2 {
  animation-delay: 0.5s;
  border-left: 3px solid var(--accent-yellow);
}

.task-card-item__icon {
  font-size: 1rem;
}

.task-card-item__label {
  letter-spacing: 0.3px;
}

/* 传递箭头 */
.task-arrow {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 4px 0;
}

.task-arrow__line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--secondary));
  border-radius: 2px;
}

.task-arrow__head {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--secondary);
}

/* 任务卡片浮动动画 */
@keyframes taskCardFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ===== 社交互动模块响应式 (< 1024px) ===== */
@media (max-width: 1023px) {
  .social-title {
    font-size: 1.8rem;
  }

  .social-subtitle {
    font-size: 1rem;
  }

  .social-scenes {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .social-scene-card {
    padding: 24px 18px 22px;
  }

  .social-scene-card__demo {
    padding: 16px;
    min-height: 200px;
  }

  .chat-avatar {
    width: 34px;
    height: 34px;
  }

  .chat-avatar__eye {
    top: 10px;
    width: 4px;
    height: 5px;
  }

  .chat-avatar__eye--left { left: 8px; }
  .chat-avatar__eye--right { right: 8px; }

  .chat-avatar__mouth--smile {
    width: 8px;
    height: 4px;
  }

  .chat-avatar__mouth--open {
    width: 6px;
    height: 6px;
  }

  .chat-avatar__mouth {
    bottom: 8px;
  }

  .chat-text {
    font-size: 0.8rem;
  }

  .chat-name {
    font-size: 0.65rem;
  }

  .task-agent__avatar {
    width: 46px;
    height: 46px;
  }

  .task-agent__eye {
    top: 14px;
    width: 5px;
    height: 6px;
  }

  .task-agent__eye--left { left: 12px; }
  .task-agent__eye--right { right: 12px; }

  .task-agent__mouth {
    bottom: 11px;
  }

  .task-agent__mouth--grin {
    width: 12px;
    height: 6px;
  }

  .task-agent__mouth--smile {
    width: 8px;
    height: 4px;
  }

  .task-card-item {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .task-arrow__line {
    width: 28px;
  }
}

/* prefers-reduced-motion 支持 */
@media (prefers-reduced-motion: reduce) {
  .task-card-item {
    animation: none;
  }
}

/* ===== 订阅方案模块 ===== */
.pricing {
  text-align: center;
}

/* 模块头部 */
.pricing-header {
  margin-bottom: 48px;
}

.pricing-title {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.pricing-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* 卡片容器 - 三列并排 */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 40px;
}

/* 单个订阅卡片 */
.pricing-card {
  position: relative;
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.18);
}

/* 推荐卡片 - 视觉突出 */
.pricing-card--recommended {
  border-color: var(--secondary);
  box-shadow: 0 8px 32px rgba(255, 107, 157, 0.18);
  transform: scale(1.04);
}

.pricing-card--recommended:hover {
  transform: scale(1.04) translateY(-6px);
  box-shadow: 0 14px 44px rgba(255, 107, 157, 0.25);
}

/* 推荐标签 */
.pricing-card__recommend-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), var(--accent-peach));
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.35);
  white-space: nowrap;
}

/* 卡片头部 */
.pricing-card__header {
  margin-bottom: 16px;
}

.pricing-card__name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* 免费徽章 */
.pricing-card__badge--free {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: linear-gradient(135deg, var(--accent-yellow), #fff3b0);
  border-radius: 50px;
}

/* 价格区域 */
.pricing-card__price {
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.pricing-card__price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.pricing-card--recommended .pricing-card__price-amount {
  color: var(--secondary);
}

.pricing-card__price-period {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Credits 额度 */
.pricing-card__credits {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  border-radius: 50px;
}

.pricing-card__credits-value {
  font-weight: 800;
  color: var(--primary);
}

.pricing-card--recommended .pricing-card__credits-value {
  color: var(--secondary);
}

/* 功能权益列表 */
.pricing-card__features {
  list-style: none;
  width: 100%;
  text-align: left;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-card__feature {
  padding: 7px 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(108, 92, 231, 0.06);
}

.pricing-card__feature:last-child {
  border-bottom: none;
}

/* CTA 按钮 */
.pricing-card__cta {
  display: inline-block;
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
  border-radius: 50px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  text-align: center;
  margin-top: auto;
}

.pricing-card__cta:hover,
.pricing-card__cta:focus-visible {
  transform: translateY(-2px);
  background: rgba(108, 92, 231, 0.14);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.15);
}

.pricing-card__cta:active {
  transform: translateY(0);
}

/* 推荐卡片 CTA - 渐变填充 */
.pricing-card__cta--recommended {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.35);
}

.pricing-card__cta--recommended:hover,
.pricing-card__cta--recommended:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(108, 92, 231, 0.45);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.pricing-card__cta--recommended:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

/* 额度用尽说明 */
.pricing-note {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== 订阅方案模块响应式 (< 1024px) ===== */
@media (max-width: 1023px) {
  .pricing-title {
    font-size: 1.8rem;
  }

  .pricing-subtitle {
    font-size: 1rem;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card--recommended {
    transform: scale(1);
  }

  .pricing-card--recommended:hover {
    transform: translateY(-6px);
  }

  .pricing-card {
    padding: 28px 22px 26px;
  }

  .pricing-card__price-amount {
    font-size: 2.2rem;
  }

  .pricing-note {
    font-size: 0.9rem;
    padding: 14px 18px;
  }
}

/* ===== 页脚组件 ===== */
.footer {
  background: linear-gradient(135deg, #2D3436, #3a3f47);
  color: #fff;
  padding: 48px 20px 32px;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* 品牌标识 */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-brand__logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand__desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 360px;
  line-height: 1.6;
}

/* 社交媒体图标 */
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.25s ease, transform 0.25s ease;
}

.footer-social__link:hover,
.footer-social__link:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-social__icon {
  font-size: 1.2rem;
  line-height: 1;
}

/* 隐私政策和服务条款链接 */
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-links__item {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.25s ease;
}

.footer-links__item:hover,
.footer-links__item:focus-visible {
  color: #fff;
}

.footer-links__divider {
  color: rgba(255, 255, 255, 0.3);
}

/* 版权信息 */
.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

/* ===== 页脚响应式 (< 1024px) ===== */
@media (max-width: 1023px) {
  .footer {
    padding: 36px 16px 24px;
  }

  .footer-inner {
    gap: 20px;
  }

  .footer-brand__logo {
    font-size: 1.3rem;
  }

  .footer-brand__desc {
    font-size: 0.85rem;
  }
}

/* ===== 滚动入场动画 ===== */

/* 初始状态：不可见，向下偏移 */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 动画后状态：可见，回到原位 */
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 订阅卡片 staggered delay */
.pricing-cards .animate-on-scroll.visible:nth-child(1) {
  transition-delay: 0s;
}

.pricing-cards .animate-on-scroll.visible:nth-child(2) {
  transition-delay: 0.15s;
}

.pricing-cards .animate-on-scroll.visible:nth-child(3) {
  transition-delay: 0.3s;
}

/* ===== prefers-reduced-motion：禁用入场动画 ===== */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }

  .animate-on-scroll.visible {
    transition: none;
  }
}

/* ===== Auth & Checkout Pages ===== */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 40px 20px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.auth-card--wide {
  max-width: 560px;
}

.auth-card__header {
  margin-bottom: 32px;
}

.auth-card__title {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.auth-card__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Form styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-input {
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  border: 2px solid rgba(108, 92, 231, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-primary);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.form-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.form-row {
  display: flex;
  gap: 14px;
}

.form-group--half {
  flex: 1;
}

.auth-submit {
  padding: 14px 24px;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-top: 8px;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 32px rgba(108, 92, 231, 0.45);
}

.auth-submit:active {
  transform: translateY(0) scale(0.98);
}

.auth-footer-text {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

.auth-link {
  color: var(--primary);
  font-weight: 700;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: var(--secondary);
}

/* Plan info badge */
.auth-plan-info {
  margin-top: 20px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

.auth-plan-badge {
  font-weight: 800;
  color: var(--primary);
}

/* Checkout summary */
.checkout-summary {
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
  text-align: center;
}

.checkout-plan__name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.checkout-plan__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 4px;
}

.checkout-plan__amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
}

.checkout-plan__period {
  font-size: 1rem;
  color: var(--text-secondary);
}

.checkout-plan__credits {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.checkout-features {
  list-style: none;
  text-align: left;
  display: inline-block;
}

.checkout-features li {
  padding: 4px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.checkout-back {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.checkout-back:hover {
  color: var(--primary);
}

/* Auth pages responsive */
@media (max-width: 1023px) {
  .auth-card {
    padding: 32px 24px;
  }

  .auth-card__title {
    font-size: 1.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 18px;
  }
}
