/* 自定义样式 */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .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.25);
    }
    .transition-smooth {
        transition: all 0.3s ease-in-out;
    }
}

/* 基础样式 */
body {
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

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

/* 导航栏滚动效果 */
.navbar-scrolled {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Banner 轮播动画 */
.banner-slider {
    transition: transform 0.5s ease-in-out;
}

/* 产品卡片悬停效果 */
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 服务卡片悬停效果 */
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* 加载动画 */
.loader {
    border-top-color: #0A66C2;
    animation: spinner 0.8s linear infinite;
}

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

/* 响应式导航菜单动画 */
.mobile-menu {
    transition: transform 0.3s ease-in-out;
}

/* 图片加载效果 */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lazy-load.loaded {
    opacity: 1;
}