/* ====================
   基础变量与重置
   ==================== */
:root {
    --primary: #0066ff;
    --primary-light: #4d94ff;
    --accent: #00d4ff;
    --accent-2: #7c3aed;
    --dark: #0a0f1a;
    --dark-2: #111827;
    --dark-3: #1f2937;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: rgba(148, 163, 184, 0.15);
    --gradient-1: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    --gradient-2: linear-gradient(135deg, #7c3aed 0%, #00d4ff 100%);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

/* ====================
   粒子背景
   ==================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ====================
   导航栏
   ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: white;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
}

.logo-text {
    font-size: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

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

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

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

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

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

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

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

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary-light);
    background: rgba(0, 102, 255, 0.1);
}

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

.btn-full {
    width: 100%;
}

/* ====================
   Hero 区域
   ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

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

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

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

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.8;
}

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

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 4px;
}

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

.ai-core {
    position: relative;
    width: 360px;
    height: 360px;
}

.core-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 360px;
    height: 360px;
    animation: rotate 20s linear infinite;
    border-top-color: var(--accent);
    border-right-color: transparent;
}

.ring-2 {
    width: 260px;
    height: 260px;
    animation: rotate 15s linear infinite reverse;
    border-bottom-color: var(--primary);
    border-left-color: transparent;
}

.ring-3 {
    width: 160px;
    height: 160px;
    animation: rotate 10s linear infinite;
    border-color: rgba(124, 58, 237, 0.4);
}

.core-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.brain-icon {
    width: 48px;
    height: 48px;
    fill: rgba(255, 255, 255, 0.9);
    stroke: none;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    font-size: 12px;
    animation: bounce 2s infinite;
}

.mouse {
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-dim);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0%, 100% { opacity: 1; top: 6px; }
    50% { opacity: 0.3; top: 16px; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ====================
   通用区块样式
   ==================== */
section {
    padding: 120px 0;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-muted);
}

/* ====================
   关于我们
   ==================== */
.about {
    background: linear-gradient(180deg, var(--dark) 0%, rgba(17, 24, 39, 0.5) 50%, var(--dark) 100%);
}

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

.about-card {
    padding: 40px 32px;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.about-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.about-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.about-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ====================
   产品服务
   ==================== */
.products {
    background: var(--dark-2);
}

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

.product-card {
    padding: 36px 30px;
    background: rgba(10, 15, 26, 0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

.product-card.featured {
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.1) 0%, rgba(10, 15, 26, 0.6) 100%);
    border-color: rgba(0, 102, 255, 0.3);
}

.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.product-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon.medical {
    background: linear-gradient(135deg, #10b981 0%, #00d4ff 100%);
}

.product-icon.geo {
    background: linear-gradient(135deg, #7c3aed 0%, #f43f5e 100%);
}

.product-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.product-badge {
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    font-size: 12px;
    color: var(--accent);
}

.product-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.product-card > p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-bottom: 28px;
}

.feature-list li {
    padding: 8px 0 8px 24px;
    color: var(--text-muted);
    font-size: 14px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.product-link {
    color: var(--primary-light);
    font-weight: 600;
    transition: var(--transition);
}

.product-link:hover {
    color: var(--accent);
}

/* ====================
   核心技术
   ==================== */
.technology {
    background: var(--dark);
}

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

.tech-item {
    padding: 36px;
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
}

.tech-item:hover {
    background: rgba(17, 24, 39, 0.8);
    border-color: rgba(0, 102, 255, 0.3);
}

.tech-number {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dim);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.tech-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.tech-item p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ====================
   CTA
   ==================== */
.cta {
    padding: 100px 0;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

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

.cta-content h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ====================
   联系我们
   ==================== */
.contact {
    background: var(--dark-2);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 28px;
    background: rgba(10, 15, 26, 0.5);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: rgba(0, 102, 255, 0.3);
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.contact-detail h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-detail p {
    color: var(--text-muted);
    font-size: 15px;
}

.contact-form {
    padding: 40px;
    background: rgba(10, 15, 26, 0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

/* ====================
   页脚
   ==================== */
.footer {
    background: var(--dark);
    border-top: 1px solid var(--border);
    padding: 64px 0 24px;
}

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

.footer-brand p {
    color: var(--text-muted);
    margin-top: 12px;
    font-size: 15px;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 15px;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 14px;
}

/* ====================
   响应式设计
   ==================== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-visual {
        order: -1;
    }

    .ai-core {
        width: 280px;
        height: 280px;
    }

    .ring-1 { width: 280px; height: 280px; }
    .ring-2 { width: 200px; height: 200px; }
    .ring-3 { width: 120px; height: 120px; }

    .about-grid,
    .products-grid,
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 15, 26, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    section {
        padding: 80px 0;
    }

    .about-grid,
    .products-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .contact-form {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .ai-core {
        width: 220px;
        height: 220px;
    }

    .ring-1 { width: 220px; height: 220px; }
    .ring-2 { width: 160px; height: 160px; }
    .ring-3 { width: 100px; height: 100px; }

    .core-center {
        width: 70px;
        height: 70px;
    }

    .brain-icon {
        width: 34px;
        height: 34px;
    }
}
