/* ===== AI Landing Page - 蓝色亮色科技风格 ===== */

:root {
    --gradient-1: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-3: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-4: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    --gradient-5: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);

    --primary-blue: #0ea5e9;
    --secondary-blue: #2563eb;
    --accent-cyan: #06b6d4;
    --accent-purple: #6366f1;

    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(14, 165, 233, 0.2);
    --glow-blue: rgba(14, 165, 233, 0.3);
    --shadow-light: rgba(14, 165, 233, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.03) 0%, transparent 60%);
    color: var(--text-primary);
    overflow-x: hidden;
}

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

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

/* ===== 导航栏 ===== */
.ai-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: all 0.3s ease;
}

.ai-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(14, 165, 233, 0.15);
}

.ai-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 20px;
}

.logo-icon {
    font-size: 28px;
    animation: float 3s ease-in-out infinite;
}

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

.nav-links {
    display: flex;
    gap: 40px;
}

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

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

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

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

.nav-actions {
    display: flex;
    gap: 12px;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-gradient {
    background: var(--gradient-1);
    color: white;
    box-shadow:
        0 4px 15px rgba(14, 165, 233, 0.4),
        0 0 30px rgba(14, 165, 233, 0.2);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 25px rgba(14, 165, 233, 0.6),
        0 0 40px rgba(14, 165, 233, 0.3);
}

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

.btn-ghost:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-glass {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

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

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--primary-blue);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    animation: slideDown 0.6s ease;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: slideUp 0.8s ease;
}

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

.typing-text {
    display: inline-block;
    min-width: 400px;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: slideUp 1s ease;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    animation: slideUp 1.2s ease;
}

.hero-stats {
    display: flex;
    gap: 60px;
    animation: slideUp 1.4s ease;
}

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

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

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== 浮动卡片 ===== */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow:
        0 8px 32px rgba(14, 165, 233, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.05);
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 50px;
    left: 0;
    width: 280px;
    animation-delay: 0s;
}

.card-2 {
    top: 200px;
    right: 50px;
    width: 260px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 80px;
    left: 100px;
    width: 240px;
    animation-delay: 2s;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.card-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    width: 0;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 100%; }
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* ===== 动画 ===== */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Section 通用样式 ===== */
section {
    position: relative;
    padding: 120px 0;
    z-index: 2;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--primary-blue) 50%,
        transparent 100%
    );
    opacity: 0.2;
}

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

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--primary-blue);
    border-radius: 50px;
    font-size: 13px;
    color: var(--primary-blue);
    margin-bottom: 16px;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.3); }
    50% { box-shadow: 0 0 30px rgba(14, 165, 233, 0.5); }
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

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

/* ===== 功能卡片 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.08);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-blue);
    box-shadow:
        0 20px 60px rgba(14, 165, 233, 0.2),
        0 0 40px rgba(14, 165, 233, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.gradient-1 { background: var(--gradient-1); }
.gradient-2 { background: var(--gradient-2); }
.gradient-3 { background: var(--gradient-3); }

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

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
}

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

.feature-list li::before {
    content: '✓';
    color: var(--accent-cyan);
    margin-right: 8px;
    text-shadow: 0 0 10px var(--accent-cyan);
}

/* ===== 产品卡片 ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.08);
}

.product-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    opacity: 0.1;
    transition: opacity 0.3s;
}

.product-card:hover .product-bg {
    opacity: 0.2;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-blue);
    box-shadow:
        0 20px 60px rgba(14, 165, 233, 0.2),
        0 0 40px rgba(14, 165, 233, 0.1);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    background: var(--gradient-2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.product-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

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

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

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    padding: 4px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--primary-blue);
    border-radius: 50px;
    font-size: 12px;
    color: var(--primary-blue);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

.product-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== 价格卡片 ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pricing-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.08);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-blue);
    box-shadow:
        0 20px 60px rgba(14, 165, 233, 0.2),
        0 0 40px rgba(14, 165, 233, 0.1);
}

.pricing-card.featured {
    background: var(--gradient-1);
    border: none;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.pricing-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 12px;
    margin-bottom: 20px;
}

.pricing-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.pricing-name {
    font-size: 24px;
    margin-bottom: 12px;
}

.pricing-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
}

.pricing-price .currency {
    font-size: 24px;
}

.pricing-price .period {
    font-size: 16px;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin: 32px 0;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-secondary);
}

/* ===== CTA Section ===== */
.cta-section {
    position: relative;
    text-align: center;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0.08;
    border-radius: 32px;
}

.cta-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(14, 165, 233, 0.05) 2px,
            rgba(14, 165, 233, 0.05) 4px
        );
    animation: scan 8s linear infinite;
}

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

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 48px;
    margin-bottom: 16px;
}

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

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-note {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.ai-footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
}

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

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 12px;
}

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

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .hero-section .container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .features-grid,
    .products-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
