koishi-plugin-rocom 1.0.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 (157) hide show
  1. package/lib/client.d.ts +53 -0
  2. package/lib/client.js +473 -0
  3. package/lib/commands/account.d.ts +5 -0
  4. package/lib/commands/account.js +205 -0
  5. package/lib/commands/admin.d.ts +2 -0
  6. package/lib/commands/admin.js +117 -0
  7. package/lib/commands/egg.d.ts +2 -0
  8. package/lib/commands/egg.js +196 -0
  9. package/lib/commands/merchant.d.ts +2 -0
  10. package/lib/commands/merchant.js +242 -0
  11. package/lib/commands/query.d.ts +2 -0
  12. package/lib/commands/query.js +1264 -0
  13. package/lib/commands/wiki.d.ts +2 -0
  14. package/lib/commands/wiki.js +11 -0
  15. package/lib/egg-service.d.ts +229 -0
  16. package/lib/egg-service.js +705 -0
  17. package/lib/index.d.ts +24 -0
  18. package/lib/index.js +3746 -0
  19. package/lib/render-templates/bind-list/index.html +51 -0
  20. package/lib/render-templates/bind-list/style.css +178 -0
  21. package/lib/render-templates/exchange-hall/css/_@astro-renderers.0KDkAyVb.css +1 -0
  22. package/lib/render-templates/exchange-hall/css/index.B3tv56V6.css +1 -0
  23. package/lib/render-templates/exchange-hall/css/index.D2LGPudy.css +1 -0
  24. package/lib/render-templates/exchange-hall/extracted.css +393 -0
  25. package/lib/render-templates/exchange-hall/index.html +99 -0
  26. package/lib/render-templates/exchange-hall/style.css +267 -0
  27. package/lib/render-templates/friendship/index.html +58 -0
  28. package/lib/render-templates/friendship/style.css +182 -0
  29. package/lib/render-templates/home/data/home_item_list.json +122 -0
  30. package/lib/render-templates/home/img/home_icon/100604.png +0 -0
  31. package/lib/render-templates/home/img/home_icon/100604_1.png +0 -0
  32. package/lib/render-templates/home/img/home_icon/100604_2.png +0 -0
  33. package/lib/render-templates/home/img/home_icon/100605.png +0 -0
  34. package/lib/render-templates/home/img/home_icon/100605_1.png +0 -0
  35. package/lib/render-templates/home/img/home_icon/100605_2.png +0 -0
  36. package/lib/render-templates/home/img/home_icon/100606.png +0 -0
  37. package/lib/render-templates/home/img/home_icon/100606_1.png +0 -0
  38. package/lib/render-templates/home/img/home_icon/100606_2.png +0 -0
  39. package/lib/render-templates/home/img/home_icon/100607.png +0 -0
  40. package/lib/render-templates/home/img/home_icon/100607_1.png +0 -0
  41. package/lib/render-templates/home/img/home_icon/100607_2.png +0 -0
  42. package/lib/render-templates/home/img/home_icon/100608.png +0 -0
  43. package/lib/render-templates/home/img/home_icon/100608_1.png +0 -0
  44. package/lib/render-templates/home/img/home_icon/100608_2.png +0 -0
  45. package/lib/render-templates/home/img/home_icon/100622.png +0 -0
  46. package/lib/render-templates/home/img/home_icon/100622_1.png +0 -0
  47. package/lib/render-templates/home/img/home_icon/100622_2.png +0 -0
  48. package/lib/render-templates/home/img/home_icon/100623.png +0 -0
  49. package/lib/render-templates/home/img/home_icon/100623_1.png +0 -0
  50. package/lib/render-templates/home/img/home_icon/100623_2.png +0 -0
  51. package/lib/render-templates/home/img/home_icon/100624.png +0 -0
  52. package/lib/render-templates/home/img/home_icon/100624_1.png +0 -0
  53. package/lib/render-templates/home/img/home_icon/100624_2.png +0 -0
  54. package/lib/render-templates/home/img/home_icon/100627.png +0 -0
  55. package/lib/render-templates/home/img/home_icon/100627_1.png +0 -0
  56. package/lib/render-templates/home/img/home_icon/100627_2.png +0 -0
  57. package/lib/render-templates/home/img/home_icon/100684.png +0 -0
  58. package/lib/render-templates/home/img/home_icon/100684_1.png +0 -0
  59. package/lib/render-templates/home/img/home_icon/100684_2.png +0 -0
  60. package/lib/render-templates/home/img/home_icon/100686.png +0 -0
  61. package/lib/render-templates/home/img/home_icon/100686_1.png +0 -0
  62. package/lib/render-templates/home/img/home_icon/100686_2.png +0 -0
  63. package/lib/render-templates/home/img/home_icon/100687.png +0 -0
  64. package/lib/render-templates/home/img/home_icon/100687_1.png +0 -0
  65. package/lib/render-templates/home/img/home_icon/100687_2.png +0 -0
  66. package/lib/render-templates/home/img/home_icon/100689.png +0 -0
  67. package/lib/render-templates/home/img/home_icon/100689_1.png +0 -0
  68. package/lib/render-templates/home/img/home_icon/100689_2.png +0 -0
  69. package/lib/render-templates/home/img/home_icon/100690.png +0 -0
  70. package/lib/render-templates/home/img/home_icon/100690_1.png +0 -0
  71. package/lib/render-templates/home/img/home_icon/100690_2.png +0 -0
  72. package/lib/render-templates/home/img/home_icon/100691.png +0 -0
  73. package/lib/render-templates/home/img/home_icon/100691_1.png +0 -0
  74. package/lib/render-templates/home/img/home_icon/100691_2.png +0 -0
  75. package/lib/render-templates/home/img/home_icon/100692.png +0 -0
  76. package/lib/render-templates/home/img/home_icon/100692_1.png +0 -0
  77. package/lib/render-templates/home/img/home_icon/100692_2.png +0 -0
  78. package/lib/render-templates/home/img/home_icon/100693.png +0 -0
  79. package/lib/render-templates/home/img/home_icon/100693_1.png +0 -0
  80. package/lib/render-templates/home/img/home_icon/100693_2.png +0 -0
  81. package/lib/render-templates/home/img/home_icon/100694.png +0 -0
  82. package/lib/render-templates/home/img/home_icon/100694_1.png +0 -0
  83. package/lib/render-templates/home/img/home_icon/100694_2.png +0 -0
  84. package/lib/render-templates/home/img/home_icon/100706.png +0 -0
  85. package/lib/render-templates/home/img/home_icon/100706_1.png +0 -0
  86. package/lib/render-templates/home/img/home_icon/100706_2.png +0 -0
  87. package/lib/render-templates/home/img/home_icon/100751.png +0 -0
  88. package/lib/render-templates/home/img/home_icon/100751_1.png +0 -0
  89. package/lib/render-templates/home/img/home_icon/100751_2.png +0 -0
  90. package/lib/render-templates/home/img/home_icon/100755.png +0 -0
  91. package/lib/render-templates/home/img/home_icon/100755_1.png +0 -0
  92. package/lib/render-templates/home/img/home_icon/100755_2.png +0 -0
  93. package/lib/render-templates/home/img/home_icon/100762.png +0 -0
  94. package/lib/render-templates/home/img/home_icon/100762_1.png +0 -0
  95. package/lib/render-templates/home/img/home_icon/100762_2.png +0 -0
  96. package/lib/render-templates/home/img/home_icon/100764.png +0 -0
  97. package/lib/render-templates/home/img/home_icon/100764_1.png +0 -0
  98. package/lib/render-templates/home/img/home_icon/100764_2.png +0 -0
  99. package/lib/render-templates/home/img/home_icon/100869.png +0 -0
  100. package/lib/render-templates/home/img/home_icon/100869_1.png +0 -0
  101. package/lib/render-templates/home/img/home_icon/100869_2.png +0 -0
  102. package/lib/render-templates/home/img/img_HomeVisit_Icon1.png +0 -0
  103. package/lib/render-templates/home/img/img_LevelReward_Bg2.png +0 -0
  104. package/lib/render-templates/home/index.html +139 -0
  105. package/lib/render-templates/home/style.css +537 -0
  106. package/lib/render-templates/ingame-shop/index.html +87 -0
  107. package/lib/render-templates/ingame-shop/style.css +220 -0
  108. package/lib/render-templates/inspect/index.html +47 -0
  109. package/lib/render-templates/inspect/style.css +149 -0
  110. package/lib/render-templates/lineup/index.html +77 -0
  111. package/lib/render-templates/lineup/style.css +255 -0
  112. package/lib/render-templates/lineup-detail/index.html +63 -0
  113. package/lib/render-templates/lineup-detail/style.css +218 -0
  114. package/lib/render-templates/menu/index.html +36 -0
  115. package/lib/render-templates/menu/style.css +126 -0
  116. package/lib/render-templates/package/index.html +115 -0
  117. package/lib/render-templates/package/style.css +352 -0
  118. package/lib/render-templates/personal-card/index.html +292 -0
  119. package/lib/render-templates/personal-card/style.css +2114 -0
  120. package/lib/render-templates/pet-wiki/index.html +118 -0
  121. package/lib/render-templates/pet-wiki/style.css +382 -0
  122. package/lib/render-templates/player-search/index.html +60 -0
  123. package/lib/render-templates/player-search/style.css +192 -0
  124. package/lib/render-templates/record/index.html +86 -0
  125. package/lib/render-templates/record/style.css +322 -0
  126. package/lib/render-templates/searcheggs/Pets.json +104328 -0
  127. package/lib/render-templates/searcheggs/candidates.html +52 -0
  128. package/lib/render-templates/searcheggs/eggs.py +599 -0
  129. package/lib/render-templates/searcheggs/index.html +198 -0
  130. package/lib/render-templates/searcheggs/pair.html +81 -0
  131. package/lib/render-templates/searcheggs/size.html +82 -0
  132. package/lib/render-templates/searcheggs/style.css +586 -0
  133. package/lib/render-templates/searcheggs/want.html +63 -0
  134. package/lib/render-templates/skill-wiki/index.html +68 -0
  135. package/lib/render-templates/skill-wiki/style.css +182 -0
  136. package/lib/render-templates/student/index.html +95 -0
  137. package/lib/render-templates/student/style.css +255 -0
  138. package/lib/render-templates/student-perks/index.html +78 -0
  139. package/lib/render-templates/student-perks/style.css +238 -0
  140. package/lib/render-templates/student-state/index.html +52 -0
  141. package/lib/render-templates/student-state/style.css +157 -0
  142. package/lib/render-templates/yuanxing-shangren/index.html +371 -0
  143. package/lib/render-templates/yuanxing-shangren/style.css +371 -0
  144. package/lib/render.d.ts +11 -0
  145. package/lib/render.js +226 -0
  146. package/lib/role-token.d.ts +27 -0
  147. package/lib/role-token.js +137 -0
  148. package/lib/send-image.d.ts +3 -0
  149. package/lib/send-image.js +135 -0
  150. package/lib/subscription-send.d.ts +8 -0
  151. package/lib/subscription-send.js +48 -0
  152. package/lib/types.d.ts +32 -0
  153. package/lib/types.js +2 -0
  154. package/lib/user.d.ts +67 -0
  155. package/lib/user.js +176 -0
  156. package/package.json +58 -0
  157. package/readme.md +575 -0
