﻿    /* AI粒子动画 */
    .ai-particles {
        width: 100%;
        height: 100%;
        position: absolute;
        background-image:
            radial-gradient(#ffffff10 1px, transparent 1px),
            radial-gradient(#ffffff10 1px, transparent 1px);
        background-size: 30px 30px;
        background-position: 0 0, 15px 15px;
        animation: particleMovement 20s linear infinite;
    }

    @keyframes particleMovement {
        0% { background-position: 0 0, 15px 15px; }
        100% { background-position: 100px 100px, 115px 115px; }
    }

    /* AI徽章点效果 */
    .ai-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #4f46e5;
        display: inline-block;
        position: relative;
    }

    .ai-dot:before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background-color: #4f46e5;
        animation: ripple 1.5s ease-out infinite;
    }

    @keyframes ripple {
        0% { transform: scale(1); opacity: 1; }
        100% { transform: scale(2.5); opacity: 0; }
    }

    /* AI大脑网络效果 */
    .ai-brain {
        width: 100%;
        height: 100%;
        opacity: 0.15;
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
        background-size: 20px 20px;
        animation: brainActivity 8s linear infinite;
    }

    @keyframes brainActivity {
        0% { background-position: 0 0; }
        100% { background-position: 40px 40px; }
    }

    /* 卡片悬停效果增强 */
    .hover\:-translate-y-1:hover {
        transform: translateY(-0.25rem);
        box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.1), 0 10px 10px -5px rgba(59, 130, 246, 0.04);
    }

    /* AI英雄区域图片容器 */
    .hero-image-placeholder {
        width: 100%;
        height: 16rem; /* h-64 */
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.75rem; /* rounded-xl */
        background-color: rgba(67, 56, 202, 0.3); /* 深蓝紫色基调 */
        position: relative;
        overflow: hidden; /* 确保动画元素不溢出 */
    }

    /* 神经网络背景图案 */
    .hero-image-placeholder::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background-image:
            radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
            radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
            radial-gradient(circle at 60% 30%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
            radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
        background-size: 100px 100px;
        opacity: 0.8;
        animation: neuralNetShift 15s infinite linear;
        z-index: 1;
    }

    /* 文字流效果 */
    .hero-image-placeholder::after {
        content: '创作 AI 智能 小说 灵感 文学 创意 角色 情节 世界观 记忆 思维 文字 故事';
        position: absolute;
        top: -10px; left: -10px; right: -10px; bottom: -10px;
        color: rgba(255, 255, 255, 0.1);
        font-family: monospace;
        font-size: 12px;
        letter-spacing: 0.15em;
        line-height: 1.2em;
        text-align: justify;
        word-break: break-all;
        overflow: hidden;
        transform: rotate(5deg);
        animation: textFlow 20s infinite linear;
        pointer-events: none; /* 允许点击穿透 */
        z-index: 2;
    }

    /* 连接线效果 */
    .hero-image-placeholder .ai-network {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background-image:
            linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.3) 50%, transparent 52%),
            linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.3) 50%, transparent 52%);
        background-size: 30px 30px;
        opacity: 0.2;
        animation: networkBlink 3s infinite ease-in-out;
        z-index: 3;
    }

    /* 中央SVG图标样式 */
    .hero-image-placeholder svg {
        position: relative;
        z-index: 10;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
        animation: iconPulse 4s infinite ease-in-out;
    }

    /* 新动画定义 */
    @keyframes neuralNetShift {
        0% { background-position: 0 0; }
        100% { background-position: 100px 100px; }
    }

    @keyframes textFlow {
        0% { transform: translateY(0) rotate(5deg); }
        100% { transform: translateY(-500px) rotate(5deg); } /* 文字向上流动 */
    }

    @keyframes networkBlink {
        0%, 100% { opacity: 0.1; }
        50% { opacity: 0.3; }
    }

    @keyframes iconPulse {
        0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); }
        50% { transform: scale(1.05); filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)); }
    }

    /* 为CTA区域添加的图标效果 */
    @keyframes iconEffect {
        0% { transform: scale(0.9); opacity: 0.2; }
        50% { transform: scale(1.1); opacity: 0.3; }
        100% { transform: scale(0.9); opacity: 0.2; }
    }

    /* 添加响应式 */
    @media (min-width: 768px) { /* md breakpoint */
        .hero-image-placeholder {
            height: 20rem; /* md:h-80 */
        }
    }

    /* 添加: 章节标题装饰线 */
    .section-title-decorated {
        position: relative;
        padding-bottom: 0; /* 删除底部内边距 */
        margin-bottom: 1rem !important; /* 确保标题和下方内容间距 */
        display: flex;
        flex-direction: column;
        align-items: center; /* 确保标题本身居中 */
    }

    .hero-section {
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        position: relative;
    }

    /* 确保hero-section内部内容有足够的边距 */
    .hero-section .max-w-screen-xl {
        padding-left: max(1rem, calc((100vw - 1280px) / 2));
        padding-right: max(1rem, calc((100vw - 1280px) / 2));
    }

    /* 在小屏幕上确保最小边距 */
    @media (max-width: 640px) {
        .hero-section .max-w-screen-xl {
            padding-left: 1rem;
            padding-right: 1rem;
        }
    }

    /* 在中等屏幕上提供更好的边距 */
    @media (min-width: 641px) and (max-width: 1024px) {
        .hero-section .max-w-screen-xl {
            padding-left: 2rem;
            padding-right: 2rem;
        }
    }

    /* 在大屏幕上提供更宽的边距 */
    @media (min-width: 1025px) {
        .hero-section .max-w-screen-xl {
            padding-left: 3rem;
            padding-right: 3rem;
        }
    }

