/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00A0E9;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

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

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2563eb;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主页横幅 */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* 科技感背景效果 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 15s linear infinite;
    opacity: 0.3;
}

/* 粒子效果 */
.hero .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero .particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

.hero .particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.hero .particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.hero .particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.hero .particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.hero .particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.hero .particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.hero .particle:nth-child(7) { left: 70%; animation-delay: 6s; }
.hero .particle:nth-child(8) { left: 80%; animation-delay: 7s; }
.hero .particle:nth-child(9) { left: 90%; animation-delay: 0.5s; }
.hero .particle:nth-child(10) { left: 15%; animation-delay: 1.5s; }
.hero .particle:nth-child(11) { left: 25%; animation-delay: 2.5s; }
.hero .particle:nth-child(12) { left: 35%; animation-delay: 3.5s; }
.hero .particle:nth-child(13) { left: 45%; animation-delay: 4.5s; }
.hero .particle:nth-child(14) { left: 55%; animation-delay: 5.5s; }
.hero .particle:nth-child(15) { left: 65%; animation-delay: 6.5s; }

/* 动画定义 */
@keyframes backgroundShift {
    0%, 100% { 
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.8;
    }
    25% { 
        transform: translateX(-10px) translateY(-10px) scale(1.05);
        opacity: 0.9;
    }
    50% { 
        transform: translateX(10px) translateY(-5px) scale(0.95);
        opacity: 0.7;
    }
    75% { 
        transform: translateX(-5px) translateY(10px) scale(1.02);
        opacity: 0.85;
    }
}

@keyframes gridMove {
    0% { 
        transform: translateX(0) translateY(0);
    }
    100% { 
        transform: translateX(50px) translateY(50px);
    }
}

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

/* 确保内容在背景之上 */
.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-website {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.hero-website i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.hero-website a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.hero-website a:hover {
    color: #ffed4e;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
}

.hero-image {
    position: relative;
    height: 400px;
    width: 100%;
    margin-top: 2rem;
}

/* 移动端优化背景效果 */
.hero::before {
    animation: backgroundShift 30s ease-in-out infinite;
}

.hero::after {
    background-size: 30px 30px;
    animation: gridMove 25s linear infinite;
    opacity: 0.2;
}

/* 移动端减少粒子数量 */
.hero .particle:nth-child(n+8) {
    display: none;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.2rem;
    text-align: center;
    color: white;
    animation: float 8s ease-in-out infinite;
    min-width: 100px;
    max-width: 120px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-card:nth-child(1)  { top: 6%;  right: 72%;  animation-delay: 0s; }
.floating-card:nth-child(2)  { top: 6%;  right: 40%; animation-delay: 0.5s; }
.floating-card:nth-child(3)  { top: 6%;  right: 8%; animation-delay: 1s; }

.floating-card:nth-child(4)  { top: 30%; right: 72%;  animation-delay: 1.5s; }
.floating-card:nth-child(5)  { top: 30%; right: 40%; animation-delay: 2s; }
.floating-card:nth-child(6)  { top: 30%; right: 8%; animation-delay: 2.5s; }

.floating-card:nth-child(7)  { top: 54%; right: 72%;  animation-delay: 3s; }
.floating-card:nth-child(8)  { top: 54%; right: 40%; animation-delay: 3.5s; }
.floating-card:nth-child(9)  { top: 54%; right: 8%; animation-delay: 4s; }

.floating-card:nth-child(10) { top: 78%; right: 72%;  animation-delay: 4.5s; }
.floating-card:nth-child(11) { top: 78%; right: 40%; animation-delay: 5s; }
.floating-card:nth-child(12) { top: 78%; right: 8%; animation-delay: 5.5s; }

.floating-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.floating-card h3 {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-15px) rotate(1deg); 
    }
    50% { 
        transform: translateY(-25px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-15px) rotate(-1deg); 
    }
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.0rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.about-text p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-text ul {
    list-style: none;
}

.about-text li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #64748b;
}

.about-text li i {
    color: #10b981;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-weight: 500;
}

/* 服务 */
.services {
    padding: 100px 0;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.service-card li {
    color: #64748b;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.service-card li::before {
    content: "•";
    color: #2563eb;
    position: absolute;
    left: 0;
}

/* 成功案例 */
.projects {
    padding: 100px 0;
    background: #f8fafc;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-header i {
    font-size: 2rem;
    color: #2563eb;
    margin-right: 1rem;
}

.project-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
}

.project-clients {
    margin-bottom: 1.5rem;
}

.project-clients h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.client-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.client-tags span {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-card p {
    color: #64748b;
    line-height: 1.6;
}

/* 合作客户 */
.clients {
    padding: 100px 0;
}

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

.client-category {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.client-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.client-list {
    display: grid;
    gap: 1rem;
}

.client-item {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: #374151;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.client-item:hover {
    background: #2563eb;
    color: white;
    transform: translateX(5px);
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #2563eb;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #64748b;
    line-height: 1.6;
}

.contact-details a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* 电话号码保护样式 */
.phone-number {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: color 0.3s ease;
}

.phone-number:hover {
    color: #2563eb;
}

.phone-part {
    position: relative;
    display: inline-block;
}

.phone-part::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2563eb;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.phone-number:hover .phone-part::after {
    transform: scaleX(1);
}

/* 地图占位符样式 */
.contact-map {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    text-align: center;
    color: #64748b;
}

.map-placeholder i {
    font-size: 4rem;
    color: #2563eb;
    margin-bottom: 1.5rem;
}

.map-placeholder h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.map-placeholder p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.map-info {
    margin-top: 2rem;
    text-align: left;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
}

.info-item i {
    color: #2563eb;
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 20px;
}

.info-item span {
    color: #374151;
    font-weight: 500;
}

/* 页脚 */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.6;
}

.footer-website {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    color: #cbd5e1;
}

.footer-website i {
    margin-right: 0.5rem;
}

.footer-website a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.footer-website a:hover {
    text-decoration: underline;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.footer-section li i {
    margin-right: 0.5rem;
    color: #60a5fa;
    width: 16px;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #cbd5e1;
}

.footer-bottom a {
    color: #60a5fa;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.0rem;
        margin-top: 2.0rem;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .hero-image {
        height: 400px;
        margin-top: 2rem;
    }
    
    /* 移动端只显示前8个核心服务卡片 */
    /* .floating-card:nth-child(n+9) {
        display: none;
    } */
    
    .floating-card i {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .floating-card h3 {
        font-size: 0.7rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .client-tags {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section li {
        justify-content: center;
    }
} 