@fish-under-sea/magpie-dragonapi 0.1.5 → 0.2.0
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.
- package/README.md +45 -8
- package/index.mjs +9 -8
- package/lib/pricing.mjs +132 -6
- package/lib/service.mjs +95 -18
- package/lib/site.mjs +104 -4
- package/lib/store.mjs +18 -6
- package/package.json +1 -1
- package/serve.mjs +5 -2
- package/ui/app.js +882 -165
- package/ui/index.html +42 -20
- package/ui/style.css +676 -99
- package/ui/vendor-icons/ByteDance.svg +1 -0
- package/ui/vendor-icons/Claude.Color.svg +1 -0
- package/ui/vendor-icons/DeepSeek.Color.svg +1 -0
- package/ui/vendor-icons/Flux.svg +1 -0
- package/ui/vendor-icons/Gemini.Color.svg +1 -0
- package/ui/vendor-icons/Hunyuan.Color.svg +1 -0
- package/ui/vendor-icons/Ideogram.svg +1 -0
- package/ui/vendor-icons/Jimeng.Color.svg +1 -0
- package/ui/vendor-icons/Midjourney.svg +1 -0
- package/ui/vendor-icons/Minimax.Color.svg +1 -0
- package/ui/vendor-icons/Moonshot.svg +1 -0
- package/ui/vendor-icons/OpenAI.svg +1 -0
- package/ui/vendor-icons/Qwen.Color.svg +1 -0
- package/ui/vendor-icons/XAI.svg +1 -0
- package/ui/vendor-icons/XiaomiMiMo.svg +1 -0
- package/ui/vendor-icons/Zhipu.Color.svg +1 -0
package/ui/style.css
CHANGED
|
@@ -303,42 +303,43 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
303
303
|
color: var(--muted);
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
/* ──
|
|
306
|
+
/* ── 标签页:整条圆角胶囊,内部按钮也是胶囊(照 neartoken 的 .tabs) ── */
|
|
307
307
|
|
|
308
308
|
.tabs {
|
|
309
|
-
display: flex;
|
|
310
|
-
|
|
309
|
+
display: inline-flex;
|
|
310
|
+
align-items: center;
|
|
311
|
+
gap: 4px;
|
|
312
|
+
max-width: 100%;
|
|
311
313
|
margin: 14px 0 0;
|
|
312
|
-
|
|
314
|
+
padding: 4px;
|
|
315
|
+
border: 1px solid var(--line);
|
|
316
|
+
border-radius: 999px;
|
|
317
|
+
background: var(--card);
|
|
313
318
|
overflow-x: auto;
|
|
314
319
|
scrollbar-width: none;
|
|
315
320
|
}
|
|
316
321
|
.tabs::-webkit-scrollbar { display: none; }
|
|
317
322
|
|
|
318
323
|
.tab {
|
|
319
|
-
|
|
320
|
-
min-height: 34px;
|
|
324
|
+
height: 28px;
|
|
321
325
|
padding: 0 14px;
|
|
322
326
|
border: 0;
|
|
323
|
-
border-radius:
|
|
327
|
+
border-radius: 999px;
|
|
324
328
|
background: transparent;
|
|
325
329
|
color: var(--muted);
|
|
326
330
|
font: inherit;
|
|
327
|
-
font-size:
|
|
331
|
+
font-size: 12px;
|
|
328
332
|
font-weight: 550;
|
|
329
333
|
cursor: pointer;
|
|
330
334
|
white-space: nowrap;
|
|
335
|
+
flex: none;
|
|
331
336
|
transition: color .12s ease, background-color .12s ease;
|
|
332
337
|
}
|
|
333
|
-
.tab:hover { color: var(--fg);
|
|
334
|
-
.tab[aria-selected="true"] {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
left: 8px; right: 8px; bottom: -1px;
|
|
339
|
-
height: 2px;
|
|
340
|
-
background: var(--accent);
|
|
341
|
-
border-radius: 2px 2px 0 0;
|
|
338
|
+
.tab:hover { color: var(--fg); }
|
|
339
|
+
.tab[aria-selected="true"] {
|
|
340
|
+
color: var(--fg);
|
|
341
|
+
background: var(--accent-soft);
|
|
342
|
+
box-shadow: inset 0 0 0 1px var(--accent);
|
|
342
343
|
}
|
|
343
344
|
|
|
344
345
|
/* ── 提示条 ─────────────────────────────────────────────── */
|
|
@@ -378,6 +379,13 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
378
379
|
|
|
379
380
|
.banner-close {
|
|
380
381
|
flex: none;
|
|
382
|
+
/* 命中区补到 24×24(WCAG 2.2 AA):15px 的字加 2px 内边距只有 19px 高,
|
|
383
|
+
手指点不准。用 min-* 扩命中区,视觉大小不变。 */
|
|
384
|
+
min-width: 24px;
|
|
385
|
+
min-height: 24px;
|
|
386
|
+
display: inline-flex;
|
|
387
|
+
align-items: center;
|
|
388
|
+
justify-content: center;
|
|
381
389
|
border: 0;
|
|
382
390
|
background: transparent;
|
|
383
391
|
color: var(--muted);
|
|
@@ -506,20 +514,22 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
506
514
|
font-variant-numeric: tabular-nums;
|
|
507
515
|
}
|
|
508
516
|
|
|
517
|
+
/* 分段控件(日 / 周 / 月):照 neartoken 的 .seg——外框 9px,选中项淡蓝底 + 内描边 */
|
|
509
518
|
.segmented {
|
|
510
519
|
margin-left: auto;
|
|
511
520
|
display: inline-flex;
|
|
521
|
+
gap: 2px;
|
|
512
522
|
padding: 2px;
|
|
513
|
-
border: 1px solid var(--line
|
|
514
|
-
border-radius:
|
|
523
|
+
border: 1px solid var(--line);
|
|
524
|
+
border-radius: 9px;
|
|
515
525
|
background: var(--sunken);
|
|
516
526
|
}
|
|
517
527
|
.segmented button {
|
|
518
528
|
min-height: 24px;
|
|
519
529
|
min-width: 34px;
|
|
520
|
-
padding: 0
|
|
530
|
+
padding: 0 10px;
|
|
521
531
|
border: 0;
|
|
522
|
-
border-radius:
|
|
532
|
+
border-radius: 7px;
|
|
523
533
|
background: transparent;
|
|
524
534
|
color: var(--muted);
|
|
525
535
|
font: inherit;
|
|
@@ -528,9 +538,10 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
528
538
|
}
|
|
529
539
|
.segmented button:hover { color: var(--fg); }
|
|
530
540
|
.segmented button[aria-pressed="true"] {
|
|
531
|
-
|
|
532
|
-
color: #fff;
|
|
541
|
+
color: var(--fg);
|
|
533
542
|
font-weight: 600;
|
|
543
|
+
background: var(--accent-soft);
|
|
544
|
+
box-shadow: inset 0 0 0 1px var(--accent);
|
|
534
545
|
}
|
|
535
546
|
|
|
536
547
|
.meta-row {
|
|
@@ -784,28 +795,80 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
784
795
|
}
|
|
785
796
|
.loading::after { content: "…"; }
|
|
786
797
|
|
|
787
|
-
/* ── 余额 /
|
|
798
|
+
/* ── 余额 / 用量:账户概览 + 数据概览(照 neartoken 的账户卡与看板) ── */
|
|
788
799
|
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
border-radius: var(--radius-sm);
|
|
792
|
-
padding: 11px 12px;
|
|
793
|
-
background: var(--sunken);
|
|
794
|
-
display: flex;
|
|
795
|
-
flex-direction: column;
|
|
796
|
-
gap: 8px;
|
|
797
|
-
}
|
|
798
|
-
.acct + .acct { margin-top: 9px; }
|
|
800
|
+
/* 余额页两张卡各自按内容定高:账户卡内容少时不要被拉出一截空白 */
|
|
801
|
+
.wallet-grid { align-items: start; }
|
|
799
802
|
|
|
800
|
-
|
|
801
|
-
.acct-
|
|
802
|
-
|
|
803
|
+
/* 账户概览:整页唯一的大数字 */
|
|
804
|
+
.acct-overview {
|
|
805
|
+
padding: 6px 0 12px;
|
|
806
|
+
}
|
|
807
|
+
.acct-overview + .acct-overview {
|
|
808
|
+
border-top: 1px solid var(--line);
|
|
809
|
+
padding-top: 14px;
|
|
810
|
+
}
|
|
811
|
+
.acct-main { display: flex; align-items: flex-start; gap: 12px; }
|
|
812
|
+
.acct-main .grow { flex: 1; min-width: 0; }
|
|
813
|
+
.money {
|
|
814
|
+
font-size: 34px;
|
|
815
|
+
line-height: 1.15;
|
|
816
|
+
font-weight: 620;
|
|
817
|
+
letter-spacing: -.02em;
|
|
818
|
+
font-variant-numeric: tabular-nums;
|
|
819
|
+
color: var(--fg);
|
|
820
|
+
}
|
|
821
|
+
.money .unit { font-size: 16px; font-weight: 500; color: var(--muted); margin-right: 2px; }
|
|
822
|
+
.money-note {
|
|
823
|
+
margin: 5px 0 0;
|
|
824
|
+
font-size: 11.5px;
|
|
825
|
+
color: var(--muted);
|
|
826
|
+
font-variant-numeric: tabular-nums;
|
|
827
|
+
}
|
|
828
|
+
.acct-hint {
|
|
829
|
+
flex: 0 1 260px;
|
|
830
|
+
font-size: 11px;
|
|
831
|
+
line-height: 1.5;
|
|
832
|
+
color: var(--warn);
|
|
833
|
+
}
|
|
803
834
|
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
835
|
+
/* 数据概览:三个数字 + 柱状条 */
|
|
836
|
+
.stats { display: flex; gap: 26px; margin: 2px 0 6px; flex-wrap: wrap; }
|
|
837
|
+
.stat .k { font-size: 11px; color: var(--muted); }
|
|
838
|
+
.stat .v {
|
|
839
|
+
font-size: 19px;
|
|
840
|
+
font-weight: 580;
|
|
841
|
+
font-variant-numeric: tabular-nums;
|
|
842
|
+
letter-spacing: -.01em;
|
|
808
843
|
}
|
|
844
|
+
.chart-bars {
|
|
845
|
+
display: flex;
|
|
846
|
+
align-items: flex-end;
|
|
847
|
+
gap: 2px;
|
|
848
|
+
height: 118px;
|
|
849
|
+
margin: 8px 0 12px;
|
|
850
|
+
padding-bottom: 1px;
|
|
851
|
+
border-bottom: 1px solid var(--line);
|
|
852
|
+
}
|
|
853
|
+
.chart-bars .bar {
|
|
854
|
+
flex: 1;
|
|
855
|
+
min-width: 2px;
|
|
856
|
+
min-height: 2px;
|
|
857
|
+
border-radius: 2px 2px 0 0;
|
|
858
|
+
background: color-mix(in srgb, var(--accent) 62%, transparent);
|
|
859
|
+
transition: background-color .12s ease;
|
|
860
|
+
}
|
|
861
|
+
.chart-bars .bar:hover { background: var(--accent); }
|
|
862
|
+
.chart-empty {
|
|
863
|
+
margin: 10px 0 14px;
|
|
864
|
+
padding: 18px 12px;
|
|
865
|
+
font-size: 12px;
|
|
866
|
+
color: var(--muted);
|
|
867
|
+
text-align: center;
|
|
868
|
+
border: 1px dashed var(--line);
|
|
869
|
+
border-radius: var(--radius-sm);
|
|
870
|
+
}
|
|
871
|
+
|
|
809
872
|
.fig { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
|
|
810
873
|
.fig-k { font-size: 11px; color: var(--muted); }
|
|
811
874
|
.fig-v {
|
|
@@ -818,20 +881,6 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
818
881
|
.fig-v.big { font-size: 19px; }
|
|
819
882
|
.fig-v.pos { color: var(--ok); }
|
|
820
883
|
|
|
821
|
-
.summary-row {
|
|
822
|
-
display: grid;
|
|
823
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
824
|
-
gap: 10px;
|
|
825
|
-
margin-bottom: 12px;
|
|
826
|
-
}
|
|
827
|
-
.summary-box {
|
|
828
|
-
border: 1px solid var(--line);
|
|
829
|
-
border-radius: var(--radius-sm);
|
|
830
|
-
background: var(--sunken);
|
|
831
|
-
padding: 9px 11px;
|
|
832
|
-
}
|
|
833
|
-
.summary-box .fig-v { font-size: 17px; }
|
|
834
|
-
|
|
835
884
|
.range-note { font-size: 11.5px; color: var(--muted); margin: 0 0 10px; }
|
|
836
885
|
|
|
837
886
|
/* ── 表单 ───────────────────────────────────────────────── */
|
|
@@ -915,7 +964,13 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
915
964
|
|
|
916
965
|
.row-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; }
|
|
917
966
|
|
|
918
|
-
/* ── 抽屉(单模型详情) ───────────────────────────────────
|
|
967
|
+
/* ── 抽屉(单模型详情) ───────────────────────────────────
|
|
968
|
+
*
|
|
969
|
+
* 排版原则:**说明用无衬线、数字与标识符才用等宽**。
|
|
970
|
+
* 之前 `.kv-grid dd` 把所有值都设成等宽,中文值(如「对话」)就掉进
|
|
971
|
+
* 等宽字体的 CJK 回退字形里,看起来像乱码;这里只给真正需要对齐的
|
|
972
|
+
* 数字加 `.mono`。
|
|
973
|
+
*/
|
|
919
974
|
|
|
920
975
|
.drawer { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
|
|
921
976
|
.drawer[hidden] { display: none; }
|
|
@@ -932,7 +987,7 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
932
987
|
|
|
933
988
|
.drawer-panel {
|
|
934
989
|
position: relative;
|
|
935
|
-
width: min(
|
|
990
|
+
width: min(820px, calc(100vw - 32px));
|
|
936
991
|
max-height: calc(100vh - 64px);
|
|
937
992
|
/* 抽屉内部滚到底不应把滚动传给背后的页面 */
|
|
938
993
|
overscroll-behavior: contain;
|
|
@@ -947,17 +1002,74 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
947
1002
|
|
|
948
1003
|
.drawer-head {
|
|
949
1004
|
display: flex;
|
|
950
|
-
align-items:
|
|
951
|
-
gap:
|
|
1005
|
+
align-items: center;
|
|
1006
|
+
gap: 11px;
|
|
952
1007
|
padding: 13px 16px;
|
|
953
1008
|
border-bottom: 1px solid var(--line);
|
|
954
1009
|
}
|
|
955
|
-
.
|
|
956
|
-
.
|
|
957
|
-
.
|
|
958
|
-
.drawer-
|
|
959
|
-
|
|
960
|
-
|
|
1010
|
+
.dh-icon { width: 30px; height: 30px; flex: none; border-radius: 8px; }
|
|
1011
|
+
.dh-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
|
|
1012
|
+
.dh-main { flex: 1; min-width: 0; }
|
|
1013
|
+
.drawer-head h2 {
|
|
1014
|
+
margin: 0;
|
|
1015
|
+
font-size: 14.5px;
|
|
1016
|
+
font-weight: 650;
|
|
1017
|
+
overflow: hidden;
|
|
1018
|
+
text-overflow: ellipsis;
|
|
1019
|
+
white-space: nowrap;
|
|
1020
|
+
}
|
|
1021
|
+
.drawer-sub {
|
|
1022
|
+
margin: 2px 0 0;
|
|
1023
|
+
font-size: 11.5px;
|
|
1024
|
+
color: var(--muted);
|
|
1025
|
+
display: flex;
|
|
1026
|
+
align-items: center;
|
|
1027
|
+
gap: 6px;
|
|
1028
|
+
flex-wrap: wrap;
|
|
1029
|
+
}
|
|
1030
|
+
.drawer-head .btn { flex: none; }
|
|
1031
|
+
.drawer-head .actions { display: flex; gap: 8px; flex: none; }
|
|
1032
|
+
|
|
1033
|
+
.drawer-body {
|
|
1034
|
+
padding: 15px 16px 20px;
|
|
1035
|
+
overflow-y: auto;
|
|
1036
|
+
display: flex;
|
|
1037
|
+
flex-direction: column;
|
|
1038
|
+
gap: 16px;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
/* 首屏价签:详情页里最该被先看到的东西 */
|
|
1042
|
+
.dtl-prices {
|
|
1043
|
+
display: grid;
|
|
1044
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1045
|
+
gap: 8px;
|
|
1046
|
+
}
|
|
1047
|
+
.dtl-prices.one { grid-template-columns: minmax(0, 1fr); }
|
|
1048
|
+
.dtl-price {
|
|
1049
|
+
display: flex;
|
|
1050
|
+
flex-direction: column;
|
|
1051
|
+
gap: 3px;
|
|
1052
|
+
min-width: 0;
|
|
1053
|
+
padding: 10px 12px;
|
|
1054
|
+
border: 1px solid var(--line);
|
|
1055
|
+
border-radius: var(--radius-sm);
|
|
1056
|
+
background: var(--sunken);
|
|
1057
|
+
}
|
|
1058
|
+
.dtl-price span { font-size: 10.5px; color: var(--muted); }
|
|
1059
|
+
.dtl-price b {
|
|
1060
|
+
font-family: var(--code);
|
|
1061
|
+
font-size: 16px;
|
|
1062
|
+
font-weight: 650;
|
|
1063
|
+
font-variant-numeric: tabular-nums;
|
|
1064
|
+
overflow: hidden;
|
|
1065
|
+
text-overflow: ellipsis;
|
|
1066
|
+
white-space: nowrap;
|
|
1067
|
+
}
|
|
1068
|
+
.dtl-price.is-unknown b { font-family: inherit; font-size: 13px; color: var(--warn); }
|
|
1069
|
+
|
|
1070
|
+
.dtl-section { display: flex; flex-direction: column; gap: 9px; }
|
|
1071
|
+
.dtl-h3 {
|
|
1072
|
+
margin: 0;
|
|
961
1073
|
font-size: 12px;
|
|
962
1074
|
font-weight: 650;
|
|
963
1075
|
color: var(--muted);
|
|
@@ -967,11 +1079,54 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
967
1079
|
.kv-grid {
|
|
968
1080
|
display: grid;
|
|
969
1081
|
grid-template-columns: max-content minmax(0, 1fr);
|
|
970
|
-
gap:
|
|
1082
|
+
gap: 7px 16px;
|
|
1083
|
+
margin: 0;
|
|
971
1084
|
font-size: 12.5px;
|
|
972
1085
|
}
|
|
973
1086
|
.kv-grid dt { color: var(--muted); font-size: 11.5px; }
|
|
974
|
-
.kv-grid dd { margin: 0;
|
|
1087
|
+
.kv-grid dd { margin: 0; word-break: break-word; }
|
|
1088
|
+
.kv-grid dd.mono { font-family: var(--code); font-variant-numeric: tabular-nums; }
|
|
1089
|
+
|
|
1090
|
+
/* 计费因子的解释:一条一句,读得懂比排版花哨重要 */
|
|
1091
|
+
.dtl-facts {
|
|
1092
|
+
margin: 0;
|
|
1093
|
+
padding: 0;
|
|
1094
|
+
list-style: none;
|
|
1095
|
+
display: flex;
|
|
1096
|
+
flex-direction: column;
|
|
1097
|
+
gap: 6px;
|
|
1098
|
+
font-size: 12px;
|
|
1099
|
+
line-height: 1.65;
|
|
1100
|
+
color: var(--fg);
|
|
1101
|
+
}
|
|
1102
|
+
.dtl-facts li { display: flex; gap: 7px; }
|
|
1103
|
+
.dtl-facts li::before {
|
|
1104
|
+
content: "·";
|
|
1105
|
+
flex: none;
|
|
1106
|
+
color: var(--accent);
|
|
1107
|
+
font-weight: 700;
|
|
1108
|
+
}
|
|
1109
|
+
.dtl-facts code { font-size: 11px; }
|
|
1110
|
+
|
|
1111
|
+
/* 原始表达式默认折叠:它是证据,不是正文 */
|
|
1112
|
+
.raw {
|
|
1113
|
+
border: 1px solid var(--line);
|
|
1114
|
+
border-radius: var(--radius-sm);
|
|
1115
|
+
background: var(--sunken);
|
|
1116
|
+
overflow: hidden;
|
|
1117
|
+
}
|
|
1118
|
+
.raw summary {
|
|
1119
|
+
padding: 8px 11px;
|
|
1120
|
+
font-size: 11.5px;
|
|
1121
|
+
color: var(--muted);
|
|
1122
|
+
cursor: pointer;
|
|
1123
|
+
list-style: none;
|
|
1124
|
+
}
|
|
1125
|
+
.raw summary::-webkit-details-marker { display: none; }
|
|
1126
|
+
.raw summary::before { content: "▸ "; color: var(--accent); }
|
|
1127
|
+
.raw[open] summary::before { content: "▾ "; }
|
|
1128
|
+
.raw summary:hover { color: var(--fg); }
|
|
1129
|
+
.raw .expr { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
|
|
975
1130
|
|
|
976
1131
|
.expr {
|
|
977
1132
|
margin: 0;
|
|
@@ -988,6 +1143,20 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
988
1143
|
overflow: auto;
|
|
989
1144
|
}
|
|
990
1145
|
|
|
1146
|
+
/* 详情里的标签:分组 / 类型 / 服务档 */
|
|
1147
|
+
.tag-chip {
|
|
1148
|
+
display: inline-flex;
|
|
1149
|
+
align-items: center;
|
|
1150
|
+
gap: 4px;
|
|
1151
|
+
padding: 1px 7px;
|
|
1152
|
+
font-size: 10.5px;
|
|
1153
|
+
color: var(--fg);
|
|
1154
|
+
border: 1px solid var(--line-strong);
|
|
1155
|
+
border-radius: 999px;
|
|
1156
|
+
background: var(--card);
|
|
1157
|
+
}
|
|
1158
|
+
.tag-chip .ratio { font-family: var(--code); font-size: 10px; color: var(--muted); }
|
|
1159
|
+
|
|
991
1160
|
/* ── 页脚 ───────────────────────────────────────────────── */
|
|
992
1161
|
|
|
993
1162
|
.foot {
|
|
@@ -1039,8 +1208,13 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
1039
1208
|
|
|
1040
1209
|
/* ── 模型广场:筛选栏 + 卡片网格 ────────────────────────────
|
|
1041
1210
|
*
|
|
1042
|
-
*
|
|
1043
|
-
*
|
|
1211
|
+
* 结构照 NearToken 的模型广场:左侧固定筛选栏(分组 / 厂商),右侧是
|
|
1212
|
+
* 搜索 + 分段控件 + 分组横幅 + 双列卡片。两处服务的是同一件事——在一两百
|
|
1213
|
+
* 个模型里比价格——所以信息位顺序也保持一致:
|
|
1214
|
+
*
|
|
1215
|
+
* 厂商图标 / 名称 → 说明 → 计费方式 → 三格价格 → 分组 → 端点 → 详情
|
|
1216
|
+
*
|
|
1217
|
+
* 等高靠三处配合,缺一不可:
|
|
1044
1218
|
* .model-grid 的 align-items: stretch
|
|
1045
1219
|
* .mc 的 display:flex; flex-direction:column
|
|
1046
1220
|
* .mc-foot 的 margin-top:auto
|
|
@@ -1048,8 +1222,8 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
1048
1222
|
|
|
1049
1223
|
.market-body {
|
|
1050
1224
|
display: grid;
|
|
1051
|
-
grid-template-columns:
|
|
1052
|
-
gap:
|
|
1225
|
+
grid-template-columns: 216px minmax(0, 1fr);
|
|
1226
|
+
gap: 16px;
|
|
1053
1227
|
/* 这一层可以 start:侧栏本来就该比主区短,不该被拉到与列表等高 */
|
|
1054
1228
|
align-items: start;
|
|
1055
1229
|
}
|
|
@@ -1063,34 +1237,49 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
1063
1237
|
border: 1px solid var(--line);
|
|
1064
1238
|
border-radius: var(--radius);
|
|
1065
1239
|
background: var(--sunken);
|
|
1240
|
+
scrollbar-width: thin;
|
|
1066
1241
|
}
|
|
1067
1242
|
.ma-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
|
|
1068
1243
|
.ma-head :is(h2, h3) { margin: 0; font-size: 12.5px; font-weight: 600; }
|
|
1069
|
-
.ma-note { margin:
|
|
1070
|
-
.market-aside
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1244
|
+
.ma-note { margin: 5px 0 2px; font-size: 11px; line-height: 1.55; color: var(--muted); }
|
|
1245
|
+
.market-aside h4 {
|
|
1246
|
+
display: flex;
|
|
1247
|
+
align-items: baseline;
|
|
1248
|
+
justify-content: space-between;
|
|
1249
|
+
gap: 6px;
|
|
1250
|
+
margin: 14px 0 7px;
|
|
1251
|
+
font-size: 10.5px;
|
|
1252
|
+
font-weight: 650;
|
|
1253
|
+
letter-spacing: .04em;
|
|
1074
1254
|
color: var(--muted);
|
|
1075
1255
|
}
|
|
1256
|
+
.market-aside h4 .h4-count {
|
|
1257
|
+
font-family: var(--code);
|
|
1258
|
+
font-size: 10px;
|
|
1259
|
+
font-weight: 600;
|
|
1260
|
+
letter-spacing: 0;
|
|
1261
|
+
}
|
|
1076
1262
|
|
|
1077
|
-
.market-chips { display: flex; flex-direction: column; gap:
|
|
1078
|
-
.market-chips.chips-row { flex-direction: row; flex-wrap: wrap; }
|
|
1263
|
+
.market-chips { display: flex; flex-direction: column; gap: 4px; }
|
|
1264
|
+
.market-chips.chips-row { flex-direction: row; flex-wrap: wrap; gap: 5px; }
|
|
1079
1265
|
|
|
1266
|
+
/* 胶囊:照 neartoken 的 .market-chip —— 999px 圆角、25px 高、10.5px 字 */
|
|
1080
1267
|
.market-chip {
|
|
1081
|
-
display: flex;
|
|
1268
|
+
display: inline-flex;
|
|
1082
1269
|
align-items: center;
|
|
1083
|
-
gap:
|
|
1270
|
+
gap: 5px;
|
|
1084
1271
|
min-width: 0;
|
|
1085
|
-
|
|
1272
|
+
min-height: 25px;
|
|
1273
|
+
padding: 0 8px;
|
|
1086
1274
|
font: inherit;
|
|
1087
|
-
font-size:
|
|
1275
|
+
font-size: 10.5px;
|
|
1088
1276
|
color: var(--muted);
|
|
1089
1277
|
background: transparent;
|
|
1090
1278
|
border: 1px solid var(--line);
|
|
1091
|
-
border-radius:
|
|
1279
|
+
border-radius: 999px;
|
|
1092
1280
|
cursor: pointer;
|
|
1093
1281
|
text-align: left;
|
|
1282
|
+
white-space: nowrap;
|
|
1094
1283
|
transition: color .12s ease, border-color .12s ease, background .12s ease;
|
|
1095
1284
|
}
|
|
1096
1285
|
.market-chip:hover { color: var(--fg); border-color: var(--line-strong); }
|
|
@@ -1100,21 +1289,266 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
1100
1289
|
background: var(--accent-soft);
|
|
1101
1290
|
}
|
|
1102
1291
|
.market-chip .chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1103
|
-
.market-chip .
|
|
1104
|
-
|
|
1105
|
-
|
|
1292
|
+
.market-chip .chip-count {
|
|
1293
|
+
margin-left: auto;
|
|
1294
|
+
padding-left: 6px;
|
|
1295
|
+
font-family: var(--code);
|
|
1296
|
+
font-size: 10px;
|
|
1297
|
+
color: var(--muted);
|
|
1298
|
+
}
|
|
1299
|
+
.market-chip[aria-pressed="true"] .chip-count { color: var(--fg); }
|
|
1300
|
+
|
|
1301
|
+
/* 小标签统一成 neartoken「低价」那一种:同尺寸、4px 圆角、白字、一圈淡描边,只换底色 */
|
|
1302
|
+
.gb-tag {
|
|
1303
|
+
display: inline-flex;
|
|
1304
|
+
align-items: center;
|
|
1305
|
+
justify-content: center;
|
|
1306
|
+
flex: none;
|
|
1307
|
+
/* 定宽 + 居中:0.06× / 0.10× / 1.20× 长度一样,右边组名才对得齐 */
|
|
1308
|
+
min-width: 36px;
|
|
1309
|
+
padding: 0 3px;
|
|
1310
|
+
font-family: var(--code);
|
|
1311
|
+
font-size: 9px;
|
|
1312
|
+
line-height: 1.5;
|
|
1313
|
+
font-weight: 700;
|
|
1314
|
+
color: #fff;
|
|
1315
|
+
border-radius: 3px;
|
|
1316
|
+
box-shadow: 0 0 0 1px rgba(255, 255, 255, .28);
|
|
1317
|
+
}
|
|
1318
|
+
.gb-tag.green { background: #2f8f68; }
|
|
1319
|
+
.gb-tag.blue { background: #3f6fa8; }
|
|
1320
|
+
.gb-tag.gold { background: #b58a2b; }
|
|
1321
|
+
.gb-tag.red { background: #b0475c; }
|
|
1322
|
+
.gb-tag.plain { background: #5a6270; }
|
|
1323
|
+
|
|
1324
|
+
/* 供应商 chip:16px 品牌图标 + 名称 + 数量 */
|
|
1325
|
+
.market-chip .vendor-icon {
|
|
1326
|
+
width: 16px;
|
|
1327
|
+
height: 16px;
|
|
1328
|
+
flex: none;
|
|
1329
|
+
object-fit: contain;
|
|
1330
|
+
border-radius: 3px;
|
|
1331
|
+
}
|
|
1332
|
+
.market-chip .vendor-letter {
|
|
1333
|
+
display: inline-flex;
|
|
1334
|
+
align-items: center;
|
|
1335
|
+
justify-content: center;
|
|
1336
|
+
width: 16px;
|
|
1337
|
+
height: 16px;
|
|
1338
|
+
flex: none;
|
|
1339
|
+
border-radius: 4px;
|
|
1340
|
+
font-size: 9px;
|
|
1341
|
+
font-weight: 700;
|
|
1342
|
+
color: var(--muted);
|
|
1343
|
+
background: var(--card-hover);
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
/* 分组归类:分类标题是一行小字 + 计数(照 neartoken 的 chip-group-name),点一下筛选整类 */
|
|
1347
|
+
.cat-head {
|
|
1348
|
+
display: flex;
|
|
1349
|
+
align-items: center;
|
|
1350
|
+
gap: 6px;
|
|
1351
|
+
width: 100%;
|
|
1352
|
+
margin-top: 14px;
|
|
1353
|
+
padding: 0 2px 4px;
|
|
1354
|
+
font: inherit;
|
|
1355
|
+
font-size: 11px;
|
|
1356
|
+
font-weight: 700;
|
|
1357
|
+
letter-spacing: .04em;
|
|
1358
|
+
color: var(--muted);
|
|
1359
|
+
background: transparent;
|
|
1360
|
+
border: 0;
|
|
1361
|
+
border-bottom: 1px solid var(--line);
|
|
1362
|
+
cursor: pointer;
|
|
1363
|
+
text-align: left;
|
|
1364
|
+
}
|
|
1365
|
+
.cat-head:hover { color: var(--fg); border-bottom-color: var(--line-strong); }
|
|
1366
|
+
.cat-head[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent-line); }
|
|
1367
|
+
.cat-icon { width: 14px; height: 14px; flex: none; object-fit: contain; }
|
|
1368
|
+
.cat-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1369
|
+
.cat-count { font-family: var(--code); font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
|
|
1370
|
+
|
|
1371
|
+
.cat-chips { display: flex; flex-direction: column; gap: 4px; margin-top: 7px; }
|
|
1372
|
+
.market-chip.group-chip { justify-content: flex-start; }
|
|
1373
|
+
.market-chip.group-chip .chip-name { flex: 1; }
|
|
1374
|
+
|
|
1375
|
+
/* 详情:条件乘数 */
|
|
1376
|
+
.mult-list { display: flex; flex-direction: column; gap: 6px; }
|
|
1377
|
+
.mult-row {
|
|
1378
|
+
display: flex;
|
|
1379
|
+
align-items: center;
|
|
1380
|
+
justify-content: space-between;
|
|
1381
|
+
gap: 10px;
|
|
1382
|
+
padding: 8px 11px;
|
|
1383
|
+
border: 1px solid var(--line);
|
|
1384
|
+
border-radius: var(--radius-sm);
|
|
1385
|
+
background: var(--sunken);
|
|
1386
|
+
font-size: 12px;
|
|
1387
|
+
}
|
|
1388
|
+
.mult-when { min-width: 0; overflow-wrap: anywhere; color: var(--fg); }
|
|
1389
|
+
.mult-when { font-family: var(--code); font-size: 11.5px; }
|
|
1390
|
+
.mult-pill {
|
|
1391
|
+
flex: none;
|
|
1392
|
+
padding: 2px 8px;
|
|
1393
|
+
font-family: var(--code);
|
|
1394
|
+
font-size: 12px;
|
|
1395
|
+
font-weight: 700;
|
|
1396
|
+
color: var(--warn);
|
|
1397
|
+
background: color-mix(in srgb, var(--warn) 16%, transparent);
|
|
1398
|
+
border-radius: 999px;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
/* 详情:按分组定价 */
|
|
1402
|
+
.sib-group { display: inline-flex; align-items: center; gap: 6px; }
|
|
1403
|
+
.sib-group.is-current { color: var(--fg); font-weight: 600; }
|
|
1404
|
+
.sib-now {
|
|
1405
|
+
padding: 0 5px;
|
|
1406
|
+
font-size: 9.5px;
|
|
1407
|
+
color: var(--accent);
|
|
1408
|
+
border: 1px solid var(--accent-line);
|
|
1409
|
+
border-radius: 999px;
|
|
1410
|
+
}
|
|
1106
1411
|
|
|
1107
|
-
.market-
|
|
1412
|
+
/* 分段控件:照 neartoken 的 .market-seg(28px 高、9px 圆角、内部分隔线) */
|
|
1413
|
+
.market-seg {
|
|
1414
|
+
display: inline-flex;
|
|
1415
|
+
flex: none;
|
|
1416
|
+
border: 1px solid var(--line);
|
|
1417
|
+
border-radius: 9px;
|
|
1418
|
+
overflow: hidden;
|
|
1419
|
+
background: var(--sunken);
|
|
1420
|
+
}
|
|
1421
|
+
.market-seg button {
|
|
1422
|
+
display: inline-flex;
|
|
1423
|
+
align-items: center;
|
|
1424
|
+
gap: 5px;
|
|
1425
|
+
height: 28px;
|
|
1426
|
+
padding: 0 9px;
|
|
1427
|
+
font: inherit;
|
|
1428
|
+
font-size: 11.5px;
|
|
1429
|
+
color: var(--muted);
|
|
1430
|
+
background: transparent;
|
|
1431
|
+
border: 0;
|
|
1432
|
+
cursor: pointer;
|
|
1433
|
+
white-space: nowrap;
|
|
1434
|
+
}
|
|
1435
|
+
.market-seg button + button { border-left: 1px solid var(--line); }
|
|
1436
|
+
.market-seg button:hover { color: var(--fg); background: var(--card); }
|
|
1437
|
+
.market-seg button[aria-pressed="true"] { color: var(--fg); background: var(--accent-soft); }
|
|
1438
|
+
.market-seg .seg-count { font-family: var(--code); font-size: 10px; color: var(--muted); }
|
|
1439
|
+
.market-seg button[aria-pressed="true"] .seg-count { color: var(--accent); }
|
|
1440
|
+
/* 视图切换用符号,压窄一点 */
|
|
1441
|
+
#view-seg button { padding: 0 8px; font-size: 12px; }
|
|
1442
|
+
|
|
1443
|
+
.market-main {
|
|
1444
|
+
min-width: 0;
|
|
1445
|
+
/* 卡片列宽由主区宽度决定:窄到放不下两列就自动变一列,不用媒体查询猜窗口宽度。
|
|
1446
|
+
container-type 必须放在祖先上——容器查询查的是「容纳这个元素的容器」。 */
|
|
1447
|
+
container-type: inline-size;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
/* 顶部工具条:整条一个圆角容器,搜索在左、工具在右(照 neartoken) */
|
|
1108
1451
|
.market-top {
|
|
1109
1452
|
display: flex;
|
|
1110
1453
|
align-items: center;
|
|
1111
1454
|
gap: 10px;
|
|
1112
1455
|
flex-wrap: wrap;
|
|
1456
|
+
padding: 9px 11px;
|
|
1113
1457
|
margin-bottom: 10px;
|
|
1458
|
+
border: 1px solid var(--line);
|
|
1459
|
+
border-radius: 12px;
|
|
1460
|
+
background: var(--card);
|
|
1461
|
+
}
|
|
1462
|
+
.market-search {
|
|
1463
|
+
flex: 1 1 240px;
|
|
1464
|
+
min-width: 160px;
|
|
1465
|
+
height: 30px;
|
|
1466
|
+
padding: 0 10px;
|
|
1467
|
+
font: inherit;
|
|
1468
|
+
font-size: 12px;
|
|
1469
|
+
color: var(--fg);
|
|
1470
|
+
border: 1px solid var(--line);
|
|
1471
|
+
border-radius: 9px;
|
|
1472
|
+
background: var(--sunken);
|
|
1473
|
+
}
|
|
1474
|
+
.market-search::placeholder { color: var(--muted); }
|
|
1475
|
+
.market-search:focus { outline: 1px solid var(--accent); outline-offset: 0; }
|
|
1476
|
+
.market-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: none; }
|
|
1477
|
+
/* 下拉/按钮沿用同一条工具的高度与圆角 */
|
|
1478
|
+
.market-tool {
|
|
1479
|
+
flex: none;
|
|
1480
|
+
width: auto;
|
|
1481
|
+
max-width: 190px;
|
|
1482
|
+
height: 28px;
|
|
1483
|
+
padding: 0 8px;
|
|
1484
|
+
font: inherit;
|
|
1485
|
+
font-size: 11.5px;
|
|
1486
|
+
color: var(--muted);
|
|
1487
|
+
background: var(--sunken);
|
|
1488
|
+
border: 1px solid var(--line);
|
|
1489
|
+
border-radius: 9px;
|
|
1114
1490
|
}
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
.
|
|
1491
|
+
|
|
1492
|
+
/* 下拉菜单:自绘的弹层,跟页面同一套底色与圆角(原生 select 的弹层画系统白底) */
|
|
1493
|
+
.menu { position: relative; flex: none; }
|
|
1494
|
+
.menu-trigger {
|
|
1495
|
+
display: inline-flex;
|
|
1496
|
+
align-items: center;
|
|
1497
|
+
gap: 6px;
|
|
1498
|
+
cursor: pointer;
|
|
1499
|
+
}
|
|
1500
|
+
.menu-caret { font-size: 9px; color: var(--muted); }
|
|
1501
|
+
.menu-pop {
|
|
1502
|
+
position: absolute;
|
|
1503
|
+
z-index: 30;
|
|
1504
|
+
top: calc(100% + 6px);
|
|
1505
|
+
right: 0;
|
|
1506
|
+
min-width: 164px;
|
|
1507
|
+
padding: 4px;
|
|
1508
|
+
display: flex;
|
|
1509
|
+
flex-direction: column;
|
|
1510
|
+
gap: 2px;
|
|
1511
|
+
background: var(--bg);
|
|
1512
|
+
border: 1px solid var(--line-strong);
|
|
1513
|
+
border-radius: 10px;
|
|
1514
|
+
box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
|
|
1515
|
+
}
|
|
1516
|
+
.menu-pop[hidden] { display: none; }
|
|
1517
|
+
.menu-pop [role="option"] {
|
|
1518
|
+
padding: 7px 9px;
|
|
1519
|
+
font: inherit;
|
|
1520
|
+
font-size: 12px;
|
|
1521
|
+
text-align: left;
|
|
1522
|
+
color: var(--fg);
|
|
1523
|
+
background: transparent;
|
|
1524
|
+
border: 0;
|
|
1525
|
+
border-radius: 7px;
|
|
1526
|
+
cursor: pointer;
|
|
1527
|
+
white-space: nowrap;
|
|
1528
|
+
}
|
|
1529
|
+
.menu-pop [role="option"]:hover { background: var(--card-hover); }
|
|
1530
|
+
.menu-pop [role="option"][aria-selected="true"] { color: var(--accent); background: var(--accent-soft); }
|
|
1531
|
+
|
|
1532
|
+
/* 选中分组时的横幅:分组名 + 倍率 + 站点说明,横跨模型区顶部 */
|
|
1533
|
+
.group-banner {
|
|
1534
|
+
margin: 0 0 12px;
|
|
1535
|
+
padding: 10px 13px;
|
|
1536
|
+
border: 1px solid var(--line);
|
|
1537
|
+
border-radius: var(--radius);
|
|
1538
|
+
background: var(--card);
|
|
1539
|
+
}
|
|
1540
|
+
.gb-head {
|
|
1541
|
+
display: flex;
|
|
1542
|
+
align-items: center;
|
|
1543
|
+
gap: 8px;
|
|
1544
|
+
flex-wrap: wrap;
|
|
1545
|
+
min-width: 0;
|
|
1546
|
+
}
|
|
1547
|
+
.gb-name { font-size: 13px; font-weight: 650; }
|
|
1548
|
+
.gb-ratio { font-family: var(--code); font-size: 11px; color: var(--muted); }
|
|
1549
|
+
.gb-count { font-family: var(--code); font-size: 11px; color: var(--muted); }
|
|
1550
|
+
.gb-note { margin: 6px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
|
|
1551
|
+
.gb-actions { margin-left: auto; }
|
|
1118
1552
|
|
|
1119
1553
|
.market-count {
|
|
1120
1554
|
display: flex;
|
|
@@ -1132,12 +1566,102 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
1132
1566
|
display: grid;
|
|
1133
1567
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1134
1568
|
gap: 10px;
|
|
1135
|
-
|
|
1569
|
+
/* 卡片高度由内容决定:拉伸的话,同排卡片会被最高的那张撑高,
|
|
1570
|
+
中间就空出一段——这正是「详情没挪上去」的来源。 */
|
|
1571
|
+
align-items: start;
|
|
1136
1572
|
}
|
|
1137
1573
|
/* 空态与加载态要占满整行,否则会缩成半宽的一格 */
|
|
1138
1574
|
.model-grid > .empty,
|
|
1139
1575
|
.model-grid > .loading { grid-column: 1 / -1; margin: 0; }
|
|
1140
1576
|
|
|
1577
|
+
/* 列表视图:整表样式(照 neartoken 的 as-list:七列 + 行 hover + 整行可点) */
|
|
1578
|
+
.model-grid.as-list {
|
|
1579
|
+
display: flex;
|
|
1580
|
+
flex-direction: column;
|
|
1581
|
+
gap: 0;
|
|
1582
|
+
border: 1px solid var(--line);
|
|
1583
|
+
border-radius: 12px;
|
|
1584
|
+
overflow: hidden;
|
|
1585
|
+
background: var(--sunken);
|
|
1586
|
+
}
|
|
1587
|
+
.model-grid.as-list .ml-head,
|
|
1588
|
+
.model-grid.as-list .ml-row {
|
|
1589
|
+
display: grid;
|
|
1590
|
+
grid-template-columns: 1.5fr .75fr 1.25fr .8fr 1fr .9fr 1.25fr;
|
|
1591
|
+
align-items: center;
|
|
1592
|
+
gap: 10px;
|
|
1593
|
+
padding: 9px 14px;
|
|
1594
|
+
}
|
|
1595
|
+
.model-grid.as-list .ml-head {
|
|
1596
|
+
border-bottom: 1px solid var(--line);
|
|
1597
|
+
font-size: 10.5px;
|
|
1598
|
+
color: var(--muted);
|
|
1599
|
+
}
|
|
1600
|
+
.model-grid.as-list .ml-head > span { white-space: nowrap; }
|
|
1601
|
+
.model-grid.as-list .ml-row {
|
|
1602
|
+
border-bottom: 1px solid var(--line);
|
|
1603
|
+
cursor: pointer;
|
|
1604
|
+
transition: background-color .12s;
|
|
1605
|
+
}
|
|
1606
|
+
.model-grid.as-list .ml-row:last-child { border-bottom: 0; }
|
|
1607
|
+
.model-grid.as-list .ml-row:hover { background: var(--card-hover); }
|
|
1608
|
+
.model-grid.as-list .ml-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
|
|
1609
|
+
.model-grid.as-list .ml-cell { min-width: 0; font-size: 11.5px; overflow: hidden; }
|
|
1610
|
+
|
|
1611
|
+
.model-grid.as-list .ml-model { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); }
|
|
1612
|
+
.model-grid.as-list .ml-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
|
|
1613
|
+
.model-grid.as-list .ml-kind {
|
|
1614
|
+
flex: none;
|
|
1615
|
+
padding: 0 5px;
|
|
1616
|
+
font-size: 9px;
|
|
1617
|
+
color: var(--muted);
|
|
1618
|
+
border: 1px solid var(--line);
|
|
1619
|
+
border-radius: 999px;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
.model-grid.as-list .ml-type { font-size: 11px; white-space: nowrap; }
|
|
1623
|
+
.model-grid.as-list .ml-type.dyn { color: var(--warn); }
|
|
1624
|
+
.model-grid.as-list .ml-type.flat { color: var(--accent); }
|
|
1625
|
+
.model-grid.as-list .ml-type.call { color: var(--ok); }
|
|
1626
|
+
.model-grid.as-list .ml-type.auto,
|
|
1627
|
+
.model-grid.as-list .ml-type.unknown { color: var(--muted); }
|
|
1628
|
+
|
|
1629
|
+
/* 价格:上行「输入 X 输出 Y」,下行单位 */
|
|
1630
|
+
.model-grid.as-list .ml-price { display: flex; flex-direction: column; gap: 2px; line-height: 17px; white-space: nowrap; }
|
|
1631
|
+
.model-grid.as-list .ml-p-line { display: inline-flex; align-items: baseline; gap: 5px; }
|
|
1632
|
+
.model-grid.as-list .ml-p-k { font-size: 10.5px; color: var(--muted); }
|
|
1633
|
+
.model-grid.as-list .ml-p-v { font-size: 11.5px; color: var(--fg); font-variant-numeric: tabular-nums; margin-right: 10px; }
|
|
1634
|
+
.model-grid.as-list .ml-p-unit,
|
|
1635
|
+
.model-grid.as-list .ml-c-unit { font-size: 9.5px; color: var(--muted); }
|
|
1636
|
+
|
|
1637
|
+
/* 缓存:上行金额,下行 / 1M */
|
|
1638
|
+
.model-grid.as-list .ml-cache { display: flex; flex-direction: column; gap: 2px; line-height: 17px; white-space: nowrap; }
|
|
1639
|
+
.model-grid.as-list .ml-c-v { font-size: 11.5px; color: var(--fg); font-variant-numeric: tabular-nums; }
|
|
1640
|
+
|
|
1641
|
+
.model-grid.as-list .ml-vendor { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); }
|
|
1642
|
+
.model-grid.as-list .ml-vendor > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1643
|
+
|
|
1644
|
+
.model-grid.as-list .ml-ends { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 6px; white-space: nowrap; }
|
|
1645
|
+
.model-grid.as-list .ml-end { flex: none; font-size: 10px; color: var(--warn); }
|
|
1646
|
+
.model-grid.as-list .ml-end + .ml-end { color: var(--accent); }
|
|
1647
|
+
.model-grid.as-list .ml-more { flex: none; font-size: 10px; color: var(--muted); }
|
|
1648
|
+
|
|
1649
|
+
.model-grid.as-list .ml-groups { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
|
|
1650
|
+
.model-grid.as-list .ml-gb-name { overflow: hidden; text-overflow: ellipsis; font-family: var(--code); color: var(--fg); }
|
|
1651
|
+
|
|
1652
|
+
.model-grid.as-list .ml-dash { display: inline-block; width: 9px; height: 2px; border-radius: 1px; background: var(--muted); opacity: .6; }
|
|
1653
|
+
|
|
1654
|
+
/* 窄屏:七列放不下就横向滚动,表头不粘 */
|
|
1655
|
+
@media (max-width: 900px) {
|
|
1656
|
+
.model-grid.as-list { overflow-x: auto; }
|
|
1657
|
+
.model-grid.as-list .ml-head,
|
|
1658
|
+
.model-grid.as-list .ml-row { min-width: 660px; }
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
@container (max-width: 560px) {
|
|
1662
|
+
.model-grid { grid-template-columns: minmax(0, 1fr); }
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1141
1665
|
.mc {
|
|
1142
1666
|
display: flex;
|
|
1143
1667
|
flex-direction: column;
|
|
@@ -1145,13 +1669,35 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
1145
1669
|
padding: 12px;
|
|
1146
1670
|
background: var(--card);
|
|
1147
1671
|
border: 1px solid var(--line);
|
|
1148
|
-
border-radius:
|
|
1672
|
+
border-radius: 12px;
|
|
1149
1673
|
transition: border-color .12s ease, background .12s ease;
|
|
1150
1674
|
}
|
|
1151
1675
|
.mc:hover { border-color: var(--line-strong); background: var(--card-hover); }
|
|
1676
|
+
/* 类型只影响左侧描边色:生图/视频在网格里一眼能分开,但不再额外加彩色标签 */
|
|
1677
|
+
.mc-image { border-left: 2px solid color-mix(in srgb, #8b4f9e 65%, transparent); }
|
|
1678
|
+
.mc-video { border-left: 2px solid color-mix(in srgb, #d68c3c 65%, transparent); }
|
|
1679
|
+
.mc-audio { border-left: 2px solid color-mix(in srgb, #3f6fb0 65%, transparent); }
|
|
1680
|
+
.mc-embedding { border-left: 2px solid color-mix(in srgb, #2f8f68 65%, transparent); }
|
|
1152
1681
|
|
|
1153
|
-
.mc-head { display: flex; align-items:
|
|
1682
|
+
.mc-head { display: flex; align-items: center; gap: 9px; }
|
|
1154
1683
|
.mc-head > .grow { flex: 1; min-width: 0; }
|
|
1684
|
+
.mc-vicon {
|
|
1685
|
+
display: inline-flex;
|
|
1686
|
+
align-items: center;
|
|
1687
|
+
justify-content: center;
|
|
1688
|
+
width: 26px;
|
|
1689
|
+
height: 26px;
|
|
1690
|
+
flex: none;
|
|
1691
|
+
border-radius: 8px;
|
|
1692
|
+
background: var(--sunken);
|
|
1693
|
+
border: 1px solid var(--line);
|
|
1694
|
+
font-size: 11px;
|
|
1695
|
+
font-weight: 700;
|
|
1696
|
+
color: var(--muted);
|
|
1697
|
+
overflow: hidden;
|
|
1698
|
+
}
|
|
1699
|
+
.mc-vicon img { width: 18px; height: 18px; object-fit: contain; display: block; }
|
|
1700
|
+
|
|
1155
1701
|
.mc-name {
|
|
1156
1702
|
display: block;
|
|
1157
1703
|
max-width: 100%;
|
|
@@ -1186,7 +1732,7 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
1186
1732
|
}
|
|
1187
1733
|
|
|
1188
1734
|
.mc-desc {
|
|
1189
|
-
margin:
|
|
1735
|
+
margin: 8px 0 0;
|
|
1190
1736
|
font-size: 11.5px;
|
|
1191
1737
|
line-height: 1.55;
|
|
1192
1738
|
color: var(--muted);
|
|
@@ -1212,7 +1758,7 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
1212
1758
|
display: grid;
|
|
1213
1759
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1214
1760
|
gap: 8px;
|
|
1215
|
-
margin-bottom:
|
|
1761
|
+
margin-bottom: 6px;
|
|
1216
1762
|
}
|
|
1217
1763
|
.mc-prices.one { grid-template-columns: minmax(0, 1fr); }
|
|
1218
1764
|
.mc-prices > div {
|
|
@@ -1243,13 +1789,28 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
1243
1789
|
align-items: flex-start;
|
|
1244
1790
|
gap: 6px;
|
|
1245
1791
|
min-width: 0;
|
|
1246
|
-
margin-top:
|
|
1792
|
+
margin-top: 3px;
|
|
1247
1793
|
font-size: 10.5px;
|
|
1248
1794
|
}
|
|
1249
1795
|
.mc-line .k { flex: none; width: 26px; line-height: 18px; color: var(--muted); }
|
|
1250
|
-
|
|
1796
|
+
/* 组名单行省略:换行会让卡片高度不一致,进而把同排其他卡撑出空白 */
|
|
1797
|
+
.mc-group {
|
|
1798
|
+
min-width: 0;
|
|
1799
|
+
font-family: var(--code);
|
|
1800
|
+
color: var(--fg);
|
|
1801
|
+
overflow: hidden;
|
|
1802
|
+
text-overflow: ellipsis;
|
|
1803
|
+
white-space: nowrap;
|
|
1804
|
+
}
|
|
1251
1805
|
.mc-ratio { font-family: var(--code); color: var(--muted); }
|
|
1806
|
+
/* 端点:现在给的是看得懂的名字(Chat / Response / Anthropic…),可以换行 */
|
|
1252
1807
|
.mc-ends { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
|
|
1808
|
+
.mc-ends .mc-end { display: inline-flex; align-items: center; }
|
|
1809
|
+
.mc-ends .mc-end.more { color: var(--muted); }
|
|
1810
|
+
/* 分组:一个模型可能同时在多个分组里卖,最多列两个 + +N */
|
|
1811
|
+
.mc-groups { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
|
|
1812
|
+
.mc-gb { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
|
|
1813
|
+
.mc-more { flex: none; font-size: 10px; color: var(--muted); }
|
|
1253
1814
|
.mc-end {
|
|
1254
1815
|
padding: 1px 5px;
|
|
1255
1816
|
font-family: var(--code);
|
|
@@ -1259,8 +1820,24 @@ input[type="search"] { -webkit-appearance: none; appearance: none; }
|
|
|
1259
1820
|
border-radius: 4px;
|
|
1260
1821
|
}
|
|
1261
1822
|
|
|
1262
|
-
/*
|
|
1263
|
-
.mc-foot {
|
|
1823
|
+
/* 页脚只剩「详情」:紧跟内容,不再吸到卡底,避免中间留一片空白 */
|
|
1824
|
+
.mc-foot {
|
|
1825
|
+
margin-top: 7px;
|
|
1826
|
+
display: flex;
|
|
1827
|
+
align-items: center;
|
|
1828
|
+
justify-content: flex-end;
|
|
1829
|
+
}
|
|
1830
|
+
/* 用 .mc-foot 前缀提高优先级:.link 在本文件后面定义,不加会被它压回蓝色 */
|
|
1831
|
+
.mc-foot .mc-detail {
|
|
1832
|
+
display: inline-flex;
|
|
1833
|
+
align-items: center;
|
|
1834
|
+
gap: 3px;
|
|
1835
|
+
font-size: 12px;
|
|
1836
|
+
font-weight: 650;
|
|
1837
|
+
color: var(--fg);
|
|
1838
|
+
}
|
|
1839
|
+
.mc-foot .mc-detail:hover { color: var(--accent); text-decoration: none; }
|
|
1840
|
+
.mc-detail-arrow { color: var(--muted); font-size: 14px; line-height: 1; }
|
|
1264
1841
|
|
|
1265
1842
|
/* 文字按钮:卡片里的「详情」、侧栏的「重置」 */
|
|
1266
1843
|
.link {
|