/* ==========================================================================
   JJAI Design System
   品牌: 蓝(科技) + 青(AI) + 翡翠(增长) + 琥珀(能量)
   不使用紫色
   ========================================================================== */

:root {
  /* Brand */
  --brand-50:  #EFF6FF;
  --brand-100: #DBEAFE;
  --brand-200: #BFDBFE;
  --brand-300: #93C5FD;
  --brand-400: #60A5FA;
  --brand-500: #3B82F6;
  --brand-600: #2563EB;  /* primary */
  --brand-700: #1D4ED8;
  --brand-800: #1E40AF;
  --brand-900: #1E3A8A;

  /* AI Cyan */
  --ai-50:  #ECFEFF;
  --ai-100: #CFFAFE;
  --ai-200: #A5F3FC;
  --ai-300: #67E8F9;
  --ai-400: #22D3EE;
  --ai-500: #06B6D4;
  --ai-600: #0891B2;
  --ai-700: #0E7490;

  /* Emerald (Growth / Success) */
  --emerald-50:  #ECFDF5;
  --emerald-100: #D1FAE5;
  --emerald-200: #A7F3D0;
  --emerald-300: #6EE7B7;
  --emerald-400: #34D399;
  --emerald-500: #10B981;
  --emerald-600: #059669;
  --emerald-700: #047857;

  /* Amber (Energy / CTA) */
  --amber-400: #FBBF24;
  --amber-500: #F59E0B;
  --amber-600: #D97706;

  /* Neutral */
  --ink-50:  #F8FAFC;
  --ink-100: #F1F5F9;
  --ink-200: #E2E8F0;
  --ink-300: #CBD5E1;
  --ink-400: #94A3B8;
  --ink-500: #64748B;
  --ink-600: #475569;
  --ink-700: #334155;
  --ink-800: #1E293B;
  --ink-900: #0F172A;
  --ink-950: #020617;

  /* Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --danger:  #EF4444;
  --info:    #06B6D4;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
  --shadow:    0 1px 3px 0 rgb(15 23 42 / 0.08), 0 1px 2px -1px rgb(15 23 42 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.08), 0 2px 4px -2px rgb(15 23 42 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.10), 0 4px 6px -4px rgb(15 23 42 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.10), 0 8px 10px -6px rgb(15 23 42 / 0.05);
  --shadow-2xl: 0 25px 50px -12px rgb(15 23 42 / 0.25);
  --shadow-glow: 0 0 30px -5px rgb(37 99 235 / 0.40);

  /* Radius */
  --r-sm: 6px;
  --r:    8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 9999px;

  /* Spacing scale: 4 8 12 16 20 24 32 40 48 64 80 96 128 */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink-900);
  background: #ffffff;
  line-height: 1.6;
}

/* Typography */
.h-display-1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.h-display-2 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; line-height: 1.1;  letter-spacing: -0.02em; }
.h1 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; line-height: 1.2;  letter-spacing: -0.015em; }
.h2 { font-size: clamp(24px, 2.5vw, 32px); font-weight: 700; line-height: 1.25; }
.h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; line-height: 1.3; }
.h4 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.body-lg { font-size: 17px; line-height: 1.65; }
.body { font-size: 15px; line-height: 1.65; }
.body-sm { font-size: 13px; line-height: 1.55; color: var(--ink-500); }
.mono { font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace; }

/* Backgrounds */
.bg-base { background: #ffffff; }
.bg-ink-50 { background: var(--ink-50); }
.bg-ink-900 { background: var(--ink-900); color: white; }
.bg-ink-950 { background: var(--ink-950); color: white; }
.bg-brand { background: var(--brand-600); }
.bg-ai    { background: var(--ai-500); }
.bg-emerald { background: var(--emerald-500); }
.bg-amber { background: var(--amber-500); }
.bg-gradient-brand { background: linear-gradient(135deg, var(--brand-600) 0%, var(--ai-500) 100%); }
.bg-gradient-hero  { background:
  radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37,99,235,0.20), transparent 60%),
  radial-gradient(ellipse 60% 50% at 80% 30%, rgba(6,182,212,0.15), transparent 60%),
  radial-gradient(ellipse 50% 40% at 20% 70%, rgba(16,185,129,0.10), transparent 60%),
  linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bg-grid-dark {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Glassmorphism */
.glass {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.5);
}
.glass-dark {
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.10);
}

