提示词
代码生成角色:你是一位经验丰富前端开发者。任务:编写一个公司前端介绍界面。目标/限制:使用html格特色式,要求风格有特色
代码
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>创新科技 - 未来由我们创造</title>
<style>
:root {
--primary-color: #3498db;
--secondary-color: #2ecc71;
--accent-color: #e74c3c;
--dark-color: #2c3e50;
--light-color: #ecf0f1;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: var(--light-color);
color: var(--dark-color);
overflow-x: hidden;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* 特色导航栏 */
.navbar {
background-color: rgba(44, 62, 80, 0.9);
padding: 20px 0;
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
transition: all 0.3s ease;
}
.navbar-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
color: white;
font-size: 28px;
font-weight: bold;
text-decoration: none;
display: flex;
align-items: center;
}
.logo-text {
background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-left: 10px;
}
.nav-links {
display: flex;
list-style: none;
}
.nav-links li {
margin-left: 30px;
}
.nav-links a {
color: white;
text-decoration: none;
font-size: 16px;
position: relative;
padding: 5px 0;
}
.nav-links a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: var(--secondary-color);
transition: width 0.3s ease;
}
.nav-links a:hover::after {
width: 100%;
}
/* 动态英雄区域 */
.hero {
height: 100vh;
display: flex;
align-items: center;
background: linear-gradient(135deg, rgba(52, 152, 219, 0.8) 0%, rgba(46, 204, 113, 0.8) 100%);
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url('/api/placeholder/1200/800') center/cover no-repeat;
opacity: 0.2;
animation: pulse 8s infinite alternate;
}
@keyframes pulse {
0% {
transform: scale(1);
}
100% {
transform: scale(1.05);
}
}
.hero-content {
position: relative;
z-index: 1;
max-width: 800px;
margin: 0 auto;
text-align: center;
color: white;
}
.hero h1 {
font-size: 3.5rem;
margin-bottom: 20px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.hero p {
font-size: 1.5rem;
margin-bottom: 40px;
line-height: 1.6;
}
.cta-button {
display: inline-block;
background-color: var(--accent-color);
color: white;
padding: 12px 30px;
border-radius: 50px;
text-decoration: none;
font-size: 1.2rem;
transition: all 0.3s ease;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.cta-button:hover {
background-color: #c0392b;
transform: translateY(-3px);
box-shadow: 0 7px 15px rgba(0, 0, 0, 0.3);
}
/* 特色服务区域 */
.services {
padding: 100px 0;
background-color: white;
}
.section-title {
text-align: center;
margin-bottom: 60px;
position: relative;
}
.section-title h2 {
font-size: 2.5rem;
display: inline-block;
padding-bottom: 10px;
position: relative;
}
.section-title h2::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 4px;
background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 40px;
}
.service-card {
background-color: white;
border-radius: 10px;
padding: 40px 30px;
text-align: center;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
position: relative;
z-index: 1;
overflow: hidden;
}
.service-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 0;
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
transition: all 0.5s ease;
z-index: -1;
opacity: 0.9;
}
.service-card:hover {
transform: translateY(-15px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
color: white;
}
.service-card:hover::before {
height: 100%;
}
.service-card i {
font-size: 50px;
color: var(--primary-color);
margin-bottom: 25px;
transition: all 0.3s ease;
}
.service-card:hover i {
color: white;
}
.service-card h3 {
font-size: 24px;
margin-bottom: 15px;
}
.service-card p {
font-size: 16px;
line-height: 1.6;
}
/* 关于我们区域 */
.about {
padding: 100px 0;
background-color: var(--light-color);
position: relative;
overflow: hidden;
}
.about::after {
content: '';
position: absolute;
bottom: -150px;
right: -150px;
width: 300px;
height: 300px;
border-radius: 50%;
background: radial-gradient(circle, var(--primary-color) 0%, rgba(52, 152, 219, 0) 70%);
opacity: 0.3;
}
.about-content {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 50px;
}
.about-image {
flex: 1;
min-width: 300px;
position: relative;
}
.about-image img {
width: 100%;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.about-image::before {
content: '';
position: absolute;
top: -20px;
left: -20px;
width: 100%;
height: 100%;
border: 5px solid var(--secondary-color);
border-radius: 10px;
z-index: -1;
}
.about-text {
flex: 1;
min-width: 300px;
}
.about-text h2 {
font-size: 2.5rem;
margin-bottom: 20px;
position: relative;
display: inline-block;
padding-bottom: 10px;
}
.about-text h2::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 80px;
height: 4px;
background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}
.about-text p {
font-size: 1.1rem;
line-height: 1.8;
margin-bottom: 20px;
color: #555;
}
/* 互动团队区域 */
.team {
padding: 100px 0;
background-color: white;
}
.team-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
}
.team-member {
background-color: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
}
.team-member:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.member-image {
position: relative;
overflow: hidden;
height: 300px;
}
.member-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: all 0.5s ease;
}
.team-member:hover .member-image img {
transform: scale(1.1);
}
.member-info {
padding: 25px 20px;
text-align: center;
}
.member-info h3 {
font-size: 1.5rem;
margin-bottom: 5px;
}
.member-info span {
display: block;
color: var(--primary-color);
margin-bottom: 15px;
}
.social-links {
display: flex;
justify-content: center;
gap: 15px;
}
.social-links a {
display: inline-flex;
align-items: center;
justify-content: center;
width: 35px;
height: 35px;
background-color: var(--light-color);
color: var(--dark-color);
border-radius: 50%;
transition: all 0.3s ease;
}
.social-links a:hover {
background-color: var(--primary-color);
color: white;
}
/* 联系区域 */
.contact {
padding: 100px 0;
background: linear-gradient(135deg, var(--dark-color) 0%, #34495e 100%);
color: white;
}
.contact-content {
display: flex;
flex-wrap: wrap;
gap: 50px;
}
.contact-info {
flex: 1;
min-width: 300px;
}
.contact-info h2 {
font-size: 2.5rem;
margin-bottom: 30px;
position: relative;
display: inline-block;
padding-bottom: 10px;
}
.contact-info h2::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 80px;
height: 4px;
background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}
.contact-info p {
font-size: 1.1rem;
line-height: 1.8;
margin-bottom: 30px;
}
.contact-details {
margin-bottom: 30px;
}
.contact-item {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.contact-item i {
width: 40px;
height: 40px;
background-color: rgba(255, 255, 255, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 15px;
font-size: 16px;
}
.contact-form {
flex: 1;
min-width: 300px;
background-color: white;
padding: 40px;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: var(--dark-color);
}
.form-control {
width: 100%;
padding: 12px 15px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 16px;
transition: all 0.3s ease;
}
.form-control:focus {
border-color: var(--primary-color);
outline: none;
box-shadow: 0 0 10px rgba(52, 152, 219, 0.1);
}
textarea.form-control {
resize: vertical;
min-height: 150px;
}
.submit-btn {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
color: white;
padding: 12px 30px;
border: none;
border-radius: 50px;
font-size: 16px;
cursor: pointer;
transition: all 0.3s ease;
}
.submit-btn:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* 动态页脚 */
.footer {
background-color: var(--dark-color);
color: white;
padding: 60px 0 30px;
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 40px;
margin-bottom: 40px;
}
.footer-column h3 {
font-size: 1.5rem;
margin-bottom: 25px;
position: relative;
display: inline-block;
padding-bottom: 10px;
}
.footer-column h3::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 50px;
height: 3px;
background: var(--primary-color);
}
.footer-links {
list-style: none;
}
.footer-links li {
margin-bottom: 12px;
}
.footer-links a {
color: #bdc3c7;
text-decoration: none;
transition: all 0.3s ease;
display: inline-block;
}
.footer-links a:hover {
color: var(--primary-color);
transform: translateX(5px);
}
.newsletter p {
margin-bottom: 20px;
color: #bdc3c7;
line-height: 1.6;
}
.newsletter-form {
display: flex;
}
.newsletter-input {
flex: 1;
padding: 12px 15px;
border: none;
border-radius: 5px 0 0 5px;
font-size: 14px;
}
.newsletter-btn {
background-color: var(--primary-color);
color: white;
border: none;
padding: 0 20px;
border-radius: 0 5px 5px 0;
cursor: pointer;
transition: all 0.3s ease;
}
.newsletter-btn:hover {
background-color: #2980b9;
}
.copyright {
text-align: center;
padding-top: 30px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
color: #bdc3c7;
font-size: 14px;
}
/* 响应式设计 */
@media (max-width: 768px) {
.navbar-content {
flex-direction: column;
align-items: center;
}
.nav-links {
margin-top: 20px;
}
.nav-links li {
margin: 0 10px;
}
.hero h1 {
font-size: 2.5rem;
}
.hero p {
font-size: 1.2rem;
}
.about-content {
flex-direction: column;
}
.contact-content {
flex-direction: column;
}
}
/* 动画效果 */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.fadeIn {
animation: fadeIn 1s ease forwards;
}
.delay-1 {
animation-delay: 0.2s;
}
.delay-2 {
animation-delay: 0.4s;
}
.delay-3 {
animation-delay: 0.6s;
}
</style>
</head>
<body>
<!-- 导航栏 -->
<nav class="navbar">
<div class="container navbar-content">
<a href="#" class="logo">
<span class="logo-text">创新科技</span>
</a>
<ul class="nav-links">
<li><a href="#home">首页</a></li>
<li><a href="#services">服务</a></li>
<li><a href="#about">关于我们</a></li>
<li><a href="#team">团队</a></li>
<li><a href="#contact">联系我们</a></li>
</ul>
</div>
</nav>
<!-- 英雄区域 -->
<section class="hero" id="home">
<div class="container hero-content">
<h1 class="fadeIn">未来科技,从我们开始</h1>
<p class="fadeIn delay-1">我们是一家致力于创新技术的领先企业,用卓越的解决方案改变世界</p>
<a href="#contact" class="cta-button fadeIn delay-2">立即联系</a>
</div>
</section>
<!-- 服务区域 -->
<section class="services" id="services">
<div class="container">
<div class="section-title">
<h2>我们的服务</h2>
</div>
<div class="services-grid">
<div class="service-card">
<i>🔍</i>
<h3>数据分析</h3>
<p>利用先进的算法和工具,从您的数据中挖掘有价值的见解,帮助您做出明智的业务决策。</p>
</div>
<div class="service-card">
<i>💻</i>
<h3>软件开发</h3>
<p>从概念到部署,我们的专业团队提供全方位的软件开发服务,满足您的各种业务需求。</p>
</div>
<div class="service-card">
<i>🌐</i>
<h3>云端解决方案</h3>
<p>帮助您的业务迁移到云端,提高效率,降低成本,确保数据安全和业务连续性。</p>
</div>
<div class="service-card">
<i>📱</i>
<h3>移动应用开发</h3>
<p>打造功能强大、用户友好的移动应用,提升您的品牌形象和用户体验。</p>
</div>
</div>
</div>
</section>
<!-- 关于我们 -->
<section class="about" id="about">
<div class="container">
<div class="about-content">
<div class="about-image">
<img src="/api/placeholder/600/400" alt="关于我们" />
</div>
<div class="about-text">
<h2>关于我们</h2>
<p>创新科技成立于2010年,是一家专注于数字化转型的技术公司。我们的使命是通过创新的技术解决方案,帮助企业实现数字化转型,提升竞争力。</p>
<p>十多年来,我们已经服务了超过200家企业,涵盖金融、教育、医疗、零售等多个行业,凭借专业的团队和卓越的服务赢得了客户的信赖。</p>
<p>我们相信技术的力量,也相信人与技术的完美结合。我们不仅提供技术解决方案,更致力于与客户建立长期合作关系,共同成长。</p>
</div>
</div>
</div>
</section>
<!-- 团队介绍 -->
<section class="team" id="team">
<div class="container">
<div class="section-title">
<h2>我们的团队</h2>
</div>
<div class="team-grid">
<div class="team-member">
<div class="member-image">
<img src="/api/placeholder/400/400" alt="张明 - CEO" />
</div>
<div class="member-info">
<h3>张明</h3>
<span>首席执行官</span>
<div class="social-links">
<a href="#"><span>🔗</span></a>
<a href="#"><span>🔗</span></a>
<a href="#"><span>🔗</span></a>
</div>
</div>
</div>
<div class="team-member">
<div class="member-image">
<img src="/api/placeholder/400/400" alt="李婷 - CTO" />
</div>
<div class="member-info">
<h3>李婷</h3>
<span>首席技术官</span>
<div class="social-links">
<a href="#"><span>🔗</span></a>
<a href="#"><span>🔗</span></a>
<a href="#"><span>🔗</span></a>
</div>
</div>
</div>
<div class="team-member">
<div class="member-image">
<img src="/api/placeholder/400/400" alt="王强 - 设计总监" />
</div>
<div class="member-info">
<h3>王强</h3>
<span>设计总监</span>
<div class="social-links">
<a href="#"><span>🔗</span></a>
<a href="#"><span>🔗</span></a>
<a href="#"><span>🔗</span></a>
</div>
</div>
</div>
<div class="team-member">
<div class="member-image">
<img src="/api/placeholder/400/400" alt="陈静 - 营销总监" />
</div>
<div class="member-info">
<h3>陈静</h3>
<span>营销总监</span>
<div class="social-links">
<a href="#"><span>🔗</span></a>
<a href="#"><span>🔗</span></a>
<a href="#"><span>🔗</span></a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- 联系我们 -->
<section class="contact" id="contact">
<div class="container">
<div class="contact-content">
<div class="contact-info">
<h2>联系我们</h2>
<p>无论您有任何问题或需求,都欢迎随时联系我们。我们的团队将竭诚为您服务,为您提供最佳的解决方案。</p>
<div class="contact-details">
<div class="contact-item">
<i>📍</i>
<span>北京市海淀区科技园区88号</span>
</div>
<div class="contact-item">
<i>📞</i>
<span>+86 010-12345678</span>
</div>
<div class="contact-item">
<i>✉️</i>
<span>info@innovtech.com</span>
</div>
</div>
</div>
<div class="contact-form">
<form>
<div class="form-group">
<label for="name">姓名</label>
<input type="text" id="name" class="form-control" placeholder="请输入您的姓名">
</div>
<div class="form-group">
<label for="email">邮箱</label>
<input type="email" id="email" class="form-control" placeholder="请输入您的邮箱">
</div>
<div class="form-group">
<label for="subject">主题</label>
<input type="text" id="subject" class="form-control" placeholder="请输入主题">
</div>
<div class="form-group">
<label for="message">留言</label>
<textarea id="message" class="form-control" placeholder="请输入您的留言"></textarea>
</div>
<button type="submit" class="submit-btn">发送留言</button>
</form>
</div>
</div>
</div>
</section>
<!-- 页脚 -->
<footer class="footer">
<div class="container">
<div class="footer-content">
<div class="footer-column">
<h3>创新科技</h3>
<p>我们致力于通过创新的技术解决方案,帮助企业实现数字化转型,提升竞争力。</p>
</div>
<div class="footer-column">
<h3>快速链接</h3>
<ul class="footer-links">
<li><a href="#home">首页</a></li>
<li><a href="#services">服务</a></li>
<li><a href="#about">关于我们</a></li>
<li><a href="#team">团队</a></li>
<li><a href="#contact">联系我们</a></li>
</ul>
</div>
<div class="footer-column">
<h3>我们的服务</h3>
<ul class="footer-links">
<li><a href="#">数据分析</a></li>
<li><a href="#">软件开发</a></li>
<li><a href="#">云端解决方案