/* ===== 全局样式 ===== */
:root {
    /* 主色调 */
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #3399ff;
    
    /* 科技蓝 */
    --tech-blue: #00d4ff;
    --tech-dark: #0099cc;
    
    /* 中性色 */
    --dark: #0a0f1a;
    --dark-light: #1a1f2e;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --white: #ffffff;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    --gradient-dark: linear-gradient(135deg, #0a0f1a 0%, #1a1f2e 100%);
    --gradient-glow: linear-gradient(135deg, #0066ff 0%, #00d4ff 50%, #0066ff 100%);
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(0, 102, 255, 0.3);
    
    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 15, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 15, 26, 0.98);
    box-shadow: var(--shadow-lg);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
    background: var(--gradient-primary);
}

.nav-cta {
    display: flex;
    align-items: center;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* ===== 英雄区域 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    background: var(--gradient-dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--dark) 70%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(0, 102, 255, 0.08) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tech-blue);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 100px;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--white);
}

.title-line {
    display: block;
}

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

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--tech-blue);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    letter-spacing: 2px;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--tech-blue);
    border-radius: 2px;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.5; }
}

/* ===== 通用区域样式 ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(0, 102, 255, 0.1);
    border-radius: 100px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-desc {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.7;
}

/* ===== 核心优势 ===== */
.features {
    background: var(--gray-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 20px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
}

/* ===== 业务概览 ===== */
.services-preview {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-light);
}

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

.service-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-icon {
    font-size: 48px;
    filter: grayscale(100%) brightness(100);
    opacity: 0.9;
}

.service-content {
    padding: 24px;
}

.service-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-content p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.service-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* ===== 案例展示 ===== */
.projects-preview {
    background: var(--gray-light);
}

.projects-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    gap: 12px;
}

.project-placeholder span {
    font-size: 48px;
}

.project-placeholder p {
    font-size: 14px;
    opacity: 0.7;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(10, 15, 26, 0.95), transparent);
    transform: translateY(60%);
    transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tech-blue);
    background: rgba(0, 212, 255, 0.2);
    border-radius: 4px;
    margin-bottom: 8px;
}

.project-overlay h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.project-overlay p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.projects-cta {
    text-align: center;
    margin-top: 40px;
}

/* ===== 合作伙伴 ===== */
.partners {
    background: var(--white);
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-item {
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray);
    background: var(--gray-light);
    border-radius: 12px;
    transition: var(--transition-fast);
}

.partner-item:hover {
    color: var(--primary);
    background: rgba(0, 102, 255, 0.1);
}

/* ===== 联系我们CTA ===== */
.contact-cta {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    font-size: 32px;
}

.footer-logo .logo-text {
    font-size: 22px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-item span {
    font-size: 18px;
}

.contact-item p {
    font-size: 15px;
    line-height: 1.6;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--primary-light);
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .features-grid,
    .services-grid,
    .projects-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 280px;
        height: 100vh;
        background: #0a0f1a;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        padding-bottom: 40px;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -4px 0 20px rgba(0,0,0,0.5);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
        display: flex;
    }

    .nav-links a {
        font-size: 16px;
        padding: 14px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        width: 100%;
        text-align: left;
    }

    .nav-links a:hover {
        background: rgba(0,102,255,0.15);
        color: #00d4ff;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hamburger span {
        background: #ffffff;
    }

    /* 遮罩层 */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.6);
        z-index: 999;
    }
    
    .hero {
        padding: 100px 20px 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .features-grid,
    .services-grid,
    .projects-slider {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-desc {
        font-size: 15px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .partners-grid {
        gap: 20px;
    }
    
    .partner-item {
        padding: 16px 24px;
        font-size: 16px;
    }

    /* ===== 页面头部 - 移动端适配 ===== */
    .page-header {
        padding: 90px 16px 50px;
    }
    .page-header h1 {
        font-size: 30px;
    }
    .page-header p {
        font-size: 14px;
    }

    /* ===== 产品中心/案例 - 移动端网格 ===== */
    .products-3col,
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .product-card {
        border-radius: 12px;
    }
    .product-card [style*="padding:24px"] {
        padding: 16px !important;
    }
    .product-card h3 {
        font-size: 16px !important;
    }
    .product-card p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
    .product-card [style*="font-size:56px"] {
        font-size: 40px !important;
        height: 120px !important;
    }
    .product-card [style*="height:160px"] {
        height: 120px !important;
    }

    /* ===== 案例卡片 ===== */
    .case-card {
        border-radius: 12px;
        overflow: hidden;
    }

    /* ===== 联系表单 - 移动端 ===== */
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 24px;
    }
    .section-badge {
        font-size: 12px;
        padding: 4px 12px;
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== 公用样式（其他页面） ===== */
.page-header {
    background: var(--gradient-dark);
    padding: 140px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 40%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 表单样式 ===== */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 24px;
    }
}