/* ===== Base ===== */
:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --accent: #7C4DFF;
    --bg-dark: #0F172A;
    --glass-bg: rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.1);
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --green-400: #4ade80;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --amber-500: #f59e0b;
    --orange-500: #f97316;
    --rose-500: #f43f5e;
    --pink-500: #ec4899;
    --violet-500: #8b5cf6;
    --purple-600: #9333ea;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    background: var(--white);
    color: var(--slate-800);
    line-height: 1.6;
}

/* ===== Layout ===== */
.max-w-7xl { max-width: 1280px; }
.max-w-3xl { max-width: 768px; }
.max-w-2xl { max-width: 672px; }
.max-w-md { max-width: 448px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.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-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* ===== Flexbox ===== */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.inline-flex { display: inline-flex; }

/* ===== Grid ===== */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-y-0 { top: 0; bottom: 0; }

/* ===== Typography ===== */
.text-center { text-align: center; }
.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-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-relaxed { line-height: 1.75; }
.leading-tight { line-height: 1.25; }
.block { display: block; }

/* ===== Colors ===== */
.text-white { color: var(--white); }
.text-slate-400 { color: var(--slate-400); }
.text-slate-500 { color: var(--slate-500); }
.text-slate-600 { color: var(--slate-600); }
.text-slate-700 { color: var(--slate-700); }
.text-slate-800 { color: var(--slate-800); }
.text-slate-900 { color: var(--slate-900); }
.text-primary-500 { color: var(--primary); }
.text-green-400 { color: var(--green-400); }
.text-green-500 { color: var(--green-500); }
.bg-white { background-color: var(--white); }
.bg-slate-50 { background-color: var(--slate-50); }
.bg-slate-100 { background-color: var(--slate-100); }
.bg-slate-900 { background-color: var(--slate-900); }
.bg-green-100 { background-color: #dcfce7; }
.border-slate-100 { border-color: var(--slate-100); }
.border-slate-200 { border-color: var(--slate-200); }
.border-slate-800 { border-color: var(--slate-800); }
.border-white { border-color: var(--white); }
.border-white\/20 { border-color: rgba(255,255,255,0.2); }

/* ===== Sizing ===== */
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-10 { width: 2.5rem; }
.w-14 { width: 3.5rem; }
.w-20 { width: 5rem; }
.w-64 { width: 16rem; }
.w-72 { width: 18rem; }
.w-80 { width: 20rem; }
.w-96 { width: 24rem; }
.w-full { width: 100%; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-10 { height: 2.5rem; }
.h-14 { height: 3.5rem; }
.h-20 { height: 5rem; }
.h-64 { height: 16rem; }
.h-72 { height: 18rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* ===== Positioning ===== */
.top-0 { top: 0; }
.top-6 { top: 1.5rem; }
.top-20 { top: 5rem; }
.top-1\/2 { top: 50%; }
.bottom-3 { bottom: 0.75rem; }
.bottom-10 { bottom: 2.5rem; }
.bottom-20 { bottom: 5rem; }
.left-0 { left: 0; }
.left-1\/3 { left: 33.333%; }
.left-10 { left: 2.5rem; }
.left-1\/2 { left: 50%; }
.-left-20 { left: -5rem; }
.right-0 { right: 0; }
.right-6 { right: 1.5rem; }
.right-10 { right: 2.5rem; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* ===== Borders & Radius ===== */
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-t-0 { border-top-width: 0; }

/* ===== Shadows ===== */
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.shadow-primary-500\/30 { box-shadow: 0 10px 15px -3px rgba(0,102,255,0.3); }
.shadow-primary-500\/10 { box-shadow: 0 20px 40px rgba(0,102,255,0.1); }

/* ===== Opacity ===== */
.opacity-30 { opacity: 0.3; }
.text-white\/80 { color: rgba(255,255,255,0.8); }
.text-white\/70 { color: rgba(255,255,255,0.7); }
.text-white\/60 { color: rgba(255,255,255,0.6); }
.text-white\/90 { color: rgba(255,255,255,0.9); }
.text-white\/50 { color: rgba(255,255,255,0.5); }
.hover\:bg-white\/10:hover { background-color: rgba(255,255,255,0.1); }
.bg-primary-500\/10 { background-color: rgba(0,102,255,0.1); }
.bg-accent-400\/10 { background-color: rgba(124,77,255,0.1); }

/* ===== Transitions ===== */
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.transition-transform { transition: transform 0.3s ease; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* ===== Hover States ===== */
.hover\:text-white:hover { color: var(--white); }
.hover\:text-slate-900:hover { color: var(--slate-900); }
.hover\:text-primary-500:hover { color: var(--primary); }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:bg-white\/10:hover { background-color: rgba(255,255,255,0.1); }

/* ===== Responsive ===== */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:text-5xl { font-size: 3rem; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2; }
    .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .md\:text-5xl { font-size: 3rem; }
    .md\:text-6xl { font-size: 3.75rem; }
    .md\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
    .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:p-10 { padding: 2.5rem; }
    .lg\:p-12 { padding: 3rem; }
    .lg\:text-5xl { font-size: 3rem; }
    .lg\:text-7xl { font-size: 4.5rem; }
}

/* ===== Custom Components ===== */
.nav-scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-menu.active {
    display: block;
}

.btn-primary {
    background: linear-gradient(135deg, #0066FF, #7C4DFF);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,102,255,0.3);
}

.glass-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.glass-dark {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
}

.text-gradient {
    background: linear-gradient(135deg, #0066FF, #7C4DFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-gradient {
    background: linear-gradient(135deg, #0F172A 0%, #1e3a8a 50%, #0066FF 100%);
    background-size: 200% 200%;
    animation: gradient 8s ease infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066FF, #7C4DFF);
}

.process-line {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0066FF, #7C4DFF);
    z-index: 0;
}

.case-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,102,255,0.15);
}

.counter {
    font-variant-numeric: tabular-nums;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50% { transform: translateY(0); animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

.animate-bounce { animation: bounce 1s infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== Form Elements ===== */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
}

input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

/* ===== Gradients ===== */
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-from), var(--tw-gradient-to)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-via, transparent), var(--tw-gradient-to)); }
.from-slate-50 { --tw-gradient-from: var(--slate-50); }
.to-white { --tw-gradient-to: var(--white); }
.from-primary-500 { --tw-gradient-from: var(--primary); }
.to-primary-600 { --tw-gradient-to: var(--primary-dark); }
.from-accent-400 { --tw-gradient-from: var(--accent); }
.to-accent-500 { --tw-gradient-to: var(--accent); }
.from-emerald-500 { --tw-gradient-from: var(--emerald-500); }
.to-emerald-600 { --tw-gradient-to: var(--emerald-600); }
.from-amber-500 { --tw-gradient-from: var(--amber-500); }
.to-orange-500 { --tw-gradient-to: var(--orange-500); }
.from-rose-500 { --tw-gradient-from: var(--rose-500); }
.to-pink-500 { --tw-gradient-to: var(--pink-500); }
.from-violet-500 { --tw-gradient-from: var(--violet-500); }
.to-purple-600 { --tw-gradient-to: var(--purple-600); }
.from-blue-400 { --tw-gradient-from: #60a5fa; }
.via-accent-400 { --tw-gradient-via: var(--accent); }
.to-primary-400 { --tw-gradient-to: #60a5fa; }
.bg-clip-text { background-clip: text; }
.text-transparent { color: transparent; }

/* ===== Blur ===== */
.blur-3xl { filter: blur(64px); }
.overflow-hidden { overflow: hidden; }
.rounded-full { border-radius: 9999px; }

/* ===== Misc ===== */
.hidden { display: none; }
.invisible { visibility: hidden; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.resize-none { resize: none; }
.overflow-x-hidden { overflow-x: hidden; }