/* Cards */
.card {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  transition: all 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-300);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 160ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-600);
  color: white;
  box-shadow: 0 4px 14px -2px rgba(37,99,235,0.4);
}
.btn-primary:hover {
  background: var(--brand-700);
  box-shadow: 0 8px 24px -4px rgba(37,99,235,0.5);
  transform: translateY(-1px);
}
.btn-glow {
  background: linear-gradient(135deg, var(--brand-600), var(--ai-500));
  color: white;
  box-shadow: 0 8px 24px -4px rgba(6,182,212,0.45);
}
.btn-glow:hover {
  box-shadow: 0 12px 32px -4px rgba(6,182,212,0.6);
  transform: translateY(-2px);
}
.btn-amber {
  background: var(--amber-500);
  color: white;
  box-shadow: 0 4px 14px -2px rgba(245,158,11,0.4);
}
.btn-amber:hover {
  background: var(--amber-600);
  transform: translateY(-1px);
}
.btn-outline {
  background: white;
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn-outline:hover {
  border-color: var(--ink-900);
  background: var(--ink-50);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-700);
}
.btn-ghost:hover {
  background: var(--ink-100);
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }

/* Chips / Badges */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px;
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 600;
  background: var(--ink-100);
  color: var(--ink-700);
}
.chip-brand   { background: var(--brand-50);   color: var(--brand-700); }
.chip-ai      { background: var(--ai-50);      color: var(--ai-700); }
.chip-emerald { background: var(--emerald-50); color: var(--emerald-700); }
.chip-amber   { background: #FEF3C7;           color: #92400E; }
.chip-outline { background: transparent; border: 1px solid var(--ink-200); color: var(--ink-700); }

/* Container */
.container-x { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
@media (min-width: 768px) { .container-x { padding-left: 32px; padding-right: 32px; } }

/* Section spacing */
.section { padding: 80px 0; }
@media (min-width: 1024px) { .section { padding: 120px 0; } }
.section-sm { padding: 48px 0; }

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-600), var(--ai-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-ai {
  background: linear-gradient(135deg, var(--ai-500), var(--emerald-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Animations */
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }
@keyframes float-slow { 0%, 100% { transform: translateY(0px) translateX(0px); } 50% { transform: translateY(-30px) translateX(15px); } }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.5); }
  50% { box-shadow: 0 0 0 16px rgba(37,99,235,0); }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes gradient-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes scale-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes dot-pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 8s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2.4s ease-out infinite; }
.animate-spin-slow { animation: spin-slow 12s linear infinite; }
.animate-marquee { animation: marquee 30s linear infinite; }
.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  background-size: 200% 100%;
  animation: shimmer 2.4s linear infinite;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: all 700ms cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Form */
input, textarea, select {
  font-family: inherit;
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r);
  background: white;
  color: var(--ink-900);
  outline: none;
  transition: all 160ms ease;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-50); }
::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-400); }

/* Selection */
::selection { background: var(--brand-200); color: var(--brand-900); }

/* ========== Navbar 统一（修复点击切换导致菜单间距漂移） ========== */
#navLinks{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;}
.nav-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:64px!important;height:36px!important;padding:0 14px!important;box-sizing:border-box!important;color:var(--ink-700)!important;font-size:15px!important;font-weight:500!important;border-radius:var(--r)!important;transition:color 160ms ease,background-color 160ms ease!important;text-decoration:none!important;}
.nav-link:hover{color:var(--brand-600)!important;background:var(--brand-50)!important;}
.nav-link.active{color:var(--brand-600)!important;background:var(--brand-50)!important;font-weight:600!important;}