/*     .section-title-decorated::after {
        content: '';
        position: relative;
        left: 0;
        bottom: auto;
        margin-top: 1rem;
        transform: none;
        width: 12rem;
        height: 4px;
        background: linear-gradient(to right, #6366f1  , #a855f7 );
        border-radius: 2px;
    } */

    /* 首页专用样式 */
    /* 确保首页内容与导航栏无间隙 */
    .hero-section {
        margin-top: -1px;
    }

    /* 首页特有卡片样式 */
    .ai-feature-card {
        transition: all 0.3s ease;
    }

    .ai-feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    @media (max-width: 768px) {
        .hero-section {
            border-radius: 0 0 2rem 2rem;
        }
    }

    /* 增强科技感效果 */
    .tech-border {
        position: relative;
        background: linear-gradient(45deg, transparent 30%, rgba(99, 102, 241, 0.1) 50%, transparent 70%);
        background-size: 20px 20px;
        animation: techScan 3s ease-in-out infinite;
    }

    @keyframes techScan {
        0%, 100% { background-position: 0 0; }
        50% { background-position: 100px 100px; }
    }

    /* 文章卡片科技感 */
    article.bg-white {
        position: relative;
        overflow: hidden;
    }

    article.bg-white::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
        transition: left 0.5s ease;
        z-index: 1;
    }

    article.bg-white:hover::before {
        left: 100%;
    }

    article.bg-white > div {
        position: relative;
        z-index: 2;
    }

    /* 动态渐变效果 */
    .dynamic-gradient {
        background: linear-gradient(-45deg, #6366f1, #8b5cf6, #06b6d4, #10b981);
        background-size: 400% 400%;
        animation: gradientShift 15s ease infinite;
    }

    @keyframes gradientShift {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    /* 增强的悬停效果 */
    .enhanced-hover {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .enhanced-hover::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .enhanced-hover:hover::after {
        opacity: 1;
    }

    /* 数据流动效果 */
    .data-stream {
        position: relative;
        overflow: hidden;
    }

    .data-stream::before {
        content: '01001000 01100101 01101100 01101100 01101111 00100000 01000001 01001001';
        position: absolute;
        top: 0;
        left: -100%;
        width: 200%;
        height: 100%;
        color: rgba(99, 102, 241, 0.1);
        font-family: 'Courier New', monospace;
        font-size: 10px;
        line-height: 1.2;
        white-space: nowrap;
        animation: dataFlow 20s linear infinite;
        pointer-events: none;
        z-index: 1;
    }

    @keyframes dataFlow {
        0% { left: -100%; }
        100% { left: 100%; }
    }

    /* AI脉冲效果 - 温和版本 */
    .ai-pulse {
        position: relative;
        transition: all 0.3s ease;
    }

    .ai-pulse:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
    }

    /* 数据统计动画效果 */
    .stats-card {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease-out;
    }

    .stats-card.animate {
        opacity: 1;
        transform: translateY(0);
    }

    .counter-number {
        transition: all 0.3s ease;
        position: relative;
    }

    /* .counter-number::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, #4f46e5, #7c3aed, #2563eb);
        transition: all 0.6s ease;
        transform: translateX(-50%);
    } */

    .stats-card.animate .counter-number::after {
        width: 100%;
    }

    /* 数字闪烁效果 */
    @keyframes numberGlow {
        0%, 100% { text-shadow: 0 0 5px rgba(79, 70, 229, 0.3); }
        50% { text-shadow: 0 0 15px rgba(79, 70, 229, 0.6), 0 0 25px rgba(79, 70, 229, 0.4); }
    }

    .counter-number.counting {
        animation: numberGlow 0.1s ease-in-out;
    }

    /* 打字机光标动画 */
    .typewriter-cursor {
        font-weight: 100;
        color: #ffffff;
        animation: blink 1s infinite;
        font-size: 1.1em;
    }

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

    .container
    {
        overflow: hidden;
    }