/* 全局样式 */
:root {
    --primary-color: #3a86ff;
    --secondary-color: #00f5d4;
    --dark-color: #111827;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --hover-color: #4361ee;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --gradient-primary: linear-gradient(120deg, #3a86ff 0%, #00f5d4 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
    color: var(--text-color);
}

.section-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(58, 134, 255, 0.4);
    color: white;
}

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

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

/* 粒子背景 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header.scrolled .logo {
    display: flex;
    align-items: center;
}

header.scrolled #logo-img {
    height: 40px;
    margin-right: 15px;
}

header.scrolled .logo-text h1 {
    color: var(--text-color);
}

header.scrolled .logo-text p {
    color: var(--gray-color);
}

header.scrolled nav ul li a {
    color: var(--text-color);
}

header.scrolled nav ul li a::after {
    background: var(--gradient-primary);
}

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

.logo {
    display: flex;
    align-items: center;
}

#logo-img {
    height: 40px;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1;
}

.logo-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    letter-spacing: 2px;
    line-height: 1;
}

nav ul {
    display: flex;
    list-style: none;
}

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

nav ul li a {
    color: white;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: white;
    transition: width 0.3s ease;
}

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

nav ul li a.active {
    color: white;
    font-weight: 600;
}

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

/* 英雄区域 */
.home {
    padding: 0;
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#hero-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    object-fit: cover;
}

.home::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

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

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

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

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

.ai-brain {
    position: absolute;
    width: 90%;
    height: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url('https://cdn.pixabay.com/photo/2020/09/21/16/10/ai-5589968_1280.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: pulse 2s infinite alternate;
}

.circuit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://cdn.pixabay.com/photo/2017/09/08/20/29/neural-network-2730728_1280.png');
    background-size: cover;
    opacity: 0.3;
    animation: rotate 30s linear infinite;
}

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

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

/* 服务区域 */
.services {
    padding: 100px 0;
    background-color: white;
    position: relative;
}

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

.service-card {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('https://images.unsplash.com/photo-1696777406868-5258913ef41d') no-repeat center center;
    background-size: cover;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card:nth-child(2) {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('https://images.unsplash.com/photo-1625314868143-20e93ce3ff33') no-repeat center center;
    background-size: cover;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transition: height 0.3s ease;
    z-index: -1;
}

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

.service-card:hover::before {
    height: 100%;
    opacity: 0.05;
}

.service-card.animation-ready {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.service-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.service-details ul {
    list-style: none;
}

.service-details ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 25px;
}

.service-details ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.about-values {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.value-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

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

.value-item.animation-ready {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.value-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.value-icon {
    margin-bottom: 20px;
}

.value-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.value-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.value-item p {
    color: var(--gray-color);
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background-color: white;
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.contact-info {
    flex-basis: 45%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-social {
    flex-basis: 50%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item p {
    font-size: 1.1rem;
}

.contact-form {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.success-message {
    text-align: center;
    padding: 30px;
}

.success-message i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message p {
    font-size: 1.2rem;
    color: var(--text-color);
}

.social-qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-qr-code i {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 15px;
}

.social-qr-code p {
    margin-bottom: 10px;
    font-weight: 600;
}

.social-qr-code img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    padding: 5px;
    border-radius: 5px;
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 40px;
    margin-right: 15px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: white;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

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

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

.fade-in-animation {
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .home .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-content p {
        margin: 0 auto 40px;
    }
    
    .contact-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info, .contact-social {
        flex-basis: 100%;
        margin-bottom: 30px;
    }
    
    .contact-social {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .social-qr-code img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo-img {
        margin-right: 15px;
    }
    
    nav {
        display: none;
    }
}

/* 服务行业 */
.industries {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.industry-slider {
    overflow: hidden; /* 隐藏超出部分 */
    position: relative; /* 用于可能的伪元素遮罩 */
    width: 100%;
    /* 移除手动滚动条相关样式 */
    /* padding: 20px 0; */
    /* scrollbar-width: thin; */
    /* scrollbar-color: var(--primary-color) #e0e0e0; */
}

/* 移除 Webkit 滚动条样式 */
/* .industry-slider::-webkit-scrollbar { ... } */

.industry-track {
    display: flex;
    gap: 30px;
    /* 总宽度 = (单个项目宽度 + gap) * 总项目数 */
    /* (250px + 30px) * 10 = 2800px */
    width: calc((250px + 30px) * 10);
    animation: scrollAnimation 30s linear infinite;
}

.industry-item {
    flex: 0 0 250px; /* 设置固定宽度 */
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

/* 悬停时暂停动画 */
.industry-slider:hover .industry-track {
    animation-play-state: paused;
}

.industry-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.industry-name {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
}

/* 定义滚动动画 */
@keyframes scrollAnimation {
    0% {
        transform: translateX(0);
    }
    100% {
        /* 移动一个原始列表的宽度 */
        transform: translateX(calc(-1 * (250px + 30px) * 5));
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .industry-track {
        /* 重新计算宽度 */
        width: calc((200px + 30px) * 10);
        animation-duration: 25s; /* 可选：调整小屏幕动画速度 */
    }
    .industry-item {
        flex: 0 0 200px;
    }
    .industry-item img {
        height: 150px;
    }
    @keyframes scrollAnimation {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-1 * (200px + 30px) * 5));
        }
    }
} 