css布局实现pc端ai数字永生亲人复活数字人落地页官网介绍代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现pc端ai数字永生亲人复活数字人落地页官网介绍代码
代码标签: css 布局 pc端 ai 数字 永生 亲人 复活 落地页 官网 介绍 数字人 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI数字人 - 永恒的记忆,重温温暖时光</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary-color: #6366f1;
--secondary-color: #8b5cf6;
--dark-color: #1e1b4b;
--light-color: #f8fafc;
--text-color: #334155;
--gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--gradient-soft: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
line-height: 1.6;
color: var(--text-color);
overflow-x: hidden;
}
/* 导航栏 */
.navbar {
position: fixed;
top: 0;
width: 100%;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
box-shadow: 0 2px 20px rgba(0,0,0,0.1);
z-index: 1000;
transition: all 0.3s ease;
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.2rem 2rem;
}
.logo {
font-size: 1.5rem;
font-weight: 700;
background: var(--gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.nav-menu {
display: flex;
list-style: none;
gap: 2rem;
}
.nav-menu a {
text-decoration: none;
color: var(--text-color);
font-weight: 500;
transition: color 0.3s;
position: relative;
}
.nav-menu a:hover {
color: var(--primary-color);
}
.nav-menu a::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 2px;
background: var(--gradient);
transition: width 0.3s;
}
.nav-menu a:hover::after {
width: 100%;
}
/* 英雄区 */
.hero {
margin-top: 80px;
min-height: 90vh;
background: var(--gradient);
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
background-size: 50px 50px;
animation: float 20s linear infinite;
}
@keyframes float {
0% { transform: translate(0, 0); }
100% { transform: translate(50px, 50px); }
}
.hero-content {
max-width: 1200px;
padding: 2rem;
text-align: center;
color: white;
position: relative;
z-index: 1;
}
.hero h1 {
font-size: 3.5rem;
margin-bottom: 1.5rem;
animation: fadeInUp 1s ease;
}
.hero p {
font-size: 1.3rem;
margin-bottom: 2.5rem;
opacity: 0.95;
animation: fadeInUp 1s ease 0.2s both;
}
.cta-buttons {
display: flex;
gap: 1.5rem;
justify-content: center;
animation: fadeInUp 1s ease 0.4s both;
}
.btn {
padding: 1rem 2.5rem;
border: none;
border-radius: 50px;
font-size: 1.1rem;
cursor: pointer;
transition: all 0.3s;
text-decoration: none;
display: inline-block;
font-weight: 600;
}
.btn-primary {
background: white;
color: var(--primary-color);
}
.btn-primary:hover {
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.btn-secondary {
background: transparent;
color: white;
border: 2px solid white;
}
.btn-secondary:hover {
background: white;
color: var(--primary-color);
}
@keyframes fadeInUp {
from {
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0