verce-vue-test 0.0.39 → 0.0.41

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 (67) hide show
  1. package/design-qa.md +17 -9
  2. package/package.json +1 -1
  3. package/src/views/HomeView.vue +340 -172
  4. package/vite.config.ts +6 -0
  5. package/mini2.0-main 2/.editorconfig +0 -8
  6. package/mini2.0-main 2/.env.development +0 -3
  7. package/mini2.0-main 2/.env.production +0 -3
  8. package/mini2.0-main 2/.env.test +0 -3
  9. package/mini2.0-main 2/.gitattributes +0 -1
  10. package/mini2.0-main 2/.oxlintrc.json +0 -10
  11. package/mini2.0-main 2/.prettierrc.json +0 -6
  12. package/mini2.0-main 2/.vscode/extensions.json +0 -9
  13. package/mini2.0-main 2/README.md +0 -179
  14. package/mini2.0-main 2/auto-imports.d.ts +0 -629
  15. package/mini2.0-main 2/components.d.ts +0 -21
  16. package/mini2.0-main 2/docs/MX_API.md +0 -244
  17. package/mini2.0-main 2/docs/REQUEST.md +0 -217
  18. package/mini2.0-main 2/docs/jsapi.js +0 -515
  19. package/mini2.0-main 2/docs/package-json-guide.md +0 -132
  20. package/mini2.0-main 2/env.d.ts +0 -13
  21. package/mini2.0-main 2/eslint.config.ts +0 -26
  22. package/mini2.0-main 2/index.html +0 -16
  23. package/mini2.0-main 2/package-lock.json +0 -6442
  24. package/mini2.0-main 2/package.json +0 -66
  25. package/mini2.0-main 2/plugins/bump-version.ts +0 -61
  26. package/mini2.0-main 2/postcss.config.ts +0 -15
  27. package/mini2.0-main 2/public/favicon.ico +0 -0
  28. package/mini2.0-main 2/public/images/12a73787-86a9-4891-a65f-66104746f6a8.png +0 -0
  29. package/mini2.0-main 2/public/images/5798d7aa-ba8b-4605-8079-58b35495ac55.png +0 -0
  30. package/mini2.0-main 2/public/images/73fef1e4-0fd0-4a1a-9b8b-a70a5b6acbbc.png +0 -0
  31. package/mini2.0-main 2/public/images/bc685b4c-0cca-4a79-924c-a8ee10e6f8eb.png +0 -0
  32. package/mini2.0-main 2/public/images/c3dbbd9d-be56-490e-b9f4-6ee17ebefffc.png +0 -0
  33. package/mini2.0-main 2/public/images/ea745a10-42aa-4f44-8d7f-3ab02cc0adcd.png +0 -0
  34. package/mini2.0-main 2/public/images/f5876785-b927-4347-ba19-999114240649.png +0 -0
  35. package/mini2.0-main 2/public/images/img.png +0 -0
  36. package/mini2.0-main 2/src/App.vue +0 -11
  37. package/mini2.0-main 2/src/api/user.ts +0 -33
  38. package/mini2.0-main 2/src/auto-imports.d.ts +0 -639
  39. package/mini2.0-main 2/src/components.d.ts +0 -23
  40. package/mini2.0-main 2/src/config/config.properties +0 -3
  41. package/mini2.0-main 2/src/config/env.ts +0 -6
  42. package/mini2.0-main 2/src/config/plugin.properties.pro +0 -6
  43. package/mini2.0-main 2/src/config/plugin.properties.test +0 -6
  44. package/mini2.0-main 2/src/core/mxApi/index.ts +0 -217
  45. package/mini2.0-main 2/src/core/request/index.ts +0 -42
  46. package/mini2.0-main 2/src/main.ts +0 -28
  47. package/mini2.0-main 2/src/router/index.ts +0 -70
  48. package/mini2.0-main 2/src/stores/app.ts +0 -24
  49. package/mini2.0-main 2/src/stores/counter.ts +0 -12
  50. package/mini2.0-main 2/src/stores/user.ts +0 -52
  51. package/mini2.0-main 2/src/types/api.d.ts +0 -14
  52. package/mini2.0-main 2/src/types/nprogress.d.ts +0 -8
  53. package/mini2.0-main 2/src/utils/query.ts +0 -27
  54. package/mini2.0-main 2/src/utils/request.ts +0 -159
  55. package/mini2.0-main 2/src/views/clearing-detail/index.vue +0 -49
  56. package/mini2.0-main 2/src/views/foreign-position/index.vue +0 -49
  57. package/mini2.0-main 2/src/views/home/index.vue +0 -201
  58. package/mini2.0-main 2/src/views/login/index.vue +0 -196
  59. package/mini2.0-main 2/src/views/net-debit/index.vue +0 -49
  60. package/mini2.0-main 2/src/views/pbc-position/index.vue +0 -49
  61. package/mini2.0-main 2/src/views/position-estimate/index.vue +0 -49
  62. package/mini2.0-main 2/src/views/rmb-position/index.vue +0 -49
  63. package/mini2.0-main 2/src/views/warning/index.vue +0 -49
  64. package/mini2.0-main 2/tsconfig.app.json +0 -18
  65. package/mini2.0-main 2/tsconfig.json +0 -11
  66. package/mini2.0-main 2/tsconfig.node.json +0 -28
  67. package/mini2.0-main 2/vite.config.ts +0 -69
