/* 自定义Tailwind配置 */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .card-gradient {
        background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    }
    .btn-gradient {
        background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    }
    .btn-accent-gradient {
        background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    }
    .animate-float {
        animation: float 3s ease-in-out infinite;
    }
    @keyframes float {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
        100% { transform: translateY(0px); }
    }
    .animate-pulse-slow {
        animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.7; }
    }
}

/* 自定义样式 */
body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #f9fafb;
}

/* 进度条动画 */
@keyframes progressAnimation {
    0% { width: 0%; }
    100% { width: 100%; }
}

.progress-animation {
    animation: progressAnimation 2s ease-out forwards;
}

/* 卡片悬停效果 */
.card-hover-effect {
    transition: all 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .mobile-menu-active {
        display: block !important;
    }
    
    /* 移动端底部菜单样式 */
    .mobile-bottom-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    background-color: #f3f4f6;
    font-weight: 600;
}

.data-table tr:hover {
    background-color: #f9fafb;
}