html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  min-height: 100vh;
}

* {
  -webkit-tap-highlight-color: transparent;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #e2e8f0;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #2563eb;
  --secondary: #ec4899;
  --accent: #8b5cf6;
  --bg: #f8fafc;
  --bg-light: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: rgba(59, 130, 246, 0.2);
  --glow-primary: rgba(59, 130, 246, 0.5);
  --glow-secondary: rgba(236, 72, 153, 0.5);
}

.app {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== 头部样式 ========== */
.header {
  position: relative;
  padding: 80px 16px 60px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #dbeafe 0%, #f8fafc 100%);
}

.header-bg-effects {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

/* 网格背景 */
.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* 发光球体 */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 10s ease-in-out infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: var(--secondary);
  top: 50%;
  right: -80px;
  animation-delay: -3s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  bottom: -50px;
  left: 30%;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.header-content {
  position: relative;
  z-index: 1;
}

/* Logo 容器 */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

/* 爪子 Logo */
.claw-logo {
  width: 140px;
  height: 140px;
  position: relative;
}

.claw-svg {
  width: 100%;
  height: 100%;
  animation: clawPulse 4s ease-in-out infinite;
}

@keyframes clawPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3)); }
  50% { filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.6)); }
}

.orbit-ring {
  fill: none;
  stroke: rgba(59, 130, 246, 0.2);
  stroke-width: 1;
  stroke-dasharray: 5, 5;
  animation: rotate 20s linear infinite;
}

.orbit-ring-inner {
  fill: none;
  stroke: rgba(236, 72, 153, 0.15);
  stroke-width: 1;
  stroke-dasharray: 3, 7;
  animation: rotate 15s linear infinite reverse;
}

@keyframes rotate {
  from { transform: rotate(0deg); transform-origin: center; }
  to { transform: rotate(360deg); transform-origin: center; }
}

.tech-dot {
  fill: var(--primary);
  filter: drop-shadow(0 0 5px var(--primary-light));
  animation: dotPulse 2s ease-in-out infinite;
}

/* 爪子SVG样式 */
.claw-arm, .claw-arm-straight {
  fill: none;
  stroke: url(#clawGradient);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.claw-finger, .claw-finger-main {
  fill: url(#clawGradient);
  filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.5));
}

.claw-body {
  animation: clawRotate 20s linear infinite;
}

@keyframes clawRotate {
  from { transform: rotate(0deg); transform-origin: center; }
  to { transform: rotate(360deg); transform-origin: center; }
}

.tech-dot:nth-child(2) { animation-delay: 0.3s; }
.tech-dot:nth-child(3) { animation-delay: 0.6s; }
.tech-dot:nth-child(4) { animation-delay: 0.9s; }
.tech-dot:nth-child(5) { animation-delay: 1.2s; }
.tech-dot:nth-child(6) { animation-delay: 1.5s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Logo 文字 */
.logo-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.version {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* 徽章 */
.header-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--text);
  transition: all 0.3s ease;
}

.badge:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ========== 区块通用样式 ========== */
.section {
  padding: 60px 0;
  position: relative;
}

.openclaw-section {
  background: var(--bg-light);
}

.capabilities-section {
  background: var(--bg);
}

.projects-section {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-badge.secondary {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(239, 68, 68, 0.2) 100%);
  color: #ec4899;
}

.section-badge.tertiary {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
  color: #10b981;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #1e293b 0%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========== OpenClaw 特性展示 ========== */
.features-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.feature-card-enhanced {
  position: relative;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: calc(var(--index) * 0.1s);
  opacity: 0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card-enhanced:hover {
  transform: translateY(-8px);
  border-color: var(--card-color, var(--primary));
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05),
    0 0 60px rgba(59, 130, 246, 0.1);
}

.feature-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--card-color, var(--primary)) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card-enhanced:hover .feature-glow {
  opacity: 0.05;
}

.card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.05),
    transparent
  );
  transition: left 0.7s ease;
}

.feature-card-enhanced:hover .card-shine {
  left: 100%;
}

.feature-content {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.feature-icon-wrap {
  position: relative;
  flex-shrink: 0;
}

.feature-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: 16px;
  position: relative;
  z-index: 1;
}

.feature-text h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.feature-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.example-chip {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.example-chip:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

/* ========== 统计栏 ========== */
.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 16px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}

/* ========== AI能力卡片 ========== */
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.capability-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.capability-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.capability-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.capability-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.capability-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.example-tag {
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.2);
  color: #ec4899;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* ========== AI项目卡片 ========== */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.project-image {
  font-size: 4rem;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.project-content {
  padding: 24px;
}

.project-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.project-tag {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #10b981;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-tag {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* ========== 底部 ========== */
.footer {
  background: var(--bg);
  padding: 40px 16px;
  border-top: 1px solid #e2e8f0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.claw-mini {
  font-size: 1.5rem;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== 响应式适配 ========== */
@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
  
  .header {
    padding: 100px 24px 80px;
  }
  
  .claw-logo {
    width: 180px;
    height: 180px;
  }
  
  .logo-text h1 {
    font-size: 3.5rem;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .features-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .project-card {
    flex-direction: row;
  }
  
  .project-image {
    width: 200px;
    height: auto;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
  
  .header {
    padding: 120px 32px 100px;
  }
  
  .claw-logo {
    width: 200px;
    height: 200px;
  }
  
  .features-showcase {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .capabilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stats-bar {
    gap: 48px;
  }
}
