/* 科技感特效样式 */

/* 1. 科技感背景网格 */
.tech-bg {
    position: relative;
    overflow: hidden;
}

.tech-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 103, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 103, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

/* 2. 产品卡片科技感特效 */
.product-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 103, 0, 0) 0%,
        rgba(255, 103, 0, 0.1) 50%,
        rgba(255, 103, 0, 0) 100%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    z-index: 1;
    opacity: 0;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card:hover::before {
    animation: shine 1.5s ease;
    opacity: 1;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* 3. 按钮科技感特效 */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 
        0 4px 12px rgba(255, 103, 0, 0.3),
        0 0 20px rgba(255, 103, 0, 0.1);
    transform: translateY(-3px) scale(1.02);
}

/* 4. 导航栏科技感特效 */
.header {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: all 0.3s ease;
}

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

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 103, 0, 0.5);
}

/* 5. 分类卡片科技感特效 */
.category-item {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 103, 0, 0) 0%,
        rgba(255, 103, 0, 0.05) 100%
    );
    z-index: 0;
    transition: all 0.4s ease;
}

.category-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(255, 103, 0, 0.15);
}

.category-icon {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.category-item:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(255, 103, 0, 0.3);
}

/* 6. 统计数字科技感特效 */
.stat-item {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 103, 0, 0) 0%,
        rgba(255, 103, 0, 0.05) 100%
    );
    z-index: 0;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(255, 103, 0, 0.1);
}

.stat-number {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.stat-item:hover .stat-number {
    text-shadow: 0 0 15px rgba(255, 103, 0, 0.6);
    transform: scale(1.1);
}

/* 7. 滚动科技感特效 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 8. 服务项目科技感特效 */
.service-item {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 103, 0, 0) 0%,
        rgba(255, 103, 0, 0.05) 100%
    );
    z-index: 0;
    transition: all 0.4s ease;
}

.service-item:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 
        0 18px 36px rgba(0, 0, 0, 0.1),
        0 0 25px rgba(255, 103, 0, 0.1);
}

.service-icon {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(255, 103, 0, 0.3);
}



/* 10. 加载动画 */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 103, 0, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* 11. 科技感边框 */
.tech-border {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.tech-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        var(--primary-color),
        transparent,
        var(--primary-color)
    );
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    transition: all 0.3s ease;
}

.tech-border:hover::before {
    opacity: 1;
    animation: border-shine 2s linear infinite;
}

@keyframes border-shine {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 300% 300%;
    }
}



/* 13. 响应式设计 */
@media (max-width: 768px) {
    .tech-bg::before {
        background-size: 30px 30px;
    }
    
    .product-card:hover {
        transform: translateY(-8px);
    }
    
    .category-item:hover {
        transform: translateY(-10px);
    }
    
    .service-item:hover {
        transform: translateY(-8px);
    }
}