@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    /* 高级文字效果 */
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .text-gradient {
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        background-image: linear-gradient(135deg, #0A2463, #3E92CC);
    }
    .text-balance {
        text-wrap: balance;
    }
    
    /* 动画效果 */
    .animate-float {
        animation: float 6s ease-in-out infinite;
    }
    .animate-float-slow {
        animation: float 8s ease-in-out infinite;
    }
    .animate-float-fast {
        animation: float 4s ease-in-out infinite;
    }
    
    /* 卡片交互效果 */
    .card-hover {
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .card-hover:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 25px -5px rgba(10, 36, 99, 0.15), 0 10px 10px -5px rgba(10, 36, 99, 0.08);
    }
    
    /* 玻璃态效果升级 */
    .glass {
        background: rgba(255, 255, 255, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
    }
    .glass-dark {
        background: rgba(10, 36, 99, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
    }
    
    /* 阴影效果 */
    .soft-shadow {
        box-shadow: 0 10px 30px rgba(10, 36, 99, 0.08);
    }
    .hard-shadow {
        box-shadow: 0 20px 40px rgba(10, 36, 99, 0.12);
    }
    .glow-shadow {
        box-shadow: 0 0 25px rgba(62, 146, 204, 0.2);
    }
    
    /* 品牌渐变 */
    .brand-gradient {
        background-image: linear-gradient(135deg, rgba(10, 36, 99, 0.08) 0%, rgba(62, 146, 204, 0.12) 50%, rgba(216, 49, 91, 0.08) 100%);
    }
    .brand-gradient-strong {
        background-image: linear-gradient(135deg, #0A2463 0%, #3E92CC 100%);
    }
    .accent-gradient {
        background-image: linear-gradient(135deg, #3E92CC 0%, #D8315B 100%);
    }
    
    /* 网格背景 */
    .grid-bg {
        background-image:
            linear-gradient(rgba(10, 36, 99, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(10, 36, 99, 0.04) 1px, transparent 1px);
        background-size: 32px 32px;
    }
    
    /* 悬停提升效果 */
    .hover-lift {
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .hover-lift:hover {
        transform: translateY(-6px) scale(1.01);
        box-shadow: 0 15px 30px rgba(10, 36, 99, 0.15);
    }
    
    /* 闪光效果 */
    .shine {
        position: relative;
        overflow: hidden;
    }
    .shine::after {
        content: '';
        position: absolute;
        top: -50%; 
        left: -50%;
        width: 200%; 
        height: 200%;
        background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 50%);
        transform: rotate(15deg);
        pointer-events: none;
    }
    
    /* 高级边框效果 */
    .border-glow {
        box-shadow: 0 0 0 2px rgba(62, 146, 204, 0.3);
    }
    .border-gradient {
        position: relative;
        border-radius: inherit;
        z-index: 0;
    }
    .border-gradient::before {
        content: '';
        position: absolute;
        inset: -2px;
        z-index: -1;
        border-radius: calc(inherit + 2px);
        background: linear-gradient(135deg, #0A2463, #3E92CC);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .border-gradient:hover::before {
        opacity: 1;
    }
    
    /* 自定义滚动条 */
    .custom-scrollbar::-webkit-scrollbar {
        width: 6px;
    }
    .custom-scrollbar::-webkit-scrollbar-track {
        background: rgba(10, 36, 99, 0.05);
    }
    .custom-scrollbar::-webkit-scrollbar-thumb {
        background: rgba(62, 146, 204, 0.5);
        border-radius: 3px;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb:hover {
        background: rgba(62, 146, 204, 0.7);
    }
}

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 页面载入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 数字计数动画 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 平滑过渡 */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* 确保图片加载平滑 */
img {
    transition: transform 0.5s ease;
}

/* 确保所有内容都加载完成后再显示 */
body {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards 0.2s;
}