@taskon/widget-react 0.0.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +1065 -0
  2. package/dist/CommunityTaskList.css +4893 -0
  3. package/dist/EligibilityInfo.css +2337 -0
  4. package/dist/LeaderboardWidget.css +815 -0
  5. package/dist/PageBuilder.css +54 -0
  6. package/dist/Quest.css +4214 -0
  7. package/dist/TaskOnProvider.css +163 -0
  8. package/dist/TipPopover.css +210 -0
  9. package/dist/UserCenterWidget.css +297 -0
  10. package/dist/UserCenterWidget2.css +3519 -0
  11. package/dist/WidgetShell.css +182 -0
  12. package/dist/chunks/CommunityTaskList-DoPGZsw1.js +6813 -0
  13. package/dist/chunks/EligibilityInfo-C7GZ2G5u.js +22228 -0
  14. package/dist/chunks/LeaderboardWidget-CmYfDeHV.js +1068 -0
  15. package/dist/chunks/PageBuilder-Tmhf2GTS.js +150 -0
  16. package/dist/chunks/Quest-DKFZ-pPU.js +8839 -0
  17. package/dist/chunks/TaskOnProvider-BD6Vp2x8.js +1435 -0
  18. package/dist/chunks/ThemeProvider-wnSXrNQb.js +1118 -0
  19. package/dist/chunks/TipPopover-BrW8jo71.js +2926 -0
  20. package/dist/chunks/UserCenterWidget-BE329iS7.js +3546 -0
  21. package/dist/chunks/UserCenterWidget-BVw_IEEd.js +3989 -0
  22. package/dist/chunks/WidgetShell-D_5OjvNZ.js +1517 -0
  23. package/dist/chunks/common-ja-DWhTaFHb.js +23 -0
  24. package/dist/chunks/common-ko-80ezXsMG.js +23 -0
  25. package/dist/chunks/dynamic-import-helper-DxEFwm31.js +537 -0
  26. package/dist/chunks/index-CwMvO_wZ.js +777 -0
  27. package/dist/chunks/leaderboardwidget-ja-Bj6gz6y1.js +119 -0
  28. package/dist/chunks/leaderboardwidget-ko-f1cLO9ic.js +119 -0
  29. package/dist/chunks/useToast-B-wyO5zL.js +93 -0
  30. package/dist/chunks/useWidgetLocale-JDelxtt8.js +74 -0
  31. package/dist/chunks/usercenter-ja-uu-XfVF9.js +332 -0
  32. package/dist/chunks/usercenter-ko-DYgUOVzd.js +332 -0
  33. package/dist/community-task.d.ts +451 -0
  34. package/dist/community-task.js +9 -0
  35. package/dist/core.d.ts +803 -0
  36. package/dist/core.js +22 -0
  37. package/dist/dynamic-import-helper.css +389 -0
  38. package/dist/index.d.ts +1660 -0
  39. package/dist/index.js +41 -0
  40. package/dist/leaderboard.d.ts +547 -0
  41. package/dist/leaderboard.js +18 -0
  42. package/dist/page-builder.d.ts +20 -0
  43. package/dist/page-builder.js +4 -0
  44. package/dist/quest.d.ts +400 -0
  45. package/dist/quest.js +8 -0
  46. package/dist/user-center.d.ts +1780 -0
  47. package/dist/user-center.js +713 -0
  48. package/package.json +105 -0