@@ -1,11 +1,16 @@
1
1
  <script setup lang="ts">
2
2
  import type { Component } from 'vue'
3
+ import { useRouter } from 'vue-router'
3
4
  import {
5
+ Bell,
4
6
  Clock,
5
7
  Compass,
6
8
  Connection,
9
+ DataLine,
10
+ HomeFilled,
7
11
  Lock,
8
12
  School,
13
+ TrendCharts,
9
14
  } from '@element-plus/icons-vue'
10
15
 
11
16
  import homePageBg from '@/assets/home/home-page-bg.png'
@@ -35,7 +40,15 @@ type BalanceCard = {
35
40
  glow: string
36
41
  }
37
42
 
43
+ type HomeMenuItem = {
44
+ label: string
45
+ route: string
46
+ icon: Component
47
+ active?: boolean
48
+ }
49
+
38
50
  const updatedAt = '2025-05-27 10:30:00'
51
+ const router = useRouter()
39
52
 
40
53
  const balanceCards: BalanceCard[] = [
41
54
  {
@@ -152,6 +165,19 @@ const balanceCards: BalanceCard[] = [
152
165
  glow: 'rgba(88, 41, 191, 0.27)',
153
166
  },
154
167
  ]
168
+
169
+ const menuItems: HomeMenuItem[] = [
170
+ { label: '总览', route: '/', icon: HomeFilled, active: true },
171
+ { label: '驾驶舱', route: '/fund-cockpit', icon: TrendCharts },
172
+ { label: '头寸', route: '/position-forecast', icon: DataLine },
173
+ { label: '公告', route: '/notice-announcement', icon: Bell },
174
+ ]
175
+
176
+ function openMenu(item: HomeMenuItem) {
177
+ if (item.route !== '/') {
178
+ router.push(item.route)
179
+ }
180
+ }
155
181
  </script>
156
182
 
157
183
  <template>
@@ -160,76 +186,102 @@ const balanceCards: BalanceCard[] = [
160
186
  :style="{ '--home-bg': `url(${homePageBg})` }"
161
187
  aria-label="账户余额总览"
162
188
  >
163
- <section class="balance-panel">
164
- <div class="page-heading">
165
- <h1>账户余额总览</h1>
166
- <div class="heading-rule" aria-hidden="true">
167
- <span></span>
168
- <i><Lock /></i>
169
- <span></span>
170
- </div>
171
- </div>
172
-
173
- <div class="updated-at">
174
- <el-icon><Clock /></el-icon>
175
- <span>更新时间:</span>
176
- <time :datetime="updatedAt">{{ updatedAt }}</time>
177
- </div>
178
-
179
- <div class="balance-grid">
180
- <article
181
- v-for="card in balanceCards"
182
- :key="card.id"
183
- class="balance-card"
184
- :style="{
185
- '--card-bg': `url(${card.background})`,
186
- '--accent': card.accent,
187
- '--accent-deep': card.accentDeep,
188
- '--accent-soft': card.accentSoft,
189
- '--card-border': card.border,
190
- '--card-glow': card.glow,
191
- }"
192
- >
193
- <img class="card-bg" :src="card.background" alt="" aria-hidden="true" />
194
-
195
- <div class="badge-shell" aria-hidden="true">
196
- <div class="currency-badge">
197
- <span
198
- v-if="card.symbol"
199
- class="currency-symbol"
200
- :class="{ 'is-compact': card.iconSize === 'compact' }"
201
- >
202
- {{ card.symbol }}
203
- </span>
204
- <component :is="card.icon" v-else class="badge-icon" />
189
+ <div class="home-layout">
190
+ <section class="balance-panel">
191
+ <header class="panel-head">
192
+ <div class="page-heading">
193
+ <h1>账户余额总览</h1>
194
+ <div class="heading-rule" aria-hidden="true">
195
+ <span></span>
196
+ <i><Lock /></i>
197
+ <span></span>
205
198
  </div>
206
199
  </div>
207
200
 
208
- <h2>{{ card.title }}</h2>
201
+ <div class="updated-at">
202
+ <el-icon><Clock /></el-icon>
203
+ <span>更新时间:</span>
204
+ <time :datetime="updatedAt">{{ updatedAt }}</time>
205
+ </div>
206
+ </header>
207
+
208
+ <div class="balance-grid">
209
+ <article
210
+ v-for="card in balanceCards"
211
+ :key="card.id"
212
+ class="balance-card"
213
+ :style="{
214
+ '--card-bg': `url(${card.background})`,
215
+ '--accent': card.accent,
216
+ '--accent-deep': card.accentDeep,
217
+ '--accent-soft': card.accentSoft,
218
+ '--card-border': card.border,
219
+ '--card-glow': card.glow,
220
+ }"
221
+ >
222
+ <img class="card-bg" :src="card.background" alt="" aria-hidden="true" />
223
+
224
+ <div class="badge-shell" aria-hidden="true">
225
+ <div class="currency-badge">
226
+ <span
227
+ v-if="card.symbol"
228
+ class="currency-symbol"
229
+ :class="{ 'is-compact': card.iconSize === 'compact' }"
230
+ >
231
+ {{ card.symbol }}
232
+ </span>
233
+ <component :is="card.icon" v-else class="badge-icon" />
234
+ </div>
235
+ </div>
236
+
237
+ <h2>{{ card.title }}</h2>
209
238
 
