@layer utilities {
    .text-shadow {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    }
    .transition-all-300 {
        transition: all 0.3s ease;
    }
    .bg-gradient-blue {
        background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    }
    .bg-gradient-light {
        background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    }
    .card-hover {
        transition: all 0.3s ease;
    }
    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: var(--tw-shadow-card-hover);
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

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

/* 底部固定菜单 */
.fixed-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* 模块标题样式 */
.module-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.module-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #ef4444;
    border-radius: 2px;
}

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

.card: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);
}

/* 按钮动画效果 */
.btn-animate {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-animate::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.btn-animate:hover::after {
    width: 300px;
    height: 300px;
}

.btn-animate:hover {
    transform: translateY(-2px);
}

/* 数字计数动画 */
.counter {
    transition: all 0.5s ease;
}

/* 导航菜单激活状态 */
.nav-item.active {
    color: #ef4444;
    font-weight: 600;
}

/* 加载动画 */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 脉冲动画 */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}