@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #4F46E5;
    --secondary: #7C3AED;
    --accent: #3B82F6;
    --light: #F3F4F6;
    --dark: #1F2937;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-500: #3b82f6;
    --blue-700: #1d4ed8;
    --blue-900: #1e3a8a;
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --indigo-100: #e0e7ff;
    --green-100: #dcfce7;
    --green-500: #22c55e;
    --green-600: #16a34a;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-family: 'Inter', system-ui, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

body { margin: 0; background-color: var(--gray-50); color: var(--gray-800); font-family: 'Inter', system-ui, sans-serif; overflow-x: hidden; }

a { color: inherit; text-decoration: none; }

button { cursor: pointer; font-family: inherit; border: none; background: none; padding: 0; }

img { max-width: 100%; height: auto; display: block; }

ol, ul { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-left: 2rem; padding-right: 2rem; } }

.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.static { position: static; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }

.flex-shrink-0 { flex-shrink: 0; }

/* 闪电特效 */
.lightning {
    position: absolute;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, #60A5FA, transparent);
    opacity: 0;
    animation: lightning-flash 3s infinite;
}

.lightning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #93C5FD, transparent);
    filter: blur(2px);
}

.lightning-1 {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.lightning-2 {
    top: 20%;
    left: 75%;
    animation-delay: 1.2s;
    height: 60px;
}

.lightning-3 {
    top: 5%;
    left: 45%;
    animation-delay: 2.4s;
    height: 100px;
}

@keyframes lightning-flash {
    0%, 100% { opacity: 0; }
    5% { opacity: 1; }
    10% { opacity: 0.3; }
    15% { opacity: 1; }
    20% { opacity: 0; }
    50% { opacity: 0; }
    55% { opacity: 0.8; }
    60% { opacity: 0; }
}

/* 火箭特效 */
.rocket {
    position: absolute;
    width: 40px;
    height: 40px;
    animation: rocket-launch 3s ease-in infinite;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.rocket svg {
    width: 100%;
    height: 100%;
}

/* 多个火箭位置 */
.rocket {
    bottom: 10%;
    left: 10%;
    animation-delay: 0s;
}

.rocket-2 {
    bottom: 15%;
    left: 30%;
    animation-delay: 1s;
    width: 30px;
    height: 30px;
}

.rocket-3 {
    bottom: 8%;
    left: 50%;
    animation-delay: 1.5s;
    width: 35px;
    height: 35px;
}

.rocket-4 {
    bottom: 12%;
    left: 70%;
    animation-delay: 0.5s;
    width: 25px;
    height: 25px;
}

.rocket-5 {
    bottom: 5%;
    left: 90%;
    animation-delay: 2s;
    width: 32px;
    height: 32px;
}

@keyframes rocket-launch {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(180deg);
        opacity: 0;
    }
}
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.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)); }
@media (min-width: 640px) { .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lg\:grid-cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.w-full { width: 100%; }
.w-auto { width: auto; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-1\/2 { width: 50%; }
.w-2\/3 { width: 66.666667%; }
.max-w-full { max-width: 100%; }
.max-w-3xl { max-width: 48rem; }
.max-w-none { max-width: none; }

.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-auto { height: auto; }
.h-48 { height: 12rem; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }

.flex-1 { flex: 1 1 0%; }
.flex-grow { flex-grow: 1; }

.border { border-width: 1px; border-style: solid; border-color: currentColor; }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: var(--gray-200); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: var(--gray-200); }
.border-l { border-left-width: 1px; border-left-style: solid; border-left-color: currentColor; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; border-left-color: currentColor; }
.border-gray-200 { border-color: var(--gray-200); }
.border-gray-700 { border-color: var(--gray-700); }
.border-gray-800 { border-color: var(--gray-800); }
.border-primary { border-color: var(--primary); }
.border-blue-500 { border-color: var(--blue-500); }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-xl { border-top-left-radius: 0.75rem; border-top-right-radius: 0.75rem; }
.overflow-hidden { overflow: hidden; }

.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-200 { background-color: var(--gray-200); }
.bg-gray-900 { background-color: var(--gray-900); }
.bg-blue-50 { background-color: var(--blue-50); }
.bg-blue-100 { background-color: var(--blue-100); }
.bg-purple-100 { background-color: var(--purple-100); }
.bg-indigo-100 { background-color: var(--indigo-100); }
.bg-green-100 { background-color: var(--green-100); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
.bg-transparent { background-color: transparent; }

.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-primary { background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%); }
.bg-gradient-secondary { background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%); }
.from-blue-50 { --tw-gradient-from: var(--blue-50); --tw-gradient-to: rgb(239 246 255 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-purple-50 { --tw-gradient-to: var(--purple-50); }
.from-blue-50.to-purple-50 { background: linear-gradient(to bottom right, var(--blue-50), var(--purple-50)); }
.from-blue-900 { --tw-gradient-from: var(--blue-900); --tw-gradient-to: rgb(30 58 138 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-purple-900 { --tw-gradient-to: #581c87; }
.from-blue-900.to-purple-900 { background: linear-gradient(to right, var(--blue-900), #581c87); }

.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.shadow-primary\/20 { box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.2), 0 10px 10px -5px rgba(79, 70, 229, 0.04); }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.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-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.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; }
.pb-4 { padding-bottom: 1rem; }
.pb-8 { padding-bottom: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-16 { padding-top: 4rem; }
.pt-24 { padding-top: 6rem; }
.pt-32 { padding-top: 8rem; padding-bottom:5rem }

.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-8 { margin-top: 2rem; margin-bottom: 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-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.mr-6 { margin-right: 1.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-sans { font-family: 'Inter', system-ui, sans-serif; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-white { color: #fff; }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }
.text-green-500 { color: var(--green-500); }
.text-green-600 { color: var(--green-600); }
.text-yellow-400 { color: #fbbf24; }
.text-blue-500 { color: var(--blue-500); }
.text-blue-700 { color: var(--blue-700); }
.text-current { color: currentColor; }

.italic { font-style: italic; }
.leading-relaxed { line-height: 1.625; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }

.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }

.cursor-pointer { cursor: pointer; }
.cursor-grab { cursor: grab; }
.select-none { user-select: none; }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all-300 { transition: all 300ms ease-in-out; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.-translate-y-1 { --tw-translate-y: -0.25rem; }
.translate-y-0 { --tw-translate-y: 0; }
.-translate-y-5 { transform: translateY(-5px); }

.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:bg-primary\/90:hover { background-color: rgba(79, 70, 229, 0.9); }
.hover\:bg-gray-100:hover { background-color: var(--gray-100); }
.hover\:bg-gray-50:hover { background-color: var(--gray-50); }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-primary\/80:hover { color: rgba(79, 70, 229, 0.8); }
.hover\:text-white:hover { color: #fff; }

.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--tw-ring-color); }
.focus\:ring-offset-2:focus { --tw-ring-offset-width: 2px; }

.card-hover:hover { transform: translateY(-5px); box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.text-shadow { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }

.list-none { list-style: none; }
.list-disc { list-style: disc; }
.pl-6 { padding-left: 1.5rem; }

.toc-active { color: var(--primary); font-weight: 600; border-left: 3px solid var(--primary); }
.toc-item { border-left: 3px solid transparent; transition: all 300ms ease-in-out; }
.toc-item:hover { color: var(--primary); font-weight: 600; border-left-color: var(--primary); }
.toc-item.toc-active { color: var(--primary); font-weight: 600; border-left-color: var(--primary); }

.order-1 { order: 1; }
.order-2 { order: 2; }

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:flex-row { flex-direction: row; }
    .md\:flex-row-reverse { flex-direction: row-reverse; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:w-1\/2 { width: 50%; }
    .md\:w-2\/3 { width: 66.666667%; }
    .md\:mb-0 { margin-bottom: 0; }
    .md\:order-1 { order: 1; }
    .md\:order-2 { order: 2; }
    .md\:pt-24 { padding-top: 6rem; }
    .md\:pb-24 { padding-bottom: 6rem; }
    .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 2.5rem; line-height: 1; }
    .md\:pt-32 { padding-top: 8rem; }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:w-1\/2 { width: 50%; }
    .lg\:w-2\/3 { width: 66.666667%; }
    .lg\:w-1\/3 { width: 33.333333%; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:items-center { align-items: center; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .sm\:mb-0 { margin-bottom: 0; }
}

/*.prose { max-width: 65ch; }*/
.prose > * + * { margin-top: 1.5em; }
.prose p { margin-top: 1.25em; margin-bottom: 1.25em; }
.prose h2 { margin-top: 2em; margin-bottom: 1em; font-size: 1.5rem; font-weight: 700; }
.prose ul { margin-top: 1.25em; margin-bottom: 1.25em; padding-left: 1.625em; list-style-type: disc; }
.prose ul li { margin-top: 0.5em; margin-bottom: 0.5em; }

.rotate-180 { transform: rotate(180deg); }

.object-cover { object-fit: cover; }

.fill-current { fill: currentColor; }

.whitespace-nowrap { white-space: nowrap; }

.visible { visibility: visible; }
.invisible { visibility: hidden; }

.bottom-8 { bottom: 2rem; }
.right-8 { right: 2rem; }

.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.hover\:border-l-3:hover { border-left-width: 3px; }
.hover\:border-primary:hover { border-color: var(--primary); }

.grid-flow-col { grid-auto-flow: column; }

.top-24 { top: 6rem; }
.sticky { position: sticky; }

.border-l-4 { border-left-width: 4px; border-left-style: solid; border-left-color: var(--blue-500); }

.bg-blue-50 { background-color: var(--blue-50); }
.text-blue-700 { color: var(--blue-700); }
.text-blue-500 { color: var(--blue-500); }

.flex-shrink-0 { flex-shrink: 0; }
