571 lines
12 KiB
SCSS
571 lines
12 KiB
SCSS
.page-container {
|
|
height: 100vh;
|
|
background-color: var(--bg-dark);
|
|
color: var(--text-main);
|
|
overflow: hidden;
|
|
position: relative;
|
|
|
|
// Ambient Light 1 (Cyan)
|
|
&::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: -10%;
|
|
left: -10%;
|
|
width: 60%;
|
|
height: 40%;
|
|
background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
|
|
filter: blur(80px);
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
// Ambient Light 2 (Green/Purple mix)
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 10%;
|
|
right: -10%;
|
|
width: 50%;
|
|
height: 40%;
|
|
background: radial-gradient(circle, rgba(189, 0, 255, 0.1) 0%, transparent 70%);
|
|
filter: blur(80px);
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
|
|
.content-scroll {
|
|
height: 100vh;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.scroll-inner {
|
|
width: 100%;
|
|
}
|
|
|
|
.header {
|
|
text-align: center;
|
|
padding: 80px 24px 60px; // 增加头部留白
|
|
position: relative;
|
|
|
|
.logo-box {
|
|
margin-bottom: 40px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
|
|
.logo-img {
|
|
width: 140px;
|
|
height: 140px;
|
|
margin-bottom: 20px;
|
|
filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.5));
|
|
animation: float 6s ease-in-out infinite;
|
|
}
|
|
|
|
.logo-text {
|
|
font-size: 48px;
|
|
font-weight: 900;
|
|
color: #fff;
|
|
letter-spacing: 8px;
|
|
text-shadow: 0 0 30px rgba(0, 240, 255, 0.7);
|
|
}
|
|
}
|
|
|
|
.title-container {
|
|
margin-bottom: 30px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 60px;
|
|
}
|
|
|
|
.title-text {
|
|
font-size: 40px;
|
|
font-weight: 800;
|
|
color: var(--primary-cyan);
|
|
text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
|
|
}
|
|
|
|
.cursor {
|
|
font-size: 40px;
|
|
color: #fff;
|
|
margin-left: 8px;
|
|
animation: blink 1s infinite;
|
|
}
|
|
|
|
.subtitle {
|
|
color: var(--text-secondary);
|
|
font-size: 28px;
|
|
line-height: 1.8; // 增加行高
|
|
display: block;
|
|
padding: 0 40px;
|
|
font-weight: 400;
|
|
letter-spacing: 1px;
|
|
}
|
|
}
|
|
|
|
@keyframes blink {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0; }
|
|
}
|
|
|
|
@keyframes float {
|
|
0%, 100% { transform: translateY(0); }
|
|
50% { transform: translateY(-10px); }
|
|
}
|
|
|
|
// News Ticker Styles
|
|
.news-section {
|
|
padding: 0 32px 40px;
|
|
position: relative;
|
|
z-index: 10;
|
|
|
|
.news-inner {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
backdrop-filter: blur(16px);
|
|
-webkit-backdrop-filter: blur(16px);
|
|
border-radius: 20px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
height: 80px;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 20px;
|
|
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.news-icon-box {
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-right: 16px;
|
|
|
|
.news-icon {
|
|
font-size: 32px;
|
|
animation: pulse-icon 2s infinite;
|
|
}
|
|
}
|
|
|
|
.news-swiper {
|
|
flex: 1;
|
|
height: 100%;
|
|
}
|
|
|
|
.news-item {
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.news-tag {
|
|
font-size: 20px;
|
|
font-weight: 800;
|
|
color: #000;
|
|
background: var(--primary-cyan);
|
|
padding: 4px 12px;
|
|
border-radius: 8px;
|
|
margin-right: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.news-title {
|
|
font-size: 26px;
|
|
color: #fff;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes pulse-icon {
|
|
0% { transform: scale(1); opacity: 1; }
|
|
50% { transform: scale(1.1); opacity: 0.8; }
|
|
100% { transform: scale(1); opacity: 1; }
|
|
}
|
|
|
|
// Activity Banner Styles
|
|
.activity-section {
|
|
padding-bottom: 60px;
|
|
|
|
.section-header {
|
|
padding: 0 32px;
|
|
margin-bottom: 30px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-end;
|
|
|
|
.section-title {
|
|
font-size: 36px;
|
|
font-weight: 800;
|
|
color: #fff;
|
|
text-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
|
|
}
|
|
|
|
.more-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 24px;
|
|
color: var(--text-secondary);
|
|
|
|
.arrow {
|
|
margin-left: 8px;
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
&:active .arrow {
|
|
transform: translateX(5px);
|
|
}
|
|
}
|
|
}
|
|
|
|
.activity-swiper {
|
|
height: 360px;
|
|
}
|
|
|
|
.activity-swiper-item {
|
|
padding: 0 12px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.activity-card {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 24px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
background: #111;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
|
|
border: 1px solid rgba(255,255,255,0.1);
|
|
|
|
.activity-img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.activity-overlay {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
padding: 24px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.activity-info {
|
|
transform: translateY(0);
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
.activity-status {
|
|
display: inline-block;
|
|
font-size: 20px;
|
|
color: #fff;
|
|
background: var(--primary-purple);
|
|
padding: 4px 12px;
|
|
border-radius: 8px;
|
|
margin-bottom: 12px;
|
|
align-self: flex-start;
|
|
box-shadow: 0 0 10px rgba(189, 0, 255, 0.4);
|
|
}
|
|
|
|
.activity-title {
|
|
font-size: 32px;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
margin-bottom: 8px;
|
|
line-height: 1.3;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 1;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.activity-time {
|
|
font-size: 24px;
|
|
color: rgba(255,255,255,0.7);
|
|
}
|
|
}
|
|
}
|
|
|
|
.product-grid {
|
|
padding: 0 32px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 48px; // 增加卡片间距
|
|
}
|
|
|
|
// 玻璃态卡片升级版
|
|
.card {
|
|
background: rgba(255, 255, 255, 0.03);
|
|
backdrop-filter: blur(24px);
|
|
-webkit-backdrop-filter: blur(24px);
|
|
border-radius: 32px;
|
|
overflow: hidden;
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
box-shadow:
|
|
0 20px 40px rgba(0, 0, 0, 0.4),
|
|
inset 0 0 0 1px rgba(255, 255, 255, 0.05); // 内描边增强质感
|
|
transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
position: relative;
|
|
|
|
// 高光反射效果
|
|
&::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 1px;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
&:active {
|
|
transform: scale(0.96);
|
|
box-shadow:
|
|
0 10px 20px rgba(0, 0, 0, 0.4),
|
|
0 0 30px rgba(0, 240, 255, 0.1); // 按压发光
|
|
border-color: rgba(0, 240, 255, 0.3);
|
|
}
|
|
|
|
&-cover {
|
|
height: 400px; // 加大图片区域
|
|
background: #111;
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
.card-img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.6s ease;
|
|
}
|
|
|
|
.placeholder-img {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: radial-gradient(circle at center, #1a1a1a, #050505);
|
|
|
|
.radar-scan {
|
|
width: 100px;
|
|
height: 100px;
|
|
border: 2px solid rgba(0, 240, 255, 0.3);
|
|
border-radius: 50%;
|
|
position: relative;
|
|
|
|
&::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 10px;
|
|
height: 10px;
|
|
background: var(--primary-cyan);
|
|
border-radius: 50%;
|
|
box-shadow: 0 0 10px var(--primary-cyan);
|
|
}
|
|
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 50%;
|
|
background: conic-gradient(from 0deg, transparent 0%, transparent 60%, rgba(0, 240, 255, 0.4) 100%);
|
|
animation: radar-spin 2s linear infinite;
|
|
}
|
|
}
|
|
}
|
|
|
|
.card-overlay {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 60%;
|
|
background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
|
|
}
|
|
}
|
|
|
|
&-body {
|
|
padding: 40px 32px;
|
|
}
|
|
|
|
&-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 20px;
|
|
|
|
.card-title {
|
|
font-size: 40px; // 加大标题
|
|
font-weight: 700;
|
|
color: #fff;
|
|
flex: 1;
|
|
margin-right: 20px;
|
|
line-height: 1.2;
|
|
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.price {
|
|
font-size: 36px;
|
|
color: var(--primary-cyan); // 统一用青色或根据产品类型变化
|
|
font-weight: 800;
|
|
text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
|
|
}
|
|
}
|
|
|
|
&-desc {
|
|
font-size: 26px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.6;
|
|
margin-bottom: 32px;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
margin-bottom: 40px;
|
|
|
|
.tag {
|
|
padding: 10px 24px;
|
|
border-radius: 16px;
|
|
font-size: 22px;
|
|
font-weight: 500;
|
|
letter-spacing: 0.5px;
|
|
|
|
&.cyan {
|
|
color: var(--primary-cyan);
|
|
background: rgba(0, 240, 255, 0.08);
|
|
border: 1px solid rgba(0, 240, 255, 0.2);
|
|
}
|
|
&.blue {
|
|
color: #3b82f6;
|
|
background: rgba(59, 130, 246, 0.08);
|
|
border: 1px solid rgba(59, 130, 246, 0.2);
|
|
}
|
|
&.purple {
|
|
color: var(--primary-purple);
|
|
background: rgba(189, 0, 255, 0.08);
|
|
border: 1px solid rgba(189, 0, 255, 0.2);
|
|
}
|
|
}
|
|
}
|
|
|
|
&-footer {
|
|
.btn-buy {
|
|
background: linear-gradient(90deg, var(--primary-green), var(--primary-cyan));
|
|
color: #000;
|
|
font-weight: 800;
|
|
font-size: 30px;
|
|
border-radius: 60px; // 更圆润
|
|
border: none;
|
|
height: 90px;
|
|
line-height: 90px;
|
|
box-shadow: 0 10px 30px rgba(0, 185, 107, 0.25);
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
// 流光效果
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
|
|
animation: shimmer 3s infinite;
|
|
}
|
|
|
|
&:active {
|
|
transform: scale(0.98);
|
|
box-shadow: 0 5px 15px rgba(0, 185, 107, 0.2);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@keyframes shimmer {
|
|
0% { left: -100%; }
|
|
20% { left: 100%; }
|
|
100% { left: 100%; }
|
|
}
|
|
|
|
@keyframes radar-spin {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.footer-spacer {
|
|
height: 120px;
|
|
}
|
|
|
|
// 骨架屏样式
|
|
.skeleton-wrapper {
|
|
padding: 0 32px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 48px;
|
|
}
|
|
|
|
.skeleton-card {
|
|
height: 700px;
|
|
background: rgba(255, 255, 255, 0.02);
|
|
border-radius: 32px;
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
overflow: hidden;
|
|
position: relative;
|
|
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
|
|
animation: skeleton-loading 1.5s infinite;
|
|
}
|
|
}
|
|
|
|
@keyframes skeleton-loading {
|
|
0% { transform: translateX(-100%); }
|
|
100% { transform: translateX(100%); }
|
|
}
|
|
|
|
// 列表入场动画
|
|
.fade-in-up {
|
|
animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
|
|
opacity: 0;
|
|
transform: translateY(40px);
|
|
}
|
|
|
|
@keyframes fadeInUp {
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|