-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
175 lines (148 loc) · 3.3 KB
/
Copy pathmain.css
File metadata and controls
175 lines (148 loc) · 3.3 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/* 重置和基础样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif;
background: #000;
color: white;
overflow: hidden;
}
/* 动画定义 */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideIn {
from { transform: translateY(-20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
@keyframes countUp {
from { transform: scale(1); }
50% { transform: scale(1.2); }
to { transform: scale(1); }
}
/* 通用组件样式 */
.glass-effect {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 12px;
}
.button-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 12px 24px;
border-radius: 8px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.button-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.button-primary:active {
transform: translateY(0);
}
.button-secondary {
background: rgba(255, 255, 255, 0.1);
color: white;
border: 1px solid rgba(255, 255, 255, 0.2);
padding: 10px 20px;
border-radius: 6px;
font-size: 14px;
cursor: pointer;
transition: all 0.2s ease;
}
.button-secondary:hover {
background: rgba(255, 255, 255, 0.2);
}
/* 分数动画 */
.score-animation {
animation: countUp 0.3s ease-out;
}
/* 反馈动画 */
.feedback-animation {
animation: slideIn 0.3s ease-out;
}
/* 加载动画 */
.loading-dots {
display: inline-block;
position: relative;
width: 80px;
height: 20px;
}
.loading-dots div {
position: absolute;
top: 8px;
width: 10px;
height: 10px;
border-radius: 50%;
background: #4CAF50;
animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.loading-dots div:nth-child(1) {
left: 8px;
animation: loading-dots1 0.6s infinite;
}
.loading-dots div:nth-child(2) {
left: 8px;
animation: loading-dots2 0.6s infinite;
}
.loading-dots div:nth-child(3) {
left: 32px;
animation: loading-dots2 0.6s infinite;
}
.loading-dots div:nth-child(4) {
left: 56px;
animation: loading-dots3 0.6s infinite;
}
@keyframes loading-dots1 {
0% { transform: scale(0); }
100% { transform: scale(1); }
}
@keyframes loading-dots3 {
0% { transform: scale(1); }
100% { transform: scale(0); }
}
@keyframes loading-dots2 {
0% { transform: translate(0, 0); }
100% { transform: translate(24px, 0); }
}
/* 响应式调整 */
@media (max-width: 768px) {
.top-controls {
flex-direction: column;
align-items: center;
}
.scoreboard {
flex-direction: column;
gap: 20px;
min-width: 300px;
}
.side-panel {
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
}
/* 打印样式 */
@media print {
.no-print {
display: none !important;
}
body {
background: white;
color: black;
}
}