/* 基础样式重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #3385FF;
    --secondary: #00D4AA;
    --accent: #FF6B35;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-light: #8a8aa3;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-dark: #0a0a1a;
    --gradient-1: linear-gradient(135deg, #0066FF 0%, #00D4AA 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
}

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

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero 区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
}

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

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 102, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 500;
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 24px;
}

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

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

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

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

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

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

.btn-block {
    width: 100%;
}

/* AI 大脑视觉 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-brain-visual {
    width: 400px;
    height: 400px;
    position: relative;
}

.brain-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(0, 102, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

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

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(0, 102, 255, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.orbit-1 {
    width: 160px;
    height: 160px;
    animation-duration: 15s;
}

.orbit-2 {
    width: 240px;
    height: 240px;
    animation-duration: 25s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 320px;
    height: 320px;
    animation-duration: 35s;
}

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

.particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.6);
}

.particle-1 {
    top: 20%;
    right: 10%;
    animation: float 3s ease-in-out infinite;
}

.particle-2 {
    bottom: 20%;
    left: 10%;
    animation: float 4s ease-in-out infinite 0.5s;
}

.particle-3 {
    top: 40%;
    left: 5%;
    animation: float 3.5s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 通用 section 样式 */
.section {
    padding: 100px 0;
}

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

.section-header.light {
    color: white;
}

.section-header.light .section-title,
.section-header.light .section-subtitle {
    color: white;
}

.section-tag {
    display: inline-block;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header.light .section-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* AI大脑 Section */
.section-brain {
    background: var(--bg-secondary);
}

.brain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.brain-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.brain-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.brain-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    background: var(--gradient-1);
    color: white;
}

.brain-card.featured .card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.brain-card.featured .card-title,
.brain-card.featured .card-desc,
.brain-card.featured .card-features li {
    color: white;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card-icon.blue {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
}

.card-icon.green {
    background: rgba(0, 212, 170, 0.1);
    color: var(--secondary);
}

.card-icon.purple {
    background: rgba(118, 75, 162, 0.1);
    color: #764ba2;
}

.brain-card.featured .card-icon.blue,
.brain-card.featured .card-icon.green,
.brain-card.featured .card-icon.purple {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.card-desc {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.card-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.card-features li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 16px;
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.sub-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sub-tag {
    font-size: 0.8rem;
    padding: 4px 12px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 50px;
}

/* 样板工厂 Section */
.section-factory {
    background: var(--bg-dark);
    position: relative;
}

.section-factory::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 50%, rgba(0, 212, 170, 0.1) 0%, transparent 40%);
}

.factory-content {
    position: relative;
    z-index: 1;
}

.factory-visual {
    margin-bottom: 64px;
}

.factory-image {
    max-width: 800px;
    margin: 0 auto;
}

.factory-placeholder {
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 212, 170, 0.2));
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 32px;
}

.factory-placeholder svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.factory-placeholder span {
    font-size: 1.25rem;
    font-weight: 500;
}

.factory-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.factory-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.option-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.option-card.online {
    border-color: rgba(0, 102, 255, 0.3);
}

.option-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-1);
    color: white;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.option-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 12px;
}

.option-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    line-height: 1.6;
}

.option-features {
    list-style: none;
    margin-bottom: 32px;
}

.option-features li {
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 0;
    font-size: 0.95rem;
    position: relative;
}

.option-features li::before {
    content: '✓';
    margin-right: 8px;
    color: var(--secondary);
}

/* 生态合作 Section */
.section-ecosystem {
    background: var(--bg-secondary);
}

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

.eco-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.eco-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}

.eco-icon svg {
    width: 32px;
    height: 32px;
}

.eco-icon.blue {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
}

.eco-icon.green {
    background: rgba(0, 212, 170, 0.1);
    color: var(--secondary);
}

.eco-icon.purple {
    background: rgba(118, 75, 162, 0.1);
    color: #764ba2;
}

.eco-card h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.eco-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.eco-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 12px;
    background: var(--bg-secondary);
    color: var(--text-light);
    border-radius: 50px;
}

.eco-cta {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

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

/* 联系我们 Section */
.section-contact {
    background: linear-gradient(135deg, #1a1a3e 0%, #2d2d5a 100%);
    position: relative;
}

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

.contact-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: white;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

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

.social-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.social-name {
    color: rgba(255, 255, 255, 0.8);
}

.social-id {
    color: white;
    font-weight: 500;
}

/* 联系表单 */
.contact-form-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8ecf4;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* 页脚 */
.footer {
    background: #0a0a1a;
    color: white;
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 32px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 48px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

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

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.beian {
    color: rgba(255, 255, 255, 0.4);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .ai-brain-visual {
        width: 300px;
        height: 300px;
    }
    
    .ecosystem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        display: block;
        padding: 16px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .brain-grid {
        grid-template-columns: 1fr;
    }
    
    .brain-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .factory-stats {
        grid-template-columns: 1fr;
    }
    
    .factory-options {
        grid-template-columns: 1fr;
    }
    
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

/* 动画 */
@media (prefers-reduced-motion: no-preference) {
    .brain-card,
    .eco-card,
    .contact-card,
    .option-card {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
    }
    
    .brain-card:nth-child(1) { animation-delay: 0.1s; }
    .brain-card:nth-child(2) { animation-delay: 0.2s; }
    .brain-card:nth-child(3) { animation-delay: 0.3s; }
    .brain-card:nth-child(4) { animation-delay: 0.4s; }
    
    .eco-card:nth-child(1) { animation-delay: 0.1s; }
    .eco-card:nth-child(2) { animation-delay: 0.2s; }
    .eco-card:nth-child(3) { animation-delay: 0.3s; }
    .eco-card:nth-child(4) { animation-delay: 0.4s; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
