曹睿
2025-04-23 913796ff8463b132be6ebb92c44f0dabb2ff279f
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
/**
 * 全局样式变量
 */
 
/* 
 * 主题颜色 - 会被theme.ts中的动态设置覆盖
 * 这里作为默认值和IDE提示
 */
:root {
  /* 主色 */
  --primary-color: #165dff;
  --primary-color-light: #94bfff;
  --primary-color-dark: #0e3c9b;
 
  /* 功能色 */
  --success-color: #0fc6c2;
  --warning-color: #ff7d00;
  --danger-color: #f5222d;
  --info-color: #86909c;
 
  /* 文字颜色 */
  --text-primary: #1d2129;
  --text-regular: #4e5969;
  --text-secondary: #86909c;
  --text-placeholder: #c9cdd4;
  --text-inverse: #ffffff;
 
  /* 边框颜色 */
  --border-color: #e5e6eb;
  --border-light: #f2f3f5;
 
  /* 背景颜色 */
  --bg-white: #ffffff;
  --bg-light: #f2f3f5;
  --bg-gray: #f7f8fa;
}
 
/**
 * 主题相关的通用类
 */
 
/* 主色文本 */
.text-primary {
  color: var(--primary-color) !important;
}
 
/* 主色背景 */
.bg-primary {
  color: #fff;
  background-color: var(--primary-color) !important;
}
 
/* 主色边框 */
.border-primary {
  border-color: var(--primary-color) !important;
}
 
/* 主色按钮样式 */
.btn-primary {
  color: #fff;
  background-color: var(--primary-color);
  border: none;
  border-radius: 8rpx;
  transition: opacity 0.3s;
 
  &:active {
    opacity: 0.8;
  }
}
 
/* 圆角按钮 */
.btn-rounded {
  border-radius: 45rpx !important;
}
 
/* 次级按钮 */
.btn-secondary {
  color: var(--primary-color);
  background-color: #fff;
  border: 1px solid var(--primary-color);
  border-radius: 8rpx;
  transition: background-color 0.3s;
 
  &:active {
    background-color: rgba(22, 93, 255, 0.05);
  }
}
 
/**
 * 字体大小
 */
.font-xs {
  font-size: 24rpx;
}
 
.font-sm {
  font-size: 28rpx;
}
 
.font-md {
  font-size: 32rpx;
}
 
.font-lg {
  font-size: 36rpx;
}
 
.font-xl {
  font-size: 40rpx;
}
 
/**
 * 边距辅助类
 */
.mt-10 {
  margin-top: 10rpx;
}
.mt-20 {
  margin-top: 20rpx;
}
.mt-30 {
  margin-top: 30rpx;
}
.mt-40 {
  margin-top: 40rpx;
}
 
.mb-10 {
  margin-bottom: 10rpx;
}
.mb-20 {
  margin-bottom: 20rpx;
}
.mb-30 {
  margin-bottom: 30rpx;
}
.mb-40 {
  margin-bottom: 40rpx;
}
 
.ml-10 {
  margin-left: 10rpx;
}
.ml-20 {
  margin-left: 20rpx;
}
.ml-30 {
  margin-left: 30rpx;
}
.ml-40 {
  margin-left: 40rpx;
}
 
.mr-10 {
  margin-right: 10rpx;
}
.mr-20 {
  margin-right: 20rpx;
}
.mr-30 {
  margin-right: 30rpx;
}
.mr-40 {
  margin-right: 40rpx;
}
 
.p-10 {
  padding: 10rpx;
}
.p-20 {
  padding: 20rpx;
}
.p-30 {
  padding: 30rpx;
}
.p-40 {
  padding: 40rpx;
}
 
/**
 * 布局辅助类
 */
.flex {
  display: flex;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-column {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-around {
  justify-content: space-around;
}
.justify-start {
  justify-content: flex-start;
}
.justify-end {
  justify-content: flex-end;
}
 
/**
 * 其他辅助类
 */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
 
.rounded-sm {
  border-radius: 4rpx;
}
.rounded {
  border-radius: 8rpx;
}
.rounded-lg {
  border-radius: 16rpx;
}
.rounded-xl {
  border-radius: 24rpx;
}
.rounded-full {
  border-radius: 9999rpx;
}