/* 自定义样式 */
* {
    font-family: 'Noto Sans SC', sans-serif;
}

/* 动画定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animation-delay-300 {
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.animation-delay-600 {
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

/* 视差效果 */
.parallax-bg {
    transform: translateZ(0);
    will-change: transform;
}

/* 滚动显示动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 导航栏样式 */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #16a34a;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 产品筛选按钮 */
.filter-btn {
    color: #6b7280;
}

.filter-btn.active {
    background-color: #16a34a;
    color: white;
}

.filter-btn:hover {
    background-color: #f3f4f6;
}

.filter-btn.active:hover {
    background-color: #15803d;
}

/* 产品卡片动画 */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-7xl {
        font-size: 3rem;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #16a34a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* 表单样式增强 */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* 按钮悬停效果 */
button {
    transition: all 0.3s ease;
}

/* 模态框动画 */
#product-modal {
    transition: all 0.3s ease;
}

#product-modal.show {
    display: flex !important;
}

/* 加载动画 */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* 图片悬停效果 */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.5s ease;
}

.hover-zoom:hover img {
    transform: scale(1.1);
}