@@ -0,0 +1,4893 @@
1
+ /**
2
+ * CardSelector 组件样式
3
+ * 完全复刻 taskon-website 的 CmCardRadio 样式
4
+ * 直接使用 dark 模式颜色值,不使用 CSS 变量
5
+ * 使用 taskon- 前缀避免与项目方样式冲突
6
+ */
7
+
8
+ /* 选择器容器 */
9
+ .taskon-card-selector {
10
+ display: flex;
11
+ gap: 10px;
12
+ flex-wrap: wrap;
13
+ }
14
+
15
+ /* 选择器选项 */
16
+ .taskon-card-selector-item {
17
+ flex-shrink: 0;
18
+ padding: 10px 20px;
19
+ border-radius: 6px;
20
+ border: 1px solid rgba(255, 255, 255, 0.1);
21
+ background: #252a2c;
22
+ color: rgba(255, 255, 255, 0.8);
23
+ font-size: 16px;
24
+ line-height: 24px;
25
+ letter-spacing: 0.36px;
26
+ cursor: pointer;
27
+ transition: all 0.2s ease-in-out;
28
+ white-space: nowrap;
29
+ backdrop-filter: blur(10px);
30
+ max-width: 100%;
31
+ text-overflow: ellipsis;
32
+ overflow: hidden;
33
+
34
+ /* 移除默认按钮样式 */
35
+ outline: none;
36
+ user-select: none;
37
+ -webkit-tap-highlight-color: transparent;
38
+ }
39
+
40
+ /* Hover 状态 */
41
+ .taskon-card-selector-item:hover {
42
+ border-color: rgba(255, 255, 255, 0.15);
43
+ }
44
+
45
+ /* 选中状态 */
46
+ .taskon-card-selector-item--selected {
47
+ background: #fff;
48
+ color: #0d0d0d;
49
+ }
50
+
51
+ .taskon-card-selector-item--selected:hover {
52
+ background: #fff;
53
+ }
54
+
55
+ /* Focus 状态(键盘导航) */
56
+ .taskon-card-selector-item:focus-visible {
57
+ outline: 2px solid rgba(255, 255, 255, 0.5);
58
+ outline-offset: 2px;
59
+ }
60
+
61
+ /* 响应式样式(移动端) */
62
+ @media (max-width: 750px) {
63
+ .taskon-card-selector {
64
+ gap: 2.13vw;
65
+ }
66
+
67
+ .taskon-card-selector-item {
68
+ padding: 2.4vw 3.2vw;
69
+ border-radius: 1.07vw;
70
+ font-size: 3.73vw;
71
+ line-height: 4.53vw;
72
+ backdrop-filter: blur(1.33vw);
73
+ }
74
+ }
75
+ /**
76
+ * BindWalletDialog 组件样式
77
+ * 使用 taskon-bind-wallet-* 命名空间
78
+ * 与 taskon-website 保持一致
79
+ */
80
+
81
+ /* ==================== 容器 ==================== */
82
+ .taskon-bind-wallet-dialog {
83
+ position: relative;
84
+ display: flex;
85
+ flex-direction: column;
86
+ }
87
+
88
+ /* ==================== 标题 ==================== */
89
+ .taskon-bind-wallet-dialog-title {
90
+ margin: 0;
91
+ font-size: 22px;
92
+ font-weight: 700;
93
+ line-height: 28px;
94
+ color: var(--taskon-color-text, #ffffff);
95
+ }
96
+
97
+ /* ==================== 链类型标签 ==================== */
98
+ .taskon-bind-wallet-dialog-chain-label {
99
+ margin-top: 20px;
100
+ font-size: 16px;
101
+ font-weight: 500;
102
+ line-height: 20px;
103
+ color: var(--taskon-color-text, #ffffff);
104
+ }
105
+
106
+ /* ==================== 钱包网格 ==================== */
107
+ .taskon-bind-wallet-dialog-grid {
108
+ margin-top: 10px;
109
+ display: grid;
110
+ grid-template-columns: 1fr 1fr;
111
+ gap: 18px;
112
+ }
113
+
114
+ /* ==================== 钱包项 ==================== */
115
+ .taskon-bind-wallet-item {
116
+ position: relative;
117
+ display: flex;
118
+ align-items: center;
119
+ justify-content: center;
120
+ height: 50px;
121
+ padding: 0 12px;
122
+
123
+ background: transparent;
124
+ border: 1px solid var(--taskon-color-border, rgba(255, 255, 255, 0.15));
125
+ border-radius: 8px;
126
+ cursor: pointer;
127
+ transition: all 0.2s ease;
128
+ }
129
+
130
+ .taskon-bind-wallet-item:hover,
131
+ .taskon-bind-wallet-item:focus {
132
+ background: var(--taskon-color-bg-hover, rgba(255, 255, 255, 0.1));
133
+ }
134
+
135
+ .taskon-bind-wallet-item:active {
136
+ transform: scale(0.98);
137
+ }
138
+
139
+ /* 钱包图标 */
140
+ .taskon-bind-wallet-item-icon {
141
+ display: flex;
142
+ align-items: center;
143
+ justify-content: center;
144
+ width: 24px;
145
+ height: 24px;
146
+ flex-shrink: 0;
147
+ }
148
+
149
+ .taskon-bind-wallet-item-icon svg {
150
+ width: 24px;
151
+ height: 24px;
152
+ }
153
+
154
+ /* 钱包名称 */
155
+ .taskon-bind-wallet-item-name {
156
+ margin-left: 10px;
157
+ font-size: 18px;
158
+ font-weight: 600;
159
+ line-height: 20px;
160
+ color: var(--taskon-color-text, #ffffff);
161
+ }
162
+
163
+ /* 已安装标签 */
164
+ .taskon-bind-wallet-item-installed {
165
+ position: absolute;
166
+ right: 0;
167
+ bottom: 0;
168
+ padding: 4px 8px;
169
+ font-size: 10px;
170
+ line-height: 14px;
171
+ color: var(--taskon-color-secondary, #22c55e);
172
+ background: var(--taskon-color-secondary-bg, rgba(34, 197, 94, 0.1));
173
+ border-radius: 8px 0;
174
+ transform-origin: bottom right;
175
+ }
176
+
177
+ /* ==================== 连接中状态 ==================== */
178
+ .taskon-bind-wallet-item--connecting {
179
+ opacity: 0.7;
180
+ cursor: wait;
181
+ }
182
+
183
+ .taskon-bind-wallet-item--connecting:hover,
184
+ .taskon-bind-wallet-item--connecting:focus {
185
+ background: transparent;
186
+ }
187
+
188
+ /* ==================== 禁用状态 ==================== */
189
+ .taskon-bind-wallet-item--disabled {
190
+ opacity: 0.5;
191
+ cursor: not-allowed;
192
+ }
193
+
194
+ .taskon-bind-wallet-item--disabled:hover,
195
+ .taskon-bind-wallet-item--disabled:focus {
196
+ background: transparent;
197
+ }
198
+
199
+ .taskon-bind-wallet-item--disabled:active {
200
+ transform: none;
201
+ }
202
+
203
+ /* 不可用标签 */
204
+ .taskon-bind-wallet-item-unavailable {
205
+ position: absolute;
206
+ right: 0;
207
+ bottom: 0;
208
+ padding: 4px 8px;
209
+ font-size: 10px;
210
+ line-height: 14px;
211
+ color: var(--taskon-color-text-tertiary, #71717a);
212
+ background: var(--taskon-color-bg-secondary, rgba(255, 255, 255, 0.05));
213
+ border-radius: 8px 0;
214
+ }
215
+
216
+ /* 连接中 spinner */
217
+ .taskon-bind-wallet-item-connecting {
218
+ position: absolute;
219
+ right: 8px;
220
+ display: flex;
221
+ align-items: center;
222
+ justify-content: center;
223
+ }
224
+
225
+ .taskon-bind-wallet-spinner {
226
+ width: 16px;
227
+ height: 16px;
228
+ color: var(--taskon-color-primary, #6366f1);
229
+ animation: taskon-bind-wallet-spin 1s linear infinite;
230
+ }
231
+
232
+ @keyframes taskon-bind-wallet-spin {
233
+ from {
234
+ transform: rotate(0deg);
235
+ }
236
+ to {
237
+ transform: rotate(360deg);
238
+ }
239
+ }
240
+
241
+ /* ==================== 提示文字 ==================== */
242
+ .taskon-bind-wallet-dialog-tip {
243
+ margin: 20px 0 0;
244
+ font-size: 14px;
245
+ line-height: 1.5;
246
+ color: var(--taskon-color-text-tertiary, #71717a);
247
+ text-align: center;
248
+ }
249
+
250
+ /* ==================== 响应式 ==================== */
251
+ @media (max-width: 750px) {
252
+ .taskon-bind-wallet-dialog-title {
253
+ font-size: 3.8vw;
254
+ line-height: 4vw;
255
+ }
256
+
257
+ .taskon-bind-wallet-dialog-chain-label {
258
+ margin-top: 4vw;
259
+ font-size: 4vw;
260
+ line-height: 5.6vw;
261
+ }
262
+
263
+ .taskon-bind-wallet-dialog-grid {
264
+ margin-top: 2.667vw;
265
+ grid-template-columns: 1fr;
266
+ gap: 4vw;
267
+ }
268
+
269
+ .taskon-bind-wallet-item {
270
+ height: 12vw;
271
+ }
272
+
273
+ .taskon-bind-wallet-item-icon {
274
+ width: 6.4vw;
275
+ height: 6.4vw;
276
+ }
277
+
278
+ .taskon-bind-wallet-item-icon svg {
279
+ width: 6.4vw;
280
+ height: 6.4vw;
281
+ }
282
+
283
+ .taskon-bind-wallet-item-name {
284
+ margin-left: 2.667vw;
285
+ font-size: 3.733vw;
286
+ line-height: 4.667vw;
287
+ }
288
+
289
+ .taskon-bind-wallet-dialog-tip {
290
+ margin-top: 4vw;
291
+ font-size: 3vw;
292
+ }
293
+ }
294
+
295
+ /* ==================== 连接中遮层 ==================== */
296
+ .taskon-bind-wallet-loading-overlay {
297
+ position: absolute;
298
+ /* 使用负值覆盖 Dialog body 的 padding */
299
+ inset: -24px;
300
+ display: flex;
301
+ flex-direction: column;
302
+ align-items: center;
303
+ justify-content: center;
304
+ background: rgba(255, 255, 255, 0.1);
305
+ backdrop-filter: blur(4px);
306
+ border-radius: 16px;
307
+ }
308
+
309
+ .taskon-bind-wallet-loading-spinner {
310
+ width: 40px;
311
+ height: 40px;
312
+ color: var(--taskon-color-text-secondary, #a1a1aa);
313
+ animation: taskon-bind-wallet-spin 1s linear infinite;
314
+ }
315
+
316
+ .taskon-bind-wallet-loading-text {
317
+ margin: 20px 0 0;
318
+ max-width: 60%;
319
+ font-size: 16px;
320
+ line-height: 20px;
321
+ color: var(--taskon-color-text-secondary, #a1a1aa);
322
+ text-align: center;
323
+ }
324
+
325
+ @media (max-width: 750px) {
326
+ .taskon-bind-wallet-loading-overlay {
327
+ inset: -20px;
328
+ border-radius: 12px;
329
+ }
330
+
331
+ .taskon-bind-wallet-loading-spinner {
332
+ width: 8vw;
333
+ height: 8vw;
334
+ }
335
+
336
+ .taskon-bind-wallet-loading-text {
337
+ margin-top: 4vw;
338
+ font-size: 3.5vw;
339
+ line-height: 5vw;
340
+ }
341
+ }
342
+ /**
343
+ * CardDescExpress 组件样式
344
+ * @module components/CardDescExpress
345
+ */
346
+
347
+ .taskon-card-desc-rich {
348
+ max-height: 60px;
349
+ overflow: hidden;
350
+ font-size: 14px;
351
+ line-height: 21px;
352
+ color: rgb(255 255 255 / 60%); /* --color-light */
353
+ white-space: pre-wrap;
354
+ word-break: break-word;
355
+ overflow-wrap: break-word;
356
+ }
357
+
358
+ /* 处理富文本中的常见元素 */
359
+ .taskon-card-desc-rich p {
360
+ margin: 0;
361
+ }
362
+
363
+ .taskon-card-desc-rich a {
364
+ color: #cbff01; /* --secondary-100 */
365
+ text-decoration: none;
366
+ }
367
+
368
+ .taskon-card-desc-rich a:hover {
369
+ text-decoration: underline;
370
+ }
371
+
372
+ .taskon-card-desc-rich strong,
373
+ .taskon-card-desc-rich b {
374
+ font-weight: 600;
375
+ }
376
+
377
+ .taskon-card-desc-rich em,
378
+ .taskon-card-desc-rich i {
379
+ font-style: italic;
380
+ }
381
+
382
+ .taskon-card-desc-rich ul,
383
+ .taskon-card-desc-rich ol {
384
+ margin: 0;
385
+ padding-left: 1.5em;
386
+ }
387
+
388
+ .taskon-card-desc-rich pre {
389
+ text-wrap: initial;
390
+ }
391
+
392
+ /* ========== 响应式样式(移动端) ========== */
393
+ @media (max-width: 750px) {
394
+ .taskon-card-desc-rich {
395
+ max-height: 18vw;
396
+ font-size: 3.733vw;
397
+ line-height: normal;
398
+ }
399
+ }
400
+ /**
401
+ * ClaimButton 组件样式
402
+ * 复刻原版 ClaimButton.vue 样式
403
+ * 使用 Widget 命名空间扁平化方案
404
+ */
405
+
406
+ /* Claim 按钮基础样式 */
407
+ .taskon-community-task-claim {
408
+ min-width: 77px;
409
+ height: 34px;
410
+ display: flex;
411
+ align-items: center;
412
+ justify-content: center;
413
+ padding: 0 10px;
414
+ text-align: center;
415
+ border-radius: 6px;
416
+ border: 1px solid rgb(255 255 255 / 100%);
417
+ background: transparent;
418
+ color: rgb(255 255 255 / 100%);
419
+ font-size: 14px;
420
+ font-weight: 500;
421
+ line-height: 18px;
422
+ cursor: pointer;
423
+ transition: opacity 0.2s ease;
424
+ white-space: nowrap;
425
+ }
426
+
427
+ .taskon-community-task-claim:hover:not(:disabled) {
428
+ opacity: 0.8;
429
+ }
430
+
431
+ /* 深色样式(弹窗内使用) */
432
+ .taskon-community-task-claim--dark {
433
+ height: 40px;
434
+ background: rgb(255 255 255 / 100%);
435
+ color: rgb(0 0 0 / 100%);
436
+ font-weight: 600;
437
+ border: none;
438
+ }
439
+
440
+ /* 禁用状态 */
441
+ .taskon-community-task-claim--disabled {
442
+ opacity: 0.2;
443
+ cursor: not-allowed;
444
+ }
445
+
446
+ /* 加载状态 */
447
+ .taskon-community-task-claim--loading {
448
+ background: rgb(255 255 255 / 20%);
449
+ border: none;
450
+ cursor: wait;
451
+ }
452
+
453
+ .taskon-community-task-claim--loading:hover {
454
+ opacity: 1;
455
+ }
456
+
457
+ /* 加载动画容器 */
458
+ .taskon-community-task-claim-loading {
459
+ display: flex;
460
+ align-items: center;
461
+ justify-content: center;
462
+ }
463
+
464
+ /* 加载动画 spinner */
465
+ .taskon-community-task-claim-spinner {
466
+ width: 22px;
467
+ height: 22px;
468
+ animation: taskon-claim-spin 1s linear infinite;
469
+ }
470
+
471
+ /* Mini 按钮样式(Unlimited 任务已有积分时使用)*/
472
+ /* 复刻 Vue 版本 ClaimButton.vue 中的 .mini-btn 样式 */
473
+ .taskon-community-task-claim-mini {
474
+ height: 20px;
475
+ padding: 0 4px;
476
+ display: flex;
477
+ align-items: center;
478
+ justify-content: center;
479
+ border-radius: 4px;
480
+ border: none;
481
+ background: rgb(255 255 255 / 10%);
482
+ color: rgb(255 255 255 / 100%);
483
+ font-size: 12px;
484
+ font-weight: 500;
485
+ line-height: 16px;
486
+ cursor: pointer;
487
+ transition: opacity 0.2s ease;
488
+ white-space: nowrap;
489
+ }
490
+
491
+ .taskon-community-task-claim-mini:hover:not(:disabled) {
492
+ opacity: 0.8;
493
+ }
494
+
495
+ /* Mini 按钮禁用状态 */
496
+ .taskon-community-task-claim-mini--disabled {
497
+ opacity: 0.4;
498
+ cursor: not-allowed;
499
+ }
500
+
501
+ /* Mini 按钮加载状态 */
502
+ .taskon-community-task-claim-mini--loading {
503
+ cursor: wait;
504
+ }
505
+
506
+ .taskon-community-task-claim-mini--loading:hover {
507
+ opacity: 1;
508
+ }
509
+
510
+ /* Mini 按钮加载动画容器 */
511
+ .taskon-community-task-claim-mini-loading {
512
+ display: flex;
513
+ align-items: center;
514
+ justify-content: center;
515
+ }
516
+
517
+ /* Mini 按钮 spinner */
518
+ .taskon-community-task-claim-mini-spinner {
519
+ width: 14px;
520
+ height: 14px;
521
+ animation: taskon-claim-spin 1s linear infinite;
522
+ }
523
+
524
+ @keyframes taskon-claim-spin {
525
+ from {
526
+ transform: rotate(0deg);
527
+ }
528
+ to {
529
+ transform: rotate(360deg);
530
+ }
531
+ }
532
+
533
+ /* 响应式 - 移动端 */
534
+ @media (max-width: 750px) {
535
+ .taskon-community-task-claim {
536
+ min-width: 13.333vw;
537
+ height: 9.333vw;
538
+ padding: 0 2.667vw;
539
+ font-size: 3.733vw;
540
+ line-height: 4.667vw;
541
+ }
542
+
543
+ .taskon-community-task-claim--dark {
544
+ height: 9.333vw;
545
+ }
546
+
547
+ .taskon-community-task-claim-spinner {
548
+ width: 5.333vw;
549
+ height: 5.333vw;
550
+ }
551
+
552
+ /* Mini 按钮响应式 */
553
+ .taskon-community-task-claim-mini {
554
+ height: 6.933vw;
555
+ padding: 0 1.6vw;
556
+ font-size: 3.2vw;
557
+ line-height: 3.733vw;
558
+ }
559
+
560
+ .taskon-community-task-claim-mini-spinner {
561
+ width: 3.733vw;
562
+ height: 3.733vw;
563
+ }
564
+ }
565
+ /**
566
+ * ClaimRetry 组件样式
567
+ * 复刻原版 ClaimRetry.vue 的样式
568
+ */
569
+
570
+ /* 冷却倒计时容器 */
571
+ .taskon-community-task-retry {
572
+ display: flex;
573
+ align-items: center;
574
+ justify-content: center;
575
+ min-width: 77px;
576
+ height: 34px;
577
+ padding: 0 12px;
578
+ border-radius: 6px;
579
+ border: 1px solid rgba(255, 255, 255, 0.5);
580
+ color: rgba(255, 255, 255, 0.5);
581
+ font-size: 14px;
582
+ font-weight: 500;
583
+ line-height: 18px;
584
+ cursor: not-allowed;
585
+ white-space: nowrap;
586
+ }
587
+
588
+ /* ========== 响应式样式(移动端) ========== */
589
+ @media (max-width: 750px) {
590
+ .taskon-community-task-retry {
591
+ min-width: 20vw;
592
+ height: 9.33vw;
593
+ padding: 0 3.2vw;
594
+ border-radius: 1.6vw;
595
+ font-size: 3.73vw;
596
+ line-height: 4.67vw;
597
+ }
598
+ }
599
+ /**
600
+ * DoneCountdown 组件样式
601
+ * 复刻原版 DoneCountdown.vue 的样式
602
+ */
603
+
604
+ /* 完成倒计时容器 - 复刻原版 var(--color-dark) */
605
+ .taskon-community-task-done-countdown {
606
+ margin-top: 10px;
607
+ color: rgba(255, 255, 255, 0.4);
608
+ font-size: 14px;
609
+ line-height: 18px;
610
+ }
611
+
612
+ /* 倒计时行 */
613
+ .taskon-community-task-done-countdown-timer {
614
+ margin-top: 4px;
615
+ }
616
+
617
+ /* 倒计时数字 - 复刻原版 var(--color-lighter) */
618
+ .taskon-community-task-done-countdown-time {
619
+ margin-left: 4px;
620
+ color: rgba(255, 255, 255, 0.8);
621
+ }
622
+
623
+ /* ========== 响应式样式(移动端) ========== */
624
+ @media (max-width: 750px) {
625
+ .taskon-community-task-done-countdown {
626
+ margin-top: 2.67vw;
627
+ font-size: 3.73vw;
628
+ line-height: 4.8vw;
629
+ }
630
+
631
+ .taskon-community-task-done-countdown-timer {
632
+ margin-top: 1.07vw;
633
+ }
634
+
635
+ .taskon-community-task-done-countdown-time {
636
+ margin-left: 1.07vw;
637
+ }
638
+ }
639
+ /**
640
+ * ValidationTimeTip 组件样式
641
+ * 复刻原版 ValidationTimeTip.vue 的样式
642
+ */
643
+
644
+ .taskon-community-validation-tip {
645
+ display: flex;
646
+ align-items: flex-start;
647
+ margin-top: 10px;
648
+ margin-bottom: 6px;
649
+ gap: 4px;
650
+ }
651
+
652
+ .taskon-community-validation-tip-icon {
653
+ width: 14px;
654
+ height: 14px;
655
+ flex-shrink: 0;
656
+ }
657
+
658
+ .taskon-community-validation-tip-text {
659
+ margin: 0;
660
+ /* 复刻原版 --text-info-warning-60 颜色: rgb(255 212 101 / 60%) */
661
+ color: var(--taskon-color-warning-60, rgba(255, 212, 101, 0.6));
662
+ font-size: 12px;
663
+ font-style: normal;
664
+ font-weight: 400;
665
+ line-height: normal;
666
+ }
667
+
668
+ /* 移动端适配 */
669
+ @media (max-width: 750px) {
670
+ .taskon-community-validation-tip {
671
+ margin-top: 2.667vw;
672
+ margin-bottom: 2.667vw;
673
+ }
674
+
675
+ .taskon-community-validation-tip-icon {
676
+ width: 2.933vw;
677
+ height: 2.933vw;
678
+ }
679
+
680
+ .taskon-community-validation-tip-text {
681
+ font-size: 3.2vw;
682
+ }
683
+ }
684
+ /**
685
+ * CheckProgressTip 组件样式
686
+ * 复刻原版 CheckProgressTip.vue 的样式
687
+ */
688
+
689
+ /* 进度提示容器 */
690
+ .taskon-community-task-progress-tip {
691
+ margin-top: 8px;
692
+ font-size: 12px;
693
+ line-height: 16px;
694
+ color: #f5a623; /* warn color */
695
+ }
696
+
697
+ /* 可点击的社区链接 */
698
+ .taskon-community-task-progress-tip-link {
699
+ text-decoration: underline;
700
+ cursor: pointer;
701
+ color: #f5a623;
702
+ }
703
+
704
+ .taskon-community-task-progress-tip-link:hover {
705
+ opacity: 0.8;
706
+ }
707
+
708
+ /* 不可点击的社区名称 */
709
+ .taskon-community-task-progress-tip-name {
710
+ font-weight: 500;
711
+ }
712
+
713
+ /* ========== 响应式样式(移动端) ========== */
714
+ @media (max-width: 750px) {
715
+ .taskon-community-task-progress-tip {
716
+ margin-top: 2.13vw;
717
+ font-size: 3.2vw;
718
+ line-height: 4.27vw;
719
+ }
720
+ }
721
+ /**
722
+ * ProgressUi 组件样式
723
+ * 复刻 Vue 版本 ProgressUi.vue 的样式
724
+ */
725
+
726
+ .taskon-community-task-progress-ui {
727
+ display: flex;
728
+ align-items: center;
729
+ width: 200px;
730
+ height: 4px;
731
+ max-width: 100%;
732
+ background: rgba(255, 255, 255, 0.1);
733
+ border-radius: 30px;
734
+ }
735
+
736
+ .taskon-community-task-progress-ui__bar {
737
+ height: 100%;
738
+ background: linear-gradient(
739
+ 89.87deg,
740
+ var(--taskon-color-secondary, #00ffa3) 0.13%,
741
+ var(--taskon-color-primary, #cbff01) 99.92%
742
+ );
743
+ border-radius: 30px;
744
+ }
745
+
746
+ /* ==================== 响应式 ==================== */
747
+ @media (max-width: 750px) {
748
+ .taskon-community-task-progress-ui {
749
+ width: 100%;
750
+ height: 1.067vw;
751
+ border-radius: 4vw;
752
+ }
753
+
754
+ .taskon-community-task-progress-ui__bar {
755
+ border-radius: 4vw;
756
+ }
757
+ }
758
+ /**
759
+ * BaseTask 组件样式
760
+ * 复刻原版 CmBaseTask.vue 的样式
761
+ * 使用 Widget 命名空间扁平化方案
762
+ * 所有类名使用 .taskon-community-* 前缀,避免跨 Widget 冲突
763
+ * 直接使用 dark 模式颜色值
764
+ */
765
+
766
+ /* 卡片外层容器 */
767
+ .taskon-community-task-wrap {
768
+ height: 100%;
769
+ }
770
+
771
+ /* 卡片主体 */
772
+ .taskon-community-task {
773
+ position: relative;
774
+ display: flex;
775
+ flex-direction: column;
776
+ padding: 20px;
777
+ border-radius: 10px;
778
+ border: 1px solid rgb(255 255 255 / 4%);
779
+ background: #1f1f1f;
780
+ min-height: 230px;
781
+ height: 100%;
782
+ cursor: pointer;
783
+ overflow: hidden;
784
+ transition: all 0.2s ease-in-out;
785
+ }
786
+
787
+ /* 完成状态卡片样式 */
788
+ .taskon-community-task--won {
789
+ border-color: rgb(203 255 1 / 20%);
790
+ background: rgb(203 255 1 / 4%);
791
+ min-height: 184px;
792
+ }
793
+
794
+ /* 禁用状态 */
795
+ .taskon-community-task--disabled {
796
+ cursor: not-allowed;
797
+ opacity: 0.6;
798
+ }
799
+
800
+ /* 禁用遮罩 */
801
+ .taskon-community-task-disabled-mask {
802
+ position: absolute;
803
+ inset: 0;
804
+ background: transparent;
805
+ z-index: 2;
806
+ }
807
+
808
+ /* 周期标签 */
809
+ .taskon-community-task-badge {
810
+ position: absolute;
811
+ top: 10px;
812
+ right: 10px;
813
+ padding: 2px 6px;
814
+ border-radius: 4px;
815
+ background: rgb(255 255 255 / 4%);
816
+ color: rgb(255 255 255 / 60%);
817
+ font-size: 13px;
818
+ line-height: 16px;
819
+ z-index: 1;
820
+ }
821
+
822
+ /* 内容容器 - 占据剩余空间 */
823
+ .taskon-community-task-container {
824
+ flex: 1;
825
+ }
826
+
827
+ /* 任务标题 */
828
+ .taskon-community-task-title {
829
+ margin: 0;
830
+ padding-right: 50px;
831
+ font-size: 16px;
832
+ font-weight: 600;
833
+ line-height: 20px;
834
+ color: rgba(255, 255, 255, 0.95);
835
+ word-break: break-word;
836
+ }
837
+
838
+ /* 任务标题 - 链接样式 */
839
+ .taskon-community-task-title--link {
840
+ display: block;
841
+ text-decoration: none;
842
+ color: var(--taskon-color-primary, #6366f1);
843
+ transition: color 0.2s ease;
844
+ }
845
+
846
+ .taskon-community-task-title--link:hover {
847
+ color: var(--taskon-color-primary-hover, #818cf8);
848
+ text-decoration: underline;
849
+ }
850
+
851
+ /* 有效时间 */
852
+ .taskon-community-task-time {
853
+ margin-top: 10px;
854
+ font-size: 14px;
855
+ line-height: 16px;
856
+ }
857
+
858
+ .taskon-community-task-time-label {
859
+ color: rgba(255, 255, 255, 0.5);
860
+ }
861
+
862
+ .taskon-community-task-time-value {
863
+ margin-left: 4px;
864
+ color: rgba(255, 255, 255, 0.8);
865
+ }
866
+
867
+ /* Action 按钮区域 */
868
+ .taskon-community-task-action-wrap {
869
+ margin-top: 10px;
870
+ }
871
+
872
+ /* Action 按钮 - 复刻原版 ActionButton.vue */
873
+ .taskon-community-task-action {
874
+ width: 100%;
875
+ height: 34px;
876
+ padding: 0 16px;
877
+ display: flex;
878
+ align-items: center;
879
+ justify-content: center;
880
+ border-radius: 6px;
881
+ border: none;
882
+ background: rgb(203 255 1 / 12%);
883
+ color: #cbff01;
884
+ font-size: 14px;
885
+ font-weight: 500;
886
+ line-height: 34px;
887
+ cursor: pointer;
888
+ transition: all 0.2s ease-in-out;
889
+ white-space: nowrap;
890
+ overflow: hidden;
891
+ text-overflow: ellipsis;
892
+ }
893
+
894
+ .taskon-community-task-action:hover {
895
+ background: #cbff01;
896
+ color: #0d0d0d;
897
+ }
898
+
899
+ .taskon-community-task-action:active {
900
+ transform: scale(0.98);
901
+ }
902
+
903
+ /* 底部区域 */
904
+ .taskon-community-task-footer {
905
+ margin-top: 10px;
906
+ }
907
+
908
+ /* Claim 按钮区域 */
909
+ .taskon-community-task-claim-wrap {
910
+ display: flex;
911
+ align-items: center;
912
+ justify-content: flex-end;
913
+ }
914
+
915
+ /* Claim 按钮 - 复刻原版 ClaimButton.vue */
916
+ .taskon-community-task-claim {
917
+ min-width: 77px;
918
+ height: 34px;
919
+ display: flex;
920
+ align-items: center;
921
+ justify-content: center;
922
+ padding: 0 10px;
923
+ border-radius: 6px;
924
+ border: 1px solid rgba(255, 255, 255, 0.9);
925
+ background: transparent;
926
+ color: rgba(255, 255, 255, 0.9);
927
+ font-size: 14px;
928
+ font-weight: 500;
929
+ line-height: 18px;
930
+ cursor: pointer;
931
+ transition: all 0.2s ease-in-out;
932
+ }
933
+
934
+ .taskon-community-task-claim:hover:not(:disabled) {
935
+ opacity: 0.8;
936
+ }
937
+
938
+ .taskon-community-task-claim:active:not(:disabled) {
939
+ transform: scale(0.98);
940
+ }
941
+
942
+ .taskon-community-task-claim--loading {
943
+ background: rgba(255, 255, 255, 0.1);
944
+ border: none;
945
+ cursor: not-allowed;
946
+ }
947
+
948
+ .taskon-community-task-claim:disabled {
949
+ opacity: 0.2;
950
+ cursor: not-allowed;
951
+ }
952
+
953
+ /* 冷却文本 */
954
+ .taskon-community-task-cooldown {
955
+ color: rgba(255, 255, 255, 0.6);
956
+ font-size: 14px;
957
+ line-height: 18px;
958
+ text-align: right;
959
+ }
960
+
961
+ /* ClaimRow - 未完成状态底部:奖励信息 + Claim 按钮 */
962
+ .taskon-community-task-claim-row {
963
+ display: flex;
964
+ align-items: center;
965
+ justify-content: space-between;
966
+ }
967
+
968
+ /* Unlimited 任务已有积分时的 refresh 样式 */
969
+ /* 复刻 Vue 版本 ClaimRow.vue 中的 .refresh-bg 样式 */
970
+ .taskon-community-task-claim-row--refresh {
971
+ background: rgb(255 255 255 / 4%);
972
+ padding-right: 10px;
973
+ border-radius: 6px;
974
+ }
975
+
976
+ /* refresh 模式下左侧奖励信息样式 */
977
+ .taskon-community-task-claim-row--refresh .taskon-community-task-reward {
978
+ background: transparent;
979
+ }
980
+
981
+ /* 奖励信息(ClaimRow 左侧) */
982
+ .taskon-community-task-reward {
983
+ max-width: 100%;
984
+ height: 34px;
985
+ padding: 0 10px;
986
+ display: flex;
987
+ align-items: center;
988
+ border-radius: 6px;
989
+ background: rgb(255 255 255 / 4%);
990
+ font-size: 14px;
991
+ font-weight: 600;
992
+ line-height: 18px;
993
+ }
994
+
995
+ .taskon-community-task-reward-icon {
996
+ width: 18px;
997
+ height: 18px;
998
+ margin-right: 4px;
999
+ object-fit: contain;
1000
+ }
1001
+
1002
+ .taskon-community-task-reward-amount {
1003
+ color: #cbff01; /* secondary-100 */
1004
+ }
1005
+
1006
+ .taskon-community-task-reward-name {
1007
+ margin-left: 4px;
1008
+ overflow: hidden;
1009
+ text-overflow: ellipsis;
1010
+ white-space: nowrap;
1011
+ color: rgba(255, 255, 255, 0.9);
1012
+ }
1013
+
1014
+ /* Token 链图标 */
1015
+ .taskon-community-task-reward-chain {
1016
+ display: inline-block;
1017
+ width: 12px;
1018
+ height: 12px;
1019
+ margin: 0 2px 0 4px;
1020
+ object-fit: cover;
1021
+ }
1022
+
1023
+ /* Token 奖励容器(需要 relative 定位) */
1024
+ .taskon-community-task-reward--token {
1025
+ position: relative;
1026
+ }
1027
+
1028
+ /* Token 进度条(底部绝对定位,翻转显示) */
1029
+ .taskon-community-task-reward-progress {
1030
+ position: absolute;
1031
+ left: 0;
1032
+ bottom: 0;
1033
+ width: 100%;
1034
+ transform: rotate(180deg);
1035
+ }
1036
+
1037
+ /* 完成状态奖励展示 */
1038
+ .taskon-community-task-won {
1039
+ display: flex;
1040
+ align-items: center;
1041
+ font-size: 16px;
1042
+ line-height: 20px;
1043
+ min-height: 27px;
1044
+ }
1045
+
1046
+ /* IconCheckedTask 图标 - 复刻原版 won__checked */
1047
+ .taskon-community-task-won-checked {
1048
+ width: 20px;
1049
+ height: 20px;
1050
+ color: #cbff01; /* primary-100 */
1051
+ flex-shrink: 0;
1052
+ }
1053
+
1054
+ /* 非周期任务完成状态 - ✓ 数量 名称 Won */
1055
+ .taskon-community-task-won-check {
1056
+ width: 20px;
1057
+ height: 20px;
1058
+ color: #cbff01;
1059
+ font-weight: bold;
1060
+ }
1061
+
1062
+ .taskon-community-task-won-amount {
1063
+ margin-left: 6px;
1064
+ color: #cbff01;
1065
+ font-weight: 700;
1066
+ }
1067
+
1068
+ /* 名称 + pointIcon 的容器 - 复刻原版 won__text-wrapper */
1069
+ .taskon-community-task-won-text-wrapper {
1070
+ display: flex;
1071
+ align-items: center;
1072
+ gap: 4px;
1073
+ }
1074
+
1075
+ .taskon-community-task-won-name {
1076
+ margin-left: 4px;
1077
+ font-weight: 600;
1078
+ color: rgba(255, 255, 255, 0.9);
1079
+ }
1080
+
1081
+ /* pointIcon - 复刻原版 won__icon */
1082
+ .taskon-community-task-won-point-icon {
1083
+ width: 12px;
1084
+ height: 12px;
1085
+ }
1086
+
1087
+ /* Bling 闪烁图标 - 复刻原版 won__bling */
1088
+ .taskon-community-task-won-bling {
1089
+ margin-left: 4px;
1090
+ width: 27px;
1091
+ height: 27px;
1092
+ flex-shrink: 0;
1093
+ }
1094
+
1095
+ .taskon-community-task-won-icon {
1096
+ width: 12px;
1097
+ height: 12px;
1098
+ margin-left: 4px;
1099
+ }
1100
+
1101
+ .taskon-community-task-won-status {
1102
+ margin-left: auto;
1103
+ color: #27ae60;
1104
+ font-size: 14px;
1105
+ font-weight: 600;
1106
+ line-height: 18px;
1107
+ }
1108
+
1109
+ /* 周期任务完成状态 - 单次奖励 + 累计奖励 */
1110
+ .taskon-community-task-won--periodic {
1111
+ gap: 0;
1112
+ }
1113
+
1114
+ .taskon-community-task-won-single {
1115
+ font-weight: 600;
1116
+ color: rgba(255, 255, 255, 0.9);
1117
+ }
1118
+
1119
+ .taskon-community-task-won-label {
1120
+ margin-left: 4px;
1121
+ color: rgba(255, 255, 255, 0.6);
1122
+ }
1123
+
1124
+ .taskon-community-task-won-total {
1125
+ margin-left: 6px;
1126
+ color: #cbff01;
1127
+ font-weight: 700;
1128
+ }
1129
+
1130
+ .taskon-community-task-won-earned {
1131
+ margin-left: 4px;
1132
+ font-weight: 600;
1133
+ overflow: hidden;
1134
+ text-overflow: ellipsis;
1135
+ white-space: nowrap;
1136
+ color: rgba(255, 255, 255, 0.9);
1137
+ }
1138
+
1139
+ /* 兼容旧样式 */
1140
+ .taskon-community-task-won-text {
1141
+ color: rgba(255, 255, 255, 0.6);
1142
+ font-size: 14px;
1143
+ line-height: 18px;
1144
+ }
1145
+
1146
+ .taskon-community-task-won-reward {
1147
+ display: flex;
1148
+ align-items: center;
1149
+ gap: 4px;
1150
+ }
1151
+
1152
+ /* ========== 审核状态样式 ========== */
1153
+ /* 复刻原版 CmBaseTask.vue 的 won__status 样式 */
1154
+
1155
+ /* 审核状态基础样式 */
1156
+ .taskon-community-task-review-status {
1157
+ display: flex;
1158
+ align-items: center;
1159
+ justify-content: center;
1160
+ min-width: 77px;
1161
+ height: 34px;
1162
+ padding: 0 10px;
1163
+ border-radius: 6px;
1164
+ font-size: 14px;
1165
+ font-weight: 500;
1166
+ line-height: 18px;
1167
+ }
1168
+
1169
+ /* 审核失败:红色样式 - 复刻原版 #eb5757 */
1170
+ .taskon-community-task-review-status--failed {
1171
+ background: rgba(235, 87, 87, 0.1);
1172
+ color: #eb5757;
1173
+ }
1174
+
1175
+ /* 审核中:紫色样式 - 复刻原版 #9b51e0 */
1176
+ .taskon-community-task-review-status--review {
1177
+ background: rgba(155, 81, 224, 0.1);
1178
+ color: #9b51e0;
1179
+ }
1180
+
1181
+ /* ========== 响应式样式(移动端) ========== */
1182
+ @media (max-width: 750px) {
1183
+ .taskon-community-task {
1184
+ padding: 6vw;
1185
+ min-height: 60vw;
1186
+ border-radius: 2.67vw;
1187
+ }
1188
+
1189
+ .taskon-community-task--won {
1190
+ min-height: 46vw;
1191
+ }
1192
+
1193
+ .taskon-community-task-badge {
1194
+ top: 2.67vw;
1195
+ right: 2.67vw;
1196
+ padding: 0.53vw 1.87vw;
1197
+ font-size: 3.47vw;
1198
+ line-height: 4.4vw;
1199
+ border-radius: 1.07vw;
1200
+ }
1201
+
1202
+ .taskon-community-task-title {
1203
+ font-size: 4.8vw;
1204
+ line-height: 6vw;
1205
+ padding-right: 13.33vw;
1206
+ }
1207
+
1208
+ .taskon-community-task-time {
1209
+ margin-top: 2.67vw;
1210
+ font-size: 3.73vw;
1211
+ line-height: 4.67vw;
1212
+ }
1213
+
1214
+ .taskon-community-task-time-value {
1215
+ margin-left: 1.07vw;
1216
+ }
1217
+
1218
+ .taskon-community-task-action-wrap {
1219
+ margin-top: 2.67vw;
1220
+ }
1221
+
1222
+ .taskon-community-task-action {
1223
+ height: 9.33vw;
1224
+ padding: 0 4vw;
1225
+ border-radius: 1.6vw;
1226
+ font-size: 3.73vw;
1227
+ line-height: 9.33vw;
1228
+ }
1229
+
1230
+ .taskon-community-task-footer {
1231
+ margin-top: 2.67vw;
1232
+ }
1233
+
1234
+ .taskon-community-task-claim {
1235
+ min-width: 13.33vw;
1236
+ height: 9.33vw;
1237
+ padding: 0 2.67vw;
1238
+ border-radius: 1.6vw;
1239
+ font-size: 3.73vw;
1240
+ line-height: 4.67vw;
1241
+ }
1242
+
1243
+ .taskon-community-task-cooldown {
1244
+ font-size: 3.73vw;
1245
+ line-height: 4.67vw;
1246
+ }
1247
+
1248
+ .taskon-community-task-reward {
1249
+ height: 9.33vw;
1250
+ padding: 0 2.67vw;
1251
+ font-size: 3.73vw;
1252
+ line-height: 4.67vw;
1253
+ }
1254
+
1255
+ .taskon-community-task-reward-icon {
1256
+ width: 4.67vw;
1257
+ height: 4.67vw;
1258
+ margin-right: 0.8vw;
1259
+ }
1260
+
1261
+ .taskon-community-task-reward-name {
1262
+ margin-left: 0.8vw;
1263
+ }
1264
+
1265
+ .taskon-community-task-won {
1266
+ gap: 2.13vw;
1267
+ }
1268
+
1269
+ .taskon-community-task-won-checked {
1270
+ width: 5.33vw;
1271
+ height: 5.33vw;
1272
+ }
1273
+
1274
+ .taskon-community-task-won-text {
1275
+ font-size: 3.73vw;
1276
+ line-height: 4.67vw;
1277
+ }
1278
+
1279
+ .taskon-community-task-won-amount {
1280
+ margin-left: 1.6vw;
1281
+ font-size: 4.27vw;
1282
+ line-height: 5.33vw;
1283
+ }
1284
+
1285
+ .taskon-community-task-won-text-wrapper {
1286
+ gap: 1.07vw;
1287
+ }
1288
+
1289
+ .taskon-community-task-won-name {
1290
+ margin-left: 1.07vw;
1291
+ font-size: 4.27vw;
1292
+ line-height: 5.33vw;
1293
+ }
1294
+
1295
+ .taskon-community-task-won-point-icon {
1296
+ width: 3.2vw;
1297
+ height: 3.2vw;
1298
+ }
1299
+
1300
+ .taskon-community-task-won-bling {
1301
+ margin-left: 1.07vw;
1302
+ width: 7.2vw;
1303
+ height: 7.2vw;
1304
+ }
1305
+
1306
+ .taskon-community-task-won-reward {
1307
+ gap: 1.07vw;
1308
+ }
1309
+
1310
+ .taskon-community-task-won-icon {
1311
+ width: 5.33vw;
1312
+ height: 5.33vw;
1313
+ }
1314
+
1315
+ /* 审核状态移动端样式 */
1316
+ .taskon-community-task-review-status {
1317
+ min-width: 13.33vw;
1318
+ height: 9.33vw;
1319
+ padding: 0 2.67vw;
1320
+ border-radius: 1.6vw;
1321
+ font-size: 3.73vw;
1322
+ line-height: 4.67vw;
1323
+ }
1324
+ }
1325
+
1326
+ /* ========== 登录遮层(复刻原版 login-mask) ========== */
1327
+ .taskon-community-task-login-mask {
1328
+ position: absolute;
1329
+ inset: 0;
1330
+ background: transparent;
1331
+ cursor: pointer;
1332
+ z-index: 3;
1333
+ }
1334
+ /**
1335
+ * CardField 组件样式
1336
+ * 复刻原版 CardField.vue 的样式
1337
+ */
1338
+
1339
+ .taskon-community-task-field {
1340
+ margin-top: 10px;
1341
+ font-size: 14px;
1342
+ line-height: 18px;
1343
+ display: flex;
1344
+ align-items: center;
1345
+ gap: 4px;
1346
+ word-break: break-word;
1347
+ overflow-wrap: break-word;
1348
+ }
1349
+
1350
+ .taskon-community-task-field-label {
1351
+ color: rgb(255 255 255 / 40%); /* --color-dark */
1352
+ white-space: pre-wrap;
1353
+ word-break: break-word;
1354
+ overflow-wrap: break-word;
1355
+ }
1356
+
1357
+ .taskon-community-task-field-link {
1358
+ color: rgb(255 255 255 / 80%); /* --color-lighter,与 value 颜色一致 */
1359
+ text-decoration: none;
1360
+ cursor: pointer;
1361
+ word-break: break-all;
1362
+ overflow-wrap: break-word;
1363
+ }
1364
+
1365
+ .taskon-community-task-field-link:hover {
1366
+ text-decoration: underline;
1367
+ }
1368
+
1369
+ .taskon-community-task-field-value {
1370
+ color: rgb(255 255 255 / 80%); /* --color-lighter */
1371
+ word-break: break-word;
1372
+ overflow-wrap: break-word;
1373
+ }
1374
+
1375
+ /* ========== 复制按钮样式 ========== */
1376
+ .taskon-community-task-field-copy {
1377
+ display: inline-flex;
1378
+ align-items: center;
1379
+ justify-content: center;
1380
+ padding: 0;
1381
+ border: none;
1382
+ background: transparent;
1383
+ cursor: pointer;
1384
+ transition: opacity 0.2s;
1385
+ flex-shrink: 0; /* 防止按钮被压缩 */
1386
+ }
1387
+
1388
+ .taskon-community-task-field-copy:hover {
1389
+ opacity: 0.7;
1390
+ }
1391
+
1392
+ .taskon-community-task-field-copy-icon {
1393
+ width: 14px;
1394
+ height: 14px;
1395
+ color: rgb(255 255 255 / 60%); /* --color-darker */
1396
+ }
1397
+
1398
+ .taskon-community-task-field-copy--copied .taskon-community-task-field-copy-icon {
1399
+ color: #cbff01; /* --link-color / --secondary-100 */
1400
+ }
1401
+
1402
+ /* ========== 响应式样式(移动端) ========== */
1403
+ @media (max-width: 750px) {
1404
+ .taskon-community-task-field {
1405
+ margin-top: 2.67vw;
1406
+ font-size: 3.73vw;
1407
+ line-height: 4.67vw;
1408
+ gap: 1.07vw;
1409
+ }
1410
+
1411
+ .taskon-community-task-field-copy-icon {
1412
+ width: 3.73vw;
1413
+ height: 3.73vw;
1414
+ }
1415
+ }
1416
+ /**
1417
+ * UserEligibilityMask 样式
1418
+ * 复刻 Vue 版本的样式,遵循项目 CSS 命名规范
1419
+ */
1420
+
1421
+ /* ==================== 根元素 ==================== */
1422
+ .taskon-eligibility-mask {
1423
+ position: absolute;
1424
+ inset: 0;
1425
+ -webkit-backdrop-filter: blur(14px);
1426
+ backdrop-filter: blur(14px);
1427
+ z-index: 10;
1428
+ padding: 20px;
1429
+ border: 1px solid var(--taskon-border-color, rgba(255, 255, 255, 0.1));
1430
+ border-radius: 10px;
1431
+ box-sizing: border-box;
1432
+ }
1433
+
1434
+ /* ==================== 奖励信息区 ==================== */
1435
+ .taskon-eligibility-mask-head {
1436
+ display: flex;
1437
+ align-items: center;
1438
+ gap: 10px;
1439
+ color: var(--taskon-color-lighter, #999);
1440
+ font-size: 16px;
1441
+ font-style: normal;
1442
+ font-weight: 600;
1443
+ line-height: normal;
1444
+ }
1445
+
1446
+ .taskon-eligibility-mask-lock-icon {
1447
+ width: 22px;
1448
+ height: 22px;
1449
+ flex-shrink: 0;
1450
+ }
1451
+
1452
+ .taskon-eligibility-mask-highlight {
1453
+ color: var(--taskon-secondary-100, #6366f1);
1454
+ }
1455
+
1456
+ /* ==================== 任务名称 ==================== */
1457
+ .taskon-eligibility-mask-title {
1458
+ overflow: hidden;
1459
+ white-space: nowrap;
1460
+ text-overflow: ellipsis;
1461
+ margin: 10px 0 0;
1462
+ font-size: 16px;
1463
+ font-style: normal;
1464
+ font-weight: 600;
1465
+ line-height: normal;
1466
+ color: var(--taskon-text-color, #fff);
1467
+ }
1468
+
1469
+ /* ==================== 条件提示行 ==================== */
1470
+ .taskon-eligibility-mask-tip {
1471
+ display: flex;
1472
+ align-items: center;
1473
+ justify-content: space-between;
1474
+ margin-top: 4px;
1475
+ gap: 10px;
1476
+ }
1477
+
1478
+ .taskon-eligibility-mask-cond-title {
1479
+ color: var(--taskon-color-lightest, #ccc);
1480
+ font-size: 14px;
1481
+ font-style: normal;
1482
+ font-weight: 500;
1483
+ line-height: normal;
1484
+ }
1485
+
1486
+ .taskon-eligibility-mask-cond-label {
1487
+ color: var(--taskon-secondary-100, #6366f1);
1488
+ }
1489
+
1490
+ /* Check 按钮 */
1491
+ .taskon-eligibility-mask-check-btn {
1492
+ display: flex;
1493
+ align-items: center;
1494
+ gap: 4px;
1495
+ background: var(--taskon-color-lightest, #ccc);
1496
+ color: var(--taskon-color-lightest-inverse, #000);
1497
+ padding: 2px 6px;
1498
+ border: none;
1499
+ border-radius: 4px;
1500
+ height: 22px;
1501
+ font-size: 12px;
1502
+ font-weight: 500;
1503
+ cursor: pointer;
1504
+ transition: opacity 0.2s;
1505
+ flex-shrink: 0;
1506
+ }
1507
+
1508
+ .taskon-eligibility-mask-check-btn:hover {
1509
+ opacity: 0.8;
1510
+ }
1511
+
1512
+ .taskon-eligibility-mask-check-btn--loading {
1513
+ cursor: not-allowed;
1514
+ opacity: 0.7;
1515
+ }
1516
+
1517
+ .taskon-eligibility-mask-check-btn--loading:hover {
1518
+ opacity: 0.7;
1519
+ }
1520
+
1521
+ .taskon-eligibility-mask-reload-icon {
1522
+ width: 12px;
1523
+ height: 12px;
1524
+ }
1525
+
1526
+ /* Loading 旋转动画 */
1527
+ .taskon-eligibility-mask-reload-icon--spinning {
1528
+ animation: taskon-eligibility-spin 1s linear infinite;
1529
+ }
1530
+
1531
+ @keyframes taskon-eligibility-spin {
1532
+ from {
1533
+ transform: rotate(0deg);
1534
+ }
1535
+ to {
1536
+ transform: rotate(360deg);
1537
+ }
1538
+ }
1539
+
1540
+ /* ==================== 分割线 ==================== */
1541
+ .taskon-eligibility-mask-divider {
1542
+ margin: 15px 0;
1543
+ height: 0;
1544
+ border: none;
1545
+ border-top: 0.5px dashed var(--taskon-color-darkest, #333);
1546
+ }
1547
+
1548
+ /* ==================== 条件列表 ==================== */
1549
+ .taskon-eligibility-mask-list {
1550
+ overflow: hidden auto;
1551
+ height: calc(100% - 100px);
1552
+ }
1553
+
1554
+ /* ==================== 条件项 ==================== */
1555
+ .taskon-eligibility-mask-item {
1556
+ display: flex;
1557
+ align-items: baseline;
1558
+ gap: 15px;
1559
+ height: 24px;
1560
+ margin-top: 6px;
1561
+ font-size: 14px;
1562
+ font-style: normal;
1563
+ font-weight: 500;
1564
+ line-height: normal;
1565
+ color: var(--taskon-text-color, #fff);
1566
+ }
1567
+
1568
+ .taskon-eligibility-mask-item:first-child {
1569
+ margin-top: 0;
1570
+ }
1571
+
1572
+ .taskon-eligibility-mask-item-icon {
1573
+ width: 10px;
1574
+ height: 10px;
1575
+ flex-shrink: 0;
1576
+ }
1577
+
1578
+ /* 条件文案 */
1579
+ .taskon-eligibility-mask-item-text {
1580
+ overflow: hidden;
1581
+ white-space: nowrap;
1582
+ text-overflow: ellipsis;
1583
+ flex: 1;
1584
+ }
1585
+
1586
+ /* 前置任务链接 */
1587
+ .taskon-eligibility-mask-item-link {
1588
+ color: inherit;
1589
+ text-decoration: underline;
1590
+ cursor: pointer;
1591
+ }
1592
+
1593
+ .taskon-eligibility-mask-item-link:hover {
1594
+ opacity: 0.8;
1595
+ }
1596
+
1597
+ /* ==================== 响应式(移动端) ==================== */
1598
+ @media (max-width: 750px) {
1599
+ .taskon-eligibility-mask {
1600
+ padding: 6vw;
1601
+ border-radius: 3.2vw;
1602
+ }
1603
+
1604
+ .taskon-eligibility-mask-item-icon {
1605
+ width: 1.867vw;
1606
+ height: 1.867vw;
1607
+ }
1608
+
1609
+ .taskon-eligibility-mask-head {
1610
+ font-size: 3.733vw;
1611
+ font-weight: 700;
1612
+ }
1613
+
1614
+ .taskon-eligibility-mask-lock-icon {
1615
+ width: 6.4vw;
1616
+ height: 6.4vw;
1617
+ }
1618
+
1619
+ .taskon-eligibility-mask-title {
1620
+ font-size: 3.733vw;
1621
+ margin-top: 1.333vw;
1622
+ }
1623
+
1624
+ .taskon-eligibility-mask-cond-title {
1625
+ font-size: 3.2vw;
1626
+ }
1627
+
1628
+ .taskon-eligibility-mask-check-btn {
1629
+ font-size: 3.2vw;
1630
+ height: 5.067vw;
1631
+ }
1632
+
1633
+ .taskon-eligibility-mask-reload-icon {
1634
+ width: 2.667vw;
1635
+ height: 2.667vw;
1636
+ }
1637
+
1638
+ .taskon-eligibility-mask-divider {
1639
+ margin-top: 3.067vw;
1640
+ margin-bottom: 3.067vw;
1641
+ }
1642
+
1643
+ .taskon-eligibility-mask-list {
1644
+ height: calc(100% - 20vw);
1645
+ }
1646
+
1647
+ .taskon-eligibility-mask-item {
1648
+ font-size: 3.2vw;
1649
+ gap: 2vw;
1650
+ }
1651
+ }
1652
+ /**
1653
+ * TemplateTask 组件样式
1654
+ * 通用模版任务样式,包含展开/收起功能
1655
+ */
1656
+
1657
+ /* 任务卡片包裹(用于遮罩场景) */
1658
+ .taskon-template-task-wrap {
1659
+ position: relative;
1660
+ }
1661
+
1662
+ /* 展开/收起按钮 */
1663
+ .taskon-community-task-expand-btn {
1664
+ display: inline-flex;
1665
+ align-items: center;
1666
+ gap: 4px;
1667
+ margin-top: 10px;
1668
+ padding: 0;
1669
+ border: none;
1670
+ background: transparent;
1671
+ color: rgba(255, 255, 255, 0.6);
1672
+ font-size: 13px;
1673
+ line-height: 16px;
1674
+ cursor: pointer;
1675
+ transition: color 0.2s ease;
1676
+ }
1677
+
1678
+ .taskon-community-task-expand-btn:hover {
1679
+ color: rgba(255, 255, 255, 0.9);
1680
+ }
1681
+
1682
+ .taskon-community-task-expand-text {
1683
+ text-decoration: underline;
1684
+ }
1685
+
1686
+ /* 展开图标 */
1687
+ .taskon-community-task-expand-icon {
1688
+ transition: transform 0.2s ease;
1689
+ }
1690
+
1691
+ /* 展开状态图标旋转 */
1692
+ .taskon-community-task-expand-icon--expanded {
1693
+ transform: rotate(180deg);
1694
+ }
1695
+
1696
+ /* 移动端适配 */
1697
+ @media (max-width: 750px) {
1698
+ .taskon-community-task-expand-btn {
1699
+ margin-top: 2.67vw;
1700
+ gap: 1.07vw;
1701
+ font-size: 3.47vw;
1702
+ line-height: 4.27vw;
1703
+ }
1704
+
1705
+ .taskon-community-task-expand-icon {
1706
+ width: 3.2vw;
1707
+ height: 3.2vw;
1708
+ }
1709
+ }
1710
+ /**
1711
+ * PowTask 组件样式
1712
+ * 使用 Widget 命名空间扁平化方案
1713
+ * 所有类名使用 .taskon-community-pow-* 前缀,避免冲突
1714
+ */
1715
+
1716
+ /* 任务卡片包裹(用于遮罩场景) */
1717
+ .taskon-pow-task-wrap {
1718
+ position: relative;
1719
+ }
1720
+
1721
+ /* 任务描述 */
1722
+ .taskon-community-pow-desc {
1723
+ margin-top: 12px;
1724
+ font-size: 14px;
1725
+ line-height: 20px;
1726
+ color: rgb(255 255 255 / 80%);
1727
+ }
1728
+
1729
+ /* 任务链接 */
1730
+ .taskon-community-pow-link {
1731
+ display: inline-block;
1732
+ margin-top: 8px;
1733
+ font-size: 14px;
1734
+ color: #cbff01;
1735
+ text-decoration: none;
1736
+ cursor: pointer;
1737
+ }
1738
+
1739
+ .taskon-community-pow-link:hover {
1740
+ text-decoration: underline;
1741
+ }
1742
+
1743
+ /* 审核状态文本(简化版,直接显示在卡片上) */
1744
+ .taskon-community-pow-review-status {
1745
+ margin-top: 12px;
1746
+ font-size: 14px;
1747
+ font-weight: 500;
1748
+ line-height: 20px;
1749
+ }
1750
+
1751
+ /* 审核中 */
1752
+ .taskon-community-pow-review-status--pending {
1753
+ color: #ffc107;
1754
+ }
1755
+
1756
+ /* 审核失败 */
1757
+ .taskon-community-pow-review-status--failed {
1758
+ color: #f44336;
1759
+ }
1760
+
1761
+ /* 响应式 */
1762
+ @media (max-width: 750px) {
1763
+ .taskon-community-pow-desc {
1764
+ font-size: 13px;
1765
+ line-height: 18px;
1766
+ }
1767
+
1768
+ .taskon-community-pow-review-status {
1769
+ font-size: 13px;
1770
+ }
1771
+ }
1772
+ /**
1773
+ * ContractInteractiveTask 组件样式
1774
+ * 使用 Widget 命名空间扁平化方案
1775
+ */
1776
+
1777
+ /* 任务卡片包裹(用于遮罩场景) */
1778
+ .taskon-contract-task-wrap {
1779
+ position: relative;
1780
+ }
1781
+ /**
1782
+ * SwapDexTask 组件样式
1783
+ * 使用 Widget 命名空间扁平化方案
1784
+ */
1785
+
1786
+ /* 任务卡片包裹(用于遮罩场景) */
1787
+ .taskon-swap-task-wrap {
1788
+ position: relative;
1789
+ }
1790
+ /**
1791
+ * CommunityTask 组件样式
1792
+ * 复刻原版 CmTaskCard.vue 的样式
1793
+ */
1794
+
1795
+ /* 任务卡片容器 */
1796
+ .taskon-community-task-item {
1797
+ position: relative;
1798
+ transition: all 0.3s;
1799
+ overflow: hidden;
1800
+ height: 100%;
1801
+ }
1802
+
1803
+ /* Hover 效果(PC 端) */
1804
+ @media (min-width: 751px) {
1805
+ .taskon-community-task-item--hover:hover .taskon-community-task {
1806
+ background: #2a2a2a; /* 卡片 hover 背景色 */
1807
+ }
1808
+
1809
+ .taskon-community-task-item--hover:hover .taskon-community-task--won {
1810
+ background: rgba(203, 255, 1, 0.08); /* 完成状态 hover 背景 */
1811
+ }
1812
+ }
1813
+
1814
+ /* 禁用状态 */
1815
+ .taskon-community-task-item--disabled {
1816
+ opacity: 0.4;
1817
+ }
1818
+
1819
+ /* 禁用遮罩 */
1820
+ .taskon-community-task-item-mask {
1821
+ position: absolute;
1822
+ inset: 0;
1823
+ cursor: not-allowed;
1824
+ z-index: 1;
1825
+ }
1826
+ /**
1827
+ * RewardsRowHoverScroll Styles
1828
+ * Matches Vue version: RewardsRowHoverScroll.vue
1829
+ */
1830
+
1831
+ .taskon-rewards-row-carousel {
1832
+ display: flex;
1833
+ width: 100%;
1834
+ overflow: hidden;
1835
+ position: relative;
1836
+ text-align: left;
1837
+ }
1838
+
1839
+ .taskon-rewards-row-carousel:hover .taskon-rewards-row-inner--scrollable {
1840
+ animation: taskon-rewards-row-scroll var(--scroll-duration, 10s) linear infinite;
1841
+ }
1842
+
1843
+ .taskon-rewards-row-inner {
1844
+ display: inline-flex;
1845
+ flex-shrink: 0;
1846
+ gap: 6px;
1847
+ }
1848
+
1849
+ @keyframes taskon-rewards-row-scroll {
1850
+ 0% {
1851
+ transform: translateX(0);
1852
+ }
1853
+ 49.99% {
1854
+ transform: translateX(-101%);
1855
+ }
1856
+ 50% {
1857
+ transform: translateX(101%);
1858
+ }
1859
+ }
1860
+
1861
+ /* Mobile responsive */
1862
+ @media (max-width: 750px) {
1863
+ .taskon-rewards-row-inner {
1864
+ gap: 1.333vw;
1865
+ }
1866
+ }
1867
+ /**
1868
+ * TaskChainCard Styles
1869
+ */
1870
+
1871
+ /* Wrapper with stacked card effect */
1872
+ .taskon-taskchain-card-wrapper {
1873
+ position: relative;
1874
+ height: 100%;
1875
+ padding-top: 30px;
1876
+ }
1877
+
1878
+ /* Stacked cards behind main card */
1879
+ .taskon-taskchain-card-stack {
1880
+ position: absolute;
1881
+ border: 1px solid rgba(255, 255, 255, 0.08);
1882
+ border-radius: 10px;
1883
+ height: 40px;
1884
+ box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.1);
1885
+ }
1886
+
1887
+ .taskon-taskchain-card-stack--1 {
1888
+ left: 37px;
1889
+ right: 37px;
1890
+ top: 4px;
1891
+ background: #1a1a1a;
1892
+ }
1893
+
1894
+ .taskon-taskchain-card-stack--2 {
1895
+ left: 24px;
1896
+ right: 24px;
1897
+ top: 12px;
1898
+ background: #1f1f1f;
1899
+ }
1900
+
1901
+ .taskon-taskchain-card-stack--3 {
1902
+ left: 10px;
1903
+ right: 10px;
1904
+ top: 20px;
1905
+ background: #222222;
1906
+ }
1907
+
1908
+ /* Main card */
1909
+ .taskon-taskchain-card {
1910
+ position: relative;
1911
+ display: flex;
1912
+ flex-direction: column;
1913
+ min-height: 200px;
1914
+ padding: 20px;
1915
+ background-color: var(--taskon-bg-secondary, #252525);
1916
+ border-radius: 10px;
1917
+ cursor: pointer;
1918
+ overflow: hidden;
1919
+ transition: transform 0.2s, box-shadow 0.2s;
1920
+ }
1921
+
1922
+ .taskon-taskchain-card:hover {
1923
+ transform: translateY(-2px);
1924
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
1925
+ }
1926
+
1927
+ .taskon-taskchain-card--disabled {
1928
+ cursor: not-allowed;
1929
+ }
1930
+
1931
+ .taskon-taskchain-card--disabled:hover {
1932
+ transform: none;
1933
+ box-shadow: none;
1934
+ }
1935
+
1936
+ /* Card name */
1937
+ .taskon-taskchain-card-name {
1938
+ font-size: 16px;
1939
+ font-weight: 600;
1940
+ word-break: break-word;
1941
+ padding-right: 48px;
1942
+ color: var(--taskon-text-primary, #fff);
1943
+ }
1944
+
1945
+ /* Spots left */
1946
+ .taskon-taskchain-card-spots {
1947
+ display: flex;
1948
+ align-items: center;
1949
+ gap: 4px;
1950
+ margin-top: 10px;
1951
+ font-size: 14px;
1952
+ color: var(--taskon-text-primary, #fff);
1953
+ }
1954
+
1955
+ .taskon-taskchain-card-spots-label {
1956
+ color: var(--taskon-text-secondary, #999);
1957
+ }
1958
+
1959
+ /* Description */
1960
+ .taskon-taskchain-card-desc {
1961
+ margin-top: 8px;
1962
+ margin-bottom: 16px;
1963
+ font-size: 14px;
1964
+ color: var(--taskon-text-secondary, #999);
1965
+ line-height: 1.5;
1966
+ display: -webkit-box;
1967
+ -webkit-line-clamp: 2;
1968
+ -webkit-box-orient: vertical;
1969
+ overflow: hidden;
1970
+ }
1971
+
1972
+ /* Footer */
1973
+ .taskon-taskchain-card-footer {
1974
+ display: flex;
1975
+ align-items: center;
1976
+ margin-top: auto;
1977
+ }
1978
+
1979
+ /* Rewards container */
1980
+ .taskon-taskchain-card-rewards {
1981
+ display: flex;
1982
+ gap: 8px;
1983
+ flex: 1;
1984
+ min-width: 0;
1985
+ overflow: hidden;
1986
+ }
1987
+
1988
+ /* Individual reward item */
1989
+ .taskon-taskchain-card-reward-item {
1990
+ display: flex;
1991
+ align-items: center;
1992
+ gap: 4px;
1993
+ padding: 8px;
1994
+ background-color: rgba(255, 255, 255, 0.05);
1995
+ border-radius: 4px;
1996
+ flex-shrink: 0;
1997
+ }
1998
+
1999
+ /* Reward icon */
2000
+ .taskon-taskchain-card-reward-icon {
2001
+ width: 20px;
2002
+ height: 20px;
2003
+ border-radius: 50%;
2004
+ }
2005
+
2006
+ /* Reward amount */
2007
+ .taskon-taskchain-card-reward-amount {
2008
+ font-size: 14px;
2009
+ font-weight: 600;
2010
+ color: #eeb803;
2011
+ }
2012
+
2013
+ .taskon-taskchain-card-reward-amount--points {
2014
+ color: #00ffa3;
2015
+ }
2016
+
2017
+ /* Reward name */
2018
+ .taskon-taskchain-card-reward-name {
2019
+ font-size: 14px;
2020
+ color: var(--taskon-text-primary, #fff);
2021
+ }
2022
+
2023
+ /* NFT reward icon (rounded corners for NFT images) */
2024
+ .taskon-taskchain-card-reward-icon--nft {
2025
+ border-radius: 50%;
2026
+ object-fit: cover;
2027
+ }
2028
+
2029
+ /* NFT reward name (with truncation for long names) */
2030
+ .taskon-taskchain-card-reward-name--nft {
2031
+ max-width: 150px;
2032
+ white-space: nowrap;
2033
+ overflow: hidden;
2034
+ text-overflow: ellipsis;
2035
+ }
2036
+
2037
+ /* Won status */
2038
+ .taskon-taskchain-card-won {
2039
+ margin-left: 16px;
2040
+ font-size: 14px;
2041
+ font-weight: 600;
2042
+ color: #27ae60;
2043
+ flex-shrink: 0;
2044
+ }
2045
+
2046
+ /* Overlays */
2047
+ .taskon-taskchain-card-overlay {
2048
+ position: absolute;
2049
+ inset: 0;
2050
+ display: flex;
2051
+ align-items: center;
2052
+ justify-content: center;
2053
+ border-radius: inherit;
2054
+ }
2055
+
2056
+ .taskon-taskchain-card-overlay--ended {
2057
+ background-color: rgba(0, 0, 0, 0.7);
2058
+ }
2059
+
2060
+ .taskon-taskchain-card-overlay-text {
2061
+ font-size: 16px;
2062
+ font-weight: 600;
2063
+ color: #fff;
2064
+ text-transform: uppercase;
2065
+ }
2066
+
2067
+ .taskon-taskchain-card-overlay--locked {
2068
+ background-color: rgba(0, 0, 0, 0.5);
2069
+ backdrop-filter: blur(2px);
2070
+ }
2071
+
2072
+ /* Lock icon */
2073
+ .taskon-taskchain-card-lock-icon {
2074
+ width: 72px;
2075
+ height: 72px;
2076
+ }
2077
+
2078
+ /* Lock hover content */
2079
+ .taskon-taskchain-card-lock-hover {
2080
+ position: absolute;
2081
+ inset: 0;
2082
+ display: flex;
2083
+ flex-direction: column;
2084
+ align-items: center;
2085
+ justify-content: center;
2086
+ gap: 16px;
2087
+ background-color: rgba(255, 255, 255, 0.1);
2088
+ backdrop-filter: blur(10px);
2089
+ border-radius: inherit;
2090
+ opacity: 0;
2091
+ transition: opacity 0.2s;
2092
+ }
2093
+
2094
+ .taskon-taskchain-card-overlay--locked:hover .taskon-taskchain-card-lock-icon:first-child {
2095
+ display: none;
2096
+ }
2097
+
2098
+ .taskon-taskchain-card-overlay--locked:hover .taskon-taskchain-card-lock-hover {
2099
+ opacity: 1;
2100
+ }
2101
+
2102
+ .taskon-taskchain-card-lock-hover .taskon-taskchain-card-lock-icon {
2103
+ width: 64px;
2104
+ height: 64px;
2105
+ }
2106
+
2107
+ /* Lock text */
2108
+ .taskon-taskchain-card-lock-text {
2109
+ font-size: 14px;
2110
+ text-align: center;
2111
+ color: #fff;
2112
+ white-space: nowrap;
2113
+ }
2114
+
2115
+ .taskon-taskchain-card-lock-highlight {
2116
+ color: #00ffa3;
2117
+ text-transform: capitalize;
2118
+ }
2119
+
2120
+ /* Mobile responsive */
2121
+ @media (max-width: 750px) {
2122
+ .taskon-taskchain-card-wrapper {
2123
+ padding-top: 20px;
2124
+ }
2125
+
2126
+ .taskon-taskchain-card-stack {
2127
+ border-radius: 8px;
2128
+ height: 20px;
2129
+ }
2130
+
2131
+ .taskon-taskchain-card-stack--1 {
2132
+ left: 28px;
2133
+ right: 28px;
2134
+ top: 2px;
2135
+ }
2136
+
2137
+ .taskon-taskchain-card-stack--2 {
2138
+ left: 18px;
2139
+ right: 18px;
2140
+ top: 8px;
2141
+ }
2142
+
2143
+ .taskon-taskchain-card-stack--3 {
2144
+ left: 8px;
2145
+ right: 8px;
2146
+ top: 14px;
2147
+ }
2148
+
2149
+ .taskon-taskchain-card {
2150
+ min-height: 50vw;
2151
+ padding: 16px;
2152
+ border-radius: 8px;
2153
+ }
2154
+
2155
+ .taskon-taskchain-card-name {
2156
+ font-size: 14px;
2157
+ padding-right: 24px;
2158
+ }
2159
+
2160
+ .taskon-taskchain-card-spots {
2161
+ margin-top: 8px;
2162
+ font-size: 12px;
2163
+ }
2164
+
2165
+ .taskon-taskchain-card-desc {
2166
+ font-size: 12px;
2167
+ }
2168
+
2169
+ .taskon-taskchain-card-rewards {
2170
+ gap: 6px;
2171
+ }
2172
+
2173
+ .taskon-taskchain-card-reward-item {
2174
+ padding: 6px;
2175
+ }
2176
+
2177
+ .taskon-taskchain-card-reward-icon {
2178
+ width: 16px;
2179
+ height: 16px;
2180
+ }
2181
+
2182
+ .taskon-taskchain-card-reward-amount,
2183
+ .taskon-taskchain-card-reward-name {
2184
+ font-size: 12px;
2185
+ }
2186
+
2187
+ .taskon-taskchain-card-lock-icon {
2188
+ width: 48px;
2189
+ height: 48px;
2190
+ }
2191
+
2192
+ .taskon-taskchain-card-lock-hover .taskon-taskchain-card-lock-icon {
2193
+ width: 40px;
2194
+ height: 40px;
2195
+ }
2196
+
2197
+ .taskon-taskchain-card-lock-text {
2198
+ font-size: 12px;
2199
+ }
2200
+ }
2201
+ /**
2202
+ * StepIndicator Styles
2203
+ * @description CSS for TaskChain step indicator component
2204
+ */
2205
+
2206
+ /* Container - flex layout with items aligned at bottom */
2207
+ .taskon-taskchain-step-indicator {
2208
+ display: flex;
2209
+ align-items: flex-end;
2210
+ gap: 8px;
2211
+ position: relative;
2212
+ }
2213
+
2214
+ /* Step bars container */
2215
+ .taskon-taskchain-step-indicator-bars {
2216
+ display: flex;
2217
+ flex: 1;
2218
+ align-items: center;
2219
+ gap: 8px;
2220
+ }
2221
+
2222
+ /* Individual step bar */
2223
+ .taskon-taskchain-step-bar {
2224
+ height: 6px;
2225
+ flex: 1;
2226
+ border-radius: 2px;
2227
+ transition: background-color 0.3s ease;
2228
+ }
2229
+
2230
+ /* Completed step - bright green */
2231
+ .taskon-taskchain-step-bar--completed {
2232
+ background-color: #cbff01;
2233
+ }
2234
+
2235
+ /* Pending step - dim green */
2236
+ .taskon-taskchain-step-bar--pending {
2237
+ background-color: rgb(203 255 1 / 20%);
2238
+ }
2239
+
2240
+ /* Flag icon at the end */
2241
+ .taskon-taskchain-step-indicator-flag {
2242
+ width: 24px;
2243
+ height: 24px;
2244
+ flex-shrink: 0;
2245
+ }
2246
+
2247
+ /* Mobile responsive styles */
2248
+ @media (max-width: 750px) {
2249
+ .taskon-taskchain-step-indicator {
2250
+ gap: 5vw;
2251
+ }
2252
+
2253
+ .taskon-taskchain-step-indicator-bars {
2254
+ gap: 5vw;
2255
+ }
2256
+
2257
+ .taskon-taskchain-step-bar {
2258
+ height: 1.333vw;
2259
+ }
2260
+
2261
+ .taskon-taskchain-step-indicator-flag {
2262
+ width: 10vw;
2263
+ height: 10vw;
2264
+ }
2265
+ }
2266
+ /**
2267
+ * TaskChainDetailTime Styles
2268
+ * @description Time range and spots display for TaskChain
2269
+ */
2270
+
2271
+ .taskon-taskchain-time {
2272
+ width: 100%;
2273
+ }
2274
+
2275
+ .taskon-taskchain-time-row {
2276
+ display: flex;
2277
+ align-items: center;
2278
+ gap: 24px;
2279
+ }
2280
+
2281
+ .taskon-taskchain-time-item {
2282
+ display: flex;
2283
+ align-items: center;
2284
+ gap: 8px;
2285
+ }
2286
+
2287
+ .taskon-taskchain-time-icon {
2288
+ width: 16px;
2289
+ height: 16px;
2290
+ color: var(--taskon-text-tertiary, #666);
2291
+ }
2292
+
2293
+ .taskon-taskchain-time-text {
2294
+ font-size: 14px;
2295
+ font-weight: 500;
2296
+ color: var(--taskon-text-secondary, #999);
2297
+ }
2298
+
2299
+ .taskon-taskchain-time-divider {
2300
+ width: 1px;
2301
+ height: 20px;
2302
+ background-color: var(--taskon-border-color, #333);
2303
+ }
2304
+
2305
+ .taskon-taskchain-time-label {
2306
+ font-size: 14px;
2307
+ font-weight: 500;
2308
+ color: var(--taskon-text-secondary, #999);
2309
+ }
2310
+
2311
+ .taskon-taskchain-time-value {
2312
+ font-size: 14px;
2313
+ font-weight: 500;
2314
+ color: var(--taskon-text-primary, #fff);
2315
+ }
2316
+
2317
+ /* Mobile styles */
2318
+ @media (max-width: 768px) {
2319
+ .taskon-taskchain-time-row {
2320
+ gap: 10px;
2321
+ }
2322
+
2323
+ .taskon-taskchain-time-item {
2324
+ gap: 4px;
2325
+ }
2326
+
2327
+ .taskon-taskchain-time-icon {
2328
+ width: 12px;
2329
+ height: 12px;
2330
+ }
2331
+
2332
+ .taskon-taskchain-time-text,
2333
+ .taskon-taskchain-time-label,
2334
+ .taskon-taskchain-time-value {
2335
+ font-size: 12px;
2336
+ }
2337
+
2338
+ .taskon-taskchain-time-divider {
2339
+ height: 12px;
2340
+ }
2341
+ }
2342
+ /**
2343
+ * RewardDisplay Styles
2344
+ * @description Reward preview badge styles
2345
+ */
2346
+
2347
+ .taskon-taskchain-reward-display {
2348
+ position: relative;
2349
+ }
2350
+
2351
+ .taskon-taskchain-reward-display-inner {
2352
+ position: relative;
2353
+ border-radius: 8px;
2354
+ background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2));
2355
+ padding: 2px;
2356
+ }
2357
+
2358
+ .taskon-taskchain-reward-display-content {
2359
+ position: relative;
2360
+ display: flex;
2361
+ border-radius: 8px;
2362
+ background-color: #1a1a1a;
2363
+ }
2364
+
2365
+ .taskon-taskchain-reward-display-item {
2366
+ position: relative;
2367
+ display: flex;
2368
+ flex-direction: column;
2369
+ align-items: center;
2370
+ justify-content: center;
2371
+ gap: 8px;
2372
+ padding: 8px 12px;
2373
+ min-width: 60px;
2374
+ }
2375
+
2376
+ .taskon-taskchain-reward-display-icon {
2377
+ width: 24px;
2378
+ height: 24px;
2379
+ object-fit: contain;
2380
+ }
2381
+
2382
+ .taskon-taskchain-reward-display-icon--nft {
2383
+ border-radius: 50%;
2384
+ object-fit: cover;
2385
+ }
2386
+
2387
+ .taskon-taskchain-reward-display-text {
2388
+ font-size: 12px;
2389
+ text-align: center;
2390
+ white-space: nowrap;
2391
+ }
2392
+
2393
+ .taskon-taskchain-reward-display-text--token {
2394
+ color: #eeb803;
2395
+ }
2396
+
2397
+ .taskon-taskchain-reward-display-text--points {
2398
+ color: var(--taskon-secondary, #cbff01);
2399
+ }
2400
+
2401
+ .taskon-taskchain-reward-display-text--nft {
2402
+ color: #fff;
2403
+ max-width: 120px;
2404
+ overflow: hidden;
2405
+ text-overflow: ellipsis;
2406
+ }
2407
+
2408
+ .taskon-taskchain-reward-display-pointer {
2409
+ position: absolute;
2410
+ right: 20px;
2411
+ top: 100%;
2412
+ }
2413
+
2414
+ .taskon-taskchain-reward-display-pointer svg {
2415
+ display: block;
2416
+ }
2417
+ /**
2418
+ * TaskChainRewardStep Styles
2419
+ */
2420
+
2421
+ /* Container */
2422
+ .taskon-taskchain-reward-step {
2423
+ position: relative;
2424
+ display: flex;
2425
+ flex-direction: column;
2426
+ align-items: center;
2427
+ justify-content: center;
2428
+ width: 100%;
2429
+ max-width: 480px;
2430
+ margin: 0 auto;
2431
+ text-align: center;
2432
+ }
2433
+
2434
+ /* Content wrapper */
2435
+ .taskon-taskchain-reward-content {
2436
+ position: relative;
2437
+ z-index: 1;
2438
+ width: 100%;
2439
+ }
2440
+
2441
+ /* Title */
2442
+ .taskon-taskchain-reward-title {
2443
+ font-size: 32px;
2444
+ font-weight: 600;
2445
+ line-height: 40px;
2446
+ color: var(--taskon-text-primary, #fff);
2447
+ margin-bottom: 12px;
2448
+ }
2449
+
2450
+ /* Subtitle */
2451
+ .taskon-taskchain-reward-subtitle {
2452
+ font-size: 16px;
2453
+ color: var(--taskon-text-secondary, #999);
2454
+ }
2455
+
2456
+ /* ============================================================================
2457
+ * WinRewards - Scatter Layout (Unclaimed State)
2458
+ * Matches Vue: WinRewards.vue - absolute positioned cards with spread animation
2459
+ * ============================================================================ */
2460
+
2461
+ /* Container for scatter-positioned reward cards */
2462
+ .taskon-taskchain-win-rewards {
2463
+ position: relative;
2464
+ display: flex;
2465
+ align-items: center;
2466
+ justify-content: center;
2467
+ min-height: 240px;
2468
+ padding: 32px;
2469
+ margin-top: 16px;
2470
+ }
2471
+
2472
+ /* Individual scatter card - absolute positioned */
2473
+ .taskon-taskchain-win-reward-card {
2474
+ position: absolute;
2475
+ display: flex;
2476
+ flex-direction: column;
2477
+ align-items: center;
2478
+ gap: 12px;
2479
+ /* Initial state: centered, half scale, invisible */
2480
+ transform: translate(0px, 0px) scale(0.5);
2481
+ opacity: 0;
2482
+ transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
2483
+ }
2484
+
2485
+ /* Spread animation active - transform is set inline via style */
2486
+ .taskon-taskchain-win-reward-card--spread {
2487
+ opacity: 1;
2488
+ }
2489
+
2490
+ /* Large reward icon for scatter layout */
2491
+ .taskon-taskchain-win-reward-icon {
2492
+ width: 72px;
2493
+ height: 72px;
2494
+ border-radius: 50%;
2495
+ object-fit: cover;
2496
+ }
2497
+
2498
+ /* Reward text below icon */
2499
+ .taskon-taskchain-win-reward-text {
2500
+ font-size: 20px;
2501
+ font-weight: 500;
2502
+ color: var(--taskon-text-primary, #fff);
2503
+ max-width: 200px;
2504
+ overflow: visible;
2505
+ text-wrap: wrap;
2506
+ text-align: center;
2507
+ line-height: 1.3;
2508
+ }
2509
+
2510
+ /* Token amount color */
2511
+ .taskon-taskchain-win-reward-text--token {
2512
+ color: #fbb15a;
2513
+ }
2514
+
2515
+ /* Points amount color */
2516
+ .taskon-taskchain-win-reward-text--points {
2517
+ color: #4b5eff;
2518
+ }
2519
+
2520
+ /* ============================================================================
2521
+ * ClaimedRewards - Green Card (Claimed State)
2522
+ * Matches Vue: ClaimedRewards.vue - green-tinted card container
2523
+ * ============================================================================ */
2524
+
2525
+ /* Claimed rewards outer container (matches Vue: tw-flex tw-w-full tw-flex-col tw-gap-3) */
2526
+ .taskon-taskchain-claimed-rewards-wrap {
2527
+ display: flex;
2528
+ width: 100%;
2529
+ flex-direction: column;
2530
+ gap: 12px;
2531
+ margin-top: 16px;
2532
+ }
2533
+
2534
+ /* Green card container for non-NFT rewards */
2535
+ .taskon-taskchain-claimed-card {
2536
+ display: flex;
2537
+ align-items: center;
2538
+ justify-content: center;
2539
+ border-radius: 8px;
2540
+ border: 1px solid rgb(60 232 155 / 20%);
2541
+ background-color: rgb(0 255 163 / 10%);
2542
+ }
2543
+
2544
+ /* Multi-reward: flex-wrap centered layout */
2545
+ .taskon-taskchain-claimed-card--multi {
2546
+ display: inline-flex;
2547
+ flex-wrap: wrap;
2548
+ gap: 8px;
2549
+ }
2550
+
2551
+ /* Individual claimed reward item */
2552
+ .taskon-taskchain-claimed-item {
2553
+ display: flex;
2554
+ align-items: center;
2555
+ justify-content: center;
2556
+ gap: 8px;
2557
+ min-width: 60px;
2558
+ min-height: 80px;
2559
+ padding: 12px 16px;
2560
+ background-color: transparent;
2561
+ }
2562
+
2563
+ /* Multi-reward item: vertical layout */
2564
+ .taskon-taskchain-claimed-item--multi {
2565
+ flex-direction: column;
2566
+ gap: 8px;
2567
+ }
2568
+
2569
+ /* Claimed reward icon - single reward */
2570
+ .taskon-taskchain-claimed-icon {
2571
+ width: 32px;
2572
+ height: 32px;
2573
+ border-radius: 50%;
2574
+ object-fit: cover;
2575
+ }
2576
+
2577
+ /* Claimed reward icon - multi reward (smaller) */
2578
+ .taskon-taskchain-claimed-icon--multi {
2579
+ width: 24px;
2580
+ height: 24px;
2581
+ }
2582
+
2583
+ /* Claimed icon glow effects - matches Vue: showGlow when multi rewards */
2584
+ .taskon-taskchain-claimed-icon--glow-token {
2585
+ box-shadow: 0 -8px 30px 0 #f47d3b;
2586
+ }
2587
+
2588
+ .taskon-taskchain-claimed-icon--glow-points {
2589
+ box-shadow: 0 -8px 30px 0 #ff6b35;
2590
+ }
2591
+
2592
+ /* Claimed reward text - single reward */
2593
+ .taskon-taskchain-claimed-text {
2594
+ font-size: 18px;
2595
+ font-weight: 600;
2596
+ line-height: 24px;
2597
+ color: var(--taskon-text-primary, #fff);
2598
+ }
2599
+
2600
+ /* Claimed reward text - multi reward */
2601
+ .taskon-taskchain-claimed-text--multi {
2602
+ font-size: 14px;
2603
+ font-weight: 500;
2604
+ }
2605
+
2606
+ /* Token amount color in claimed state */
2607
+ .taskon-taskchain-claimed-text--token {
2608
+ color: #fbb15a;
2609
+ }
2610
+
2611
+ /* Points amount color in claimed state */
2612
+ .taskon-taskchain-claimed-text--points {
2613
+ color: #ff6b35;
2614
+ }
2615
+
2616
+ /* Token text with underline (matches Vue: tw-underline on token text) */
2617
+ .taskon-taskchain-claimed-text--token-link {
2618
+ text-decoration: underline;
2619
+ display: inline-flex;
2620
+ align-items: center;
2621
+ gap: 2px;
2622
+ white-space: nowrap;
2623
+ cursor: pointer;
2624
+ }
2625
+
2626
+ /* Right arrow icon for token link (matches Vue: tw-h-3 tw-w-3 = 12px) */
2627
+ .taskon-taskchain-claimed-arrow {
2628
+ color: #fbb15a;
2629
+ margin-left: 4px;
2630
+ width: 12px;
2631
+ height: 12px;
2632
+ flex-shrink: 0;
2633
+ }
2634
+
2635
+ /* Multi-reward smaller arrow (matches Vue: tw-h-2 tw-w-2 = 8px) */
2636
+ .taskon-taskchain-claimed-arrow--multi {
2637
+ width: 8px;
2638
+ height: 8px;
2639
+ }
2640
+
2641
+ /* ============================================================================
2642
+ * Token Tooltip Content
2643
+ * Matches Vue: TokenReward.vue tooltip (TipPopOver content)
2644
+ * ============================================================================ */
2645
+
2646
+ /* Tooltip container */
2647
+ .taskon-taskchain-token-tooltip {
2648
+ display: flex;
2649
+ flex-direction: column;
2650
+ gap: 8px;
2651
+ white-space: nowrap;
2652
+ padding: 4px;
2653
+ }
2654
+
2655
+ /* Tooltip row */
2656
+ .taskon-taskchain-token-tooltip-row {
2657
+ display: flex;
2658
+ width: 100%;
2659
+ align-items: center;
2660
+ justify-content: space-between;
2661
+ gap: 8px;
2662
+ }
2663
+
2664
+ /* Tooltip label (left side) */
2665
+ .taskon-taskchain-token-tooltip-label {
2666
+ font-size: 14px;
2667
+ color: var(--taskon-text-tertiary, rgba(255, 255, 255, 0.5));
2668
+ }
2669
+
2670
+ /* Tooltip value (right side, token amount) */
2671
+ .taskon-taskchain-token-tooltip-value {
2672
+ font-size: 14px;
2673
+ font-weight: 600;
2674
+ color: var(--taskon-text-primary, #fff);
2675
+ }
2676
+
2677
+ /* Tooltip USD value */
2678
+ .taskon-taskchain-token-tooltip-usd {
2679
+ font-size: 14px;
2680
+ font-weight: 500;
2681
+ color: #cbff01;
2682
+ }
2683
+
2684
+ /* Action buttons container */
2685
+ .taskon-taskchain-reward-actions {
2686
+ display: flex;
2687
+ justify-content: center;
2688
+ gap: 12px;
2689
+ margin-top: 60px;
2690
+ }
2691
+
2692
+ /* ============================================================================
2693
+ * Animation States
2694
+ * ============================================================================ */
2695
+
2696
+ /* Unclaimed content - exit animation */
2697
+ .taskon-taskchain-reward-unclaimed {
2698
+ opacity: 1;
2699
+ transform: translateY(0);
2700
+ transition: opacity 0.6s ease-out, transform 0.6s ease-out;
2701
+ }
2702
+
2703
+ .taskon-taskchain-reward-unclaimed--exit {
2704
+ opacity: 0;
2705
+ transform: translateY(-20px);
2706
+ }
2707
+
2708
+ /* Claim button exit animation (separate from rewards) */
2709
+ .taskon-taskchain-claim-btn-exit {
2710
+ opacity: 1;
2711
+ transform: translateY(0);
2712
+ transition: opacity 0.6s ease-out, transform 0.6s ease-out;
2713
+ }
2714
+
2715
+ .taskon-taskchain-claim-btn-exit--active {
2716
+ opacity: 0;
2717
+ transform: translateY(-20px);
2718
+ }
2719
+
2720
+ /* Claimed content - enter animation */
2721
+ .taskon-taskchain-reward-claimed {
2722
+ opacity: 1;
2723
+ transform: translateY(0);
2724
+ }
2725
+
2726
+ .taskon-taskchain-reward-claimed--animate {
2727
+ animation: taskon-taskchain-slide-up-fade-in 0.8s ease-out 0.2s both;
2728
+ }
2729
+
2730
+ @keyframes taskon-taskchain-slide-up-fade-in {
2731
+ from {
2732
+ opacity: 0;
2733
+ transform: translateY(40px);
2734
+ }
2735
+ to {
2736
+ opacity: 1;
2737
+ transform: translateY(0);
2738
+ }
2739
+ }
2740
+
2741
+ /* ============================================================================
2742
+ * Confetti Particles
2743
+ * ============================================================================ */
2744
+
2745
+ .taskon-taskchain-confetti-particle {
2746
+ position: absolute;
2747
+ top: 30%;
2748
+ width: 10px;
2749
+ height: 10px;
2750
+ border-radius: 2px;
2751
+ pointer-events: none;
2752
+ animation: taskon-taskchain-confetti-fall 1.5s ease-out forwards;
2753
+ }
2754
+
2755
+ @keyframes taskon-taskchain-confetti-fall {
2756
+ 0% {
2757
+ opacity: 1;
2758
+ transform: translateY(0) rotate(0deg) scale(1);
2759
+ }
2760
+ 100% {
2761
+ opacity: 0;
2762
+ transform: translateY(200px) rotate(720deg) scale(0.5);
2763
+ }
2764
+ }
2765
+
2766
+ /* Add some variety to particles */
2767
+ .taskon-taskchain-confetti-particle:nth-child(odd) {
2768
+ width: 8px;
2769
+ height: 12px;
2770
+ animation-name: taskon-taskchain-confetti-fall-alt;
2771
+ }
2772
+
2773
+ @keyframes taskon-taskchain-confetti-fall-alt {
2774
+ 0% {
2775
+ opacity: 1;
2776
+ transform: translateY(0) translateX(0) rotate(0deg) scale(1);
2777
+ }
2778
+ 100% {
2779
+ opacity: 0;
2780
+ transform: translateY(180px) translateX(50px) rotate(-540deg) scale(0.3);
2781
+ }
2782
+ }
2783
+
2784
+ .taskon-taskchain-confetti-particle:nth-child(3n) {
2785
+ animation-name: taskon-taskchain-confetti-fall-left;
2786
+ }
2787
+
2788
+ @keyframes taskon-taskchain-confetti-fall-left {
2789
+ 0% {
2790
+ opacity: 1;
2791
+ transform: translateY(0) translateX(0) rotate(0deg) scale(1);
2792
+ }
2793
+ 100% {
2794
+ opacity: 0;
2795
+ transform: translateY(160px) translateX(-40px) rotate(450deg) scale(0.4);
2796
+ }
2797
+ }
2798
+
2799
+ /* ============================================================================
2800
+ * Claimed NFT Cards (Separate from green card)
2801
+ * Matches Vue: ClaimedRewardsNftCard.vue
2802
+ * ============================================================================ */
2803
+
2804
+ /* NFT card list container */
2805
+ .taskon-taskchain-claimed-nft-list {
2806
+ display: flex;
2807
+ flex-direction: column;
2808
+ gap: 12px;
2809
+ }
2810
+
2811
+ /* Individual NFT claimed card */
2812
+ .taskon-taskchain-claimed-nft-card {
2813
+ display: flex;
2814
+ align-items: center;
2815
+ justify-content: space-between;
2816
+ border-radius: 8px;
2817
+ border: 1px solid rgb(60 232 155 / 20%);
2818
+ background-color: rgb(0 255 163 / 10%);
2819
+ padding: 12px 16px;
2820
+ }
2821
+
2822
+ /* NFT info section (image + text) */
2823
+ .taskon-taskchain-claimed-nft-info {
2824
+ display: flex;
2825
+ align-items: center;
2826
+ gap: 16px;
2827
+ min-width: 0;
2828
+ }
2829
+
2830
+ /* NFT image wrapper with chain badge */
2831
+ .taskon-taskchain-claimed-nft-image-wrap {
2832
+ position: relative;
2833
+ width: 56px;
2834
+ height: 56px;
2835
+ flex-shrink: 0;
2836
+ }
2837
+
2838
+ /* NFT image */
2839
+ .taskon-taskchain-claimed-nft-image {
2840
+ width: 100%;
2841
+ height: 100%;
2842
+ border-radius: 6px;
2843
+ object-fit: cover;
2844
+ }
2845
+
2846
+ /* NFT fallback image (no collection image available) */
2847
+ .taskon-taskchain-claimed-nft-image--fallback {
2848
+ background-color: #1f1f1f;
2849
+ }
2850
+
2851
+ /* Chain badge on NFT image (bottom-right corner) */
2852
+ .taskon-taskchain-claimed-nft-chain {
2853
+ position: absolute;
2854
+ bottom: -4px;
2855
+ right: -4px;
2856
+ width: 20px;
2857
+ height: 20px;
2858
+ border-radius: 50%;
2859
+ border: 1px solid rgba(0, 0, 0, 0.6);
2860
+ background-color: #fff;
2861
+ }
2862
+
2863
+ /* NFT text section */
2864
+ .taskon-taskchain-claimed-nft-text {
2865
+ display: flex;
2866
+ flex-direction: column;
2867
+ gap: 4px;
2868
+ min-width: 0;
2869
+ text-align: left;
2870
+ }
2871
+
2872
+ /* NFT label ("NFT" text) */
2873
+ .taskon-taskchain-claimed-nft-label {
2874
+ font-size: 14px;
2875
+ color: rgba(255, 255, 255, 0.6);
2876
+ }
2877
+
2878
+ /* NFT collection name */
2879
+ .taskon-taskchain-claimed-nft-name {
2880
+ font-size: 18px;
2881
+ font-weight: 600;
2882
+ color: #fff;
2883
+ overflow: hidden;
2884
+ text-overflow: ellipsis;
2885
+ white-space: nowrap;
2886
+ }
2887
+
2888
+ /* NFT CTA button (matches Vue: ClaimedRewardsNftCard button style) */
2889
+ .taskon-taskchain-claimed-nft-btn {
2890
+ flex-shrink: 0;
2891
+ padding: 8px 20px;
2892
+ font-size: 14px;
2893
+ font-weight: 600;
2894
+ color: #000;
2895
+ background-color: #cbff01;
2896
+ border: none;
2897
+ border-radius: 8px;
2898
+ cursor: pointer;
2899
+ transition: opacity 0.2s, transform 0.1s;
2900
+ white-space: nowrap;
2901
+ }
2902
+
2903
+ .taskon-taskchain-claimed-nft-btn:hover {
2904
+ opacity: 0.9;
2905
+ }
2906
+
2907
+ .taskon-taskchain-claimed-nft-btn:active {
2908
+ transform: scale(0.98);
2909
+ }
2910
+
2911
+ /* ============================================================================
2912
+ * Button Styles
2913
+ * ============================================================================ */
2914
+
2915
+ /* Button base */
2916
+ .taskon-taskchain-btn {
2917
+ padding: 12px 32px;
2918
+ font-size: 14px;
2919
+ font-weight: 600;
2920
+ border: none;
2921
+ border-radius: 8px;
2922
+ cursor: pointer;
2923
+ transition: opacity 0.2s, transform 0.1s;
2924
+ }
2925
+
2926
+ .taskon-taskchain-btn:hover {
2927
+ opacity: 0.9;
2928
+ }
2929
+
2930
+ .taskon-taskchain-btn:active {
2931
+ transform: scale(0.98);
2932
+ }
2933
+
2934
+ .taskon-taskchain-btn:disabled {
2935
+ opacity: 0.5;
2936
+ cursor: not-allowed;
2937
+ }
2938
+
2939
+ /* Primary button */
2940
+ .taskon-taskchain-btn--primary {
2941
+ color: #000;
2942
+ background-color: #cbff01;
2943
+ }
2944
+
2945
+ /* Secondary button */
2946
+ .taskon-taskchain-btn--secondary {
2947
+ color: var(--taskon-text-primary, #fff);
2948
+ background-color: transparent;
2949
+ border: 1px solid rgba(255, 255, 255, 0.2);
2950
+ }
2951
+
2952
+ .taskon-taskchain-btn--secondary:hover {
2953
+ background-color: rgba(255, 255, 255, 0.1);
2954
+ }
2955
+
2956
+ /* ============================================================================
2957
+ * Mobile Responsive
2958
+ * ============================================================================ */
2959
+
2960
+ @media (max-width: 750px) {
2961
+ .taskon-taskchain-reward-title {
2962
+ font-size: 24px;
2963
+ line-height: 32px;
2964
+ }
2965
+
2966
+ .taskon-taskchain-reward-subtitle {
2967
+ font-size: 14px;
2968
+ }
2969
+
2970
+ /* WinRewards mobile */
2971
+ .taskon-taskchain-win-rewards {
2972
+ min-height: 50vw;
2973
+ padding: 6vw;
2974
+ }
2975
+
2976
+ .taskon-taskchain-win-reward-icon {
2977
+ width: 16.267vw;
2978
+ height: 16.267vw;
2979
+ }
2980
+
2981
+ .taskon-taskchain-win-reward-text {
2982
+ max-width: 30vw;
2983
+ }
2984
+
2985
+ /* ClaimedRewards mobile */
2986
+ .taskon-taskchain-claimed-item {
2987
+ min-height: 18.267vw;
2988
+ }
2989
+
2990
+ /* Claimed NFT card mobile (matches Vue: mb: responsive values) */
2991
+ .taskon-taskchain-claimed-nft-card {
2992
+ gap: 2.133vw;
2993
+ border-radius: 1.333vw;
2994
+ padding: 2.72vw 3.626vw;
2995
+ }
2996
+
2997
+ .taskon-taskchain-claimed-nft-image-wrap {
2998
+ width: 12.693vw;
2999
+ height: 12.693vw;
3000
+ border-radius: 1.41vw;
3001
+ }
3002
+
3003
+ .taskon-taskchain-claimed-nft-image {
3004
+ border-radius: 1.41vw;
3005
+ }
3006
+
3007
+ .taskon-taskchain-claimed-nft-chain {
3008
+ bottom: -0.533vw;
3009
+ right: -0.533vw;
3010
+ width: 3.2vw;
3011
+ height: 3.2vw;
3012
+ }
3013
+
3014
+ .taskon-taskchain-claimed-nft-text {
3015
+ gap: 1vw;
3016
+ }
3017
+
3018
+ .taskon-taskchain-claimed-nft-label {
3019
+ font-size: 3.2vw;
3020
+ }
3021
+
3022
+ .taskon-taskchain-claimed-nft-name {
3023
+ font-size: 3.733vw;
3024
+ }
3025
+
3026
+ .taskon-taskchain-claimed-nft-btn {
3027
+ padding: 1.6vw 4vw;
3028
+ font-size: 2.933vw;
3029
+ border-radius: 1.333vw;
3030
+ }
3031
+ }
3032
+ /**
3033
+ * TaskChainBlindBoxStep Styles
3034
+ *
3035
+ * This component now reuses BlindBoxDialog and BlindBoxRewardDialog from Quest,
3036
+ * so most styles come from those components. Only container and helper styles here.
3037
+ */
3038
+
3039
+ /* Container */
3040
+ .taskon-taskchain-blindbox-step {
3041
+ position: relative;
3042
+ display: flex;
3043
+ flex-direction: column;
3044
+ align-items: center;
3045
+ justify-content: center;
3046
+ width: 100%;
3047
+ max-width: 480px;
3048
+ margin: 0 auto;
3049
+ padding: 20px;
3050
+ text-align: center;
3051
+ min-height: 400px;
3052
+ }
3053
+
3054
+ /* Manual submit action */
3055
+ .taskon-taskchain-blindbox-actions {
3056
+ display: flex;
3057
+ align-items: center;
3058
+ justify-content: center;
3059
+ }
3060
+
3061
+ .taskon-taskchain-blindbox-btn {
3062
+ padding: 12px 32px;
3063
+ font-size: 14px;
3064
+ font-weight: 600;
3065
+ border: none;
3066
+ border-radius: 8px;
3067
+ cursor: pointer;
3068
+ transition: opacity 0.2s, transform 0.1s;
3069
+ color: #000;
3070
+ background-color: #cbff01;
3071
+ }
3072
+
3073
+ .taskon-taskchain-blindbox-btn:hover {
3074
+ opacity: 0.9;
3075
+ }
3076
+
3077
+ .taskon-taskchain-blindbox-btn:active {
3078
+ transform: scale(0.98);
3079
+ }
3080
+
3081
+ .taskon-taskchain-blindbox-btn:disabled {
3082
+ opacity: 0.5;
3083
+ cursor: not-allowed;
3084
+ }
3085
+
3086
+ /* Loading state */
3087
+ .taskon-taskchain-blindbox-loading {
3088
+ display: flex;
3089
+ flex-direction: column;
3090
+ align-items: center;
3091
+ gap: 16px;
3092
+ color: var(--taskon-text-secondary, #999);
3093
+ }
3094
+
3095
+ /* Spinner */
3096
+ .taskon-taskchain-spinner {
3097
+ width: 32px;
3098
+ height: 32px;
3099
+ border: 3px solid rgba(255, 255, 255, 0.2);
3100
+ border-top-color: #cbff01;
3101
+ border-radius: 50%;
3102
+ animation: taskon-taskchain-spin 0.8s linear infinite;
3103
+ }
3104
+
3105
+ @keyframes taskon-taskchain-spin {
3106
+ to {
3107
+ transform: rotate(360deg);
3108
+ }
3109
+ }
3110
+
3111
+ /* Mobile responsive */
3112
+ @media (max-width: 750px) {
3113
+ .taskon-taskchain-blindbox-step {
3114
+ padding: 16px;
3115
+ min-height: 350px;
3116
+ }
3117
+ }
3118
+ /**
3119
+ * NotEligible Styles
3120
+ * @description Styles for NotEligible component in TaskChain
3121
+ */
3122
+
3123
+ .taskon-taskchain-not-eligible {
3124
+ display: flex;
3125
+ flex-direction: column;
3126
+ align-items: center;
3127
+ justify-content: center;
3128
+ flex: 1;
3129
+ padding: 40px 20px;
3130
+ text-align: center;
3131
+ }
3132
+
3133
+ .taskon-taskchain-not-eligible-oops {
3134
+ font-size: 32px;
3135
+ font-weight: 600;
3136
+ color: var(--taskon-text-primary, #fff);
3137
+ margin-bottom: 32px;
3138
+ }
3139
+
3140
+ .taskon-taskchain-not-eligible-emoji {
3141
+ font-size: 48px;
3142
+ margin-bottom: 16px;
3143
+ }
3144
+
3145
+ .taskon-taskchain-not-eligible-title {
3146
+ font-size: 18px;
3147
+ font-weight: 600;
3148
+ color: var(--taskon-text-primary, #fff);
3149
+ margin-bottom: 8px;
3150
+ }
3151
+
3152
+ .taskon-taskchain-not-eligible-desc {
3153
+ font-size: 14px;
3154
+ color: var(--taskon-text-secondary, #999);
3155
+ max-width: 300px;
3156
+ line-height: 1.5;
3157
+ }
3158
+
3159
+ .taskon-taskchain-not-eligible-panel {
3160
+ width: 508px;
3161
+ max-width: 100%;
3162
+ border-radius: 10px;
3163
+ background-color: rgba(255, 255, 255, 0.05);
3164
+ padding: 16px;
3165
+ }
3166
+
3167
+ /* Mobile responsive */
3168
+ @media (max-width: 750px) {
3169
+ .taskon-taskchain-not-eligible {
3170
+ padding: 20px 16px;
3171
+ }
3172
+
3173
+ .taskon-taskchain-not-eligible-oops {
3174
+ font-size: 24px;
3175
+ margin-bottom: 24px;
3176
+ }
3177
+
3178
+ .taskon-taskchain-not-eligible-panel {
3179
+ width: 100%;
3180
+ padding: 12px;
3181
+ }
3182
+ }
3183
+ /**
3184
+ * ActionEndedMask Styles
3185
+ */
3186
+
3187
+ .taskon-taskchain-ended-mask {
3188
+ position: absolute;
3189
+ inset: 0;
3190
+ display: flex;
3191
+ flex-direction: column;
3192
+ align-items: center;
3193
+ justify-content: center;
3194
+ background: rgba(0, 0, 0, 0.5);
3195
+ backdrop-filter: blur(10px);
3196
+ z-index: 10;
3197
+ border-radius: inherit;
3198
+ }
3199
+
3200
+ .taskon-taskchain-ended-mask-image {
3201
+ width: 72px;
3202
+ height: 72px;
3203
+ }
3204
+
3205
+ .taskon-taskchain-ended-mask-title {
3206
+ margin-top: 16px;
3207
+ text-align: center;
3208
+ font-size: 32px;
3209
+ font-weight: 700;
3210
+ line-height: 40px;
3211
+ color: #fff;
3212
+ }
3213
+
3214
+ /* Mobile responsive */
3215
+ @media (max-width: 750px) {
3216
+ .taskon-taskchain-ended-mask-image {
3217
+ width: 56px;
3218
+ height: 56px;
3219
+ }
3220
+
3221
+ .taskon-taskchain-ended-mask-title {
3222
+ font-size: 24px;
3223
+ line-height: 32px;
3224
+ }
3225
+ }
3226
+ /**
3227
+ * TaskChainDetail Styles
3228
+ *
3229
+ * Layout matches Vue original:
3230
+ * - Outer container: title, step indicator, content card, time info
3231
+ * - Content card (taskon-taskchain-detail-content): has visible card styles
3232
+ * with border, background, rounded corners, glow, and nav buttons inside
3233
+ */
3234
+
3235
+ /* Outer container - only vertical padding, no left/right (handled by dialog-content) */
3236
+ .taskon-taskchain-detail {
3237
+ position: relative;
3238
+ display: flex;
3239
+ flex-direction: column;
3240
+ width: 100%;
3241
+ padding-top: 38px;
3242
+ padding-bottom: 40px;
3243
+ }
3244
+
3245
+ /* Title */
3246
+ .taskon-taskchain-detail-title {
3247
+ font-size: 20px;
3248
+ font-weight: 600;
3249
+ margin: 0;
3250
+ word-break: break-word;
3251
+ color: var(--taskon-text-primary, #fff);
3252
+ }
3253
+
3254
+ /* Time info */
3255
+ .taskon-taskchain-detail-time {
3256
+ margin-top: 16px;
3257
+ }
3258
+
3259
+ /* Step indicator wrapper (for reward display positioning) */
3260
+ .taskon-taskchain-detail-steps-wrap {
3261
+ position: relative;
3262
+ margin-top: 30px;
3263
+ }
3264
+
3265
+ /* Reward display positioning */
3266
+ .taskon-taskchain-detail-reward-display {
3267
+ position: absolute;
3268
+ right: 0;
3269
+ bottom: 100%;
3270
+ margin-bottom: 8px;
3271
+ }
3272
+
3273
+ /* Step indicator area */
3274
+ .taskon-taskchain-detail-steps {
3275
+ width: 100%;
3276
+ }
3277
+
3278
+ /* Content card - matches Vue TaskChainMain root div styles */
3279
+ .taskon-taskchain-detail-content {
3280
+ position: relative;
3281
+ flex: 1;
3282
+ display: flex;
3283
+ flex-direction: column;
3284
+ align-items: center;
3285
+ min-height: 600px;
3286
+ margin-top: 16px;
3287
+ padding: 40px;
3288
+ border-radius: 10px;
3289
+ border: 1px solid rgba(255, 255, 255, 0.05);
3290
+ background: rgba(255, 255, 255, 0.05);
3291
+ overflow: hidden;
3292
+ }
3293
+
3294
+ /* Light glow effect - inside content card */
3295
+ .taskon-taskchain-detail-light {
3296
+ position: absolute;
3297
+ top: -272px;
3298
+ left: 50%;
3299
+ transform: translateX(-50%);
3300
+ width: 546px;
3301
+ height: 546px;
3302
+ border-radius: 50%;
3303
+ background: radial-gradient(
3304
+ 50% 50% at 50% 50%,
3305
+ rgb(82 82 82 / 30%) 0%,
3306
+ rgb(178 178 178 / 30%) 100%
3307
+ );
3308
+ filter: blur(134px);
3309
+ z-index: -1;
3310
+ pointer-events: none;
3311
+ }
3312
+
3313
+ /* Reward step light background - fills entire content card */
3314
+ .taskon-taskchain-reward-light {
3315
+ position: absolute;
3316
+ top: 0;
3317
+ left: 0;
3318
+ width: 100%;
3319
+ height: 100%;
3320
+ z-index: 0;
3321
+ opacity: 0;
3322
+ pointer-events: none;
3323
+ animation: taskon-taskchain-light-appear 2s ease-out forwards;
3324
+ }
3325
+
3326
+ @keyframes taskon-taskchain-light-appear {
3327
+ to {
3328
+ opacity: 1;
3329
+ }
3330
+ }
3331
+
3332
+ /* Inner content wrapper inside card */
3333
+ .taskon-taskchain-detail-inner {
3334
+ display: flex;
3335
+ flex-direction: column;
3336
+ flex: 1;
3337
+ width: 100%;
3338
+ height: 100%;
3339
+ }
3340
+
3341
+ /* Main content flex area */
3342
+ .taskon-taskchain-detail-main {
3343
+ display: flex;
3344
+ flex-direction: column;
3345
+ flex: 1;
3346
+ justify-content: center;
3347
+ }
3348
+
3349
+ /* Navigation buttons - inside content card */
3350
+ .taskon-taskchain-detail-nav {
3351
+ display: flex;
3352
+ justify-content: flex-end;
3353
+ gap: 8px;
3354
+ margin-top: 16px;
3355
+ }
3356
+
3357
+ /* Loading state */
3358
+ .taskon-taskchain-detail-loading {
3359
+ flex: 1;
3360
+ display: flex;
3361
+ flex-direction: column;
3362
+ align-items: center;
3363
+ justify-content: center;
3364
+ gap: 16px;
3365
+ color: var(--taskon-text-secondary, #999);
3366
+ }
3367
+
3368
+ /* Task content wrapper - matches Vue: tw-mx-auto tw-w-[800px] tw-max-w-full */
3369
+ .taskon-taskchain-main {
3370
+ width: 800px;
3371
+ max-width: 100%;
3372
+ margin: 0 auto;
3373
+ }
3374
+
3375
+ /* Mobile responsive */
3376
+ @media (max-width: 750px) {
3377
+ .taskon-taskchain-detail {
3378
+ padding-top: 32px;
3379
+ padding-bottom: 24px;
3380
+ }
3381
+
3382
+ .taskon-taskchain-detail-title {
3383
+ font-size: 18px;
3384
+ }
3385
+
3386
+ .taskon-taskchain-detail-steps-wrap {
3387
+ margin-top: 64px; /* More space on mobile for reward display */
3388
+ }
3389
+
3390
+ .taskon-taskchain-detail-content {
3391
+ margin-top: 24px;
3392
+ padding: 24px;
3393
+ min-height: auto;
3394
+ }
3395
+
3396
+ .taskon-taskchain-detail-nav {
3397
+ margin-top: 24px;
3398
+ }
3399
+ }
3400
+ /**
3401
+ * BottomDialog Styles
3402
+ * Bottom sheet dialog component - slides up from bottom
3403
+ * Migrated from Vue: taskon-website/apps/website/src/components/BottomDialog.vue
3404
+ */
3405
+
3406
+ /* ==================== Full screen overlay container ==================== */
3407
+ .taskon-bottom-dialog {
3408
+ position: fixed;
3409
+ inset: 0;
3410
+ z-index: 9998;
3411
+ }
3412
+
3413
+ /* ==================== Backdrop overlay ==================== */
3414
+ .taskon-bottom-dialog-overlay {
3415
+ position: absolute;
3416
+ inset: 0;
3417
+ background: var(--taskon-color-overlay, rgba(66, 66, 66, 0.5));
3418
+ backdrop-filter: blur(40px);
3419
+ }
3420
+
3421
+ /* Overlay enter animation */
3422
+ .taskon-bottom-dialog-overlay--enter {
3423
+ animation: taskon-bottom-dialog-overlay-in 0.3s ease-out forwards;
3424
+ }
3425
+
3426
+ /* Overlay exit animation */
3427
+ .taskon-bottom-dialog-overlay--exit {
3428
+ animation: taskon-bottom-dialog-overlay-out 0.25s ease-in forwards;
3429
+ }
3430
+
3431
+ @keyframes taskon-bottom-dialog-overlay-in {
3432
+ from {
3433
+ opacity: 0;
3434
+ }
3435
+ to {
3436
+ opacity: 1;
3437
+ }
3438
+ }
3439
+
3440
+ @keyframes taskon-bottom-dialog-overlay-out {
3441
+ from {
3442
+ opacity: 1;
3443
+ }
3444
+ to {
3445
+ opacity: 0;
3446
+ }
3447
+ }
3448
+
3449
+ /* ==================== Card (content area) ==================== */
3450
+ .taskon-bottom-dialog-card {
3451
+ position: fixed;
3452
+ right: 0;
3453
+ bottom: 0;
3454
+ left: 0;
3455
+ border-radius: 10px 10px 0 0;
3456
+ background: var(--taskon-color-bg-popup, #0d0d0d);
3457
+ overflow: auto;
3458
+ }
3459
+
3460
+ /* Card enter animation - slide up from bottom */
3461
+ .taskon-bottom-dialog-card--enter {
3462
+ animation: taskon-bottom-dialog-card-in 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
3463
+ }
3464
+
3465
+ /* Card exit animation - slide down to bottom */
3466
+ .taskon-bottom-dialog-card--exit {
3467
+ animation: taskon-bottom-dialog-card-out 0.25s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
3468
+ }
3469
+
3470
+ @keyframes taskon-bottom-dialog-card-in {
3471
+ from {
3472
+ transform: translateY(100%);
3473
+ }
3474
+ to {
3475
+ transform: translateY(0);
3476
+ }
3477
+ }
3478
+
3479
+ @keyframes taskon-bottom-dialog-card-out {
3480
+ from {
3481
+ transform: translateY(0);
3482
+ }
3483
+ to {
3484
+ transform: translateY(100%);
3485
+ }
3486
+ }
3487
+
3488
+ /* ==================== Close button ==================== */
3489
+ .taskon-bottom-dialog-close {
3490
+ position: absolute;
3491
+ top: 24px;
3492
+ right: 24px;
3493
+ z-index: 10;
3494
+ display: flex;
3495
+ align-items: center;
3496
+ justify-content: center;
3497
+ width: 32px;
3498
+ height: 32px;
3499
+ padding: 0;
3500
+ background: rgba(255, 255, 255, 0.1);
3501
+ border: none;
3502
+ border-radius: 8px;
3503
+ color: var(--taskon-text-secondary, #999);
3504
+ cursor: pointer;
3505
+ transition: background-color 0.2s, color 0.2s;
3506
+ }
3507
+
3508
+ .taskon-bottom-dialog-close:hover {
3509
+ background-color: rgba(255, 255, 255, 0.2);
3510
+ color: var(--taskon-text-primary, #fff);
3511
+ }
3512
+
3513
+ /* ==================== Mobile responsive ==================== */
3514
+ @media (max-width: 750px) {
3515
+ .taskon-bottom-dialog-close {
3516
+ top: 5.333vw;
3517
+ right: 4vw;
3518
+ width: 24px;
3519
+ height: 24px;
3520
+ }
3521
+ }
3522
+ /**
3523
+ * TaskChainDialog Styles
3524
+ * Dialog UI (overlay, card, close button, animations) is handled by BottomDialog.
3525
+ * This file only contains styles for the inner content.
3526
+ */
3527
+
3528
+ /* Inner content wrapper - matches Vue g-safe-area layout */
3529
+ .taskon-taskchain-dialog-content {
3530
+ position: relative;
3531
+ width: 100%;
3532
+ max-width: 1580px;
3533
+ margin: 0 auto;
3534
+ padding-left: 20px;
3535
+ padding-right: 20px;
3536
+ }
3537
+
3538
+ @media (max-width: 1512px) {
3539
+ .taskon-taskchain-dialog-content {
3540
+ max-width: 1340px;
3541
+ }
3542
+ }
3543
+
3544
+ @media (max-width: 750px) {
3545
+ .taskon-taskchain-dialog-content {
3546
+ max-width: initial;
3547
+ padding-left: var(--taskon-m-padding, 4vw);
3548
+ padding-right: var(--taskon-m-padding, 4vw);
3549
+ }
3550
+ }
3551
+
3552
+ /* Error state */
3553
+ .taskon-taskchain-dialog-error {
3554
+ display: flex;
3555
+ flex-direction: column;
3556
+ align-items: center;
3557
+ justify-content: center;
3558
+ min-height: 400px;
3559
+ padding: 40px;
3560
+ text-align: center;
3561
+ color: var(--taskon-text-primary, #fff);
3562
+ }
3563
+
3564
+ .taskon-taskchain-dialog-error-detail {
3565
+ margin-top: 8px;
3566
+ font-size: 14px;
3567
+ color: var(--taskon-text-secondary, #999);
3568
+ }
3569
+ /**
3570
+ * SectorItem 组件样式
3571
+ * 完全复刻 taskon-website 的 SectorItem.vue 样式
3572
+ * 直接使用 dark 模式颜色值,不使用 CSS 变量
3573
+ * 使用 taskon-sector- 前缀避免与项目方样式冲突
3574
+ */
3575
+
3576
+ /* Sector 容器 */
3577
+ .taskon-sector-item {
3578
+ margin-top: 20px;
3579
+ border-radius: 12px;
3580
+ }
3581
+
3582
+ /* 多个 Sector 之间的间距 */
3583
+ .taskon-sector-item + .taskon-sector-item {
3584
+ margin-top: 60px;
3585
+ }
3586
+
3587
+ /* Sector 标题 */
3588
+ .taskon-sector-name {
3589
+ font-size: 24px;
3590
+ font-weight: 700;
3591
+ line-height: 40px;
3592
+ color: #ffffff;
3593
+ margin: 0;
3594
+ }
3595
+
3596
+ /* Sector 描述 */
3597
+ .taskon-sector-desc {
3598
+ margin-top: 4px;
3599
+ color: rgba(255, 255, 255, 0.6);
3600
+ font-size: 16px;
3601
+ line-height: 20px;
3602
+ white-space: pre-wrap;
3603
+ }
3604
+
3605
+ /* 总积分容器 */
3606
+ .taskon-sector-points-wrapper {
3607
+ margin-top: 10px;
3608
+ display: flex;
3609
+ flex-wrap: wrap;
3610
+ gap: 10px;
3611
+ }
3612
+
3613
+ /* 单个积分徽章 */
3614
+ .taskon-sector-point {
3615
+ display: inline-flex;
3616
+ align-items: center;
3617
+ padding: 4px 14px;
3618
+ border-radius: 48px;
3619
+ background: #cbff01; /* Primary 主题色 */
3620
+ color: #0d0d0d;
3621
+ font-size: 18px;
3622
+ font-weight: 500;
3623
+ line-height: 30px;
3624
+ }
3625
+
3626
+ .taskon-sector-point img {
3627
+ width: 24px;
3628
+ height: 24px;
3629
+ object-fit: contain;
3630
+ }
3631
+
3632
+ /* 任务列表 - 使用 grid 布局 */
3633
+ .taskon-sector-tasks {
3634
+ margin-top: 20px;
3635
+ display: grid;
3636
+ gap: 20px;
3637
+ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
3638
+ }
3639
+
3640
+ /* 已完成分隔符 */
3641
+ .taskon-sector-completed {
3642
+ margin-top: 22px;
3643
+ color: #ffffff;
3644
+ font-size: 16px;
3645
+ font-weight: 600;
3646
+ line-height: 20px;
3647
+ }
3648
+
3649
+ /* 已完成任务列表 */
3650
+ .taskon-sector-tasks-completed {
3651
+ margin-top: 22px;
3652
+ }
3653
+
3654
+ /* 任务卡片容器 - 用于包裹 BaseTask 组件 */
3655
+ .taskon-sector-task-card {
3656
+ height: 100%;
3657
+ }
3658
+
3659
+ /* 响应式样式(移动端) */
3660
+ @media (max-width: 750px) {
3661
+ .taskon-sector-item {
3662
+ margin-top: 5.33vw;
3663
+ border-radius: 1.87vw;
3664
+ }
3665
+
3666
+ .taskon-sector-item + .taskon-sector-item {
3667
+ margin-top: 8vw;
3668
+ }
3669
+
3670
+ .taskon-sector-name {
3671
+ font-size: 4.5vw;
3672
+ line-height: 6vw;
3673
+ }
3674
+
3675
+ .taskon-sector-desc {
3676
+ margin-top: 1.067vw;
3677
+ font-size: 3.2vw;
3678
+ line-height: 3.73vw;
3679
+ }
3680
+
3681
+ .taskon-sector-points-wrapper {
3682
+ margin-top: 3.2vw;
3683
+ gap: 2.67vw;
3684
+ }
3685
+
3686
+ .taskon-sector-point {
3687
+ margin-top: 3.2vw;
3688
+ font-size: 4.27vw;
3689
+ line-height: 5.6vw;
3690
+ }
3691
+
3692
+ .taskon-sector-point img {
3693
+ width: 4.27vw;
3694
+ height: 4.27vw;
3695
+ }
3696
+
3697
+ .taskon-sector-tasks {
3698
+ grid-template-columns: repeat(1, 1fr);
3699
+ gap: 4vw;
3700
+ margin-top: 5.333vw;
3701
+ }
3702
+
3703
+ .taskon-sector-completed {
3704
+ margin-top: 5.87vw;
3705
+ font-size: 4.27vw;
3706
+ line-height: 5.33vw;
3707
+ }
3708
+
3709
+ .taskon-sector-tasks-completed {
3710
+ margin-top: 5.87vw;
3711
+ }
3712
+ }
3713
+ /**
3714
+ * DialogPointReward 组件样式
3715
+ * 复刻 Vue 版本 DialogPointReward.vue 的样式
3716
+ * 使用 Widget 命名空间扁平化方案
3717
+ */
3718
+
3719
+ /* ==================== 周期模式 ==================== */
3720
+ .taskon-task-dialog-period {
3721
+ margin-top: 10px;
3722
+ display: flex;
3723
+ align-items: flex-end;
3724
+ color: var(--taskon-color-text, #fff);
3725
+ }
3726
+
3727
+ /* 周期模式 - 积分数量 */
3728
+ .taskon-task-dialog-period-amount {
3729
+ font-size: 32px;
3730
+ line-height: 40px;
3731
+ display: flex;
3732
+ align-items: center;
3733
+ }
3734
+
3735
+ /* 周期模式 - 累计积分强调 */
3736
+ .taskon-task-dialog-period-amount--em {
3737
+ margin-left: 15px;
3738
+ color: #00ffa3;
3739
+ }
3740
+
3741
+ /* 周期模式 - 积分图标 */
3742
+ .taskon-task-dialog-period-icon {
3743
+ display: inline-block;
3744
+ width: 24px;
3745
+ height: 24px;
3746
+ margin-right: 4px;
3747
+ vertical-align: baseline;
3748
+ }
3749
+
3750
+ /* 周期模式 - 标签文字 */
3751
+ .taskon-task-dialog-period-label {
3752
+ margin-left: 6px;
3753
+ font-size: 14px;
3754
+ font-weight: 600;
3755
+ line-height: 28px;
3756
+ }
3757
+
3758
+ /* 周期模式 - 累计标签强调 */
3759
+ .taskon-task-dialog-period-label--em {
3760
+ color: var(--taskon-color-text-secondary, rgba(255, 255, 255, 0.7));
3761
+ }
3762
+
3763
+ /* ==================== Unlimited 模式 ==================== */
3764
+ .taskon-task-dialog-uncertain-amount {
3765
+ color: #00ffa3;
3766
+ font-size: 32px;
3767
+ font-weight: 600;
3768
+ }
3769
+
3770
+ /* ==================== 社区信息 ==================== */
3771
+ .taskon-task-dialog-cm-logo {
3772
+ margin-left: auto;
3773
+ width: 16px;
3774
+ height: 16px;
3775
+ border-radius: 50%;
3776
+ object-fit: cover;
3777
+ }
3778
+
3779
+ .taskon-task-dialog-cm-name {
3780
+ margin-left: 6px;
3781
+ color: var(--taskon-color-text-secondary, rgba(255, 255, 255, 0.7));
3782
+ font-size: 14px;
3783
+ font-weight: 500;
3784
+ line-height: 18px;
3785
+ }
3786
+
3787
+ /* ==================== 响应式 ==================== */
3788
+ @media (max-width: 750px) {
3789
+ .taskon-task-dialog-period {
3790
+ margin-top: 2.667vw;
3791
+ }
3792
+
3793
+ .taskon-task-dialog-period-amount {
3794
+ font-size: 6.4vw;
3795
+ line-height: 8vw;
3796
+ }
3797
+
3798
+ .taskon-task-dialog-period-amount--em {
3799
+ margin-left: 4vw;
3800
+ }
3801
+
3802
+ .taskon-task-dialog-period-icon {
3803
+ width: 4.667vw;
3804
+ height: 4.667vw;
3805
+ margin-right: 0.8vw;
3806
+ }
3807
+
3808
+ .taskon-task-dialog-period-label {
3809
+ margin-left: 1.333vw;
3810
+ font-size: 3.2vw;
3811
+ line-height: 4vw;
3812
+ }
3813
+
3814
+ .taskon-task-dialog-uncertain-amount {
3815
+ font-size: 6.133vw;
3816
+ }
3817
+
3818
+ .taskon-task-dialog-cm-logo {
3819
+ width: 3.2vw;
3820
+ height: 3.2vw;
3821
+ }
3822
+
3823
+ .taskon-task-dialog-cm-name {
3824
+ margin-left: 1.2vw;
3825
+ font-size: 3.2vw;
3826
+ line-height: 4vw;
3827
+ }
3828
+ }
3829
+ /**
3830
+ * DialogTokenReward 组件样式
3831
+ * 复刻 Vue 版本 DialogTokenReward.vue 的样式
3832
+ * 使用 Widget 命名空间扁平化方案
3833
+ */
3834
+
3835
+ /* 链图标 */
3836
+ .taskon-task-dialog-token-chain-icon {
3837
+ display: inline-block;
3838
+ width: 12px;
3839
+ height: 12px;
3840
+ object-fit: cover;
3841
+ margin-left: 6px;
3842
+ }
3843
+
3844
+ /* Token 信息容器(图标 + 名称 + earned) */
3845
+ .taskon-task-dialog-token-info {
3846
+ display: flex;
3847
+ align-items: center;
3848
+ }
3849
+
3850
+ /* Token 奖励专用的 period-label(覆盖 DialogPointReward.css 的 6px) */
3851
+ .taskon-task-dialog-token-period-label {
3852
+ margin-left: 4px;
3853
+ font-size: 14px;
3854
+ font-weight: 600;
3855
+ line-height: 28px;
3856
+ }
3857
+
3858
+ .taskon-task-dialog-token-period-label--em {
3859
+ color: var(--taskon-color-text-secondary, rgba(255, 255, 255, 0.7));
3860
+ }
3861
+
3862
+ /* ==================== 响应式 ==================== */
3863
+ @media (max-width: 750px) {
3864
+ .taskon-task-dialog-token-chain-icon {
3865
+ width: 2.4vw;
3866
+ height: 2.4vw;
3867
+ margin-left: 1.2vw;
3868
+ }
3869
+
3870
+ .taskon-task-dialog-token-period-label {
3871
+ margin-left: 0.8vw;
3872
+ font-size: 3.2vw;
3873
+ line-height: 4vw;
3874
+ }
3875
+ }
3876
+ /**
3877
+ * ColorfulProgress 组件样式
3878
+ * 复刻 Vue 版本 ColorfulProgress.vue 的样式
3879
+ * 使用 Widget 命名空间扁平化方案
3880
+ */
3881
+
3882
+ /* 进度条容器 */
3883
+ .taskon-task-dialog-colorful-progress {
3884
+ position: relative;
3885
+ width: 100%;
3886
+ height: 8px;
3887
+ background-color: rgba(255, 255, 255, 0.2);
3888
+ border-radius: 2px;
3889
+ overflow: hidden;
3890
+ }
3891
+
3892
+ /* 进度条 - 渐变填充 */
3893
+ .taskon-task-dialog-colorful-progress__bar {
3894
+ position: absolute;
3895
+ right: 0;
3896
+ bottom: 0;
3897
+ height: 100%;
3898
+ display: flex;
3899
+ align-items: center;
3900
+ gap: 6px;
3901
+ /* 渐变背景: 绿色 -> 黄绿色 */
3902
+ background: linear-gradient(90deg, #00ffa3 -229.89%, #cbff01 100%);
3903
+ border-radius: 2px;
3904
+ overflow: hidden;
3905
+ }
3906
+
3907
+ /* 斜纹波浪 */
3908
+ .taskon-task-dialog-colorful-progress__wave {
3909
+ width: 3px;
3910
+ flex-shrink: 0;
3911
+ height: 200%;
3912
+ transform: rotate(45deg);
3913
+ background: rgba(0, 0, 0, 0.1);
3914
+ }
3915
+
3916
+ /* ==================== 响应式 ==================== */
3917
+ @media (max-width: 750px) {
3918
+ .taskon-task-dialog-colorful-progress {
3919
+ height: 1.6vw;
3920
+ }
3921
+ }
3922
+ /**
3923
+ * TokenStatusLeft 组件样式
3924
+ * 复刻 Vue 版本 TokenStatusLeft.vue 的样式
3925
+ * 使用 Widget 命名空间扁平化方案
3926
+ */
3927
+
3928
+ /* 容器 */
3929
+ .taskon-task-dialog-token-progress {
3930
+ display: flex;
3931
+ justify-content: flex-start;
3932
+ align-items: center;
3933
+ gap: 8px;
3934
+ }
3935
+
3936
+ /* 文字部分 */
3937
+ .taskon-task-dialog-token-progress__content {
3938
+ color: var(--taskon-color-text-secondary, rgba(255, 255, 255, 0.7));
3939
+ font-size: 14px;
3940
+ font-weight: 500;
3941
+ }
3942
+
3943
+ /* 高亮数字 */
3944
+ .taskon-task-dialog-token-progress__text {
3945
+ color: #00ffa3;
3946
+ }
3947
+
3948
+ /* 进度条容器 */
3949
+ .taskon-task-dialog-token-progress__bar {
3950
+ width: 66px;
3951
+ }
3952
+
3953
+ /* ==================== 响应式 ==================== */
3954
+ @media (max-width: 750px) {
3955
+ .taskon-task-dialog-token-progress__content {
3956
+ font-size: 3.2vw;
3957
+ }
3958
+
3959
+ .taskon-task-dialog-token-progress__bar {
3960
+ width: 12vw;
3961
+ }
3962
+ }
3963
+ /**
3964
+ * CloseIn 样式
3965
+ * 复刻 Vue 版本 CloseIn.vue 样式
3966
+ */
3967
+
3968
+ .taskon-close-in {
3969
+ margin-top: 30px;
3970
+ color: var(--taskon-primary-100, #6366f1);
3971
+ text-align: center;
3972
+ font-size: 14px;
3973
+ font-weight: 500;
3974
+ line-height: 18px;
3975
+ }
3976
+ /**
3977
+ * TaskDialogContent 组件样式
3978
+ * 复刻 Vue 版本 TaskDialog.vue 的样式
3979
+ * 使用 Widget 命名空间扁平化方案
3980
+ */
3981
+
3982
+ /* ==================== 左侧面板 ==================== */
3983
+ .taskon-task-dialog-left {
3984
+ width: 440px;
3985
+ display: flex;
3986
+ flex-direction: column;
3987
+ }
3988
+
3989
+ /* 主内容区 */
3990
+ .taskon-task-dialog-main {
3991
+ flex: 1;
3992
+ }
3993
+
3994
+ /* ==================== 周期标签 ==================== */
3995
+ .taskon-task-dialog-recurrence {
3996
+ display: inline-block;
3997
+ padding: 3px 12px;
3998
+ border-radius: 4px;
3999
+ background: rgba(255, 255, 255, 0.04);
4000
+ color: var(--taskon-color-text-secondary, #a0a0a0);
4001
+ font-size: 13px;
4002
+ line-height: 16px;
4003
+ }
4004
+
4005
+ /* ==================== 标题 ==================== */
4006
+ .taskon-task-dialog-title {
4007
+ margin: 20px 0 0 0;
4008
+ color: var(--taskon-color-text, #fff);
4009
+ font-size: 22px;
4010
+ font-weight: 600;
4011
+ line-height: 28px;
4012
+ }
4013
+
4014
+ /* 标题链接样式 */
4015
+ .taskon-task-dialog-title--link {
4016
+ display: block;
4017
+ text-decoration: none;
4018
+ color: var(--taskon-color-primary, #6366f1);
4019
+ transition: color 0.2s ease;
4020
+ }
4021
+
4022
+ .taskon-task-dialog-title--link:hover {
4023
+ color: var(--taskon-color-primary-hover, #818cf8);
4024
+ text-decoration: underline;
4025
+ }
4026
+
4027
+ /* ==================== 有效时间 - 复刻 Vue valid-util ==================== */
4028
+ .taskon-task-dialog-valid-time {
4029
+ margin-top: 10px;
4030
+ font-size: 14px;
4031
+ line-height: 18px;
4032
+ }
4033
+
4034
+ .taskon-task-dialog-valid-time-label {
4035
+ color: var(--taskon-color-text-secondary, rgba(255, 255, 255, 0.5));
4036
+ }
4037
+
4038
+ .taskon-task-dialog-valid-time-value {
4039
+ margin-left: 4px;
4040
+ color: var(--taskon-color-text, #fff);
4041
+ }
4042
+
4043
+ /* ==================== 描述区域 ==================== */
4044
+ .taskon-task-dialog-desc {
4045
+ margin-top: 15px;
4046
+ }
4047
+
4048
+ /* ==================== Action 按钮 - 复刻 Vue ActionButton ==================== */
4049
+ .taskon-task-dialog-action {
4050
+ margin-top: 30px;
4051
+ width: 100%;
4052
+ height: 40px;
4053
+ padding: 0 16px;
4054
+ display: flex;
4055
+ align-items: center;
4056
+ justify-content: center;
4057
+ border-radius: 6px;
4058
+ border: none;
4059
+ /* Vue: --primary-12 深蓝色背景 */
4060
+ background: rgba(203, 255, 1, 0.12);
4061
+ /* Vue: --primary-100 黄色文字 */
4062
+ color: var(--taskon-color-primary, #cbff01);
4063
+ font-size: 14px;
4064
+ font-weight: 500;
4065
+ line-height: 40px;
4066
+ cursor: pointer;
4067
+ transition: all 0.2s;
4068
+ }
4069
+
4070
+ .taskon-task-dialog-action:hover {
4071
+ background: var(--taskon-color-primary, #cbff01);
4072
+ color: #0d0d0d;
4073
+ }
4074
+
4075
+ /* ==================== 奖励卡片 ==================== */
4076
+ .taskon-task-dialog-reward-card {
4077
+ position: relative;
4078
+ margin-top: 30px;
4079
+ padding: 20px;
4080
+ border-radius: 10px;
4081
+ /* Vue: --color-invisible 在深色主题下是略亮的半透明 */
4082
+ background: rgba(255, 255, 255, 0.06);
4083
+ }
4084
+
4085
+ /* Max claim 标签 - 复刻 Vue rewards-max-claim */
4086
+ .taskon-task-dialog-max-claim {
4087
+ position: absolute;
4088
+ top: -24px;
4089
+ right: 6px;
4090
+ height: 24px;
4091
+ padding: 3px 12px;
4092
+ display: flex;
4093
+ align-items: center;
4094
+ gap: 4px;
4095
+ /* Vue: --color-lightest-inverse 深色文字 */
4096
+ color: var(--taskon-color-text-inverse, #0d0d0d);
4097
+ font-size: 14px;
4098
+ font-style: normal;
4099
+ font-weight: 600;
4100
+ line-height: normal;
4101
+ /* Vue: --color-lightest 亮色背景 */
4102
+ background: var(--taskon-color-bg-inverse, #fff);
4103
+ border-radius: 8px 8px 0 0;
4104
+ }
4105
+
4106
+ .taskon-task-dialog-max-claim--highlight {
4107
+ /* Vue: --secondary-100 高亮色 */
4108
+ color: var(--taskon-color-secondary, #7c3aed);
4109
+ }
4110
+
4111
+ /* 标签行 */
4112
+ .taskon-task-dialog-label-row {
4113
+ display: flex;
4114
+ align-items: center;
4115
+ justify-content: space-between;
4116
+ height: 24px;
4117
+ }
4118
+
4119
+ /* Rewards 标签 */
4120
+ .taskon-task-dialog-rewards-label {
4121
+ color: var(--taskon-color-text, #fff);
4122
+ font-size: 14px;
4123
+ line-height: 18px;
4124
+ font-weight: 600;
4125
+ }
4126
+
4127
+ /* Won 标签 */
4128
+ .taskon-task-dialog-won {
4129
+ margin-left: auto;
4130
+ border-radius: 4px;
4131
+ background: rgba(255, 255, 255, 0.04);
4132
+ padding: 3px 12px;
4133
+ color: #27ae60;
4134
+ font-size: 14px;
4135
+ font-weight: 600;
4136
+ line-height: 18px;
4137
+ }
4138
+
4139
+ /* Updated at 标签 - Unlimited 任务专用,复刻 Vue updated-label */
4140
+ .taskon-task-dialog-updated {
4141
+ margin-left: auto;
4142
+ /* Vue: --color-dark 半透明白色 */
4143
+ color: var(--taskon-color-text-secondary, rgba(255, 255, 255, 0.5));
4144
+ font-size: 12px;
4145
+ font-weight: 500;
4146
+ }
4147
+
4148
+ /* ==================== 周期任务倒计时 - 复刻 Vue periodic-done ==================== */
4149
+ .taskon-task-dialog-periodic-done {
4150
+ margin-left: auto;
4151
+ display: flex;
4152
+ align-items: center;
4153
+ color: var(--taskon-color-text-secondary, rgba(255, 255, 255, 0.7));
4154
+ font-size: 13px;
4155
+ line-height: 16px;
4156
+ }
4157
+
4158
+ /* 分隔线 */
4159
+ .taskon-task-dialog-periodic-done__line {
4160
+ margin: 0 6px;
4161
+ width: 1px;
4162
+ height: 10px;
4163
+ background: var(--taskon-color-border, rgba(255, 255, 255, 0.2));
4164
+ }
4165
+
4166
+ /* 倒计时数字 */
4167
+ .taskon-task-dialog-periodic-done__time {
4168
+ margin-left: 4px;
4169
+ /* Vue: --secondary-100 绿色强调 */
4170
+ color: #00ffa3;
4171
+ font-size: 14px;
4172
+ font-weight: 500;
4173
+ line-height: 18px;
4174
+ }
4175
+
4176
+ /* ==================== 积分展示 ==================== */
4177
+ .taskon-task-dialog-point-row {
4178
+ margin-top: 10px;
4179
+ display: flex;
4180
+ align-items: center;
4181
+ /* Vue: --color-light 白色 */
4182
+ color: var(--taskon-color-text, #fff);
4183
+ }
4184
+
4185
+ .taskon-task-dialog-point-icon {
4186
+ display: inline-block;
4187
+ width: 24px;
4188
+ height: 24px;
4189
+ margin-right: 4px;
4190
+ vertical-align: baseline;
4191
+ }
4192
+
4193
+ .taskon-task-dialog-point-amount {
4194
+ color: #00ffa3;
4195
+ font-size: 32px;
4196
+ font-weight: 600;
4197
+ line-height: 40px;
4198
+ }
4199
+
4200
+ .taskon-task-dialog-point-name {
4201
+ margin-left: auto;
4202
+ color: var(--taskon-color-text-secondary, #a0a0a0);
4203
+ font-size: 14px;
4204
+ font-weight: 500;
4205
+ line-height: 18px;
4206
+ }
4207
+
4208
+ /* ==================== Claim 按钮 ==================== */
4209
+ .taskon-task-dialog-claim {
4210
+ margin-top: 20px;
4211
+ }
4212
+
4213
+ /* Token 进度条容器 */
4214
+ .taskon-task-dialog-token-progress-wrap {
4215
+ margin-top: 10px;
4216
+ display: flex;
4217
+ align-items: center;
4218
+ justify-content: center;
4219
+ }
4220
+
4221
+ /* 弹窗内 Claim 按钮样式覆盖 */
4222
+ .taskon-task-dialog-claim .taskon-community-task-claim {
4223
+ width: 100%;
4224
+ padding: 12px 24px;
4225
+ font-size: 14px;
4226
+ font-weight: 600;
4227
+ }
4228
+
4229
+ /* ==================== 响应式 ==================== */
4230
+ @media (max-width: 750px) {
4231
+ .taskon-task-dialog-left {
4232
+ width: 100%;
4233
+ }
4234
+
4235
+ .taskon-task-dialog-recurrence {
4236
+ padding: 0.667vw 2.667vw;
4237
+ font-size: 2.667vw;
4238
+ line-height: 3.467vw;
4239
+ }
4240
+
4241
+ .taskon-task-dialog-title {
4242
+ margin-top: 4vw;
4243
+ font-size: 4.267vw;
4244
+ line-height: 5.333vw;
4245
+ }
4246
+
4247
+ .taskon-task-dialog-valid-time {
4248
+ margin-top: 2.667vw;
4249
+ font-size: 3.733vw;
4250
+ line-height: 4.667vw;
4251
+ }
4252
+
4253
+ .taskon-task-dialog-valid-time-value {
4254
+ margin-left: 1.067vw;
4255
+ }
4256
+
4257
+ .taskon-task-dialog-desc {
4258
+ margin-top: 2.667vw;
4259
+ }
4260
+
4261
+ .taskon-task-dialog-action {
4262
+ margin-top: 5.333vw;
4263
+ height: 11vw;
4264
+ padding: 0 4vw;
4265
+ font-size: 3.733vw;
4266
+ line-height: 11vw;
4267
+ }
4268
+
4269
+ .taskon-task-dialog-reward-card {
4270
+ margin-top: 5.333vw;
4271
+ padding: 4vw;
4272
+ }
4273
+
4274
+ .taskon-task-dialog-label-row {
4275
+ height: 4vw;
4276
+ }
4277
+
4278
+ .taskon-task-dialog-rewards-label {
4279
+ font-size: 3.2vw;
4280
+ line-height: 4vw;
4281
+ }
4282
+
4283
+ .taskon-task-dialog-won {
4284
+ font-size: 3.2vw;
4285
+ line-height: 4vw;
4286
+ padding: 0.533vw 2.4vw;
4287
+ }
4288
+
4289
+ .taskon-task-dialog-updated {
4290
+ font-size: 3.2vw;
4291
+ }
4292
+
4293
+ /* 周期任务倒计时响应式 */
4294
+ .taskon-task-dialog-periodic-done {
4295
+ font-size: 2.667vw;
4296
+ line-height: 3.467vw;
4297
+ }
4298
+
4299
+ .taskon-task-dialog-periodic-done__line {
4300
+ margin: 0 1.2vw;
4301
+ height: 2vw;
4302
+ }
4303
+
4304
+ .taskon-task-dialog-periodic-done__time {
4305
+ margin-left: 0.8vw;
4306
+ font-size: 3.2vw;
4307
+ line-height: 4vw;
4308
+ }
4309
+
4310
+ .taskon-task-dialog-point-row {
4311
+ margin-top: 2.667vw;
4312
+ }
4313
+
4314
+ .taskon-task-dialog-point-amount {
4315
+ font-size: 6.4vw;
4316
+ line-height: 8vw;
4317
+ }
4318
+
4319
+ .taskon-task-dialog-point-icon {
4320
+ width: 4.667vw;
4321
+ height: 4.667vw;
4322
+ margin-right: 0.8vw;
4323
+ }
4324
+
4325
+ .taskon-task-dialog-point-name {
4326
+ font-size: 3.2vw;
4327
+ line-height: 4vw;
4328
+ }
4329
+
4330
+ .taskon-task-dialog-claim {
4331
+ margin-top: 4vw;
4332
+ }
4333
+ }
4334
+ /**
4335
+ * PowImageUploader 组件样式
4336
+ * 使用 Widget 命名空间扁平化方案
4337
+ * 所有类名使用 .taskon-pow-uploader-* 前缀,避免跨 Widget 冲突
4338
+ */
4339
+
4340
+ .taskon-pow-uploader {
4341
+ margin-top: 20px;
4342
+ display: flex;
4343
+ align-items: center;
4344
+ }
4345
+
4346
+ .taskon-pow-uploader-area {
4347
+ flex: 1;
4348
+ position: relative;
4349
+ display: flex;
4350
+ flex-direction: column;
4351
+ align-items: center;
4352
+ justify-content: center;
4353
+ min-height: 128px;
4354
+ text-align: center;
4355
+ font-size: 0;
4356
+ overflow: hidden;
4357
+ border: 1px solid var(--taskon-color-border, #e2e8f0);
4358
+ border-radius: var(--taskon-border-radius, 8px);
4359
+ background: var(--taskon-color-bg, #ffffff);
4360
+ cursor: pointer;
4361
+ transition: border-color 0.2s ease, background-color 0.2s ease;
4362
+ }
4363
+
4364
+ .taskon-pow-uploader-area:hover,
4365
+ .taskon-pow-uploader-area:focus {
4366
+ border-color: var(--taskon-color-primary, #6366f1);
4367
+ outline: none;
4368
+ }
4369
+
4370
+ .taskon-pow-uploader-area:hover .taskon-pow-uploader-mask,
4371
+ .taskon-pow-uploader-area:focus .taskon-pow-uploader-mask {
4372
+ display: flex;
4373
+ }
4374
+
4375
+ .taskon-pow-uploader-area--disabled {
4376
+ cursor: not-allowed;
4377
+ opacity: 0.6;
4378
+ }
4379
+
4380
+ .taskon-pow-uploader-area--disabled:hover,
4381
+ .taskon-pow-uploader-area--disabled:focus {
4382
+ border-color: var(--taskon-color-border, #e2e8f0);
4383
+ }
4384
+
4385
+ /* 隐藏的文件输入 */
4386
+ .taskon-pow-uploader-input {
4387
+ display: none;
4388
+ }
4389
+
4390
+ /* 图片预览 */
4391
+ .taskon-pow-uploader-preview {
4392
+ border-radius: 4px;
4393
+ margin: 20px 0;
4394
+ max-width: 100%;
4395
+ max-height: 300px;
4396
+ object-fit: contain;
4397
+ }
4398
+
4399
+ /* 悬停遮罩 */
4400
+ .taskon-pow-uploader-mask {
4401
+ display: none;
4402
+ position: absolute;
4403
+ inset: 0;
4404
+ z-index: 2;
4405
+ align-items: center;
4406
+ justify-content: center;
4407
+ flex-direction: column;
4408
+ background: rgba(0, 0, 0, 0.8);
4409
+ }
4410
+
4411
+ /* 上传图标 */
4412
+ .taskon-pow-uploader-icon {
4413
+ width: 24px;
4414
+ height: 24px;
4415
+ color: #ffffff;
4416
+ }
4417
+
4418
+ .taskon-pow-uploader-icon--empty {
4419
+ opacity: 0.6;
4420
+ color: var(--taskon-color-text-secondary, #64748b);
4421
+ }
4422
+
4423
+ /* 提示文字 */
4424
+ .taskon-pow-uploader-tip {
4425
+ margin-top: 13px;
4426
+ font-size: 14px;
4427
+ line-height: 20px;
4428
+ letter-spacing: 0.04em;
4429
+ text-transform: uppercase;
4430
+ white-space: pre-wrap;
4431
+ color: #ffffff;
4432
+ }
4433
+
4434
+ .taskon-pow-uploader-tip--empty {
4435
+ opacity: 0.6;
4436
+ color: var(--taskon-color-text-secondary, #64748b);
4437
+ }
4438
+
4439
+ /* 上传进度条 */
4440
+ .taskon-pow-uploader-progress {
4441
+ z-index: 3;
4442
+ position: absolute;
4443
+ right: 0;
4444
+ bottom: 0;
4445
+ left: 0;
4446
+ background: rgba(255, 255, 255, 0.1);
4447
+ height: 6px;
4448
+ }
4449
+
4450
+ .taskon-pow-uploader-progress-bar {
4451
+ background: var(--taskon-color-primary, #6366f1);
4452
+ height: 100%;
4453
+ border-radius: 4px;
4454
+ transition: width 0.1s linear;
4455
+ }
4456
+
4457
+ /* 移动端适配 */
4458
+ @media (max-width: 750px) {
4459
+ .taskon-pow-uploader {
4460
+ margin-top: 2.67vw;
4461
+ }
4462
+
4463
+ .taskon-pow-uploader-area {
4464
+ min-height: 17.07vw;
4465
+ }
4466
+
4467
+ .taskon-pow-uploader-icon {
4468
+ width: 18px;
4469
+ height: 18px;
4470
+ }
4471
+
4472
+ .taskon-pow-uploader-tip {
4473
+ margin-top: 10px;
4474
+ font-size: 12px;
4475
+ line-height: 16px;
4476
+ }
4477
+
4478
+ .taskon-pow-uploader-preview {
4479
+ max-height: 200px;
4480
+ }
4481
+ }
4482
+ /**
4483
+ * PowTaskDialogContent 组件样式
4484
+ * 复刻 Vue 版本 PowTask.vue 弹窗样式
4485
+ */
4486
+
4487
+ /* ==================== 表单区域 ==================== */
4488
+ .taskon-pow-dialog-form {
4489
+ margin-top: 15px;
4490
+ }
4491
+
4492
+ /* ==================== 错误提示 ==================== */
4493
+ .taskon-pow-dialog-error {
4494
+ margin-top: 15px;
4495
+ color: #ff3a44;
4496
+ font-size: 14px;
4497
+ line-height: 20px;
4498
+ letter-spacing: 0.04em;
4499
+ text-align: left;
4500
+ white-space: nowrap;
4501
+ }
4502
+
4503
+ /* ==================== 提交按钮 ==================== */
4504
+ .taskon-pow-dialog-submit {
4505
+ margin-top: 30px;
4506
+ width: 100%;
4507
+ height: 40px;
4508
+ padding: 0 16px;
4509
+ display: flex;
4510
+ align-items: center;
4511
+ justify-content: center;
4512
+ border-radius: 6px;
4513
+ border: none;
4514
+ background: linear-gradient(270deg, #00ffa3 0%, #cbff01 100%);
4515
+ color: #0d0d0d;
4516
+ font-size: 14px;
4517
+ font-weight: 600;
4518
+ line-height: 40px;
4519
+ cursor: pointer;
4520
+ transition: opacity 0.2s;
4521
+ }
4522
+
4523
+ .taskon-pow-dialog-submit:hover {
4524
+ opacity: 0.9;
4525
+ }
4526
+
4527
+ .taskon-pow-dialog-submit:disabled {
4528
+ opacity: 0.6;
4529
+ cursor: not-allowed;
4530
+ }
4531
+
4532
+ /* ==================== 完成状态 ==================== */
4533
+ .taskon-pow-dialog-done {
4534
+ margin-top: 30px;
4535
+ padding: 12px 16px;
4536
+ border-radius: 6px;
4537
+ background: rgba(39, 174, 96, 0.1);
4538
+ color: #27ae60;
4539
+ font-size: 14px;
4540
+ font-weight: 500;
4541
+ text-align: center;
4542
+ }
4543
+
4544
+ /* ==================== 审核状态 ==================== */
4545
+ .taskon-pow-dialog-status--review {
4546
+ margin-left: auto;
4547
+ padding: 3px 12px;
4548
+ border-radius: 4px;
4549
+ background: rgba(255, 255, 255, 0.04);
4550
+ color: #9b51e0;
4551
+ font-size: 14px;
4552
+ font-weight: 600;
4553
+ line-height: 18px;
4554
+ }
4555
+
4556
+ .taskon-pow-dialog-status--failed {
4557
+ margin-left: auto;
4558
+ padding: 3px 12px;
4559
+ border-radius: 4px;
4560
+ background: rgba(255, 255, 255, 0.04);
4561
+ color: #eb5757;
4562
+ font-size: 14px;
4563
+ font-weight: 600;
4564
+ line-height: 18px;
4565
+ }
4566
+
4567
+ /* ==================== 响应式 ==================== */
4568
+ @media (max-width: 750px) {
4569
+ .taskon-pow-dialog-error {
4570
+ margin-top: 2.667vw;
4571
+ font-size: 2.933vw;
4572
+ line-height: 2.667vw;
4573
+ }
4574
+
4575
+ .taskon-pow-dialog-submit {
4576
+ margin-top: 5.333vw;
4577
+ height: 11vw;
4578
+ font-size: 3.733vw;
4579
+ line-height: 11vw;
4580
+ }
4581
+
4582
+ .taskon-pow-dialog-done {
4583
+ margin-top: 5.333vw;
4584
+ padding: 3.2vw 4.267vw;
4585
+ font-size: 3.733vw;
4586
+ }
4587
+
4588
+ .taskon-pow-dialog-status--review,
4589
+ .taskon-pow-dialog-status--failed {
4590
+ padding: 0.533vw 2.4vw;
4591
+ font-size: 3.2vw;
4592
+ line-height: 4vw;
4593
+ }
4594
+ }
4595
+ /**
4596
+ * SwapDexDialogContent 组件样式
4597
+ * 复刻 Vue 版本 SwapDexContractInteractive.vue 弹窗样式
4598
+ */
4599
+
4600
+ /* ==================== 进度显示 ==================== */
4601
+ .taskon-swap-dialog-progress {
4602
+ margin-left: auto;
4603
+ display: flex;
4604
+ align-items: center;
4605
+ gap: 4px;
4606
+ font-size: 16px;
4607
+ line-height: 20px;
4608
+ font-weight: 500;
4609
+ }
4610
+
4611
+ .taskon-swap-dialog-progress-current {
4612
+ color: #00ffa3;
4613
+ }
4614
+
4615
+ .taskon-swap-dialog-progress-separator {
4616
+ color: var(--taskon-color-text-secondary, #a0a0a0);
4617
+ margin: 0 2px;
4618
+ }
4619
+
4620
+ .taskon-swap-dialog-progress-total {
4621
+ color: var(--taskon-color-text-secondary, #a0a0a0);
4622
+ font-size: 14px;
4623
+ line-height: 18px;
4624
+ }
4625
+
4626
+ /* ==================== 内容区块 ==================== */
4627
+ .taskon-swap-dialog-section {
4628
+ margin-top: 16px;
4629
+ }
4630
+
4631
+ .taskon-swap-dialog-section-title {
4632
+ color: var(--taskon-color-text, #fff);
4633
+ font-size: 14px;
4634
+ font-weight: 600;
4635
+ line-height: 18px;
4636
+ }
4637
+
4638
+ .taskon-swap-dialog-section-content {
4639
+ margin-top: 8px;
4640
+ padding: 12px;
4641
+ border-radius: 8px;
4642
+ background: rgba(255, 255, 255, 0.04);
4643
+ color: var(--taskon-color-text, #fff);
4644
+ font-size: 14px;
4645
+ line-height: 18px;
4646
+ }
4647
+
4648
+ /* ==================== 响应式 ==================== */
4649
+ @media (max-width: 750px) {
4650
+ .taskon-swap-dialog-progress {
4651
+ gap: 1.067vw;
4652
+ font-size: 4.267vw;
4653
+ line-height: 5.333vw;
4654
+ }
4655
+
4656
+ .taskon-swap-dialog-progress-separator {
4657
+ margin: 0 0.533vw;
4658
+ }
4659
+
4660
+ .taskon-swap-dialog-progress-total {
4661
+ font-size: 3.733vw;
4662
+ line-height: 4.8vw;
4663
+ }
4664
+
4665
+ .taskon-swap-dialog-section {
4666
+ margin-top: 4.267vw;
4667
+ }
4668
+
4669
+ .taskon-swap-dialog-section-title {
4670
+ font-size: 3.733vw;
4671
+ line-height: 4.8vw;
4672
+ }
4673
+
4674
+ .taskon-swap-dialog-section-content {
4675
+ margin-top: 2.133vw;
4676
+ padding: 3.2vw;
4677
+ font-size: 3.2vw;
4678
+ line-height: 4.133vw;
4679
+ }
4680
+ }
4681
+ /**
4682
+ * DialogLoading 组件样式
4683
+ * 使用 Widget 命名空间扁平化方案
4684
+ */
4685
+
4686
+ .taskon-dialog-loading {
4687
+ display: flex;
4688
+ flex-direction: column;
4689
+ align-items: center;
4690
+ justify-content: center;
4691
+ min-height: 300px;
4692
+ width: 440px;
4693
+ gap: 16px;
4694
+ }
4695
+
4696
+ .taskon-dialog-loading-spinner {
4697
+ width: 40px;
4698
+ height: 40px;
4699
+ border: 3px solid rgba(255, 255, 255, 0.1);
4700
+ border-top-color: var(--taskon-color-primary, #cbff01);
4701
+ border-radius: 50%;
4702
+ animation: taskon-spin 1s linear infinite;
4703
+ }
4704
+
4705
+ .taskon-dialog-loading-text {
4706
+ color: var(--taskon-color-text-secondary, #888);
4707
+ font-size: 14px;
4708
+ }
4709
+
4710
+ @keyframes taskon-spin {
4711
+ to {
4712
+ transform: rotate(360deg);
4713
+ }
4714
+ }
4715
+ /**
4716
+ * DialogError 组件样式
4717
+ * 使用 Widget 命名空间扁平化方案
4718
+ */
4719
+
4720
+ .taskon-dialog-error {
4721
+ display: flex;
4722
+ flex-direction: column;
4723
+ align-items: center;
4724
+ justify-content: center;
4725
+ min-height: 300px;
4726
+ width: 440px;
4727
+ padding: 24px;
4728
+ text-align: center;
4729
+ }
4730
+
4731
+ .taskon-dialog-error-icon {
4732
+ font-size: 48px;
4733
+ margin-bottom: 16px;
4734
+ color: var(--taskon-color-text-secondary, #888);
4735
+ }
4736
+
4737
+ .taskon-dialog-error-message {
4738
+ color: var(--taskon-color-text-secondary, #888);
4739
+ margin-bottom: 16px;
4740
+ font-size: 14px;
4741
+ line-height: 1.5;
4742
+ max-width: 300px;
4743
+ }
4744
+
4745
+ .taskon-dialog-error-retry {
4746
+ padding: 10px 24px;
4747
+ background: var(--taskon-color-primary, #cbff01);
4748
+ color: #000;
4749
+ border: none;
4750
+ border-radius: 8px;
4751
+ cursor: pointer;
4752
+ font-size: 14px;
4753
+ font-weight: 500;
4754
+ transition: opacity 0.2s;
4755
+ }
4756
+
4757
+ .taskon-dialog-error-retry:hover {
4758
+ opacity: 0.9;
4759
+ }
4760
+
4761
+ .taskon-dialog-error-retry:active {
4762
+ opacity: 0.8;
4763
+ }
4764
+ /**
4765
+ * TaskDialog 组件样式
4766
+ * 复刻 Vue 版本 TaskDialog 结构
4767
+ * 使用 Widget 命名空间扁平化方案
4768
+ */
4769
+
4770
+ /* ==================== Dialog 容器覆盖 ==================== */
4771
+ .taskon-task-dialog {
4772
+ /* 复刻 Vue --bg-popup-basic-100: #0d0d0d */
4773
+ background: var(--taskon-color-bg-popup, #0d0d0d) !important;
4774
+ color: var(--taskon-color-text, #ffffff);
4775
+ }
4776
+
4777
+ /* 覆盖 Dialog body padding,让内容自己控制 */
4778
+ .taskon-task-dialog .taskon-dialog-body {
4779
+ padding: 0;
4780
+ }
4781
+
4782
+ /* 关闭按钮深色主题 */
4783
+ .taskon-task-dialog .taskon-dialog-close {
4784
+ background: rgba(255, 255, 255, 0.1);
4785
+ color: var(--taskon-color-text-secondary, #888);
4786
+ }
4787
+
4788
+ .taskon-task-dialog .taskon-dialog-close:hover {
4789
+ background: rgba(255, 255, 255, 0.2);
4790
+ color: var(--taskon-color-text, #fff);
4791
+ }
4792
+
4793
+ /* ==================== Wrapper: 复刻 Vue .task-dialog ==================== */
4794
+ .taskon-task-dialog-wrapper {
4795
+ display: flex;
4796
+ padding: 30px;
4797
+ }
4798
+
4799
+ /* ==================== 右侧面板 ==================== */
4800
+ .taskon-task-dialog-right {
4801
+ margin-left: 30px;
4802
+ padding-left: 30px;
4803
+ border-left: 1px solid rgba(255, 255, 255, 0.1);
4804
+ }
4805
+
4806
+ /* ==================== 验证成功提示(CloseIn) ==================== */
4807
+ .taskon-task-dialog-close-in {
4808
+ margin-top: 30px;
4809
+ color: var(--taskon-color-primary, #cbff01);
4810
+ text-align: center;
4811
+ font-size: 14px;
4812
+ font-weight: 500;
4813
+ line-height: 18px;
4814
+ }
4815
+
4816
+ /* ==================== 响应式 ==================== */
4817
+ @media (max-width: 750px) {
4818
+ .taskon-task-dialog-wrapper {
4819
+ flex-direction: column;
4820
+ padding: 5.333vw;
4821
+ }
4822
+
4823
+ .taskon-task-dialog-right {
4824
+ margin-left: 0;
4825
+ margin-top: 5.333vw;
4826
+ padding-left: 0;
4827
+ padding-top: 5.333vw;
4828
+ border-left: none;
4829
+ border-top: 1px solid rgba(255, 255, 255, 0.1);
4830
+ }
4831
+
4832
+ .taskon-task-dialog-close-in {
4833
+ margin-top: 5.333vw;
4834
+ }
4835
+ }
4836
+ /**
4837
+ * CommunityTaskList 组件样式
4838
+ * 直接使用 dark 模式颜色值,不使用 CSS 变量
4839
+ * 使用 taskon-community-list- 前缀避免与项目方样式冲突
4840
+ */
4841
+
4842
+ /* 列表容器 */
4843
+ .taskon-community-list {
4844
+ width: 100%;
4845
+ }
4846
+
4847
+ /* Selector 样式 */
4848
+ .taskon-community-list-selector {
4849
+ margin-bottom: 24px;
4850
+ }
4851
+
4852
+ /* 内容区域 */
4853
+ .taskon-community-list-content {
4854
+ width: 100%;
4855
+ }
4856
+
4857
+ /* 加载状态 */
4858
+ .taskon-community-list-loading {
4859
+ padding: 40px;
4860
+ text-align: center;
4861
+ color: rgba(255, 255, 255, 0.6);
4862
+ font-size: 16px;
4863
+ }
4864
+
4865
+ /* 错误状态 */
4866
+ .taskon-community-list-error {
4867
+ padding: 40px;
4868
+ text-align: center;
4869
+ color: #ef4444;
4870
+ font-size: 16px;
4871
+ }
4872
+
4873
+ /* 空状态 */
4874
+ .taskon-community-list-empty {
4875
+ padding: 40px;
4876
+ text-align: center;
4877
+ color: rgba(255, 255, 255, 0.6);
4878
+ font-size: 16px;
4879
+ }
4880
+
4881
+ /* 响应式样式(移动端) */
4882
+ @media (max-width: 750px) {
4883
+ .taskon-community-list-selector {
4884
+ margin-bottom: 5.33vw;
4885
+ }
4886
+
4887
+ .taskon-community-list-loading,
4888
+ .taskon-community-list-error,
4889
+ .taskon-community-list-empty {
4890
+ padding: 10.67vw;
4891
+ font-size: 3.73vw;
4892
+ }
4893
+ }