index.wxss
2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/**index.wxss**/
/* 防止横向滚动 */
page {
width: 100%;
overflow-x: hidden;
box-sizing: border-box;
}
/* 动态背景样式 */
.bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
filter: blur(120px);
z-index: -1;
}
.ball {
position: absolute;
border-radius: 50%;
}
.ball-1 {
width: 400rpx;
height: 400rpx;
background-color: #4472c4;
animation: move-1 8s ease-in-out infinite;
}
.ball-2 {
width: 500rpx;
height: 500rpx;
background-color: #00b050;
animation: move-2 10s ease-in-out infinite;
}
@keyframes move-1 {
0% {
transform: translate(0, 0);
}
25% {
transform: translate(500rpx, 600rpx);
}
50% {
transform: translate(-300rpx, 1000rpx);
}
75% {
transform: translate(-400rpx, 400rpx);
}
100% {
transform: translate(0, 0);
}
}
@keyframes move-2 {
0% {
transform: translate(100rpx, 100rpx);
}
25% {
transform: translate(-500rpx, -200rpx);
}
50% {
transform: translate(400rpx, 800rpx);
}
75% {
transform: translate(600rpx, 200rpx);
}
100% {
transform: translate(100rpx, 100rpx);
}
}
.container-custom {
position: relative;
width: 100%;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
padding: 20rpx;
}
/* 主内容区 */
.main-content {
position: relative;
z-index: 2;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.title {
font-size: 48rpx;
font-weight: 600;
letter-spacing: 4rpx;
margin-bottom: 80rpx;
background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
background-size: 200% 100%;
-webkit-background-clip: text;
background-clip: text;
color: transparent;
animation: text-shine 3s linear infinite;
}
@keyframes text-shine {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
.nav-button {
padding: 24rpx 80rpx;
font-size: 32rpx;
font-weight: 600;
color: white;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 50rpx;
box-shadow: 0 12rpx 32rpx rgba(102, 126, 234, 0.4), inset 0 2rpx 0 rgba(255, 255, 255, 0.2);
transition: all 0.3s ease;
}
.nav-button:active {
transform: translateY(4rpx) scale(0.98);
box-shadow: 0 6rpx 16rpx rgba(102, 126, 234, 0.4);
}