/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=LXGW+WenKai:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900;300;400;500;600;700;800;900&display=swap');

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

/* PC 端产品卡片描述文本字体大小 - 全局覆盖 Tailwind 的 text-sm */
@media (min-width: 768px) {
    /* 产品卡片描述文字 16px */
    .product-card p {
        font-size: 16px !important;
    }
    
    /* PC 端页脚所有文字 16px */
    footer .text-xs,
    footer .text-sm,
    footer p,
    footer ul li {
        font-size: 16px !important;
    }
    
    footer h4 {
        margin-bottom: 16px !important;
    }
    
    /* PC 端案例卡片描述文字 */
    #case-studies-container p {
        font-size: 16px !important;
    }
    
    /* PC 端案例卡片标题 */
    #case-studies-container h3 {
        font-size: 20px !important;
    }
    
    /* PC 端特性区标题和描述 */
    .feature-item h3 {
        font-size: 24px !important;
    }
    
    .feature-item p {
        font-size: 16px !important;
    }
    
    /* PC 端数据展示区描述文字 */
    section.bg-white p {
        font-size: 16px !important;
    }
}

/* 字体定义 */
body {
    font-family: 'LXGW WenKai', 'Inter', sans-serif;
    background-color: #fcfcfc; /* 柔和的灰白色 */
    color: #374151; /* 柔和的深灰色文字 (Tailwind gray-700) */
}
.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* 简化黑色强调色：使用 #111827 (Tailwind gray-900) */
.accent-color {
    color: #111827;
}
.cta-button-primary {
    transition: all 0.3s ease;
    background-color: #111827; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.cta-button-primary:hover {
    background-color: #1f2937; /* gray-800 */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.tab-active {
    border-bottom: 3px solid #111827;
    color: #111827;
    font-weight: 600;
}

/* 页面元素样式 */
.hero-bg {
    background-color: #ffffff;
}
/* 确保主要标题颜色足够深，但不是纯黑 */
.text-gray-900 {
    color: #1f2937; /* Tailwind gray-900, 保持清晰度 */
}
.product-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* 产品卡片淡入动画的初始状态 */
    opacity: 0;
    transform: translateY(10px);
}
.product-card.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.product-card:hover {
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.cta-button-secondary {
     border-color: #e5e7eb;
}
.cta-button-secondary:hover {
    background-color: #ebebeb;
}

/* Mobile Menu styles */
#mobile-menu {
    transition: transform 0.3s ease-out;
    transform: translateX(100%);
}
#mobile-menu.open {
    transform: translateX(0);
}

/* ScrollSpy Active State CSS */
.nav-link.active {
    color: #111827 !important;
    border-bottom: 2px solid #111827;
    padding-bottom: 5px;
}

/* Mobile Tab Scroll Fix */
.tab-container {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.tab-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Mobile swipe to close menu */
#mobile-menu {
    touch-action: pan-x;
}

/* Smooth menu animation */
#mobile-menu.open {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Mobile touch feedback */
@media (max-width: 640px) {
    .product-card:active,
    .product-tab:active,
    button:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Toast notification styles */
    .copy-toast {
        font-size: 14px;
        font-weight: 600;
        padding: 12px 24px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