210
- <div class="amount-block">
211
- <div class="amount-row">
212
- <span class="amount-main">{{ card.amount }}</span>
213
- <span class="amount-decimal">{{ card.decimal }}</span>
239
+ <div class="amount-block">
240
+ <div class="amount-row">
241
+ <span class="amount-main">{{ card.amount }}</span>
242
+ <span class="amount-decimal">{{ card.decimal }}</span>
243
+ </div>
244
+ <div class="unit-label">{{ card.unit }}</div>
214
245
  </div>
215
- <div class="unit-label">{{ card.unit }}</div>
216
- </div>
217
- </article>
218
- </div>
219
- </section>
246
+ </article>
247
+ </div>
248
+ </section>
249
+
250
+ <nav class="right-menu" aria-label="首页快捷菜单">
251
+ <button
252
+ v-for="item in menuItems"
253
+ :key="item.route"
254
+ class="menu-item"
255
+ :class="{ 'is-active': item.active }"
256
+ type="button"
257
+ :aria-current="item.active ? 'page' : undefined"
258
+ @click="openMenu(item)"
259
+ >
260
+ <el-icon class="menu-icon">
261
+ <component :is="item.icon" />
262
+ </el-icon>
263
+ <span class="menu-label">{{ item.label }}</span>
264
+ </button>
265
+ </nav>
266
+ </div>
220
267
  </main>
221
268
  </template>
222
269
 
223
270
  <style scoped>
224
271
  .balance-home {
225
272
  --navy: #071a55;
273
+ --page-gap: clamp(0.55rem, 1.15vw, 1.35rem);
274
+ --edge-pad-x: clamp(0.75rem, 2.5vw, 2.65rem);
275
+ --edge-pad-y: clamp(0.75rem, 4vh, 2.65rem);
276
+ --menu-width: clamp(4.25rem, 6.5vw, 7.25rem);
277
+ --panel-radius: clamp(1.1rem, 2.6vw, 3rem);
278
+ --card-radius: clamp(0.65rem, 0.85vw, 1rem);
226
279
  position: relative;
227
- display: flex;
228
- width: 100vw;
229
- height: 100vh;
230
- min-height: 640px;
280
+ width: 100%;
281
+ min-height: 100vh;
282
+ min-height: 100dvh;
283
+ padding: var(--edge-pad-y) var(--edge-pad-x);
231
284
  overflow: hidden;
232
- container-type: size;
233
285
  color: var(--navy);
234
286
  background: #dcecff var(--home-bg) center / cover no-repeat;
235
287
  font-family:
@@ -240,63 +292,78 @@ const balanceCards: BalanceCard[] = [
240
292
  sans-serif;
241
293
  }
242
294
 
295
+ .home-layout {
296
+ display: grid;
297
+ grid-template-columns: minmax(0, 1fr) var(--menu-width);
298
+ gap: var(--page-gap);
299
+ width: 100%;
300
+ height: calc(100vh - var(--edge-pad-y) * 2);
301
+ height: calc(100dvh - var(--edge-pad-y) * 2);
302
+ min-height: 0;
303
+ }
304
+
243
305
  .balance-panel {
244
- position: absolute;
245
- top: 4.45%;
246
- right: 2.55%;
247
- bottom: 0.35%;
248
- left: 2.55%;
306
+ position: relative;
307
+ display: grid;
308
+ grid-template-rows: auto minmax(0, 1fr);
309
+ min-width: 0;
310
+ min-height: 0;
249
311
  overflow: hidden;
250
312
  border: 2px solid rgba(255, 255, 255, 0.92);
251
- border-radius: 2.68cqw;
313
+ border-radius: var(--panel-radius);
252
314
  background:
253
315
  linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(245, 251, 255, 0.42)),
254
316
  rgba(243, 249, 255, 0.52);
255
317
  box-shadow:
256
318
  0 0 0 2px rgba(166, 204, 245, 0.55),
257
- 0 1.4cqw 3cqw rgba(67, 125, 189, 0.25),
258
- inset 0 0 1.8cqw rgba(255, 255, 255, 0.82),
259
- inset 0 -1cqw 2.8cqw rgba(95, 155, 220, 0.14);
319
+ 0 clamp(0.6rem, 1.4vw, 1.7rem) clamp(1rem, 3vw, 3.4rem) rgba(67, 125, 189, 0.25),
320
+ inset 0 0 clamp(0.8rem, 1.8vw, 2rem) rgba(255, 255, 255, 0.82),
321
+ inset 0 clamp(-1rem, -1vw, -0.3rem) clamp(1rem, 2.8vw, 3rem) rgba(95, 155, 220, 0.14);
260
322
  backdrop-filter: blur(2px);
261
323
  }
