/* 页面专属动态效果样式 */

/* 通用基础样式 */
.page-effect-active {
    overflow-x: hidden;
    /* 保留垂直滚动，只隐藏水平滚动条 */
}

/* 下载页面特殊处理，确保可以滚动 */
body.download-page-effects {
    overflow-y: auto !important;
    height: auto !important;
}

html.download-page-effects {
    overflow-y: auto !important;
    height: auto !important;
}

/* ==================== 产品服务页面 - 科技感立体动效 ==================== */
.products-page-effects {
    position: relative;
}

/* 科技网格背景 */
.tech-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(52, 152, 219, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(52, 152, 219, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: techGridMove 20s linear infinite;
}

@keyframes techGridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* 产品卡片3D效果 */
.product-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.product-item:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 25px 50px rgba(52, 152, 219, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 发光边框效果 */
.product-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3498db, #2ecc71, #e74c3c, #f39c12);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradientShift 3s ease infinite;
}

.product-item:hover::before {
    opacity: 1;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 图标旋转动画 */
.solution-icon {
    transition: all 0.5s ease;
}

.product-item:hover .solution-icon {
    transform: rotateY(360deg) scale(1.1);
}

.solution-icon i {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(52, 152, 219, 0.3));
}

/* ==================== 新闻资讯页面 - 纸媒流动动效 ==================== */
.news-page-effects {
    position: relative;
}

/* 飞舞的纸张效果 */
.paper-float {
    position: fixed;
    width: 12px;
    height: 12px;
    background: rgba(236, 240, 241, 0.8);
    border-radius: 2px;
    z-index: -1;
    animation: paperFloat 15s infinite linear;
}

@keyframes paperFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(200px) rotate(360deg);
        opacity: 0;
    }
}

/* 新闻卡片翻页效果 */
.news-item {
    position: relative;
    transition: all 0.6s ease;
    transform-style: preserve-3d;
}

.news-item:hover {
    transform: rotateY(5deg) translateZ(20px);
}

.news-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(52, 152, 219, 0.1) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.news-item:hover::after {
    opacity: 1;
}

/* 阅读进度条 */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    z-index: 1000;
    transition: width 0.3s ease;
}

/* 文字浮现效果 */
.news-item h3 {
    overflow: hidden;
}

.news-item h3::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* ==================== 下载中心页面 - 云端下载动效 ==================== */
.download-page-effects {
    position: relative;
    /* 确保页面可以正常滚动 */
    overflow-y: visible;
    min-height: 100vh;
}

/* 浮动云朵背景 */
.cloud-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    opacity: 0.6;
    animation: cloudFloat linear infinite;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
}

.cloud::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud::after {
    width: 60px;
    height: 60px;
    top: -35px;
    right: 10px;
}

@keyframes cloudFloat {
    0% {
        transform: translateX(-200px);
    }
    100% {
        transform: translateX(calc(100vw + 200px));
    }
}

/* ==================== 联系我们页面 - 连接网络动效 ==================== */
.contact-page-effects {
    position: relative;
}

/* 网络连接背景 */
.network-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 连接节点 */
.network-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(52, 152, 219, 0.8);
    border-radius: 50%;
    animation: nodeFloat 8s ease-in-out infinite;
}

@keyframes nodeFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -20px); }
    50% { transform: translate(-20px, 30px); }
    75% { transform: translate(20px, 20px); }
}

/* 连接线 */
.network-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.3), transparent);
    animation: lineConnect 3s ease-in-out infinite;
}

@keyframes lineConnect {
    0%, 100% { 
        opacity: 0.3;
        transform: scaleX(0.5);
    }
    50% { 
        opacity: 0.8;
        transform: scaleX(1);
    }
}

/* 联系表单增强 */
.contact-form-container {
    position: relative;
}

.form-group input:focus,
.form-group textarea:focus {
    animation: inputGlow 0.3s ease;
    box-shadow: 
        0 0 0 3px rgba(52, 152, 219, 0.2),
        0 0 20px rgba(52, 152, 219, 0.1);
}

@keyframes inputGlow {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.5); }
    100% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
}

/* 提交按钮脉冲效果 */
.form-btn {
    position: relative;
    overflow: hidden;
}

.form-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.form-btn:hover::after {
    width: 300px;
    height: 300px;
}

/* 在线客服气泡样式已删除 */

/* 响应式适配 */
@media (max-width: 768px) {
    .tech-grid-bg {
        background-size: 30px 30px;
    }
    
    .product-item:hover {
        transform: translateY(-10px) rotateX(3deg) rotateY(3deg);
    }
    
    .matrix-column {
        font-size: 12px;
    }
    
    /* 在线客服气泡响应式样式已删除 */
}

/* 性能优化 */
.page-effects-container {
    will-change: transform;
    transform: translateZ(0);
}

/* 减少动画复杂度的媒体查询 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}