747 lines
14 KiB
CSS
747 lines
14 KiB
CSS
/* 全局样式 */
|
|
:root {
|
|
--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);
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
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(--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 {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
height: 80px;
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.logo h1 {
|
|
font-size: 1.8rem;
|
|
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;
|
|
}
|
|
|
|
nav a {
|
|
text-decoration: none;
|
|
color: var(--text-color);
|
|
font-weight: 500;
|
|
font-size: 1.1rem;
|
|
position: relative;
|
|
padding: 0.5rem 0;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
nav a::before {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 2px;
|
|
background: var(--gradient-1);
|
|
transform: scaleX(0);
|
|
transform-origin: right;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
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;
|
|
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="%234F46E5" opacity="0.1"/></svg>') repeat;
|
|
animation: moveBackground 20s linear infinite;
|
|
}
|
|
|
|
@keyframes moveBackground {
|
|
from {
|
|
transform: translateX(0) translateY(0);
|
|
}
|
|
to {
|
|
transform: translateX(-100px) translateY(-100px);
|
|
}
|
|
}
|
|
|
|
.hero-content {
|
|
position: relative;
|
|
z-index: 1;
|
|
text-align: center;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.hero-content p {
|
|
font-size: 1.5rem;
|
|
color: var(--light-text);
|
|
margin-bottom: 2.5rem;
|
|
animation: fadeInUp 1s ease 0.2s backwards;
|
|
}
|
|
|
|
.hero-buttons {
|
|
display: flex;
|
|
gap: 1.5rem;
|
|
justify-content: center;
|
|
animation: fadeInUp 1s ease 0.4s backwards;
|
|
}
|
|
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* 按钮样式 */
|
|
.btn {
|
|
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 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(--gradient-1);
|
|
color: white;
|
|
box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--glass-background);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
color: var(--primary-color);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
border-color: var(--primary-color);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* 产品卡片样式 */
|
|
.products {
|
|
padding: 100px 0;
|
|
background: var(--background);
|
|
position: relative;
|
|
}
|
|
|
|
.section-title {
|
|
text-align: center;
|
|
font-size: 2.5rem;
|
|
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(320px, 1fr));
|
|
gap: 2.5rem;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.product-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;
|
|
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(-10px);
|
|
box-shadow: var(--shadow-xl);
|
|
}
|
|
|
|
.product-card:hover::before {
|
|
opacity: 0.05;
|
|
}
|
|
|
|
.product-icon {
|
|
width: 80px;
|
|
height: 80px;
|
|
background: var(--gradient-1);
|
|
border-radius: 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 2rem;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.product-icon i {
|
|
font-size: 2.5rem;
|
|
color: white;
|
|
}
|
|
|
|
.product-card h3 {
|
|
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: 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.product-features i {
|
|
color: var(--primary-color);
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.product-cta {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin-top: 2rem;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* 特性区域样式 */
|
|
.features {
|
|
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(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;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.feature-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.feature-icon {
|
|
width: 80px;
|
|
height: 80px;
|
|
background: var(--gradient-1);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 2rem;
|
|
}
|
|
|
|
.feature-icon i {
|
|
font-size: 2.5rem;
|
|
color: white;
|
|
}
|
|
|
|
.feature-card h3 {
|
|
font-size: 1.5rem;
|
|
margin-bottom: 1rem;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
/* CTA区域样式 */
|
|
.cta {
|
|
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: 3rem;
|
|
margin-bottom: 1.5rem;
|
|
position: relative;
|
|
}
|
|
|
|
.cta p {
|
|
font-size: 1.25rem;
|
|
margin-bottom: 2.5rem;
|
|
opacity: 0.9;
|
|
position: relative;
|
|
}
|
|
|
|
.cta .btn-large {
|
|
background: white;
|
|
color: var(--primary-color);
|
|
padding: 1rem 3rem;
|
|
font-size: 1.2rem;
|
|
position: relative;
|
|
}
|
|
|
|
/* 页脚样式 */
|
|
footer {
|
|
background: var(--dark-background);
|
|
padding: 100px 0 40px;
|
|
color: white;
|
|
}
|
|
|
|
.footer-grid {
|
|
display: grid;
|
|
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 {
|
|
list-style: none;
|
|
}
|
|
|
|
.footer-col ul li {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.footer-col a {
|
|
text-decoration: none;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
.footer-col a:hover {
|
|
color: white;
|
|
}
|
|
|
|
.social-links {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.social-links a {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.social-links a:hover {
|
|
background: var(--primary-color);
|
|
transform: translateY(-3px);
|
|
}
|
|
|
|
.copyright {
|
|
text-align: center;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
padding-top: 2rem;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
.hero-content h1 {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.hero-buttons {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.product-cta {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.footer-grid {
|
|
grid-template-columns: 1fr;
|
|
text-align: center;
|
|
}
|
|
|
|
.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);
|
|
}
|
|
}
|
|
|
|
/* 优惠券部分样式 */
|
|
.coupons {
|
|
padding: 4rem 0;
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
.section-desc {
|
|
text-align: center;
|
|
max-width: 800px;
|
|
margin: 0 auto 2rem;
|
|
color: #666;
|
|
}
|
|
|
|
.coupon-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 2rem;
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.coupon-card {
|
|
background-color: white;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
|
|
transition: transform 0.3s, box-shadow 0.3s;
|
|
border: 2px dashed #3498db;
|
|
position: relative;
|
|
}
|
|
|
|
.coupon-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 8px 25px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.coupon-content {
|
|
padding: 1.5rem;
|
|
position: relative;
|
|
}
|
|
|
|
.coupon-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.coupon-value {
|
|
font-size: 1.8rem;
|
|
font-weight: bold;
|
|
color: #e74c3c;
|
|
}
|
|
|
|
.coupon-type {
|
|
background-color: #3498db;
|
|
color: white;
|
|
padding: 0.3rem 0.8rem;
|
|
border-radius: 20px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.coupon-code {
|
|
background-color: #f0f0f0;
|
|
padding: 0.8rem;
|
|
text-align: center;
|
|
font-family: monospace;
|
|
font-size: 1.2rem;
|
|
font-weight: bold;
|
|
letter-spacing: 1px;
|
|
border-radius: 5px;
|
|
margin: 1rem 0;
|
|
border: 1px dashed #ccc;
|
|
user-select: all;
|
|
}
|
|
|
|
.coupon-date {
|
|
font-size: 0.85rem;
|
|
color: #777;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.btn-copy {
|
|
width: 100%;
|
|
background-color: #2ecc71;
|
|
border: none;
|
|
}
|
|
|
|
.btn-copy:hover {
|
|
background-color: #27ae60;
|
|
}
|
|
|
|
.coupon-note {
|
|
background-color: #f8f4e5;
|
|
padding: 0.8rem;
|
|
text-align: center;
|
|
font-size: 0.9rem;
|
|
color: #b58105;
|
|
}
|
|
|
|
.coupon-instructions {
|
|
max-width: 700px;
|
|
margin: 0 auto;
|
|
background-color: white;
|
|
padding: 2rem;
|
|
border-radius: 10px;
|
|
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
|
|
}
|
|
|
|
.coupon-instructions h3 {
|
|
text-align: center;
|
|
margin-bottom: 1.5rem;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.coupon-instructions ol {
|
|
margin-left: 1.5rem;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.coupon-instructions a {
|
|
color: #3498db;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.coupon-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
} |