/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Microsoft YaHei', 'Heiti SC', sans-serif;
}

/* 深色模式核心样式 - 强化对比度 */
body {
    background-color: #050810; /* 更深的底色，突出特效 */
    color: #f1f5f9; /* 更亮的文字，提升可读性 */
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* ========== AI网格背景（保留，无冲突） ========== */
.ai-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ai-grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4));
    z-index: -1; /* 调整为-1，避免遮挡 */
}

/* 导航栏样式（强化滚动效果） */
.nav {
    width: 100%;
    background-color: rgba(17, 24, 39, 0.85);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 20px rgba(6, 182, 212, 0.2);
    transition: background-color 0.5s ease, padding 0.5s ease, box-shadow 0.5s ease;
}

.nav.scrolled {
    background-color: rgba(17, 24, 39, 0.98);
    padding: 0.8rem 2rem;
    box-shadow: 0 4px 30px rgba(6, 182, 212, 0.35);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #06b6d4; 
    text-decoration: none;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.8);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-list li a {
    color: #f1f5f9;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
    position: relative;
}

.nav-list li a:hover {
    color: #06b6d4;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #06b6d4;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.8);
    transition: width 0.3s ease;
}

.nav-list li a:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: #06b6d4;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
    font-size: 1.8rem;
    cursor: pointer;
}

/* 首屏Banner（修复层级，文字正常显示） */
.banner {
    margin-top: 80px;
    width: 100%;
    height: 85vh;
    background: linear-gradient(135deg, #0f172a 0%, #050810 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Banner光效扫过 */
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(6, 182, 212, 0.4),
        transparent);
    animation: light-sweep 6s infinite linear;
    z-index: 1;
}

@keyframes light-sweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* 核心：Banner内容层级置顶 */
.banner-content {
    position: relative;
    z-index: 10;
}

.banner-content h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 0 0 25px rgba(6, 182, 212, 0.7);
}

.banner-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: #f1f5f9;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
    max-width: 800px;
}

.banner-btn {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.btn-primary {
    background-color: #06b6d4;
    color: #fff;
    animation: glow-pulse 3s infinite ease-in-out;
}

.btn-primary:hover {
    background-color: #0891b2;
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.8);
}

.btn-secondary {
    background-color: transparent;
    color: #06b6d4;
    border: 2px solid #06b6d4;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(6, 182, 212, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.8);
}

/* AI发光圆（作为背景，不遮挡文字） */
.banner-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.ai-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, rgba(16, 23, 42, 0) 70%);
    animation: glow-pulse 6s infinite ease-in-out;
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.4);
}

@keyframes glow-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* 通用容器样式 */
.container {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* 通用标题样式 */
.section-title {
    font-size: 2.5rem;
    color: #06b6d4; 
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.7);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.8);
    border-radius: 2px;
}

/* 关于我们样式 */
.about {
    padding: 3rem 0;
}

.about p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: #f1f5f9;
    line-height: 1.8;
    text-shadow: 0 0 5px rgba(6, 182, 212, 0.1);
}

/* 产品服务样式 */
.product {
    padding: 5rem 0;
    background-color: rgba(17, 24, 39, 0.8);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(2px);
}

.product-desc {
    font-size: 1.2rem;
    color: #f1f5f9;
    margin-bottom: 4rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-item {
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.8s ease, height 0.8s ease;
}

.product-item:hover::before {
    width: 500px;
    height: 500px;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(6, 182, 212, 0.3);
    filter: brightness(1.15);
    border-color: rgba(6, 182, 212, 0.3);
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.product-intro {
    color: #f8fafc;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* 12项产品配色 */
.item1 {background-color: #06b6d4;}   
.item2 {background-color: #8b5cf6;}   
.item3 {background-color: #10b981;}   
.item4 {background-color: #f59e0b;}   
.item5 {background-color: #ec4899;}   
.item6 {background-color: #3b82f6;}   
.item7 {background-color: #14b8a6;}   
.item8 {background-color: #a855f7;}   
.item9 {background-color: #f97316;}   
.item10 {background-color: #ef4444;}  
.item11 {background-color: #6366f1;}  
.item12 {background-color: #059669;}  

/* 技术实力样式 */
.tech {
    padding: 3rem 0;
}

.tech p {
    font-size: 1.15rem;
    color: #f1f5f9;
    line-height: 1.8;
    background-color: rgba(30, 41, 59, 0.8);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    backdrop-filter: blur(2px);
}

/* 成功案例样式 */
.case {
    padding: 5rem 0;
    background-color: rgba(17, 24, 39, 0.8);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(2px);
}

.case-placeholder {
    width: 100%;
    height: 450px;
    background-color: rgba(30, 41, 59, 0.8);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #06b6d4;
    font-size: 1.3rem;
    margin-top: 2rem;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
    text-align: center;
    padding: 2rem;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* 联系我们样式 */
.contact {
    padding: 3rem 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.15rem;
    color: #f1f5f9;
    background-color: rgba(30, 41, 59, 0.8);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4);
    border-color: rgba(6, 182, 212, 0.5);
    background-color: rgba(30, 41, 59, 0.9);
}

.contact-item span {
    margin-left: 0.5rem;
    text-shadow: 0 0 5px rgba(6, 182, 212, 0.2);
}

/* 在线咨询悬浮按钮 */
.online-service {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 70px;
    height: 70px;
    background-color: #06b6d4;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 6px 30px rgba(6, 182, 212, 0.7);
    cursor: pointer;
    z-index: 998;
    transition: all 0.3s ease;
    animation: glow-pulse 3s infinite ease-in-out;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.online-service:hover {
    transform: scale(1.2);
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 呼吸辉光动画 */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.5); }
    50% { box-shadow: 0 0 40px rgba(6, 182, 212, 0.9); }
}

/* 底部版权样式 */
.footer {
    width: 100%;
    background-color: rgba(17, 24, 39, 0.95);
    color: #e2e8f0;
    padding: 2.5rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(6, 182, 212, 0.3);
    margin-top: 5rem;
}

.footer p {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 5px rgba(6, 182, 212, 0.1);
}

/* 滚动动画样式 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
    animation: fade-in-glow 0.5s ease-out forwards;
}

@keyframes fade-in-glow {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.1); }
    100% { filter: brightness(1); }
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* 响应式适配 - Pad端 */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-info {
        grid-template-columns: 1fr;
    }
    .banner-content h1 {
        font-size: 2.8rem;
    }
    .banner-content p {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
}

/* 响应式适配 - 手机端 */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(17, 24, 39, 0.98);
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid rgba(6, 182, 212, 0.5);
    }

    .nav-list.show {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .banner {
        height: 75vh;
    }

    .banner-content h1 {
        font-size: 2.2rem;
    }

    .banner-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .banner-btn {
        flex-direction: column;
        width: 90%;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        padding: 0.9rem 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .ai-glow {
        width: 500px;
        height: 500px;
    }

    .case-placeholder {
        height: 350px;
    }

    .online-service {
        width: 60px;
        height: 60px;
        bottom: 2rem;
        right: 2rem;
    }
}