262
324
 
263
325
  .balance-panel::before {
264
326
  position: absolute;
265
- inset: 1.2cqw;
327
+ inset: clamp(0.55rem, 1.15vw, 1.35rem);
266
328
  content: "";
267
329
  pointer-events: none;
268
330
  border: 1px solid rgba(187, 217, 247, 0.62);
269
- border-radius: 2.08cqw;
270
- box-shadow: inset 0 0 1.8cqw rgba(255, 255, 255, 0.72);
331
+ border-radius: calc(var(--panel-radius) * 0.78);
332
+ box-shadow: inset 0 0 clamp(0.8rem, 1.8vw, 2rem) rgba(255, 255, 255, 0.72);
333
+ }
334
+
335
+ .panel-head {
336
+ position: relative;
337
+ z-index: 1;
338
+ display: grid;
339
+ min-height: clamp(6.1rem, 15vh, 9.4rem);
340
+ padding: clamp(1.25rem, 3vh, 2.6rem) clamp(1.25rem, 3.75vw, 4rem) 0;
271
341
  }
272
342
 
273
343
  .page-heading {
274
- position: absolute;
275
- top: 4.1%;
276
- left: 0;
277
- right: 0;
278
344
  display: grid;
279
345
  justify-items: center;
346
+ align-self: start;
280
347
  }
281
348
 
282
349
  .page-heading h1 {
283
350
  margin: 0;
284
351
  color: #06195a;
285
- font-size: 4.22cqw;
352
+ font-size: clamp(2.35rem, 4.05vw, 4.7rem);
286
353
  font-weight: 900;
287
354
  line-height: 0.98;
288
355
  letter-spacing: 0;
289
356
  text-shadow:
290
- 0 0.12cqw 0 rgba(255, 255, 255, 0.86),
291
- 0 0.2cqw 0.35cqw rgba(38, 66, 137, 0.2);
357
+ 0 0.08rem 0 rgba(255, 255, 255, 0.86),
358
+ 0 0.14rem 0.25rem rgba(38, 66, 137, 0.2);
292
359
  }
293
360
 
294
361
  .heading-rule {
295
362
  display: grid;
296
- grid-template-columns: 12cqw 1.9cqw 12cqw;
363
+ grid-template-columns: minmax(4rem, 12vw) clamp(1rem, 1.55vw, 1.8rem) minmax(4rem, 12vw);
297
364
  align-items: center;
298
- gap: 0.55cqw;
299
- margin-top: 1.06cqw;
365
+ gap: clamp(0.32rem, 0.55vw, 0.65rem);
366
+ margin-top: clamp(0.45rem, 1vw, 1.15rem);
300
367
  color: #1f57e2;
301
368
  }
302
369
 
