/* 全局样式 */
:root {
    --primary-color: #00e676; /* 亮绿色 */
    --primary-dark: #00c853; /* 深绿色 */
    --secondary-color: #1a1a1a; /* 近黑色 */
    --text-color: #f5f5f5; /* 浅灰白色文字 */
    --text-dark: #121212; /* 深色文字 */
    --bg-color: #121212; /* 深色背景 */
    --card-bg: #1e1e1e; /* 卡片背景 */
    --gradient-primary: linear-gradient(135deg, #00e676 0%, #00c853 100%); /* 绿色渐变 */
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #121212 100%); /* 黑色渐变 */
    --shadow: 0 4px 20px rgba(0, 230, 118, 0.15); /* 绿色阴影 */
    --transition: all 0.3s ease; /* 全局过渡效果 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-dark);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 230, 118, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 24px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 230, 118, 0.1);
    padding: 15px 0;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

/* 英雄区域样式 */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-dark);
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 230, 118, 0.05) 0%, transparent 50%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
    position: relative;
    z-index: 10; /* 添加z-index确保按钮在其他元素上方 */
}

.hero-image {
    flex: 1;
    position: relative;
    height: 400px;
}

.tech-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(0, 230, 118, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 3s infinite alternate;
}

.tech-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(rgba(0, 230, 118, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.ai-brain-animation {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300e676"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5-9h10v2H7z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    animation: rotate 10s linear infinite;
}

/* 服务区域样式 */
.services {
    padding: 100px 0;
    background-color: var(--bg-color);
    position: relative;
}

.services:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(0, 230, 118, 0.05) 0%, transparent 50%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(0, 230, 118, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-card:hover:before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.service-features {
    margin-bottom: 25px;
}

.service-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.service-features li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 14px;
}

/* 技术优势样式 */
.tech-advantage {
    padding: 100px 0;
    background-color: var(--secondary-color);
    position: relative;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background: var(--card-bg);
    transition: var(--transition);
    border: 1px solid rgba(0, 230, 118, 0.1);
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.advantage-item p {
    opacity: 0.8;
}

/* 客户案例样式 */
.case-studies {
    padding: 100px 0;
    background-color: var(--bg-color);
    position: relative;
}

.case-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.case-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.case-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    scroll-snap-align: start;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 230, 118, 0.1);
    transition: var(--transition);
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.case-content {
    padding: 30px;
}

.case-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.case-content p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.case-meta {
    display: flex;
    gap: 15px;
}

.case-industry,
.case-service {
    font-size: 14px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(0, 230, 118, 0.1);
    color: var(--primary-color);
}

.case-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.case-nav-prev,
.case-nav-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0, 230, 118, 0.1);
}

.case-nav-prev:hover,
.case-nav-next:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

/* 号召行动样式 */
.cta {
    padding: 100px 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 230, 118, 0.05) 0%, transparent 50%);
}

.cta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 5; /* 添加z-index确保内容在背景上方 */
}

.cta-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 10; /* 添加z-index确保内容在其他元素上方 */
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-content .btn {
    margin-right: 15px;
}

.cta-image {
    flex: 1;
    position: relative;
    height: 300px;
}

/* 页脚样式 */
footer {
    background-color: var(--secondary-color);
    padding: 80px 0 20px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

.footer-links h4,
.footer-contact h4,
.footer-newsletter h4 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 12px;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
}

.footer-contact ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.footer-newsletter {
    position: relative;
    z-index: 5; /* 确保不会遮挡其他重要元素 */
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
    position: relative;
    z-index: 5; /* 确保不会遮挡其他重要元素 */
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px 0 0 30px;
    color: var(--text-color);
    font-size: 14px;
    outline: none;
}

.newsletter-form button {
    border-radius: 0 30px 30px 0;
    padding: 12px 20px;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 14px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .cta .container {
        flex-direction: column;
        text-align: center;
    }

    .cta-content {
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    .logo h1 {
        font-size: 24px;
    }

    nav ul {
        display: none; /* 移动端导航将通过JS控制显示 */
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .services-grid,
    .advantage-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .case-item {
        flex: 0 0 calc(100% - 30px);
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        position: relative;
        z-index: 10; /* 确保在移动端也有足够高的z-index */
    }

    .btn {
        width: 100%;
        position: relative;
        z-index: 10; /* 确保按钮本身也有足够高的z-index */
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 30px;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: 30px;
        width: 100%;
    }
}

/* 微信二维码弹出层样式 */
.qr-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-modal.show {
    display: block;
    opacity: 1;
}

.qr-modal-content {
    background-color: var(--secondary-color);
    margin: 15% auto;
    padding: 30px;
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    width: 80%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.qr-modal.show .qr-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.qr-close {
    color: var(--text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.qr-close:hover {
    color: var(--primary-color);
}

.qr-modal h3 {
    margin: 15px 0;
    color: var(--primary-color);
}

.qr-image {
    margin: 20px auto;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    width: 230px;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-modal p {
    margin-top: 15px;
    color: var(--text-color);
    opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .qr-modal-content {
        width: 90%;
        margin: 30% auto;
        padding: 20px;
    }
    
    .qr-image {
        width: 200px;
        height: 200px;
    }
}