<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>AI主题小调查</title>
<style>
body {
background-color: #f0f0f0;
margin: 0;
padding: 0;
}
.banner img {
display: block;
width: 100%;
height: 400px;
object-fit: cover;
box-shadow: 0 4px 12px rgba(0, 150, 255, 0.15);
/* 核心淡入动画配置 /
opacity: 0;
animation: fadeIn 1.2s ease-out forwards;
}
/ 自定义淡入动画关键帧 /
@keyframes fadeIn {
0% {
opacity: 0;
transform: translateY(15px);
filter: blur(4px);
}
100% {
opacity: 1;
transform: translateY(0);
filter: blur(0);
}
}
.title {
margin: 60px 0;
text-align: center;
/ 标题延迟淡入,和图片形成层次感 /
opacity: 0;
animation: fadeIn 1s ease-out 0.3s forwards;
}
.title h1 {
font-size: 30px;
margin: 0;
color: #007acc;
}
fieldset {
border: none;
padding: 0;
text-align: center;
/ 表单区域延迟淡入,页面加载节奏更流畅 */
opacity: 0;
animation: fadeIn 1s ease-out 0.6s forwards;
}
legend {
display: none;
}
.form-item {
margin: 20px 0;
}
input {
padding: 6px;
font-size: 14px;
border: 1px solid #007acc;
border-radius: 4px;
}
input[type="submit"] {
background-color: #007acc;
color: white;
cursor: pointer;
padding: 8px 24px;
border: none;
transition: all 0.3s ease;
}
input[type="submit"]:hover {
background-color: #005a99;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 90, 153, 0.3);
}
</style>
</head>
<body>
<div class="banner">
<!-- 精准匹配你截图里的图片完整本地路径 -->
<img src="file:///C:/Users/Administrator/Desktop/8/img.jpg" alt="全球互联AI科技主题" loading="eager">
</div>
</body>
</html>