@@ -313,8 +380,8 @@ const balanceCards: BalanceCard[] = [
313
380
 
314
381
  .heading-rule i {
315
382
  display: grid;
316
- width: 1.45cqw;
317
- height: 1.45cqw;
383
+ width: clamp(1rem, 1.35vw, 1.55rem);
384
+ height: clamp(1rem, 1.35vw, 1.55rem);
318
385
  place-items: center;
319
386
  color: #2466ec;
320
387
  }
@@ -327,54 +394,55 @@ const balanceCards: BalanceCard[] = [
327
394
 
328
395
  .updated-at {
329
396
  position: absolute;
330
- top: 8.7%;
331
- right: 4.25%;
397
+ top: clamp(1.8rem, 5.8vh, 3.75rem);
398
+ right: clamp(1.25rem, 3.75vw, 4rem);
332
399
  display: flex;
333
400
  align-items: center;
334
401
  color: #23305b;
335
- font-size: 1.11cqw;
402
+ font-size: clamp(0.8rem, 1.05vw, 1.18rem);
336
403
  font-weight: 500;
337
404
  line-height: 1;
338
405
  white-space: nowrap;
339
406
  }
340
407
 
341
408
  .updated-at .el-icon {
342
- margin-right: 0.45cqw;
409
+ margin-right: clamp(0.25rem, 0.45vw, 0.55rem);
343
410
  color: #172969;
344
- font-size: 1.37cqw;
411
+ font-size: clamp(0.95rem, 1.28vw, 1.42rem);
345
412
  }
346
413
 
347
414
  .balance-grid {
348
- position: absolute;
349
- top: 10.1cqw;
350
- right: 3.85%;
351
- bottom: 4cqw;
352
- left: 3.82%;
415
+ position: relative;
353
416
  z-index: 1;
354
417
  display: grid;
355
418
  grid-template-columns: repeat(2, minmax(0, 1fr));
356
419
  grid-template-rows: repeat(4, minmax(0, 1fr));
357
- gap: 1.32cqw 1.68cqw;
420
+ gap: clamp(0.65rem, 1.45vh, 1.35rem) clamp(0.75rem, 1.6vw, 1.75rem);
421
+ min-height: 0;
422
+ padding: 0 clamp(1.25rem, 3.75vw, 4rem) clamp(1.15rem, 3.65vh, 2.8rem);
358
423
  }
359
424
 
360
425
  .balance-card {
361
426
  position: relative;
362
427
  display: grid;
363
- grid-template-columns: 7.9cqw minmax(9.6cqw, 13.4cqw) minmax(0, 1fr);
428
+ grid-template-columns:
429
+ clamp(4.25rem, 7vmin, 7rem)
430
+ minmax(clamp(5.5rem, 9vw, 10.75rem), 0.52fr)
431
+ minmax(0, 1fr);
364
432
  align-items: center;
365
433
  min-width: 0;
366
434
  min-height: 0;
367
435
  overflow: hidden;
368
- padding: 0 1.68cqw 0 1.38cqw;
436
+ padding: 0 clamp(0.85rem, 1.6vw, 1.7rem) 0 clamp(0.75rem, 1.35vw, 1.45rem);
369
437
  border: 1px solid var(--card-border);
370
- border-radius: 0.9cqw;
438
+ border-radius: var(--card-radius);
371
439
  background:
372
440
  linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.28)),
373
441
  #ffffff;
374
442
  box-shadow:
375
- 0 0.18cqw 0.65cqw var(--card-glow),
376
- 0 0 0.85cqw rgba(255, 255, 255, 0.9) inset,
377
- -0.16cqw 0 0 var(--accent) inset;
443
+ 0 0.13rem clamp(0.35rem, 0.65vw, 0.75rem) var(--card-glow),
444
+ 0 0 clamp(0.45rem, 0.85vw, 1rem) rgba(255, 255, 255, 0.9) inset,
445
+ -0.16rem 0 0 var(--accent) inset;
378
446
  }
379
447
 
