css布局实现自适应响应式ai文生视频背景落地页官网介绍页代码
代码语言:html
所属分类:响应式
代码描述:css布局实现自适应响应式ai文生视频背景落地页官网介绍页代码
代码标签: css 布局 自适应 响应式 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>VisionCraft - AI视频生成平台</title>
<!-- 新增:引入 Bootstrap Icons CDN -->
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap-icons.1.11.3.css">
<style>
/* --- 全局与基础样式 --- */
:root {
--primary-color: #3d5afe; /* 主题蓝 */
--secondary-color: #0d1117; /* 深黑背景 */
--card-color: #161b22; /* 卡片背景 */
--text-color: #f0f6fc; /* 主要文字颜色 */
--text-secondary-color: #8b949e; /* 次要文字颜色 */
--border-color: #30363d;
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth; /* 启用平滑滚动 */
}
body {
font-family: 'Poppins', 'Microsoft YaHei', sans-serif;
background-color: var(--secondary-color);
color: var(--text-color);
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
h1, h2, h3 {
font-weight: 600;
}
h2 {
font-size: 2.5rem;
text-align: center;
margin-bottom: 50px;
}
section {
padding: 100px 0;
}
.btn {
display: inline-block;
padding: 14px 32px;
background: var(--primary-color);
color: #fff;
text-decoration: none;
border-radius: 50px;
font-weight: 600;
font-size: 1.1rem;
transition: transform 0.3s ease, background-color 0.3s ease;
}
.btn:hover {
transform: translateY(-3px);
background-color: #536dfe;
}
/* --- 头部导航 --- */
.header {
position: fixed;
top: 0;
left: 0;
width: 100%;
padding: 20px 0;
background-color: rgba(13, 17, 23, 0.8);
backdrop-filter: blur(10px);
z-index: 1000;
border-bottom: 1px solid var(--border-color);
}
.header .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 1.8rem;
font-weight: 700;
color: var(--text-color);
text-decoration: none;
}
.nav-links {
list-style: none;
display: flex;
}
.nav-links li {
margin-left: 30px;
}
.nav-links a {
co.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0