/* 工业科技感样式 - Industrial Tech Style */

/* 全局样式 */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    font-display: swap; /* 字体显示优化 */
}

/* 字体加载优化 */
.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 防止字体加载时的布局偏移 */
@font-face {
    font-family: 'Inter';
    font-display: swap;
}

/* 导航样式 */
.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

/* 卡片样式 */
.card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 产品卡片 */
.product-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

/* 产品图片悬停效果 */
.product-card .group:hover img {
    transform: scale(1.1);
}

/* 产品标题悬停效果 */
.product-card h3:hover {
    color: #3b82f6;
}

/* 产品图片遮罩动画 */
.product-card .group .absolute.inset-0 {
    backdrop-filter: blur(2px);
}

/* 眼睛图标动画 */
.product-card .group:hover .fa-eye {
    animation: eyeBlink 0.6s ease-in-out;
}

@keyframes eyeBlink {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 技术卡片动画 */
.tech-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(6, 182, 212, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-card:hover::after {
    opacity: 1;
}

/* 产品筛选器 */
.product-filter {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-filter.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.product-filter:not(.active):hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    transform: translateY(-2px);
}

/* 参数表格样式 */
.param-table {
    background: linear-gradient(145deg, #f8fafc, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.param-row {
    transition: background-color 0.2s ease;
}

.param-row:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滑入动画 */
.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 脉冲效果 */
.pulse-blue {
    animation: pulseBlue 2s infinite;
}

@keyframes pulseBlue {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 选择高亮 */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: #1e40af;
}

/* Focus样式 */
.focus-ring:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* 工业风格装饰元素 */
.industrial-border {
    position: relative;
}

.industrial-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
}

.industrial-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
}

/* 网格背景效果 */
.grid-bg {
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 悬浮效果 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* 打字机效果 */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #3b82f6;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #3b82f6; }
}

/* 模态框样式 */
.modal {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* 工具提示 */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tooltip:hover::after {
    opacity: 1;
}

/* 进度条 */
.progress-bar {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    height: 4px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 徽章样式 */
.badge {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 分隔线 */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

/* 阴影效果 */
.shadow-industrial {
    box-shadow: 
        0 4px 6px rgba(59, 130, 246, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-industrial-lg {
    box-shadow: 
        0 20px 25px rgba(59, 130, 246, 0.1),
        0 10px 10px rgba(0, 0, 0, 0.04);
}

/* 对比工具栏动画 */
.animate-slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 对比表格样式 */
.compare-table {
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    border: 1px solid #e5e7eb;
    padding: 12px;
}

.compare-table th {
    background-color: #f9fafb;
    font-weight: 600;
}

.compare-table tr:hover {
    background-color: #f9fafb;
}

/* 对比工具栏样式 */
#compareToolbar {
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 产品对比弹窗样式 */
.compare-modal {
    backdrop-filter: blur(8px);
}

.compare-modal .modal-content {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Hero区域增强动画 */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(-5px) translateX(-5px); }
    75% { transform: translateY(-15px) translateX(3px); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-15px) translateX(-3px); }
    50% { transform: translateY(-8px) translateX(8px); }
    75% { transform: translateY(-12px) translateX(-2px); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-8px) translateX(4px); }
    66% { transform: translateY(-16px) translateX(-6px); }
}

@keyframes float-4 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    20% { transform: translateY(-12px) translateX(2px); }
    40% { transform: translateY(-6px) translateX(-4px); }
    60% { transform: translateY(-18px) translateX(6px); }
    80% { transform: translateY(-3px) translateX(-2px); }
}

@keyframes float-5 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-20px) translateX(8px); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 应用动画类 */
.animate-float-1 {
    animation: float-1 6s ease-in-out infinite;
}

.animate-float-2 {
    animation: float-2 8s ease-in-out infinite;
}

.animate-float-3 {
    animation: float-3 7s ease-in-out infinite;
}

.animate-float-4 {
    animation: float-4 9s ease-in-out infinite;
}

.animate-float-5 {
    animation: float-5 5s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-spin-reverse {
    animation: spin-reverse 15s linear infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

/* 粒子定位 */
.particle:nth-child(1) { top: 20%; left: 10%; }
.particle:nth-child(2) { top: 60%; left: 20%; }
.particle:nth-child(3) { top: 30%; right: 15%; }
.particle:nth-child(4) { bottom: 40%; left: 30%; }
.particle:nth-child(5) { top: 70%; right: 25%; }

/* 毛玻璃效果增强 */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* 按钮悬停增强 */
.group:hover .fa-arrow-right {
    transform: translateX(4px);
}

.group:hover .fa-phone {
    transform: scale(1.1);
}

/* 渐变文字增强 */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 统计数字动画 */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-count-up {
    animation: countUp 0.8s ease-out;
}

/* 技术优势区域增强动画 */
@keyframes progressFill {
    0% { width: 0%; }
    100% { width: var(--target-width); }
}

.tech-card .bg-gradient-to-r {
    animation: progressFill 2s ease-out;
    animation-fill-mode: forwards;
}

.tech-card:nth-child(1) .bg-gradient-to-r { --target-width: 95%; animation-delay: 0.2s; }
.tech-card:nth-child(2) .bg-gradient-to-r { --target-width: 85%; animation-delay: 0.4s; }
.tech-card:nth-child(3) .bg-gradient-to-r { --target-width: 90%; animation-delay: 0.6s; }
.tech-card:nth-child(4) .bg-gradient-to-r { --target-width: 98%; animation-delay: 0.8s; }

/* 技术指标卡片动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tech-indicator {
    animation: fadeInUp 0.6s ease-out;
}

.tech-indicator:nth-child(1) { animation-delay: 0.1s; }
.tech-indicator:nth-child(2) { animation-delay: 0.2s; }
.tech-indicator:nth-child(3) { animation-delay: 0.3s; }
.tech-indicator:nth-child(4) { animation-delay: 0.4s; }

/* 流程步骤动画 */
@keyframes flowStep {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.flow-step {
    animation: flowStep 0.5s ease-out;
}

.flow-step:nth-child(1) { animation-delay: 0.1s; }
.flow-step:nth-child(3) { animation-delay: 0.3s; }
.flow-step:nth-child(5) { animation-delay: 0.5s; }
.flow-step:nth-child(7) { animation-delay: 0.7s; }
.flow-step:nth-child(9) { animation-delay: 0.9s; }

/* 步骤数字动画 */
@keyframes stepNumber {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.step-number {
    animation: stepNumber 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.step-number:nth-of-type(1) { animation-delay: 0.2s; }
.step-number:nth-of-type(2) { animation-delay: 0.4s; }
.step-number:nth-of-type(3) { animation-delay: 0.6s; }
.step-number:nth-of-type(4) { animation-delay: 0.8s; }
.step-number:nth-of-type(5) { animation-delay: 1.0s; }

/* 步骤数字悬停效果 */
.text-center.relative:hover .absolute {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* 认证图标悬停效果 */
.cert-icon:hover {
    transform: scale(1.1) rotate(5deg);
    transition: all 0.3s ease;
}

/* 技术成果数字动画 */
@keyframes numberGlow {
    0%, 100% { text-shadow: 0 0 5px rgba(59, 130, 246, 0.3); }
    50% { text-shadow: 0 0 20px rgba(59, 130, 246, 0.6); }
}

.achievement-number {
    animation: numberGlow 2s ease-in-out infinite;
}

/* Footer增强样式 */
footer .group:hover .text-2xl {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* 社交媒体图标悬停效果 */
footer a[href="#"]:hover {
    transform: translateY(-2px);
}

/* Footer链接悬停效果 */
footer .group .fa-chevron-right {
    transition: transform 0.3s ease;
}

footer .group:hover .fa-chevron-right {
    transform: translateX(4px);
}

/* 返回顶部按钮动画 */
@keyframes float-up {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

footer button[onclick*="scrollTo"] {
    animation: float-up 3s ease-in-out infinite;
}

footer button[onclick*="scrollTo"]:hover {
    animation: none;
    transform: translateY(-3px) scale(1.1);
}

/* Footer统计数字发光效果 */
@keyframes footerGlow {
    0%, 100% { 
        text-shadow: 0 0 5px currentColor; 
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 15px currentColor; 
        transform: scale(1.05);
    }
}

footer .group:hover .text-2xl {
    animation: footerGlow 1.5s ease-in-out infinite;
}

/* 认证徽章悬停效果 */
footer span[class*="bg-yellow-600/20"],
footer span[class*="bg-blue-600/20"],
footer span[class*="bg-green-600/20"] {
    transition: all 0.3s ease;
}

footer span[class*="bg-yellow-600/20"]:hover { background-color: rgba(217, 119, 6, 0.3); }
footer span[class*="bg-blue-600/20"]:hover { background-color: rgba(37, 99, 235, 0.3); }
footer span[class*="bg-green-600/20"]:hover { background-color: rgba(22, 163, 74, 0.3); }

/* 响应式优化 */
@media (max-width: 768px) {
    .particle { display: none; }
    
    /* 移动端Hero区域优化 */
    #home {
        min-height: 90vh;
        padding-bottom: 2rem;
    }
    
    .animate-float-1,
    .animate-float-2,
    .animate-float-3,
    .animate-float-4,
    .animate-float-5 {
        animation-duration: 3s;
    }
    
    /* 移动端隐藏流程箭头 */
    .flow-arrow {
        display: none;
    }
    
    /* 移动端Footer优化 */
    footer .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 移动端Footer链接2列布局 */
    footer .grid.grid-cols-2 a {
        font-size: 0.875rem; /* text-sm */
        padding: 0.5rem 0;
    }
    
    footer .grid.grid-cols-2 a i {
        font-size: 0.75rem; /* text-xs */
        margin-right: 0.5rem;
    }
    
    /* 移动端技术优势卡片居中 */
    .tech-card {
        text-align: center;
    }
    
    .tech-card .w-16.h-16 {
        margin: 0 auto 1.5rem auto;
    }
    
    .tech-card h3 {
        text-align: center;
    }
    
    .tech-card p {
        text-align: center;
    }
    
    .tech-card .flex.items-center {
        justify-content: center;
    }
}
