/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: #1E293B;
    background-color: #F8FAFC;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3B82F6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}

/* 产品卡片悬停效果 */
.product-card:hover {
    transform: translateY(-5px);
}

/* FAQ动画效果 */
.faq-answer {
    transition: all 0.3s ease-in-out;
}

/* 按钮悬停效果 */
button:hover, a:hover {
    transition: all 0.3s ease-in-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    border-top-color: #3B82F6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 无障碍访问 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 暗黑模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0F172A;
        color: #F8FAFC;
    }
    
    .bg-white {
        background-color: #1E293B;
        color: #F8FAFC;
    }
    
    .bg-gray-50 {
        background-color: #1E293B;
    }
    
    .text-gray-600 {
        color: #CBD5E1;
    }
    
    .text-gray-500 {
        color: #94A3B8;
    }
    
    .border-gray-300 {
        border-color: #475569;
    }
    
    .bg-blue-100 {
        background-color: #1E3A8A;
    }
    
    .bg-green-100 {
        background-color: #065F46;
    }
    
    .bg-purple-100 {
        background-color: #5B21B6;
    }
    
    .bg-gray-200 {
        background-color: #334155;
        color: #F8FAFC;
    }
    
    .hover\:bg-gray-300:hover {
        background-color: #475569;
    }
    
    .shadow-lg {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    }
}