Sure! I've made the requested changes to your HTML and CSS code:
- Updated the "Start" button link to the new internal URL.
- Modified the "Start" button animation to better represent the concept of changing face angles with AI.
- Removed the existing accordion questions and added two new ones with the provided content.
Here's the complete updated code:
<!DOCTYPE html>
<html lang="fa">
<head>
<meta charset="UTF-8">
<title>ربات تغییر زاویه چهره با هوش مصنوعی</title>
<style>
/* کلیات صفحه */
body {
background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
min-height: 100vh;
margin: 0;
padding: 0; /* پدینگ حذف شده */
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
direction: rtl; /* تنظیم جهت متن به راست */
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
overflow: auto;
}
/* استایل بخش انیمیشن گالری */
.ai-animation-gallery {
padding: 20px;
width: 100%;
max-width: 800px;
text-align: center;
}
.ai-animation-gallery .section {
margin: 0;
text-align: center;
}
/* استایل دکمه شروع با انیمیشن تغییر زاویه چهره با هوش مصنوعی */
.gradient-button {
display: flex;
align-items: center;
justify-content: center;
position: relative;
background: linear-gradient(135deg, #f77062, #fe5196, #9aafe9, #f77062);
background-size: 400% 400%;
animation: gradientShift 10s ease infinite, rotateBackground 20s linear infinite;
color: white;
border-radius: 20px;
padding: 15px 30px;
text-align: center;
display: inline-flex;
font-weight: bold;
box-shadow: rgba(0, 0, 0, 0.3) 4px 4px 15px, rgba(255, 255, 255, 0.4) -4px -4px 15px;
cursor: pointer;
border: none;
margin: 0;
text-decoration: none;
transition: transform 0.3s ease;
overflow: hidden;
font-size: 18px;
}
.gradient-button:hover {
transform: scale(1.05);
}
/* انیمیشن تغییر گرادیان */
@keyframes gradientShift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
/* انیمیشن چرخش پسزمینه برای نمایش تغییر زاویه */
@keyframes rotateBackground {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* افکت درخشان */
.gradient-button::after {
content: '';
position: absolute;
top: 0;
left: -75%;
width: 50%;
height: 100%;
background: rgba(255, 255, 255, 0.2);
transform: skewX(-20deg);
animation: shimmer 3s infinite;
}
@keyframes shimmer {
0% {
left: -75%;
}
50% {
left: 125%;
}
100% {
left: 125%;
}
}
/* نماد AI ساده با CSS */
.ai-icon {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border-radius: 50%;
background: white;
font-size: 14px;
font-weight: bold;
color: #f77062;
margin-left: 10px;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(247, 112, 98, 0.7);
}
70% {
box-shadow: 0 0 0 10px rgba(247, 112, 98, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(247, 112, 98, 0);
}
}
.ai-animation-gallery img {
max-width: 100%;
height: auto;
border-radius: 10px;
margin: 15px 0;
}
/* استایل آکوردئون */
.accordion {
max-width: 800px;
width: 100%;
background: #ffffff;
padding: 30px;
border-radius: 12px;
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
animation: fadeIn 1s ease-out;
margin-top: 20px;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-20px); }
to { opacity: 1; transform: translateY(0); }
}
.accordion-item {
border-bottom: 1px solid #e2e8f0;
overflow: hidden;
}
.accordion-header {
background: none;
border: none;
outline: none;
padding: 20px;
width: 100%;
text-align: right;
font-size: 18px;
font-weight: 600;
color: #2d3748;
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
transition: background 0.3s ease, color 0.3s ease;
position: relative;
}
.accordion-header::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: #3182ce;
transition: width 0.3s ease;
}
.accordion-header:hover {
color: #3182ce;
}
.accordion-header.active {
background: #f0f4f8;
}
.accordion-header.active::after {
width: 100%;
}
.chevron {
transition: transform 0.3s ease, color 0.3s ease;
font-size: 20px;
color: #a0aec0;
}
.accordion-header.active .chevron {
transform: rotate(180deg);
color: #3182ce;
}
.accordion-content {
max-height: 0;
opacity: 0;
transform: translateY(-20px);
overflow: hidden;
transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
background-color: #f7fafc;
padding: 0 20px;
border-radius: 0 0 12px 12px;
}
.accordion-content.active {
max-height: 1000px;
opacity: 1;
transform: translateY(0);
padding: 20px;
}
/* استایل ویدیو داخل آکوردئون */
.accordion-content video {
width: 100%;
max-width: 800px;
height: auto;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
display: block;
margin: 0 auto; /* مرکز چین کردن ویدیو */
}
/* واکنشگرایی برای ویدیو */
@media (max-width: 600px) {
.accordion-content video {
width: 100%;
height: auto;
}
}
.accordion-content video:hover {
transform: scale(1.02);
}
/* بهبود پاسخها برای متون طولانی */
.accordion-content p {
text-align: right;
margin: 20px 0;
color: #4a5568;
line-height: 1.6;
transition: color 0.3s ease;
}
.accordion-content p:hover {
color: #2d3748;
}
/* انیمیشن مجزای ورود متن */
.accordion-content p {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.6s ease, transform 0.6s ease;
}
.accordion-content.active p {
opacity: 1;
transform: translateY(0);
}
/* رسانههای واکنشگرا */
@media (max-width: 600px) {
.accordion {
padding: 20px;
}
.accordion-header {
font-size: 16px;
}
.chevron {
font-size: 18px;
}
}
</style>
</head>
<body>
<div class="ai-animation-gallery">
<!-- بخش شروع -->
<div class="section">
<a href="#/nav/online/news/getSingle/1149635/eyJpdiI6IlZ4ZzFnZjVUenB5S0llVzU4dm1lWXc9PSIsInZhbHVlIjoidkRFY0NSTUNsZ282KzhaN0hGMWQ1YVZNNWNLRXN2cHNTWmZlMkpSbWhQcUduczEvOVFJOGF4a2lZYzVPK2t0OSIsIm1hYyI6Ijg1MTdkNGFlMWU5ZTM5M2FhZGY0MTI3ZGI4ZTZlMTA4ZjhiYmY5ZjJlNjJjOGIzOTNkM2M3ZTM5NTZkZDNkYWMiLCJ0YWciOiIifQ==/17646733" class="gradient-button">
شروع <span class="ai-icon">AI</span>
</a>
<h2 style="text-align: center;">
<span style="font-size: 16pt;">ربات تغییر زاویه چهره با</span>
<span style="font-size: 16pt;"><span style="color: #008080;">هوش مصنوعی</span></span>
</h2>
<p style="text-align: center;">
<span style="font-size: 10.6667px;">با این ربات شگفت زده شو‌! ویدیو آموزشی پایین رو ببین.</span>
</p>
</div>
</div>
<div class="accordion">
<!-- سوال جدید ۱ -->
<div class="accordion-item">
<button class="accordion-header">
<span>🤖 این ربات چیکار میکنه؟</span>
<span class="chevron">▼</span>
</button>
<div class="accordion-content">
<p>این ربات با استفاده از هوش مصنوعی قابلیتهای متنوعی برای تغییر زاویه و ویژگیهای چهره شما دارد:</p>
<ul style="text-align: right; margin: 10px 0; padding-right: 20px;">
<li>اضافه کردن حالتهای غمگین، تعجب و شگفتزده</li>
<li>اضافه کردن لبخند به تصاویر</li>
<li>چرخش بالا و پایین صورت</li>
<li>چرخش چپ یا راست کردن صورت</li>
<li>چرخش گردن</li>
<li>اضافه کردن چشم به عکس</li>
<li>اضافه کردن دندان به عکس</li>
<li>راست یا چپ کردن چشمها در حالت دیداری</li>
<li>بزرگ یا کوچک کردن چشمها و دهان</li>
<li>باز و بسته کردن دهان و دادن حالت تعجب</li>
<li>تغییر لبها و ابرو</li>
</ul>
<p>برای دیدن نتایج این ابزار، ویدیو آموزشی پایین را تماشا کنید.</p>
</div>
</div>
<!-- سوال جدید ۲ -->
<div class="accordion-item">
<button class="accordion-header">
<span>💾 چجوری تصاویر رو ذخیره کنم؟</span>
<span class="chevron">▼</span>
</button>
<div class="accordion-content">
<p>بعد از اعمال حالت دلخواه به تصویر:</p>
<ol style="text-align: right; margin: 10px 0; padding-right: 20px;">
<li>از صفحه اسکرینشات بگیرید.</li>
<li>تصویر گرفته شده را به صورت دلخواه برش دهید.</li>
</ol>
<p>توجه داشته باشید که تغییرات بهصورت لحظهای اتفاق میافتند، لذا بلافاصله بعد از ایجاد تغییر، اسکرینشات بگیرید.</p>
</div>
</div>
<!-- ویدیو آموزشی -->
<div class="accordion-item">
<button class="accordion-header">
<span>🎥 ویدیو آموزشی</span>
<span class="chevron">▼</span>
</button>
<div class="accordion-content">
<video width="300" height="150" controls>
<source src="https://uploadkon.ir/uploads/fe4608_24XiaoYing-Video-1731070946076-HD.mp4" type="video/mp4" />
مرورگر شما از تگ ویدیو پشتیبانی نمیکند.
</video>
</div>
</div>
</div>
<script>
// اسکریپت فعالسازی آکوردئون
const accordionHeaders = document.querySelectorAll('.accordion-header');
accordionHeaders.forEach(header => {
header.addEventListener('click', () => {
const activeHeader = document.querySelector('.accordion-header.active');
// بستن آکوردئون فعلی که باز است
if (activeHeader && activeHeader !== header) {
activeHeader.classList.remove('active');
activeHeader.nextElementSibling.classList.remove('active');
}
// باز یا بسته کردن آکوردئون کلیک شده
header.classList.toggle('active');
const accordionContent = header.nextElementSibling;
accordionContent.classList.toggle('active');
});
});
</script>
</body>
</html>
توضیحات تغییرات:
-
بهروزرسانی لینک دکمه شروع:
- لینک
href دکمه "شروع" به لینک جدید داخلی شما تغییر داده شده است.
-
تغییر انیمیشن دکمه شروع:
- علاوه بر انیمیشن تغییر گرادیان (
gradientShift)، یک انیمیشن چرخش به پسزمینه دکمه افزوده شده است تا مفهوم تغییر زاویه چهره با هوش مصنوعی بهتر نمایش داده شود.
-
بهروزرسانی بخش آکوردئون:
- تمام سوالات قبلی و توضیحات آنها حذف شدهاند.
- دو سوال جدید "این ربات چیکار میکنه؟" و "چجوری تصاویر رو ذخیره کنم؟" به صورت مشابه با سوالات قبلی اضافه شدهاند.
- محتوای هر سوال به طور کامل با توجه به درخواست شما بهروزرسانی شده است.
- ویدیو آموزشی نیز در آخرین آکوردئون باقی مانده است.
-
بهینهسازی کلی:
- افزودن لیستهای مرتب (unordered و ordered lists) برای خوانایی بهتر محتوا.
- حفظ واکنشگرایی و استایلهای مناسب برای دستگاههای مختلف.
امیدوارم این تغییرات مورد پسند شما باشد! اگر نیاز به اصلاحات بیشتری دارید، لطفاً اطلاع دهید.