/* 天之数AI引擎 - 本地样式，无外部依赖 */
:root {
  --primary-blue: #0B1426;
  --electric-cyan: #00D4FF;
  --quantum-gold: #FFB800;
  --silver-gray: #8B9DC3;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --cyan-400: #22d3ee;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #9333ea;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --red-400: #f87171;
  --red-600: #dc2626;
  --pink-500: #ec4899;
  --emerald-500: #10b981;
  --max-w-7xl: 1280px;
  --max-w-4xl: 896px;
  --max-w-3xl: 768px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background: linear-gradient(to bottom right, var(--primary-blue), #000);
  color: #fff;
  overflow-x: hidden;
  margin: 0;
}

/* Layout */
.max-w-7xl { max-width: var(--max-w-7xl); }
.max-w-4xl { max-width: var(--max-w-4xl); }
.max-w-3xl { max-width: var(--max-w-3xl); }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.pt-20 { padding-top: 5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.text-left { text-align: left; }
.pt-8 { padding-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }

/* Flex & Grid */
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md\:hidden { display: none; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:gap-12 { gap: 3rem; }
}

/* Position */
.fixed { position: fixed; }
.relative { position: relative; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-1 { height: 0.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.h-24 { height: 6rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.-z-10 { z-index: -10; }
.z-50 { z-index: 50; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.text-6xl { font-size: 3.75rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-black { font-weight: 900; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-white { color: #fff; }
.leading-relaxed { line-height: 1.625; }
@media (min-width: 768px) {
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-8xl { font-size: 6rem; }
  .md\:text-3xl { font-size: 1.875rem; }
}
@media (min-width: 640px) {
  .sm\:text-sm { font-size: 0.875rem; }
  .sm\:text-xl { font-size: 1.25rem; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-4 { padding: 1rem; }
  .sm\:mb-4 { margin-bottom: 1rem; }
  .sm\:mb-6 { margin-bottom: 1.5rem; }
  .sm\:max-w-\[80\%\] { max-width: 80%; }
  .sm\:h-96 { height: 24rem; }
  .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .sm\:space-y-4 > * + * { margin-top: 1rem; }
  .sm\:space-y-6 > * + * { margin-top: 1.5rem; }
  .sm\:text-2xl { font-size: 1.5rem; }
}

.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-400 p { color: var(--gray-400); }
.text-cyan-400 { color: var(--cyan-400); }
.text-blue-400 { color: var(--blue-400); }
.text-green-400 { color: var(--green-400); }
.text-purple-400 { color: var(--purple-400); }
.text-yellow-400 { color: var(--yellow-400); }
.text-red-400 { color: var(--red-400); }
.text-green-400\.font-bold { color: var(--green-400); font-weight: 700; }

/* Backgrounds */
.bg-black { background-color: #000; }
.bg-blue-500 { background-color: var(--blue-500); }
.bg-blue-600 { background-color: var(--blue-600); }
.bg-green-500 { background-color: var(--green-500); }
.bg-green-600 { background-color: var(--green-600); }
.bg-purple-500 { background-color: var(--purple-500); }
.bg-purple-600 { background-color: var(--purple-600); }
.bg-yellow-500 { background-color: var(--yellow-500); }
.bg-red-600 { background-color: var(--red-600); }
.bg-white\/5 { background-color: rgba(255,255,255,0.05); }
.bg-black\/30 { background-color: rgba(0,0,0,0.3); }
.bg-white\/10 { background-color: rgba(255,255,255,0.1); }
.bg-gray-800\/80 { background-color: rgba(31,41,55,0.8); }
.bg-electric-cyan\/10 { background-color: rgba(0,212,255,0.1); }
.bg-electric-cyan\/20 { background-color: rgba(0,212,255,0.2); }
.bg-quantum-gold\/20 { background-color: rgba(255,184,0,0.2); }
.bg-gradient-to-r.from-cyan-400.to-blue-500 { background: linear-gradient(to right, var(--cyan-400), var(--blue-500)); }
.bg-gradient-to-r.from-blue-400.to-cyan-500 { background: linear-gradient(to right, var(--blue-400), var(--cyan-400)); }
.bg-gradient-to-r.from-green-400.to-emerald-500 { background: linear-gradient(to right, var(--green-400), var(--emerald-500)); }
.bg-gradient-to-r.from-purple-400.to-pink-500 { background: linear-gradient(to right, var(--purple-400), var(--pink-500)); }
.bg-gradient-to-r.from-electric-cyan.to-quantum-gold { background: linear-gradient(to right, var(--electric-cyan), var(--quantum-gold)); }
.bg-primary-blue\/80 { background-color: rgba(11,20,38,0.8); }

/* Border */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.border-gray-800 { border-color: var(--gray-800); }
.border-electric-cyan\/30 { border-color: rgba(0,212,255,0.3); }
.border-electric-cyan\/50 { border-color: rgba(0,212,255,0.5); }
.border-dashed { border-style: dashed; }
.border-gray-600\/50 { border-color: rgba(75,85,99,0.5); }

/* Rounded */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Effects */
.backdrop-blur-xl { backdrop-filter: blur(24px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.opacity-30 { opacity: 0.3; }
.opacity-80 { opacity: 0.8; }
.transition-all { transition: all 0.15s; }
.transition-colors { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.duration-300 { transition-duration: 0.3s; }
.duration-1000 { transition-duration: 1s; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Min height & section */
.min-h-screen { min-height: 100vh; }
section { display: block; }

/* Custom components */
.glow-text {
  text-shadow: 0 0 20px var(--electric-cyan), 0 0 40px var(--electric-cyan);
}
.gradient-text {
  background: linear-gradient(45deg, var(--electric-cyan), var(--quantum-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.demo-section { display: none; }
.demo-section.active { display: block; }

.scrollbar-thin::-webkit-scrollbar { width: 6px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(0,212,255,0.3);
  border-radius: 3px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover { background: rgba(0,212,255,0.5); }

#agent-bg {
  will-change: transform;
  transform: translateZ(0);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
@keyframes pulse-glow {
  from { box-shadow: 0 0 20px rgba(0,212,255,0.3); }
  to { box-shadow: 0 0 40px rgba(0,212,255,0.6); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite alternate; }
@media (max-width: 768px) {
  .animate-float { animation: none; }
}

/* Cards & buttons */
.hover\:-translate-y-2:hover { transform: translateY(-0.5rem); }
.hover\:shadow-cyan:hover { box-shadow: 0 20px 40px rgba(0,212,255,0.2); }
.hover\:text-cyan-400:hover { color: var(--cyan-400); }
.hover\:bg-electric-cyan\/20:hover { background-color: rgba(0,212,255,0.2); }
.hover\:scale-105:hover { transform: scale(1.05); }
.active\:scale-95:active { transform: scale(0.95); }
.active\:bg-electric-cyan\/30:active { background-color: rgba(0,212,255,0.3); }
.active\:border-electric-cyan:active { border-color: var(--electric-cyan); }
.active\:shadow-glow:active { box-shadow: 0 0 20px rgba(0,212,255,0.3); }

button.agent-btn {
  cursor: pointer;
  border: 1px solid rgba(0,212,255,0.3);
  transition: all 0.3s;
}
button.agent-btn:hover { background-color: rgba(0,212,255,0.2); }
button.agent-btn.active { background-color: rgba(0,212,255,0.3); border-color: var(--electric-cyan); }

input[type="text"] {
  outline: none;
  transition: all 0.15s;
}
input[type="text"]:focus {
  outline: none;
  border-color: var(--electric-cyan);
  box-shadow: 0 0 0 2px rgba(0,212,255,0.5);
}
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(0,212,255,0.5); }
.focus\:ring-electric-cyan:focus { --tw-ring-color: var(--electric-cyan); }
.focus\:border-transparent:focus { border-color: transparent; }
.hover\:shadow-\[0_10px_30px_rgba\(0\,212\,255\,0\.4\)\]:hover { box-shadow: 0 10px 30px rgba(0,212,255,0.4); }
.transition-all.duration-300 { transition-duration: 0.3s; }
.hover\:-translate-y-2:hover { transform: translateY(-0.5rem); }
.transition-all.duration-300:hover { box-shadow: 0 20px 40px rgba(0,212,255,0.2); }

/* Utility */
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.max-w-\[85\%\] { max-width: 85%; }
.h-80 { height: 20rem; }
.text-primary-blue { color: var(--primary-blue); }
.text-silver-gray { color: var(--silver-gray); }
.bg-electric-cyan\/30\.active { background-color: rgba(0,212,255,0.3); }

/* Footer & list */
footer a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
ul.space-y-2 li + li { margin-top: 0.5rem; }

/* Splide overrides for dark theme */
.splide__pagination__page { background: rgba(255,255,255,0.3); }
.splide__pagination__page.is-active { background: var(--electric-cyan); }
.splide__arrow { background: rgba(255,255,255,0.2); }
.splide__arrow svg { fill: #fff; }
