/* 首页专属样式 - 从 index.html 抽离以减小 HTML 体积 */

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .ai-btn-pulse,
    .ai-btn-float,
    .ai-btn-ring {
        animation: none !important;
    }
    .ai-btn-glow .ai-btn-icon {
        animation: none !important;
    }
}

.hero-gradient {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(14, 165, 233, 0.15);
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.category-gradient-1 { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); }
.category-gradient-2 { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.category-gradient-3 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.category-gradient-4 { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.category-gradient-5 { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.category-gradient-6 { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.category-gradient-7 { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.category-gradient-8 { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.message-enter {
    animation: messageIn 0.3s ease forwards;
}

.typing-dot {
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes aiPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4),
                    0 4px 20px rgba(14, 165, 233, 0.3);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(14, 165, 233, 0),
                    0 4px 25px rgba(14, 165, 233, 0.5);
    }
}

@keyframes aiGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(14, 165, 233, 0.9));
    }
}

@keyframes aiRing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes aiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.ai-btn-pulse {
    animation: aiPulse 2.5s ease-in-out infinite;
}

.ai-btn-glow .ai-btn-icon {
    animation: aiGlow 2s ease-in-out infinite;
}

.ai-btn-ring {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid rgba(14, 165, 233, 0.5);
    animation: aiRing 2s ease-out infinite;
    pointer-events: none;
}

.ai-btn-float {
    animation: aiFloat 3s ease-in-out infinite;
}

.ai-btn-active .ai-btn-ring {
    animation: none;
    opacity: 0;
}

.ai-btn-active {
    animation: none;
}

.ai-btn-active .ai-btn-icon {
    animation: none;
}

.agent-window {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.agent-input {
    resize: none;
    min-height: 44px;
    max-height: 100px;
}

[class*="_wrapper_"][style*="position: fixed"][style*="bottom"],
[class*="_wrapper_"][style*="z-index: 214748364"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
