/* 科技效果和动画样式 */

/* 全局动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(0, 118, 209, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 118, 209, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 118, 209, 0.3);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* 页面整体背景 */
body {
    background: linear-gradient(135deg, #f8fffe 0%, #f0f8f5 50%, #f5f9f7 100%);
    min-height: 100vh;
}

/* 粒子背景效果 */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 20% 80%, rgba(129, 199, 132, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(102, 187, 106, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(0, 118, 209, 0.03) 0%, transparent 50%);
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat 8s infinite linear;
    opacity: 0.6;
}

/* 不同类型的粒子 */
.particle.type-1 {
    width: 3px;
    height: 3px;
    background: rgba(129, 199, 132, 0.4);
}

.particle.type-2 {
    width: 2px;
    height: 2px;
    background: rgba(102, 187, 106, 0.3);
}

.particle.type-3 {
    width: 4px;
    height: 4px;
    background: rgba(0, 118, 209, 0.2);
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
        transform: translateY(50vh) translateX(20px) rotate(180deg);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(-20px) rotate(360deg);
        opacity: 0;
    }
}

/* 添加缓慢漂浮的大粒子 */
@keyframes particleFloatSlow {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(-15px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-30px) translateX(5px);
        opacity: 0.5;
    }
}

.particle.slow {
    animation: particleFloatSlow 12s infinite ease-in-out;
    position: fixed;
}

/* 头部导航动画 */
.header {
    animation: slideInFromTop 1s ease-out;
}

.logo1 {
    transition: all 0.3s ease;
}

.logo1:hover {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(1.2);
}

/* 轮播图增强效果 */
.swiper-container {
    position: relative;
    overflow: hidden;
}

.swiper-slide img {
    transition: all 0.5s ease;
    filter: brightness(0.9);
}

.swiper-slide:hover img {
    filter: brightness(1.1) contrast(1.1);
    transform: scale(1.02);
}

/* 研发方向卡片动画 */
.research-item-animate {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.research-item-animate:nth-child(1) {
    animation-delay: 0.1s;
}

.research-item-animate:nth-child(2) {
    animation-delay: 0.2s;
}

.research-item-animate:nth-child(3) {
    animation-delay: 0.3s;
}

.research-item-animate:nth-child(4) {
    animation-delay: 0.4s;
}

.research-item {
    position: relative;
    overflow: hidden;
}

/* 移除研发方向的额外悬浮效果，避免冲突 */

/* 主要产品卡片效果 */
.technology-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.technology-item:hover {
    border-left: 3px solid #0076d1;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.technology-name {
    position: relative;
    transition: all 0.3s ease;
}

.technology-item:hover .technology-name {
    color: #0076d1;
}

/* 研发内容卡片动画 */
.content-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    transition: all 0.3s ease;
    position: relative;
}

.content-item:nth-child(1) {
    animation-delay: 0.1s;
}

.content-item:nth-child(2) {
    animation-delay: 0.2s;
}

.content-item:nth-child(3) {
    animation-delay: 0.3s;
}

.content-item:nth-child(4) {
    animation-delay: 0.4s;
}

.content-item:hover {
    transform: translateY(-10px);
}

.content-item .content-img {
    transition: all 0.3s ease;
}

.content-item:hover .content-img {
    animation: pulse 1s ease-in-out infinite;
}

/* 数字统计动画增强 */
.number-item {
    position: relative;
    transition: all 0.3s ease;
}

.number-item:hover {
    animation: glow 2s ease-in-out infinite;
    transform: scale(1.05);
}

.number-inner {
    transition: all 0.3s ease;
}

.number-item:hover .number-inner {
    color: #0076d1;
    text-shadow: 0 0 10px rgba(0, 118, 209, 0.5);
}

/* 公司介绍区域动画 */
.introduce {
    position: relative;
    overflow: hidden;
}

.introduce::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 118, 209, 0.1) 0%, transparent 50%, rgba(0, 118, 209, 0.1) 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.introduce-container {
    opacity: 0;
    animation: fadeInLeft 1s ease-out forwards;
}

.introduce-container:nth-child(2) {
    animation-delay: 0.2s;
}

.introduce-container:nth-child(3) {
    animation-delay: 0.4s;
}

.introduce-container:nth-child(4) {
    animation-delay: 0.6s;
}

/* 合作伙伴logo动画 */
.zulogo img {
    transition: all 0.3s ease;
}

.zulogo img:hover {
    transform: scale(1.1);
}

/* 返回顶部按钮动画 */
.toTop {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.toTop:hover {
    opacity: 1;
    transform: scale(1.1);
    animation: pulse 1s ease-in-out infinite;
}

/* 标题动画效果 */
.research-name {
    position: relative;
    transition: all 0.3s ease;
}

.research-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0076d1, #317E44);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.research-top:hover .research-name::after {
    width: 100%;
}

/* 响应式动画调整 */
@media (max-width: 768px) {
    .research-item-animate,
    .content-item {
        animation-duration: 0.5s;
    }
    
    .particle {
        display: none;
    }
    
    .content-item:hover {
        transform: none;
    }
}

/* 滚动触发动画类 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 科技线条装饰 */
.tech-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #0076d1, transparent);
    height: 1px;
    width: 100px;
    animation: techLineMove 3s linear infinite;
}

@keyframes techLineMove {
    0% {
        left: -100px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.tech-line:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.tech-line:nth-child(2) {
    top: 40%;
    animation-delay: 1s;
}

.tech-line:nth-child(3) {
    top: 60%;
    animation-delay: 2s;
}

.tech-line:nth-child(4) {
    top: 80%;
    animation-delay: 0.5s;
}

/* 页面加载动画 */
body {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

body.page-loaded {
    opacity: 1;
}

/* 科技感边框效果 */
.tech-border {
    position: relative;
    border: 1px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #0076d1, #317E44) border-box;
}

/* 数据流动画 */
.data-flow {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, #0076d1, transparent);
    animation: dataFlow 2s linear infinite;
}

@keyframes dataFlow {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* 全息效果 */
.hologram-effect {
    position: relative;
    background: linear-gradient(45deg, rgba(0, 118, 209, 0.1), rgba(49, 126, 68, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hologram-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(0, 118, 209, 0.1) 2px,
        rgba(0, 118, 209, 0.1) 4px
    );
    animation: hologramScan 2s linear infinite;
}

@keyframes hologramScan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