380
448
  .balance-card::before {
@@ -382,11 +450,11 @@ const balanceCards: BalanceCard[] = [
382
450
  top: 11%;
383
451
  bottom: 11%;
384
452
  left: 0;
385
- width: 0.22cqw;
453
+ width: clamp(0.15rem, 0.22vw, 0.24rem);
386
454
  content: "";
387
455
  border-radius: 0 99px 99px 0;
388
456
  background: linear-gradient(180deg, var(--accent-soft), var(--accent-deep));
389
- box-shadow: 0 0 0.85cqw var(--card-glow);
457
+ box-shadow: 0 0 clamp(0.45rem, 0.85vw, 1rem) var(--card-glow);
390
458
  }
391
459
 
392
460
  .balance-card::after {
@@ -420,8 +488,8 @@ const balanceCards: BalanceCard[] = [
420
488
 
421
489
  .badge-shell {
422
490
  display: grid;
423
- width: 6.82cqw;
424
- height: 6.82cqw;
491
+ width: clamp(3.9rem, 6.6vmin, 6.85rem);
492
+ aspect-ratio: 1;
425
493
  place-items: center;
426
494
  border-radius: 50%;
427
495
  background:
@@ -429,52 +497,52 @@ const balanceCards: BalanceCard[] = [
429
497
  radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 61%, rgba(255, 255, 255, 0) 62%),
430
498
  conic-gradient(from 200deg, rgba(255, 255, 255, 0.1), var(--accent-soft), rgba(255, 255, 255, 0.78), var(--accent-deep), rgba(255, 255, 255, 0.24));
431
499
  box-shadow:
432
- 0 0.18cqw 0.7cqw var(--card-glow),
433
- 0 0 1.25cqw rgba(255, 255, 255, 0.86) inset;
500
+ 0 0.13rem clamp(0.38rem, 0.7vw, 0.82rem) var(--card-glow),
501
+ 0 0 clamp(0.65rem, 1.25vw, 1.45rem) rgba(255, 255, 255, 0.86) inset;
434
502
  }
435
503
 
436
504
  .currency-badge {
437
505
  position: relative;
438
506
  display: grid;
439
- width: 5.55cqw;
440
- height: 5.55cqw;
507
+ width: 81%;
508
+ aspect-ratio: 1;
441
509
  place-items: center;
442
510
  overflow: hidden;
443
- border: 0.16cqw solid rgba(255, 255, 255, 0.92);
511
+ border: clamp(0.1rem, 0.16vw, 0.18rem) solid rgba(255, 255, 255, 0.92);
444
512
  border-radius: 50%;
445
513
  color: #ffffff;
446
514
  background:
447
515
  radial-gradient(circle at 42% 35%, var(--accent-soft), var(--accent) 58%, var(--accent-deep) 100%);
448
516
  box-shadow:
449
- 0 0 0 0.13cqw rgba(255, 255, 255, 0.52),
450
- 0 0.22cqw 0.46cqw rgba(2, 35, 79, 0.18),
451
- inset 0 -0.22cqw 0.46cqw rgba(0, 0, 0, 0.14);
517
+ 0 0 0 clamp(0.07rem, 0.13vw, 0.15rem) rgba(255, 255, 255, 0.52),
518
+ 0 0.14rem 0.32rem rgba(2, 35, 79, 0.18),
519
+ inset 0 -0.14rem 0.32rem rgba(0, 0, 0, 0.14);
452
520
  }
453
521
 
454
522
  .currency-symbol {
455
523
  color: #ffffff;
456
- font-size: 3.32cqw;
524
+ font-size: clamp(2rem, 3.25vmin, 3.35rem);
457
525
  font-weight: 900;
458
526
  line-height: 1;
459
527
  letter-spacing: 0;
460
- text-shadow: 0 0.1cqw 0.12cqw rgba(0, 0, 0, 0.17);
528
+ text-shadow: 0 0.08rem 0.1rem rgba(0, 0, 0, 0.17);
461
529
  }
462
530
 
463
531
  .currency-symbol.is-compact {
464
- font-size: 1.72cqw;
532
+ font-size: clamp(1.15rem, 1.75vmin, 1.85rem);
465
533
  }
466
534
 
467
535
  .badge-icon {
468
- width: 3.1cqw;
469
- height: 3.1cqw;
536
+ width: clamp(1.85rem, 3vmin, 3.2rem);
537
+ height: clamp(1.85rem, 3vmin, 3.2rem);
470
538
  color: #ffffff;
471
- filter: drop-shadow(0 0.08cqw 0.08cqw rgba(0, 0, 0, 0.2));
539
+ filter: drop-shadow(0 0.06rem 0.06rem rgba(0, 0, 0, 0.2));
472
540
  }
473
541
 
474
542
  .balance-card h2 {
475
543
  margin: 0;
476
544
  color: #050d44;
477
- font-size: 1.82cqw;
545
+ font-size: clamp(1.15rem, 1.7vw, 2rem);
478
546
  font-weight: 900;
479
547
  line-height: 1.04;
480
548
  letter-spacing: 0;
@@ -485,7 +553,7 @@ const balanceCards: BalanceCard[] = [
485
553
  display: grid;
486
554
  justify-items: end;
487
555
  min-width: 0;
488
- padding-top: 0.55cqw;
556
+ padding-top: clamp(0.2rem, 0.55vw, 0.6rem);
489
557
  }
490
558
 
491
559
  .amount-row {
@@ -503,119 +571,219 @@ const balanceCards: BalanceCard[] = [
503
571
  font-weight: 900;
504
572
  line-height: 0.94;
505
573
  text-align: right;
506
- text-shadow: 0 0.1cqw 0.18cqw rgba(255, 255, 255, 0.92);
574
+ text-shadow: 0 0.08rem 0.15rem rgba(255, 255, 255, 0.92);
507
575
  white-space: nowrap;
508
576
  }
509
577
 
510
578
  .amount-main {
511
579
  min-width: 0;
512
580
  overflow: hidden;
513
- font-size: 3.02cqw;
581
+ font-size: clamp(1.75rem, 2.85vw, 3.35rem);
514
582
  letter-spacing: 0;
515
583
  text-overflow: ellipsis;
516
584
  }
517
585
 
518
586
  .amount-decimal {
519
587
  flex: 0 0 auto;
520
- margin-top: 0.72cqw;
521
- margin-left: 0.14cqw;
522
- font-size: 1.5cqw;
588
+ margin-top: clamp(0.35rem, 0.72vw, 0.8rem);
589
+ margin-left: clamp(0.06rem, 0.14vw, 0.16rem);
590
+ font-size: clamp(0.95rem, 1.42vw, 1.65rem);
523
591
  letter-spacing: 0;
524
592
  }
525
593
 
526
594
  .unit-label {
527
- margin-top: 0.76cqw;
595
+ margin-top: clamp(0.35rem, 0.75vw, 0.85rem);
528
596
  color: color-mix(in srgb, var(--accent-deep) 88%, #00164e);
529
- font-size: 1.43cqw;
597
+ font-size: clamp(0.95rem, 1.35vw, 1.55rem);
530
598
  font-weight: 500;
531
599
  line-height: 1;
532
600
  letter-spacing: 0;
533
601
  text-align: right;
534
602
  }
535
603
 
536
- @media (max-aspect-ratio: 13 / 10) {
604
+ .right-menu {
605
+ position: relative;
606
+ z-index: 2;
607
+ display: grid;
608
+ align-content: center;
609
+ gap: clamp(0.55rem, 1.25vh, 1rem);
610
+ min-width: 0;
611
+ min-height: 0;
612
+ padding: clamp(0.55rem, 1.4vh, 1.2rem) clamp(0.35rem, 0.7vw, 0.75rem);
613
+ border: 1px solid rgba(255, 255, 255, 0.76);
614
+ border-radius: clamp(0.85rem, 1.4vw, 1.45rem);
615
+ background:
616
+ linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(229, 242, 255, 0.62)),
617
+ rgba(224, 239, 255, 0.46);
618
+ box-shadow:
619
+ 0 0.7rem 1.6rem rgba(65, 126, 194, 0.22),
620
+ inset 0 0 1rem rgba(255, 255, 255, 0.76);
621
+ backdrop-filter: blur(5px);
622
+ }
623
+
624
+ .menu-item {
625
+ display: grid;
626
+ justify-items: center;
627
+ gap: clamp(0.25rem, 0.55vh, 0.45rem);
628
+ width: 100%;
629
+ min-width: 0;
630
+ padding: clamp(0.55rem, 1.15vh, 0.95rem) clamp(0.25rem, 0.6vw, 0.6rem);
631
+ border: 1px solid rgba(135, 173, 226, 0.38);
632
+ border-radius: clamp(0.65rem, 0.9vw, 1rem);
633
+ color: #17306d;
634
+ background: rgba(255, 255, 255, 0.54);
635
+ box-shadow: inset 0 0 0.7rem rgba(255, 255, 255, 0.58);
636
+ font: inherit;
637
+ cursor: pointer;
638
+ }
639
+
640
+ .menu-item:hover {
641
+ border-color: rgba(47, 104, 217, 0.48);
642
+ background: rgba(245, 251, 255, 0.9);
643
+ }
644
+
645
+ .menu-item.is-active {
646
+ color: #ffffff;
647
+ border-color: rgba(26, 94, 232, 0.72);
648
+ background: linear-gradient(180deg, #2b7df1, #1157d5);
649
+ box-shadow:
650
+ 0 0.4rem 1rem rgba(19, 93, 216, 0.32),
651
+ inset 0 0.1rem 0.8rem rgba(255, 255, 255, 0.32);
652
+ }
653
+
654
+ .menu-icon {
655
+ font-size: clamp(1.25rem, 2vw, 2rem);
656
+ }
657
+
658
+ .menu-label {
659
+ max-width: 100%;
660
+ overflow-wrap: anywhere;
661
+ font-size: clamp(0.78rem, 1vw, 1rem);
662
+ font-weight: 800;
663
+ line-height: 1.05;
664
+ text-align: center;
665
+ }
666
+
667
+ @media (max-width: 1180px) {
537
668
  .balance-home {
538
- min-height: 900px;
539
- overflow-y: auto;
669
+ --edge-pad-x: clamp(0.55rem, 1.65vw, 1.35rem);
670
+ --edge-pad-y: clamp(0.55rem, 2vh, 1.25rem);
671
+ --menu-width: clamp(3.6rem, 6vw, 5rem);
540
672
  }
541
673
 
542
- .balance-panel {
543
- position: relative;
544
- inset: auto;
545
- width: calc(100% - 32px);
546
- min-height: 860px;
547
- margin: 16px auto;
674
+ .panel-head {
675
+ min-height: clamp(5.1rem, 12vh, 7rem);
676
+ padding-inline: clamp(1rem, 2.4vw, 2rem);
548
677
  }
549
678
 
550
679
  .page-heading h1 {
551
- font-size: clamp(34px, 8vw, 64px);
680
+ font-size: clamp(2rem, 3.6vw, 3.3rem);
681
+ }
682
+
683
+ .updated-at {
684
+ top: clamp(1.35rem, 4vh, 2.25rem);
685
+ right: clamp(1rem, 2.4vw, 2rem);
686
+ font-size: clamp(0.72rem, 1vw, 0.9rem);
687
+ }
688
+
689
+ .balance-grid {
690
+ padding-inline: clamp(1rem, 2.4vw, 2rem);
691
+ padding-bottom: clamp(0.9rem, 2.2vh, 1.5rem);
692
+ }
693
+
694
+ .balance-card {
695
+ grid-template-columns:
696
+ clamp(3.65rem, 6vmin, 5.3rem)
697
+ minmax(clamp(4.8rem, 9vw, 7.5rem), 0.45fr)
698
+ minmax(0, 1fr);
699
+ }
700
+
701
+ .menu-label {
702
+ font-size: clamp(0.7rem, 1.05vw, 0.85rem);
703
+ }
704
+ }
705
+
706
+ @media (max-width: 900px), (max-aspect-ratio: 5 / 4) {
707
+ .balance-home {
708
+ overflow: hidden;
709
+ --menu-width: clamp(3.35rem, 10vw, 4.6rem);
710
+ }
711
+
712
+ .home-layout {
713
+ height: calc(100vh - var(--edge-pad-y) * 2);
714
+ height: calc(100dvh - var(--edge-pad-y) * 2);
715
+ }
716
+
717
+ .balance-panel {
718
+ overflow-y: auto;
552
719
  }
553
720
 
554
721
  .updated-at {
555
- top: 12%;
556
- right: 50%;
557
- transform: translateX(50%);
558
- font-size: clamp(13px, 2.6vw, 18px);
722
+ position: static;
723
+ justify-content: center;
724
+ margin-top: clamp(0.45rem, 1vh, 0.75rem);
725
+ font-size: clamp(0.7rem, 1.7vw, 0.9rem);
559
726
  }
560
727
 
561
- .updated-at .el-icon {
562
- font-size: clamp(16px, 3.1vw, 22px);
728
+ .panel-head {
729
+ min-height: auto;
730
+ padding-block: clamp(0.9rem, 2.5vh, 1.35rem) clamp(0.85rem, 2vh, 1.2rem);
563
731
  }
564
732
 
565
733
  .balance-grid {
566
- top: 18%;
567
- right: 24px;
568
- bottom: 30px;
569
- left: 24px;
570
734
  grid-template-columns: 1fr;
571
- grid-template-rows: repeat(8, minmax(120px, 1fr));
572
- gap: 14px;
735
+ grid-template-rows: none;
736
+ grid-auto-rows: minmax(clamp(6.5rem, 16vh, 9rem), auto);
737
+ gap: clamp(0.55rem, 1.4vh, 0.9rem);
738
+ padding-bottom: clamp(0.9rem, 2vh, 1.3rem);
573
739
  }
574
740
 
575
741
  .balance-card {
576
- grid-template-columns: 92px minmax(110px, 150px) minmax(0, 1fr);
577
- padding: 0 20px 0 18px;
578
- border-radius: 14px;
742
+ grid-template-columns:
743
+ clamp(3.7rem, 11vw, 5rem)
744
+ minmax(clamp(5.4rem, 18vw, 7.5rem), 0.52fr)
745
+ minmax(0, 1fr);
746
+ padding-inline: clamp(0.65rem, 2vw, 1rem);
579
747
  }
580
748
 
581
- .badge-shell {
582
- width: 82px;
583
- height: 82px;
749
+ .amount-main {
750
+ font-size: clamp(1.55rem, 5.3vw, 2.65rem);
584
751
  }
585
752
 
586
- .currency-badge {
587
- width: 66px;
588
- height: 66px;
753
+ .amount-decimal {
754
+ font-size: clamp(0.8rem, 2.65vw, 1.25rem);
589
755
  }
590
756
 
591
- .currency-symbol {
592
- font-size: 38px;
757
+ .right-menu {
758
+ gap: clamp(0.4rem, 1vh, 0.65rem);
759
+ padding-inline: clamp(0.25rem, 0.9vw, 0.45rem);
593
760
  }
594
761
 
595
- .currency-symbol.is-compact {
596
- font-size: 21px;
762
+ .menu-item {
763
+ padding-inline: 0.15rem;
597
764
  }
765
+ }
598
766
 
599
- .badge-icon {
600
- width: 36px;
601
- height: 36px;
767
+ @media (max-height: 690px) and (min-width: 901px) {
768
+ .balance-home {
769
+ --edge-pad-y: clamp(0.45rem, 1.4vh, 0.75rem);
602
770
  }
603
771
 
604
- .balance-card h2 {
605
- font-size: 24px;
772
+ .panel-head {
773
+ min-height: clamp(4.7rem, 12vh, 5.6rem);
774
+ padding-top: clamp(0.85rem, 2vh, 1.2rem);
606
775
  }
607
776
 
608
- .amount-main {
609
- font-size: clamp(30px, 7vw, 46px);
777
+ .page-heading h1 {
778
+ font-size: clamp(2rem, 3.35vw, 3.7rem);
610
779
  }
611
780
 
612
- .amount-decimal {
613
- margin-top: 9px;
614
- font-size: clamp(16px, 3.5vw, 24px);
781
+ .heading-rule {
782
+ margin-top: 0.35rem;
615
783
  }
616
784
 
617
- .unit-label {
618
- font-size: 20px;
785
+ .balance-grid {
786
+ gap: clamp(0.45rem, 1vh, 0.8rem) clamp(0.65rem, 1.2vw, 1.2rem);
619
787
  }
620
788
  }
621
789
  </style>