This commit is contained in:
hkyc
2025-03-13 17:53:21 +08:00
parent 433715b78a
commit 3a61bd1ddb
7 changed files with 1275 additions and 575 deletions

View File

@@ -1,12 +1,23 @@
/* 全局样式 */
:root {
--primary-color: #2563eb;
--secondary-color: #1e40af;
--text-color: #1f2937;
--light-text: #6b7280;
--background: #ffffff;
--light-background: #f3f4f6;
--border-color: #e5e7eb;
--primary-color: #4F46E5;
--primary-dark: #3730A3;
--primary-light: #818CF8;
--secondary-color: #06B6D4;
--accent-color: #10B981;
--text-color: #1F2937;
--light-text: #6B7280;
--background: #F8FAFC;
--dark-background: #1E293B;
--card-background: rgba(255, 255, 255, 0.9);
--glass-background: rgba(255, 255, 255, 0.7);
--border-color: rgba(255, 255, 255, 0.2);
--gradient-1: linear-gradient(135deg, #4F46E5, #06B6D4);
--gradient-2: linear-gradient(135deg, #3730A3, #0EA5E9);
--shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
--shadow-md: 0 4px 6px rgba(0,0,0,0.1);
--shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
--shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
}
* {
@@ -19,23 +30,28 @@ body {
font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
color: var(--text-color);
line-height: 1.6;
background: var(--background);
overflow-x: hidden;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
position: relative;
}
/* 导航栏样式更新 */
/* 导航栏样式 */
header {
background: var(--background);
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
background: var(--glass-background);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
transition: all 0.3s ease;
border-bottom: 1px solid var(--border-color);
}
header .container {
@@ -43,7 +59,6 @@ header .container {
justify-content: space-between;
align-items: center;
height: 80px;
padding: 0 2rem;
}
.logo {
@@ -53,18 +68,35 @@ header .container {
.logo h1 {
font-size: 1.8rem;
background: linear-gradient(45deg, #4F46E5, #2563EB);
background: var(--gradient-1);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-weight: 700;
position: relative;
}
.logo h1::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 100%;
height: 2px;
background: var(--gradient-1);
transform: scaleX(0);
transform-origin: right;
transition: transform 0.3s ease;
}
.logo h1:hover::after {
transform: scaleX(1);
transform-origin: left;
}
nav ul {
display: flex;
list-style: none;
gap: 2.5rem;
margin: 0;
padding: 0;
}
nav a {
@@ -74,385 +106,377 @@ nav a {
font-size: 1.1rem;
position: relative;
padding: 0.5rem 0;
transition: color 0.3s ease;
transition: all 0.3s ease;
}
nav a:hover, nav a.active {
color: var(--primary-color);
}
nav a::after {
nav a::before {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 0;
background-color: var(--primary-color);
transition: width 0.3s ease;
}
nav a:hover::after, nav a.active::after {
width: 100%;
}
/* 移动端菜单按钮样式 */
.menu-button {
display: none;
background: none;
border: none;
cursor: pointer;
padding: 0.5rem;
position: relative;
z-index: 1001;
width: 40px;
height: 40px;
}
.menu-button .menu-icon {
display: block;
width: 24px;
height: 2px;
background: var(--primary-color);
position: relative;
transition: all 0.3s ease;
background: var(--gradient-1);
transform: scaleX(0);
transform-origin: right;
transition: transform 0.3s ease;
}
.menu-button .menu-icon::before,
.menu-button .menu-icon::after {
nav a:hover::before,
nav a.active::before {
transform: scaleX(1);
transform-origin: left;
}
nav a:hover,
nav a.active {
background: var(--gradient-1);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
/* 英雄区样式 */
.hero {
padding: 180px 0 100px;
background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
width: 24px;
height: 2px;
background: var(--primary-color);
transition: all 0.3s ease;
}
.menu-button .menu-icon::before {
top: -8px;
}
.menu-button .menu-icon::after {
bottom: -8px;
}
.menu-button.active .menu-icon {
background: transparent;
}
.menu-button.active .menu-icon::before {
top: 0;
transform: rotate(45deg);
}
.menu-button.active .menu-icon::after {
bottom: 0;
transform: rotate(-45deg);
}
/* 蒙层样式 */
.overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
opacity: 0;
transition: opacity 0.3s ease;
z-index: 998;
background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="%234F46E5" opacity="0.1"/></svg>') repeat;
animation: moveBackground 20s linear infinite;
}
.overlay.active {
display: block;
opacity: 1;
@keyframes moveBackground {
from {
transform: translateX(0) translateY(0);
}
to {
transform: translateX(-100px) translateY(-100px);
}
}
@media (max-width: 768px) {
.menu-button {
display: flex;
align-items: center;
justify-content: center;
}
.hero-content {
position: relative;
z-index: 1;
text-align: center;
}
nav {
position: fixed;
top: 0;
right: 0;
width: 80%;
max-width: 300px;
height: 100vh;
background: white;
padding: 100px 2rem 2rem;
transform: translateX(100%);
transition: transform 0.3s ease;
z-index: 999;
box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}
.hero-content h1 {
font-size: 4rem;
margin-bottom: 1.5rem;
background: var(--gradient-1);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: fadeInUp 1s ease;
}
nav.active {
transform: translateX(0);
}
.hero-content p {
font-size: 1.5rem;
color: var(--light-text);
margin-bottom: 2.5rem;
animation: fadeInUp 1s ease 0.2s backwards;
}
nav ul {
flex-direction: column;
gap: 1.5rem;
}
.hero-buttons {
display: flex;
gap: 1.5rem;
justify-content: center;
animation: fadeInUp 1s ease 0.4s backwards;
}
nav a {
display: block;
font-size: 1.2rem;
padding: 0.75rem 0;
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
nav a::after {
display: none;
}
nav a:hover, nav a.active {
color: var(--primary-color);
padding-left: 1rem;
}
/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
nav {
background: white;
}
nav a {
color: var(--text-color);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* 按钮样式 */
.btn {
display: inline-block;
padding: 0.75rem 1.5rem;
border-radius: 0.5rem;
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 2rem;
border-radius: 0.75rem;
text-decoration: none;
font-weight: 500;
transition: all 0.3s;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.btn::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.1);
transform: translateX(-100%);
transition: transform 0.3s ease;
}
.btn:hover::before {
transform: translateX(0);
}
.btn-primary {
background: var(--primary-color);
background: var(--gradient-1);
color: white;
box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover {
background: var(--secondary-color);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}
.btn-secondary {
background: white;
background: var(--glass-background);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
color: var(--primary-color);
border: 2px solid var(--primary-color);
border: 1px solid var(--border-color);
}
.btn-secondary:hover {
background: var(--primary-color);
color: white;
}
.btn-large {
padding: 1rem 2rem;
font-size: 1.1rem;
}
.btn-outline {
border: 2px solid var(--border-color);
color: var(--text-color);
}
.btn-outline:hover {
border-color: var(--primary-color);
color: var(--primary-color);
}
/* 英雄区样式 */
.hero {
padding: 160px 0 80px;
background: linear-gradient(135deg, #f0f7ff 0%, #e8f2ff 100%);
text-align: center;
}
.hero-content h1 {
font-size: 3.5rem;
margin-bottom: 1rem;
color: var(--text-color);
}
.hero-content p {
font-size: 1.25rem;
color: var(--light-text);
margin-bottom: 2rem;
}
.hero-buttons {
display: flex;
gap: 1rem;
justify-content: center;
transform: translateY(-2px);
}
/* 产品卡片样式 */
.products {
padding: 100px 0;
background: var(--background);
position: relative;
}
.section-title {
text-align: center;
font-size: 2.5rem;
margin-bottom: 3rem;
}
.products {
padding: 80px 0;
background: var(--background);
margin-bottom: 4rem;
background: var(--gradient-1);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 2.5rem;
padding: 1rem;
}
.product-card {
background: white;
border-radius: 1rem;
padding: 2rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
transition: transform 0.3s;
background: var(--glass-background);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid var(--border-color);
border-radius: 1.5rem;
padding: 2.5rem;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.product-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--gradient-1);
opacity: 0;
transition: opacity 0.3s ease;
z-index: 0;
}
.product-card:hover {
transform: translateY(-5px);
transform: translateY(-10px);
box-shadow: var(--shadow-xl);
}
.product-card:hover::before {
opacity: 0.05;
}
.product-icon {
width: 64px;
height: 64px;
background: var(--primary-color);
width: 80px;
height: 80px;
background: var(--gradient-1);
border-radius: 1rem;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1.5rem;
margin-bottom: 2rem;
position: relative;
z-index: 1;
}
.product-icon i {
font-size: 2rem;
font-size: 2.5rem;
color: white;
}
.product-card h3 {
font-size: 1.5rem;
font-size: 1.8rem;
margin-bottom: 1rem;
position: relative;
z-index: 1;
}
.product-features {
list-style: none;
margin: 1.5rem 0;
position: relative;
z-index: 1;
}
.product-features li {
margin-bottom: 0.5rem;
margin-bottom: 1rem;
display: flex;
align-items: center;
gap: 0.5rem;
gap: 0.75rem;
}
.product-features i {
color: var(--primary-color);
font-size: 1.2rem;
}
.product-cta {
display: flex;
gap: 1rem;
margin-top: 1.5rem;
margin-top: 2rem;
position: relative;
z-index: 1;
}
/* 特性区域样式 */
.features {
padding: 80px 0;
background: var(--light-background);
padding: 100px 0;
background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
position: relative;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 3rem;
}
.feature-card {
background: var(--glass-background);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid var(--border-color);
border-radius: 1.5rem;
padding: 2.5rem;
text-align: center;
padding: 2rem;
transition: all 0.3s ease;
}
.feature-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-lg);
}
.feature-icon {
width: 80px;
height: 80px;
background: white;
background: var(--gradient-1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
margin: 0 auto 2rem;
}
.feature-icon i {
font-size: 2rem;
color: var(--primary-color);
font-size: 2.5rem;
color: white;
}
.feature-card h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
color: var(--text-color);
}
/* CTA区域样式 */
.cta {
padding: 80px 0;
background: var(--primary-color);
padding: 100px 0;
background: var(--gradient-1);
color: white;
text-align: center;
position: relative;
overflow: hidden;
}
.cta::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>') repeat;
animation: moveBackground 20s linear infinite;
}
.cta h2 {
font-size: 2.5rem;
margin-bottom: 1rem;
font-size: 3rem;
margin-bottom: 1.5rem;
position: relative;
}
.cta p {
font-size: 1.25rem;
margin-bottom: 2rem;
margin-bottom: 2.5rem;
opacity: 0.9;
position: relative;
}
.cta .btn-large {
background: white;
color: var(--primary-color);
}
.cta .btn-large:hover {
background: var(--light-background);
padding: 1rem 3rem;
font-size: 1.2rem;
position: relative;
}
/* 页脚样式 */
footer {
background: var(--light-background);
padding: 80px 0 40px;
background: var(--dark-background);
padding: 100px 0 40px;
color: white;
}
.footer-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 3rem;
margin-bottom: 3rem;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 4rem;
margin-bottom: 4rem;
}
.footer-col h3 {
color: white;
margin-bottom: 1.5rem;
font-size: 1.5rem;
}
.footer-col ul {
@@ -460,47 +484,47 @@ footer {
}
.footer-col ul li {
margin-bottom: 0.75rem;
margin-bottom: 1rem;
}
.footer-col a {
text-decoration: none;
color: var(--light-text);
color: rgba(255, 255, 255, 0.7);
transition: color 0.3s;
}
.footer-col a:hover {
color: var(--primary-color);
color: white;
}
.social-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
margin-top: 1.5rem;
}
.social-links a {
width: 40px;
height: 40px;
border-radius: 50%;
background: white;
background: rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
color: var(--primary-color);
color: white;
transition: all 0.3s;
}
.social-links a:hover {
background: var(--primary-color);
color: white;
transform: translateY(-3px);
}
.copyright {
text-align: center;
color: var(--light-text);
color: rgba(255, 255, 255, 0.5);
padding-top: 2rem;
border-top: 1px solid var(--border-color);
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* 响应式设计 */
@@ -513,12 +537,9 @@ footer {
font-size: 2rem;
}
.product-grid, .features-grid {
grid-template-columns: 1fr;
}
.hero-buttons {
flex-direction: column;
align-items: stretch;
}
.product-cta {
@@ -533,4 +554,64 @@ footer {
.social-links {
justify-content: center;
}
nav {
position: fixed;
top: 0;
right: 0;
width: 80%;
max-width: 300px;
height: 100vh;
background: var(--glass-background);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
padding: 100px 2rem 2rem;
transform: translateX(100%);
transition: transform 0.3s ease;
z-index: 999;
border-left: 1px solid var(--border-color);
}
nav.active {
transform: translateX(0);
}
nav ul {
flex-direction: column;
gap: 2rem;
}
nav a {
font-size: 1.2rem;
display: block;
}
.menu-button {
display: flex;
}
}
/* 动画效果 */
@keyframes float {
0% {
transform: translateY(0px);
}
50% {
transform: translateY(-10px);
}
100% {
transform: translateY(0px);
}
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
}
70% {
box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
}
}