/*基础样式*/ 
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .product-card-shadow {
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
    .product-card-shadow:hover {
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .transition-navbar {
        transition: background-color 0.3s, padding 0.3s, box-shadow 0.3s;
    }
}

/* 全局样式 */
body {
    font-family: 'Inter', system-ui, sans-serif;
    scroll-behavior: smooth;
}

/* 轮播图样式 */
.carousel-item {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-indicator {
    transition: opacity 0.3s ease;
}

.carousel-indicator.active {
    opacity: 1 !important;
}


/* 导航栏滚动效果 */
.navbar-scrolled {
    @apply bg-white shadow-md;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* 产品分类按钮样式 */
.category-btn {
    transition: all 0.3s ease;
}

.category-btn.active {
    @apply bg-primary text-white;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}


/* 响应式调整 */
@media (max-width: 768px) {
    .mobile-menu-open {
        @apply block;
    }
}
        