koishi-plugin-dew-bot 1.0.200 → 1.0.204

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.
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,204 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConditionOperator = exports.ConditionType = exports.effectKey = exports.defenseKey = exports.attackKey = exports.Attribute_base = exports.盲盒枚举 = exports.道具枚举 = exports.资源枚举 = exports.sort_type = exports.qualityGradient = exports.qualityName = exports.quality = exports.RankingType = exports.ItemType = exports.EquipAttType = exports.EffectClassType = exports.PassiveTriggerType = exports.SkillType = exports.TargetType = exports.LogType = void 0;
4
+ // 日志类型
5
+ var LogType;
6
+ (function (LogType) {
7
+ LogType["\u4F24\u5BB3"] = "damage";
8
+ LogType["\u6CBB\u7597"] = "healing";
9
+ LogType["\u62A4\u76FE"] = "shield";
10
+ })(LogType || (exports.LogType = LogType = {}));
11
+ // 技能目标类型
12
+ var TargetType;
13
+ (function (TargetType) {
14
+ TargetType["\u6211\u65B9\u4E0D\u542B\u81EA\u5DF1"] = "ally";
15
+ TargetType["\u6211\u65B9"] = "ally_self";
16
+ TargetType["\u654C\u65B9"] = "enemy";
17
+ TargetType["\u81EA\u5DF1"] = "self";
18
+ })(TargetType || (exports.TargetType = TargetType = {}));
19
+ // 技能类型
20
+ var SkillType;
21
+ (function (SkillType) {
22
+ SkillType["\u4E3B\u52A8\u6280\u80FD"] = "\u4E3B\u52A8\u6280\u80FD";
23
+ SkillType["\u88AB\u52A8\u6280\u80FD"] = "\u88AB\u52A8\u6280\u80FD";
24
+ SkillType["\u5149\u73AF\u6280\u80FD"] = "\u5149\u73AF\u6280\u80FD";
25
+ })(SkillType || (exports.SkillType = SkillType = {}));
26
+ // 被动触发时机
27
+ var PassiveTriggerType;
28
+ (function (PassiveTriggerType) {
29
+ PassiveTriggerType["\u56DE\u5408\u7ED3\u675F\u65F6"] = "\u56DE\u5408\u7ED3\u675F\u65F6";
30
+ PassiveTriggerType["\u53D7\u5230\u4F24\u5BB3\u65F6"] = "\u53D7\u5230\u4F24\u5BB3\u65F6";
31
+ PassiveTriggerType["\u53D7\u5230\u666E\u901A\u653B\u51FB\u65F6"] = "\u53D7\u5230\u666E\u901A\u653B\u51FB\u65F6";
32
+ })(PassiveTriggerType || (exports.PassiveTriggerType = PassiveTriggerType = {}));
33
+ // 技能分类
34
+ var EffectClassType;
35
+ (function (EffectClassType) {
36
+ EffectClassType["\u653B\u51FB\u578B"] = "\u653B\u51FB\u578B";
37
+ EffectClassType["\u8F85\u52A9\u578B"] = "\u8F85\u52A9\u578B";
38
+ EffectClassType["\u9632\u5FA1\u578B"] = "\u9632\u5FA1\u578B";
39
+ EffectClassType["\u5DE5\u5177\u578B"] = "\u5DE5\u5177\u578B";
40
+ EffectClassType["\u5168\u80FD\u578B"] = "\u5168\u80FD\u578B";
41
+ EffectClassType["\u63A7\u5236\u578B"] = "\u63A7\u5236\u578B";
42
+ EffectClassType["\u56DE\u590D\u578B"] = "\u56DE\u590D\u578B";
43
+ EffectClassType["\u589E\u76CA\u578B"] = "\u589E\u76CA\u578B";
44
+ EffectClassType["\u51CF\u76CA\u578B"] = "\u51CF\u76CA\u578B";
45
+ EffectClassType["\u6CBB\u7597\u578B"] = "\u6CBB\u7597\u578B";
46
+ })(EffectClassType || (exports.EffectClassType = EffectClassType = {}));
47
+ var EquipAttType;
48
+ (function (EquipAttType) {
49
+ EquipAttType["\u9B54\u6CD5\u4F20\u8BF4"] = "\u9B54\u6CD5\u4F20\u8BF4\u7C7B";
50
+ EquipAttType["\u79D1\u6280\u7C7B"] = "\u79D1\u6280\u7C7B";
51
+ EquipAttType["\u8F85\u52A9\u7C7B"] = "\u8F85\u52A9\u7C7B";
52
+ EquipAttType["\u5A31\u4E50\u7C7B"] = "\u5A31\u4E50\u7C7B";
53
+ })(EquipAttType || (exports.EquipAttType = EquipAttType = {}));
54
+ // RPG相关枚举迁移自index.ts和rpg/types/index.ts
55
+ var ItemType;
56
+ (function (ItemType) {
57
+ ItemType["\u8D44\u6E90"] = "prop_\u8D44\u6E90";
58
+ ItemType["\u88C5\u5907"] = "equipment";
59
+ ItemType["\u9053\u5177"] = "prop_\u9053\u5177";
60
+ ItemType["\u6280\u80FD\u4E66"] = "skill_book";
61
+ ItemType["\u5BA0\u7269\u86CB"] = "pet_egg";
62
+ ItemType["\u8840\u7EDF\u5377\u8F74"] = "talent_book";
63
+ ItemType["\u76F2\u76D2"] = "prop_\u76F2\u76D2";
64
+ ItemType["\u5F62\u8C61\u5361"] = "image_card";
65
+ })(ItemType || (exports.ItemType = ItemType = {}));
66
+ /**
67
+ * 排行榜类型
68
+ */
69
+ var RankingType;
70
+ (function (RankingType) {
71
+ RankingType["\u7B49\u7EA7"] = "\u7B49\u7EA7";
72
+ RankingType["\u91D1\u5E01"] = "\u91D1\u5E01";
73
+ RankingType["\u7B7E\u5230"] = "\u7B7E\u5230\u6B21\u6570";
74
+ RankingType["\u6218\u529B"] = "\u6218\u529B";
75
+ })(RankingType || (exports.RankingType = RankingType = {}));
76
+ var quality;
77
+ (function (quality) {
78
+ quality[quality["F"] = 0] = "F";
79
+ quality[quality["D"] = 1] = "D";
80
+ quality[quality["C"] = 2] = "C";
81
+ quality[quality["B"] = 3] = "B";
82
+ quality[quality["A"] = 4] = "A";
83
+ quality[quality["S"] = 5] = "S";
84
+ quality[quality["SS"] = 6] = "SS";
85
+ quality[quality["SSS"] = 7] = "SSS";
86
+ quality[quality["SR"] = 8] = "SR";
87
+ quality[quality["SSR"] = 9] = "SSR";
88
+ })(quality || (exports.quality = quality = {}));
89
+ var qualityName;
90
+ (function (qualityName) {
91
+ qualityName["F"] = "\u666E\u901A";
92
+ qualityName["D"] = "\u9AD8\u7EA7";
93
+ qualityName["C"] = "\u7A00\u6709";
94
+ qualityName["B"] = "\u795E\u5668";
95
+ qualityName["A"] = "\u53F2\u8BD7";
96
+ qualityName["S"] = "\u4F20\u8BF4";
97
+ qualityName["SS"] = "\u795E\u8BDD";
98
+ qualityName["SSS"] = "\u81F3\u5C0A";
99
+ qualityName["SR"] = "\u6C38\u6052";
100
+ qualityName["SSR"] = "\u592A\u521D";
101
+ })(qualityName || (exports.qualityName = qualityName = {}));
102
+ var qualityGradient;
103
+ (function (qualityGradient) {
104
+ qualityGradient["F"] = "linear-gradient(to bottom, #C0C0C0, #808080)";
105
+ qualityGradient["D"] = "linear-gradient(to bottom, #8B4513, #654321)";
106
+ qualityGradient["C"] = "linear-gradient(to bottom, #32CD32, #228B22)";
107
+ qualityGradient["B"] = "linear-gradient(to bottom, #4169E1, #0000CD)";
108
+ qualityGradient["A"] = "linear-gradient(to bottom, #9370DB, #4B0082)";
109
+ qualityGradient["S"] = "linear-gradient(to bottom, #FFD700, #FFA500)";
110
+ qualityGradient["SS"] = "linear-gradient(to bottom, #FF4500, #DC143C)";
111
+ qualityGradient["SSS"] = "linear-gradient(to bottom, #FF1493, #C71585)";
112
+ qualityGradient["SR"] = "linear-gradient(to bottom, #00CED1, #008B8B)";
113
+ qualityGradient["SSR"] = "linear-gradient(to bottom, #FF69B4, #FF1493)";
114
+ })(qualityGradient || (exports.qualityGradient = qualityGradient = {}));
115
+ var sort_type;
116
+ (function (sort_type) {
117
+ sort_type["time_up"] = "\u65F6\u95F4\u2191";
118
+ sort_type["time_down"] = "\u65F6\u95F4\u2193";
119
+ sort_type["price_down"] = "\u4EF7\u683C\u2193";
120
+ sort_type["price_up"] = "\u4EF7\u683C\u2191";
121
+ sort_type["quality_up"] = "\u54C1\u8D28\u2191";
122
+ sort_type["quality_down"] = "\u54C1\u8D28\u2193";
123
+ sort_type["count_up"] = "\u6570\u91CF\u2191";
124
+ sort_type["count_down"] = "\u6570\u91CF\u2193";
125
+ })(sort_type || (exports.sort_type = sort_type = {}));
126
+ var 资源枚举;
127
+ (function (资源枚举) {
128
+ 资源枚举["\u7ECF\u9A8C"] = "\u7ECF\u9A8C\u503C";
129
+ 资源枚举["\u91D1\u5E01"] = "\u91D1\u5E01";
130
+ 资源枚举["\u8840\u7EDF\u7ECF\u9A8C"] = "\u8840\u7EDF\u7ECF\u9A8C";
131
+ })(资源枚举 || (exports.资源枚举 = 资源枚举 = {}));
132
+ var 道具枚举;
133
+ (function (道具枚举) {
134
+ 道具枚举["\u6539\u540D\u5361"] = "1";
135
+ 道具枚举["\u7CBE\u7075\u7403"] = "2";
136
+ 道具枚举["\u590D\u6D3B\u5E01"] = "3";
137
+ })(道具枚举 || (exports.道具枚举 = 道具枚举 = {}));
138
+ var 盲盒枚举;
139
+ (function (盲盒枚举) {
140
+ 盲盒枚举["\u6D4B\u8BD5\u6B66\u5668"] = "3";
141
+ })(盲盒枚举 || (exports.盲盒枚举 = 盲盒枚举 = {}));
142
+ var Attribute_base;
143
+ (function (Attribute_base) {
144
+ Attribute_base["\u7269\u7406\u653B\u51FB"] = "\u7269\u7406\u653B\u51FB";
145
+ Attribute_base["\u6700\u5927\u751F\u547D\u503C"] = "\u6700\u5927\u751F\u547D\u503C";
146
+ Attribute_base["\u751F\u547D\u6062\u590D"] = "\u751F\u547D\u6062\u590D";
147
+ Attribute_base["\u7269\u7406\u9632\u5FA1"] = "\u7269\u7406\u9632\u5FA1";
148
+ Attribute_base["\u9B54\u6CD5\u653B\u51FB"] = "\u9B54\u6CD5\u653B\u51FB";
149
+ Attribute_base["\u9B54\u6CD5\u9632\u5FA1"] = "\u9B54\u6CD5\u9632\u5FA1";
150
+ Attribute_base["\u7269\u7406\u7A7F\u900F"] = "\u7269\u7406\u7A7F\u900F";
151
+ Attribute_base["\u9B54\u6CD5\u7A7F\u900F"] = "\u9B54\u6CD5\u7A7F\u900F";
152
+ Attribute_base["\u66B4\u51FB\u7387"] = "\u66B4\u51FB\u7387";
153
+ Attribute_base["\u95EA\u907F\u7387"] = "\u95EA\u907F\u7387";
154
+ Attribute_base["\u9B54\u6CD5\u66B4\u51FB\u7387"] = "\u9B54\u6CD5\u66B4\u51FB\u7387";
155
+ Attribute_base["\u7269\u7406\u66B4\u51FB\u7387"] = "\u7269\u7406\u66B4\u51FB\u7387";
156
+ Attribute_base["\u6280\u80FD\u7F29\u51CF"] = "\u6280\u80FD\u7F29\u51CF";
157
+ })(Attribute_base || (exports.Attribute_base = Attribute_base = {}));
158
+ var attackKey;
159
+ (function (attackKey) {
160
+ attackKey["\u666E\u901A\u653B\u51FB"] = "\u666E\u901A\u653B\u51FB";
161
+ attackKey["\u7269\u7406\u653B\u51FB"] = "\u7269\u7406\u653B\u51FB";
162
+ attackKey["\u9B54\u6CD5\u653B\u51FB"] = "\u9B54\u6CD5\u653B\u51FB";
163
+ attackKey["\u771F\u5B9E\u653B\u51FB"] = "\u771F\u5B9E\u653B\u51FB";
164
+ attackKey["\u6062\u590D\u751F\u547D"] = "\u6062\u590D\u751F\u547D";
165
+ attackKey["\u62A4\u76FE"] = "\u62A4\u76FE";
166
+ })(attackKey || (exports.attackKey = attackKey = {}));
167
+ var defenseKey;
168
+ (function (defenseKey) {
169
+ defenseKey["\u7269\u7406\u9632\u5FA1"] = "\u7269\u7406\u9632\u5FA1";
170
+ defenseKey["\u9B54\u6CD5\u9632\u5FA1"] = "\u9B54\u6CD5\u9632\u5FA1";
171
+ })(defenseKey || (exports.defenseKey = defenseKey = {}));
172
+ var effectKey;
173
+ (function (effectKey) {
174
+ effectKey["\u4F24\u5BB3\u7C7B_\u666E\u901A\u653B\u51FB"] = "\u4F24\u5BB3\u7C7B_\u666E\u901A\u653B\u51FB";
175
+ effectKey["\u4F24\u5BB3\u7C7B_\u7269\u7406\u4F24\u5BB3"] = "\u4F24\u5BB3\u7C7B_\u7269\u7406\u4F24\u5BB3";
176
+ effectKey["\u4F24\u5BB3\u7C7B_\u9B54\u6CD5\u4F24\u5BB3"] = "\u4F24\u5BB3\u7C7B_\u9B54\u6CD5\u4F24\u5BB3";
177
+ effectKey["\u4F24\u5BB3\u7C7B_\u771F\u5B9E\u4F24\u5BB3"] = "\u4F24\u5BB3\u7C7B_\u771F\u5B9E\u4F24\u5BB3";
178
+ effectKey["\u8F85\u52A9\u7C7B_\u751F\u547D\u56DE\u590D"] = "\u8F85\u52A9\u7C7B_\u751F\u547D\u56DE\u590D";
179
+ effectKey["\u8F85\u52A9\u7C7B_\u62A4\u76FE"] = "\u8F85\u52A9\u7C7B_\u62A4\u76FE";
180
+ effectKey["\u8F85\u52A9\u7C7B_\u5C5E\u6027\u63D0\u5347"] = "\u8F85\u52A9\u7C7B_\u5C5E\u6027\u63D0\u5347";
181
+ effectKey["\u5DE5\u5177\u7C7B_\u6DFB\u52A0buff"] = "\u6DFB\u52A0buff";
182
+ })(effectKey || (exports.effectKey = effectKey = {}));
183
+ var ConditionType;
184
+ (function (ConditionType) {
185
+ ConditionType["\u751F\u547D\u503C\u767E\u5206\u6BD4"] = "\u751F\u547D\u503C\u767E\u5206\u6BD4";
186
+ ConditionType["\u751F\u547D\u503C\u7EDD\u5BF9\u503C"] = "\u751F\u547D\u503C\u7EDD\u5BF9\u503C";
187
+ ConditionType["\u56DE\u5408\u6570"] = "\u56DE\u5408\u6570";
188
+ ConditionType["\u6280\u80FD\u51B7\u5374"] = "\u6280\u80FD\u51B7\u5374";
189
+ ConditionType["\u76EE\u6807\u6570\u91CF"] = "\u76EE\u6807\u6570\u91CF";
190
+ ConditionType["\u81EA\u8EAB\u72B6\u6001"] = "\u81EA\u8EAB\u72B6\u6001";
191
+ ConditionType["\u654C\u65B9\u72B6\u6001"] = "\u654C\u65B9\u72B6\u6001";
192
+ ConditionType["\u968F\u673A\u6982\u7387"] = "\u968F\u673A\u6982\u7387";
193
+ ConditionType["\u5C5E\u6027\u503C"] = "\u5C5E\u6027\u503C";
194
+ ConditionType["\u59CB\u7EC8\u89E6\u53D1"] = "\u59CB\u7EC8\u89E6\u53D1";
195
+ })(ConditionType || (exports.ConditionType = ConditionType = {}));
196
+ var ConditionOperator;
197
+ (function (ConditionOperator) {
198
+ ConditionOperator["\u5927\u4E8E"] = "\u5927\u4E8E";
199
+ ConditionOperator["\u5C0F\u4E8E"] = "\u5C0F\u4E8E";
200
+ ConditionOperator["\u7B49\u4E8E"] = "\u7B49\u4E8E";
201
+ ConditionOperator["\u5927\u4E8E\u7B49\u4E8E"] = "\u5927\u4E8E\u7B49\u4E8E";
202
+ ConditionOperator["\u5C0F\u4E8E\u7B49\u4E8E"] = "\u5C0F\u4E8E\u7B49\u4E8E";
203
+ ConditionOperator["\u4E0D\u7B49\u4E8E"] = "\u4E0D\u7B49\u4E8E";
204
+ })(ConditionOperator || (exports.ConditionOperator = ConditionOperator = {}));
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserLevel = void 0;
4
+ var UserLevel;
5
+ (function (UserLevel) {
6
+ UserLevel[UserLevel["\u73A9\u5BB6"] = 0] = "\u73A9\u5BB6";
7
+ UserLevel[UserLevel["\u8D5E\u52A9\u4F1A\u5458"] = 1] = "\u8D5E\u52A9\u4F1A\u5458";
8
+ UserLevel[UserLevel["\u7BA1\u7406\u5458"] = 2] = "\u7BA1\u7406\u5458";
9
+ UserLevel[UserLevel["\u5F00\u53D1\u8005"] = 3] = "\u5F00\u53D1\u8005";
10
+ })(UserLevel || (exports.UserLevel = UserLevel = {}));
@@ -1,245 +1,215 @@
1
- body {
2
- margin: 0;
3
- padding: 0;
4
- width: 500px;
5
- overflow: auto;
6
- position: relative;
7
- background: #232d23;
8
- min-height: 500px;
9
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
10
- }
11
-
12
- #app {
13
- width: 95%;
14
- margin: 10px auto;
15
- }
16
-
17
- .ranking-card {
18
- background: #232d23;
19
- border-radius: 12px;
20
- border: none;
21
- padding: 20px 0 20px 0;
22
- position: relative;
23
- overflow: visible;
24
- }
25
-
26
- /* 标题样式 */
27
- .ranking-title {
28
- display: flex;
29
- align-items: center;
30
- justify-content: center;
31
- margin-bottom: 20px;
32
- padding: 0 20px;
33
- }
34
-
35
- .title-emoji {
36
- font-size: 24px;
37
- margin-right: 8px;
38
- color: #ffd97a;
39
- }
40
-
41
- .title-text {
42
- color: #ffd97a;
43
- font-size: 18px;
44
- font-weight: bold;
45
- }
46
-
47
- /* 表头样式 */
48
- .ranking-header {
49
- display: flex;
50
- background: #2a342a;
51
- border-radius: 8px;
52
- margin: 0 20px 15px 20px;
53
- padding: 12px 15px;
54
- border-left: 3px solid #4a8a4a;
55
- }
56
-
57
- .header-item {
58
- color: #ffd97a;
59
- font-weight: bold;
60
- font-size: 14px;
61
- text-align: center;
62
- display: flex;
63
- align-items: center;
64
- justify-content: center;
65
- }
66
-
67
- .rank-col {
68
- width: 60px;
69
- flex-shrink: 0;
70
- }
71
-
72
- .player-col {
73
- flex: 1;
74
- text-align: left;
75
- padding-left: 10px;
76
- }
77
-
78
- .score-col {
79
- width: 80px;
80
- flex-shrink: 0;
81
- text-align: center;
82
- }
83
-
84
- /* 排行榜列表样式 */
85
- .ranking-list {
86
- margin: 0 20px;
87
- }
88
-
89
- .ranking-item {
90
- display: flex;
91
- align-items: center;
92
- background: #2a342a;
93
- border-radius: 8px;
94
- margin-bottom: 8px;
95
- padding: 12px 15px;
96
- border-left: 3px solid #4a8a4a;
97
- transition: all 0.2s ease;
98
- }
99
-
100
- .ranking-item:hover {
101
- background: #3a443a;
102
- transform: translateX(2px);
103
- }
104
-
105
- .ranking-item.my-rank {
106
- background: #4a8a4a;
107
- border-left-color: #ffd97a;
108
- }
109
-
110
- .ranking-item.my-rank:hover {
111
- background: #5a9a5a;
112
- }
113
-
114
- /* 排名样式 */
115
- .rank-number {
116
- width: 30px;
117
- height: 30px;
118
- border-radius: 50%;
119
- display: flex;
120
- align-items: center;
121
- justify-content: center;
122
- font-weight: bold;
123
- font-size: 14px;
124
- color: #fff;
125
- }
126
-
127
- .rank-gold {
128
- background: linear-gradient(135deg, #DAA520, #B8860B);
129
- box-shadow: 0 2px 8px rgba(218, 165, 32, 0.3);
130
- color: #fff;
131
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
132
- }
133
-
134
- .rank-silver {
135
- background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
136
- box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
137
- }
138
-
139
- .rank-bronze {
140
- background: linear-gradient(135deg, #CD7F32, #A0522D);
141
- box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
142
- }
143
-
144
- .rank-normal {
145
- background: linear-gradient(135deg, #4a8a4a, #3a7a3a);
146
- box-shadow: 0 2px 8px rgba(74, 138, 74, 0.3);
147
- }
148
-
149
- /* 玩家信息样式 */
150
- .player-info {
151
- display: flex;
152
- align-items: center;
153
- flex: 1;
154
- }
155
-
156
- .player-avatar {
157
- width: 40px;
158
- height: 40px;
159
- border-radius: 50%;
160
- margin-right: 12px;
161
- display: flex;
162
- align-items: center;
163
- justify-content: center;
164
- background: #fff;
165
- border: 2px solid #4a8a4a;
166
- overflow: hidden;
167
- position: relative;
168
- }
169
-
170
- .avatar-img {
171
- width: 100%;
172
- height: 100%;
173
- object-fit: cover;
174
- border-radius: 50%;
175
- }
176
-
177
- .player-emoji {
178
- font-size: 20px;
179
- display: flex;
180
- align-items: center;
181
- justify-content: center;
182
- width: 100%;
183
- height: 100%;
184
- }
185
-
186
- .player-name {
187
- color: #e8fbe8;
188
- font-weight: 500;
189
- font-size: 14px;
190
- max-width: 200px;
191
- overflow: hidden;
192
- text-overflow: ellipsis;
193
- white-space: nowrap;
194
- }
195
-
196
- /* 分数样式 */
197
- .score-value {
198
- color: #e8fbe8;
199
- font-weight: bold;
200
- font-size: 14px;
201
- text-align: center;
202
- }
203
-
204
- /* 我的排名样式 */
205
- .my-rank-section {
206
- margin-top: 15px;
207
- }
208
-
209
- .my-rank-divider {
210
- height: 1px;
211
- background: linear-gradient(to right, transparent, #4a8a4a, transparent);
212
- margin: 10px 0;
213
- }
214
-
215
- .my-rank-item {
216
- display: flex;
217
- align-items: center;
218
- background: #4a8a4a;
219
- border-radius: 8px;
220
- padding: 12px 15px;
221
- border-left: 3px solid #ffd97a;
222
- margin-top: 8px;
223
- }
224
-
225
- .rank-my {
226
- background: linear-gradient(135deg, #DAA520, #B8860B);
227
- box-shadow: 0 2px 8px rgba(218, 165, 32, 0.3);
228
- color: #fff;
229
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
230
- }
231
-
232
- /* 响应式设计 */
233
- @media (max-width: 500px) {
234
- .player-name {
235
- max-width: 150px;
236
- }
237
-
238
- .score-col {
239
- width: 60px;
240
- }
241
-
242
- .rank-col {
243
- width: 50px;
244
- }
1
+ body {
2
+ margin: 0;
3
+ padding: 0;
4
+ width: 500px;
5
+ overflow: auto;
6
+ position: relative;
7
+ background: #232d23;
8
+ min-height: 500px;
9
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
10
+ }
11
+
12
+ #app {
13
+ width: 95%;
14
+ margin: 10px auto;
15
+ }
16
+
17
+ .ranking-card {
18
+ background: #232d23;
19
+ border-radius: 12px;
20
+ border: none;
21
+ padding: 20px 0 20px 0;
22
+ position: relative;
23
+ overflow: visible;
24
+ }
25
+
26
+ /* 标题样式 */
27
+ .ranking-title {
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ margin-bottom: 20px;
32
+ padding: 0 20px;
33
+ }
34
+
35
+ .title-emoji {
36
+ font-size: 24px;
37
+ margin-right: 8px;
38
+ color: #ffd97a;
39
+ }
40
+
41
+ .title-text {
42
+ color: #ffd97a;
43
+ font-size: 18px;
44
+ font-weight: bold;
45
+ }
46
+
47
+ /* 表头样式 */
48
+ .ranking-header {
49
+ display: flex;
50
+ background: #2a342a;
51
+ border-radius: 8px;
52
+ margin: 0 20px 15px 20px;
53
+ padding: 12px 15px;
54
+ border-left: 3px solid #4a8a4a;
55
+ }
56
+
57
+ .header-item {
58
+ color: #ffd97a;
59
+ font-weight: bold;
60
+ font-size: 14px;
61
+ text-align: center;
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: center;
65
+ }
66
+
67
+ .rank-col {
68
+ width: 60px;
69
+ flex-shrink: 0;
70
+ }
71
+
72
+ .player-col {
73
+ flex: 1;
74
+ text-align: left;
75
+ padding-left: 10px;
76
+ }
77
+
78
+ .score-col {
79
+ width: 80px;
80
+ flex-shrink: 0;
81
+ text-align: center;
82
+ }
83
+
84
+ /* 排行榜列表样式 */
85
+ .ranking-list {
86
+ margin: 0 20px;
87
+ }
88
+
89
+ .ranking-item {
90
+ display: flex;
91
+ align-items: center;
92
+ background: #2a342a;
93
+ border-radius: 8px;
94
+ margin-bottom: 8px;
95
+ padding: 12px 15px;
96
+ border-left: 3px solid #4a8a4a;
97
+ transition: all 0.2s ease;
98
+ }
99
+
100
+ .ranking-item:hover {
101
+ background: #3a443a;
102
+ transform: translateX(2px);
103
+ }
104
+
105
+ .ranking-item.my-rank {
106
+ background: #4a8a4a;
107
+ border-left-color: #ffd97a;
108
+ }
109
+
110
+ .ranking-item.my-rank:hover {
111
+ background: #5a9a5a;
112
+ }
113
+
114
+ /* 排名样式 */
115
+ .rank-number {
116
+ width: 30px;
117
+ height: 30px;
118
+ border-radius: 50%;
119
+ display: flex;
120
+ align-items: center;
121
+ justify-content: center;
122
+ font-weight: bold;
123
+ font-size: 14px;
124
+ color: #fff;
125
+ }
126
+
127
+ .rank-gold {
128
+ background: linear-gradient(135deg, #DAA520, #B8860B);
129
+ box-shadow: 0 2px 8px rgba(218, 165, 32, 0.3);
130
+ color: #fff;
131
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
132
+ }
133
+
134
+ .rank-silver {
135
+ background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
136
+ box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
137
+ }
138
+
139
+ .rank-bronze {
140
+ background: linear-gradient(135deg, #CD7F32, #A0522D);
141
+ box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
142
+ }
143
+
144
+ .rank-normal {
145
+ background: linear-gradient(135deg, #4a8a4a, #3a7a3a);
146
+ box-shadow: 0 2px 8px rgba(74, 138, 74, 0.3);
147
+ }
148
+
149
+ /* 玩家信息样式 */
150
+ .player-info {
151
+ display: flex;
152
+ align-items: center;
153
+ flex: 1;
154
+ }
155
+
156
+ .player-name {
157
+ color: #e8fbe8;
158
+ font-weight: 500;
159
+ font-size: 14px;
160
+ max-width: 200px;
161
+ overflow: hidden;
162
+ text-overflow: ellipsis;
163
+ white-space: nowrap;
164
+ }
165
+
166
+ /* 分数样式 */
167
+ .score-value {
168
+ color: #e8fbe8;
169
+ font-weight: bold;
170
+ font-size: 14px;
171
+ text-align: center;
172
+ }
173
+
174
+ /* 我的排名样式 */
175
+ .my-rank-section {
176
+ margin-top: 15px;
177
+ }
178
+
179
+ .my-rank-divider {
180
+ height: 1px;
181
+ background: linear-gradient(to right, transparent, #4a8a4a, transparent);
182
+ margin: 10px 0;
183
+ }
184
+
185
+ .my-rank-item {
186
+ display: flex;
187
+ align-items: center;
188
+ background: #4a8a4a;
189
+ border-radius: 8px;
190
+ padding: 12px 15px;
191
+ border-left: 3px solid #ffd97a;
192
+ margin-top: 8px;
193
+ }
194
+
195
+ .rank-my {
196
+ background: linear-gradient(135deg, #DAA520, #B8860B);
197
+ box-shadow: 0 2px 8px rgba(218, 165, 32, 0.3);
198
+ color: #fff;
199
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
200
+ }
201
+
202
+ /* 响应式设计 */
203
+ @media (max-width: 500px) {
204
+ .player-name {
205
+ max-width: 150px;
206
+ }
207
+
208
+ .score-col {
209
+ width: 60px;
210
+ }
211
+
212
+ .rank-col {
213
+ width: 50px;
214
+ }
245
215
  }