@layer utilities {
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .text-shadow-lg {
        text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }
    .section-transition {
        transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    }
    .section-fade-in {
        transform: translateY(30px);
        opacity: 0;
    }
    .section-visible {
        transform: translateY(0);
        opacity: 1;
    }
    .stat-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
    
    /* 图片交互效果 */
    .img-hover-zoom {
        overflow: hidden;
        border-radius: 0.5rem;
    }
    .img-hover-zoom img {
        transition: transform 0.5s ease, filter 0.5s ease;
    }
    .img-hover-zoom:hover img {
        transform: scale(1.05);
        filter: brightness(1.1);
    }
    
    /* 文字高亮效果 */
    .text-highlight {
        position: relative;
        display: inline-block;
    }
    .text-highlight::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: currentColor;
        transition: width 0.3s ease;
    }
    .text-highlight:hover::after {
        width: 100%;
    }
    
    /* 卡片悬停效果增强 */
    .card-hover {
        transition: all 0.3s ease;
    }
    .card-hover:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }
    
    /* 图片闪光效果 */
    .img-shine {
        position: relative;
        overflow: hidden;
    }
    .img-shine::before {
        content: '';
        position: absolute;
        top: 0;
        left: -75%;
        z-index: 2;
        width: 50%;
        height: 100%;
        background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
        transform: skewX(-25deg);
        transition: all 0.75s;
    }
    .img-shine:hover::before {
        animation: shine 1s;
    }
    @keyframes shine {
        100% {
            left: 125%;
        }
    }
    
    /* 文字渐变动画 */
    .text-gradient-animate {
        background: linear-gradient(90deg, #D92121, #FFB800, #D92121);
        background-size: 200% auto;
        color: transparent;
        -webkit-background-clip: text;
        background-clip: text;
        animation: gradient 3s linear infinite;
    }
    @keyframes gradient {
        0% {
            background-position: 0% center;
        }
        100% {
            background-position: 200% center;
        }
    }
}
