Skip to content
The Chat Archive
o1-mini-2024-09-12· OpenAI WildChat-4.8M (AI2)

<!DOCTYPE html> <html lang="fa"> <head> <meta charset="UTF-8"> <meta name="viewport"…

  1. User
        body {
            background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0 1rem; /* حذف padding بالایی */
            direction: rtl;
        }
    
        /* کانتینر دکمه شروع و دکمه‌های تحلیل */
        .unique-start-button-container {
            width: 100%;
            max-width: 600px;
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 2rem;
            perspective: 1000px;
        }
    
        /* دکمه شروع */
        .unique-start-button {
            background: radial-gradient(circle at 50% 50%, #f77062, #fe5196);
            color: white;
            border-radius: 25px;
            padding: 20px 70px;
            font-size: 1.3rem;
            font-weight: bold;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            position: relative;
            overflow: hidden;
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 10px 30px rgba(254, 81, 150, 0.3),
                        inset 0 -3px 0 rgba(0, 0, 0, 0.1);
            transform-style: preserve-3d;
        }
    
        .unique-start-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.4),
                transparent
            );
            animation: shimmer 3s infinite;
        }
    
        .unique-start-button:hover {
            transform: translateY(-5px) rotateX(10deg);
            box-shadow: 0 20px 40px rgba(254, 81, 150, 0.4),
                        inset 0 -3px 0 rgba(0, 0, 0, 0.2);
        }
    
        .unique-start-button:active {
            transform: translateY(2px);
            box-shadow: 0 5px 15px rgba(254, 81, 150, 0.4);
        }
    
        .start-icon {
            width: 28px;
            height: 28px;
            position: relative;
            animation: rotateIcon 3s linear infinite;
        }
    
        .start-icon svg {
            width: 100%;
            height: 100%;
            fill: white;
        }
    
        /* دکمه‌های تحلیل */
        .analysis-buttons {
            width: 100%;
            display: none;
            flex-direction: column;
            gap: 1.5rem;
            opacity: 0;
            transform: translateY(20px) scale(0.95);
            transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }
    
        .analysis-buttons.visible {
            display: flex;
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    
        .analysis-button {
            width: 100%;
            padding: 18px 40px;
            border-radius: 15px;
            border: none;
            font-size: 1.1rem;
            font-weight: 500;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            position: relative;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transform-style: preserve-3d;
            --x: 0;
            --y: 0;
        }
    
        /* دکمه تحلیل ابتدایی */
        .analysis-button.basic {
            background: linear-gradient(135deg, #43cea2, #185a9d);
            box-shadow: 0 8px 20px rgba(67, 206, 162, 0.3),
                        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
        }
    
        /* دکمه تحلیل پیشرفته */
        .analysis-button.advanced {
            background: linear-gradient(135deg, #834d9b, #d04ed6);
            box-shadow: 0 8px 20px rgba(131, 77, 155, 0.3),
                        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
        }
    
        .analysis-button::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.2),
                transparent
            );
            transform: translateX(-100%);
            transition: transform 0.6s ease;
        }
    
        .analysis-button:hover {
            transform: translateY(-3px) scale(1.02);
            filter: brightness(1.1);
        }
    
        .analysis-button:hover::before {
            transform: translateX(100%);
        }
    
        .analysis-button:active {
            transform: translateY(2px) scale(0.98);
        }
    
        /* افکت موج هنگام کلیک */
        .analysis-button::after {
            content: '';
            position: absolute;
            width: 100px;
            height: 100px;
            background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
            transform: translate(-50%, -50%) scale(0);
            opacity: 0;
            pointer-events: none;
            border-radius: 50%;
        }
    
        .analysis-button:focus::after {
            animation: ripple 0.6s linear;
        }
    
        /* انیمیشن‌های دکمه‌ها */
        @keyframes rotateIcon {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
    
        @keyframes shimmer {
            100% { transform: translateX(100%); }
        }
    
        @keyframes ripple {
            from {
                transform: translate(-50%, -50%) scale(0);
                opacity: 1;
            }
            to {
                transform: translate(-50%, -50%) scale(4);
                opacity: 0;
            }
        }
    
        /* بخش هیرو */
        .hero-section {
            text-align: center;
            margin-bottom: 3rem;
            padding: 2.5rem;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(31, 38, 135, 0.15);
            max-width: 800px;
            width: 100%;
            transform: translateY(-20px);
            opacity: 0;
            animation: heroAppear 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
            backdrop-filter: blur(10px);
        }
    
        .hero-title {
            color: transparent;
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            background: linear-gradient(45deg, #3490dc, #6574cd);
            -webkit-background-clip: text;
            background-clip: text;
            position: relative;
            display: inline-block;
        }
    
        .hero-title::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(45deg, #3490dc, #6574cd);
            transform: scaleX(0);
            transform-origin: right;
            animation: titleUnderline 1s ease-out 0.5s forwards;
        }
    
        .hero-section p {
            color: #4a5568;
            font-size: 1.1rem;
            opacity: 0;
            animation: fadeIn 0.8s ease-out 1s forwards;
        }
    
        /* بخش سوالات */
        .faq-container {
            max-width: 800px;
            width: 100%;
            background: white;
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(31, 38, 135, 0.15);
            overflow: hidden;
            margin-bottom: 2rem;
            opacity: 0;
            transform: translateY(20px);
            animation: faqAppear 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
        }
    
        .faq-item {
            border-bottom: 1px solid #e2e8f0;
        }
    
        .faq-item:last-child {
            border-bottom: none;
        }
    
        .faq-question {
            padding: 1.5rem;
            width: 100%;
            text-align: right;
            background: none;
            border: none;
            font-size: 1.1rem;
            font-weight: 500;
            color: #2d3748;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
        }
    
        .faq-question:hover {
            background: #f7fafc;
            color: #3182ce;
            padding-right: 2rem;
        }
    
        .faq-question.active {
            background: #f0f4f8;
            color: #3182ce;
        }
    
        .icon {
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 1.2rem;
        }
    
        .faq-question.active .icon {
            transform: rotate(180deg);
        }
    
        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            background: #f8fafc;
            padding: 0 1.5rem;
            opacity: 0;
        }
    
        .faq-answer.active {
            max-height: 300px;
            padding: 1.5rem;
            opacity: 1;
        }
    
        .faq-answer p {
            color: #4a5568;
            line-height: 1.6;
        }
    
        /* کانتینر ویدیو */
        .video-container {
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        }
    
        .video-container video {
            width: 100%;
            height: auto;
            display: block;
        }
    
        /* انیمیشن‌های صفحه */
        @keyframes heroAppear {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    
        @keyframes titleUnderline {
            to {
                transform: scaleX(1);
            }
        }
    
        @keyframes fadeIn {
            to {
                opacity: 1;
            }
        }
    
        @keyframes faqAppear {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    
        /* انیمیشن ripple */
        @keyframes ripple {
            from {
                transform: translate(-50%, -50%) scale(0);
                opacity: 1;
            }
            to {
                transform: translate(-50%, -50%) scale(4);
                opacity: 0;
            }
        }
    
        /* Media Queries برای موبایل */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2rem;
            }
    
            .unique-start-button {
                padding: 15px 40px;
                font-size: 1.1rem;
            }
    
            .analysis-button {
                padding: 15px 30px;
                font-size: 1rem;
            }
    
            .hero-section {
                padding: 1.5rem;
            }
    
            .faq-question {
                font-size: 1rem;
                padding: 1.2rem;
            }
    
            .faq-answer.active {
                padding: 1.2rem;
            }
        }
    </style>
    
    <!-- بخش هیرو -->
    <div class="hero-section">
        <h1 class="hero-title">ربات تحلیل تصاویر هوشمند</h1>
        <p>با استفاده از تکنولوژی پیشرفته هوش مصنوعی</p>
    </div>
    
    <!-- بخش سوالات -->
    <div class="faq-container" id="faq-container">
        <div class="faq-item">
            <button class="faq-question">
                <span>🤖 این ربات چه کاری انجام می‌دهد؟</span>
                <span class="icon">▼</span>
            </button>
            <div class="faq-answer">
                <p>این ربات با استفاده از تکنولوژی پیشرفته هوش مصنوعی، قابلیت تحلیل تصاویر را دارد. شما می‌توانید تصویر مورد نظر خود را آپلود کرده و از ربات بخواهید توضیحات مربوط به آن را ارائه دهد. همچنین می‌توانید اسکرین‌شات‌های خود را به کد تبدیل کنید و از خلاقیت‌های بی‌پایان این ربات بهره‌مند شوید.</p>
            </div>
        </div>
        <div class="faq-item">
            <button class="faq-question">
                <span>🎥 آموزش استفاده از ربات</span>
                <span class="icon">▼</span>
            </button>
            <div class="faq-answer">
                <div class="video-container">
                    <video width="300" height="150" controls="controls" controlslist="nodownload">
                        <source src="https://uploadkon.ir/uploads/695002_24Screenrecorder-2024-11-02-16-25-31-317.mp4" type="video/mp4" />
                        مرورگر شما از پخش ویدیو پشتیبانی نمی‌کند.
                    </video>
                </div>
            </div>
        </div>
        <div class="faq-item">
            <button class="faq-question">
                <span>📝 آیا ربات از زبان فارسی پشتیبانی می‌کند؟</span>
                <span class="icon">▼</span>
            </button>
            <div class="faq-answer">
                <p>بله، هر دو ربات تحلیل تصاویر از متن فارسی پشتیبانی می‌کنند. در صورتی که ربات توضیحات را به انگلیسی ارائه دهد، کافیست از آن بخواهید متن را به فارسی ترجمه کند.</p>
            </div>
        </div>
    </div>
    
    <!-- اسکریپت‌ها -->
    <script>
        document.addEventListener('DOMContentLoaded', () => {
            const startButton = document.getElementById('startButton');
            const analysisButtons = document.getElementById('analysisButtons');
            const analysisButtonElements = document.querySelectorAll('.analysis-button');
            const faqQuestions = document.querySelectorAll('.faq-question');
    
            // عملکرد دکمه شروع
            startButton.addEventListener('click', () => {
                startButton.classList.add('clicked');
    
                setTimeout(() => {
                    startButton.style.display = 'none';
                    analysisButtons.classList.add('visible');
                }, 600); // زمان با توجه به انیمیشن
            });
    
            // افکت سه‌بعدی برای دکمه شروع
            startButton.addEventListener('mousemove', function(e) {
                const rect = this.getBoundingClientRect();
                const x = e.clientX - rect.left;
                const y = e.clientY - rect.top;
    
                const centerX = rect.width / 2;
                const centerY = rect.height / 2;
    
                const angleX = (y - centerY) / 20;
                const angleY = (centerX - x) / 20;
    
                this.style.transform = `perspective(1000px) rotateX(${angleX}deg) rotateY(${angleY}deg) scale(1.05)`;
            });
    
            startButton.addEventListener('mouseleave', function() {
                this.style.transform = 'perspective(1000px) rotateX(0) rotateY(0) scale(1)';
            });
    
            // انیمیشن‌های دکمه‌های تحلیل
            analysisButtonElements.forEach(button => {
                // افکت موج هنگام کلیک
                button.addEventListener('click', function(e) {
                    let ripple = document.createElement('span');
                    ripple.style.position = 'absolute';
                    ripple.style.background = 'rgba(255, 255, 255, 0.7)';
                    ripple.style.transform = 'translate(-50%, -50%)';
                    ripple.style.pointerEvents = 'none';
                    ripple.style.borderRadius = '50%';
                    ripple.style.animationName = 'ripple';
                    ripple.style.animationDuration = '0.6s';
                    ripple.style.animationFillMode = 'forwards';
    
                    const rect = this.getBoundingClientRect();
                    const size = Math.max(rect.width, rect.height);
                    ripple.style.width = ripple.style.height = size + 'px';
    
                    ripple.style.left = (e.clientX - rect.left) + 'px';
                    ripple.style.top = (e.clientY - rect.top) + 'px';
    
                    this.appendChild(ripple);
    
                    setTimeout(() => ripple.remove(), 600);
                });
    
                // افکت هایور پیشرفته
                button.addEventListener('mousemove', function(e) {
                    const rect = this.getBoundingClientRect();
                    const x = e.clientX - rect.left;
                    const y = e.clientY - rect.top;
    
                    this.style.setProperty('--x', `${x}px`);
                    this.style.setProperty('--y', `${y}px`);
                });
            });
    
            // عملکرد FAQ
            faqQuestions.forEach(question => {
                question.addEventListener('click', () => {
                    const answer = question.nextElementSibling;
                    const isActive = question.classList.contains('active');
    
                    // بستن تمام سوالات
                    faqQuestions.forEach(q => {
                        q.classList.remove('active');
                        q.nextElementSibling.classList.remove('active');
                    });
    
                    // باز یا بسته کردن سوال انتخاب شده
                    if (!isActive) {
                        question.classList.add('active');
                        answer.classList.add('active');
    
                        // اسکرول به سوال باز شده
                        answer.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
                    }
                });
            });
        });
    </script>
    
  2. Assistant

    مشکل کلیک نشدن دکمه‌ها به احتمال زیاد به دلیل پوشش دادن عناصر شبه (::before و ::after) بر روی دکمه‌ها است. در حالت فعلی، این عناصر شبه به طور پیش‌فرض رویدادهای ماوس را دریافت می‌کنند و مانع از کلیک بر روی دکمه‌های اصلی می‌شوند.

    برای رفع این مشکل، باید به عناصر شبه ::before و ::after ویژگی pointer-events: none; اضافه کنید تا رویدادهای ماوس از روی آن‌ها عبور کنند و به عناصر اصلی برسند.

    در ادامه، نسخه به‌روز شده‌ی CSS شما با اصلاحات لازم را مشاهده می‌کنید:

    <!DOCTYPE html>
    <html lang="fa">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>ربات تحلیل تصاویر هوشمند</title>
        <link href="https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap" rel="stylesheet">
        <style>
            /* کلیات صفحه */
            * {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
                font-family: 'Vazirmatn', sans-serif;
            }
    
            body {
                background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
                min-height: 100vh;
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: 0 1rem; /* حذف padding بالایی */
                direction: rtl;
            }
    
            /* کانتینر دکمه شروع و دکمه‌های تحلیل */
            .unique-start-button-container {
                width: 100%;
                max-width: 600px;
                display: flex;
                flex-direction: column;
                align-items: center;
                margin-bottom: 2rem;
                perspective: 1000px;
            }
    
            /* دکمه شروع */
            .unique-start-button {
                background: radial-gradient(circle at 50% 50%, #f77062, #fe5196);
                color: white;
                border-radius: 25px;
                padding: 20px 70px;
                font-size: 1.3rem;
                font-weight: bold;
                border: none;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 12px;
                position: relative;
                overflow: hidden;
                transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
                box-shadow: 0 10px 30px rgba(254, 81, 150, 0.3),
                            inset 0 -3px 0 rgba(0, 0, 0, 0.1);
                transform-style: preserve-3d;
            }
    
            .unique-start-button::before {
                content: '';
                position: absolute;
                top: 0;
                left: -100%;
                width: 100%;
                height: 100%;
                background: linear-gradient(
                    90deg,
                    transparent,
                    rgba(255, 255, 255, 0.4),
                    transparent
                );
                animation: shimmer 3s infinite;
                pointer-events: none; /* اضافه شده */
            }
    
            .unique-start-button:hover {
                transform: translateY(-5px) rotateX(10deg);
                box-shadow: 0 20px 40px rgba(254, 81, 150, 0.4),
                            inset 0 -3px 0 rgba(0, 0, 0, 0.2);
            }
    
            .unique-start-button:active {
                transform: translateY(2px);
                box-shadow: 0 5px 15px rgba(254, 81, 150, 0.4);
            }
    
            .start-icon {
                width: 28px;
                height: 28px;
                position: relative;
                animation: rotateIcon 3s linear infinite;
            }
    
            .start-icon svg {
                width: 100%;
                height: 100%;
                fill: white;
            }
    
            /* دکمه‌های تحلیل */
            .analysis-buttons {
                width: 100%;
                display: none;
                flex-direction: column;
                gap: 1.5rem;
                opacity: 0;
                transform: translateY(20px) scale(0.95);
                transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            }
    
            .analysis-buttons.visible {
                display: flex;
                opacity: 1;
                transform: translateY(0) scale(1);
            }
    
            .analysis-button {
                width: 100%;
                padding: 18px 40px;
                border-radius: 15px;
                border: none;
                font-size: 1.1rem;
                font-weight: 500;
                color: white;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 12px;
                position: relative;
                overflow: hidden;
                transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
                transform-style: preserve-3d;
                --x: 0;
                --y: 0;
            }
    
            /* دکمه تحلیل ابتدایی */
            .analysis-button.basic {
                background: linear-gradient(135deg, #43cea2, #185a9d);
                box-shadow: 0 8px 20px rgba(67, 206, 162, 0.3),
                            inset 0 -2px 0 rgba(0, 0, 0, 0.1);
            }
    
            /* دکمه تحلیل پیشرفته */
            .analysis-button.advanced {
                background: linear-gradient(135deg, #834d9b, #d04ed6);
                box-shadow: 0 8px 20px rgba(131, 77, 155, 0.3),
                            inset 0 -2px 0 rgba(0, 0, 0, 0.1);
            }
    
            .analysis-button::before {
                content: '';
                position: absolute;
                inset: 0;
                background: linear-gradient(
                    90deg,
                    transparent,
                    rgba(255, 255, 255, 0.2),
                    transparent
                );
                transform: translateX(-100%);
                transition: transform 0.6s ease;
                pointer-events: none; /* اضافه شده */
            }
    
            .analysis-button::after {
                content: '';
                position: absolute;
                width: 100px;
                height: 100px;
                background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
                transform: translate(-50%, -50%) scale(0);
                opacity: 0;
                pointer-events: none; /* اضافه شده */
                border-radius: 50%;
            }
    
            .analysis-button:hover {
                transform: translateY(-3px) scale(1.02);
                filter: brightness(1.1);
            }
    
            .analysis-button:hover::before {
                transform: translateX(100%);
            }
    
            .analysis-button:active {
                transform: translateY(2px) scale(0.98);
            }
    
            .analysis-button:focus::after {
                animation: ripple 0.6s linear;
            }
    
            /* افکت موج هنگام کلیک */
            .analysis-button.click-ripple::after {
                transform: translate(-50%, -50%) scale(4);
                opacity: 0;
            }
    
            /* انیمیشن‌های دکمه‌ها */
            @keyframes rotateIcon {
                from { transform: rotate(0deg); }
                to { transform: rotate(360deg); }
            }
    
            @keyframes shimmer {
                100% { transform: translateX(100%); }
            }
    
            @keyframes ripple {
                from {
                    transform: translate(-50%, -50%) scale(0);
                    opacity: 1;
                }
                to {
                    transform: translate(-50%, -50%) scale(4);
                    opacity: 0;
                }
            }
    
            /* بخش هیرو */
            .hero-section {
                text-align: center;
                margin-bottom: 3rem;
                padding: 2.5rem;
                background: rgba(255, 255, 255, 0.95);
                border-radius: 20px;
                box-shadow: 0 15px 35px rgba(31, 38, 135, 0.15);
                max-width: 800px;
                width: 100%;
                transform: translateY(-20px);
                opacity: 0;
                animation: heroAppear 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
                backdrop-filter: blur(10px);
            }
    
            .hero-title {
                color: transparent;
                font-size: 2.5rem;
                margin-bottom: 1.5rem;
                background: linear-gradient(45deg, #3490dc, #6574cd);
                -webkit-background-clip: text;
                background-clip: text;
                position: relative;
                display: inline-block;
            }
    
            .hero-title::after {
                content: '';
                position: absolute;
                bottom: -5px;
                left: 0;
                width: 100%;
                height: 3px;
                background: linear-gradient(45deg, #3490dc, #6574cd);
                transform: scaleX(0);
                transform-origin: right;
                animation: titleUnderline 1s ease-out 0.5s forwards;
            }
    
            .hero-section p {
                color: #4a5568;
                font-size: 1.1rem;
                opacity: 0;
                animation: fadeIn 0.8s ease-out 1s forwards;
            }
    
            /* بخش سوالات */
            .faq-container {
                max-width: 800px;
                width: 100%;
                background: white;
                border-radius: 20px;
                box-shadow: 0 15px 35px rgba(31, 38, 135, 0.15);
                overflow: hidden;
                margin-bottom: 2rem;
                opacity: 0;
                transform: translateY(20px);
                animation: faqAppear 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
            }
    
            .faq-item {
                border-bottom: 1px solid #e2e8f0;
            }
    
            .faq-item:last-child {
                border-bottom: none;
            }
    
            .faq-question {
                padding: 1.5rem;
                width: 100%;
                text-align: right;
                background: none;
                border: none;
                font-size: 1.1rem;
                font-weight: 500;
                color: #2d3748;
                cursor: pointer;
                display: flex;
                justify-content: space-between;
                align-items: center;
                transition: all 0.3s ease;
            }
    
            .faq-question:hover {
                background: #f7fafc;
                color: #3182ce;
                padding-right: 2rem;
            }
    
            .faq-question.active {
                background: #f0f4f8;
                color: #3182ce;
            }
    
            .icon {
                transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                font-size: 1.2rem;
            }
    
            .faq-question.active .icon {
                transform: rotate(180deg);
            }
    
            .faq-answer {
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                background: #f8fafc;
                padding: 0 1.5rem;
                opacity: 0;
            }
    
            .faq-answer.active {
                max-height: 300px;
                padding: 1.5rem;
                opacity: 1;
            }
    
            .faq-answer p {
                color: #4a5568;
                line-height: 1.6;
            }
    
            /* کانتینر ویدیو */
            .video-container {
                width: 100%;
                max-width: 600px;
                margin: 0 auto;
                border-radius: 10px;
                overflow: hidden;
                box-shadow: 0 8px 16px rgba(0,0,0,0.1);
            }
    
            .video-container video {
                width: 100%;
                height: auto;
                display: block;
            }
    
            /* انیمیشن‌های صفحه */
            @keyframes heroAppear {
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }
    
            @keyframes titleUnderline {
                to {
                    transform: scaleX(1);
                }
            }
    
            @keyframes fadeIn {
                to {
                    opacity: 1;
                }
            }
    
            @keyframes faqAppear {
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }
    
            /* انیمیشن ripple */
            @keyframes ripple {
                from {
                    transform: translate(-50%, -50%) scale(0);
                    opacity: 1;
                }
                to {
                    transform: translate(-50%, -50%) scale(4);
                    opacity: 0;
                }
            }
    
            /* Media Queries برای موبایل */
            @media (max-width: 768px) {
                .hero-title {
                    font-size: 2rem;
                }
    
                .unique-start-button {
                    padding: 15px 40px;
                    font-size: 1.1rem;
                }
    
                .analysis-button {
                    padding: 15px 30px;
                    font-size: 1rem;
                }
    
                .hero-section {
                    padding: 1.5rem;
                }
    
                .faq-question {
                    font-size: 1rem;
                    padding: 1.2rem;
                }
    
                .faq-answer.active {
                    padding: 1.2rem;
                }
            }
        </style>
    </head>
    <body>
        <!-- دکمه شروع و دکمه‌های تحلیل -->
        <div class="unique-start-button-container">
            <button id="startButton" class="unique-start-button">
                شروع 
                <span class="start-icon">
                    <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg">
                        <path d="M32 2C17.664 2 6 13.664 6 28c0 14.336 11.664 26 26 26s26-11.664 26-26C58 13.664 46.336 2 32 2zm0 48c-11.046 0-20-8.954-20-20S20.954 10 32 10s20 8.954 20 20-8.954 20-20 20z"></path>
                        <path d="M32 16a16 16 0 100 32 16 16 0 000-32z"></path>
                        <path d="M32 24a8 8 0 100 16 8 8 0 000-16z"></path>
                    </svg>
                </span> 
            </button>
            <div id="analysisButtons" class="analysis-buttons">
                <button class="analysis-button basic">تحلیل ابتدایی تصاویر</button>
                <button class="analysis-button advanced">تحلیل پیشرفته تصاویر</button>
            </div>
        </div>
    
        <!-- بخش هیرو -->
        <div class="hero-section">
            <h1 class="hero-title">ربات تحلیل تصاویر هوشمند</h1>
            <p>با استفاده از تکنولوژی پیشرفته هوش مصنوعی</p>
        </div>
    
        <!-- بخش سوالات -->
        <div class="faq-container" id="faq-container">
            <div class="faq-item">
                <button class="faq-question">
                    <span>🤖 این ربات چه کاری انجام می‌دهد؟</span>
                    <span class="icon">▼</span>
                </button>
                <div class="faq-answer">
                    <p>این ربات با استفاده از تکنولوژی پیشرفته هوش مصنوعی، قابلیت تحلیل تصاویر را دارد. شما می‌توانید تصویر مورد نظر خود را آپلود کرده و از ربات بخواهید توضیحات مربوط به آن را ارائه دهد. همچنین می‌توانید اسکرین‌شات‌های خود را به کد تبدیل کنید و از خلاقیت‌های بی‌پایان این ربات بهره‌مند شوید.</p>
                </div>
            </div>
            <div class="faq-item">
                <button class="faq-question">
                    <span>🎥 آموزش استفاده از ربات</span>
                    <span class="icon">▼</span>
                </button>
                <div class="faq-answer">
                    <div class="video-container">
                        <video width="300" height="150" controls="controls" controlslist="nodownload">
                            <source src="https://uploadkon.ir/uploads/695002_24Screenrecorder-2024-11-02-16-25-31-317.mp4" type="video/mp4" />
                            مرورگر شما از پخش ویدیو پشتیبانی نمی‌کند.
                        </video>
                    </div>
                </div>
            </div>
            <div class="faq-item">
                <button class="faq-question">
                    <span>📝 آیا ربات از زبان فارسی پشتیبانی می‌کند؟</span>
                    <span class="icon">▼</span>
                </button>
                <div class="faq-answer">
                    <p>بله، هر دو ربات تحلیل تصاویر از متن فارسی پشتیبانی می‌کنند. در صورتی که ربات توضیحات را به انگلیسی ارائه دهد، کافیست از آن بخواهید متن را به فارسی ترجمه کند.</p>
                </div>
            </div>
        </div>
    
        <!-- اسکریپت‌ها -->
        <script>
            document.addEventListener('DOMContentLoaded', () => {
                const startButton = document.getElementById('startButton');
                const analysisButtons = document.getElementById('analysisButtons');
                const analysisButtonElements = document.querySelectorAll('.analysis-button');
                const faqQuestions = document.querySelectorAll('.faq-question');
    
                // عملکرد دکمه شروع
                startButton.addEventListener('click', () => {
                    startButton.classList.add('clicked');
    
                    setTimeout(() => {
                        startButton.style.display = 'none';
                        analysisButtons.classList.add('visible');
                    }, 600); // زمان با توجه به انیمیشن
                });
    
                // افکت سه‌بعدی برای دکمه شروع
                startButton.addEventListener('mousemove', function(e) {
                    const rect = this.getBoundingClientRect();
                    const x = e.clientX - rect.left;
                    const y = e.clientY - rect.top;
    
                    const centerX = rect.width / 2;
                    const centerY = rect.height / 2;
    
                    const angleX = (y - centerY) / 20;
                    const angleY = (centerX - x) / 20;
    
                    this.style.transform = `perspective(1000px) rotateX(${angleX}deg) rotateY(${angleY}deg) scale(1.05)`;
                });
    
                startButton.addEventListener('mouseleave', function() {
                    this.style.transform = 'perspective(1000px) rotateX(0) rotateY(0) scale(1)';
                });
    
                // انیمیشن‌های دکمه‌های تحلیل
                analysisButtonElements.forEach(button => {
                    // افکت موج هنگام کلیک
                    button.addEventListener('click', function(e) {
                        let ripple = document.createElement('span');
                        ripple.style.position = 'absolute';
                        ripple.style.background = 'rgba(255, 255, 255, 0.7)';
                        ripple.style.transform = 'translate(-50%, -50%)';
                        ripple.style.pointerEvents = 'none';
                        ripple.style.borderRadius = '50%';
                        ripple.style.animationName = 'ripple';
                        ripple.style.animationDuration = '0.6s';
                        ripple.style.animationFillMode = 'forwards';
    
                        const rect = this.getBoundingClientRect();
                        const size = Math.max(rect.width, rect.height);
                        ripple.style.width = ripple.style.height = size + 'px';
    
                        ripple.style.left = (e.clientX - rect.left) + 'px';
                        ripple.style.top = (e.clientY - rect.top) + 'px';
    
                        this.appendChild(ripple);
    
                        setTimeout(() => ripple.remove(), 600);
                    });
    
                    // افکت هایور پیشرفته
                    button.addEventListener('mousemove', function(e) {
                        const rect = this.getBoundingClientRect();
                        const x = e.clientX - rect.left;
                        const y = e.clientY - rect.top;
    
                        this.style.setProperty('--x', `${x}px`);
                        this.style.setProperty('--y', `${y}px`);
                    });
                });
    
                // عملکرد FAQ
                faqQuestions.forEach(question => {
                    question.addEventListener('click', () => {
                        const answer = question.nextElementSibling;
                        const isActive = question.classList.contains('active');
    
                        // بستن تمام سوالات
                        faqQuestions.forEach(q => {
                            q.classList.remove('active');
                            q.nextElementSibling.classList.remove('active');
                        });
    
                        // باز یا بسته کردن سوال انتخاب شده
                        if (!isActive) {
                            question.classList.add('active');
                            answer.classList.add('active');
    
                            // اسکرول به سوال باز شده
                            answer.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
                        }
                    });
                });
            });
        </script>
    </body>
    </html>
    

    تغییرات اصلی:

    1. اضافه کردن pointer-events: none; به عناصر شبه:

      • این تغییر تضمین می‌کند که عناصر شبه مانند ::before و ::after رویدادهای کلیک را دریافت نکنند و به دکمه‌های اصلی اجازه‌ی دریافت این رویدادها را بدهند.
      .unique-start-button::before {
          /* ... */
          pointer-events: none; /* اضافه شده */
      }
      
      .analysis-button::before,
      .analysis-button::after {
          /* ... */
          pointer-events: none; /* اضافه شده */
      }
      
    2. تضمین اینکه دکمه‌های اصلی همچنان قابل کلیک باشند:

      • با تنظیم pointer-events به none برای عناصر شبه، اطمینان حاصل می‌شود که دکمه‌های اصلی بدون مشکل قابل کلیک هستند.
    3. اصلاح اسکریپت کلیک دکمه‌های تحلیل:

      • در این نسخه، نیازی به تغییرات بیشتر در اسکریپت نیست زیرا مشکل اصلی در CSS بود. اما اطمینان حاصل کرده‌ایم که افکت موج به درستی کار می‌کند.

    توضیحات تکمیلی:

    • انتخاب دقیق‌تر:

      • اگر در آینده از عناصر شبه بیشتری استفاده می‌کنید که نیازی به دریافت رویدادهای ماوس ندارند، همیشه مطمئن شوید که ویژگی pointer-events: none; به آن‌ها اضافه شده است.
    • بهبود عملکرد UX:

      • با اضافه کردن pointer-events: none;، انیمیشن‌ها و افکت‌های بصری همچنان جذاب باقی می‌مانند و در عین حال تعامل کاربران با دکمه‌ها بدون مشکل انجام می‌شود.

    امیدوارم این تغییرات مشکل شما را برطرف کنند. اگر همچنان با مشکلی مواجه هستید، لطفاً اطلاعات بیشتری ارائه دهید تا بتوانم بهتر کمک کنم.