@@ -0,0 +1,537 @@
1
+ @font-face {
2
+ font-family: "rocom-home";
3
+ src: url("../../ttf/HYWenHei-85W-1.ttf") format("truetype");
4
+ font-display: swap;
5
+ }
6
+
7
+ * {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ html,
12
+ body {
13
+ margin: 0;
14
+ padding: 28px;
15
+ display: inline-block;
16
+ background: #f4ecdc;
17
+ color: #33271a;
18
+ font-family: "rocom-home", "Microsoft YaHei", "PingFang SC", sans-serif;
19
+ }
20
+
21
+ .home-page {
22
+ position: relative;
23
+ width: 1280px;
24
+ min-height: 860px;
25
+ overflow: hidden;
26
+ border-radius: 28px;
27
+ background:
28
+ linear-gradient(rgba(38, 29, 18, 0.10), rgba(38, 29, 18, 0.10)),
29
+ url("../../img/ercode-bg.D1ccSQKH.png") center / cover no-repeat;
30
+ box-shadow: 0 26px 58px rgba(76, 55, 32, 0.18);
31
+ }
32
+
33
+ .page-bg {
34
+ position: absolute;
35
+ inset: 0;
36
+ background:
37
+ radial-gradient(circle at 10% 12%, rgba(255, 231, 177, 0.52), transparent 28%),
38
+ radial-gradient(circle at 96% 18%, rgba(255, 188, 85, 0.24), transparent 30%);
39
+ pointer-events: none;
40
+ }
41
+
42
+ .home-header,
43
+ .profile-strip,
44
+ .summary-strip,
45
+ .content-grid {
46
+ position: relative;
47
+ z-index: 1;
48
+ }
49
+
50
+ .home-header {
51
+ position: relative;
52
+ min-height: 112px;
53
+ display: grid;
54
+ place-items: center;
55
+ overflow: hidden;
56
+ background: linear-gradient(90deg, #ffc95f, #f5b64c);
57
+ }
58
+
59
+ .home-title {
60
+ position: relative;
61
+ z-index: 2;
62
+ color: #10100e;
63
+ font-size: 46px;
64
+ line-height: 1;
65
+ letter-spacing: 4px;
66
+ text-shadow: 0 3px 0 rgba(255, 255, 255, 0.22);
67
+ }
68
+
69
+ .home-title-ghost {
70
+ position: absolute;
71
+ inset: -18px 0 auto;
72
+ z-index: 1;
73
+ text-align: center;
74
+ color: rgba(255, 228, 152, 0.24);
75
+ font-size: 120px;
76
+ line-height: 1.1;
77
+ letter-spacing: 8px;
78
+ white-space: nowrap;
79
+ }
80
+
81
+ .update-badge {
82
+ position: absolute;
83
+ top: 18px;
84
+ right: 28px;
85
+ z-index: 3;
86
+ padding: 8px 14px;
87
+ border-radius: 999px;
88
+ background: rgba(255, 255, 255, 0.52);
89
+ color: #79521b;
90
+ font-size: 15px;
91
+ line-height: 1;
92
+ box-shadow: inset 0 -2px 0 rgba(141, 94, 30, 0.08);
93
+ }
94
+
95
+ .profile-strip {
96
+ display: flex;
97
+ align-items: center;
98
+ gap: 22px;
99
+ margin: 28px 44px 0;
100
+ padding: 24px 30px;
101
+ border-radius: 24px;
102
+ background: rgba(250, 247, 238, 0.78);
103
+ border: 1px solid rgba(143, 113, 73, 0.16);
104
+ box-shadow: 0 12px 26px rgba(88, 64, 38, 0.08);
105
+ }
106
+
107
+ .home-icon {
108
+ flex: none;
109
+ width: 86px;
110
+ height: 86px;
111
+ object-fit: contain;
112
+ filter: drop-shadow(0 8px 10px rgba(88, 67, 38, 0.16));
113
+ }
114
+
115
+ .profile-main {
116
+ min-width: 0;
117
+ }
118
+
119
+ .home-name-row {
120
+ display: flex;
121
+ align-items: center;
122
+ flex-wrap: wrap;
123
+ gap: 14px;
124
+ }
125
+
126
+ .home-owner {
127
+ max-width: 620px;
128
+ overflow: hidden;
129
+ color: #171411;
130
+ font-size: 38px;
131
+ line-height: 1.12;
132
+ text-overflow: ellipsis;
133
+ white-space: nowrap;
134
+ }
135
+
136
+ .uid-pill {
137
+ padding: 8px 16px;
138
+ border-radius: 999px;
139
+ background: #ffc65f;
140
+ color: #3c2a12;
141
+ font-size: 20px;
142
+ line-height: 1;
143
+ box-shadow: inset 0 -2px 0 rgba(141, 94, 30, 0.12);
144
+ }
145
+
146
+ .profile-subtitle {
147
+ margin-top: 8px;
148
+ color: #7f6e57;
149
+ font-size: 20px;
150
+ }
151
+
152
+ .summary-strip {
153
+ display: grid;
154
+ grid-template-columns: repeat(4, minmax(0, 1fr));
155
+ gap: 16px;
156
+ margin: 20px 44px 0;
157
+ }
158
+
159
+ .summary-item,
160
+ .panel {
161
+ border: 1px solid rgba(143, 113, 73, 0.14);
162
+ background: rgba(250, 247, 238, 0.82);
163
+ box-shadow: 0 12px 26px rgba(88, 64, 38, 0.08);
164
+ }
165
+
166
+ .summary-item {
167
+ min-height: 84px;
168
+ padding: 15px 18px;
169
+ border-radius: 999px;
170
+ }
171
+
172
+ .summary-label {
173
+ color: #7e6a50;
174
+ font-size: 17px;
175
+ }
176
+
177
+ .summary-value {
178
+ margin-top: 6px;
179
+ color: #33271a;
180
+ font-size: 28px;
181
+ line-height: 1.1;
182
+ white-space: nowrap;
183
+ }
184
+
185
+ .content-grid {
186
+ display: grid;
187
+ grid-template-columns: minmax(0, 1.12fr) minmax(400px, 0.88fr);
188
+ gap: 22px;
189
+ align-items: start;
190
+ margin: 22px 44px 0;
191
+ }
192
+
193
+ .left-column {
194
+ display: grid;
195
+ grid-template-columns: 1fr;
196
+ gap: 14px;
197
+ align-items: start;
198
+ }
199
+
200
+ .panel {
201
+ border-radius: 24px;
202
+ padding: 22px;
203
+ }
204
+
205
+ .panel-head {
206
+ display: flex;
207
+ align-items: flex-start;
208
+ justify-content: space-between;
209
+ gap: 14px;
210
+ margin-bottom: 16px;
211
+ }
212
+
213
+ .panel-label {
214
+ color: #907b5e;
215
+ font-size: 14px;
216
+ }
217
+
218
+ h2 {
219
+ margin: 3px 0 0;
220
+ color: #171411;
221
+ font-size: 30px;
222
+ line-height: 1.1;
223
+ }
224
+
225
+ .garden-title-row {
226
+ display: flex;
227
+ align-items: center;
228
+ flex-wrap: wrap;
229
+ gap: 14px;
230
+ margin-top: 3px;
231
+ }
232
+
233
+ .garden-title-row h2 {
234
+ margin: 0;
235
+ }
236
+
237
+ .guard-inline {
238
+ display: inline-flex;
239
+ align-items: center;
240
+ flex-wrap: wrap;
241
+ gap: 7px;
242
+ min-height: 34px;
243
+ padding: 5px 8px 5px 12px;
244
+ border-radius: 999px;
245
+ background: rgba(255, 255, 255, 0.62);
246
+ border: 1px solid rgba(143, 113, 73, 0.12);
247
+ }
248
+
249
+ .guard-inline-label {
250
+ color: #8c7354;
251
+ font-size: 15px;
252
+ }
253
+
254
+ .guard-inline-name {
255
+ max-width: 160px;
256
+ overflow: hidden;
257
+ color: #33271a;
258
+ font-size: 18px;
259
+ text-overflow: ellipsis;
260
+ white-space: nowrap;
261
+ }
262
+
263
+ .guard-inline-empty {
264
+ color: #9a876d;
265
+ font-size: 15px;
266
+ }
267
+
268
+ .panel-count {
269
+ min-width: 46px;
270
+ padding: 6px 12px;
271
+ border-radius: 999px;
272
+ background: #ffc65f;
273
+ color: #4a2d0b;
274
+ text-align: center;
275
+ font-size: 19px;
276
+ box-shadow: inset 0 -2px 0 rgba(141, 94, 30, 0.14);
277
+ }
278
+
279
+ .garden-grid {
280
+ display: grid;
281
+ grid-template-columns: repeat(2, minmax(0, 1fr));
282
+ gap: 12px;
283
+ }
284
+
285
+ .plot-card,
286
+ .pet-card {
287
+ border-radius: 19px;
288
+ border: 1px solid rgba(143, 113, 73, 0.12);
289
+ background: rgba(255, 255, 255, 0.62);
290
+ }
291
+
292
+ .plot-card {
293
+ min-height: 138px;
294
+ padding: 13px 14px;
295
+ }
296
+
297
+ .plot-index {
298
+ display: inline-flex;
299
+ padding: 4px 10px;
300
+ border-radius: 999px;
301
+ background: rgba(255, 198, 95, 0.28);
302
+ color: #9a5f0f;
303
+ font-size: 15px;
304
+ }
305
+
306
+ .plot-main {
307
+ display: flex;
308
+ align-items: center;
309
+ gap: 12px;
310
+ margin-top: 10px;
311
+ }
312
+
313
+ .plant-icon,
314
+ .empty-icon {
315
+ flex: none;
316
+ width: 62px;
317
+ height: 62px;
318
+ object-fit: contain;
319
+ }
320
+
321
+ .empty-icon {
322
+ display: grid;
323
+ place-items: center;
324
+ border-radius: 16px;
325
+ background: rgba(143, 113, 73, 0.10);
326
+ color: rgba(93, 75, 50, 0.52);
327
+ font-size: 17px;
328
+ }
329
+
330
+ .plot-info {
331
+ min-width: 0;
332
+ }
333
+
334
+ .plant-name,
335
+ .pet-name {
336
+ overflow: hidden;
337
+ color: #33271a;
338
+ text-overflow: ellipsis;
339
+ white-space: nowrap;
340
+ }
341
+
342
+ .plant-name {
343
+ font-size: 21px;
344
+ }
345
+
346
+ .plant-state {
347
+ margin-top: 3px;
348
+ font-size: 16px;
349
+ color: #639055;
350
+ }
351
+
352
+ .state-warning {
353
+ color: #c47a24;
354
+ }
355
+
356
+ .state-ready {
357
+ color: #3e9c60;
358
+ }
359
+
360
+ .time-text {
361
+ margin-top: 3px;
362
+ color: #806f58;
363
+ font-size: 15px;
364
+ }
365
+
366
+ .plot-tags {
367
+ display: flex;
368
+ flex-wrap: wrap;
369
+ gap: 5px;
370
+ margin-top: 6px;
371
+ }
372
+
373
+ .plot-tags span,
374
+ .pet-meta span {
375
+ padding: 3px 8px;
376
+ border-radius: 999px;
377
+ background: rgba(255, 198, 95, 0.22);
378
+ color: #795f3f;
379
+ font-size: 13px;
380
+ }
381
+
382
+ .progress-track {
383
+ height: 9px;
384
+ margin-top: 10px;
385
+ overflow: hidden;
386
+ border-radius: 999px;
387
+ background: rgba(143, 113, 73, 0.12);
388
+ }
389
+
390
+ .progress-fill {
391
+ height: 100%;
392
+ min-width: 4%;
393
+ max-width: 100%;
394
+ border-radius: inherit;
395
+ background: linear-gradient(90deg, #83c665, #ffc65f);
396
+ }
397
+
398
+ .pet-grid {
399
+ display: grid;
400
+ gap: 12px;
401
+ }
402
+
403
+ .indoor-panel {
404
+ min-height: 100%;
405
+ }
406
+
407
+ .pet-grid {
408
+ grid-template-columns: 1fr;
409
+ }
410
+
411
+ .pet-card {
412
+ display: flex;
413
+ align-items: center;
414
+ min-height: 122px;
415
+ gap: 14px;
416
+ padding: 13px 14px;
417
+ }
418
+
419
+ .pet-card.status-ready {
420
+ border-color: rgba(65, 162, 83, 0.30);
421
+ background:
422
+ linear-gradient(90deg, rgba(101, 196, 101, 0.20), rgba(255, 255, 255, 0.70)),
423
+ rgba(255, 255, 255, 0.62);
424
+ }
425
+
426
+ .pet-card.status-idle {
427
+ border-color: rgba(177, 112, 42, 0.24);
428
+ background:
429
+ linear-gradient(90deg, rgba(255, 180, 78, 0.20), rgba(255, 255, 255, 0.68)),
430
+ rgba(255, 255, 255, 0.62);
431
+ }
432
+
433
+ .pet-card.status-progress {
434
+ border-color: rgba(87, 157, 138, 0.24);
435
+ background:
436
+ linear-gradient(90deg, rgba(110, 191, 154, 0.18), rgba(255, 245, 221, 0.72)),
437
+ rgba(255, 255, 255, 0.62);
438
+ }
439
+
440
+ .pet-card.status-guard {
441
+ border-color: rgba(76, 136, 181, 0.26);
442
+ background:
443
+ linear-gradient(90deg, rgba(105, 174, 210, 0.18), rgba(255, 255, 255, 0.70)),
444
+ rgba(255, 255, 255, 0.62);
445
+ }
446
+
447
+ .pet-avatar-wrap {
448
+ position: relative;
449
+ flex: none;
450
+ width: 82px;
451
+ height: 82px;
452
+ }
453
+
454
+ .pet-avatar {
455
+ width: 82px;
456
+ height: 82px;
457
+ object-fit: contain;
458
+ border-radius: 20px;
459
+ background: #fff7e6;
460
+ border: 2px solid rgba(255, 198, 95, 0.32);
461
+ }
462
+
463
+ .pet-badge {
464
+ position: absolute;
465
+ left: -4px;
466
+ top: -5px;
467
+ min-width: 32px;
468
+ padding: 3px 8px;
469
+ border-radius: 999px;
470
+ background: #f1b84d;
471
+ color: #ffffff;
472
+ font-size: 14px;
473
+ text-align: center;
474
+ box-shadow: 0 3px 8px rgba(124, 86, 27, 0.18);
475
+ }
476
+
477
+ .pet-info {
478
+ min-width: 0;
479
+ flex: 1;
480
+ }
481
+
482
+ .pet-name {
483
+ font-size: 24px;
484
+ }
485
+
486
+ .pet-meta {
487
+ display: flex;
488
+ flex-wrap: wrap;
489
+ gap: 7px;
490
+ margin-top: 8px;
491
+ }
492
+
493
+ .status-pill {
494
+ padding: 3px 8px;
495
+ border-radius: 999px;
496
+ background: rgba(255, 198, 95, 0.22);
497
+ color: #fff;
498
+ font-size: 15px;
499
+ box-shadow: 0 3px 8px rgba(111, 80, 42, 0.14);
500
+ }
501
+
502
+ .status-ready {
503
+ background: linear-gradient(135deg, #39a75b, #82cf55);
504
+ }
505
+
506
+ .status-progress {
507
+ background: linear-gradient(135deg, #55a876, #e0b857);
508
+ }
509
+
510
+ .status-idle {
511
+ background: linear-gradient(135deg, #d7772d, #f4b24e);
512
+ }
513
+
514
+ .status-guard {
515
+ background: linear-gradient(135deg, #387fae, #72b5d5);
516
+ }
517
+
518
+ .pet-note {
519
+ margin-top: 8px;
520
+ color: #806f58;
521
+ font-size: 16px;
522
+ line-height: 1.32;
523
+ }
524
+
525
+ .empty-state {
526
+ min-height: 108px;
527
+ display: grid;
528
+ place-items: center;
529
+ padding: 16px;
530
+ border-radius: 18px;
531
+ border: 1px dashed rgba(143, 113, 73, 0.28);
532
+ background: rgba(255, 255, 255, 0.44);
533
+ color: #8b7a62;
534
+ text-align: center;
535
+ font-size: 19px;
536
+ line-height: 1.35;
537
+ }
@@ -0,0 +1,87 @@
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=1280, initial-scale=1">
6
+ <link rel="stylesheet" href="{{_res_path}}render/ingame-shop/style.css">
7
+ </head>
8
+ <body>
9
+ <div class="ingame-shop-page shop-page">
10
+ <div class="page-header">
11
+ <div class="page-title">{{title}}</div>
12
+ <div class="page-subtitle">{{subtitle}}</div>
13
+ </div>
14
+
15
+ <div class="hero-card">
16
+ <div class="hero-title">{{heroTitle}}</div>
17
+ <div class="hero-value">{{heroValue}}</div>
18
+ <div class="hero-subvalue">{{heroSubvalue}}</div>
19
+ </div>
20
+
21
+ <div class="summary-grid">
22
+ {{each summaryCards item}}
23
+ <div class="summary-card">
24
+ <div class="summary-label">{{item.label}}</div>
25
+ <div class="summary-value">{{item.value}}</div>
26
+ </div>
27
+ {{/each}}
28
+ </div>
29
+
30
+ {{if sections && sections.length}}
31
+ {{each sections section}}
32
+ <div class="panel-card">
33
+ <div class="section-title">{{section.title}}</div>
34
+ <div class="shop-grid">
35
+ {{each section.cards card}}
36
+ <div class="shop-card">
37
+ <div class="shop-top">
38
+ <div class="shop-icon-wrap">
39
+ {{if card.image}}
40
+ <img src="{{card.image}}" class="shop-icon" alt="{{card.title}}">
41
+ {{else}}
42
+ <div class="shop-icon shop-icon-fallback">?</div>
43
+ {{/if}}
44
+ </div>
45
+ <div class="shop-main">
46
+ <div class="shop-name">{{card.title}}</div>
47
+ </div>
48
+ </div>
49
+ {{if card.meta && card.meta.length}}
50
+ <div class="meta-list">
51
+ {{each card.meta meta}}
52
+ <div class="meta-row">
53
+ <span class="meta-label">{{meta.label}}</span>
54
+ <span class="meta-value">{{meta.value}}</span>
55
+ </div>
56
+ {{/each}}
57
+ </div>
58
+ {{/if}}
59
+ </div>
60
+ {{/each}}
61
+ </div>
62
+ </div>
63
+ {{/each}}
64
+ {{/if}}
65
+
66
+ {{if detailItems && detailItems.length}}
67
+ <div class="panel-card">
68
+ <div class="section-title">补充信息</div>
69
+ <div class="detail-card">
70
+ {{each detailItems item}}
71
+ <div class="detail-row">
72
+ <div class="detail-label">{{item.label}}</div>
73
+ <div class="detail-value">{{item.value}}</div>
74
+ </div>
75
+ {{/each}}
76
+ </div>
77
+ </div>
78
+ {{/if}}
79
+
80
+ {{if commandHint}}
81
+ <div class="command-hint">{{commandHint}}</div>
82
+ {{/if}}
83
+
84
+ <div class="footer">{{copyright}}</div>
85
+ </div>
86
+ </body>
87
+ </html>