/* Tailwind 自定义工具类 */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .text-shadow {
        text-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
    }
    .text-gradient {
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        background-image: linear-gradient(90deg, #6366F1, #EC4899);
    }
    .bg-glass {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        background-color: rgba(30, 41, 59, 0.7);
    }
    .animate-float {
        animation: float 6s ease-in-out infinite;
    }
    .animate-float-delay-1 {
        animation: float 6s ease-in-out 1s infinite;
    }
    .animate-float-delay-2 {
        animation: float 6s ease-in-out 2s infinite;
    }
    .animate-scale-in {
        animation: scaleIn 1.2s ease-out forwards;
    }
    .animate-slide-up {
        animation: slideUp 1s ease-out forwards;
    }
    .animate-fade-in {
        animation: fadeIn 1.5s ease-out forwards;
    }
    .animate-text-reveal {
        animation: textReveal 2s ease-out forwards;
    }
}

/* 关键帧动画定义 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes scaleIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes textReveal {
    0% { clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%); opacity: 0; }
    100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); opacity: 1; }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #1E293B;
}
::-webkit-scrollbar-thumb {
    background: #6366F1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8B5CF6;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 粒子背景容器 */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Tailwind 自定义颜色扩展 */
:root {
    --color-primary: #6366F1;
    --color-secondary: #8B5CF6;
    --color-dark: #1E293B;
    --color-light: #F8FAFC;
    --color-accent: #EC4899;
}

/* 配置Tailwind颜色 */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    body {
        @apply bg-dark text-light font-sans;
    }
}